Releases
Changelog
Every Nexub DS release. Pick a series, then a version. All packages publish at the same version; each one's changes are listed under it.
@nexub/react
11.9 Alpha → beta prep, and RFC 12.0 (ROADMAP_12.x.md).
@nexub/elements, new:<nx-select>,<nx-combobox>(asynconsearch, stale answers dropped,allow-custom) and<nx-phone-input>(E.164 form value, the same phone rules as React). All form-associated, withinvalidon every field. One element at a time:@nexub/elements/define/<name>.- Screen-reader pass, automated half (
A11Y_REVIEW.mdin each package; the human VoiceOver / NVDA pass follows before beta):- Diagram: connections are named by their node titles and share one Tab stop. Node order follows the layout. A focused connection can be deleted. Repeated announcements are read again, and a delete names what went.
<nx-date-picker>: no sideways scroll at 320px. Focus goes back to the field at once. The month is announced only when it changes, and the calendar button carries the field's name.
@nexub/react: opt-in@nexub/react/styles.nexub-layer.css, every style in onenexublayer, as RFC 12.0 proposes forstyles.css. Load it first, or declare@layer nexub;, and app CSS always wins. Fix: the deprecatedStepper current={-1}marks the last step complete too.@nexub/core:choiceFieldMessages,invalidPhone,phoneCountryOf(locale)(React PhoneInput uses it), and the diagram edge messages.@nexub/tokens:nexub-migrate --rules changes-in-12(opt-in until 12.0).@nexub/patterns: the README no longer points Tailwind 3 apps at the preset removed in 4.0.- RFC 12.0 (
RFC_12.0.md) is open for comment. Nothing breaking ships until it is accepted.
@nexub/react-native
11.8 Native catch-up I: fields (ROADMAP_12.x.md). The fields 11.1–11.5 fixed on web, on iOS and Android.
@nexub/react-native, new:ComboboxField(a searchable sheet;onSearchmay return a promise, debounced, stale answers ignored),CurrencySelect,FileUpload(bring your ownpickFilesandcapture;accept,maxSize,maxFiles,transform,validatein web's order),usePrompt()/PromptDialog,SwitchField,CheckboxField,CheckboxGroupField.- Fields: TextField, PasswordInput, SearchField and MoneyInput take
invalid,readOnly,required,leadingIcon/trailingIcon,leadingAddon/trailingAddon,onClearandsize="sm". PasswordInput:visible,defaultVisible,onVisibleChange. MoneyInput:currencySlot. Checkbox and Switch:invalid,readOnly,size(Switch alsocheckedIcon/uncheckedIcon). Stepper (web NumberInput):nullable(11.1 rules: empty state, clamp on blur),precision,showSteppers,invalid,size. SegmentedControl:size. - DateTimeField:
granularity="month" | "year"(a grid in a sheet; values'2026-03'/'2026', typed byDateTimeFieldPeriodProps),mode="datetime",disabledDates,presets,minuteStep,clearable,defaultValue,defaultTime,timeZone,locale,disabled,readOnly,invalid,loading,sizeand icon / addon slots. Time mode shows a clock icon. The OS day picker can't grey out days, so a pick on a disabled day keeps the old value and says the day is unavailable. - OTPInput:
defaultValue,disabled,invalid,readOnly,size,name;mode="backup"gets a capitals keyboard. - MultiSelect:
onSearch(async),onCreate,inputValue/onInputChange,emptyText,loading,maxVisibleChips,readOnly,size. The field now shows the picked values as chips. - Display: TreeList (checkboxes with tri-state parents,
expanded,onLoadChildren,renderActions, loading / empty / error states), StepProgress (nonLinear,onStepChange,orientation,completed), ActivityList states, TablemaxHeight/stickyHeader, ButtonstatuswithsuccessLabel/errorLabel, IconButtonloading, Linkexternal/variant/href, Cardtone/variant/surface, StatCardchange/note/tone, Avatarfallback/badgeColor, AvatarGroupspacing, Skeletonshape/animated, Dividertone, ButtonGroupattached, InlineEditdisabled/maxLength/size, PhoneInputsize. @nexub/core:takePhotoandopensExternallymessages.- Parity: web-only props on the 58 twins went from 283 to 140. 71 of them are web-only on purpose (
asChild, browser drawer mechanics, DataTable column layout, …), each with its reason in the docs. The 69 real gaps left are listed on the React Native page, the largest DataTable → DataList (30) and Drawer → BottomSheet (13). - Docs: the native essentials list (85 components) on the React Native page; native prop tables now include inherited props.
@nexub/react
11.7 Quiet release: nothing flaky (ROADMAP_12.x.md). No new components; the follow-ups 11.6 left open, and the release rules for 12.x.
@nexub/react: DatePickergranularity="month"cells show the full month name ("March", not "Mar"), so each cell's accessible name ("March 2026") starts with its visible text (WCAG 2.5.3 Label in Name). French short months ("janv.") were not a part of the long name at all. Same as<nx-date-picker>.@nexub/core:dateFieldMessages, the date field strings on their own.NexubMessagesgains optionaldiagram…keys (diagramShowAsList,diagramConnectTo, …diagramMinimap) for@nexub/diagram.@nexub/diagram:DiagramCanvasreads its strings fromNexubProvidermessages, so a translated provider covers the canvas with the rest of the app. Itslabelsprop still wins; the English defaults stay in@nexub/diagram.@nexub/elements: the date picker strings come from@nexub/core(dateFieldMessages), the same source as React's, instead of a copy. No visible change.@nexub/patterns: each page template ships only its own default strings, not every template's: template entries are 1.5–2.1 kB gzip smaller.defaultPageTemplateMessagesandusePageMessagesare unchanged.- Native parity: none needed. The changed strings and templates are web only.
- Release rules (repo, not packages): a test that passes only on retry, or a run that passes only after a rerun, opens a
flakeissue; an open one blocks the production release, and so does a staging head under 48 hours old. Lighthouse also runs on mobile emulation (warn only until 12.1).
@nexub/react
11.6 Diagrams and web components: two new packages at alpha, which close the last two platform gaps, #34 and #36 (ROADMAP_11.x.md). Both RFCs were accepted with changes on 2026-11-22 (#713, #712).
@nexub/diagram(#34, new, RFC #713):DiagramCanvasandDiagramNodeon React Flow (@xyflow/react^12.10, a peer dependency, so only apps that draw diagrams pay for it). Themed on the tokens (light, dark, forced colours, product accents). Keyboard access: arrow keys move focus between nodes, Alt+arrows move the focused node, C opens a "Connect to…" menu that makes an edge without dragging, Delete removes; moves and connections are announced.layout="left-right" | "mind-map"with the purelayoutTreeandlayoutLayershelpers (no layout dependency),readOnly,minimap,controls, a nodetone(good,warning,danger) and a "Show as list" text alternative. Import@nexub/diagram/styles.css.@nexub/elements(#36, new, RFC #712): form-associated web components for pages without React.<nx-number-input>has the 11.1 NumberInput rules (can be empty, half-typed values kept while focused,min/maxon blur,step="any").<nx-date-picker>takesYYYY-MM-DD,YYYY-MMorYYYYwithgranularity,min,max, a calendar dialog and a bottom sheet below 768px. A plain<form>posts their values,form.reset()resets them, andrequiredand range limits take part in validation. They are themed by the same token variables, so@nexub/themeswithdata-themeanddata-productapplies. No framework and no runtime dependencies: load@nexub/elements/define.jsfrom a CDN, or import the classes from@nexub/elements.@nexub/core: the number rules (parseNumberDraft,clampNumber,formatNumberValue,stepNumber,numberKeyTarget) and date-value helpers (parseDateValue,formatDateValue,dateRangeStatus,firstDayOfWeekand more), shared by@nexub/reactand@nexub/elementsso they can't drift.@nexub/react: NumberInput and the DatePicker period parsing use the shared core rules. No behaviour change.- Native parity: none. Native has no diagram editor (mobile shows the list view), and native apps use
@nexub/react-nativefields. - The platform can delete the Mind mind-map canvas, the Command Hub Studio workflow canvas, and the native
<input type="number">and<input type="date">on the Forms respondent pages.
@nexub/react
11.5 Conversations, lists, chrome and the last P4s. Closes the platform gaps #18, #19, #20, #21, #28, #29, #35, #37 and #38 (ROADMAP_11.x.md). Additive and opt-in; no default changes. The web components (#36, @nexub/elements) wait for their RFC (#712).
- PromptInput and chat parts (#18): PromptInput
sendLabel(a visible label),submitOn="mod-enter"(Enter adds a line, Cmd/Ctrl+Enter sends, with a hint),hintanderror. MessageBubblefrom="other"with anameandmetaheader for group threads; MessageActionsactionsfor custom actions. ConversationmaxHeight: it sizes itself in normal flow without a fixed-height parent. - SavedViews (#19):
onSave,onUpdate,onDeleteand the newonRenamemay return a promise (busy, and its error shown);confirmDelete;defaultView;maxLength. - TreeView (#20):
renderActions(row actions that never shift the row),trailingmeta, link nodes (href, Cmd/Ctrl-click opens a tab),onActivateseparate from selection (Enter, double-click), andref.scrollToNode(id). - ActivityFeed (#21):
timestampas aDatein<time dateTime>with a relative text and a full-date tooltip;actions;tone;ActivityFeed.Groupheaders; title and description no longer force<p>. - NavigationRail (#28):
orientation="bottom", a phone tab bar;badge(a count or a dot) with an accessible label. - InlineEdit (#29):
sizeup toheadline,as(a heading,Sheet.Title),maxLengthwith a counter. - OrgChart (#35, new): cards with photo, name and role on the TreeView data shape, expand and collapse, keyboard navigation as a tree, and a TreeView on narrow screens.
- Layout polish (#37): Alert
titleand AuthCarddescriptiontake any content; AuthCardlogoAlign;Breadcrumb.Section(a plain section; inBreadcrumb.Trailan item before the last with nohrefrenders as one instead of a link with no target); PageHeadereyebrow; Dialog.ContentmaxHeight;Collapsible.Trigger variant="default"(a styled row with a chevron); DashboardPage's headline figure can be a count, not only money. - Tokens (#38): spacing
88(22rem) and104(26rem); Tailwindperspective-near/-normal/-far,shadow-glow-brand(follows the product accent), andw-zoom-105/110/125. - Native parity: none of these props are on the native twins yet (native NavigationRail is already a bottom bar; native Alert and lists keep their current API).
- The platform can delete these stopgaps and hand-built screens: the Go phone bar, the org chart SVG, admin-ui's chat header and tree row actions, the
max-h-[26rem],w-[22rem]and 3D one-offs, and the hand-made Collapsible triggers.
@nexub/react
11.4 Boards, steps and calendars. Closes the platform gaps #12, #13, #14, #22 and #24 (ROADMAP_11.x.md). Additive and opt-in; no default changes. The diagram canvas (#34, @nexub/diagram) waits for its RFC (#713).
- Kanban (#12):
readOnly(no drag handles),canMove({ item, from, to })refuses a drop before it lands (a WIP limit),dropTargetsoutside the columns (Archive, Trash; the keyboard reaches them after the last column),renderColumnHeaderandrenderColumnFooter(a WIP badge, quick add), swimlanes (lanes+getLane), cardgetTone,columnWidth.onChangegets a second argument naming the moved card and where it went. - Stepper (#13): per-step
status:complete,current,upcoming,error,warning,skipped,cancelled(named as in StatusSteps, read after the label);descriptiontakes any content;actionsunder a step. Deprecated:current={-1}meaning "every step done", removed in 12.0.npx nexub-migrate --rules deprecated-in-11reports it (a new rule, on by default). - EventCalendar (#14):
onEventMoveto drag an event to another day or time, with a keyboard alternative (Alt+Arrow, then arrows, Enter) and announcements;editable: falseper event;renderDayAction(per-day add);eventActions;legend. - Sortable (#22):
layout="grid"(2D keyboard moves),disabledand per-itemisLocked,variant="flat", items without anid(stable keys), andSortable.Group/SortableGroupfor moves between lists. The shared reorder hook gainscanMove. - ResourceTimeline (#24, new): one row per person and days across, cells from
getCellwith tones,onCellActivatefor the app's own editor (a grid with arrow-key navigation), footer and row totals, weekends shaded, today marked. Reference screens: People rosters, PayHub team leave. - Native parity: the native Stepper, Kanban, calendar and lists have none of these props yet; no native twin of ResourceTimeline.
- The platform can delete these stopgaps and hand-built screens: the Command Hub calendar's drag layer, the Leap day list actions, the roster grid, admin-ui's sortable grid and its read-only board, and the
current={-1}workarounds.
@nexub/react
11.3 Dashboards tell the truth. Closes the platform gaps #11, #16, #23, #25, #26 and #32 (ROADMAP_11.x.md), and opens the RFCs for @nexub/elements (#712, gap #36) and @nexub/diagram (#713, gap #34). Additive and opt-in; no default changes.
- Charts (#11): a
nullor missing value is drawn as a gap (no bar, a break in the line) and listed as "—", not as 0. Semantic tonesgood,warning,dangerandneutralbeside the 1–8 palette on any series, slice or sparkline. BarChartorientation="horizontal"for ranked lists with long names,colorOffor a colour per bar, andvariant="waterfall"withtotalKey(rises ingood, falls indanger, totals from zero).integerTickskeeps the gridlines on whole numbers. One formatter per series (series[].valueFormat) for a multi-currency chart. The product accent still stays out of charts. - Show as table (#25):
tableViewon BarChart, LineChart, DonutChart, Funnel and Heatmap: a visible "Show as table" disclosure with the same data (a native<details>, so it works in server components with no JS). - UsageTile and UsageBar (#16, #26, new): used of a limit, a bar that turns to the warning tone near the limit (
warnAt, default 80%) and danger at it, with a text hint ("84% used", "Limit reached") androle="meter"; unlimited plans show "Unlimited".usageLevel()is exported. StatCard:size="sm", anoteslot,tone="bad-when-high",changewithchangeFormat(percent or absolute), andchangeLabel. - StageCounter (#23, new): a row of toggle cards with a count and a failed count each, that filters a list (
aria-pressed, single ormultiple). - Small options (#32): DonutChart
maxSlicesgroups the rest into "Other",legendValuesshows value and share, a slice'shreflinks its legend row,size(folds in the useful parts of #673). Funnel severalseriesandshow="conversion" | "drop-off" | "both". Heatmap missing cells and alegend. Gaugetoneandcaption. FilterBarsearch={false}. CheckList itemstatus: 'done' | 'pending'. - Native parity: the charts, tiles and StageCounter have no
@nexub/react-nativetwin; native dashboards keepKpiTileandProgressBar. - The platform can delete these admin-ui stopgaps:
UsageMetric,Metric, the hand-built stage filter rows, the charts'?? 0null workarounds, and the table fallbacks under charts.
@nexub/react
11.2 Pickers and prompts. Closes the platform's input gaps #8, #9, #10, #15, #17, #30, #31 and #33 (ROADMAP_11.x.md). Additive and opt-in; no default changes.
- CurrencySelect and CurrencyField (#8, new): a searchable ISO 4217 list built from
Intl(code, name and symbol), on ComboboxField, withcurrencies,priorityand group headings.currencyOptions(locale)returns the same options. MoneyInputcurrencySlotputs a CurrencySelect (or anything) before the amount. - AlertDialog.Prompt and
usePrompt()(#9, new): ask for a reason or a name in place ofwindow.prompt:label,required,minLength,maxLength,validate,multiline,tone, and a busy state whileonSubmitruns (a rejection shows its message and keeps the dialog open).await prompt(options)resolves to the trimmed answer ornull. - Autocomplete (#10): visible
label,clearOnSelect("add" mode),onClearwith a clear button, optiondescription(a searched second line) anddisabled. MultiSelect:onSearch(async, as on ComboboxField), optiondescription,disabledandavatar(in the list and on the chip); picked values keep their label and avatar when they leaveoptions. - Date pickers (#17): DateTimePicker
clearable. DateRangePickerendExclusive(a half-opento, in and out) andonComplete(once both ends are set). - ColorPicker (#15, new): swatches (with optional names), a hex field, and
contrastAgainstfor a WCAG AA text hint. Popover, sheet on phones.contrastRatio()andparseHex()are exported. - CommandList (#30, new): the searchable, grouped, keyboard list from CommandPalette as an inline part for dialogs, sheets and pages:
items,onSelect, asynconSearchandloading, shortcuts and icons. - OTPInput (#31):
mode="backup", a 12-character recovery code in one field grouped in fours (the value has no dashes);autoFocus; an uncontrolled code posts withnameand empties on form reset. - EmojiPicker and IconPicker (#33, new): search, categories, recent picks (kept in localStorage) and skin tone for emoji; IconPicker lists
@nexub/iconsby name, with optional categories. The emoji data and the icon set load only when a picker opens.EmojiPickerPanelandIconPickerPanelfit inside your own popover. - Native parity: OTPInput
mode="backup"and MultiSelect optiondisabledandavatar(with search by description) are ported to@nexub/react-native. Native has no Autocomplete, DateRangePicker, ColorPicker, CommandList, Emoji or Icon picker, or AlertDialog prompt yet; DateTimeField has no clear button yet. - The platform can delete these admin-ui stopgaps:
CurrencyFieldandCURRENCY_OPTIONS,askText()and thewindow.promptcalls,SearchField, and the free-text emoji fields in Mind spaces and docs.
@nexub/react
11.1 Fields stop fighting the user. Closes the platform's open P1 gaps (ROADMAP_11.x.md: #1 check, #2, #3, #4, #5, #6, #27). Additive and opt-in; no default changes.
- NumberInput (#2):
nullablelets the field be empty (null, not 0) and keeps a half-typed2.or-while focused.minandmaxapply on blur, steppers and arrow keys, never mid-typing (typing 30 with a minimum of 15 no longer snaps the 3 to 15).step="any". A focused field keeps what was typed, soprecisionformats on blur. Existing callers that pass a number are unchanged. - DatePicker (#4):
granularity="month" | "year"with'YYYY-MM'/'YYYY'values: a grid of months or years in the same popover and phone sheet, arrow keys and Page Up/Down,minDateandmaxDate. Replaces<input type="month">. - FileUpload (#5):
FileUpload.Trigger(an outlined button, aniconOnlypaperclip, or your own Button withasChild) with no drop zone; controlledfiles/defaultFiles;capturefor the phone camera;transform(file)before the size check (shrink a photo);disabled,busyandprogress;Dropzone size="sm". - ComboboxField and ComboboxPicker (#6, new): a searchable single choice on the field tokens, with label, description and inline error. Grouped options,
keywordsand a second line per option, anoneOption, async search (onSearch,loading,selectedOption), and a hidden input withname. - SwitchField, CheckboxField, CheckboxGroupField (#27, new): label, description and error; switch-before-label
layout="start"; checkboxasideandindeterminate; a fieldset group with one error. Texttone="danger" | "success" | "warning". - Phone (#3):
formatPhone(e164, { style: 'national' | 'international' })for read-only display, andparsePhone()now also returnsdialCode. Both, withisValidPhone, are exported from@nexub/react(andformatPhonefrom@nexub/react-native). The E.164 string stays the one stored form. - Vivid (#1): every vivid component rule stops at the nearest expression, so
data-expression="calm"on a wrapper inside a vivid page opts that area back out (CheckboxCard and RadioCard included). Shadows inside the calm area keep vivid's faint accent tint. - Native parity: the native Checkbox already carries its label and description; native has no NumberInput, DatePicker, FileUpload or Combobox twin yet, so those props have no native port in 11.1.
- The platform can delete these admin-ui stopgaps: NumberField's nullable path, FileField, ComboboxField, ComboboxPicker, PickField, SwitchField, CheckboxField, CheckboxGroupField, and
TextField type="month"month pickers.
@nexub/react
11.0 Better defaults and one source for the product accent. The first major by RFC (RFC_11.0.md): two breaking changes, both announced in 10.x. Run npx nexub-migrate --rules changes-in-11 (add --write to apply the import rewrites, --check in CI), then read "Migrating to 11.0" in the docs.
- Breaking: the four hand-written product theme files are removed:
@nexub/themes/leap,/bookub,/payuband/founderub(deprecated in 10.3). Import@nexub/themes/productsinstead: the generated map sets the same[data-product]accent for these four and for every other app.@nexub/react/styles.cssnow imports the map, so apps that only import that stylesheet change nothing.data-product,ThemeProvider productand the accent tokens are unchanged. The codemod rewrites the imports (JS and CSS). - Breaking: the default of
sheetchanges fromfalseto'auto': a bottom sheet below 48rem (768px), the usual popover above. OnSelect.Content,MultiSelect,Autocomplete,DatePicker,DateRangePicker,DateTimePicker,DropdownMenu.Content,ContextMenu.Content,Menubar.Content,Popover.Content,SplitButton,SavedViews,Breadcrumb.Trail,AlertDialog.ContentandCommandPalette(@nexub/react), andNotificationCenter,AppLauncherandAppHeader(@nexub/patterns). Components built on them follow (the country list ofPhoneInput, the filters ofDataTableandFilterBuilder). Passsheet={false}to keep a popover on small screens.Dialog.Contentis unchanged (sheetstays off by default). The codemod reports every overlay without asheetprop and rewrites none. - Postponed to the major after 11: removing sizes outside the shared scale and aligning the web and native variant names. Neither was deprecated in 10.x; they will be deprecated in an 11.x minor with a codemod first. No native API changes:
@nexub/react-nativestays alpha. - Docs: a generated playground on 126 component pages and a States section on 80, a searchable token explorer at /foundations/tokens, breadcrumbs, previous and next links, an "On this page" sheet on phones, search that remembers recent items, and a landing page that shows the 23 page templates. Native components stay alpha.
@nexub/react
10.9 Native, next level, and the 11.0 release candidate. 10.9.x is published under the npm tag next; latest stays on 10.8.x until 11.0.
- Native look:
NexubNativeProvider expression="vivid",productaccepts every product in the generated map, and the theme exposes the product accent. Category colours onBadgeandAvatar, newIconChip,StatCard,NumberTicker, a gradient main action and tone-aware tonal buttons.dynamicColorfollows the Android 12+ system accent (opt-in).useBreakpointanduseResponsivefor tablets and landscape. - Gestures on the UI thread: BottomSheet, Toast, SwipeableRow and Slider read touches with react-native-gesture-handler worklets.
react-native-gesture-handler>= 3 is now a required peer: wrap the app root inGestureHandlerRootView. - New native twins (#302):
Tabs,Table,Rating,Tooltip,StepIndicator(alias ofStepProgress), plus twins ofDescriptionList,ComparisonBar,PhoneInput,Countdownand theStatusStepspattern. - QR codes (#305):
QRCodeon web and native (always dark on light, value shown as text) and nativeQRScanner(optionalexpo-camerapeer, with permission states, torch and a manual-entry fallback). The encoder isencodeQRin@nexub/core. - Toward 11.0:
npx nexub-migrate --rules changes-in-11rewrites the four deprecated product theme imports and lists overlays that rely on the oldsheetdefault. See "Migrating to 11.0" in the docs and RFC #662. - Device baselines for the pattern screens are also captured in dark, high contrast, RTL and (iOS) large text. The mobile demo gains a small connected app under
/demo.
@nexub/react
10.8 Templates: twelve new page templates and the three controls they needed.
- Getting in:
SignUpPage(password strength said in words, optional phone, terms),ForgotPasswordPage(request and "check your email" with a resend cooldown),VerifyCodePage(OTP and 2FA with resend countdown, other methods, code lifetime),OnboardingPage(a generic step wizard with validation, skip and a completion view) andKycPage(personal details, document upload, review, status). - Daily work:
TablePage(search, filters, tabs, bulk and row actions, pagination),DetailPage(view and edit modes with an unsaved-changes guard),BookingPage(date, time slot, confirm, with an optional hold timer),InvoicePage(invoice and receipt),TeamPage(members, roles, invites, seats),NotificationsPage(grouped by day, tabs, load more) andSearchResultsPage(highlighted matches, kinds, pagination). PhoneInput(#303): country picker, formatting as you type, E.164 out, paste of full international numbers. Country calling codes and helpers (parsePhone,formatNational,toE164,isValidPhone) are in@nexub/core.CountdownanduseCountdown(#304): time left to a deadline that stays right after the tab was in the background, tone changes near the end, and announcements at sensible intervals only.TimeSlotPicker: a radio group of time slots, optionally grouped into morning, afternoon and evening.
Every template uses the 10.3 look, the 10.5 loading, empty and error states and the 10.6 phone behaviour, and responds to its container.
Fix: a read-only Select no longer switches Radix from uncontrolled to controlled after mount, which logged a React warning on every render of a read-only Select (seen first on a read-only PhoneInput).
Performance: a closed PhoneInput country picker renders only the selected country, not all ~240 (Radix Select renders items while closed). 1,000 mounts of six PhoneInputs: over 10 minutes before, 10 seconds after.
@nexub/react
10.7 Charts, calendar and tables.
- Interactive charts (opt-in; default charts stay server-rendered):
interactiveon BarChart, LineChart (andarea), DonutChart, Heatmap, Funnel and Sparkline adds a crosshair that snaps to the nearest point, a tooltip that stays inside the plot, tap on touch, and keyboard navigation (arrows, Home, End, Escape) with the focused point announced.onPointClickreports the point.legend="toggle"on BarChart and LineChart turns the legend into show/hide buttons (hiddenSeries,defaultHiddenSeries,onHiddenSeriesChange). - EventCalendar:
dayview with an hour grid and a now line, andagendaview as a list grouped by day.viewspicks what the switcher offers (default unchanged);nowmakes it deterministic. - Table:
stickyHeaderwithmaxHeight,density,stripedonTable.Root. - DataTable: a footer row from each column's
footer(sums follow the filtered rows), and per-column filters (meta.filter: 'text' | 'select' | 'number-range',columnFilters,defaultColumnFilters,onColumnFiltersChange,manualFiltering). The filter popover loads only when used. Truncate: clips text to one or more lines and shows a tooltip only when the text is really cut.- New (#306):
DescriptionList(label and value rows on<dl>, inline or stacked, 1 to 3 columns, emphasis for totals),ComparisonBar(two values on one split bar with a text alternative) and theStatusStepspattern (a read-only progress list with done, current, upcoming and problem steps).
@nexub/react
10.6 Phone-first overlays: pickers and menus can open as a bottom sheet on a phone, and layouts follow their container.
sheet(trueor"auto", off by default until 11.0) on Select, MultiSelect, Autocomplete, DatePicker, DateRangePicker, DateTimePicker, DropdownMenu, ContextMenu, Menubar, Popover, SplitButton, SavedViews, the Breadcrumb overflow menu, AlertDialog and CommandPalette, and on NotificationCenter, AppLauncher and the AppHeader menus."auto"is a bottom sheet below 768px and the usual popover above; it is done in CSS, so there is no flash after hydration.- Poppers stay on screen: every popper keeps 8px from the viewport edge and scrolls inside the space it has instead of running off it.
- AlertDialog keeps a 1rem gutter on narrow screens and scrolls when it is taller than the screen. Dialog sheets use
dvhand respect the bottom safe area. - Sidebar
collapseBelow="sm" | "md" | "lg"collapses to the icon rail on its own, and collapsed items show a real tooltip. AppShell gains an opt-in mobile drawer:AppShell.Sidebar drawerBelowplusAppShell.NavTrigger. - Container queries: PageHeader, RadioCard groups, PageFrame, DashboardPage, TransactionDetailPage, SettingsSection, WelcomeBanner and FilterBar now respond to the width of their container, not the viewport.
- NavigationMenu wraps at 320px. The reflow exception list is empty.
@nexub/tokens
Tailwind 4: bg-surface, text-surface and border-surface now work. The surface colour role was dropped from @nexub/tokens/tailwind.css because the color.surface.* token tree overwrote it, so those classes generated nothing.
@nexub/react
10.5 Every state: loading, empty and error look designed everywhere, and state changes move.
- One prop shape (
loading,emptyState,errorState; error wins, then loading, then empty) on BarChart, LineChart, DonutChart, Gauge, Heatmap, Funnel, Sparkline, KpiTile, ChartZoom, EventCalendar, TreeView, Kanban,Table.Body, anderrorStateon DataTable and DataTableVirtual. Patterns too: ActivityFeed, InfoList, NotificationCenter, SettingsPage, DashboardPage, ListDetail, TransactionDetailPage, ActivityPage;loadingon StatCard and UserCard. Exported asDataStateProps. - Behaviour change: a chart, tree or board with no data now says "Nothing here yet" instead of drawing an empty plot. Pass
emptyStateto change it. SkeletonPreset: card, tableRow, listRow, chart, form.Illustration: seven spot drawings (noData, noResults, noAccess, serverError, offline, notFound, maintenance) coloured by the theme and the product accent.EmptyStatePreset illustrateduses them; the preset gainsnotFoundandmaintenance.StatusPagepattern for 404, 500, maintenance, offline and no access, with three new templates.- Motion: a sliding indicator on ToggleGroup (single), NavigationRail and Pagination; Stepper progress, Chip and FilterChip colours, the Avatar status dot and TreeView expand now animate; Drawer exits at the same speed as Dialog.
ErrorStatetakesretryLabel. - Docs layout shift: ResizablePanels, Combobox, FilterBuilder and Slider render their final layout on the server.
- React Native: Accordion, Progress, Checkbox, Radio, PageIndicator, TextField and Dialog animate on the shared springs.
ScreenContainer keyboardAvoiding(default on) keeps inputs above the keyboard on iOS and Android; BottomSheet does the same on Android. Sizes read the theme tokens (lint exceptions 109 → 10).
@nexub/react
10.4 Consistent controls: one size scale, and invalid, read-only and disabled look the same everywhere.
- Sizes:
size="sm" | "md" | "lg"onSelect.Trigger,Combobox.Input,MultiSelect,Autocomplete,DatePicker,DateRangePicker,DateTimePicker,Tabs.List,Slider,Checkbox,RadioGroup,OTPInputandFilterChip.mdis what each rendered before. - Invalid:
invalidonCheckbox,RadioGroup,Switch,Slider,RadioCard,CheckboxCard,FileUpload,DatePickerandDateTimePicker, soFormFieldmarks them like a text field. - Read-only:
readOnlyon every input. Text inputs get a quiet fill with readable text; selects, pickers, checkboxes, radios, switches, sliders and file upload stay focusable and cannot change.NumberInputsteppers switch off. - Disabled:
Labeluses the disabled colour instead of 50% opacity. - Density: Pagination, OTPInput, FloatingInput, Chip, Badge, Table and calendar day cells step down under
data-density="compact". - Component tokens for Dialog, Popover, menus, Tooltip, Toast, Tabs, Table, Switch, Checkbox, Avatar, Alert and the active navigation item (unset by default).
- Type and px: every component reads its type size from the type roles, and no arbitrary px is left. 12px text gains the label role's 0.01em tracking.
- Scrollbars are styled in Firefox; numbers in NumberInput, time and date pickers, Slider, FilterChip and AvatarGroup are tabular.
@nexub/react
10.3 Lively app surfaces: Vivid reaches the app, and every product gets one accent.
- Vivid in apps (
@nexub/themes/vivid, nothing changes undercalm): page titles are heavier, the active Sidebar item and NavigationRail pill are tinted with the accent and the Sidebar gains a marker that slides between items, stat cards lift on hover, bars fade toward the baseline, and Table, DataTable and list rows share one hover tint. - Category colours: eight generated colours (
--color-category-*, one per chart series, 4.5:1 in light and dark) plusaccent. Newcategoryprop onBadge,Avatar("auto"picks a stable colour from the name) andStatCard. - New:
IconChip(an icon on a tinted tile),SuccessCheck(a small success animation),WelcomeBanner(pattern). - PageHeader
wash: a padded panel that carries a soft wash of the accent under Vivid. - StatCard
category,trendandtrendLabel: a coloured icon chip and a small trend line. - DashboardPage is the reference screen: new
bannerandchartslots, stats takecategoryandtrend. Changed: the first quick action is now the filled main action, and transaction avatars take a colour from the name. - Button:
variant="tonal"with atoneis now a soft, coloured button (the role's container pair). Changed: it used to render the same solid fill asfilled. - Product accent:
ThemeProvideraccepts every app key in the product map (was four).AppHeaderandSidebar.Roottakeaccent, andAppLauncherapps takeaccent. Underdata-productordata-divisionthe new--color-spot*values carry the app's accent to the icon chip, the active navigation item, the header wash and the welcome banner.@nexub/reactre-exportsPRODUCT_KEYS,DIVISIONS,CATEGORY_COLORSandaccentAttrs. - Deprecated:
@nexub/themes/leap,/bookub,/payuband/founderub. Import@nexub/themes/productsinstead; the four files are removed in 11.0.
@nexub/react
Two fixes.
- Icon and label spacing.
SegmentedControl.Item,Tabs.TriggerandTopNav.Itemnow put a 6px gap (gap-1.5) between an icon and its label, so apps no longer needclassName="gap-1.5". Button, Badge, Chip, Toggle and FilterChip already had a gap. - Vivid no longer paints RadioCard and CheckboxCard with its gradient. The gradient rule for checked selection controls now skips the cards (
data-selectable-card). A selected card shows a primary edge and a 6% primary tint, with readable text in Vivid, Glass and the default theme, light and dark.
@nexub/brand
Brand: app icon for CRM. app-icon-crm.svg, -light.svg, -192.png, -512.png and the mobile/crm-* iOS and Android set.
@nexub/react
Division mega-menu and division/app themes, for the nexub.com rebuild. Nothing is removed and apps that set neither data-division nor a new data-product key look the same.
- MarketingNav: an item with
columnsopens a grouped mega-menu as wide as the container: up to 5 columns (3 + 2 belowxl), each a labelled list whose title can link to the division page and take a division tint (accent), with an optionalfooterstrip andfeaturecard. In the mobile sheet each column is an accordion section. Links take abadge("Coming soon") that is part of the link's name, on flatitemsmenus too. Menu links now show the focus ring. New typesMarketingNavColumnandMarketingNavGroup. - Fix: with
@nexub/themes/glassloaded, the header's soft scroll edge was a mask that also hid the open mega-menu. MarketingNav no longer sets it. - Tokens: accent scales for the five divisions (
--color-accent-os-50…-950,-fill,-fill-hover; also commerce, fintech, intelligence, autonomous) in CSS, Tailwind, JSON and JS;native.color.divisionsand Figmadivisionvariables; the division → apps map at@nexub/tokens/json/divisions. - Themes:
@nexub/themes/divisions(and@nexub/themes/divisions/osetc.) fordata-division;@nexub/themes/productsfor every app underdata-product(people, contracts, forms, commerce, money, capital, mind, go, command-hub, runner, plus the aliases book-hub, payhub, founder-hub). Generated from the token map; the per-product files stay. - Components: Card
accentacceptsProductKey | DivisionKey(exported from@nexub/react/Cardand@nexub/core).divisionon Hero, SectionHeader, ProductGrid, ProductCard and CTABand setsdata-division; in marketing mode the eyebrow and the CTA band take the division's colour. - Server components:
@nexub/react/Marqueeis a new server-safe entry. LogoStrip and MarketingFooter use it, so they no longer bring the client-side Motion components onto a server-rendered page.
@nexub/react-native
One typeface: Plus Jakarta Sans everywhere. Inter is no longer part of the design system.
--font-family-sansis now Plus Jakarta Sans, the same as--font-family-display(both tokens stay). Interface text, controls and body copy change face; sizes, weights and line heights are unchanged. Plus Jakarta Sans runs a little wider than Inter, so check tight layouts.@nexub/themes/base(and/fonts) ships only the Plus Jakarta Sans files (latin, latin-ext, vietnamese; normal and italic). Other scripts fall back to the system font.- React Native:
nexubFontsloads Plus Jakarta Sans 400–800 and no Inter files (Inter_*keys are gone;useFonts(nexubFonts)needs no change). - With
next/font, loadPlus_Jakarta_Sansfor both--font-family-sansand--font-family-display. - Body roles (
body-lg,body-md,body-sm) have no letter-spacing now: the small negative tracking was tuned for Inter and made Plus Jakarta Sans too tight.
@nexub/react
10.0.0: 9.9 declared stable and published to latest. No component, prop, token or default changed, and nothing was removed. From 10.0 versions follow semver: minors are additive, and a breaking change needs a new major by RFC.
@nexub/brand
Brand: app icon for Forms. app-icon-forms.svg, -light.svg, -192.png, -512.png and the mobile/forms-* iOS and Android set.
@nexub/react
10.0 release candidate. 9.9 adds no API: it is 9.8 under a feature and API freeze, published to the next dist-tag (npm install @nexub/react@next) while latest stays on 9.8. 10.0 ships when every exit criterion is met; the docs page "10.0 release status" lists them. 10.0 removes nothing (9.x deprecated no API), and from 10.0 the version follows semver: after 10.9 comes 10.10, and a major needs an RFC and a migration guide.
@nexub/react
9.8 Security review and response. An internal review of the packages, the docs site, its feedback endpoint, the MCP server and the release pipeline against OWASP ASVS Level 2 found nothing critical or high; all findings are fixed (SECURITY_REVIEW.md).
@nexub/mcp: text passed to thebuild_screenandreview_screenprompts is fenced so it can't close its code block and read as instructions.@modelcontextprotocol/sdk1.32.2.- Docs feedback endpoint: timeouts on outbound calls, Turnstile tokens checked against the host, stricter body and
Content-Lengthhandling,no-storeandnosniffon API answers, and a missing webhook is now an error instead of a silent success. - No high or critical advisory in any dependency, dev tools included, enforced on every pull request.
- New
INCIDENT_RUNBOOK.md;SECURITY.mdstates the response times, that fixes ship on the latest version only as a patch, and how advisories and CVEs are issued. Private vulnerability reporting is on.
No component API changes.
@nexub/react
9.7 Security: the supply chain. Releases are now built, packed and attested in an isolated reusable workflow (SLSA Build Level 3 provenance), and the publish job uploads those exact tarballs instead of packing again; the tarballs, their checksums and the signed provenance bundle are attached to each GitHub release, and each release gets a Sigstore-signed tag v<version>. Builds are reproducible: two builds of one commit give byte-identical tarballs, checked on every PR (this found and fixed an unstable import order in @nexub/patterns' bundle and a key-order shuffle in packed package.json files). New dependency policy, checked in CI: every runtime dependency is listed with its reason, new releases wait 7 days before pnpm resolves them, and the lockfile may only hold registry packages with a sha512 integrity. Blocking gates: no open CodeQL alert of high or critical severity (the four that were open are fixed, including a slow regular expression in FilterBar's default search label), and an OpenSSF Scorecard minimum that only goes up. SECURITY.md documents how to verify a release.
@nexub/react
9.6 Security: the library. An XSS corpus (15 hostile URLs, 10 markup and template payloads) now runs against every prop in @nexub/react, @nexub/patterns and @nexub/marketing that renders a URL, a file name or user, CMS or model text, with menus opened first; nothing in it produces an element, an event handler or a script-capable link or source. The docs Security page has the threat model per component. The docs site now enforces Trusted Types and its script policy is a per-request nonce with 'strict-dynamic' and no fallback; a test loads every page under the production policy and fails on any violation, which is also the proof that the library needs no inline script and makes no Trusted Types violation. Strict CSP documents the small default policy an app needs (React writes Radix's <style> text through innerHTML). @nexub/mcp: every tool and prompt argument has a maximum length, and platform is web or mobile only. Docs feedback endpoint: the Turnstile token and context blob are capped, and a failed webhook is logged by status only.
TopNav: the inner row now has the header's full height, so it no longer grows (and re-centres the logo) when a browser paints while later, taller children are still being parsed. No visual change. The docs previews are hidden until fully parsed for the same reason; this was the cause of the occasional layout shift on a random docs page.
@nexub/react
9.5 Resilience. Property-based tests (fast-check, dev-only) now cover everything that parses what a person or a model hands it: parseMoney in eight locales, safeHref and safeSrc against schemes hidden with tabs, newlines, control characters and mixed case, seed colours, CSV export, and typed entry in NumberInput, OTPInput, MoneyInput and DatePicker. Two bugs they found are fixed: parseMoney could not read a locale's own digits, so editing an ar-EG MoneyInput (web or React Native) cleared its amount, and NumberInput could report Infinity. A leak test mounts and unmounts every story 1,000 times and fails on a listener, timer, DOM node or heap that grows; a soak test keeps one docs session (and, nightly, one iOS app session) busy for 30 minutes and fails on an error, a reload or memory that keeps growing. Error boundaries: the page templates (PageFrame and every page built on it) and React Native's ScreenContainer now catch a render error in their content, keep the header up and show "Something went wrong" with Retry; onError reports it and errorFallback replaces the default.
@nexub/react
9.4 Every environment. Every story now has a forced-colors and a right-to-left baseline, and is checked for reflow at 200% and 400% zoom (WCAG 1.4.10), for anything still moving under reduced motion, and for any backdrop-filter left under reduced transparency. Fixes they found. Forced colors: on, selected and filled states are redrawn with system colours (a switch looked the same on and off, a radio lost its dot, a slider its track, a pressed toggle and a highlighted menu item their fill), and buttons, floating panels and separators keep an edge. Motion: a centred Dialog (and CommandPalette) flew in from the corner by half its own size, in normal and reduced motion alike; the entrance and exit now add to the element's own translate (animation-composition: add), so it grows and rises in place and does not move under reduced motion. Zoom: Pagination wraps, and a chart's hover tooltip stays inside the plot instead of widening the page. React Native: the OS Bold Text setting (iOS) now steps the Nexub font files up a weight, live; every exported component is checked for text that scales with the OS font size and for reading order, and the light/dark switch is checked while mounted. The docs Accessibility page lists the results per environment.
@nexub/react
9.3 Interaction glitches. A browser interaction suite now runs on every overlay (Dialog, AlertDialog, Drawer, Popover, DropdownMenu, Menubar, Select, DatePicker, DateTimePicker) in Chromium, WebKit and Firefox: keyboard, pointer and touch open it, focus goes in and comes back, rapid and double activation settle in one state, and a modal's scroll lock does not move the page. A state matrix pushes every story through long content (200 characters, emoji, Arabic), empty, disabled, loading and invalid. Fixes they found: Drawer now moves focus to its panel on open (it stayed on the trigger behind the modal; autoFocus still focuses the first control); Enter, Escape and Backspace that belong to an IME composition no longer save InlineEdit, commit a typed DatePicker date, remove a MultiSelect chip or pop a CommandPalette page; a long text label on Button and Badge ends in an ellipsis inside its container instead of running past it. Note: a string label on Button and Badge is now wrapped in a <span>, so getByText(label) returns that span, not the button or badge; use getByRole or .closest() for the element itself.
@nexub/react
9.2 Render glitches. Every story now renders under StrictMode and hydrates its renderToString HTML with no console error or mismatch (render-glitches.test.tsx). A no-flash test blocks every script bundle and checks that ThemeScript alone puts the stored theme, contrast and brand on <html> and paints them. Docs: CLS 0 is a gate on every page, with a Lighthouse budget of 0.001 (0.000 as Lighthouse reports it). Live previews are resolved on the server before render (no 120px skeleton or streamed-Suspense swap; examples are client modules), the latin webfonts are preloaded (the swap rewrapped headings), and the motion gallery animates by transform. Five previews whose components measure themselves on mount keep a shrink-only cap. Avatar, MediaCard and skeleton-to-content swaps are checked for layout shift with images arriving late.
@nexub/react
9.1 Every browser. Playwright now runs every story, the interaction states and the docs suites in WebKit (the Safari stand-in) and Firefox as well as Chromium, with baselines per engine. The supported browsers are written down (last 2 Chrome, Edge, Firefox and Safari; iOS Safari 17.5+) as the browserslist in @nexub/themes, and CI compiles the theme CSS for that list and fails if any rule would need a prefix or fallback the source lacks. Fixes from that check: -webkit-text-size-adjust (iOS no longer inflates text in landscape), -webkit-user-select for dragging and the drawer, and the unprefixed mask beside -webkit-mask on the gradient rings.
@nexub/react
9.0: the clean-up major. It removes what 8.x deprecated and adds nothing. See "Migrating to 9.0"; npx nexub-migrate src --rules changes-in-9,button-aliases --write does most of it.
- Classic style removed. Signature is the only style.
data-style="classic"does nothing now, and the roles CSS no longer ships the classic or[data-style]subtree blocks. React Native: thestyleprop onNexubNativeProviderand theDesignStyletype are gone. - Button legacy variants removed:
primary,secondary,outlineandghost(usefilled,tonal,outlined,text), along with theButtonLegacyVarianttype and the vivid[data-variant='primary']selector. - 8.5 parity aliases removed:
onChangeonDatePicker,DateTimePickerandNumberInput(useonValueChange). React Native:dismissableonDialogandBottomSheet(usedismissible),minimumDate/maximumDateonDateTimeField(useminDate/maxDate), anddirectiononButtonGroup(useorientation). hidePasswordmessage removed (deprecated in 7.2).nexub-migrate changes-in-9now also reportsstyle="signature"onNexubNativeProvider, since the whole prop is gone.- The raw-px, RN numeric-style, coverage and parity gates keep blocking any new entry. Their existing allowlists can still only shrink, and 9.x clears them.
@nexub/react
8.9: the 9.0 release candidate. API freeze: no new components, props or variants until 9.0.
- Docs: Migrating to 9.0 lists everything 9.0 removes, each with its replacement: the
classicstyle, Button's legacy variants (primary,secondary,outline,ghost),onChangeon DatePicker, DateTimePicker and NumberInput, the React Nativedismissable,minimumDate/maximumDateand ButtonGroupdirectionnames, and thehidePasswordmessage. nexub-migrate: achanges-in-9rule (on by default) rewrites the 8.5 renames and reports the classic style andhidePassword. Together withbutton-aliasesit covers every item on the list.- Fix (React Native): PasswordInput's reveal toggle keeps one name, "Show password", and reports its state as selected, like the web toggle since 7.2. It no longer switches to the deprecated
hidePasswordlabel.
@nexub/react
8.8: docs accuracy. No new components, props or variants.
- Docs: 21 shipped components that had no page now have one: AppShell, AspectRatio, Container, Section, PageHeader, TopNav, Sidebar, NavigationMenu, Menubar, CommandPalette, DropdownMenu, ContextMenu, CountryBadge, Flag, FormError, FileUpload, Toolbar, CheckList, KeyboardShortcut, Logo and VisuallyHidden.
- Docs: a link check over the built site runs in CI (every same-site link and
#anchorresolves); it found and fixed 9 broken links. - Docs: an accessibility suite for the site itself: axe (WCAG 2.2 AA, contrast included) on each kind of page in light and dark, plus keyboard checks for the skip link, "On this page" and search. Fixed what it found: the header Search button and home link now have names that match their visible text.
- Fix: Alert no longer dims its body text to 90% opacity, which pushed links inside an Alert below AA contrast.
@nexub/react
8.7: budgets and performance. No API change.
- Bundle budgets only go down.
pnpm check:size --updatenow lowers each budget to its current size (rounded up to 100 B) and never raises one, and every budget was ratcheted down in this release. A raise is a hand edit that the PR has to explain under a## Budget raisesheading; CI fails one that isn't explained. - Smaller without raising limits: the bundled vaul (Drawer) is shipped minified (Drawer 15.4 → 11.1 kB gzip), and Combobox draws its loading ring inline instead of importing Spinner (3.4 → 2.7 kB). The whole
@nexub/reactgraph is 187 kB, down from 193 kB. - The interaction budgets from 7.7 (INP-like ≤ 200 ms and no long task over 100 ms for DataTable, Combobox and Kanban) stay blocking in the visual job.
@nexub/react
8.6: token discipline. No new components, props or variants, and no visual change at the default 16px root. With a larger root font size, Textarea min heights and the toast and table touch targets now scale with it, like the rest of the tokens.
- Web: a
raw-pxdesign-lint rule for @nexub/react and @nexub/patterns. Arbitrary px values (min-h-[44px]) fail CI; hairlines (1px) and px fallbacks insidevar(--token, 64px)are fine. 15 were moved onto tokens of the same size (min-h-11,min-h-14,outline-3,w-0-5,rounded-shape-min, …). The 37 with no token yet (18px controls, 10px badge text, concentric inner radii, 400px panels) are on a shrink-only list. - React Native: the same lint for raw numeric styles. 38 spacing values now read
tokens.spacing[…]; the rest are on a shrink-only list.
@nexub/react
8.5: web ↔ native parity. No new components or variants.
- Docs: a generated prop parity matrix on the React Native page lists, for every web component with a native twin, the props that share a name and the ones that exist on one platform only. CI fails when it is stale, so a prop added to one platform shows up in review.
- Same idea, same name. Where the platforms named one thing differently for no reason, the matching name is added and the old one is deprecated (it still works and is removed in 9.0):
- Web:
onValueChangeon DatePicker, DateTimePicker and NumberInput (onChangedeprecated), like every other Nexub input and React Native. - React Native:
dismissibleon Dialog and BottomSheet (dismissabledeprecated),minDate/maxDateon DateTimeField (minimumDate/maximumDatedeprecated), andorientation="horizontal" | "vertical"on ButtonGroup (direction="row" | "stack"deprecated).
- Web:
- Docs: native prop tables now show
@defaultvalues from JSDoc and mark deprecated props.
@nexub/react
8.4: API truth. No new components, props or variants.
- Deprecated: Button's legacy variant aliases
primary,secondary,outlineandghost(same styles asfilled,tonal,outlinedandtext). They still work and are removed in 9.0. The default variant is now spelledfilled(same look).npx nexub-migrate --rules button-aliases --writerenames them; the newButtonLegacyVarianttype marks them@deprecated. - Docs: web prop tables (react, patterns, marketing) are generated from the TypeScript types, the same way the React Native tables are, and CI fails when they drift. This corrected 50+ wrong rows: props that don't exist (Box
padding, Chipvariant, TextGradientfrom/to/direction, …), renamed ones (Drawerside→direction, PlanCardctaLabel/onCta→cta/onSelect, UserCardavatar→avatarSrc), wrong defaults, and 200+ props that weren't documented. - Docs: every TSX/TS code sample typechecks against the packages in CI.
- Fixes from removing every
react-hooks/exhaustive-depssuppression (each with a regression test): the CommandPalette no longer calls a controlled input'sonValueChange('')on mount, and its page breadcrumb follows a title change; a re-render no longer restartsListTransition's exit fallback; DataTable row reordering reads the latest rows on every move; unmounting a Sortable mid-drag removes its key listener. React Native: BottomSheet's drag-dismiss and ActionSheet's pick call the currentonOpenChange(not one from an earlier render); a controlled MoneyInput no longer overwrites typing when the amount is unchanged; Slider, SwipeableRow and toasts keep one gesture responder across re-renders.
@nexub/react
8.3: visual completeness and flake debt. No new API.
- Stories and visual/a11y baselines for the 11 components that had none: ActionBar, AgentKit (with ApprovalCard), DataTableVirtual, Fieldset, FloatingInput, MoneyInput, NavigationRail, ResizablePanels, ScrollProgress, SharedElement, SplitButton.
- Fix: a
Table/DataTablethat only scrolls vertically (maxHeight) is now a focusable, named scroll region, like a horizontally overflowing one (WCAG 2.1.1). - CI: recurring flakes fixed at the cause (cached Maestro download with backoff, warm iOS first launch, the iOS open-link prompt, Android post-boot settle, the RN Select first-sheet cost, the motion page's full-page reflow). Playwright retries once in CI only; a quarantine list that may only shrink; a flake report on every visual run.
@nexub/react
8.2: test floor. No new API.
- A smoke test renders every exported web (157) and React Native (93) component with no console errors and checks accessible names. A new export without a test fails CI.
- Behaviour tests for every component that had none: the 8 web gaps (ActionBar, Amount, DateTimePicker, Fieldset, FloatingInput, Kanban, ResizablePanels, ScrollProgress) and 41 React Native components, overlays and inputs first.
- Coverage is reported and gated in
@nexub/react,@nexub/patterns,@nexub/marketingand@nexub/react-native, with thresholds at today's numbers. They only go up. - Fix: the outside-PR auto-close (8.1) closed maintainers' own PRs when their org membership is private. It now closes only PRs from forks.
- Fix (React Native): a disabled
Slidernow reportsdisabledto screen readers, and VoiceOver/TalkBack increment/decrement no longer change it.
@nexub/react
8.1: docs foundation. No library API changes.
- The docs fail CI on ad-hoc font sizes (
text-[2rem]) and raw<pre>, and a browser check holds one size per heading level and 13px code on six pages in both themes. - Component pages say "Added v… · updated v…" instead of an unlabelled version range, and on-load section reveals no longer fade in from blank.
- Feedback goes through issue forms (bug or glitch, feature, docs, accessibility) and GitHub Discussions. Pull requests from outside the maintainer team are closed automatically with a pointer to the forms; see CONTRIBUTING.md. Glitches are triaged within 14 days.
@nexub/react
8.0: new defaults. No new features. Every change below shipped as an opt-in in 7.x, and npx nexub-migrate --rules changes-in-8 reports where your code is affected. See "Migrating to 8.0" in the docs.
- Signature is the default look. Set
data-style="classic"on<html>or any wrapper to keep the 7.x Material-derived look until 9.0;data-style="signature"inside a classic wrapper switches back. React Native:NexubNativeProviderdefaults tostyle="signature"(style="classic"keeps 7.x). scrollLockdefaults to"class"onDialog.Root,AlertDialog.Root,Drawer.Root/Sheet.RootandCommandPalette: no injected<style>, so it works under a strict CSP. It needs@nexub/themes/base(thehtml.nexub-scroll-lockrule).scrollLock="style"keeps Radix's lock.safeHrefis strict by default, and so is every Nexub link that uses it: only relative URLs,#…, http(s),mailto:,tel:andsms:render.safeHref(url, { strict: false })allows custom schemes again (script-capable schemes stay blocked).- Removed: the legacy motion tokens
--duration-{instant,fast,normal,slow,slower}and--ease-{linear,in,out,in-out,out-expo,spring}(deprecated in 7.3). Use the spring tokens, e.g.var(--motion-spring-effects-default-duration)andvar(--motion-spring-effects-default-easing). - Removed: the
easingprop onFade,Scale,SlideandCollapse(deprecated in 7.3).durationrides the spring tokens.
@nexub/react
7.9: the Signature look (opt-in) and the 8.0 release candidate.
- New
data-style="signature"on<html>(or any subtree): the same contrast-guaranteed role engine with Nexub's own face. Neutral grey surfaces with a faint warm outline instead of lavender tints, 10px controls and fields with 16px cards, a primary seeded from the Nexub brand indigo, neutral-tinted tonal containers instead of pastels, tighter display tracking, tabular numerals in tables, and crisper hairline elevation. Chips, toggles, segmented controls and pill tabs stay full pills (--shape-pill). Every role pair is tested for WCAG AA in both styles. - Under Signature,
Switchis a full-thumb switch; radio dots and checkbox ticks animate in on the springs. - React Native:
<NexubNativeProvider style="signature">. - 8.0 RC: every 7.x deprecation is frozen with its removal version;
nexub-migrate --rules changes-in-8reports what 8.0 changes in your code; new docs page "Migrating to 8.0". In 8.0 Signature becomes the default (data-style="classic"keeps today's look),scrollLock="class"and strictsafeHrefbecome the defaults, and the legacy motion tokens andeasingprop are removed.
@nexub/react-native
7.8: native smoothness.
BottomSheet: the drag feeds Reanimated shared values and carries the release velocity into the snap or close spring; a quick downward flick closes it. Closing is a spring whose completion unmounts the sheet (no timers). A fling now snaps toward the detent it was heading for.Toastenters and leaves on the nx springs and can be swiped away sideways (velocity-aware).- Ported from web 7.4–7.6:
Buttonspinner delay (150ms show / 400ms minimum),Skeleton animation="shimmer"and newSkeletonText,Avatar status,Progress segments,TextField clearable/showCount/loading,Switch loading,Badge count+max,EmptyState size. - Drags still read touches on the JS thread (PanResponder) because
react-native-gesture-handlerisn't a dependency; the animation itself runs on the UI thread.
@nexub/brand
App icons: redrawn as one family of violet line glyphs on the same tile. Dark tiles are dark glass, and -light.svg tiles are now plain white (previously white glass). The per-app colours are gone, and the hub tile carries the Nexub mark in violet. New tiles for Mind (app-icon-mind*), Go (app-icon-go*) and Verify (app-icon-verify*), with iOS and Android icons. File names are unchanged, so apps pick up the new look on upgrade. The docs add an Icons gallery under Foundations and an app icon grid on "Using the brand assets".
@nexub/react
7.7: reorder and data at scale.
SortableandKanbandrag with Pointer Events (mouse, pen and touch) instead of native drag-and-drop: a drop line, items settle on the spatial spring, edge auto-scroll, and Escape or a cancelled pointer puts the item back. Alt+Arrow keyboard moves are unchanged.DataTablerow reorder now drags from the grip only.DataTablerows are memoised, so selecting a row or re-rendering with equal data no longer redraws every row. Cell renderers should depend only on their row andcolumns; if a renderer reads other state, include it in thecolumnsmemo.DataTable: controlled and server-side sort and pagination:sort/onSortChange/manualSort,page/pageSize/onPageChange/manualPagination/rowCount.- The DataTable "View" menu loads only when
viewOptionsis used. FilterBuilderrenders its rule tree from a deferred value and keeps every keystroke;FilterBardocuments theuseDeferredValuerecipe for big lists.- New perf tripwire (
pnpm --filter @nexub/react test:perf, also part of the visual CI job): filtering 1,000 DataTable rows, typing in a 1,000-option Combobox and moving a Kanban card must stay under 200 ms per interaction with no long task over 100 ms.
@nexub/react
7.6: rich surfaces and navigation.
Dialog.Content:showClose(+closeLabel),sheet(trueor'auto': a bottom sheet belowmd); newDialog.Bodyscrolls while Header and Footer stay put, with hairlines that appear as you scroll (CSS scroll timeline; always shown where unsupported); a nested Dialog steps its parent back.Tabs.List: overflowing lists fade at the scrollable edges and keep the active tab in view (without scrolling the page);variant="pill".Tooltip:labelaccepts any node, plusdescription,shortcut(a Kbd) andarrow. A Tooltip now works without an app-levelTooltipProvider.IconButton:loadingandtooltip(trueshows thelabel). The tooltip code loads only when used.Badge:dot,count+max("99+", full number for screen readers) with a tick when the count changes.CommandPalette: pages (CommandPalette.Page,Item page, Backspace goes back),loading, and opt-in recents (recentKey).EmptyState.Root:size(sm/md/lg) and opt-inanimate.- New message:
recent.
@nexub/react
7.5: rich inputs.
Input:clearable,showCount(withmaxLength; announced only near the limit) andloading.Select:Root clearable,Item description(the option's accessible description), andContent searchable(a filter field at the top; typeahead is unchanged when it's off).Switch:loading(spinner in the thumb, can't toggle) andcheckedIcon/uncheckedIcon.Combobox.List loading; the list height animates as results change (also Autocomplete and MultiSelect).DatePicker:typeable(type a date in the locale's short format; invalid text is marked, the value is kept),presets,disabledDates, and a month crossfade.Slider:marks(ticks and labels, RTL-aware),showValue(trueor'hover') andformatValue(also setsaria-valuetext).FileUpload: image previews, paste to upload (through the sameaccept/maxSize/validatechecks), and items that grow in and collapse out. A removed file now leaves after its exit animation, so tests that assert right after clicking Remove needwaitFor.- New messages:
clear,characterCount.
@nexub/react
7.4: feedback and loading.
Button: the loading spinner waits 150ms before showing and then stays at least 400ms (no flicker);successLabelno longer changes the button's width;type="submit"inside a pending React 19<form action>shows loading on its own (useFormStatus).- New
useAsyncAction(fn)→{ run, pending, error, reset }: latest call wins, errors are captured, nothing updates after unmount. toast.promise(promise, { loading, success, error })andtoast.update(id, partial); aloadingtone; tone icons (icon={false}hides them);showProgresscountdown bar that pauses with the timer; a quick flick dismisses even under the distance threshold.Skeleton animation="shimmer"and newSkeletonText(lines), one line-height per line so the swap to real text doesn't shift.DataTable:loading(skeleton rows,aria-busy) andemptyState.Avatar: images fade in once loaded (server-rendered and cached images show at once);status(online/away/busy/offline) with the label in the accessible name.Progress:variant="circular"andsegmentsfor step-style progress.
@nexub/react
7.3: Motion 2, one motion source.
@nexub/tokens/tailwind.csssets--default-transition-duration/--default-transition-timing-functionto the effects spring, so a baretransition/transition-colorsuses the spring tokens instead of Tailwind's 150ms ease. The last rawduration-*/ease-*classes are gone, and araw-motiondesign-lint rule keeps them out.- The legacy
--duration-*/--ease-*tokens (tokens/motion.json) and the Motioneasingprop are deprecated, removed in 8.0. Collapseanimates grid rows (0fr→1fr) instead of measuringscrollHeightin JS; content that grows while open just grows. Same props.NavigationMenu's viewport resizes between items on the spatial spring instead of snapping.Tabs:orientation="vertical"is styled (indicator on the inline-end edge), and the incoming panel crossfades (@starting-style).startViewTransitionflushes React state inside the transition (flushSync), so the snapshot is never stale, and returns a promise that resolves when the transition finishes.- Thick glass overlays fade in without scaling.
@nexub/react
7.2: secure by default.
- New
safeHrefandsafeSrc(also@nexub/react/safeHref). Every consumer-supplied link and image URL now goes through them:Breadcrumb,MediaCard,CardLink,Avatar, and the navs/links inAppHeader,NotificationItem,NotificationCenter,SettingsPage,SettingsLayout,PlanCard,AppLauncher,MarketingNav,MarketingFooter.javascript:,vbscript:,data:andfile:links are dropped; images allow relative, http(s),blob:anddata:image/*.safeHref(url, { strict: true })allows only web, mailto, tel and sms; it becomes the default in 8.0. - New
NexubProvidernonce: hands your CSP nonce to the<style>tags Radix overlays inject, so every overlay works understyle-src-elem 'nonce-…'. - New
scrollLock="class"onDialog.RootandAlertDialog.Root(already on Sheet/Drawer and CommandPalette): no<style>at all. It becomes the default in 8.0. - New
FileUpload.Rootvalidate(file): return a message to reject a file (reason'custom'). PasswordInput: the reveal button keeps one name ("Show password") and reports its state witharia-pressedandaria-controls. ThehidePasswordmessage is deprecated (removed in 9.0).ThemeScript: a stored product brand is applied only when it's a known product.
@nexub/react
7.1: lock down CI.
- Releases are built in a job with no secrets. Publishing uses only npm trusted publishing (OIDC) on that build output, and each release now carries an SPDX SBOM on its GitHub release.
- CodeQL (JavaScript/TypeScript and GitHub Actions) and OpenSSF Scorecard run on every change to
developmentand weekly. Avatar: after an image fails to load, a newsrcis tried again instead of staying on the fallback.
@nexub/react
Security and bug fixes.
PasswordInput: revealed text no longer reaches browser spellcheck, autocorrect or autocapitalize (spellCheck={false},autoCorrect="off",autoCapitalize="off", which can't be overridden).autoCompletenow defaults tocurrent-password; passautoComplete="new-password"on sign-up forms.Progress: leaving outvaluenow renders the indeterminate state as intended (noaria-valuenow, a sliding segment). Previouslyvaluedefaulted to 0, so indeterminate never showed.value={0}is unchanged.- @nexub/icons@7.0.1
- @nexub/core@7.0.1
@nexub/themes
Security and bug fixes.
PasswordInput: revealed text no longer reaches browser spellcheck, autocorrect or autocapitalize (spellCheck={false},autoCorrect="off",autoCapitalize="off", which can't be overridden).autoCompletenow defaults tocurrent-password; passautoComplete="new-password"on sign-up forms.Progress: leaving outvaluenow renders the indeterminate state as intended (noaria-valuenow, a sliding segment). Previouslyvaluedefaulted to 0, so indeterminate never showed.value={0}is unchanged.- @nexub/tokens@7.0.1
@nexub/react
7.0: consolidate.
- Breaking:
StepIndicatoris removed from @nexub/patterns. Use<Stepper orientation="vertical" current={…}>from @nexub/react (currentStepbecomescurrent;stepsworks as is). - Breaking: Autocomplete's
modeprop and its inline layout are removed. The popover (the default since 6.0) is the only layout; for an always-open list, use the Combobox parts. nexub-migrate:removed-in-7now reports any Autocompletemode;keep-5-defaultsno longer pinsmode="inline".- See Getting Started → Migrating to 7.0.
@nexub/react
7.0 release candidate.
- Deprecated, removed in 7.0:
StepIndicator(@nexub/patterns), use<Stepper orientation="vertical" current={…}>from @nexub/react; and Autocomplete'smode="inline"(and somode), the popover stays. Stepper: a step'sidis optional (the label is the key), so a StepIndicatorstepsarray works as is.nexub-migrate: new default ruleremoved-in-7reports<StepIndicator>and<Autocomplete mode="inline">.- Docs: Migrating to 7.0.
@nexub/react
Accessibility proof 4.
- Screen-reader test scripts (VoiceOver, NVDA) for Form, TreeView, Sortable / Kanban, ResizablePanels and EventCalendar on Foundations → Accessibility.
- Every 6.x component has Storybook stories, so axe (WCAG 2.2 AA) runs on each in light and dark in CI.
- RTL keyboard tests: TreeView, ResizablePanels and Kanban follow the reading direction.
@nexub/react-native
React Native parity for 6.x.
TreeList(new): the web TreeView on mobile, as drill-down lists with a back row; leaves are picked like radio rows.StepProgress(new): the web Stepper on mobile: segments and "Step 2 of 4: Billing", read as a progress bar. (The existingStepperstays the − value + control.)SortableList(new): the web Sortable on mobile: Move up / Move down buttons whileediting, and the same moves as VoiceOver and TalkBack actions on every row.InlineEdit(new): text that turns into a field when tapped; Return or leaving the field saves.- Docs: native twins for TimePicker and DateTimePicker (
DateTimeFieldwithmode="time"), TreeView, Sortable, Stepper and InlineEdit, with live mobile previews. - New messages:
moveUp,moveDown,backTo.
@nexub/react
Inbox, export and zoom.
NotificationCenter(new, beta, patterns): a bell with an unread count ("Notifications, 3 unread") that opens the notification list in a popover, with "Mark all as read", dismiss and an empty state. Your app owns the notifications.NotificationItem:hreforonSelectmakes the whole item a link or a button (the dismiss button stays separate).toCSV(rows, columns)(new): CSV text per RFC 4180 with CRLF line ends. Cells that start like a spreadsheet formula (=,+,-,@) get a leading', so exports can't run formulas.ChartZoom(new, beta): zoom any chart to part of its range with a two-thumb slider and a reset button. Only the wrapper is a client component; charts stay server-rendered.- New messages:
notificationCenter,unreadNotifications,markAllRead,noNotifications,zoomStart,zoomEnd,resetZoom.
@nexub/react
Reorder.
Sortable(new, beta): a list people reorder by dragging an item or with Alt+ArrowUp/Down on its handle. Focus stays on the moved item's handle and every move is announced ("Alpha moved to position 3 of 5").Kanban(new, beta): columns of cards. Drag cards, or Alt+ArrowUp/Down within a column and Alt+ArrowLeft/Right across columns (mirrored in RTL). Columns are regions named by their headings.DataTable:onRowOrderChangeadds a row handle column for the same drag and Alt+Arrow moves;getRowLabelnames rows. Handles hide while a column is sorted.- Built on the native drag-and-drop API, the same model as DataTable column reordering: no new dependency.
- Icons:
GripVertical. - New messages:
moveItem,reorderHint,itemMoved,itemMovedToColumn.
@nexub/react
Layout and flow.
ResizablePanels(new, beta): panels with draggable separators (ARIA window splitter). Arrow keys move a focused separator by 5% (mirrored in RTL), Home/End to its limits, Enter back to the default split.sizes/onSizesChangein percent so your app can persist the layout;minSizesper panel; horizontal or vertical.Stepper(new, beta): progress through a multi-step flow.current,completed, andonStepChangemakes reachable steps clickable (linear by default,nonLinearto allow any). Each step reads "Step 2 of 4: Billing", with "completed" when done. Horizontal or vertical. It will replace the patternsStepIndicatorin 7.0.ActionBar(new, beta): save / cancel that stay in view at the bottom of a long form, with a polite statusmessage.- New messages:
stepOf,stepCompleted,resizePanels.
@nexub/react
Hierarchy.
TreeView(new, beta): an ARIA tree. Arrow keys move, open and close (mirrored in RTL), Home/End jump, typing finds an item, and the tree is one tab stop. Single selection, orcheckablewith tri-state parents (checkedlists every checked id).hasChildren+onLoadChildrenload children on first open, with the itemaria-busymeanwhile.DataTable:getSubRowsmakes a tree table. The first column gets an expand toggle and indents each level;expanded/defaultExpanded/onExpandedChangecontrol it. Withpagination, a parent and its children stay on one page.- New messages:
expandRow,collapseRow.
@nexub/react
Time.
TimePicker(new, beta): a time field on the native<input type="time">. Value is 24-hour"HH:mm"; the display is 12 or 24 hours from the reader's locale;minuteStepsets the arrow-key and picker step; phones open their own picker.DateTimePicker(new, beta): aDatePickerand aTimePickerthat edit oneDate(local time).defaultTimefills the time when the date is picked first;timeZonenames the zone next to the fields.EventCalendar(new, beta): month and week grids of events ({ id, title, start, end?, allDay?, tone? }). Multi-day events show on each day, month view collapses extras into "N more", the week starts on the locale's first day, and Today / previous / next / Month–Week controls are built in. Display only:onEventClickandonDayClickhand the action to your app.- New messages:
dateLabel,timeLabel,previousWeek,nextWeek,calendarView,monthView,weekView.
@nexub/react
Forms 2.0.
Form(new, beta): validates on submit with the browser's constraint validation (required,type,pattern,min…) plus an optionalvalidate(data)for your own rules (zod plugs in here). Messages show on the matchingFormFieldbyname, the first invalid field takes focus, a field's error clears as you edit it, andonInvalidSubmithands the list toErrorSummary. An asynconSubmitmarks the formaria-busy;useForm()reads{ errors, submitting }.FormField:Rootwith anameinside aFormpicks up that field's error (invalid, andFormField.Errorshows the message when it has no children).Fieldset(new, beta): native<fieldset>and<legend>with an optional description;disableddisables every control inside.InlineEdit(new, beta): text that becomes an input on click. Enter or blur saves, Escape reverts, focus returns to the text; a rejectedonSavepromise keeps it open and invalid.useUnsavedChanges(dirty)(new): asks the browser to confirm before the page unloads while there are unsaved changes.- New message:
editField.
@nexub/react
6.0: enterprise defaults. Three opt-ins from 5.x are now on by default. No component is removed and no prop is renamed. See Migrating to 6.0, and run npx nexub-migrate src --rules keep-5-defaults --write to keep 5.x behaviour.
- Autocomplete opens its list in a popover anchored to the field (
modedefaults to'popover'). Setmode="inline"for the 5.x inline list. - DataTable / DataTableVirtual with
enableRowSelectionshow the checkbox column, with select-page and "Select all N" (selectionColumndefaults totrue). SetselectionColumn={false}if you render your own checkboxes. - FilterBar names its search field from
searchPlaceholder(without a trailing "…") whensearchLabelisn't set, instead of the generic "Search".
@nexub/react
6.0 release candidate. Feature freeze: 5.9 adds no components; it prepares the three default changes in 6.0.
- Migrating to 6.0 (docs): what changes and what to do. Autocomplete opens in a popover by default, DataTable with
enableRowSelectionshows the checkbox column by default, and FilterBar names its search field fromsearchPlaceholderwhensearchLabelisn't set. nexub-migrate --rules keep-5-defaults: an opt-in rule that keeps 5.x behaviour by addingmode="inline"andselectionColumn={false}where 6.0 would change it. Tags with a prop spread are reported, not changed. It is not part of the default run.- Prop docs for
Autocomplete modeandFilterBar searchLabelnow state their 6.0 defaults.
@nexub/react
Accessibility proof for the 5.x components.
DataTable grid: an ARIA grid keyboard model for tables whose cells hold actions. The table becomes one tab stop; Arrow keys move between cells and the controls inside them, Home/End go to the row ends, and Ctrl+Home/End go to the corners. RTL mirrors Left and Right. Works with DataTableVirtual.- Calendar day names (DatePicker, DateRangePicker): days are now named with Intl's full date ("Monday, November 2, 2026") instead of the ordinal "2nd", so the visible number is part of the name (WCAG 2.5.3, for voice control).
- CommandPalette separators no longer use
role="separator"inside the listbox (ARIA allows only options and groups there). - axe on open popups: CI now opens MultiSelect, Autocomplete, SavedViews, DateRangePicker, CommandPalette, AlertDialog Confirm and the DataTable View menu, then scans them. Popups render outside the story root, so they were never scanned before.
- Screen-reader test scripts: step-by-step VoiceOver and NVDA checks for 10 complex components, on the Accessibility conformance page.
@nexub/react
React Native parity for the 5.x data components.
DataList(React Native): the mobile form of DataTable. One row per record with its key fields (no sideways grid), a Sort sheet (one sort plus direction), and a selection mode with a count andbulkActions. Built on FlatList.MultiSelect(React Native): a field that opens a sheet of checkbox rows, with search above 8 options. The field summarises the picks ("Bug, Design, +3 more").FileList(React Native): files picked for upload with size, progress, errors, and remove or cancel. Bring your own picker (for example, expo-document-picker).FilterSheet(React Native): the web FilterBuilder in a sheet. It edits one flat AND/OR list and keeps nested web groups untouched.- Shared filter model:
FilterGroup,FilterRule,FilterField,filterOperators,countFilters,emptyFilter,newFilterRuleandisFilterGroupnow live in@nexub/core. Both@nexub/reactand@nexub/react-nativere-export them, so saved queries move between platforms. No API change for web. - New messages:
sortBy,sortDirection,ascending,descending. - Docs: web DataTable, MultiSelect, FilterBuilder and OTP Input pages now show their mobile twins with live previews.
@nexub/react
States and safety.
EmptyStatePreset(new): ready-made empty states (noData,noResults,noAccessfor 403,serverErrorfor 500,offline), with an icon, localised title and description, and optionalactions. Errors are announced.EmptyStateitself stays a server component.AlertDialog.Confirm: type-to-confirm for irreversible actions. The Action button stays disabled until the giventext(for example, the resource name) is typed.OTPInput(new, beta): one box per digit withautocomplete="one-time-code", so codes from SMS fill every box. Supports paste-to-fill, Backspace and arrow keys,onComplete,mode="alphanumeric",invalidandnamefor forms.FileUpload.Item:progress(0–100) shows a bar,onCancelswaps the remove button for "Cancel upload" while uploading, anderrorshows why a file failed. Your app does the upload.- Icons:
Inbox,ServerCrash,WifiOff. - New messages:
emptyStates,typeToConfirm,verificationCode,uploadProgress,cancelUpload.
@nexub/react
Filters and views.
FilterBuilder(new, beta): builds AND/OR filter queries with nested groups (maxDepth, default 1). The output is plain JSON (FilterGroup/FilterRule), which your app runs. Field typestext,number,selectanddateeach get their own operators and value input. Helpers:emptyFilter,countFilters,isFilterGroup,filterOperators.SavedViews(new, beta): a menu to switch, save (asks for a name), update and delete views. UI only: your app stores them.DateRangePicker:presets(truegives Today, Last 7 days, Last 30 days, Month to date and Last month, or pass your own) andtimeZone, shown under the calendar and used to count "today".todayIn(zone)is exported.FilterBar(patterns):activeCountshows "N filters", andonClearAlladds a Clear all button.- Docs: removed DateRangePicker props that never existed (
numberOfMonths,error). - New messages for presets, the filter builder, saved views and the filter bar.
filterOperatorsis one object: overriding it replaces all its labels.
@nexub/react
DataTable 2.0, part 2: layout and scale.
- Resize:
enableColumnResizing, withcolumnSizing/onColumnSizingChange. Drag a header's edge. The handle is a focusable separator: Arrow keys resize by 16px and double-click resets. RTL-aware. - Reorder:
enableColumnReordering, withcolumnOrder/onColumnOrderChange. Drag headers, or press Alt+Arrow on a focused header, and the move is announced. - Pin:
columnPinning/onColumnPinningChange({ left, right }). Pinned columns stay in view with an edge line, and the selection column pins with them. - Sticky header:
maxHeightcaps the table's height. Rows scroll and the header stays in view. DataTableVirtual(new, beta), imported from@nexub/react/DataTableVirtual: renders only the rows in view, for thousands of rows. Rows carryaria-rowindexand the tablearia-rowcount. It needs@tanstack/react-virtual, an optional peer dependency, so apps that don't use it don't install it.- Sizes and offsets are set through the CSSOM, not style attributes, so strict-CSP pages work.
- New messages:
resizeColumn,columnMoved.
@nexub/react
DataTable 2.0, part 1: selection and density.
selectionColumn(withenableRowSelection): a checkbox column. The header checkbox selects the page and shows a mixed state for partial selections. With pagination, a selected page offers "Select all N" across pages. On by default from 6.0.- Controlled selection:
rowSelection/onRowSelectionChangeandgetRowIdfor stable ids. bulkActions(rows, clear): a floating bar while rows are selected, with the count (announced), your actions and a clear button.- Multi-sort order: Shift+click sorts by more columns. Each sorted header shows its order (1, 2…), which is also read out.
- Density:
density/defaultDensity/onDensityChange(comfortableorcompact). - Column visibility:
columnVisibility/onColumnVisibilityChange. viewOptions: a "View" menu for density and which columns show.toolbarputs your own content (filters, a title) in the same row.- New messages:
selectRow,selectAllOnPage,selectedCount,selectAllRows,clearSelection,view,density,comfortable,compact,columns,sortOrder.
@nexub/react
Combobox 2.0 and MultiSelect.
MultiSelect(new, beta): pick several options, shown as chips in the field. Search filters the list. Extra chips collapse into "+N more" (maxVisibleChips, default 3). Backspace in an empty field removes the last chip. Options carryaria-checked, and each chip has a "Remove ‹label›" button. Also supportsonInputChangefor fetching as you type,onCreateandloading.Autocomplete:mode="popover"turns it into a field whose list opens below it while typing.aria-expandedfollows the list. Inline stays the default until 6.0. NewonCreateadds a "Create “text”" option, andaria-labelanddisabledare supported.- Loading in Autocomplete and MultiSelect shows skeleton rows instead of text. "Loading" is still announced.
Chip: newremoveLabelprop for the dismiss button's accessible name.- New messages:
createOption,removeOption.
@nexub/react
Audit fixes and quick wins.
Bug fixes:
FileUpload: dropped files now go through the sameacceptcheck as the file picker. Before, a drop let any file type in. The check covers MIME types, wildcards (image/*) and extensions (.pdf), and is exported asfileAccepted. It's a UX filter, so keep validating on the server.Autocomplete: newinputValueandonInputChangeprops, so apps can fetch options as the user types. WithonInputChangeset, the options are shown as given, without built-in filtering.FilterBar: the search field now has an accessible name (searchLabel, defaulting to the localised "Search"). It's now aSearchInputwith a clear button and a localised placeholder.
New:
FileUpload.Root:maxSize(bytes) andonReject. Files rejected for type, size ormaxFilesget a message under the drop zone that screen readers announce. New messages:fileTypeRejected,fileTooLarge,tooManyFiles.Toaster:positionprop with six positions (top-start…bottom-end). Start and end follow the reading direction. Default is stilltop-end.Drawer.HeaderandDrawer.Footerare sticky on solid panels, so long content scrolls under them. Glass panels are unchanged.CommandPalette.Root:shortcutprop. For example,shortcut="k"toggles the palette with Cmd+K or Ctrl+K. Off by default.Breadcrumb.Trail: builds a breadcrumb fromitemsand moves the middle of long paths into a "More" menu (maxItems, default 4).
@nexub/react
Combobox and Autocomplete no longer scroll the page to their highlighted item when they mount. An inline list below the fold used to pull the window down to itself on load; the highlighted item now scrolls into view inside the list only.
- @nexub/icons@5.0.1
- @nexub/core@5.0.1
@nexub/react
5.0: Vivid by default, React 19.
- Vivid is the default expression.
ThemeProvidersetsdata-expression="vivid"on<html>when the app has not set one. Import@nexub/themes/vividto see it. Keep the 4.x look withdata-expression="calm"on<html>or<ThemeProvider defaultExpression="calm">. Calm stays fully supported. - React 19 required.
reactandreact-dompeers are now>=19 <20in@nexub/react,@nexub/patternsand@nexub/marketing. - The 4.9 development warnings are removed. No component API changes. See /getting-started/migrating-to-5.
@nexub/react
5.0 release candidate. The API is frozen until 5.0, which changes only what this release warns about.
- Vivid becomes the default in 5.0 for apps that do not set
data-expression.data-expression="calm"is now an explicit value: set it on<html>to keep today's look after 5.0.ThemeProviderwarns once in development when nodata-expressionis set. - React 18 support is deprecated; 5.0 requires React 19.
ThemeProviderwarns once in development on React 18. - New guide: Getting started → Migrating to 5.0.
@nexub/react
Agent UI kit.
PlanTracker: an agent's plan as ordered steps (done, active, pending, failed), with each status read out andaria-current="step"on the active one.ToolCall: one tool call, its name and a status badge, expandable to its input and output. A native<details>, so it opens from the keyboard with no JavaScript.ApprovalCard: the agent asks before it acts. Approve or Deny, called back once, with the outcome announced.DiffView: a unified diff for proposed changes, with added and removed lines spelled out for screen readers.PlanTracker,ToolCallandDiffVieware server components.
@nexub/react
Docs site remix and useScopedSeed.
useScopedSeed(ref, seed): recolours one element and everything inside it from a brand seed, like<ThemeProvider seed>but scoped, for previewing a customer brand on one card or section. CSP-safe (CSSOM) and lazy-loads@nexub/tokens/seed.- nexub.design landing: the hero now runs on the library itself, with
Auroraand Vivid. A "Remix this page" bar recolours it live from six brand seeds and switches between Calm and Vivid, with a link to the theme builder.
@nexub/react
Shape, Glass 3.0 and interactive legends.
- Squircle corners:
data-shape="squircle"on any area gives its rounded corners the continuous, Apple-style curve where CSScorner-shapeis supported; other browsers keep normal round corners. - Glass 3.0 edge: a specular rim that catches light like a lens. On by default for glass surfaces under
data-expression="vivid"; anywhere else addnx-glass-edge. Off for reduced transparency and forced colours. ChartToggle: wraps any chart with a legend whose entries are toggle buttons (aria-pressed). Colours stay stable as series hide, and the last series always stays on.
@nexub/react
Charts 2.0.
Gauge: progress toward a target on a 270° arc, with the value in the centre.Heatmap: intensity over a grid (activity by weekday and week, load by hour) in seven steps of the sequential chart palette.Funnel: drop-off through ordered steps, with conversion from the first step in the data table.KpiTile: a headline number with its change versus last period (green or red,invertfor metrics where down is good) and a sparkline.- Crosshair: hovering a category in
BarChartandLineChartnow draws a vertical guide through it alongside the tooltip. - All are server components with no style attributes, palette colours, and a hidden table or caption for screen readers.
@nexub/react
Page and state transitions.
SharedElement: gives its child aview-transition-name(through the CSSOM, so CSP-safe). Wrap the same thing on both sides, say a list avatar and the detail avatar, run the change instartViewTransition(), and the browser morphs one into the other.ScrollProgress: a thin bar along the top that fills as the page scrolls, driven by a CSS scroll timeline. No JavaScript, server component, the Vivid gradient underdata-expression="vivid". Hidden where unsupported and under reduced motion.FloatingInput: the label sits inside the empty field and floats above the value on focus or input. Pure CSS, server-safe, and the label stays a real<label>.
@nexub/react
Micro-interactions.
Card effect="tilt": the card leans toward the pointer in 3D while the sheen catches the light.Button magnetic: the button drifts a few pixels toward the pointer. For one key action per screen.Celebrate: a short confetti burst in the chart palette for a real win (first payment, onboarding done). Decorative, so announce the win in text too.- Pure CSS details: the Switch thumb stretches toward where it is going while pressed; a field shakes once when it becomes invalid (
aria-invalid); the focus ring on controls pops out instead of appearing. - Pointer effects run only with a fine pointer; everything is off under reduced motion. Pointer positions go through the CSSOM, so it all stays strict-CSP safe.
@nexub/react
Vivid: the opt-in expressive layer.
@nexub/themes/vividwithdata-expression="vivid"on<html>or any area. Everything is scoped to that attribute, so apps that never set it are unchanged.- Accent gradient from your primary colour, sweeping 50° round the hue wheel at the same lightness (blue to violet, green to teal), so every brand gets its own pair and on-primary text keeps its contrast. Filled buttons get the gradient, a soft accent glow and a small lift on hover; switches, checkboxes, radios and progress bars use it too.
- Tinted depth: elevation shadows take the accent instead of grey, and interactive cards pick up a gradient edge and glow on hover. Controls get a soft accent halo around the focus ring.
Aurora: a new decorative background of slow-drifting colour fields from your accent roles (deeper and more saturated in dark mode). Server component,aria-hidden; still under reduced motion, hidden in forced colours.- High contrast turns the gradients into flat fills and removes the glow. Browsers without CSS relative colours keep the flat fills.
ButtonandCardnow exposedata-variantas a styling hook.- New docs page: Foundations → Expression, with Calm and Vivid side by side.
@nexub/react
Quality first: full test coverage and interactive charts.
- Every component is now covered by the automated accessibility run. The 24 components and marketing sections that had no Storybook story (the charts, MoneyInput, NavigationRail, Sheet, SplitButton, Float, Marquee, Reveal and every
@nexub/marketingsection) now have one, so axe-core (WCAG 2.2 A/AA, light and dark) and the screenshot suite run on them on every change.@nexub/react/accessibility.jsonreports 116 of 116 components covered. - Charts: negative values.
BarChartandLineCharttake values below zero: the axis spans zero, a zero line is drawn, and bars grow up or down from it (stacked bars stack positives and negatives separately). NewniceDomain(values)helper. - Charts: hover tooltip. Hovering a category highlights it and shows every series value, built from CSS over the plot, so the charts stay server components with no JavaScript and no style attributes. Screen readers keep the data table.
- Charts: draw-in. Bars grow from the zero line and lines reveal left to right on first paint (
.nx-chart-bar,.nx-chart-linein@nexub/themes), off under reduced motion. - MarketingNav accessibility (WCAG 2.5.3 Label in Name). The logo link no longer overrides its name with "Home"; it takes the logo's own name ("Nexub"), so it matches the visible wordmark.
logoLabelstill overrides it. The country switcher's name now starts with the visible code ("SG, Choose country: Singapore").
@nexub/react-native
4.0: removes what 3.9 deprecated, and nothing else.
- Removed: the Tailwind 3 preset (
@nexub/tokens/tailwind) and itstailwindcss-animatedependency. Use Tailwind 4 with@import "@nexub/tokens/tailwind.css"; the utilities keep their names. Thetailwindcsspeer is now^4.0.0.nexub-migrate --rules tailwind-3-presetstill finds any leftover import. - Removed: Expo SDK 57 support.
@nexub/react-nativenow needs Expo SDK 58 or later (expo-glass-effect,expo-hapticsandexpo-screen-capturepeers>=58.0.0). - No component API changed. If you were clear of the 3.9 warnings, 4.0 is a version bump. See Migrating to 4.0 in the docs.
@nexub/react-native
4.0 release candidate.
- The API is frozen until 4.0. 3.9 adds no features: only the deprecations below and fixes. 4.0 removes exactly these, and changes no component API.
- Deprecated: the Tailwind 3 preset (
@nexub/tokens/tailwind). It now logs a one-time warning when it loads, and its type is marked@deprecated. Move to Tailwind 4 with@import "@nexub/tokens/tailwind.css"; the utilities keep their names. - Deprecated: Expo SDK 57 for
@nexub/react-native. 4.0 requires Expo SDK 58 or later. nexub-migrateruletailwind-3-presetfinds every use of the Tailwind 3 preset (report only):npx -p @nexub/tokens nexub-migrate . --rules tailwind-3-preset.- New guide: Migrating to 4.0, with the removals, the codemod and the Tailwind 4 and Expo SDK 58 steps.
@nexub/react
Accessibility conformance report.
@nexub/react/accessibility.json: a WCAG 2.2 AA conformance report for every component and pattern, generated from the test suite and the docs at each release. Per component: the automated result (axe-core WCAG 2.2 A/AA on every Storybook story in light and dark: pass, pass with a documented exception, or not covered), the documented keyboard behaviour and the screen-reader notes. It also states the method and lists every accepted exception, for procurement and audit tooling.- Docs page: Foundations → Accessibility shows the report, with counts and a row per component. It is honest about the gaps: components no story renders yet are marked "not covered", and recorded screen-reader sessions are not published yet.
@nexub/tokens
Data and governance.
nexub-usage: a new CLI in@nexub/tokensthat counts which@nexubexports your code imports, per package and export, across one or more folders. Runnpx -p @nexub/tokens nexub-usage ./apps/web ./apps/adminfor a Markdown table or add--json. Share the result with the design system team so deprecations and codemods follow real usage.- Component status page at /components/status: every component and pattern with its lifecycle status on web and native (alpha, beta, stable, deprecated), the version it was added in and last changed in, and a count per status.
@nexub/tokens
SwiftUI and Jetpack Compose tokens.
@nexub/tokens/swift/NexubTokens.swiftand@nexub/tokens/compose/NexubTokens.kt: the tokens as native source. Each has a colour set per scheme and contrast level (light,dark,lightHighContrast,darkMediumContrast…) with every role (primary,onPrimary,surfaceContainerHigh…), plus spacing (space4), radius (radiusLg), shape, sizes and the type scale (typeBodyMd: size, line height, weight, tracking) in points or dp.- Built from the same resolved values as
@nexub/tokens/nativeand the web tokens, with a test that fails the build if they drift; the Swift file type-checks against the iOS 17 SDK. - Documented on Getting started → React Native.
@nexub/react
Toaster clears its pending "remove from the store" timers when it unmounts, so none fires after the tree is gone (it could throw in test environments after teardown).
- @nexub/icons@3.5.0
- @nexub/core@3.5.0
@nexub/tokens
Figma variables.
@nexub/tokens/figma/*: the tokens as Figma variables in the W3C Design Tokens (DTCG) format, one file per mode.color.<light|dark>.<standard|medium|high>.tokens.jsonholds every colour role and the four product brands resolved to hex;primitives.tokens.jsonholds spacing, radius, shape, sizes and the type scale as numbers. Import them with Figma's Import variables (one collection, six modes) or Tokens Studio.- Built from the same resolved values as
@nexub/tokens/native, and a test fails the build if they differ, so a Figma library made from them can't drift from the code. - New docs page: Getting started → Figma, with the import steps and download links.
@nexub/mcp
Docs for AI.
- MCP prompts.
@nexub/mcpnow offers two prompts next to its tools:build_screen(build a page or a React Native screen from a short description) andreview_screen(check UI code against the Nexub checklist and fix it). Each carries the guidelines, so the model has the rules without a separate tool call. In Claude Code they appear as/mcp__nexub-ds__build_screenand/mcp__nexub-ds__review_screen. - A Markdown version of every docs page. Each component and pattern page is also served as Markdown at the same URL plus
.md(for example/components/button.md), andllms.txtlinks to those versions, following llmstxt.org. Pages get Copy as Markdown and View as Markdown buttons for pasting into any AI chat. - New docs page: AI tools and MCP. How to connect the MCP server to Claude Code, Cursor, Windsurf or VS Code, the Claude Code plugin,
llms.txtandllms-full.txt, and prompts that work. - Pattern pages for the marketing sections now show the right import (
@nexub/marketing, not@nexub/patterns).
@nexub/tokens
Theme builder.
- nexub.design/foundations/theme-builder: pick one brand colour and see the accent family live on real components in light and dark, at standard, medium and high contrast. Every text pair is checked against WCAG 2.2 (4.5:1), including the accent on the actual surface. Export the theme as CSS, React (
<ThemeProvider seed>), React Native (<NexubNativeProvider seed>) or W3C design tokens (DTCG JSON). createSeedStylesheet(seed, { target, selector })in@nexub/tokens/seed: the whole seeded theme as one stylesheet, with all threedata-contrastlevels andprefers-contrast: more, layered like the built-in roles so the contrast switch works with your brand.createSeedTokens(seed, options): the seeded roles as DTCG JSON, one document per scheme, for Figma Variables, Tokens Studio or Style Dictionary.contrastRatio(a, b): the WCAG 2.x contrast ratio of two hex colours.
@nexub/react
Charts kit.
BarChart(grouped orstacked),LineChart(optionalarea),DonutChart(with acenterslot),SparklineandChartLegend. Charts takedatarows, anindexkey for the categories and aserieslist ({ key, label?, color? }), and colour each series from the categorical--color-chart-1…8palette, so they follow light, dark, high contrast and every product brand.- Server components with no dependencies. The charts are plain SVG with no hooks, so they render in React Server Components and ship no JavaScript (3.5 kB gzip for the whole kit). Geometry is SVG attributes only, so the server HTML is valid under a strict CSP.
- Accessible by default. Each chart is a
figurenamed bytitle, with a visually hidden data table holding every value. The legend and table name each series, so colour is never the only cue. Axis labels mirror in RTL. - Import from
@nexub/reactor per component from@nexub/react/Chart. Values are 0 or more; hover text is the native SVG title.
@nexub/react
Marketing mode and server components.
- Server components.
@nexub/reactis now compiled one file per module, each with its own'use client'or none, so presentational components (Heading, Text, Container, Section, Stack, Badge, EyebrowChip, Logo, Float, Marquee) render as React Server Components and interactive ones stay client components. Every component can be imported on its own (@nexub/react/Button), andcnfrom@nexub/react/cn. In Next.js, import per component or setoptimizePackageImports: a page with Hero, StatBand and CTABand went from 181 kB to 19.4 kB of page JavaScript.SplitButtonis a client component. Nothing changes for client-only apps. - New package
@nexub/marketing: Hero, SectionHeader, LogoStrip, StatBand and StatBandItem, TestimonialGrid and TestimonialCard, ProductGrid and ProductCard, HowItWorks, FeatureSplit, CTABand, FAQ, PricingTable, MarketingNav (mega-menu, country switcher, mobile sheet) and MarketingFooter (tools marquee). Server components except the nav, pricing and FAQ. @nexub/themes/marketing: the nexub.com look, only underdata-mode="marketing", so apps that don't set it see no change. Heavier headings, the hero backdrop, accent line, motion (rise, reveal, float, drift, ping, marquee, bar fill) on the spring tokens, and nothing moves under reduced motion.@nexub/themes/core:basewithout the fonts and the page backdrop, for apps that bring their own (Next.jsnext/fontsets--font-family-sansand--font-family-display).baseis unchanged.@nexub/themes/fontsis exported too.- Tokens: a
marketinggroup (hero button gradient on primary tones 45 → 40, glow, eyebrow gradient, 24px showcase card radius and shadows, floating-card shadow, accent line, lifts), thedisplay-xltype role (64/68, 800) andcontainer-marketing(1280px). - Components:
Button variant="hero",Card variant="showcase"withaccent,EyebrowChip variant="gradient"andlive,Container size="marketing",NumberTicker countOnView, and the newReveal,FloatandMarquee. Each looks like its plain variant outside marketing mode. - Patterns:
PlanCardtakesctaHrefto make its button a link. - React Native: the
display-xlrole maps tolargeTitle.
@nexub/react
Breaking: Banner, Callout, Tag and StatusPill are removed, along with BannerProps, CalloutProps, TagProps, StatusPillProps, bannerVariants, calloutVariants, tagVariants and statusPillVariants. They had been deprecated since 1.1. Use Alert and <Badge variant="soft"> instead. npx nexub-migrate src --write rewrites them, and reports the few uses it can't rewrite (StatusPill dot, the *Variants exports, uses outside JSX). See the Migrating to 3.0 page.
@nexub/tokens
Breaking: spacing, radius, shape, control heights, type sizes and line heights in @nexub/tokens/css are in rem by default, using the values of the 2.6 opt-in layer. At a 16px root they match the old px values. Remove any px font-size on html (such as 62.5% tricks), or everything shrinks with it. @nexub/tokens/css/rem stays importable but is now empty. The JS tokens and @nexub/tokens/native keep px and points.
nexub-migrate no longer rewrites --color-ring-default, --color-ring-offset or --color-accent-500, because brand themes override them; 2.9 changed them to --color-primary. Its alias table is now frozen, since @nexub/themes no longer declares the aliases.
Breaking: the legacy colour names are removed. These are the 57 names nexub-migrate's legacy-tokens rule rewrites (--color-text-primary, --color-bg-default, --color-success-500, --color-semantic-* …) and the 9 color-mix border aliases (--color-success-border, --color-semantic-success-border …).
@nexub/themesdrops their aliases frombase.cssandlight.css.@nexub/tokensdrops the old static values behind 35 of them: thecolor.bg,color.borderandcolor.semanticgroups, andcolor.textandcolor.surfaceapart fromtext.disabledandsurface.warm. They disappear from the CSS variables, the Tailwind preset andtailwind.cssutilities (bg-bg-default,text-text-primary…), the JS tokens andtokens.json. Without the themes' aliases they would have fallen back to light-only hex values, so removing them is the safer break.- Use the Calm Depth roles;
npx nexub-migrate src --writemoves CSS and class strings over. --color-ring-default,--color-ring-offsetand--color-accent-500stay, because brand themes override them.@nexub/themes/lightstays importable.@nexub/tokens/nativeis unchanged, since it only ever carried roles.
Breaking: html now has font-size: 100% instead of 16px, so the rem tokens follow the user's browser font size. Nothing moves at the browser default.
@nexub/tokens
nexub-migrate gains a deprecated-components rule for the 3.0 removals: Banner and Callout become Alert, Tag becomes <Badge variant="soft">, and StatusPill label="x" becomes <Badge variant="soft">x</Badge>. It also renames the *Props types and dedupes imports. It reports StatusPill dot, the *Variants exports and uses outside JSX. New docs page: Migrating to 3.0.
@nexub/react
API consistency. A shared Size type ('sm' | 'md' | 'lg') is exported and used by Flag, Label, SegmentedControl, NumberInput, CountryBadge and Logo; Amount and Dialog extend it. PasswordInput gains visible, defaultVisible and onVisibleChange so the reveal toggle can be controlled. SearchInput now uses useControllableState, with no change in behaviour.
Dependency upgrades. @nexub/icons now uses lucide-react 1.x; every exported icon keeps its name, and a few glyphs are redrawn upstream. DatePicker and DateRangePicker use react-day-picker 10; their props and behaviour are unchanged. The packages are now built with TypeScript 6.0, tsup 9 and vite 8.
@nexub/react
Component token tier. Button, the text fields (Input, Textarea, Select), Card and Badge now read component tokens such as --button-filled-bg, --field-border and --card-radius, each falling back to the role it used before, so nothing changes by default. Set one on any element to restyle that component below it, without changing the roles other components share. The tokens are unset by default, so nested data-theme, data-contrast and data-product keep working. The list is published in DTCG format as @nexub/tokens/json/component, and a test keeps it in step with the components.
ThemeScript takes an optional contrastStorageKey. When set, a stored contrast level (standard, medium or high) is applied as data-contrast before first paint, so a saved contrast choice doesn't flash. The docs header now has a contrast switcher (Auto, Medium, High) that uses it.
@nexub/react
Prebuilt CSS: import '@nexub/react/styles.css' gives you every style the components need (themes, product brands, the Inter and Plus Jakarta Sans fonts, the utilities they use), so you can use @nexub/react without Tailwind. It's all in cascade layers, so your own CSS always wins. Apps already on Tailwind 3 or 4 with the Nexub preset don't need it and keep working as before.
cn() now uses tailwind-merge 3. Class merging is unchanged: every cn() call made across the test suite (421 distinct inputs) gives the same result as on tailwind-merge 2. A bare outline still counts as the outline style, as Tailwind 3 reads it, so focus rings keep working in Tailwind 3 apps.
@nexub/patterns
Prebuilt CSS: import '@nexub/patterns/styles.css' after @nexub/react/styles.css to use the patterns without Tailwind. It carries only the classes the patterns add (about 4 kB gzipped).
@nexub/tokens
Opt-in rem layer. Import @nexub/tokens/css/rem after @nexub/tokens/css (and @nexub/themes) and spacing, radius, shape, type sizes, line heights and control heights switch to rem, compact density included. At the default 16px root nothing moves; when a user raises their browser's default font size, text, spacing and controls grow together. Hairlines (1px), capsules, shadows, icon sizes and breakpoints stay in px. rem becomes the default in 3.0; React Native keeps points.
@nexub/react
Start of the 3.0 runway (2.5.0).
Banner,Callout,TagandStatusPillnow log a one-timeconsole.warnin development naming their replacement (AlertorBadge) and the 3.0 removal, as GOVERNANCE.md requires before a removal. Production builds stay silent.NotificationItemandActivityFeedtake their accessible labels fromNexubProvidermessages: new keysunread,dismissNotificationandactivityFeed. The English defaults are unchanged.
@nexub/react-native
Native marks and SkeletonSwap for React Native.
@nexub/icons/nativenow has the Nexub marks under the same names as on web:NexubMark(variant="color"draws the brand gradient),LeapMark,BookubMark,PayubMark,FounderubMark,ACRA,IRAS,MCAandGST. They take the usualsize,colorandlabelprops.@nexub/react-nativeaddsSkeletonSwap, the twin of the web component: it crossfades from a skeleton to the loaded content in place on the motion springs, marks itself busy for screen readers while loading, and follows Reduce Motion. Content that is ready on first render shows without a fade.
@nexub/react
Release hardening (2.4.0). No API changes.
- Each
@nexub/react-nativepreview example is now checked on a real iOS simulator and Android emulator against committed screenshot baselines, so an unintended visual change fails CI the way web visual regression already does. The docs show the same screenshots under "On device" on native component pages. - Deprecated components (Banner, Callout, Tag, StatusPill) now have a removal target: 3.0. See GOVERNANCE.md for the status lifecycle (alpha → beta → stable → deprecated) and the deprecation policy.
Governance and component status. New GOVERNANCE.md: RFCs (when they are required and a template), who decides, the alpha → beta → stable → deprecated lifecycle with promotion criteria, and the deprecation policy (deprecate in a minor, remove only in the next major). The @deprecated JSDoc on Banner, Callout, Tag and StatusPill now says their removal is planned in 3.0 (it said 1.0); no behaviour change. The docs show a status badge on every component page, including Alpha on the React Native pages, and a "Deprecated — removal planned in 3.0" notice with the replacement on deprecated ones; the AI references in @nexub/mcp carry the same removal note.
- @nexub/icons@2.4.0
- @nexub/core@2.4.0
@nexub/mcp
Governance and component status. New GOVERNANCE.md: RFCs (when they are required and a template), who decides, the alpha → beta → stable → deprecated lifecycle with promotion criteria, and the deprecation policy (deprecate in a minor, remove only in the next major). The @deprecated JSDoc on Banner, Callout, Tag and StatusPill now says their removal is planned in 3.0 (it said 1.0); no behaviour change. The docs show a status badge on every component page, including Alpha on the React Native pages, and a "Deprecated — removal planned in 3.0" notice with the replacement on deprecated ones; the AI references in @nexub/mcp carry the same removal note.
@nexub/react
Published with npm trusted publishing (OIDC) from the Nexub-AI/nexub-ds release workflow, so every version now carries npm provenance: you can check on npmjs.com that it was built from this repository's source. No code changes.
@nexub/react
Sidebar.Footer now sticks to the bottom of the sidebar (sidebar surface, top border) while the items scroll. SettingsLayout takes a new navFooter prop, pinned to the bottom of the section sidebar and the phone section menu, e.g. navFooter="v1.2.0 · Updated 21 Oct 2026".
Tailwind CSS 4 support. Consumers on Tailwind 3 are unaffected: keep using the @nexub/tokens/tailwind preset.
@nexub/tokens: the optionaltailwindcsspeer now accepts^3.0.0 || ^4.0.0. The v4 theme (@import "@nexub/tokens/tailwind.css") now renders like the v3 preset in two places where it did not:max-w-sm…max-w-2xlare Tailwind's own scale again (24rem … 42rem). Before, they picked up the Nexub--container-*layout tokens of the same name and rendered much wider.max-w-container-*still map to the tokens.text-xs…text-4xlkeep v3's line-height lengths (text-sm= 1.25rem) instead of v4's unitless ratios, so components nested intext-sm(a badge in a table cell, for example) keep their height.
@nexub/themes:base.cssgives buttons the pointer cursor that Tailwind 3's preflight set and Tailwind 4's no longer does. It has zero specificity, socursor-*utilities still win.@nexub/react:Paginationpage buttons settabular-numsthemselves. The nav already asked for tabular figures, but on Tailwind 3 the buttons never inherited them; on Tailwind 4 they did. Both now show tabular figures.- The docs site and Storybook are now built with Tailwind 4. Getting Started documents both setups, including importing the theme CSS into the
baselayer on v4. - @nexub/icons@2.3.0
- @nexub/core@2.3.0
@nexub/tokens
Tailwind CSS 4 support. Consumers on Tailwind 3 are unaffected: keep using the @nexub/tokens/tailwind preset.
@nexub/tokens: the optionaltailwindcsspeer now accepts^3.0.0 || ^4.0.0. The v4 theme (@import "@nexub/tokens/tailwind.css") now renders like the v3 preset in two places where it did not:max-w-sm…max-w-2xlare Tailwind's own scale again (24rem … 42rem). Before, they picked up the Nexub--container-*layout tokens of the same name and rendered much wider.max-w-container-*still map to the tokens.text-xs…text-4xlkeep v3's line-height lengths (text-sm= 1.25rem) instead of v4's unitless ratios, so components nested intext-sm(a badge in a table cell, for example) keep their height.
@nexub/themes:base.cssgives buttons the pointer cursor that Tailwind 3's preflight set and Tailwind 4's no longer does. It has zero specificity, socursor-*utilities still win.@nexub/react:Paginationpage buttons settabular-numsthemselves. The nav already asked for tabular figures, but on Tailwind 3 the buttons never inherited them; on Tailwind 4 they did. Both now show tabular figures.- The docs site and Storybook are now built with Tailwind 4. Getting Started documents both setups, including importing the theme CSS into the
baselayer on v4.
@nexub/react
Motion on the spring tokens, web and native:
Fade,Slide,ScaleandCollapseride the spring tokens: opacity oneffects, movement onspatial, and a quicker exit that never overshoots.durationmaps to fast / default / slow springs. Passingeasingkeeps the old duration + easing tokens, so existing code can opt out. Under reduced motion they keep the fade and drop travel and scale.Drawer/Sheetslide on the springs instead of vaul's fixed 0.5 s curve. Exit is quicker, and the panel fades instead of sliding under reduced motion.- New
ListTransition: keyed items grow in, and removed items collapse and fade out in place. It works as<ListTransition as="ul" itemAs="li">. - New
SkeletonSwap: crossfades from a skeleton to the loaded content and setsaria-busywhile loading. - New
usePrefersReducedMotion()hook. @nexub/themes/base:nx-stagger(children rise in 40 ms apart), plus thenx-list-itemandnx-swapkeyframes the components use.@nexub/react-native:nxEnter,nxExit,nxLayout(Reanimated layout animations) andnxSpring(awithSpringconfig), built from the same spring tokens. All of them follow the OS Reduce Motion setting.- Native animations:
- Toast and Banner animate in and out.
ListSectionrows grow in and fade out while the other rows glide into place.SwipeableRowslides out toward the start edge when removed.Chipglides to its new width and its check pops in.- The
SegmentedControlpill slides between segments. Amounthas an opt-inanimateprop.- Skeleton pulses at the web rhythm.
@nexub/react-native
Page templates, paired web and mobile. @nexub/patterns adds full-page web twins of the native screens in @nexub/react-native/patterns, with the same data shapes (Transaction, Quote, ReviewRow, ChatMessage, Plan, QuickAction, Insight) so one data layer feeds both:
DashboardPage↔ new nativeHomeScreen: balance with quick actions, key figures, recent activity and insights (Payub-style home; native adds pull-to-refresh).ActivityPage↔ActivityList: grouped by day; Refresh and Load more stand in for pull-to-refresh and paging,rowActionsfor swipe actions.TransactionDetailPage↔TransactionDetail,SettingsPage↔SettingsScreen,SignInPage↔SignInScreen(passkey autofill),CheckoutPage↔AmountStep+ReviewStep+ResultScreen,ChatPage↔ChatScreen,PaywallPage↔PaywallScreen.- Each renders a
<main>landmark by default (as="div"inside an app shell), takesmessagesoverrides on top ofNexubProvidermessages, and works from 360 px to desktop.PageFrameis the shared frame.
@nexub/react
React Native support, foundations (MOBILE_PLAN.md, phase M1):
- New
@nexub/core: the strings, locale direction, money formatting and shared prop types (ToneValue,GlassMode, …), now shared by web and native.@nexub/reactre-exports everything it moved, so the web API is unchanged. @nexub/tokens/native: tokens for React Native. Dimensions as dp numbers, colour roles resolved to hex per contrast level × scheme (plus product remaps), elevation as per-schemeboxShadow, and springs as Reanimated configs. A test keeps them equal to the CSS.@nexub/tokens/seed:createSeedRoles(seed)returns the seeded family as{ light, dark }hex, for native.@nexub/icons/native: the same icon names as@nexub/icons, onlucide-react-native(an optional peer).- New
@nexub/react-native(alpha):NexubNativeProvider: scheme, contrast (follows iOS Increase Contrast / Android high-contrast text), product, seed, glass dial (off under Reduce Transparency), Reduce Motion, haptics, locale, RTL and strings.- Primitives:
Text/Heading(role type, Dynamic Type ramps),Pressable(state layer + 0.97 press spring + semantic haptics),Surface(tonal tiers, elevation, native Liquid Glass on iOS 26+ with a solid fallback),Box/Stack/Inline,IconandScreenContainer. nexubFontsforuseFonts(Inter, Plus Jakarta Sans, Geist Mono; OFL).
@nexub/react-native
React Native core components (MOBILE_PLAN.md, phase M2), alpha:
- Actions:
Button(filled/tonal/outlined/text/glass,tone, xs–xl,loading, icons),IconButton,ButtonGroup,Link. - Data:
Amount(Intl, tabular,tone="auto", herodisplay),Badge(solid/soft/outline,dot; covers web's deprecated Tag/StatusPill),Avatar,AvatarGroup,Divider. - Inputs:
TextField(label, helper, error in one),PasswordInput,SearchField,MoneyInput(locale parsing),Stepper,Checkbox,RadioGroup/Radio,Switch(the platform switch in Nexub colours),SegmentedControl,Slider,Chip/FilterChip. - Containers:
Card,ListItem(navigation/switch/checkbox/radio/button/value rows; one target, one screen-reader element),ListSection(inset-grouped),Accordion. - Feedback:
Banner,ToastProvider/useToast(one at a time, announced; 10 s when it has an action),Dialog,Progress(linear/circular),LoadingIndicator,Skeleton,EmptyState,ErrorState. - Every control reaches a 44pt touch target and uses the shared state layer, press spring and semantic haptics.
@nexub/coremoney helpers work on Hermes for iOS, which lacksresolvedOptions/formatToParts: the same values are derived fromformat().
React Native: docs, AI tooling and app icons (MOBILE_PLAN.md, phase M5):
@nexub/react-nativeREADME is the reference: install, provider, every component and screen pattern, and the rules they follow.- Claude skill and
llms.txt/llms-full.txtinclude the React Native reference.@nexub/mcpadds aget_react_nativetool. - Docs: a Getting started → React Native page, with a web-to-native component map.
@nexub/brand: mobile app icons for the hub and every product.assets/mobile/<product>-ios.pngis a 1024 px full-bleed square; the Android adaptive icon ships as-android-foreground/background/monochrome.pnglayers, including a monochrome layer for Android 13+ themed icons.
React Native mobile-only components (MOBILE_PLAN.md, phase M3), alpha:
- Overlays:
BottomSheet(detents incl. 'content', drag to resize or dismiss, grabber that cycles detents and is screen-reader operable, keyboard-aware),ActionSheet(the system sheet on iOS, a sheet on Android),ContextMenu(long-press, with the same items as accessibility actions),Select(a field that opens a sheet of choices). - Gestures and lists:
SwipeableRow(swipe actions are also accessibility actions; the row is one element), themedRefreshControl,Carousel+PageIndicator. - Payub inputs:
OTPInput(one field, so SMS autofill works: iOS oneTimeCode / Android sms-otp),NumericKeypad,ExpressiveMoneyInput,DateTimeField(platform pickers; optional peer@react-native-community/datetimepicker). - Flow and privacy:
StickyFooter(primary action above the keyboard),SensitiveValue(masked, read as "hidden", re-masks in the background),PrivacyShield(covers the app-switcher snapshot;preventCapturewith optional peerexpo-screen-capture),OfflineBanner,Coachmark,FAB(Android only by default). - Navigation, native chrome in Nexub colours:
nexubStackOptions,nexubNavigationTheme,nexubTabsOptions,useNexubNavigation(). @nexub/core: mobile strings (resize, cancel, show/hide, hidden, keypad delete, code digit, offline, page, more actions).@nexub/icons:Delete(backspace) icon.@nexub/react-nativeexposes asourceexport condition for monorepo development; published installs use the built files.
React Native screen patterns (MOBILE_PLAN.md, phase M4), alpha, in @nexub/react-native/patterns. Each is a data-plus-callbacks template built only from the public components, so it works with any router:
- Auth:
AuthScreen,SignInScreen(platform autofill, optional "Sign in with Face ID"),VerifyCodeScreen(OTP with resend countdown),LockScreen(biometric unlock + passcode fallback). - Money (Payub first):
FlowStep(progress + sticky action),AmountStep(keypad amount with live fee, rate and arrival; blocks over-balance),ReviewStep,ActivityList(grouped by day, pull-to-refresh, paging, swipe actions),TransactionDetail,ResultScreen(success/error/offline/maintenance/update). - App:
OnboardingScreen,PermissionPrimer,SettingsScreen+ProfileHeader,AppearanceSection(theme, glass dial, haptics),NotificationsInbox,SearchScreen,ChatScreen(AI assistant, composer above the keyboard),PaywallScreen,AppSwitcherSheet(Nexub apps).
@nexub/patterns
@nexub/brand: a tile for every Nexub app (app-icon-command-hub, -admin, -people, -payhub, -commerce, -contracts, -leap, -founder-hub), and a white-glass -light.svg of every tile for light themes. AppLauncher: apps can carry a group; the menu then shows them in titled sections (in order of each group's first app), and the arrow keys move between sections. Also body-parser 2.4.0 (GHSA-27r3-jxmh-p828).
@nexub/react
1.9.0 — foundations (ENHANCEMENTS_PLAN.md release tracker).
- Brand theming from a seed colour.
ThemeProvider seed="#e4572e"(andseedTarget="tertiary"for a product brand) regenerates the accent roles at runtime with the same HCT tone table as the built-in themes, so contrast pairs stay AA in light, dark and every contrast level. The colour maths loads lazily, only whenseedis set, and is applied through the CSSOM (strict-CSP safe). For SSR,createSeedTheme()/createSeedThemeCss()from the new@nexub/tokens/seedentry give the same values as data or CSS. - Tailwind v4.
@import "@nexub/tokens/tailwind.css"after@import "tailwindcss"gives v4 apps the same utilities as the v3 preset (colour roles, shapes, elevation, type roles, spring timings, spacing), generated from the same token data and tested against Tailwind 4.3. The v3 preset is unchanged.
@nexub/react
1.8.0 — adoption (ENHANCEMENTS_PLAN.md release tracker).
npx nexub-migrate(ships in@nexub/tokens): moves app code onto current conventions — legacy colour names → roles, physical → logical (RTL) classes; reports tailwindcss-animate classes and dead[var(--x)]/NNopacity modifiers. Dry run by default,--writeto apply,--checkfor CI.- Upgrading guide and an example dashboard in the docs, built only from public APIs.
- DataTable:
DataTableColumn<T>type export, column alignment (meta.align),caption/captionHidden,aria-labelon the table itself, translatable pager; sort buttons no longer submit forms; translatable empty state (default text is now "No results found."). Note: theColumnMetaaugmentation adds analignfield to TanStack's column meta. - Table.Root is keyboard-scrollable (named region) when it overflows. Kbd keeps shortcut order in RTL. NumberTicker no longer reverses digits in RTL.
- StatCard
sentiment(colour independent of the arrow); PageHeaderlevel; SplitButtonstatus="loading"disables the menu toggle. - AppHeader
position(fixeddefault,sticky,static) and translatable strings via NexubProvider.
@nexub/react
1.7.0 — hardening (ENHANCEMENTS_PLAN.md release tracker).
- Date pickers follow the reader.
DatePicker/DateRangePickertake a date-fnslocale(orNexubProvider dateLocale) for month and weekday names, week start and the trigger format, followdir(arrows and range bands flip in RTL), and their calendar labels are translatable messages. - FileUpload is a native
<label>around the file input: one control with the visible text as its name (no nested buttons), keyboard and click open the picker natively, and file sizes format withIntlin the active locale. - Accessibility fixes found by automated checks over every story: a nameless
Avataris decorative (aria-hidden) instead of an unnamed image;ScrollAreaviewports are keyboard-scrollable;ActivityFeedis a plain list (itsfeedrole broke list semantics); theNotificationItemunread dot has an image role. Toast.Rootfollows the finger when swiped, and toasts swipe toward the inline end in RTL.- Releases publish with npm trusted publishing only — no long-lived npm token.
@nexub/mcp
New @nexub/mcp package: an MCP server (npx -y @nexub/mcp) that gives Claude, Cursor and any MCP client the components, patterns, tokens and design rules of the installed release. Ships alongside the nexub-ds Claude Code plugin and llms.txt on the docs site, all generated from the docs registry.
@nexub/react
Dependency refresh (Radix UI, date-fns, React 19.3 floor). With @radix-ui/react-toggle-group 1.2, ToggleGroup and SegmentedControl expose better ARIA roles: a single-select root is now role="radiogroup" with role="radio" / aria-checked items (was group / aria-pressed), and a multi-select root is role="toolbar". Update any tests or selectors that query role="group" on these components.
Wave 1 — secure and consistent (ENHANCEMENTS_PLAN.md).
- Strict CSP. Layout and text components render scale values as classes, so server HTML carries no
styleattribute (blocked understyle-srcwithout'unsafe-inline'):Stack/Flex/Grid(gap,align,justify,cols,rows),TextlineClamp1–6,Heading/Label/HelperTexttone,AspectRatiocommon ratios,Skeletondefaults,GradientDivider, auto-growingTextarea. Off-scale values still fall back to inline style.Progresssets its fill through the CSSOM. - Every component on Calm Depth. The ~45 components the refresh hadn't reached now use colour roles, shape and elevation tokens, the global focus ring, colour-based disabled states and the state layer. Brand tones (
leap,bookub,payub,founderub) now tint text inHeading,Label,HelperTextandEyebrowChipinstead of falling back. - Brand accent roles.
--color-leap,--color-on-leap,--color-leap-container,--color-on-leap-container(and the same forbookub,payub,founderub), with light/dark and high-contrast values, plus Tailwind colours of the same names. New--gradient-brand-vertical. - Spring enter/exit. Overlays, menus, tooltips and toasts animate with
nx-motion(themes/base.css): opacity on the effects spring, scale and travel on the spatial spring, quicker exits, and a crossfade-only fallback under reduced motion. Components no longer depend ontailwindcss-animate(the preset still registers it for your own classes).
Wave 2 — cards, effects and motion (ENHANCEMENTS_PLAN.md).
- Cards.
Card variant="interactive"lifts 2px on a spring with elevation 1 → 2 and sinks on press (nx-lift; hover only where a real pointer hovers). Opt-ineffect="sheen": a soft light and rim follow the pointer (off for touch, reduced motion and reduced transparency). NewCardLinkmakes the whole card one link with the focus ring on the card. NewusePointerSheenhook. - New components.
RadioCardGroup/RadioCardandCheckboxCard(selectable cards with a springing check badge),MediaCard(image with a glass caption and optional stretched link),NumberTicker(rolling digits;Amount animate,StatCard animate), andBentoGrid/BentoTilein patterns (container-query tiles). - Toasts stack.
Toastershows the newest toast with older ones peeking behind it and fans them out on hover or focus (timers pause meanwhile). New propsexpandandvisibleToasts. Closed toasts are now removed from the store. - Motion. Checkbox checks draw in;
nx-revealcrossfades content in;AppHeader condenseshrinks the bar on scroll with a CSS scroll timeline; opt-in page transitions via@nexub/themes/view-transitionsandstartViewTransition(). Tooltips and hover cards share hover-intent delays. Under reduced motion, overlays now keep a short crossfade instead of popping in. - Tokens. New
--color-scrimrole.
Wave 3 — colour and UX (ENHANCEMENTS_PLAN.md).
- Data-viz colour.
--color-chart-1..8are now generated, light/dark aware, ≥3:1 on surfaces and tested to stay distinguishable under protanopia, deuteranopia and tritanopia (CIEDE2000 ≥ 10 between neighbours). New sequential--color-chart-seq-1..7and diverging--color-chart-div-1..7; Tailwindchartcolours follow. - Wide gamut. On P3 displays the accent fills (primary, tertiary, semantic and brand accents) gain ~18% chroma via relative colour syntax; lightness — and so contrast — is unchanged.
- Medium contrast.
data-contrast="medium"sits between standard and high, AA-tested everywhere. - Async buttons.
Button status="loading" | "success" | "error": the width holds, focus stays (aria-disabled), success draws a check, error shakes once, and each change is announced.SplitButtonkeeps focus while loading. - Forms. New
ErrorSummarypattern +useFormErrors()hook (focus moves to the summary; links focus the field). - Undo over confirm.
toast.undoable(title, { onUndo, onCommit })commits exactly once when the toast closes without Undo. - i18n and RTL. New
NexubProvider(locale,dir,messages) with Radix direction support; every built-in English string is a translatable message, and Intl formatting follows the provider locale. Components use logical properties throughout, directional icons mirror, and the Switch thumb and toasts follow the reading direction. - Touch targets. Button, IconButton, Checkbox, Radio and Switch get an invisible 44×44 hit area on touch screens.
- Optics. Tables, pagination and stat values use tabular figures.
Wave 4 — AI surface kit (ENHANCEMENTS_PLAN.md).
PromptInput: an auto-growing composer with attachment and action slots; Enter sends, Shift+Enter adds a line, IME-safe; Send becomes Stop while streaming (Escape stops too); solid or glass.ThinkingIndicator: a softly morphing shape with a shimmering label;role="status"; static under reduced motion.StreamingText: new text fades in as it arrives with a caret while streaming;aria-busyinstead of a chatty live region.MessageBubble+MessageActions: user / assistant / system messages as labelled articles; copy (with a drawn check), thumbs up/down, regenerate; actions appear on hover or focus on pointer devices and stay visible on touch.Citation,SourceChip,SourceList: numbered source markers with a hover-card preview, and a source row; only http/https links are rendered (safeUrl).- Patterns
Conversation: a stick-to-bottom message list with a "Jump to latest" button and a composer slot. - 18 new translatable messages in
NexubProviderfor the AI surfaces.
@nexub/react
TextGradient: render the brand gradient. The class compiled to background-color, so the gradient was dropped and the clipped text was invisible.
- @nexub/icons@1.5.1
@nexub/react
New components (design refresh Phase 5).
SplitButton: a primary action plus a chevron menu of related actions, as one connected control. Takes the Button variants, sizes and tones;menuholdsDropdownMenu.Items;menuLabelnames the toggle.ButtonGroup attachednow renders as a connected group: capsule outer ends, 6px inner corners and 2px seams. Each segment keeps its own state layer and focus ring.Toolbar.Root floating: a glass-capsule floating toolbar, withplacement="bottom"to pin it to the bottom centre. Toolbar is also restyled onto the refresh (capsule state-layer items, secondary-container toggles).NavigationRail(Root,Item): navigation for medium widths, with icons over labels and an active pill;asChildaccepts router links.Amount: money viaIntl.NumberFormat, with tabular numerals, the currency's minor unit and a true minus sign.size="display"is a hero figure with a quieter symbol and minor units;tone="auto"colours gains and losses.MoneyInput: an amount field with the currency symbol leading. It parses the locale's separators as you type (onValueChange(number | null), rounded to the minor unit) and groups the value on blur.ListDetail(patterns): the list-detail layout using a container query. At 720px+ of its own width the panes sit side by side; narrower, one pane shows at a time, withshowDetail/onBack.
@nexub/react
Calm Depth core controls (design refresh Phase 2). Props and variant names are unchanged; the look moves onto the Phase 1 foundations.
- Button / IconButton: capsule shape, the control-size ladder (md is now 40px;
data-density="compact"shrinks it), role colours, and a state layer plus press spring instead of hover colour swaps. New variant namesfilled,tonal,outlined,text;primary,secondary,subtle,outlineandghostremain as aliases. Explicit disabled styling replaces 50% opacity. - Input / Textarea / Select / Combobox: 12px field shape, 16px text from md up, and a 2px primary border on focus instead of a halo ring.
invaliduses the error role. - Checkbox / Radio / Switch: 2px outline borders (≥3:1), primary when on. Switch has new proportions and the thumb slides on a spring.
- Badge / Chip / Toggle: role pairs (container / on-container), WCAG AA by construction.
- SegmentedControl / Tabs: one indicator that slides to the selected item on a spring. Tabs now use a primary underline.
- Slider: thin track, solid primary knob, and a state-layer halo.
- Focus is the single global ring for every control.
cnnow understands the token scales (text-label-lg,rounded-shape-*,h-control-*,shadow-elevation-*).
Calm Depth surfaces & overlays (design refresh Phase 4). Props are unchanged.
- New role
--color-surface-elevatedfor floating layers: white in light, lighter than the page in dark.--color-bg-raisedand--color-surface-raisednow alias it; before, they were darker than the page in dark mode. - Overlays (Dialog, AlertDialog, CommandPalette, Drawer): 24px shape, the elevated surface, elevation 3, a 40% scrim, and spring enter/exit. AlertDialog's Action and Cancel are now real
Buttonstyles (destructive / outlined). - Floating surfaces (Popover, HoverCard, DropdownMenu, ContextMenu, Menubar, Select, NavigationMenu): 16px shape, elevation 2, and menu items with a concentric 10px radius, an on-surface state layer and explicit disabled text.
- Tooltip: inverse surface on its own z-tier (
--z-tooltip), so it no longer sits on the popover tier, and it now flips correctly in dark mode. - Toast / Toaster: an inverse-surface snackbar with an
inverse-primaryaction. - Card: the elevated surface plus a soft alpha hairline. Shadows only for
surfaceandinteractive;interactiveuses the state layer and a spring lift. - Navigation: TopNav and NavigationMenu items are capsules with state layers. The Sidebar is a tonal panel without a divider, and its active item is a secondary-container pill instead of a solid brand fill.
- AppHeader: a glass header's account menu offers the glass intensity dial (Clear / Balanced / Tinted / Solid).
CommandPalette.Root: new props and a focus fix.
scrollLock="class"locks page scroll with thenexub-scroll-lockclass instead of Radix's injected<style>, so the palette opens understyle-src 'self'.shouldFilter={false}for results that are already filtered (async search), andlabelfor the dialog's accessible name (default "Command palette"; also silences Radix's missing-title warning).- Closing now returns focus to the element focused before it opened. Without a
Dialog.Trigger, focus used to drop to<body>. - The dialog keeps a 1rem margin each side on phones.
Glass 2.0 (design refresh Phase 3).
- Recipe: the fill is the surface role at the dial's opacity (
color-mix), so dark glass needs no separate values.backdrop-filterisblur + saturate, and the edge is a hairline with a top specular highlight and a bottom rim. Samesurface="glass"API. - Thickness scales with size: buttons are thin (8px blur, elevation 1), bars and popovers regular (16px, elevation 2), dialogs and drawers thick (28px, elevation 3). Set
data-glass-thicknessto override. - Intensity dial:
ThemeProvidergainsglass/setGlass('clear' | 'balanced' | 'tinted' | 'off'), persisted undernexub-glassand applied pre-paint byThemeScript. It setsdata-glasson<html>, and any ancestor can set it too. - Variants:
data-glass-tint="primary"for the single emphasised action, anddata-glass-variant="clear"over imagery only. - Scroll edge:
TopNav.Root/AppHeaderacceptscrollEdge="soft" | "hard". Soft dissolves content under the bar instead of showing a divider. - Button
variant="glass"(thin glass). - Fallbacks are solid under
prefers-reduced-transparency,prefers-contrast: more(plus a 2px outline),forced-colors,data-glass="off", and in browsers withoutbackdrop-filter.
@nexub/patterns
New pattern AppHeader: the one top header every Nexub app shares. It is presentational; the app passes data and callbacks in.
- Left to right: a
menuslot (belowmd), the logo (homeHref,onNavigate), a centred search field (an icon belowmd) that opens aCommandPalette, the organization (orgs,currentOrgId,onOrgChange), a theme switch (useTheme,showThemeSwitch), theAppLauncher(apps) and an account menu (user,accountHref,privacyHref,termsHref,onSignOut,accountMenuItems). - Search takes static
searchItemsor an asynconSearch(query)(debounced, with loading, empty and error states). Opens with ⌘K / Ctrl+K anywhere and "/" outside text fields. - Fixed to the top at the new
--app-header-heightvariable (64px, in@nexub/themes/base) and followed by a spacer of that height, so pages,AppShell.BodyandSettingsLayoutstart below it with no padding of their own. surface="glass"; strict-CSP safe (class scroll lock, non-modal menus); fits at 375px, where the org switcher collapses to an icon.
SettingsLayout: new header prop, header={(menu) => <AppHeader menu={menu} … />}, which replaces its top bar and hands the phone section-menu button to the AppHeader's menu slot. Its top bar and sticky sidebar now use --app-header-height.
@nexub/tokens
Calm Depth foundations (design refresh Phase 1).
- Color roles: generated tonal palettes (
--color-palette-<name>-<tone>) and M3-style roles (--color-primary,--color-on-primary,--color-*-container,--color-surface-container-{lowest…highest},--color-on-surface(-variant|-muted),--color-outline(-variant),--color-inverse-*, brand--color-tertiary*) in the new@nexub/tokens/css/roles, imported by@nexub/themes/base. Roles uselight-dark(), so dark mode followscolor-schemeat any depth;data-contrast="high"(orprefers-contrast: more) selects high-contrast tones. Every pair is WCAG 2.2 AA by construction and by test. - Legacy names keep working:
--color-bg-*,--color-text-*,--color-border-*,--color-semantic-*,--color-fill-*now alias the roles. Visible changes: brand-tinted neutrals, a deeper primary (#0059c7), and a focus ring and muted text that now meet contrast. - Typography: Inter (variable, optical sizes) is the UI face (
--font-family-sans); Plus Jakarta Sans moves to--font-family-displayand headings. New role scale--type-{display,headline,title,body,label}-{lg,md,sm}-*(Tailwindtext-display-lg…). - Shape / elevation / state:
--shape-{control,field,container,overlay,tooltip,min},--elevation-{0..3},--state-{hover,focus,pressed,dragged,disabled-*}, plus.nx-state-layerand.nx-pressutilities. - Motion: spring easings
--motion-spring-{spatial,effects,expressive}-{fast,default,slow}-{easing,duration}(CSSlinear()); Accordion/Collapsible height animation now works. - Density:
data-density="compact"shifts--size-control-*one step down (Tailwindh-control-md). - Focus ring is one 3px outline (offset 2px) that follows the element's shape.
Requires light-dark() (Baseline 2024: Chrome 123, Safari 17.5, Firefox 120).
@nexub/themes
Fix the colour <NexubMark> (and <Logo>, AppHeader, SettingsLayout) rendering black on server-rendered pages with a strict Content-Security-Policy. Its gradient stops now use nxm-* classes from @nexub/themes/base instead of inline style attributes, so make sure base.css is imported.
@nexub/react
Strict CSP: Sheet / Drawer can lock scroll without an injected <style>.
- New
scrollLockprop onSheet.Root/Drawer.Root:"style"(default, unchanged) or"class". With"class", page scroll is locked by thenexub-scroll-lockclass from@nexub/themes/baseon<html>(keeping the scrollbar's space, so nothing shifts) instead of Radix's injected<style>tag, whichstyle-src 'self'blocks. The sheet stays modal: focus trap, hidden background for screen readers, Escape and outside-click still work. SettingsLayout's phone menu usesscrollLock="class", so it opens under a strict CSP with no console error and the page behind is locked.@nexub/themes/basealso ships Radix's scrollbar-hiding rule forScrollAreaandSelectviewports, so they look right when a strict CSP blocks Radix's<style>tag.- New docs page, Getting Started → Strict CSP: which components are CSP-safe and how to use the others.
Sheet / Drawer are fully typed without vaul. The published types imported vaul, which isn't a dependency (it's bundled), so Sheet.Root and its props resolved to any in apps. They're now declared in @nexub/react itself (new DrawerRootProps export), so onOpenChange={(open) => …} infers boolean with no extra installs. Apps can drop their (open: boolean) annotations. The build now fails if a .d.ts file imports vaul.
Sidebar.Header with a product logo and a status. New Sidebar.Header takes the logo as children and an optional status (e.g. a "Live" Badge). They sit on one row when they fit; otherwise the status moves under the logo. When the sidebar is collapsed, the status is visually hidden but still announced.
Logowithproducttruncates the product name with an ellipsis when its container is too narrow, instead of overflowing.SettingsLayout's top bar lets a long product logo shrink and truncate next to the actions.
Add ThemeScript: render it in <head> to apply the stored theme (and optionally the product brand) before first paint, so server-rendered apps no longer flash the wrong theme. Takes a nonce for pages with a strict Content-Security-Policy.
@nexub/themes
Fonts work under font-src 'self' with default Vite settings. @nexub/themes/base now loads Plus Jakarta Sans from its own fonts.css, which only references font files over 8 KB, so Vite (4 KB) and webpack (8 KB) emit them as files instead of inlining data: URLs. The one subset left out, cyrillic-ext (≈1.7 KB, a few rare glyphs such as ₴), falls back to the system font. Apps can remove build.assetsInlineLimit: 0. The Strict CSP docs page has a Vite setting that never inlines fonts, and shows how to use the system font instead. @fontsource-variable/plus-jakarta-sans is no longer a runtime dependency.
@nexub/brand
Brand assets: new "Using the brand assets" docs page. @nexub/brand (shipped in 1.2.0) has the Nexub mark in colour and currentColor SVG, the app-icon tile as SVG plus 192 and 512 px PNGs, the Account tile, and favicon.ico, all at @nexub/brand/<file>. The new docs page (Getting Started → Using the brand assets) covers importing them in a Vite app, copying them into public/ for index.html and the web manifest, plain static serving, and adding a tile for another product.
@nexub/react
Branding: the official Nexub mark in Logo.
NexubMark(@nexub/icons) now draws the official Nexub mark (the purple-blue ribbon), taken from the master SVG without redrawing. It replaces the placeholder "B". Newvariantprop:"mono"(default,currentColor, as before) or"color". Each instance gets its own gradient ids, so several marks on one page don't clash.Logogetsmark="color" | "mono"(default"color") andproduct?: string. Withproduct, it renders the mark, "nexub", a subtle separator and the product name in muted text at the wordmark's size, e.g.<Logo product="Command Hub" />. The accessible name becomes "Nexub Command Hub".Logovariant="icon"is the new name for the mark-only variant.variant="mark"still works.Logonow hasrole="img", so its name is announced.- The mark is sized by height at its real 78:56 ratio (it used to sit in a square box).
@nexub/tokens: 47 new brand tokens,--color-brand-mark-1…--color-brand-mark-47(Tailwindbrand-mark-*), holding the mark's gradient colours.LogoandNexubMarkcontain no hex values.
CSP: @nexub/react no longer injects a <style> tag on load. The Drawer library (vaul) added one as soon as @nexub/react was imported, even with no Drawer on the page, which strict Content-Security-Policy pages block. vaul is now bundled into @nexub/react with that call removed, and its styles ship in @nexub/themes/base instead. Apps that import @nexub/themes/base (all of them) need no change, and a strict CSP no longer needs a hash for that style. The build fails if vaul's styles and base.css drift apart. vaul moves from dependencies to devDependencies.
Sheet / Drawer fixes.
- Left and right panels no longer scroll horizontally. vaul's over-drag strip (a
::after200% wide, past the panel edge) made the panel scrollable sideways once it scrolled at all. Side panels now clip x, which also lets long content scroll vertically with no extra classes. Apps can drop theiroverflow-x-hiddenworkaround. Sheet.Overlay/Drawer.Overlaynow has default styling (full-screen scrim). It used to render unstyled.- New
--color-overlaytoken in@nexub/themes/base(rgb(0 0 0 / 0.5)).Dialog,AlertDialogandCommandPaletteoverlays use it instead of a hard-codedbg-black/50, with no visual change.
Tabs: inactive panels stay hidden whatever display class they get. A Tabs.Content with className="flex" (or grid, md:flex, …) used to show while inactive, because the class beat the hidden attribute. Inactive panels now get display: none !important. Apps can drop their data-[state=inactive]:hidden workaround.
@nexub/patterns
New pattern AppLauncher (the "waffle" app switcher), replacing the copies hand-built in each app.
<AppLauncher apps={[{ id, name, href, icon?, current? }]} onNavigate? surface? label? />: anIconButton("Nexub apps") opens a 320pxPopover(aligned to the end) with a 3-column grid of app tiles (40px rounded icon and name).- Missing or broken icons fall back to an
Avatarwith initials. The current app is subtly highlighted and markedaria-current="page". - Keyboard: opens with focus on the current app; arrow keys move through the grid, Home/End jump to the ends.
onNavigate(app)takes over plain clicks for client-side routing; modified clicks still open the link. surface="glass"supported. Renders nothing for an empty list.@nexub/icons: newAppsicon (3×3 dots).
New pattern SettingsLayout (the My Account layout) and SettingsRow.
- Full-width frame: a
TopNavwithlogoandactionsslots, and a leftSidebarof sections built fromitems: { id, label, icon, href }[], withactiveIdhighlighted. It works with any router:onSelect(item)takes over plain clicks, andhrefstill works for modified clicks. - Under 768px the sidebar becomes a menu button that opens a left
Sheetwith the same items. Choosing one closes it. - Content area (max width 3xl) with an optional page header (
title,description). Children are sections: useSettingsLayout.Section(aCardwith an optional title and description). SettingsRow(alsoSettingsLayout.Row): label (and optional description) on the left, value in the middle, action on the right. It stacks on phones.
@nexub/icons
New icons Pin, Send and Crown, so apps no longer need Bookmark, ArrowUp and Star as stand-ins.
@nexub/brand
New package @nexub/brand: the official brand files, so apps stop keeping their own copies.
nexub-mark.svg(the master, verbatim) andnexub-mark-mono.svg(single colour,currentColor, derived from the master's shapes).app-icon.svg(the black glass tile with the mark) plusapp-icon-192.png/app-icon-512.pngfor web manifests, andfavicon.ico(16/32/48).- Per-product tiles: same tile, different glyph. Ships
app-icon-account.*(person glyph). To add one, drop a glyph inglyphs/and runpnpm --filter @nexub/brand build:assets(see the README). - Files resolve as
@nexub/brand/<file>. The README shows how to use them from Vite (imports, plus a copy step forindex.htmland the manifest) and from plain static hosting.
@nexub/react
ESM-only packages, working tree-shaking, and RSC-safe builds.
- Breaking:
@nexub/react,@nexub/patternsand@nexub/iconsship ESM only (CJS builds removed).@nexub/tokensexports gain adefaultcondition, sorequire('@nexub/tokens/tailwind')now works on Node ≥20.19. @nexub/reactand@nexub/patternsare built per component and every output file starts with'use client', so they import cleanly from Next.js Server Components. A single-component import drops from ~130 KB gz to ~6–9 KB gz.@nexub/icons: unused icons are now tree-shaken (one icon ≈1 KB gz, was ≈10 KB).- The Tailwind preset now registers
tailwindcss-animate, so component enter/exit animations actually render.tailwindcssis an optional peer of@nexub/tokens. @nexub/themes: dark mode is no longer forced whendata-themeis absent; with no attribute the OS preference decides.- Breaking:
ThemeProviderdrops theattributeprop (classmode never matched the theme CSS).systemmode now removesdata-themeinstead of setting it, and the provider no longer causes hydration mismatches.useMediaQuerystartsfalseon first render.
Accessibility and stability fixes.
- Contrast (WCAG AA): new
--color-fill-*tokens (fixed shades, white text ≥ 4.5:1 in light and dark). Button, IconButton, Badge (solid), Checkbox, Pagination, Sidebar, DatePicker, FilterChip, AlertDialog and StepIndicator use them. Primary is now brand-600, which is visibly a little deeper.--color-text-{info,success,warning,danger}now alias the-strongshades, placeholder text usestext-muted, and icon tones follow the text tones. - Focus ring:
--shadow-focusfollows--color-ring-*, so it's correct in dark mode and brand themes. - Slider: thumbs no longer remount (and lose focus) on every value change. New
thumbLabelsprop;aria-labelnow names the thumb. - Rating: radio-group keyboard support (one tab stop, arrows, Home/End).
- Motion: exits always complete, even when
transitionendnever fires (e.g.duration="instant"). Bubbled child events are ignored. - Toaster renders
action. The close button stays visible on touch devices. - Autocomplete shows the selected label (not the id), filters by label, and renders a real "Loading…".
- NumberInput: steppers respect bounds when
disabled={false}. - TopNav: the menu scrolls instead of disappearing below
md;<nav aria-label="Main">;ItemsupportsasChild. - Breaking: Sidebar: the root is now
<nav aria-label="Sidebar">(was<aside>);ItemsupportsasChild, keeps an accessible name and tooltip when collapsed. - Link: new-tab links always get
noopener noreferrer(merged with the caller'srel); supportsasChild. @nexub/tokens: brand-primary-800 is now#1e40af(was a copy of 900).
Lighter packages and cleaner dependencies.
@nexub/icons: addCameraandLayers. Drop the unused@radix-ui/react-slotdependency.- Breaking:
@nexub/tokens: remove the empty./css/lightand./css/darkstub exports; use@nexub/themes/lightand/dark. Stop shipping source maps that pointed at unpublishedsrc/. - Breaking:
@nexub/react:@nexub/tokensmoves from a dependency to a peer dependency (install it alongside). It was only used for CSS variables and the Tailwind preset, never imported from JS.
DatePickerandDateRangePickeracceptidandaria-label, so the field can be labelled (the selected value is appended to the accessible name). Previously the trigger's name was only the value or placeholder.FormField.Rootforwards its ref.AutocompleteandToasterget adisplayName.- Removed unused imports in
Dialog,DrawerandHeading. - Deprecated (still exported, removed in 1.0):
StatusPillandTag(useBadge),BannerandCallout(useAlert). Editors show a strike-through; the docs mark them deprecated. Bannernow usesrole="status"instead ofrole="banner", which is the page-header landmark.- Input borders meet WCAG 1.4.11: new
--color-border-inputtoken (light#848e9f, ≥ 3:1 on every light surface; dark#64748b, ≥ 3:1). It's used for the boundaries of Input, Textarea, Select, DatePicker, DateRangePicker, Checkbox, Radio and the FileUpload drop zone, which are visibly darker.--color-border-default(cards, dividers, popovers) is unchanged.
@nexub/tokens
Plus Jakarta Sans is now the Nexub DS typeface.
@nexub/tokens:--font-family-sans(and the Tailwindfont-sansutility) is now'Plus Jakarta Sans Variable', 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif. The Devanagari and Tamil stacks fall back to it. Previously the stack named Geist, which was never loaded, so apps rendered the system font.@nexub/themes/baseself-hosts the font via@fontsource-variable/plus-jakarta-sans(OFL-1.1). It provides variable weights 200–800, normal and italic, andfont-display: swap. Subsets load on demand byunicode-range. Any app importing@nexub/themes/basegets the font with no extra setup and no third-party font request.base.cssmakesbutton,input,selectandtextareainherit the font, so form controls match even without Tailwind's preflight.
@nexub/react
Add the Liquid Glass material layer.
@nexub/themes/glass— a translucent material, orthogonal to light/dark, with a backdrop blur, hairline border, specular highlight, and a solid fallback underprefers-reduced-transparency/prefers-contrast.surface="glass"on Card, Dialog, Popover, Drawer, and TopNav opts a surface into the material (defaults tosolid, so existing usage is unchanged).- Fix: the
toneprop now actually paints on Button, HelperText, and Label (previously a no-op).
@nexub/react
Focus ring & navigation performance fixes
@nexub/react
- Input — replace
border-transparentfocus trick withborder-colorshift +color-mix()-based semi-transparent ring halo; eliminates double-ring artifact on all field components - Textarea — same semi-transparent ring pattern; invalid state ring now also uses
color-mix()for consistent look - Select — same ring fix on Trigger; invalid state colour updated to match
- NumberInput — inner
<input>now strips all focus indicators (border-0 shadow-none ring-0 focus:ring-0 focus-visible:ring-0) so the wrapper'sfocus-withinring is the only visible outline - Heading — move tone colour from dynamic Tailwind class (
`text-[var(--color-text-${tone})]`) to inlinestyleprop; fixes Turbopack CSS parse error caused by template literals being emitted literally into generated CSS
Performance & stability fixes
- Toast SSR guard — store is now client-only on
globalThis; server-side module evaluations receive a fresh local object so toast state never leaks across concurrent SSR requests - Collapse RAF cleanup —
requestAnimationFrameIDs are now stored and cancelled in theuseEffectcleanup, preventing state updates on unmounted components (memory leak) - FileUpload context memo — context value is wrapped in
useMemoso consumers only re-render when a tracked value actually changes, not on every parent render - useMergedRefs stable callback — replaced the spread-array dependency (new reference every call, defeating
useCallback) with auseRefof refs pattern; the returned function is now truly stable - Motion willChange hints —
Fade,Slide, andScalenow setwillChange: 'opacity'/willChange: 'opacity, transform'so browsers promote these elements to their own compositor layer, eliminating repaint jank on lower-end devices - @types/react devDep — aligned to
^19.0.0to match the root pnpm override