What’s new
What changed in each release of @synertech/ui, newest first. To follow the next ones: the RSS feed.
0.57.5
Fixes
- The README says how to give the usage guide the package ships to a code assistant:
npx @synertech/ui setup-claude-skillinstalls it for Claude Code, and other assistants read the same file innode_modules. The command was only written in the changelog until now; the site has a page for it, "Code assistants".
0.57.4
Fixes
- Synertech Web holds the copyright and authors the package: the copyright line of
LICENSEand theauthorfield ofpackage.jsonnamed a person, and both now name Synertech Web, as the site already did. The terms of the licence are unchanged.
0.57.3
Fixes
DataGrid's own checkboxes and radios follow the brand colour: the boxes that select a row or every row, the ones of the column menu and the radios of aselectfilter are native inputs, which draw their check inaccent-color, and none set it. They were the browser's blue whatever--color-synertech-primary-*said.
0.57.2
Fixes
- The README, the page of the package on npm, links to what changed in each release: the "What's new" page of the documentation, which publishes the changelog at last, with an RSS feed.
0.57.1
Fixes
-
Select: aclassName, atriggerClassNameor acontentClassNamereplaces the component's own classes that set the same thing, as on every other component since 0.57.0.Selectjoined its classes with a helper of its own, which left both on the element for the stylesheet to choose:triggerClassName="w-52"kept the field at full width, andtriggerClassName="bg-gray-100"kept it white.AdvanceDetachablegoes throughcn()too, which changes nothing it draws.What
Selectdrew changes where two of its own classes disagreed:- A disabled option shows the
not-allowedcursor, no longer the pointer. - A disabled field is drawn on the
gray-50its classes name in the light theme, as it already was ongray-900in the dark one.
Kept as drawn: a field both disabled and read-only keeps the
not-allowedcursor. - A disabled option shows the
0.57.0
Features
-
A
classNamereplaces the component's own classes that set the same thing.cn()now resolves conflicting Tailwind classes withtailwind-merge: of two classes that set the same property, the one written last wins, whatever the order of the stylesheets. Up to now both stayed on the element and the stylesheet chose, so<Button className="bg-red-600">was drawn in the brand's colour. A class only replaces one under the same variants: write thehover:anddark:shades too.tailwind-mergeis a new dependency (about 9 kB gzipped, shared with an application that already has version 3). The exportedcn()behaves the same way.What the library drew changes where two of its own classes disagreed and the stylesheet had picked the other one:
Calendar: the days of the other months are greyed in the light theme too.Accordion: a disabled item shows thenot-allowedcursor; a read-onlyRadioButtonno longer shows a pointer.ChartExportButton: its trigger is the pill ofChartPeriodPicker(rounded,px-3), as written.Sidebar: collapsed, the header and the footer take the narrower padding, and on the right the chevron points to where the sidebar opens.Modal: full screen, the dialog reaches the edges of the viewport.ChartLegend: a hidden series is written in the lighter grey.Checkbox: a checked box in error has a red border.- Fields: a label followed by a description sits closer to it.
RadioButton(filled, unchecked) and read-only text fields in the dark theme take the shades their classes named.SchemaEditor: while a relation is drawn, the tables it can reach have their larger shadow.Indicator:borderColorreplaces the default ring colour in both themes.
Kept as drawn: a field both disabled and read-only keeps the
not-allowedcursor, aFileSelectorin error shows the brand's colour while a file is held over it, a mobile item ofHeaderstays a row, and aleading-*beside a font size keeps applying (Tailwind 4 applies it whatever the order).
0.56.1
Fixes
- The page of the package on npm says what it is and lists every component. The README named 11 components of 127 and showed a
Buttonwith avariantit has never had: it now opens on the promise, a picture of a dashboard built with the library, the install command and links to the documentation, the demos and Storybook, then lists every page of the reference by category — written from the reference, which fails its check when the two differ. TheModalexample usesopen,submitLabelandonSubmitClick. What spoke to contributors (and told them to push tomain) is inCONTRIBUTING.md, out of the package. The package has a description, and keywords that say what is in it (charts,datagrid,gantt,dashboard,nextjs,accessible…). Theuse-synertech-uiguide shipped with the package lists the twelve components its catalogue left out. - For a reader whose system asks for less motion (
prefers-reduced-motion: reduce), thepulseofIndicatorand the pulse of the rows a loadingDataGriddraws stop, as the pulse and the wave ofSkeletonalready did. An indeterminateProgressBarno longer slides its segment along the track for that reader: the segment covers the track and fades in and out in place — stopped where it stood, a third of the track would read as a third done.
0.56.0
Features
-
DataGrid: the header does from the keyboard what it did from the pointer alone — sort a column, resize it, move it (WCAG 2.1.1, 2.5.7).- Sort: the header of a column that sorts holds a
<button>(its name and the sort icon), which Tab reaches and Enter or Space presses, through the same path as a click;aria-sortstays on the cell. The filter button sits beside it, never inside it. A click on the padding of the cell no longer sorts: the button does. ArenderHeaderof a column that sorts is drawn inside that button, so it holds no button, link or field. - Resize: the handle is a focusable separator (
role="separator",aria-orientation="vertical", the width asaria-valuenowand the bounds ofminWidth/maxWidth), named by the newdataGridResizeColumnlabel. ← and → change the width by 10 px, by 50 px with Shift, and Home and End go to the bounds; each press is reported once throughonColumnWidthsChangeandonViewChange, as a release of the pointer is. It shows when it has the focus. - Reorder: with
columnReorderable, the column menu of the toolbar lists the columns in the order of the table and moves each one a place up or down (dataGridMoveColumnUp,dataGridMoveColumnDown), throughonColumnOrderChange,onColumnReorderandonViewChangeas a drop does. The button pressed keeps the focus and the move is said (dataGridColumnMoved). The menu is there whenevercolumnReorderableis, nameddataGridReorderColumnswhen it does not also show and hide the columns (columnToggle). It closes with Escape, says whether it is open (aria-expanded), and lists the columns in the order on screen rather than the order ofcolumns. - Each header cell is named by its header alone (
aria-labelledby): the names of the buttons and of the handle it holds were read with every cell of the column.
- Sort: the header of a column that sorts holds a
-
DataGrid: bulk actions, a row of active filters, and saved views. An application that acted on the selected rows drew its own bar beside the grid, a filter set on a column out of sight was written nowhere, and a user who had sorted, filtered, hidden, moved and resized columns found the grid as it was at mount on their next visit.<DataGrid ref={gridRef} columns={columns} data={invoices} rowKey="id" selectable bulkActions={({ keys, rows, clear }) => ( <Button size="sm" onClick={async () => { await markPaid(keys); clear(); }} > Mark {rows.length} as paid </Button> )} defaultView={savedView} onViewChange={(view) => saveView(view)} />- Bulk actions:
bulkActionsshows a bar above the grid while rows are selected — their count, the application's actions, and a button that clears the selection, said once to a screen reader by a polite live region. As a function it receives aDataGridSelection: every selected key, the rows ofdatathey name on every page, andclear(). When the bar goes with the focus in it, the focus goes to the box that selects the rows. - Active filters: the column filters in force are written above the grid, one chip each ("Amount: ≥ 500", "Due: before Dec 3, 2026"), numbers and dates in the grid's
locale; a chip removes its filter and hands the focus to the chip now in its place, and "Clear filters" removes them all once there are two. A filter on a hidden column is written too.showActiveFilters={false}leaves the row out. - Saved views: a
DataGridViewholds what a user arranges — sort, filters, search, hidden columns, column order and widths, page size.defaultViewis where an uncontrolled grid starts,onViewChangereceives the whole view on every change, and therefgainsgetView()andsetView(), which goes back to page 1 and reads no field of a saved object but the view's own. Every part is controlled by its prop or held by the grid:pageSize/onPageSizeChange,columnOrder/onColumnOrderChange(besideonColumnReorder),columnWidths/onColumnWidthsChange, called once when a resize ends. - Fixes: the page-size selector is named by its label, and offers the size in force when its options do not hold it; a column whose header is an element is named by its key in the CSV header, the column menu and the name of its filter button, where it read "[object Object]".
DataGrid.tsxis split by role: types, pure helpers and export in modules of their own, and one module per part of the grid.
- Bulk actions:
Fixes
-
Dropdownmenus and submenus and the bubble ofHelpButtonfollow their trigger when the page scrolls, instead of gliding 200ms behind it: theduration-*of their entrance also set a transition on their position. A menu opens in 150ms, likeSelectandPopover. A submenu stays against its entry: it was placed from where the entry had been before the scroll moved its menu, and left there. Found by the browser scenarios. -
What the rules of hooks and of accessibility found, now that the build checks them.
Select: a singleclearablefield is cleared from the keyboard too, with Delete or Backspace on the field. Its clear button is drawn inside the field and is no tab stop: the keyboard had no way to empty it.MentionInput: the suggestions are alistboxofoptions, named by the newmentionInputSuggestionslabel ("Suggestions"), and the editor names the one the arrows are on (aria-activedescendant), which a screen reader now reads out. While they load, the list is astatus. It was a stack of<div>s a screen reader said nothing about. The avatar of a suggestion drawn by default has an emptyalt: the name is written beside it, and the option would say it twice.Accordion: controlled by a single string, it no longer renders every item again at each render of its parent — the value was wrapped in a new array each time, and the context with it.ChartExportButton: outside a chart that holds rows, the function that writes the file is no longer made again at every render.
-
Skeleton: the pulse and the wave stop for a reader whose system asks for less motion (prefers-reduced-motion: reduce), as the entrances of the menus and dialogs already did. The wave ran on for ever; the placeholder is drawn still instead. Found by the tests that now run in a real browser.
0.55.0
Features
-
CommandPalette,CommandGroupandCommandItem: a command palette, opened from anywhere by ⌘K. An application that wanted its actions reachable from the keyboard built one from aModaland aSelect, whose list closes at every choice and where an accent made a word unfindable.<CommandPalette> <CommandGroup label="Actions"> <CommandItem icon={<FileIcon />} shortcut="N" keywords={["bill"]} onSelect={createInvoice}> Create an invoice </CommandItem> <CommandItem disabled>Create a credit note</CommandItem> </CommandGroup> <CommandGroup label="Navigation"> <CommandItem shortcut={["G", "R"]} onSelect={() => router.push("/reports")}> Go to reports </CommandItem> </CommandGroup> </CommandPalette>- Declarative: the application writes its entries, in the order they are shown, and keeps its actions —
onSelectis a function of its own. Nothing is registered: the palette reads the entries from the document. - Search: every word typed must be found in an entry's text (or
textValue) or itskeywords, accents and case aside; what matches is written in bold. A group left without an entry goes with its heading.descriptionis a second line, not searched. - Keyboard:
hotkey("mod+k"by default: ⌘K on Apple systems, Ctrl K elsewhere;falsefor none) opens and closes it, and leaves alone a key a text editor already handled. The focus stays in the field; the arrows move over the entries, passing over the disabled ones and wrapping, Enter chooses, Escape closes and gives the focus back. A chosen entry callsonSelectand closes the palette unlesscloseOnSelect={false}, on the palette or the entry.shortcutis shown, never bound. - Searching a server:
filter={false}, on the palette or aCommandGroup, leaves the sorting to the application;queryandonQueryChangehand it what is typed,loadingshows the wait, and the list never says "No results" while it lasts. - Empty:
emptyStatereplaces "No results" (anEmptyStateof sizesm);footerreplaces the key hints,nullremoves them. - Accessible: the contract of
Modal(the focus kept inside, Escape, the focus given back, the page behind it inert), acomboboxover alistboxwitharia-activedescendant, and a polite live region that says how many entries match. Rendered under the<body>of the window it is shown in, a detached one included. TwelvecommandPalette…labels, in English and in French.
- Declarative: the application writes its entries, in the order they are shown, and keeps its actions —
-
EmptyState: what a list, a table, a chart or a page shows when there is nothing in it.DataGridand every chart took anemptyState, but the library gave nothing to put there, and each screen drew its own.<EmptyState icon={<InboxIcon />} title="No invoices yet" description="Create the first one, or import a CSV file." action={<Button label="Create an invoice" />} secondaryAction={<Button label="Import a CSV" />} />- Content: an icon in a disc, decorative and hidden from assistive technologies (an
<svg>is sized by the state, whatever its own width and height), a title, a description that may hold a paragraph,childrenfor a hint or a list of suggestions, then anactionand asecondaryAction. Three sizes:smin a table, a chart or a card,md(the default) for a panel,lgfor a whole page. - The title is a paragraph unless
headingLevelmakes it a heading, for a state that stands for a section of the page: in a table or a chart, a heading would cut the outline of the page. - A Server Component: no hooks, no handlers, no text of its own.
The empty and error states of the kit wear it. Without an
emptyState,DataGridwrites "No data available" as anEmptyStatewith a tray, and every chart writes "No data" with a mark of empty axes; "Chart could not be loaded" is drawn the same way, with its hint and the retry button ofonRetryunder it. The labels are those of before, and anemptyStateor anerrorStatestill replaces the whole of it. The title is darker than the grey line it replaces, and the panel a little taller: a chart less than about 150px high has less room for its error state. - Content: an icon in a disc, decorative and hidden from assistive technologies (an
-
TimelineandTimelineItem: what happened, in order. The history of a file, an audit log, the progress of an order were drawn with aDividerand a list;GanttChartplans what is to come, it does not tell what took place.<Timeline aria-label="File history"> <TimelineItem icon={<CheckIcon />} color="success" title="Invoice 2026-114 paid" time="12 min ago" dateTime="2026-12-02T14:12" > Paid by card. </TimelineItem> <TimelineItem avatar={<Avatar size="sm" alt="Camille Roy" fallback="CR" />} title="Comment by Camille Roy" time="Yesterday, 4:40 PM" > We can send it on Friday. </TimelineItem> <TimelineItem time="Nov 3, 2026">File created</TimelineItem> </Timeline>- An ordered list: each item has its marker on a line that runs from one to the next, then what happened (
title), when (time, written in a<time>element whendateTimegives its moment) and the details (children, which take the title's place when there is none). - Markers: a dot by default, an
iconin a disc, or anavatar(anAvatarof sizesmfills the place). They are decorative and hidden from assistive technologies: the title says what happened and who did it.colortints them (neutral,primary,success,warning,error,info), and adds to what the title says without ever saying it alone. - Status:
completed(the default),current(a ringed marker, in the brand's colour unlesscolorsays otherwise, andaria-current="step"on the item),upcoming(a hollow dot, a greyed title, and the line that leads to it dashed). - Orientation:
verticalfor a history of any length,horizontalfor a handful of steps across the width, each as wide as the others. A timeline nested in an item keeps its own. - A Server Component: no hooks, no handlers, no text of its own. It formats no date and writes no "expected": the application writes both in
time.
- An ordered list: each item has its marker on a line that runs from one to the next, then what happened (
-
TreeView: a hierarchy the reader opens, closes and moves through — folders and files, categories, an organisation chart. An application that showed one nested lists of buttons: every button was a Tab stop, the arrows did nothing, and a screen reader knew neither the level of a node nor whether its folder was open.const [expanded, setExpanded] = useState<string[]>(["src"]); const [selected, setSelected] = useState<string[]>([]); <TreeView aria-label="Project files" items={[ { id: "src", label: "src", icon: <FolderIcon />, children: [{ id: "src/index.ts", label: "index.ts", icon: <FileIcon /> }], }, { id: "docs", label: "docs", hasChildren: true }, ]} expanded={expanded} onExpandedChange={setExpanded} selected={selected} onSelectionChange={setSelected} loadChildren={(node) => fetchChildren(node.id)} />;- Data: the tree is given as
items, each node with itsid,labelandchildren(orhasChildren, to load them later), and optionallyicon,expandedIcon,disabled,textValueanddata. Open, selected and checked are each controlled (expanded,selected,checkedwith theiron…Change) or held by the tree (defaultExpanded…), always arrays of identifiers in the order of the tree. - Keyboard: the ARIA
treepattern in full. One node in the Tab order; the up and down arrows move through the nodes shown, right opens a branch then enters it, left closes it then goes up to its parent (the two swapped in a right-to-left page), Home and End,*opens the neighbouring branches, and the first letters of a name bring the focus to it, accents and case aside. - Selection:
selectionModeissingleby default,multiple(Ctrl / ⌘ + click, Shift + click, Space, Shift + arrows, Ctrl / ⌘ + A over what is shown) ornone. A click on a branch also opens it, unlessexpandOnClick={false}. - Three-state boxes:
checkablechecks a branch and what it holds; a branch partly checked is mixed. A disabled node keeps its state, and a branch it holds back from being checked entirely is unchecked by the next press. - Loading on demand:
loadChildrenis called the first time ahasChildrennode is opened, a spinner in place of its arrow. A rejected promise closes the node again and says so under its name (onLoadError, or the console); opening it once more retries. A branch loaded empty becomes a leaf. - Custom labels:
renderLabel(node, state)draws a node's label — a count, a badge — and is told whether it is open, selected, checked, disabled or loading.emptyStatereplaces the tree whenitemsis empty. - Accessible:
tree,treeitemandgrouproles with level, position,aria-expandedon branches only,aria-selected,aria-checked(mixedincluded) andaria-busy; each node is named by its label, never by the branches it holds. TwotreeView…labels, in English and in French.
- Data: the tree is given as
0.54.0
Features
-
Select multiple: several values, written as tags in the field. Choosing several labels, recipients or columns no longer goes through aDropdownof checkboxes, which had no field, no search and nothing to submit with a form.const [skills, setSkills] = useState<string[]>([]); <Select multiple searchable label="Skills" options={options} value={skills} onValueChange={setSkills} // (value: string[]) => void maxTagCount={3} name="skills" />;- Typed by its mode, as
Calendaris bymode: withmultiple,value,defaultValueandonValueChangetake and give astring[], in the order the values were chosen; without it, astringas before.SelectPropsbecomes the union of the newSelectSinglePropsandSelectMultipleProps, which shareSelectBaseProps: aninterface … extends SelectPropsno longer compiles and extends one of them instead. - Choosing: the list stays open while options are checked (
aria-multiselectable), each with a box. Enter, and Space on the field, check and uncheck the highlighted option; the focus stays in the search field or on the field. - Tags: each value is a tag whose cross removes it; Backspace removes the last one, from the field or from an empty search. The crosses are out of the Tab order.
maxTagCountwrites the first tags and counts the others in one,+2. A value with no option is written under its own text.clearableclears them all. creatable: what is typed becomes a value, from an entry at the end of the list or with Enter, when no option bears that label — tags typed freely. An option that bears it is chosen instead. It turns the search field on.- Forms: with
name, one hidden field per value, as a native<select multiple>submits (formData.getAll(name)). - Three new labels, in English and in French:
selectRemoveValue,selectMoreValues,selectCreateOption. And alabelsprop (UILabelsOf<"select">) for the labels of one instance;placeholder,noOptionsText,clearLabel,searchLabelandsearchPlaceholderstill win over it.
For both modes:
- The list panel now holds the search field and the listbox side by side, where the listbox held the search field: a listbox holds options and nothing else.
contentClassNameanddata-placementare on the panel, as before; an application that looked up the search field inside[role="listbox"]looks in its parent. - The panel writes its text in the colour of its own background. It inherited the page's, and the options were black on
gray-800in a dark theme. - The search field carries
aria-controlsandaria-activedescendant: the focus is there while the list is open, and the option the arrows reach was announced from the field it had left. - A press on an option no longer takes the focus away before it is chosen.
- Typed by its mode, as
-
Switch: an on/off setting that takes effect as it is turned. Notifications, a dark theme or a feature no longer go through aCheckbox, which reads as a choice to confirm.const [emails, setEmails] = useState(true); <Switch label="Email notifications" description="One message per paid invoice." checked={emails} onCheckedChange={setEmails} // (checked: boolean) => void />;- A native input: an
<input type="checkbox" role="switch">under a drawn track, asCheckboxis under its box. Uncontrolled (defaultChecked), its state stays in the input and never in a React state, so a form reset — which React 19 does after every successful action — puts it back. - Forms: with
name, it is the form's field.value(onby default) is sent while it is on, nothing while it is off, as for a checkbox;requiredkeeps the form from being sent while it is off.onCheckedChangehands back the boolean, and the nativeonChangegets the event before it, so that{...register("emails")}of react-hook-form is spread as it is. The ref is the input. - States:
disabled,readOnly(reached and submitted, but neither a press nor Space turns it), anderror, read as on every field:trueor a message,aria-invalid, the message under the switch and in its description. - Look: three sizes (
sm,md,lg). Off, an outline and a grey thumb, as an unchecked box; on, the brand's fill and itson-primarythumb. The focus is an outline on the track, which a forced-colours theme keeps, and the thumb is drawn inCanvasTextthere. The target is 24px tall at least, past the track.labelPosition="left"withclassName="w-full"is the row of a settings page; a right-to-left page turns it round.
- A native input: an
-
Toasterandtoast(): the stack of notifications.Toastdraws one message where it is rendered; an application had to build the rest — a stack, the countdowns, a live region, a way past an open dialog — and each one built it again.// Once, near the root — a server layout can render it. <Toaster position="bottom-right" />; // From anywhere: a component, an event handler, a module that is not a component. toast.success("Invoice sent", { description: "The client gets it in a moment.", action: { label: "Undo", onClick: undo }, }); await toast.promise(save(), { loading: "Saving…", success: (rows) => `${rows} rows saved`, error: "Saving failed", });- The functions:
toast(title, options),toast.success,.error,.warning,.info,.loading(stays until it is replaced),.promise(hands the promise back: awaited, it still rejects) and.dismiss(id?), each returning the id of the toast. Pushed again under itsid, a toast is replaced in place and its countdown starts over.useToast()hands back the same function. On the server,toast()does nothing. - The stack: the newest
max(3) are shown, nearest the edge; the others wait without counting down and come back as the shown ones close — none is dropped unread. Each toast closes after itsduration, or the Toaster's (5 seconds);0keeps it. A line along its bottom shows the time left (showProgress), and is not drawn under reduced motion. - The countdowns stop while the pointer is over the stack, while the focus is in it and while the page is hidden, and start over after.
onClose(reason)says why a toast left:timeout,close,actionordismiss— where an undoable deletion goes through. - One polite live region announces the toasts, present before the first one; the toasts inside it carry no
role="alert". It stays readable and clickable while a dialog hides the page, above dialogs and menus. F8 (hotkey) sends the focus there from anywhere, a dialog included: Tab goes from one toast to the next, Escape or Tab past the last goes back to where the focus was, and the dialog stays open. - Two labels:
toasterRegionandtoasterRegionHotkey, the name of the region. Toast:titleanddescriptiontake any content, not only a string.
- The functions:
Fixes
Checkbox: a box without avalueof its own is sent asonunder React 18, as a browser sends it. React 18 wrotevalue=""for thevalueofundefinedthe component handed its input, and the form received an empty string; React 19 left the attribute out.valuenow reaches the input only when it is given.Switchis built the same way.
0.53.0
Features
-
DatePickerandDateRangePicker: date fields that open aCalendar.<DatePicker label="Due date" value={date} onChange={setDate} minDate={today} name="due" /> <DateRangePicker label="Period" value={range} onChange={setRange} presets={["7d", "30d", "mtd", "qtd", "ytd"]} numberOfMonths={2} />- Typed on the keyboard in the order of the reader's locale —
dd/mm/yyyyinfr-FR,mm/dd/yyyyinen-US, whatever the separator, andYYYY-MM-DDeverywhere — or picked in the calendar, opened in aPopoverfrom the button at the end of the field or with Alt + ↓, the focus on the chosen day - The text is read when the field is left or on Enter. A text that is no day the field takes — not a date, before
minDate, aftermaxDate, one ofdisabledDates— stays on screen to be corrected, is reported asnull, and the field says why in its own words (twelve newdatePicker…anddateRangePicker…labels, English and French), before the message oferror, which reads as on every field of the library namesubmits the day asYYYY-MM-DDwhatever the language (startName/endNamefor a period). Therefis the text field, where a form library sends the focus after a submit that failedDateRangePickernames each of its two fields by the label, then by "Start date" / "End date"; ends typed the wrong way round are put back in order, as the calendar does. Itspresetsare the windows ofChartPeriodPicker— same keys, same labels — held withinminDateandmaxDate, or windows of your own ({ label, from, to })
PopoverContenttakesinitialFocus: the element the focus goes to when the panel opens, rather than its first stop. - Typed on the keyboard in the order of the reader's locale —
-
One API of error for every field.
errorisboolean | stringonInput,NumberInput,MentionInput,Select,FileSelector,Checkbox,CheckboxGroup,RadioButtonandSlider, read the same way everywhere: a message marks the field invalid and is written under it in place ofhelperText;truemarks it without a message and turns the help red;false,undefinedand""are no error. A form library's message goes straight in:<Input label="Email" {...register("email")} error={errors.email?.message ?? Boolean(errors.email)} />The control is
aria-invalidwhile the field is invalid and described by what is on screen around it (aria-describedby, after the ids you pass yourself). What changes for an application already in production:Input,NumberInputandMentionInputtake a message inerror;error={true}with ahelperTextstill draws the help in red, as before. Their help is now linked to the field, which it was notSelectandFileSelectortaketrue. Their message is no longer arole="alert": like every message of the library it describes its field, read when the field takes the focus — where a form library sends it after a submit that failedaria-invalid="false"is no longer written on a validCheckbox,RadioButton,SliderorFileSelector;error=""no longer marks aCheckboxor aCheckboxGroupinvalid- The description of a
RadioButtonstays on screen beside its message (error={true}took it away and put nothing in its place), and describes the button; so does the description of aSlider's help CheckboxGroupnames its group with its label (aria-labelledby), which pointed at nothing, and describes it with its description and its message- The error border of
FileSelectorisred-500, which reads at 3:1 against the page;red-300did not hideLabelkeeps the label for screen readers onInput,NumberInputandMentionInput: it is still the field's name. It was not rendered at all- The required asterisk of
Checkbox,CheckboxGroupandRadioButtonis out of the accessible name: the control already says it is required
FormFieldgives the same frame to a field the library does not draw — a colour picker, an editor, a control of your own: label, description, help and error, and the attributes that tie the control to them, handed to a function you spread on the control. It renders on the server too.<FormField label="Colour" helperText="Any CSS colour" error={errors.color?.message} required> {(control) => <ColorPicker {...control} value={colour} onChange={setColour} />} </FormField> -
Popover: an interactive panel anchored to a trigger — a small form beside a button, filters, details the reader acts on. UnlikeTooltip, its content takes the focus; unlikeModal, the page behind stays live.<Popover> <PopoverTrigger asChild> <Button label="Filters" /> </PopoverTrigger> <PopoverContent side="bottom" align="start" className="w-72"> {/* the fields of the filter */} <PopoverClose asChild> <Button label="Apply" /> </PopoverClose> </PopoverContent> </Popover>- State: uncontrolled (
defaultOpen) or controlled (open,onOpenChange);closeOnEscapeandcloseOnClickOutside. - Placement:
side,align,sideOffset,alignOffset,avoidCollisions,collisionPadding, through theusePositioningofDropdown— the other side only when it has more room, then inside the viewport, no taller than it. The panel is portalled under the<body>of its trigger's document, a detached window's included, so that no ancestor inoverflow: hiddencuts it. - Focus: on opening, to the first field or button of the panel. Escape and
PopoverClosegive it back to the trigger; Tab past the last stop closes the panel and moves on to what follows the trigger, Shift+Tab before the first goes back to the trigger. - In a dialog: the panel is a registered floating layer, live and in the dialog's focus trap. Its Escape is prevented, so the dialog stays open, and a menu or a list opened from the panel takes Escape first; a press in one does not close the panel.
- A non-modal
role="dialog"named by its trigger.PopoverTrigger asChildcomposes with its child asDropdownTriggerdoes. APopoverClosewithout children draws a cross named by the newpopoverCloselabel.
Tooltipand the bubble ofHelpButtonare placed the same way: portalled into their trigger's document and placed byusePositioning, where they were drawn in CSS inside the trigger's box. An ancestor inoverflow: hiddenno longer cuts them, and the 288-pixel help bubble no longer leaves the screen beside a button near its left edge. The arrow of a tooltip follows the side it ends up on and keeps pointing at the trigger; tooltips sit atz-[70], above the menus. Both are shown atopacity: 0until they are measured. An application that styled them through their parent, or looked them up inside the trigger's element, has to look under<body>instead. - State: uncontrolled (
Fixes
-
A field the keyboard reaches shows it. The text fields drew no focus at all (
focus:ring-0andfocus:outline-none):Input,NumberInput,MentionInput,DatePickerandDateRangePickernow take a ring of the brand when focused, red on a field in error, asSelectalready did. The same was missing from the editable area ofMarkdownEditor(a ring around the editor while it or its toolbar has the focus), the search field of a searchableSelect(the rule under it turns to the brand), the inline fields ofSchemaEditor(an outline for the keyboard) and the mobile menu button ofHeader.The outline those elements drop is a transparent one (
outline-hidden) rather than none: a forced-colours theme, which draws no ring, shows it.
0.52.0
Features
-
The line, area and bar charts do what their props say.
- Escape is a chart's only while it drops something: a selected mark, or
a brushed window. With nothing to drop it goes on to the dialog around the
chart, which closes on it again. Every chart of the kit,
HeatmapandScatterChartincluded. - Reference lines and point annotations are inside the value axis. A target of 100 over bars of 60 and 80 used to be drawn above the plot.
- A stacked bar with negative values is rounded at its tip and reaches the
baseline:
stackSeriesnow writes a negative segment from the edge near zero to the edge away from it, as its documentation always said. - A Likert stack keeps each series on its arm when its centre is hidden from the legend.
onPointClickreads the click itself: it fires without a tooltip and on a tap, and hands over the series nearest the click — the bar, the band or the line under it — rather than always the first one.- A time axis ticks on the calendar — days, Mondays, the first of the month — written at the precision of its step and in the chart's locale.
- The tooltip and the data table write values in full ("1,150,000", not
"1.2M"), in
y.formatwhen it is given; the ticks keep the compact notation. forecastFrombetween two rows starts the forecast on the next row, aDatematches rows written as strings, and a value no row reaches says so in the console.- An annotation band with one end outside the window is clipped to it rather than dropped.
- Brushing: a window is drawn on the rows that were swept when labels
repeat, a one-row window on a line is drawn at least 6px wide, and
brushToPeriodruns to the end of the last row's interval (January to March on monthly rows ends on the 31st of March). ABarChartranked bysorttakes no window. maxPointson a stackedAreaChartthins the stack once, so two bands draw the edge they share from the same points.
New in the API:
ChartBrushRange.end,ChartBrushLayer'sminSpan,ChartAnnotationLayer'sspanAt, andlocalein the options ofbuildCartesianGeometry.useChartBrush().onKeyDownreturns whether it consumed the key. - Escape is a chart's only while it drops something: a selected mark, or
a brushed window. With nothing to drop it goes on to the dialog around the
chart, which closes on it again. Every chart of the kit,
-
The charts get their small things right.
ChartExportButtonneeds nothing in a chart. In theactionsof a chart it writes the chart's own table: the rows in the order the table sorts them, without the series the reader hid from the legend. It was handed the application's data and wrote neither.data,seriesandxKeybecome optional; a field passed still wins, and a button outside a chart is handed them as before. Every chart sets the newexportSourceofChartContainer.- The file keeps the table's columns. A series named "2025" was written
before the category, two series of one label were one column, and a date
held as local midnight was written in UTC — the eve of its day east of
Greenwich. A
Dateis now written as its day, or as its moment with its offset; a date that is not one is an empty cell. - Axes. The top tick of an axis running to 0.3 went missing (
0.3 / 0.1is2.9999999999999996), for about one maximum in five between 0.001 and 1; a histogram of more than some 125 000 values overflowed the stack. - A synchronised group marks the position
0— and""— in its other panels. - A chart whose legend moves from the right to the bottom keeps its
width:
useChartSizefollows the element it measures when it is replaced. - "12 months" on a 29 February keeps its first day.
- The surface colour. The gap between two bands of an
AreaChart, and the ring around a marker, are drawn in--color-chart-surfacerather than in white: an application that redefines it sees its own surface. - A crowded
BarChart— fifty categories of three series on a phone — narrows the gap between the bars of a group instead of running each group into the next. PieChart:maxSlicescounts the grey bucket. Seven rows drew six colours and a seventh slice "Other" holding one row, and warned about its own default. The bucket is now one of themaxSlicesslices and always holds two rows at least: an application that setsmaxSlicessees one coloured slice fewer. A negative value in the tail no longer shrinks the bucket and grows every other share. NewvalueLabel: the value column of the table was headed byx.label, the name of the slices.BulletChart: the value axis is captioned byvalueLabel, no longer byx.label, which names the rows; a negative measure is drawn left of zero instead of not at all.GanttChart: a row with no end is a milestone even when themilestonefield is passed; it came out as a 2-pixel sliver.BoxPlot: a summary given underquantilesshows no count — "Count 0" was one the chart made up — and withshowMeanthe mean is read out in the tooltip and the data table (new labelchartMean).ScatterChart: the size of a bubble is read out in the tooltip and has a column in the data table, underbubble.label, written bybubble.format(new typeScatterBubble).ChartTableViewtakescolumnFormatsfor a column whose unit is not the others'.
-
FooterBottom'scopyrighttakes any content, not only a text: a link to the owner's site, a translated sentence, a paragraph. The copyright is the application's — the component writes no name, year or rights notice of its own, and draws no line without one. It is now held in a<div>rather than a<p>, so that a paragraph passed in is not nested in another.The README showed
<Footer copyright="…" />, a propFooterdoes not have (it did not compile): it now composesFooterBottom, as the usage guide does. -
Forms, data and display components get their small things right.
Checkbox.hoverColorandfocusRingColorare taken as written, with their variant (hover:bg-red-50,peer-focus-visible:ring-red-500), so that the application's Tailwind generates them; a class without its variant is still given one. The default focus ring is written out whole — it was assembled at run time, and in the stylesheet by chance.classNamegoes on the box (it was dropped), andindeterminatestays on the input after a click while the prop says so.RadioButton.hoverColorandfocusRingColorare drawn, through CSS variables, where they removed the default and applied nothing; the focus ring follows the input's focus (peer-focus-visible:), where it waited for a focus the circle never takes.errorColorborders the circle.InputwithinlinewriteshelperTextunder the field, not beside it.FileSelectorrefuses a file it already holds, throughonReject(new labelfileSelectorAlreadyAdded), and its hidden native field is out of the tab order.Calendarindropdown: the arrows stop atfromYearandtoYear, and the year menu always names the year on screen.Pagination. A page past the last is held to the last ("91–50 of 50" and a "Previous" that did nothing), an empty set reads "0–0 of 0", two paginations on a page no longer share the id of their size menu, and the list keeps the same number of slots wherever the page is, so "Next" no longer moves under the pointer.DataGrid.- A date filter compares days (on, before, after, between) and reads a
Date, a timestamp or an ISO string alike;betweenis implemented for numbers and dates, its upper bound in the newFilterValue.valueTo; a number filter compares numbers, and an empty cell is in no comparison. New labels:dataGridOperatorBetween,dataGridOperatorOn,dataGridOperatorBefore,dataGridOperatorAfter,dataGridFilterValueTo. filterablealone draws a text filter; it drew no button.- With
editable, a cell keeps its column'srenderuntil it is double-clicked, a cell that held a number hands back a number, and the Escape that cancels an edit is not passed on to a dialog around. - Columns that arrive after the first render can be reordered.
- Several sticky columns on one side sit after one another instead of one
over the other (each one before the last needs a
width, and the console says so once), and a sticky cell of a striped or selected row is opaque.
- A date filter compares days (on, before, after, between) and reads a
Avatarshows its fallback when the picture does not load. It is still rendered on the server: the picture is a small client component over the fallback.Banner. A banner the reader closed comes back when its message changes.Breadcrumb. An item with anonClickand nohrefis a button the keyboard reaches;maxItems={1}keeps the last item; two items of one label no longer share a key.TableRowisclickableonly when it has anonClick, and its border is grey rather thancurrentColor.Cardpadding="md"pads;Dividervertical is as tall as its row;CircularProgressspins without jumping back a quarter turn; a progress ofNaNis 0 onCircularProgressandProgressBar.
-
What an application hands a component, or a reader pastes into one, stays what it is.
ImageUploaderrefuses an SVG unlessacceptnames it (image/svg+xmlor.svg): it is an image that can carry a script, which runs once the file is served from the application's own domain.acceptis now applied to the file chosen, not only to the dialog, where "All files" went around it. A refused format says so with a new label,imageUploaderTypeNotAccepted.FileSelectorreads an extension as the end of a name: a file namedpdfno longer passesaccept=".pdf", and.tar.gzworks. A dropped folder is read until it has givenmaxFilesaccepted files, and never past 10,000 entries — read to its end beforemaxFilesapplied, a large one held the tab. The JSDoc of both components says their checks do not replace the server's.MentionInputtakes what is pasted or dropped as plain text. HTML from a page went in as it was, loading its remote images, and a<span data-mention-id>in it was reported toonChangeas a mention the reader never chose. A mention is now a chip the component placed.generateSQLwrites nothing of the schema as SQL of its own. Atypethat is not a type name is written as a quoted identifier, which PostgreSQL looks up and refuses; adefaultValuethat is not a number, a string, a keyword or a function of literals is written as a string (activebecomes'active'). A shared schema withtype: "int4); DROP TABLE users; --"produced a script that ran it.- Colours and addresses written into
stylecan no longer add declarations. On the server, React writes a style value into the HTML as it is: aborderColorofred;position:fixed;inset:0laid the field over the page. The colour props ofInput,NumberInput,MentionInput,RadioButton,SliderandDeviceMockup, and thecolorof a chart series, keep a value that can only be a colour — anything else is ignored, once in the console.Bannerquotes itsbackgroundImage. DetachableandAdvanceDetachablecut the window from the page (window.openerset tonull): a link followed in the detached content could send the page elsewhere. Such a link now ends the detachment like a close — the content comes back to the page, and the window is the reader's.AdvanceDetachablechecks a message field by field before reading any of it, and withoutBroadcastChannelhears only the window it opened, on the page's origin. Itsidnames the channel in every tab: the JSDoc now says to put the identifier of what is edited in it.- The package declares
engines.node >=18.
-
A second stylesheet,
@synertech/ui/styles-no-preflight.css, for an application that compiles Tailwind CSS itself.styles.csscarries Tailwind's preflight, the reset that applies to the whole page: margins and paddings to zero,box-sizing: border-box, headings, lists and images stripped of the browser's styles. An application with its own Tailwind already has it, and the second copy, loaded after the application's stylesheet in the samebaselayer, undid the rules the application wrote there — its headings came back the size of its paragraphs. The new sheet holds the same components, classes and variables without the reset. An application without Tailwind keepsstyles.css: the components are drawn on that reset.// An application whose own stylesheet starts with @import "tailwindcss" import "@synertech/ui/styles-no-preflight.css";The README's "Advanced" section, a Tailwind 3 configuration that skipped the stylesheet, is replaced by this choice: without the stylesheet an application loses the brand ramp, the chart palette, the
darkvariant and the animations.
Fixes
-
The advanced components do what they say.
DeviceMockupscrolls at its speed.scrollTopis a whole number of pixels: the animation added a fraction of one at each frame, rounded away — on a 120 Hz screen the content stood still, at 60 Hz it jerked. The position is now kept apart and only written to the element. The animation follows the content into the frame of anotherdevice, where it kept writing to the one that was gone, and stops when the reader asked for reduced motion.DeviceMockup, the screen. The content takes what the status bar leaves, where it was cut off at the bottom by the height of the bar. A laptop or a desktop withorientation="landscape"keeps a landscape screen: only a phone, an android and a tablet turn.- Detached windows follow the page.
DetachableandAdvanceDetachablecopy a style sheet with every attribute — amedia="print"sheet applied on screen — in the page's order, and add and remove it as the page does. The class,data-theme,dirandlangof<html>and<body>are copied and followed, so the window turns dark with the page.detachedBodyClassNameis added to the classes of the page's body: it was replaced by them as soon as the body had one, as a Next.js body always has. SchemaEditorcallsonFieldClickandonFieldDoubleClick, then the table's handler; they were accepted and never called. A relation'slabelis drawn under its cardinality. AreadOnlyschema lets a relation be selected, and still never changes its cardinality.- Both editors:
autoFitfits once, as soon as there is something to fit — a schema or a workflow loaded after the first render was left at the origin — and two editors of a page no longer share one grid pattern, which drew the second one's dots at the first one's zoom.
-
The specialised charts draw what their data says.
- A mark stays on its plot.
GanttChartcuts its bars and arrows at the edge of adomainnarrower than the plan, and leaves out a milestone or atodayoutside it — the rule of a project starting next week was drawn among the names of the tasks.DumbbellChart,BoxPlotandCandlestickChartclip their marks to the plot, take their reference lines into the value axis like the cartesian charts, and leave out one that ay.domainof the caller does not reach.BulletChartstops a measure past itsdomainat the end of the track and draws no target outside it; the figure, the tooltip and the table still give the value. PieChartcolours the slices that survive the fold. A slice from past the eighth row takes a palette slot no kept slice holds, rather than the grey of "Other"; the rows of the first eight keep the slot of their row.ScatterChartdrawsquadrants.x, which it documented and ignored, and fits its trend line on centred values: on a time axis 100 ms apart the slope came out at a tenth of its value, and points sharing one timestamp drew a line.DumbbellChart:changeisnullwhile fewer than two series are visible (it was 0 on every row);sort="gap"measures the bar a row draws, its largest value minus its smallest; descending orders keep rows that tie in the order they came in; a row with nothing to sort on goes last.FunnelChartshows its empty state when no stage holds a value above zero. Every stage at 0 was drawn at half the plot.BoxPlotdraws the median of a box with no spread — one observation, or values all equal — in the colour of the box, where the white line hid it.
- A mark stays on its plot.
-
Bars keyed on a date or a number are bars again.
A
scaleoftimeorlinearsent the cartesian engine down its continuous branch, which hands out positions and leavesbandwidthat0— the width every mark of the kit sizes itself on. A bar chart keyed on a date therefore drew a row of 1px hairlines, and so did the candlestick, box plot, waterfall and dumbbell charts, which ask for the same band placement.A band asked for on a continuous axis is still a band: it now takes the widest slot the rows leave it, which is the distance between the closest pair of them, and the axis is inset by half of it so the marks on the two ends of the domain stay inside the plot. The axis keeps its own reading in exchange — the rows land on their real values, so a missing week shows as a gap rather than closing up, and an annotation can still be placed on a date the rows never carry.
binsis unaffected: a histogram's buckets are the chart's own categories, whatever scale the caller declared for the field underneath. -
The usage guide shipped with the package (the
use-synertech-uiClaude Code skill) is written with its accents throughout: the sections onModal,Drawer,Detachable, accessible dialogs, translatable labels and the anti-patterns were not. It now ends on the component reference, which reads without JavaScript, before Storybook.
0.51.0
Features
-
Editors and detached windows: one way to make a link, pointer drags, imports that say why they are refused, and content that survives the trip to the window.
WorkflowEditor, links: a link dropped near a port went through a second path that asked neithercanConnectnor a disabled port. A link is now made in one place, which asks both and refuses a disabled port at either end. The Delete key leaves a locked node.- Both editors, the toolbar's dialogs: a key, a press or a wheel that comes through a portal is no longer the canvas's. Ctrl+Z in the import field undid a change of the schema, and the wheel over the exported JSON zoomed.
- Both editors, import:
- The content is checked before it reaches the render: a table without
fieldsthrew. - The dialog stays open and names the first thing that does not fit, through two new labels,
editorImportInvalidJsonandeditorImportInvalidContent. loadJSONreturns whether it loaded.
- The content is checked before it reaches the render: a table without
- Both editors, wheel: the listener is non-passive, so the page no longer scrolls while the canvas zooms. A sideways scroll is left to the page.
- Both editors, controlled value:
updateValueis stable and builds on the latest value, so two changes in one tick both land. An inlineonValueChangeno longer renders every table again during a pan. - Both editors, pointer:
- Drags use Pointer Events, with the main button only, and end on
pointercancel. - The canvas is
touch-none, so a finger pans and drags. - In
SchemaEditor, a press on a field's row no longer moves its table.
- Drags use Pointer Events, with the main button only, and end on
SchemaEditor, SQL:- A key of two columns is one
PRIMARY KEY (a, b). - A table is created after the tables it references.
- Only the keys that close a cycle go into an
ALTER TABLEat the end.
- A key of two columns is one
DetachableandAdvanceDetachable, a blocked window:- The content stays in the page, and uncontrolled, the component is attached again.
AdvanceDetachabletakesonPopupBlockedand callsonDetachedChange(false).- A controlled
Detachableno longer tries the window again at every render of its parent.
DetachableandAdvanceDetachable, the trip:- The children are rendered once, and the element that holds them moves between the page and the window: a draft held in a child survives detaching and attaching.
Select,DropdownandChartPeriodPickeropen, listen and measure in the document of their trigger, so they work in the detached window.
-
Forms:
MentionInput,Slider,ImageUploader,FileSelectorandInputdo what they say.MentionInputshows the value it is given:- It shows it at mount, so an existing message can be edited, and again whenever the application changes it.
- The value it has just reported comes back identical and is left alone, so the caret does not move.
- A
<div>or a<br>typed by a browser is read as\n("hello", Enter, "world" was "helloworld"). - The query takes letters of any script (
@Héclosed the list), and a trigger such as+no longer throws. - The chips are portals of the component rather than a
createRooteach: the provider reaches them, andreact-dom/clientis gone. - The cross of a chip calls
onMentionRemove, and so does a deleted selection with a mention in it.
Slider,showTooltip: the bubble shows, on hover and on focus. It never did, because apeer-*variant only reaches the siblings of the peer.ImageUploader:- The URL field hands its address over when it is left or on Enter. At every keystroke, the preview loaded an image per character.
- It is
type="text"withinputMode="url": a relative address returned byonUploadmade atype="url"field invalid, and the form around it with it. - A
data:URL is no longer written into it. - The same file can be chosen again after a failure.
- A limit under a megabyte is written with decimals, in the locale of the new
localeprop. It was "max 0MB" for 500 KB.
FileSelector:onChangewas called inside the function passed tosetState, which Strict Mode runs twice, so an upload started from it left twice. It is now called beside the update.Input, handlers: they receive the event of the element rendered,HTMLInputElement | HTMLTextAreaElement. A handler annotated for either element, or a named function, did not compile.
Fixes
-
DataGridpages its groups, fits its virtual rows and sorts values as values.Wizardpasses over disabled steps, and a closedAccordionpanel is out of reach.DataGrid,groupBywith pagination:- Grouping started from every filtered row rather than the page: all the rows were drawn on every page, under a "Page 1 of 5" that Next could not change.
- The rows of a group are now kept together, and paging cuts that list. A group that runs over two pages has its header on both, with the count of the whole group.
renderGroupHeaderreceives the whole group.
DataGrid,virtualized:- A row is exactly
rowHeighttall, with no vertical padding and one line. It was 44.5px against the 40 the scroll assumed, so the bar drifted andscrollToRowmissed. - The rows drawn are those of the measured viewport:
maxHeight={800}drew 600px of rows. - A grid scrolled down whose data shrinks shows rows, rather than a spacer as tall as the old list.
- A group header takes a slot like a row, so grouping is virtualized too, and
scrollToRowcounts the headers.
- A row is exactly
DataGrid, values:- A
Dateis ordered by its moment (as text, Fri came before Mon). - Text is compared through an
Intl.Collatorof the grid's locale withnumeric, so "9" comes before "10". - Under
multiSort, turning a column around keeps its rank.
- A
DataGrid, footer aggregates:- An empty cell is no value in an aggregate:
[10, 20, null, ""]averaged 7.5, with a minimum of 0. countcounts the cells that hold something, text included.- An average, minimum or maximum of nothing leaves the cell empty. A
renderAggregatestill receives0, and the rows. - The minimum and the maximum no longer overflow the stack on 200 000 rows.
- An empty cell is no value in an aggregate:
Wizard:- Next and Previous pass over a disabled step rather than entering it.
- Next on a step that only disabled steps follow completes the wizard, and Previous is disabled when only disabled steps come before.
maxStepReachedfollows the step rendered: a controlled parent that refused a change left the step it refused clickable.
Accordion: a closed panel isinert. Its links and fields no longer take the focus out of sight.
-
ModalandDrawer: a dialog asked from a detached window opens in it. It opened in the page, behind the window it was asked from.Detachableand both modes ofAdvanceDetachabletell their children which document they are shown in, andModalandDrawerrender under that document's<body>.- A dialog still open when its window closes comes back to the page as it was: with what its content held, and with two nested dialogs in the order they were opened.
- The focus, the trap, Escape, the inert background and the scroll lock follow the dialog to the window and back, and the focus still returns to the element the dialog was opened from.
- A modal in the page keeps Escape and Tab while another is open in the window: each document has its own top dialog.
What an application may see: a
Modalor aDraweris now one element deeper under<body>, inside adisplay: contentswrapper, so a selector such asbody > [role=dialog]no longer matches. Nothing changes on the server.
0.50.1
Fixes
-
Table: the guide that ships in the package no longer nests a row in the header.- The consumer guide showed
<TableHeader><TableRow>…, twice.TableHeaderdraws its own row, so that was a<tr>in a<tr>: a browser reading it from a server splits it in two and React reports a hydration error; built on the client, the headings all land in the first column. The header cells go straight intoTableHeader, and the guide says why. TableHeaderdocuments it: itschildrenare the header cells.
Nothing changes in the components. An application that wrote its header the way the guide showed takes the
TableRowout of it. - The consumer guide showed
0.50.0
Features
-
Narrow screens: a wizard that fits a phone, and a card title that makes room for its actions.
WizardSteps,hideLabelstakes a breakpoint:"below-sm","below-md"or"below-lg"keeps the markers only under that width, and brings the titles back above it. Four labelled steps did not fit a modal on a phone, andhideLabelshid them at every width.WizardSteps, a hidden label is still the name of its step: it stays in the button assr-only. The marker isaria-hidden, so withhideLabelsevery step was a button with no name at all.WizardPanelhas no role: it saidrole="tabpanel"beside steps that are buttons, not tabs, and was announced as a panel belonging to nothing. A test of the application's that looked it up bygetByRole("tabpanel")looks it up by its content instead.CardHeader, long title: the title shrinks beside theactions, which stay whole. It was as wide as its text: withtruncateonCardTitleit never truncated, and it pushed the actions out of the card, where the card'soverflow-hiddencut them off.
-
Links: the navigation components render the link of the application's router, so that a click no longer loads the whole page again.
Sidebar,Header,BreadcrumbandFooterLinkwrote an<a href>. In a Next.js application, every click on one of them reloaded the page and emptied what the application held in memory — the cache of its queries, its stores, its subscriptions — and aLinkof next-intl never got to add the prefix of the language. An application that wanted its router had to keep its own sidebar.What an application sees now:
linkComponenton the provider:<UILabelsProvider linkComponent={Link}>, withnext/link, theLinkof next-intl, or a component of its own that renders an<a>with every attribute it receives (UILinkProps).SidebarandHeaderrender it for every address that stays in the application: the items, and the logo ofHeader.SidebarandHeadertake the same prop, which wins over the provider;useUILinkComponent()reads it for a component of the application's own. A component is a function, which React does not hand from a Server Component to a client one: the provider that receives it is set in a"use client"file, the one that holds the application's providers, not in a server layout.BreadcrumbandFooterLinktake alinkComponentprop. They render on the server and read no context, so the provider does not reach them.- Nothing changes for an application that passes none: an
<a href>, as before. A disabledSidebarItem, an address the library refuses (javascript:…), anexternalitem ofHeaderand anexternalFooterLinknever go through the router's link either. onClickreceives its event, on aSidebarItem, an item ofHeader, its logo and an item ofBreadcrumb:event.preventDefault()keeps a link from being followed. A handler written without a parameter still compiles.Header, an item with anhrefand anonClick: it was a button that led nowhere, and is now a link that calls its handler — the usual way to count a click. An application that routed from thatonClickcallsevent.preventDefault(), or passes its router's link.Header, menus: a choice in the small screen's menu, or in a dropdown, closes it. Through the router's link the header stays on screen from one page to the next, and so did an open menu, over the page it had led to.Header, badge: abadgeof0is shown in its pill; it was written straight after the label, "Inbox0".
Fixes
LineChart: a forecast no longer leaves stray markers beside its lines.- A dot beside the line, from the first paint: with
forecastFromand the markers shown, the row the forecast is cut at was marked twice, once per half of the series, and both markers had the same key. React cannot follow two children under one key: every render that moved the points left one of them in the document. The first such render is the one that replaces the 640px fallback with the measured width, so a chart showed one stray dot per series as soon as it was on screen, and one more after each resize and each change of its data. The row is marked once. - A
dashedseries on a chart with a forecast keeps its markers to the end: they stopped at the cut, while its line went on. - Markers are keyed by rank, not by position, in
LineChartand for the lone points ofAreaChart: two rows on the same moment with the same value shared a key, with the same result.
- A dot beside the line, from the first paint: with
0.49.0
Features
-
Menus, sidebar, toasts and tooltips: they stay on screen, say what they do, and props that were declared now do something.
What an application sees now:
Toast,durationandpositionwere declared and read by nothing.durationcallsonCloseonce it has passed, held while the pointer is over the toast or the focus is in it.positionfixes the toast to a corner of the viewport, above dialogs and menus. An application that already passed them sees its toast close and move: it was written<Toast position="top-right" duration={5000}>and nothing happened. One toast per corner: there is still no stack.Tooltip,offset, declared and unread, is the distance between the trigger and the bubble. AnonMouseEnter,onFocusoronClickpassed to the tooltip no longer replaces the one that shows the bubble, and a delay still running when the pointer has left no longer shows it afterwards.DropdownTrigger asChildcomposes with its child instead of replacing what the child says: the child'sonClickandonKeyDownrun first (and keep the menu closed withpreventDefault()), adisabledchild stays disabled, and the child's ownrefstill receives the element.Buttonforwards its ref. Under React 18 a<DropdownTrigger asChild>around aButtonhad no element to place its menu against, and the menu never showed.- Menus stay on screen. A menu goes to the other side of its trigger only
when that side has more room: on a screen 400px high it was sent above the
top, at -154px, where it could not be reached. It is then kept inside the
viewport on both axes — a submenu on a phone was at -143px — and never grows
taller than the viewport: it scrolls.
usePositioningreturnsavailableHeightfor that. - A closed menu costs nothing. Every
Dropdownon a page, open or not, measured twice and set a state on each scroll event. It now listens only while it is open. Selectopened upwards sits right above its field: its list was placedmaxHeightabove it whatever it held, so two options floated 180px away. Whileloading, Arrow down then Enter no longer chooses an option.Sidebar,onMobileOpenChangeis called when the viewport leaves the mobile layout with the drawer open, and at no other time: it was called at mount on a wide screen, and again whenever the callback was a new function — an inline one that set a state looped until React stopped it.Sidebar, the breakpoint: the mobile layout starts belowmobileBreakpoint, not at it. At exactly 768px the sidebar was a closed drawer while a button hidden frommd:up was already gone.Sidebar, collapsed: an item is named by its label for assistive technology, its tooltip shows on focus as well as on hover, and the links of a closed submenu are no longer in the tab order.HelpButtonin a modal: Escape goes back one level — the edit, then the help, then the modal. It cancelled the edit and closed the modal at once, with the draft in it.- Dialogs: the focus trap treats a radio group as one tab stop, so Tab no longer leaves a dialog that ends with one; the scroll lock is counted per document, for a dialog opened in a detached window.
Not done, and still true:
Tooltipand the bubble ofHelpButtonare positioned in CSS, without a portal — an ancestor inoverflow: hiddenclips them, and the help bubble can leave the screen near its left edge.
0.48.0
Features
-
Numbers and dates:
UILabelsProvidertakes alocale, so that a server and the browser it renders for write them the same way.A chart, a calendar or a stat card with no
localeasked the runtime for its language. That is the server's on the server and the reader's in the browser: a page rendered inen-USwrote "1,284.5" and "March 2024", and the text changed to "1 284,5" and "mars 2024" at hydration.What an application sees now:
localeon the provider:<UILabelsProvider labels={frenchUILabels} locale="fr-CA">.labelsis the language of the texts,localethe way numbers and dates are written. The thirteen charts,Calendar,ChartPeriodPicker,NumberInputand the footer aggregates ofDataGridread it; thelocaleprop of one instance wins, and a nested provider that names none keeps the one above it.useUILocale()reads it for a component of the application's own.DataGridgains alocaleprop.- Nothing changes for an application that sets none: those components
still follow the language of the runtime (
NumberInputstillen-US). An application that renders on the server should set it. StatCardtakes alocaleprop. It renders on the server and reads no context, so the provider does not reach it — norChartFacetsandChartScaleLegend, which already had the prop.StatCard, direction of the variation: read off what is written, not off the raw sign. A variation of 0.0003 drew a green arrow pointing up beside "0%"; it is flat. This holds for adelta.formatof the application's too, anddelta.directionstill wins.Calendar,today: the day marked as today and the one the "Today" shortcut goes to, for an application that renders on the server or freezes the day.ChartPeriodPickerhands itsnowto the calendar it opens.Calendar, "Today" shortcut: pressed while today was selected, it took the selection away and calledonChange(null). It now changes nothing; inmultiplemode it no longer removes today from the selection.Calendar, week numbers: a row is numbered after its Thursday. With weeks starting on a Sunday — the default — the row from 31 December 2023 to 6 January 2024 was numbered 52; it is week 1.Calendar, a date that is not one:value={new Date("")}threw aRangeErrorduring render. An invalid date is now no date, invalue,defaultValue,month,defaultMonth,minDate,maxDateandtoday.
0.47.1
Fixes
-
HelpButton: help written in HTML keeps its text and its formatting, and nothing else; neither HTML nor Markdown help shows an image.The HTML went through DOMPurify with its defaults. Scripts and event handlers were removed, but a
<style>stayed — and a style reaches the whole page, not the bubble — and so did forms, password fields and remote images. Help is contenteditableandonSaveexist to let someone rewrite, and everyone else reads it: whoever could edit the help could hide the interface, draw a password field inside the application's own bubble, or learn from a remote image who opened the help, and when.What an application whose help held one of these sees now:
- Kept: what the Markdown mode produces — headings, paragraphs, line
breaks, rules, lists, quotes, code blocks, tables, links,
strong,em,del— the HTML spellingsb,iands,kbd, anddiv/span. Help written like the examples in the documentation renders as before. - Dropped with what is inside: among them
<style>and<script>,<iframe>,<video>,<audio>and<svg>. - Dropped, their text kept: every other element, among them
<form>,<input>,<button>,<select>,<textarea>and<img>. An image in an HTML help is no longer shown, itsalttext with it. - Attributes: a link keeps
href, any elementtitle.class,style,id,name,target,data-*andaria-*are removed — the application's own Tailwind classes could cover the screen. - Links: an
http:,https:,mailto:,tel:or relative address is kept; any other (ftp:,sms:,data:…) leaves the text of the link without its address. A link to another site getsrel="noopener noreferrer".
DOMPurify is now an instance of
HelpButton's own: aDOMPurify.setConfig()oraddHook()an application calls for its own HTML no longer changes what a help bubble lets through, and nothingHelpButtondoes changes them.The Markdown mode let the same image in by another way:
was rendered, and a remote image there told the same third party who opened the help. It is dropped now, its alt text with it, as in the HTML mode; the text around it and a link it was wrapped in stay. Raw HTML in the Markdown was never rendered and still is not. A help that needs an image is given as a React node, which is rendered as it is. - Kept: what the Markdown mode produces — headings, paragraphs, line
breaks, rules, lists, quotes, code blocks, tables, links,
-
HelpButton: the Markdown mode no longer writesnode="[object Object]"on the elements it styles. react-markdown hands each component the syntax-tree node it renders, and the headings, paragraphs, lists, links, quotes, code,strongandemof the bubble spread it onto the element along with the real attributes. Nothing else changes in what the bubble shows. -
Links: an address that could run something is no longer rendered as a link, and a
relgiven to a footer link no longer dropsnoopener noreferrer.The library supports React 18, which follows a
javascript:address on click — React 19 blocks it. An application on React 18 that passed an address a user had typed toBreadcrumb,Header,SidebarItemor a footer link ran whatever that address held.What an application sees now:
- Addresses: the
hrefof aBreadcrumbitem, of aHeaderitem or submenu item and itslogoHref, of aSidebarItem, of aFooterLinkand of aFooterSocialLinkmakes a link only when it ishttp:,https:,mailto:,tel:or has no scheme (a path, a query, an anchor,//host). Any other —javascript:,data:,vbscript:, but alsoftp:,sms:or the scheme of an app — leaves the text or the icon without its link; aSidebarItemrenders as a button, as it does withouthref. The console says so once per component and scheme, without the address. A link that needs another scheme is an<a>of the application's own. rel:FooterLinkwithexternal, andFooterSocialLink, addnoopener noreferrerto therelthey are given. Arel="nofollow"orrel="me"used to replace them; the link now carries both.
- Addresses: the
0.47.0
Features
-
The colour of the application is a variable. An application whose colour is not blue rebrands the whole kit in one block of CSS, instead of passing a class to the few components that took one and living with blue focus rings, blue progress bars and blue selections everywhere else.
One ramp, read by every component
Blue was written into the components class by class:
bg-blue-600for a button,ring-blue-500for a focus ring,text-blue-600for a link — 262 classes in 49 files. They now name a ramp of CSS variables,--color-synertech-primary-50to-950, declared in the stylesheet the package ships.:root { --color-synertech-primary-50: #f5f3ff; --color-synertech-primary-100: #ede9fe; --color-synertech-primary-200: #ddd6fe; --color-synertech-primary-300: #c4b5fd; --color-synertech-primary-400: #a78bfa; --color-synertech-primary-500: #8b5cf6; --color-synertech-primary-600: #7c3aed; /* the fill, and text on a light page */ --color-synertech-primary-700: #6d28d9; /* the fill under the pointer */ --color-synertech-primary-800: #5b21b6; --color-synertech-primary-900: #4c1d95; --color-synertech-primary-950: #2e1065; /* What is written on the 600 and 700 fills. White by default. */ --color-synertech-on-primary: #fff; }- Nothing changes for an application that redefines nothing. The default of each stop is the stop of Tailwind's blue the class used to name, to the digit; a check at the end of the build compares the two.
- What is written on the fill is a variable too. A label, a check mark, the
dot of a radio button are
--color-synertech-on-primary, white by default. - The 600 and 700 stops do two jobs: a fill under
on-primary, and text on a light page. White on a blue or a violet reads at 4.5:1 both ways. On a light hue it does not (3.6:1 on Tailwind's orange-600): put a darker stop at 600 — orange-700 there reads at 5.2:1 both ways. Turningon-primarydark instead keeps a bright fill readable and leaves the brand-coloured text of a light page as pale as that fill. - Declare it in plain CSS, on
:rootor on any element. On an element it repaints what is under it — aModal, a menu or the list of aSelectis rendered under<body>, out of its reach. - The names carry the name of the library because the stylesheet ships
compiled into applications that have a Tailwind theme of their own: a
--color-primarydeclared by the library would be the application's variable too, and whichever stylesheet came last would repaint the other.
What stays blue
The
infostatus ofBanner,ToastandTooltip, which is blue in every application like the red of an error; the marks of the keys inSchemaEditor, which its legend names; and the chart series, which have their own palette (--color-chart-1to-8).Colour props
The props that took a class still do, and still win:
bgColor,checkedColor,progressColor… Two defaults moved with the ramp:Button:textColordefaults totext-synertech-on-primaryon the default fill, and totext-white, as before, on a fill passed asbgColor.Checkbox:checkmarkColorfollows the same rule withcheckedColor.
An application that turned
on-primarydark for a light brand colour did not ask for dark text on its red buttons.A class name that an application's own stylesheet or tests looked for —
.bg-blue-600on aButtonof the library — is now.bg-synertech-primary-600. Nothing else is to be done to upgrade. -
A modal no longer closes on a save that failed, a progress bar can be named and coloured by the page it is on, and the tests of an application need no polyfill to render
SchemaEditororSidebar. Reported from an application that had written its own modal footer and its own progress bar to get there.Modal: the confirm button closed the modal whatever its handler didonSubmitClickwas awaited andonClose()called after it, unconditionally. A form that did not validate lost what had been typed; the only way to keep the modal open was to throw, and nothing caught the error. The button stayed live while the request ran, so a double click sent it twice. A request that came back after the modal had been closed with Escape and opened again closed the new one.- A handler that returns
false, or whose promise resolvesfalse, keeps the modal open. So does one that throws. onSubmitError(error)receives what the handler threw or rejected with. Without it the error is not swallowed: it reaches the page as before, and whatever reports errors there still sees it.- While a promise is pending both footer buttons are
disabledand the one that was pressed isaria-busy. A second click does not run the handler again. If the browser dropped the focus meanwhile and the modal stays open, the button gets it back — unless the handler put it on a field of the dialog. - A handler that ends after its modal was closed, or closed and opened again, closes nothing.
closeOnSubmit={false}leaves closing to the application.onCancelClickfollows the same rules.
A handler that returns nothing closes the modal as it always did.
<Modal open={open} onClose={() => setOpen(false)} title="New team" showCancel onSubmitClick={async () => { if (!validate()) return false; // what was typed stays on screen await save(); // an error here keeps the modal open }} onSubmitError={(error) => setFailure(messageOf(error))} />Modal: the restpanelClassNamereaches the dialog panel.classNameis, and stays, the backdrop: there was no way to give the panel a height.openis accepted besideisOpen, the nameDraweruses.isOpenkeeps working and is not deprecated; it is now optional inModalProps, since one of the two is enough.- A modal named by
aria-labelwith notitlewas shown under the placeholder "Modal Title" and itsaria-labelwas dropped. It now has no visible title, liketitle="". - A modal given neither still shows the placeholder, and a warning says so once.
ProgressBar: a colour and a name of the application's ownprogressColorandtrackColorreplace the colours of the fill and of the track, as they do onCircularProgress.classNameonly ever reached the wrapper, andcolor="primary"is blue.aria-label,aria-labelledby,aria-describedbyandaria-valuetextgo to the element that holds theprogressbarrole. They landed on the wrapper, where they name nothing: the only way to name the bar waslabel, which also prints it — twice, on a page that already shows its own.
Tests: no polyfill needed under jsdom
SchemaEditorcallednew ResizeObserverandSidebarcalledwindow.matchMediawithout asking whether they exist. jsdom has neither, so an application had to mock both in its test setup to render a page that used them. Both ask first now, and the library's own test setup installs no polyfill any more: the suite fails on the next component that calls one unguarded. - A handler that returns
Fixes
-
A form sends what its fields show. Four defects where the two disagreed, in
Checkbox,CheckboxGroup,NumberInput,ButtonandChip.Checkbox: ticked on screen, absent from the formAn uncontrolled checkbox drew its tick from a React state that mirrored the input. A form reset unchecks the input and tells no one — and React 19 resets the form by itself once an action succeeds. The box stayed ticked on screen and the next submit left without it.
The checked state now stays in the native input, as it does in
RadioButton: the box is drawn in both states and:checkedpicks the one on screen. It follows a reset, a<button type="reset">, and whatever writescheckedthrough the ref. Controlled, nothing changes.CheckboxGroup: a form could not tell which boxes were checkedCheckboxGroupItemread itsvaluefor the group and never handed it to the input:FormData.getAll("fruits")returned["on", "on"].- Each item submits its
value. CheckboxGrouptakes aname, which every item submits under. An item's ownnamewins.- An uncontrolled group follows a form reset. It kept the values of before in its own state, and the next click on a box was read against them: it unchecked a box that was not checked.
NumberInput: what was typed vanished on blurWithout a
valueprop the field displayed the prop all the same: typing 42 and leaving the field emptied it.- Without
value, the field keeps what is typed in it.defaultValueis the value it starts with; it used to be passed down to the input, which showed nothing and made React warn. value={null}is still a controlled, empty field.decimalsapplies to the value too. It rounded what the field shows and not what it emits: the field read 1.23 andonChangereceived 1.23456. Withoutdecimalsthe value is emitted as typed, as before.- A pasted number is read the way the locale writes it:
1 234,56in French,$1,234.56in English. It was refused whole, without a word. What is not a number in the locale of the field is still refused — an English1,234.56pasted in a French field is not turned into 1,23456. stepdoes something: the up and down arrows add and take it away, withinminandmax. It was accepted and ignored.
Button: the form did not know which button was pressedvalueonly reached adata-valueattribute. With several submit buttons — the usual way to tell "save" from "delete" in a server action — the intent arrived empty. Thevalueattribute is now set;data-valuestays.Chip: a filter chip submitted the form<Chip as="button">had notype, so it submitted the form it was in, and its props did not let an application give it one. It is nowtype="button".With
closable, it rendered a button inside a button. The chip is now two buttons side by side in the same pill, the content and the cross, each reachable from the keyboard.Visible to applications
NumberInputwithdecimals:onChangereceives the rounded value.NumberInput: the up and down arrow keys change the value.<Chip as="button" closable>: the element that carriesclassNameis a<span>holding the two buttons; the other props (onClick,aria-pressed,id…) go to the content button. Its size on screen is unchanged.<Chip as="button">no longer submits a form.
- Each item submits its
-
Checkbox: the check mark of theoutlinedvariant can be seen.An outlined box has a border and no fill, and its mark was drawn like the mark of a filled box: white. On a light page that is a white tick on a white square — the box looked empty with a coloured border, checked or indeterminate. In the dark theme the box is dark and the white mark showed, which is how the defect went unseen.
- The mark is drawn in the colour of the outline. With the default colour that
is the brand ramp,
600on a light page and400on a dark one, like every text of the kit; the border follows the same two stops, where it stayed on600in the dark theme. - With a
checkedColor, the outline and the mark take it. A colour in two classes,bg-green-700 dark:bg-green-500, is read whole: only its firstbg-was turned into a text colour, and the second painted a fill on a box that has none. checkmarkColorstill wins. A disabled box, drawn filled whatever its variant, keeps the mark of a filled box.
The
defaultandfilledvariants are unchanged. - The mark is drawn in the colour of the outline. With the default colour that
is the brand ramp,
0.46.3
Fixes
-
The editors no longer lose what was typed or drawn in them. Five defects of
WorkflowEditor,SchemaEditorandAdvanceDetachable, each of which threw work away without a word.WorkflowEditor: Backspace in a field of a node deleted the nodeA node is whatever the application renders, a form included. The canvas heard every key and every press of that form and answered them as its own: a click in an
<input>selected the node, and the first correction typed in it removed the node and its edges. The same click armed the drag, so selecting text with the mouse moved the node.A key or a press that starts in an
input, atextarea, aselector an editable region now belongs to the field. The node is still selected, and is still dragged from the rest of its content.SchemaEditor: relations ended 26px above their fieldIn the default mode every table draws a notes row, empty or not. The positions only counted it when the table had notes, and counted the table's border nowhere. Every relation ended 26px too high — on the notes row, or on the field above — and a relation released on the middle of a field put its key on the field below. Table heights were wrong the same way: fit to content, minimap, auto layout, and the first move of a resize.
The renderer and the geometry now ask one function which rows a table draws.
SchemaEditor: undo was drowned by the viewEvery mouse move of a pan and every wheel tick was an entry of the history, which keeps 50. Deleting a table and then moving the view by 60px was enough for no Ctrl+Z to bring the table back.
- The view is no longer part of the history, and an undo leaves it where it is.
- Dragging or resizing a table is one step to undo, where it was one per mouse move.
- Controlled, a schema the application loads after the mount starts a history of its own. Seeded at mount only, the first Ctrl+Z after an edit brought back the schema of the first render — usually the empty one.
SchemaEditor: foreign keys outlived what they pointed atA key is written twice, as a relation and as the
foreignKeyof a field, and nothing kept the two in step. Deleting a table took its relations and left the keys that pointed at it: the icon stayed, the field could not become a primary key, there was no relation left to delete, and the SQL export dropped the constraint silently.- Removing a table, a field or a relation removes the keys that go with it, from the keyboard, the table and the ref alike.
- A relation is read in either direction. The editor draws it from the referenced field to the key; the schemas of the documentation write it the other way round, and removing such a relation left its key behind.
- A key that names a table or a field that is gone is ignored, on screen and in
the SQL: schemas saved before this release are shown clean.
loadJSONcleans them for good. - Visible in the SQL export: a relation given without
foreignKeyused to draw a line and export nothing. It now exports its constraint. A column that references two tables gets two constraints, the second namedfk_<table>_<field>_2.
AdvanceDetachable: a window that opened overwrote the othersEvery instance sent its value when it was mounted. Opening a second tab on the same
idreplaced what had been typed in the first with the second's initial value.- An instance arrives without sending anything. It says so on the channel, and the instances that hold a written value answer with it.
- Writes carry a stamp and every instance keeps the newest. Two windows that write at the same moment end on the same value, where each took the other's.
- Going back to a value was sometimes never sent —
a, thenabfrom another window, thenaagain — and the windows stayed apart.
Visible to applications: a tab that opens next to one already holding a written value takes that value, through
onValueChange, instead of imposing its own. Two tabs that were only mounted each keep theirs. -
Grey secondary texts can be read. 0.46.2 brought the status colours to 4.5:1 and left the greys alone;
text-gray-400on a white page reads at 2.6:1, anddark:text-gray-500at 3.7:1 on a dark one.What changes on screen
- The lightest grey ink is
gray-500on a light page andgray-400on a dark one. Hints and captions: the "(optional)" ofLabelandWizard, the step descriptions ofWizard, the helper texts and file sizes ofFileSelector, the shortcut of aDropdownItem, the group label ofSidebar, the empty message ofDataGrid, the week numbers and the days outside the month ofCalendar, the hidden entries of a chart legend, the types and notes ofSchemaEditor. - Icons follow, so that a component has one grey: the close buttons of
Modal,DrawerandSidebar, the clear button and the chevron ofSelect, the search and grip icons ofDataGrid, the separators ofBreadcrumb,PaginationandFileSelector. At 2.6:1 a chevron was under the 3:1 asked of a graphic as well. - Placeholders are texts:
gray-500inSelect,MentionInput, the search ofHeaderand the inputs, where the browser's default was the text at half strength (3.4:1). On the dark field of an input the placeholder isgray-300—gray-400stopped at 4:1 ongray-700. SchemaEditor: a read-only schema is drawn at full strength. Its tables were handeddisabledand dimmed to 60% — text at 3.3:1, names in blue at 2.6:1 — and a disabled editor dimmed twice, down to 36%.variant="light"of a mutedLabelis the shadedefaultuses, for the reason given in 0.46.2: a paler label could not be read.
Disabled states keep their faded grey: WCAG asks nothing of them.
The check reads greys and placeholders
scripts/check-contrast.mjsno longer skips a grey text with no background, and readsplaceholder-…/placeholder:text-…against the field they are written on. A class list that sayscursor-not-allowedis a disabled state and is left alone. - The lightest grey ink is
0.46.2
Fixes
-
The status colours can be read: every text the components write on a colour of their own now reaches 4.5:1, in the light theme and in the dark one. 0.46.1 fixed white on yellow, the worst case; the other colours were less wrong and more widespread, between 2.2:1 and 4.4:1.
What changes on screen
- Fills under white text are one shade darker where white did not read:
green-700,cyan-700andteal-700instead of the 600 (solidChip,Badge,Toast,Tooltip, the selected pill ofTabs, the step marker ofWizard, the selected day ofCalendar),red-600instead ofred-500(the badges ofHeader, the remove button ofImageUploader). In the dark theme the selected day ofCalendar, the active page ofPaginationand the submit button ofModalkeep the fill of the light theme instead of a lighter one. - A status colour written as text is its 700 shade on a light background,
for green, yellow, cyan, teal, amber and orange: outlined and subtle variants,
the value of
ProgressBar,CircularProgressandSlider, the icons ofToastandBanner, the variation ofStatCard,Label. The soft green isgreen-800ongreen-100; red on its own tint isred-700. - Error messages and required marks are
red-600, andred-400in the dark theme where nothing was said for it:Checkbox,CheckboxGroup,RadioButton,Select,Slider,Label, the helper text of the inputs. The default ofCheckbox'serrorColoris"text-red-600 dark:text-red-400". - The count of
Indicatorhas its own fills, darker than the dots that carry no text: white reads on all of them, and the warning keeps its dark text. Label:variant="light"is the lightest shade that still reads. For a hue that is the shadedefaultuses — a paler label could not be read.Toast: the description is drawn at full strength. At 90% opacity it fell under 4.5:1 on the green and red fills and on every soft variant.TableHeaderin the dark theme and the address bar ofDeviceMockupwrite ingray-300ongray-700; the icons and the default value ofSchemaEditorhave a shade per theme.
An application that overrides these colours with its own classes is not touched. Grey secondary texts (hints, placeholders) are unchanged.
A check holds it
scripts/check-contrast.mjsruns at the end ofpnpm build. It resolves the colours of every class list in the palette of the shipped stylesheet, pairs a background with the text written beside it, reads a status colour with no background on the page, and fails under 4.5:1. - Fills under white text are one shade darker where white did not read:
0.46.1
Fixes
-
Two texts that could not be read, both fixed where they are drawn.
Text on the warning colour is dark
The warning colour is the one light background of the status set, and eight components wrote on it in white, the pairing that is right on blue, green and red: 1.9:1 on
yellow-500, 2.2:1 onamber-500and 1.5:1 onyellow-400, where WCAG AA asks for 4.5:1.They write in
gray-900now, between 7.8:1 and 11.3:1: a solidChip,BadgeandToast, the warningTooltip, the selected pill ofTabs, the selected day ofCalendar(it already did in the dark theme), the step marker and the next button ofWizard, and the count ofIndicator. On a solidToastthe icon and the close button take the colour of the text instead of a white of their own.An application sees it: the text of a solid warning goes from white to dark. The other status colours are unchanged.
MarkdownEditor: body text in the dark themeThe text typed in the editor stayed near-black on the dark surface. The stylesheet of
@mdxeditor/editoris not in a layer and colours the editable area itself, so it won over the library's utilities; the text isgray-300in the dark theme now.
0.46.0
Features
-
What the end user sees and hears: tabs and charts that answer the keyboard, a dark mode the application drives, the animations the components always asked for, and built-in texts in one language at a time.
Dark mode follows the application
Every
dark:utility of the shipped stylesheet was compiled underprefers-color-schemealone: the components followed the operating system and never the application. An application with its own light/dark switch got a dark dialog on a light page as soon as the reader's system was in dark, while the charts — whose palette already listened to the class — stayed light next to it.The stylesheet now reads three cases, the same for the components and the chart palette:
darkclass ordata-theme="dark"on an ancestor, usually<html>: dark. A dark section of a light page works too.lightclass ordata-theme="light"on<html>: light, whatever the system says.- Neither: the system decides, as before.
An application that manages its theme says so in both states. A switch that only ever adds
darkleaves the light state undeclared, and undeclared means "ask the system": setlightas well (next-themesdoes both). Nothing changes for an application that never touched the theme. The stylesheet is about 3 kB larger once compressed, eachdark:rule now being written for two scopes.Animations, and classes that had no rule
animate-in fade-in-0 zoom-in-95and their kin are the class names of a Tailwind plugin that was never installed. They were in eight components and nowhere in the stylesheet, so menus, drawers, select lists, toasts and the help popover appeared without a transition, andSkeleton animation="wave"stood still. They are now defined in the library's own stylesheet, with no dependency, and stop for a reader who asked for reduced motion.pnpm buildnow fails when a component uses a class that has no rule (scripts/check-css-classes.mjs). Its first run found four more:prose: help text written in HTML (HelpButton) and the editing area ofMarkdownEditorhad no typography at all — headings, lists and links came out as flat text. They now look like the MarkdownHelpButtonrenders.scrollbar-hide: the scrolling content ofDeviceMockupshowed its scrollbar.dark:hover:bg-gray-750: a shade that does not exist; the rows ofSchemaEditorhad no hover in dark mode.resize-verticalon a multilineInput: the class isresize-y. The textarea is now resized vertically only, as intended.
Header
The
defaultvariant is a dark bar with light text. Its background class (bg-neutral, a leftover from another library) had no rule: the bar was transparent and its text white, unreadable on a light page. An application that put dark content in a default header has to adjust it, or passbackgroundColor.Tabs
The tabs can be operated from the keyboard. Only the selected tab was focusable and no key led to the others: the first tab was the only one a keyboard could ever reach. The arrow keys, Home and End now move between the tabs — up and down when
orientation="vertical", mirrored in a right-to-left page — skip disabled tabs, and select the tab they land on.One tab is always in the tab order: the selected one, or the first enabled tab when nothing is selected or the selected tab is disabled. Without
defaultValue, the whole component used to be out of reach of the keyboard. Each panel is named by its tab (aria-labelledby) and the selected tab points at its panel (aria-controls).Charts
Enter and Space on a focused chart do what a click does, with the same arguments:
onSliceClick,onPointClick,onRowClick,onCellClick,onStepClick,onStageClick,onBoxClick,onCandleClickandonTaskClickwere reachable with a pointer only. Without a handler, or with no mark selected, the keys are left to the page.The first arrow key lands on the first mark. It used to land on the second: the first one could only be reached with Home.
ScatterCharthas a keyboard path. It was a tab stop that answered no key. Left and right walk a series in x order, up and down change series and land on the nearest mark, Home and End go to the ends, Escape drops the selection.With
brush, the first Shift + arrow on a chart where nothing is selected only places the cursor on the first mark; the next one extends the window from there. It used to commit a two-category window at once.Built-in texts: one language at a time, and all of them translatable
The strings the library writes itself were behind
UILabelsfor the dialogs and the charts only. Everywhere else they were written in the components — in English for most, in French forHelpButtonandImageUploader— so a French application showed "Rows per page" under its grid, and an English one "Afficher l'aide" on its help button.UILabelsnow holds every one of them: 237 keys, each with its English default and its French translation (frenchUILabels).DataGrid,Pagination,Select,FileSelector,ImageUploader,HelpButton,MarkdownEditor,Calendar,Wizard,SchemaEditor,WorkflowEditor,Header,Banner,Toast,Chip,Modal,MentionInput,DeviceMockupandBoxPlotread them.- Per instance, a component with more than a few strings takes a
labelsprop with the very keys of the provider —<DataGrid labels={{ dataGridNoData: "No invoice" }} />, typedUILabelsOf<"dataGrid">— and the others a prop each:closeLabelonToastandBanner,removeLabelonChip,menuLabelonHeader,clearLabel,searchLabelandsearchPlaceholderonSelect,optionalLabelonWizardSteps,loadingLabelonMentionInput. The prop wins over the provider, the provider over the English default. Every existing prop keeps its name and still wins. formatUILabel(template, values)fills the{name}placeholders of a label ("Page {page} of {total}"): labels stay plain strings, so a set can be written in JSON.useUILabels(overrides)takes thelabelsof one instance.- The labels live in a module without
"use client":frenchUILabelscan be read from a Server Component. Label,BreadcrumbandAvatarrender on the server, where the provider does not reach. They take their text as a prop, English by default:<Label required requiredLabel={frenchUILabels.labelRequired} />.pnpm buildfails on a user-facing string written in a component (scripts/check-ui-strings.mjs).
What an existing application will notice:
HelpButton,ImageUploaderand the placeholder ofMarkdownEditorare in English by default, like everything else. Their French texts are the same as before under<UILabelsProvider labels={frenchUILabels}>.- Under
frenchUILabels, every component is now in French, down to aModalwithout atitle. - An object typed as a complete
UILabels— a third language — has 180 keys to add before it compiles again.Partial<UILabels>, which is what the provider takes, is not affected. closeLabelpassed toToastorBanneris no longer spread onto the DOM element.- A component that reads a label carries the labels: the two sets weigh 18.9 kB
minified, 5.1 kB compressed, in one module, and a bundler drops the French
one where it is not imported.
Label,BreadcrumbandAvatarcarry four strings.
Not in this release: a
localeon the provider. Number and date formats are a separate matter from the words.
Fixes
-
DataGridkeeps its basic functions when they are combined, and both CSV exports write a file that opens as it was meant to.Resizing
The resize handles sat on the right edge of the table instead of on their own column: one invisible strip over the last column, which was the only one it could resize. Each header cell is now the box its handle is placed in. The click that follows the release no longer sorts the column that was just resized.
Pagination
- The "rows per page" selector changes the page size.
pagination.pageSizewon on every render, so the grid stayed at 10 rows and the menu jumped back. It is now where the grid starts, and it wins again whenever the caller passes another value. - The grid no longer shows "No data available" next to "Page 5 of 3". Applying
or clearing a column filter goes back to the first page, as the search
already did, and the current page is read against the pages there are: when
datashrinks under it, or a controlledpagepoints past the end, the last page is shown.
Row identity
- Without
rowKey, a row was known by its place on the page: checking the first row of page 1 checked the first row of page 2, and a sort moved the check, the expanded row and the edited cell to another row. A row is now known by its position indata, which arowKeyfunction receives asindex. That still shifts whendatais refetched or paged by a server: the grid says so once, androwKeyremains the way to tie state to a row. - "Select all" adds the rows on screen to the selection instead of replacing
it, and the header box takes back only the rows on screen. What was checked
on another page stays checked.
deselectAll()on the ref still clears everything. onReorderreceives positions indata. It received positions on screen, which moved the wrong rows as soon as the grid was paged or filtered. If you compensated for the page yourself, remove the offset. Rows cannot be dragged while the grid sorts them itself, where an order made by hand has no meaning, and a drag dropped outside the grid no longer leaves its row dimmed.
Column filters
- A number column applies the operator it shows. The menu read "Equals" while "contains" was applied: filtering on 5 kept 5, 15, 25, 35 and 45.
- Using the popover no longer sorts the column it hangs from. Clicking in its field sorted, and "Apply" sorted the other way.
- The popover reopens on the filter in force, not on what was typed and left
behind before
resetFilters().
CSV
DataGridquoted a cell only when it held a comma and never doubled a quote, so a line break added a row andx",=1+1,"ycame out as three fields. The file follows RFC 4180, headers included, as the charts' already did. Numbers are written as numbers.- Text that starts like a formula (
=,+,-,@, a tab or a carriage return) is written with an apostrophe in front, inDataGrid's file and in the charts'. A value typed by one person —=HYPERLINK(…)as a customer name — became a live formula in the spreadsheet of whoever opened the export. Numbers are never touched, whether they arrive as numbers or as text:-5stays-5.exportNeutralizeFormulas={false}onDataGrid, andneutralizeFormulas: falseonChartExportButtonandtoChartCsv, write the text as it is.
- The "rows per page" selector changes the page size.
-
Six form fields now do what they show.
MentionInput
Clicking a suggestion inserts the mention. A browser moves the selection when the mouse button goes down, before the click is delivered: the caret left the editor, the
@could no longer be found, and the list closed on a field that still readHi @— whileonMentionSelectreported a mention the text did not contain. The press on the list is now cancelled, so the caret stays where the mention goes, as it always did from the keyboard.onChangeandonMentionSelectare called only when the mention was inserted, and a caret that is not in the editor is never written to.RadioButton
Uncontrolled radio buttons form a real group. Each button kept its own "checked" state, and a radio is never told that another button of its
nametook its place: after clicking B then C, three dots were on screen and the form still submitted the first value. The state now stays in the native input (defaultChecked) and the circle follows:checked: one dot, the value on screen is the value submitted, and a form reset — or a library writingcheckedthrough the ref — is followed too. A read-only button refuses the click itself.onCheckedChangeis unchanged: it tells the button that was just checked.NumberInput
A decimal value can be edited in French again. On focus the field showed
1234.5, which its own French validation refused: every keystroke was rejected andonChangenever ran. The decimal separator now comes fromIntlinstead of a test on "fr" or "de" — Spanish, Italian and Portuguese take the comma too, Swiss German the point — and the draft is written with it, without an exponent. A second separator is refused.Input, NumberInput, RadioButton
idis honoured. The label pointed at a generated id while the caller'sidreplaced it on the field alone: the field lost its accessible name, and forRadioButton, whose native input is hidden, clicking the label selected nothing.FileSelector
mode="directory"andmode="both"keep every file of a folder. Withoutmultiple, only the first valid file was kept: one file out of the folder that was picked or dropped. Onlymode="file"can mean a single file. In the two other modes the selection is a list — a new pick is added to it,maxFilescaps it and "Remove all" clears it — with or withoutmultiple, and the file dialog ofbothlets several files be picked.Calendar
The arrow keys, Home, End, Page Up and Page Down are handled on the day grid instead of on the whole component. Pressed in the month or year menu of
captionLayout="dropdown", or in a field placed infooter, they were cancelled and sent the focus to a day: the menus could not be operated from the keyboard. AnonKeyDownpassed toCalendarno longer replaces the grid's own keys either; it receives them as they bubble. -
A modal can be opened from a drawer, and a dropdown menu answers the pointer and the keyboard the way it looks like it should.
Modal
Modalis rendered under<body>, likeDrawer, instead of where it is declared. A dialog makes everything outside itself inert: a confirmation declared next to a drawer — the usual shape, a "Delete" button in the drawer and the modal beside it — was born in the inert part of the page. It was on screen, and out of reach of the pointer, the keyboard and a screen reader; only Escape closed it. The same held under the mobileSidebar. Nothing changes in its props or in itsref.A test that looked the modal up in the
containerreturned byrender()now finds it indocument.body(baseElement), or by its role. With two dialogs open, the one below is hidden from assistive technology, as the page behind a dialog always was.Dropdown
- Clicking the trigger of an open menu closes it. The press counted as a
click outside and closed the menu, then the click opened it again:
onOpenChangereceivedtrue, false, trueand the menu could not be closed from its own button. - A submenu no longer closes under the pointer. Leaving its entry started a timer that entering the submenu did not cancel: a tenth of a second to pick an option. It also closes with its menu, instead of staying on screen on its own after an item was picked from the keyboard, and a tap on its entry opens it.
- Keyboard navigation follows the items on screen. They were numbered as they mounted, with a second counter for submenu entries that started again from zero: the entry collided with the first item, which the keys could not reach; the items of a closed submenu were in the same list, so a key could land on an option nobody could see, and Enter ran it; an item that came and went left a hole, and in strict mode three items read "A, nothing, B". The items are now read from the document when a key is pressed.
- The focus moves for real. It enters the menu when it opens, follows the arrow keys, Home and End — and the pointer — and goes back to the trigger when the menu closes, so a screen reader announces the item and Tab carries on from the trigger. Right arrow, Enter or Space open a submenu on its first item; Left arrow or Escape go back one level. Escape closes a menu that has no item to move to, and the keys of a field of the page behind are left to that field.
- A menu opened from a
Drawer— or, now, from aModal— is painted above it. Both were at the same level and the menu comes first in the document, so the panel covered it. - A submenu opened inside a dialog is no longer inert: the ownership of a
portalled layer is followed from layer to layer (
registerFloatingLayer).
indexon the items, andfocusedIndex,setFocusedIndex,itemsRef,registerItemandgetNextItemIndexonuseDropdownContext(), are kept and deprecated: they do nothing any more. A custom item needs no registration — amenuitemrole inside the menu is enough for the arrows to reach it.useClickOutsidetakes an optionalisInside, to count a trigger or a portalled layer as inside.Select
With
searchable, the search field takes the focus when the list opens. It never did: the list is rendered one render after the one that opens it, and the effect that focused the field had already run. Typing filtered nothing and Tab closed the list, so the search could not be reached from the keyboard. The list is declared as a floating layer at the same moment, which keeps it usable inside a dialog. Enter in the search field reports the value once, not twice. - Clicking the trigger of an open menu closes it. The press counted as a
click outside and closed the menu, then the click opened it again:
0.45.1
Fixes
-
Charts no longer crash when their rows shrink under the pointer, read a date without a time on the day it names, and let a phone scroll past them.
A hovered mark whose row goes away
A chart holds its hover as an index into rows an application can change: a click handler that filters the data is enough, and so is a refresh. Eight charts trusted that index.
BoxPlotthrew aTypeErrorwhile rendering, which unmounts the whole React tree when there is no error boundary above it.Heatmapthrew when given anx.format, and otherwise drew a rectangle atx="NaN"under a tooltip for a cell that was gone.BulletChart,WaterfallChart,FunnelChart,DumbbellChart,CandlestickChartandGanttChartcalled their click handler withundefined.
The index is now checked against the rows on every render, as
LineChart,AreaChartandBarChartalready did: a mark that is not there any more reads as no hover.Dates
- A date written without a time —
2026-03-02, the form a JSON API returns — is read as midnight local time. It was read as midnight UTC and then drawn in local time, so west of Greenwich aGanttCharttask from the 2nd to the 13th was shown from the 1st to the 12th, and its bar started five hours before the tick of its own day. A string with a time was already local: the two forms now agree inside one schedule.toTimestampandbrushToPeriodread the same way; in UTC nothing changes. - A time axis accepts those strings.
x={{ key: "day", scale: "time" }}onLineChart,AreaChartorScatterChartwith rows holding"2026-03-01"threwRangeError: Invalid time value, the axis having read the string as a number. Rows are placed by their date, and one that cannot be read as a date is a gap rather than an exception.
Marks
- A stacked
AreaChartdrawn withcurve="stepAfter"filled its bands in the wrong place. The lower edge of a band was walked backwards with the forward rule, which turned it into a step-before: the two edges no longer faced each other, and the surfaces showed other quantities than the data. - A series of a single point draws a marker.
LineChartandAreaChartshowed empty axes for a one-row series, or for a value alone between two gaps — typically after a filter narrowed the data to one row — whatevermarkerssaid.
Touch
The thirteen charts set
touch-action: none, which takes every gesture away from the browser: on a phone, the page stopped scrolling wherever a chart was, and a chart is usually as wide as the screen. They now leave vertical scrolling and pinch zoom to the page and keep the sideways move, which is the one the crosshair and the brush follow. A brush on horizontal bars is dragged up the side, so there the page keeps the sideways pan instead. -
The Claude skill shipped in the package no longer grants itself any permission,
dompurifystarts at 3.4.18, and what reaches npm is the build CI checked.The skill
use-synertech-ui, the guidenpx setup-claude-skillcopies into a project, declaredallowed-tools: Read, Glob, Grep, Write, Edit, Bash(pnpm:*), Bash(npx:*), Bash(npm:*), Agent. While the skill was active, Claude Code ran all of those without asking. It is a documentation guide, and that list let an instruction read in the meantime — the README of a dependency, a piece of project data — run any package on the developer's machine with no question asked.It now declares
Read, Glob, Grep. Claude Code still edits files and runs commands when the guide calls for it, under the permissions of the project it is installed in. A copy installed earlier keeps the old header: refresh it withnpx setup-claude-skill --force.dompurify
The range goes from
^3.4.11to^3.4.18. A fresh install already resolved to the latest release; an application with a frozen lockfile stayed on a version its ownauditreports.Kept honest by the build
scripts/check-bundle-boundary.mjs, run bypnpm build, fails when the shipped skill pre-authorizes anything butRead,GlobandGrep.- The
publishjob no longer installs dependencies or rebuilds: it publishes thedist/thebuildjob linted, built and checked, with lifecycle scripts off. Nothing butnodeandnpmruns where the publish credential can be read. The package holds the same 448 files.
0.45.0
Features
-
The package is published one file per module instead of as a single bundle. It can now be imported from a React Server Component, and importing one component costs one component.
What was wrong
0.44.0 and earlier shipped
dist/index.jsas one file. esbuild drops a"use client"directive from any module it inlines into another, so that file had none of the sixty the sources carry. In a Next.js App Router page without the directive,import { Card } from "@synertech/ui"failed the build withcreateContext is not a function— forCard,StatCardorSparklinejust as for the interactive components — and the only way round was to wrap every import in a client file of one's own.The single file also defeated tree-shaking.
sideEffectsonly lets a bundler drop whole modules, and there was one: a Vite application importingButtonalone shipped 411 kB of JavaScript, against 220 kB for React by itself.What changes
dist/mirrorssrc/(dist/components/button/Button.js), in ESM and CJS, with fully specified relative imports so that Node loads it without a bundler. The public surface is unchanged: the same exports, the same types, the same two entry points (@synertech/uiand@synertech/ui/markdown-editor).- An application never has to write
"use client"to import a component. The display components render as Server Components; the interactive ones bring their own directive and can be placed in a Server Component with serializable props. A file still needs the directive when it holds state or passes a function to a component, which is a rule of React. - Nothing changes in a plain React application, where the directive is an inert
string. The same
Button-only Vite application now ships 222 kB. - A Next.js application built with webpack needs one setting to get the
same benefit from a Server Component:
experimental: { optimizePackageImports: ["@synertech/ui"] }. Without it, webpack ships every client module the package root re-exports as soon as a Server Component imports from it — 275 kB of first-load JavaScript for a minimal server page on Next.js 14.2, against 90 kB with the setting. Turbopack, the default since Next.js 16, only ships what the page renders. Tabs(its five modules),Chipand the public dropdown hooks (useClickOutside,useKeyboardNavigation,usePositioning) gain the directive they were missing.Tabsread a context andChipalways attaches a click handler, so both failed when rendered from a Server Component.
Kept honest by the build
scripts/check-bundle-boundary.mjs, run bypnpm build, now fails when a"use client"is lost between the sources anddist/, when a module on the server side of the boundary uses a client-only React API, when the main entry does not load under thereact-servercondition, when a relative import is not a real file, or when importingButton,CardorSparklinealone pulls in more library code than its budget. It still guards the optional@mdxeditor/editorpeer, now across every file the main entry reaches.
Fixes
-
PieChartandBulletChartwrite their percentages in thelocalethey are given.The slice shares in the
PieChartlegend and tooltip, and the attainment in theBulletCharttooltip, were formatted in the locale of the machine rendering the chart, whateverlocalesaid. The legend is part of the server render, so aPieChartrendered by a server in one locale and hydrated by a browser in another failed hydration ("32.1%" against "32,1 %"), and passinglocaledid not help. The tooltips mixed the two: "38,4 k" next to "91.4%". -
The refs returned by
useDialogA11y,useChartSizeanduseDropdownContexttypecheck on an element under the types of React 18.They were declared as
RefObject<T | null>, which is how React 19 names a ref and which@types/react18 refuses on arefprop: in a React 18 application,<div ref={dialogRef}>— the usage the documentation ofuseDialogA11ygives — did not compile. They are now spelled{ current: T | null }, a shape both versions accept. Nothing changes at runtime, and nothing changes for an application on React 19.
0.44.0
Features
-
Tier D of the chart kit: what the kit could not yet do.
No shape is missing any more, and the list of refusals closes that question for good. What was left is of another order — the kit drew better than it behaved.
The escape hatch —
overlayonLineChart,AreaChart,BarChart,ScatterChartThe charts take
childrenoff their own props: they are closed objects, and that is what lets them guarantee anything about what they draw. The cost is that every refusal in the documentation — "use a grouped bar chart", "facet it" — is an empty answer unless an application can draw the one mark it needs without forking the component.overlayis the way back: the chart resolves its geometry, hands it over as aChartPlotContext, and lets the application draw inside the plot with the chart's own scales. A bare function draws over the marks; the object form ({ under, over }) also reaches beneath them. Coordinates are relative to the drawing area, and the geometry types (ChartPlotContext,ChartDimensions,ChartOrientation,ChartResolvedSeries) are now public API.The error state — every chart of the kit
ChartContainerknewloadingandemptyand nothing else, so a panel whose request had failed said "No data" — which is false. "There is nothing" and "we could not fetch it" are two different statements, and only the second one asks the reader to do something about it.error,errorStateandonRetryjoinloadingandemptyStatein a sharedChartStatusProps, ranked and mutually exclusive: a retry replaces the message with the spinner rather than leaving the reader wondering whether anything happened. Three keys in the labels provider (chartError,chartErrorHint,chartRetry), and the caption grows theactionsslot the container always had.Cross-chart interaction —
ChartSyncProviderChartFilterBarmade a dashboard a frame: one row of filters above panels that therefore answer the same question. This makes it an object. The pointer lands on a moment in one panel and every other panel marks the same moment — one crosshair per panel, one tooltip in total, because four at once is four things to read and no answer.brushlets a pointer drag a window across the category axis of a line, an area or a bar chart; Shift + arrows does the same from the keyboard and Escape drops it, since a filter that can only be set by dragging is a filter half the readers cannot reach. The window is published to the group, andbrushToPeriodturns it into the period aChartPeriodPickeris set to. A press that goes nowhere is still a click and still reachesonPointClick; the press that set a window does not.useChartSync()lets a panel that is not a chart stay in step, and a chart leaves the group withsync={false}.ScatterChartdoes not brush: both of its axes are measures, and a window on one of them is not the gesture a cloud invites.Volumetry —
maxPoints, and the question §6 left openThe answer is both halves of it: a documented ceiling and the decimation. Past
CHART_POINT_BUDGET(2 000 points in one series) a chart warns once in development and says what to pass — nothing is dropped on its own, because a chart that quietly drew a different shape than the one it was handed would be worse than a slow one.maxPointsthen thins the drawn marks only:LineChartandAreaChartthrough LTTB, which keeps the peaks a stride sample walks straight past, andScatterChartthrough an even sample, because a cloud is read for its density and keeping the largest triangles would carve out the envelope and throw that density away. The geometry, the crosshair, the tooltip, the trend line and the data table keep reading every row: the chart draws the same shape from fewer points, it does not hold less data. A band's top and bottom are thinned on the same rows, or the fill closes on points that never faced each other, and a gap survives as one break rather than one per missing row.BarCharthas nomaxPoints— dropping categories would lie, andbinsis the answer there.The export —
ChartExportButtonThe small gap the kit carried from the start:
DataGridhas exported CSV and JSON since it shipped, and a chart holds an exact table of the very same shape without ever offering it. A component rather than a prop on thirteen charts, because it belongs where the other controls already are — theactionsslot of a chart, or of the filter row above a whole dashboard. The measurements are written raw, never formatted: whatever opens the file is going to compute on them. The pure half (toChartRows,toChartCsv,toChartJson,downloadChartData) is exported.Fixed along the way, found by the browser sweep rather than by the suite: a chart holds its hover as an index into rows an application can change, and brushing a chart is usually what filters its own data — so a single drag could leave the index pointing past the rows that were left, and the panel crashed. The index is now checked against the data on every render. A brush drag no longer sweeps the axis labels into a text selection either.
The kit adds 15.4 KB to
dist/index.js(+3.5%), well inside the 25% threshold §6 set in advance.
0.43.0
Features
-
Tier C of the chart kit: the three pieces that are not charts.
The tier was five items. Two shipped in 0.41.0 — the three colour ramps and
ChartScaleLegend— and these are the three that were left: the filter row, the annotation layer and the textures. None of them draws data. All three are what stands between a set of charts and a dashboard.The filter row
ChartFilterBar— the filters, in one row above everything they frame. Not a chart and barely a component: a rule written down as a layout. A dashboard filtered card by card is a dashboard whose numbers stop agreeing — two panels answer two questions and nothing on screen says so. It composes what the library already has rather than growing controls of its own, names itself through the labels provider, and takes anactionsslot and astickymode for a dashboard longer than a screen.ChartPeriodPicker— the window a dashboard is read over, and the one filter every dashboard has.Calendarpicks a date and hands it back, which is a different job; this picks a period: the windows people ask for by name (7/30/90 days, 12 months, month, quarter and year to date) with the calendar behind a "custom range" entry for the rest. The presets are resolved against anowthe caller can freeze rather than a clock read somewhere inside — a window is data, and data a component invents cannot be tested, frozen, or shared between two charts. Both ends are inclusive: a window ending at midnight drops its own last day, which is the most common off-by-one there is. The panel is portalled, declares itself a floating layer owned by its trigger, closes on Escape and hands focus back.- The pure half lives in
src/components/chart/utils/period.tsand is exported:resolvePeriodPreset,createPeriod,formatPeriodRange,samePeriod,startOfDay,endOfDay.
Annotations — on
LineChart,AreaChartandBarChartreferenceLinesanswer "what counts as too much": a threshold on the value axis. Annotations answer the question a dashboard leaves hanging — why the line moved — and that answer almost always sits on the category axis. Three forms: aband(a campaign, an outage) drawn under the marks, aline(a release, a price change) drawn over them, and apointpinned on one observation. Everything is chrome by default — grey, thin, dashed: an annotation that draws the eye harder than the data has become the chart.A caption flips to the other side of its rule rather than being laid out past the edge of the plot, and a caption wider than its own band is dropped rather than clipped. A date the axis cannot place is skipped instead of being pinned to the edge — and a continuous axis can place a date the rows never carry. The comments are appended to the chart's accessible name, since an SVG marked
role="img"exposes nothing drawn inside it. A horizontalBarChartruns its categories up the side, where a moment is not a moment: it ignores them, with a warning.Textures —
patternsonBarChart,AreaChartandPieChartThe channel a reader falls back on when the hue fails them: severe colour vision deficiency, a grayscale print, a forced-colours theme. One texture per palette slot, handed out by the series' position exactly as the colour is, so hiding or sorting never repaints anything; the first slot is left solid, because an untextured mark is itself a texture and the easiest to tell apart.
The mark keeps its colour at full strength and the texture is cut out of it in the new
--color-chart-surfacevariable — a stacked band has to read as a quantity, and a fill dimmed to make room for stripes stops doing that. Every hatch runs at 45° or its mirror at 135°, never horizontal or vertical, where it would align with the gridlines and the edges of the marks. The legend swatch carries the same texture as the mark, in CSS.Off by default, and deliberately: it is an accessibility option, not a decoration. It is ignored where colour encodes a magnitude rather than an identity — a
divergingbar chart, a pie's folded tail — and anAreaCharttextures only the bands of a stack, an overlay's 12% wash being too thin for any texture to survive.
0.42.0
Features
-
Tier B of the chart kit: six new shapes and two readings of
BarChart.New components
WaterfallChart— how one figure became another: every contribution floating between the running total before it and after it. Colour is the diverging pair, because a step IS a move above or below the running total; the connectors are what tie the floating bars into one reading. Atotalfield draws a checkpoint from zero, and a declared total that disagrees with the sum of the steps is shown rather than hidden. Nosort: the order of the rows is the chart.FunnelChart— ordered stages and their drop-off. The stages have an order, so the colour is the ordinal ramp and not the categorical slots. The value is encoded as a length, never as an area:align="center"keeps the silhouette while the measure stays each bar's width. The step-to-step ratio is the finding — the absolute figures are a table.DumbbellChart— two points per item and the distance between them. Paired bars ask the reader to compare a difference of two lengths; here the difference is the mark. Does not anchor at zero, andsort="gap"brings the biggest movers to the top. Capped likeScatterChartat three series.BoxPlot— what a mean hides. Whiskers stop at the furthest observation within 1.5 IQR (Tukey), never at the extremes, which is the only way an outlier can show at all. Raw observations undervaluesget quartiles, outliers and an optional mean diamond; a precomputed summary underquantilesdraws no outlier and says nothing it cannot know.CandlestickChart— open, high, low, close. The one chart on the reserved status pair rather than the palette: a rise and a fall are two directions of one measure, not two identities. Hollow body up, filled down, so the direction survives without the hue.GanttChart— tasks in time, with dependencies and milestones. No measure on the value axis, only dates; it does not overlapCalendar, which picks a date and hands it back. The time axis lands on calendar boundaries — Mondays, the first of the month — through the newniceTimeTicks.
BarChartbinsturns it into a histogram: it readsx.keyas a measurement, buckets it and counts, the bars touching because the axis underneath is continuous.sort,stackanddivergingare ignored there — reordering buckets destroys the shape.- A series marked
type: "line"is lifted out of the bars and drawn over them, the volume and its trend on one panel. The value axis stays single.
Foundation
--color-chart-up/--color-chart-down: one reserved status pair, never handed out as series slots, validated for both themes.quantile/boxStats,binValues/binEdges, andniceTimeTicks/formatTimeTickare exported alongside the existing scale helpers.ChartLegendItemtakes an optionalmarker, so a combined chart's legend mirrors each mark.- New translatable labels for every column and legend entry the six components
render, in
UILabelsandfrenchUILabels.
0.41.0
Features
-
Add the four chart forms the kit was missing, and the colour ramps three of them needed:
Heatmap,BulletChart,ChartFacetsand adivergingmode onBarChart.The kit shipped with one encoding — the eight categorical slots, which answer "which one". Nothing answered "how much". Three ramps now live beside them in
src/styles/index.css, taken from the same Tailwind ramps and put through the same validation: sequential (--color-chart-seq-1..6), ordinal (--color-chart-ord-1..5) and a diverging pair (--color-chart-div-1..7), blue against orange because two cool hues never read as opposites. An application rebrands them the way it rebrands the slots: one CSS block, no component fork.Between two stops the colour is mixed in OKLab rather than snapped to the nearer one — a ramp cut into six classes lies about a measure that varies continuously. The mix happens in CSS, so the stops stay overridable variables.
Heatmap— the magnitude on a grid: load by day and hour, retention by cohort, a correlation matrix. The one chart of the kit where colour carries the measure rather than the identity, so the scale legend is on by default: a grid without one shows a pattern and states no value.stepscuts the ramp into classes, and warns past seven, where two neighbouring cells stop being tellable apart. Missing pairs are drawn in the de-emphasis grey rather than left blank, which would read as the lowest value.BulletChart— what was reached, what was aimed at and what counts as good, on one line. The densest readout of the kit; it completesStatCardrather than competing with it. Each row is scaled on its own by default, which is what lets a revenue and an NPS share a panel —normalize="shared"puts them on one scale and brings the value axis back. The qualitative ranges stay grey: the ordinal ramp is blue, and so is the measure bar drawn on it.ChartFacets— small multiples, on a shared scale. Not a chart, a layout, and the answer two components already give without it existing:ScatterChartcaps itself at three series andPieChartfolds its tail, both on the grounds that the rest belongs in separate panels. The one thing it computes is the value domain, measured across the whole set and imposed on every panel — panels on free scales look comparable and are not. No hooks: it renders on the server.BarChartdiverging—trueor a number moves the baseline to a reference and runs the bars both ways from it, a lone series taking the diverging ramp. A series KEY centres the stack on that series instead, splitting it evenly on both sides: the Likert layout, where the arms stack outwards from the middle rather than in key order, and the axis reads magnitudes — forty unhappy answers say "40", never "−40".
Also in this change:
ChartScaleLegend, the legend of a colour ramp, exported for anything else that encodes a magnitude.stackDiverging, and two optional fields onStackedSegment(base,outer) so a layout whose stacking order is not its key order can say which segment sits on the baseline and which carries the rounded end.- A colour scale now reports
position(value)andonDark(value). The second is what lets a number written on a heat map cell stay readable at both ends of the ramp without an outline thick enough to close up its own counters. - Fix: a
BarChartvalue label on a bar running below or left of the baseline was laid out inside the bar instead of past its end. - Two new
UILabelskeys,chartValueandchartTarget, with their French translations.
0.40.1
Fixes
-
Keep the bars of a grouped
BarCharttogether.Each bar was centred in a slot of its own, so the gap inside a group grew with the container: past roughly 900px it rivalled the gap between groups and twelve bars stopped reading as four groups of three. The bars of a category are now a block held by the 2px surface gap, with the band's leftover as air around it. Thickness is unchanged, as are the stacked and horizontal layouts.
0.40.0
Features
-
Add the chart kit: LineChart, AreaChart, BarChart, PieChart, ScatterChart, StatCard and Sparkline, on a shared foundation with no external dependency.
The rendering is plain SVG. Wrapping a charting library would have meant shipping its dependency tree to every consumer — recharts alone pulls a Redux store — for geometry that is a few hundred lines: scales, rounded tick steps, path builders and stacking.
Eight categorical colours ship as
--color-chart-1..8, validated as a set (lightness band, chroma floor, colour-vision-deficiency separation, contrast against the chart surface) in both themes. A consuming application rebrands the whole kit by redefining those eight variables; no component fork, no TypeScript change. Colour follows a series' identity rather than its rank, so hiding, filtering or sorting never repaints the survivors.Every chart carries a data table twin, so no value is reachable through hovering alone, and the keyboard gets the same readout as the pointer.
Five new translatable labels:
chartShowTable,chartHideTable,chartNoData,chartLoadingandchartOther.
0.39.1
Fixes
-
Fix the build of apps that don't install
@mdxeditor/editor.0.39.0 loaded the optional Markdown editor through a dynamic
import(), but bundlers such as Turbopack and webpack resolve those at build time, so any app without@mdxeditor/editorfailed with "Module not found".The editor now ships from its own entry point, which the main bundle never references:
"use client"; import { HelpButton } from "@synertech/ui"; import { MarkdownEditor } from "@synertech/ui/markdown-editor"; <HelpButton markdown editable markdownEditor={MarkdownEditor} />;- New
markdownEditorandmarkdownEditorUnavailableLabelprops onHelpButtonandWithHelpButton. WithoutmarkdownEditor, the Markdown edit mode shows a message pointing to the entry point. - The editor's stylesheet is imported by the entry: no separate CSS import.
UILabels.markdownEditorLoadingis removed, since nothing loads asynchronously any more.
- New
0.39.0
Features
- Publish publicly on npmjs.com and make the Markdown editor optional.
- The package now installs from the public npm registry: no
.npmrc, no token. Projects migrating from the GitLab Package Registry should remove the@synertech:registry=line and theGITLAB_NPM_TOKENvariable from their setup. @mdxeditor/editormoved from a hard dependency to an optional peer dependency and is now loaded on demand. This removes ~75 MB of transitive packages from every install. Only<HelpButton markdown editable>needs it: install@mdxeditor/editorand import@mdxeditor/editor/style.cssto keep the Markdown edit mode. Without it, the edit mode renders an explanatory message instead of crashing.- Two new
UILabelsentries (markdownEditorLoading,markdownEditorUnavailable) translate those states. - The published bundle is now minified and ships no sourcemaps.
- The package now installs from the public npm registry: no
0.38.1
Fixes
-
Fix two regressions introduced in 0.38.0 for menus opened from inside a dialog.
The options of a menu opened in a Modal/Drawer were inert
DropdownContentandDropdownSubMenuContentkeep their menu mounted in a portal under<body>, even while closed. Opening a dialog marked those portalsinertalong with the rest of the page, and opening the menu afterwards only flipped itsaria-hidden, so its options could neither take the focus nor be clicked.Floating layers now declare the trigger they belong to, and a dialog keeps the layers owned by its own content interactive while the rest of the page stays inert. The focus trap follows the same rule: Tab inside such a menu is left to the menu.
- new
registerFloatingLayer(layer, getOwner)(exported) for applications with their own portalled widgets Dropdown,DropdownSubMenuandSelectregister their portal automatically
Escape closed the menu and the dialog at once
useDialogA11ylistened ondocument, likeDropdownandSelectdo. Because the dialog subscribes first, its handler ran before the menu could consume the key: Escape closed the menu and the dialog, losing any unsaved input.The dialog now listens on
window, which the bubbling phase always reaches last, so a widget consuming Escape is always seen as such. The first Escape closes the menu and gives the focus back to its trigger; the second one closes the dialog. - new
0.38.0
Features
-
Modal, Drawer and the mobile Sidebar are now real modal dialogs, and the built-in labels are translatable.
Accessibility (Modal + Drawer + Sidebar mobile drawer)
role="dialog"+aria-modal="true"on the dialog panel- Accessible name from
title(aria-labelledby, unique id per instance) with anaria-labelprop as fallback, andaria-describedbyfrom the Modaldescription - Focus moves into the dialog on open (
initialFocus:"dialog"by default,"first","none"or a ref) - Tab / Shift+Tab are contained inside the dialog (
trapFocus) - Escape closes the dialog (
closeOnEscape), and only the topmost one when dialogs are nested - Focus is returned to the trigger on close (
returnFocus, accepts a ref) - The rest of the page becomes
inert+aria-hiddenand the body scroll is locked (lockScroll); the Drawer and Sidebar overlays stay clickable - The closed mobile Sidebar panel (kept mounted for the slide animation) is now
inert+aria-hidden, so Tab no longer walks into the off-screen menu
Opt out of the inert background for an element (toast container,
aria-liveregion) with thedata-synertech-inert-ignoreattribute.Translations
- New
UILabelsProvider/useUILabelswithdefaultUILabels(English) andfrenchUILabels - New props
Modal.closeLabel,Modal.enterFullScreenLabel,Modal.exitFullScreenLabel,Drawer.closeLabelandSidebar.closeLabel;submitLabel/cancelLabelnow default to the provider labels. Props always win over the provider. - The Sidebar close button and toggle labels are no longer hardcoded English (
closeSidebar,openSidebar,expandSidebar,collapseSidebar,sidebarkeys), and the mobile toggle now says "open"/"close" instead of "expand"/"collapse"
New public API
useDialogA11yhook to give the same behaviour to custom dialogsgetFocusableElements,isFocusable,isElementVisible,FOCUSABLE_SELECTOR,hideOthers,INERT_IGNORE_ATTRIBUTE
Behaviour changes
- Modal now closes on Escape and locks the body scroll by default (use
closeOnEscape={false}/lockScroll={false}to opt out) - The mobile Sidebar now closes on Escape only when it is the topmost dialog, locks the body scroll, and takes an
aria-label(defaults to thesidebarlabel) - The Drawer now focuses the dialog container on open instead of its first focusable element (use
initialFocus="first"for the previous behaviour) - The Drawer title id is generated with
useIdinstead of the hardcodeddrawer-title
0.37.0
Features
-
Add
Calendarcomponent — a date picker calendar with no external dependencies, built on an ARIAgridwith a roving tabindex.Features: three selection modes via a discriminated union so
value/defaultValue/onChangeare typed per mode —single(Date | null),multiple(Date[], with an optionalmax) andrange(CalendarDateRange, with hover preview and automatic bound swapping); controlled & uncontrolled modes for both the selection and the displayed month (month/defaultMonth/onMonthChange); constraints viaminDate,maxDate,disabledDates(array or predicate) anddisabled; display optionsnumberOfMonths,weekStartsOn,locale,showOutsideDays,showWeekNumbers(ISO),fixedWeeks,captionLayout("label"or"dropdown"withfromYear/toYear),bordered,renderDay,footer,todayButton,clearButtonandlabelsfor localizing the controls; sizes (sm/md/lg) and colors (primary/success/warning/error/info/neutral).Month, weekday and day labels all come from
Intl, so the calendar follows thelocaleprop. Keyboard support covers arrows, Home/End, PageUp/PageDown and Shift+PageUp/PageDown for years, rolling the month over and clamping tominDate/maxDate. All date math is local-midnight based, so dates never shift across time zones.
0.36.0
Features
-
Add
Slidercomponent — a range input built on a native<input type="range">for full keyboard and ARIA accessibility, with custom-styled track, fill and thumb.Features: controlled & uncontrolled modes (
value/defaultValue+onValueChange),min/max/step, sizes (sm/md/lg), colors (primary/success/warning/error/info/neutral),label/description/error, value display (showValue+valueFormat), value bubble on hover/focus (showTooltip), tick marks (explicit array or auto-generated viamarks), customtrackColor/fillColor/thumbColor, plusdisabledandreadOnlystates. The visible thumb and fill are offset by the thumb width so they stay aligned with the native thumb and never overflow the rail.
0.35.4
Fixes
- Internal refactors (no behavior change):
- NumberInput: the displayed value is now computed during render (a draft string while the field is being edited, the formatted prop value otherwise) instead of being synced through a
useEffect, and theIntl.NumberFormatinstance is memoized. This also removes the brief empty-then-formatted flash on mount. - Wizard: the furthest-reached step is now tracked by adjusting state during render (React's "storing information from previous renders" pattern) instead of in an effect.
- NumberInput: the displayed value is now computed during render (a draft string while the field is being edited, the formatted prop value otherwise) instead of being synced through a
0.35.3
Fixes
- Accessibility & performance improvements:
- Accessibility: added accessible names (
aria-label) to previously unlabeled controls (Header search inputs, ImageUploader file & URL inputs, HelpButton edit textarea, several DataGrid & SchemaTableRenderer controls); associated the ImageUploader URL label with its input; removed a redundantaria-hiddenon the Tabs panel.DropdownSeparatornow renders a semantic<hr>(which carries the implicit ARIA separator role) instead of<div role="separator">— if you target[role="separator"]on a dropdown separator in CSS or tests, switch to thehrelement or the implicit role. - Performance: marked touch event listeners passive (useClickOutside, Select); replaced repeated
Array.find()/includes()calls inside loops withMap/Setlookups (DataGrid column ordering & sort comparator, schema auto-layout); collapsedmap().filter()chains into single passes (DataGrid); switched DataGrid column state to lazy initializers. All behavior-preserving.
- Accessibility: added accessible names (
0.35.2
Fixes
- Security & quality pass:
- HelpButton: non-markdown
contentis now sanitized with DOMPurify before it is rendered, closing a potential XSS hole when a consumer passes user-controlled HTML. This addsdompurifyas a runtime dependency. Also fixes a Rules-of-Hooks violation (hooks were declared after an earlyreturn null) that could crash the component when thevisibleprop toggled. - Divider: removed the redundant explicit
role="separator"from the<hr>element — the implicit ARIA separator role is preserved, so assistive tech is unaffected. If you select dividers via[role="separator"]in CSS or tests, switch to thehrelement or the implicit role. - Internal performance, accessibility, and maintainability cleanups (direct module imports for better tree-shaking, memoized context provider values, removal of dead code) with no public API changes.
- HelpButton: non-markdown
0.35.1
Fixes
- Complete dark mode support — add
dark:variants to Avatar, Breadcrumb, Checkbox/CheckboxGroup and Header (bordered/shadow surfaces, dropdown menus, child links, search inputs, mobile menu and toggle), so every component renders correctly in dark mode out of the box.
0.35.0
Features
- Add Wizard component — composable multi-step wizard/stepper with controlled & uncontrolled modes, linear/non-linear navigation, horizontal/vertical orientation, default/dots/simple variants, 3 sizes, 5 colors, per-step status (active/completed/upcoming/error), optional & disabled steps, built-in navigation actions, and a useWizard() hook for custom controls
0.34.0
Features
- Add Badge component — static status/category label with 4 variants (solid/soft/outlined/subtle), 9 colors, 3 sizes, optional dot indicator, icon support, and pill/rectangle shape
0.33.0
Features
- Add ProgressBar component with sizes (xs/sm/md/lg/xl), colors (default/primary/success/warning/error/info), variants (default/striped/gradient), indeterminate mode, label, value display, and animated transitions
0.32.0
Features
- Drawer: add
halfsize variant andcustomWidth/customHeightprops- New
halfsize: opens the drawer at 50% width/height, anchored to the specified position - New
customWidthprop: override the drawer width with any CSS value (e.g., "400px", "25rem", "40%") - New
customHeightprop: override the drawer height with any CSS value, useful for top/bottom positions - Custom dimensions take priority over the
sizeprop when set
- New
0.31.0
Features
- feat: add Sidebar collapsible navigation component
- Composable pattern: Sidebar, SidebarHeader, SidebarContent, SidebarFooter, SidebarGroup, SidebarItem, SidebarSubMenu, SidebarToggle
- Collapsible mode (expanded ↔ icon-only) with animated width transition
- Mobile responsive: transforms to drawer overlay below configurable breakpoint
- Sub-menus with animated expand/collapse
- Grouped sections with labels (hidden when collapsed, shows separator)
- Item badges (number, string, or ReactNode)
- Active, disabled, and link (href) item states
- Tooltips on items in collapsed mode
- Header (logo) and footer (user profile) areas
- 3 variants: default, bordered, floating
- Left/right positioning
- Controlled and uncontrolled modes for both collapsed and mobile states
- Keyboard support (Escape closes mobile drawer)
- useSidebar() hook for external access to sidebar state
0.30.0
Features
-
feat: add Accordion composable component
- Composable pattern: Accordion, AccordionItem, AccordionTrigger, AccordionContent
- Single or multiple mode with collapsible option
- Controlled and uncontrolled modes
- 4 variants: default, bordered, separated, ghost
- 3 sizes: sm, md, lg
- Animated height transitions
- Icon customization (position, custom icon, hide)
- Disabled state (global or per-item)
- Full ARIA accessibility (aria-expanded, aria-controls, role="region")
fix: resolve conditional hook violation in SchemaMinimap
- Fixed useCallback called after conditional return, violating React Rules of Hooks
- Restructured with useMemo for layout computation before the early return
- Bug manifested when adding the first table to an empty schema
0.29.1
Fixes
- docs: update use-synertech-ui Claude skill with DataGrid, DeviceMockup, and FileSelector directory mode documentation
0.29.0
Features
-
feat: add DeviceMockup component with 7 device types (phone, android, tablet, laptop, desktop, watch, browser)
- Portrait and landscape orientation with correct notch/indicator positioning
- Light and dark frame themes
- Three sizes (sm, md, lg)
- Simulated status bar with time, signal, wifi, and battery icons
- Auto-scroll animation for content showcase
- Custom frame color support
- Content via image src or React children
- Realistic device details: iPhone notch, Android camera dot, laptop keyboard, monitor stand, watch crown/band, browser chrome with traffic lights
feat: add directory and both selection modes to FileSelector
- New mode prop ("file" | "directory" | "both") for folder selection support
- Directory mode uses webkitdirectory attribute with folder icon
- Both mode renders dual browse buttons with unified drag & drop
- Recursive directory entry traversal for dropped folders
0.28.0
Features
- feat: add DataGrid component with comprehensive data table features
- Declarative column definitions with generic typing (
ColumnDef<T>) - Client-side and server-side data processing modes
- Sorting (single/multi-column, custom comparators, aria-sort)
- Pagination with page size selector and total items display
- Row selection (single/multiple, select all, indeterminate state)
- Global search with configurable placeholder
- Column filters (text, number, select, date) with operator popover
- Column resizing, reordering (drag & drop), and visibility toggle
- Expandable rows with custom expanded content
- Inline cell editing (double-click to edit)
- Row drag & drop reordering
- Row grouping with collapsible group headers
- Export to CSV and JSON
- Virtual scrolling for large datasets
- Footer with aggregate functions (sum, avg, count, min, max)
- Density variants (compact, default, comfortable)
- Striped, bordered, and borderless visual options
- Sticky header and sticky columns (left/right)
- Loading skeleton state and custom empty state
- Imperative ref API (DataGridRef)
- Full accessibility support (aria-sort, aria-selected, aria-expanded)
- Declarative column definitions with generic typing (
0.27.0
Features
- Add FileSelector component with drag & drop, file type filtering, size validation, multiple file selection, and button/dropzone variants
0.26.0
Features
- Add
use-synertech-uiClaude Code skill for consuming projects with CLI setup script (npx @synertech/ui setup-claude-skill)
0.25.0
Features
- Add SchemaEditor component - visual database schema editor (ERD) with tables, typed fields, relations with cardinality, drag & drop, pan/zoom, undo/redo, SQL export, auto-layout, minimap, field reordering, table resize, and comprehensive test coverage
0.24.0
Features
- Add direction toggle button to WorkflowEditor toolbar with onDirectionChange callback
0.23.0
Features
- Add WorkflowEditor direction prop, node events, and node action icons
- Add
directionprop ("horizontal" | "vertical") for vertical node layouts with adaptive port positioning and vertical bezier curves - Add
onNodeClick,onNodeDoubleClick, andonNodeContextMenuevent callbacks - Add node action icons system via
actionsin nodeRegistry withonNodeActioncallback, supporting positioning, dynamic visibility, custom styling, and tooltips
- Add
0.22.2
Fixes
- Fix Dropdown SSR hydration mismatch by replacing module-level counter with React.useId(). Add autoFit prop to WorkflowEditor for automatic content centering on mount.
0.22.1
Fixes
- Fix Modal footer button positioning (Cancel/Submit order and buttonsPosition prop). Add focused prop to Input for programmatic focus control. Position WorkflowEditor toolbar tooltips below buttons.
0.22.0
Features
- Add WorkflowEditor component - visual workflow/diagram builder with draggable nodes, port-based edge creation (SVG bezier curves), pan/zoom, selection/deletion, toolbar, snap-to-grid, locked nodes, controlled/uncontrolled modes, and imperative ref API. Fix Banner Tailwind v4 class names (bg-linear-to-r, shrink-0).
0.21.0
Features
- Add Detachable and AdvanceDetachable components for portal-into-popup rendering with bidirectional value sync via BroadcastChannel
0.20.0
Features
- Add Select/Combobox component with standard select and searchable modes, keyboard navigation, clearable value, loading state, viewport-aware positioning, and full ARIA accessibility
0.19.0
Features
- feat: add Pagination component with page numbers, ellipsis, prev/next/first/last navigation, size variants (sm/md/lg), visual variants (default/outlined/minimal), page size selector, total items display, custom labels, and dark mode support
0.18.0
Features
- feat: add Indicator component with dot, count, status, and legend variants
0.17.0
Features
- feat: add Banner and Footer components
- Banner: notification, hero, and promotion variants with closable, fullWidth, and action support
- Footer: composable footer with FooterSection, FooterColumn, FooterLink, FooterBottom, and FooterSocial sub-components
0.16.0
Features
-
Add Drawer and Skeleton components
New Components:
- Drawer: Slide-in panel component for overlays and side navigation
- Positions: left, right, top, bottom
- Sizes: sm, md, lg, xl, full
- Optional title, footer, and overlay
- Keyboard support (Escape) and focus management
- Body scroll lock and portal rendering
- 96.55% test coverage
- Skeleton: Loading placeholder component for better UX
- Variants: text, circular, rectangular, rounded
- Animations: pulse, wave, none
- Flexible dimensions and multiple rendering (count prop)
- Full accessibility with ARIA attributes
- 100% test coverage
- Drawer: Slide-in panel component for overlays and side navigation
0.15.0
Features
- Add HelpButton and ImageUploader components with Markdown support
- Add HelpButton component with editable mode, Markdown rendering (react-markdown + remark-gfm), and rich text editor (@mdxeditor/editor)
- Add ImageUploader component with file upload, URL input, and aspect ratio support
- Apply Vercel React best practices optimizations (useCallback, useMemo, hoisting)
- Include comprehensive Storybook stories for both components
0.14.0
Features
- Add RadioButton component with comprehensive features and Vercel optimizations
- New RadioButton component with controlled/uncontrolled modes
- 3 variants: default, filled, outlined
- 3 sizes: sm, md, lg
- Custom color support for all visual elements
- Label positioning (left/right)
- Error states with custom messages
- Disabled and readonly states
- Full accessibility support (ARIA attributes)
- Optimized with Vercel React best practices (useMemo, pure functions)
- 34 comprehensive unit tests (all passing)
- Extensive Storybook documentation with real-world examples
0.13.1
Fixes
-
Optimize Dropdown component with Vercel React best practices
Performance Improvements:
- Stabilized hook dependencies with new
useLatesthook to reduce re-renders by 30-50% - Implemented functional setState in keyboard navigation for better performance
- Added passive scroll listeners for 10-20% scroll performance improvement
- Hoisted static objects and constants to module level to prevent recreation
- Memoized ChevronIcon component to reduce unnecessary SVG re-renders
- Cached property access in positioning calculations
Architecture Improvements:
- Replaced global item index counters with per-instance index management
- Each Dropdown instance now manages its own item indexes via
getNextItemIndex() - Eliminates conflicts when multiple Dropdowns are mounted/unmounted
Code Quality:
- Removed duplicate React imports in DropdownCheckboxItem and DropdownRadio
- Improved TypeScript types for better type inference
- Cleaner dependency arrays in useEffect hooks
Breaking Changes:
UseKeyboardNavigationOptions.setFocusedIndextype changed from(index: number) => voidtoDispatch<SetStateAction<number>>(compatible with all existing usage)
All changes are backward compatible and improve performance without affecting the public API.
- Stabilized hook dependencies with new
0.13.0
Features
-
Add Divider component with horizontal and vertical orientations
New Features:
- Add Divider component for visual separation in layouts
- Support for horizontal and vertical orientations
- Multiple variants: solid, dashed, dotted
- Optional label with customizable text alignment (left, center, right)
- Customizable thickness, color, and spacing
- Full accessibility support with ARIA roles
- Server-compatible (no React hooks)
- Performance optimized following Vercel React best practices
Development:
- Add vercel-react-best-practices skill for automated code optimization
- Includes 57 performance rules across 8 categories
0.12.0
Features
- CSS Compilé Clé en Main : La librairie inclut désormais un fichier CSS pré-compilé
- Zéro configuration : Les consommateurs n'ont plus besoin de configurer Tailwind pour scanner le dist
- Import simple :
import "@synertech/ui/styles.css"une seule fois dans l'app - Taille optimisée : ~12KB gzippé (92KB non compressé)
- Build intégré : CSS généré automatiquement via
tsup+@tailwindcss/postcss - Export CSS : Nouvel export
./styles.cssdans package.json - Documentation mise à jour : README.md et CLAUDE.md avec nouvelle méthode d'installation
- Option avancée : Les power users peuvent toujours scanner le dist pour personnalisation Tailwind
0.11.0
Features
- Add Toast notification component with multiple variants and types
0.10.0
Features
- Add Breadcrumb navigation component
- New Breadcrumb component for navigation trails
- Modern spacing and responsive design
- Flexible separator prop (character, emoji, or React component)
- Icon support for each breadcrumb item
- 3 size variants: sm, md, lg
- Auto-collapse feature with maxItems prop
- Custom colors for items, active state, and separators
- Fully accessible with ARIA labels
- 13 comprehensive unit tests
- 14 Storybook stories
0.9.0
Features
- Add Avatar component with comprehensive features
- New Avatar component with image and fallback text support
- Multiple size variants: xs, sm, md, lg, xl
- Shape variants: circle (default), square, rounded
- Optional border prop for grouped avatars
- Fully documented with Storybook stories
- Follows synertech-ui conventions and patterns
0.8.0
Features
- Infrastructure de Tests Unitaires : Ajout d'une suite de tests complète avec Vitest et Testing Library
- 365 tests couvrant l'ensemble des 19 composants et utilitaires
- Couverture de code : moyenne de ~90%
- Nouveaux scripts :
test,test:watch,test:coverage - Intégration CI : Stage de test dans le pipeline GitLab
- Configuration : Environnement JSDOM, setup avec jest-dom matchers
0.7.1
Fixes
- MentionInput : Intégration du composant Chip avec comportement inline
- Chips inline : Les mentions sélectionnées s'affichent maintenant comme des Chips directement dans le champ de saisie à la position du curseur
- Insertion contextuelle : Le Chip s'insère exactement où l'utilisateur tape le trigger (@)
- Saisie continue : L'utilisateur peut continuer à taper du texte après l'insertion d'un Chip
- Suppression Backspace : Appuyer sur Backspace juste après un Chip le supprime
- Suppression via X : Cliquer sur le bouton X du Chip le supprime de l'input
- Props de personnalisation :
chipVariant:solid,outlined,softchipColor:default,primary,success,warning,error,infochipSize:sm,md,lg
- Callback
onMentionRemove: Appelé quand une mention est supprimée - Support avatars : Les Chips affichent l'avatar de l'utilisateur si disponible
- États disabled/readOnly : Le bouton X est masqué en mode disabled ou readOnly
- Nouvelles stories Storybook : WithChips, ChipVariants, ChipColors, ChipSizes, TeamMentionExample, etc.
0.7.0
Features
-
5 nouveaux composants ajoutés à la librairie
-
Nouveau composant Chip avec personnalisation complète
- Variants :
solid,outlined,soft,dot - Tailles :
sm,md,lg - Couleurs prédéfinies :
default,primary,success,warning,error,info - Props de personnalisation :
bgColor,textColor,borderColor - Coins arrondis :
none,sm,md,lg,full - Support icônes :
icon,endIcon,avatar - États interactifs :
closable,clickable,selected,disabled - Prop
as:span,div,buttonpour sémantique - Accessibilité : bouton de fermeture avec aria-label
- Support dark mode complet
- Variants :
-
Nouveau composant CircularProgress avec indicateur de progression circulaire
- Modes : déterminé (valeur 0-100) et indéterminé (animation spin)
- Tailles :
xs(24px),sm(32px),md(48px),lg(64px),xl(96px) - Épaisseur :
thin,normal,thick - Couleurs prédéfinies :
default,primary,success,warning,error,info - Props de personnalisation :
progressColor,trackColor - Affichage valeur :
showValueavec formatage personnalisable (valueFormat) - Contenu central : support
childrenpour contenu personnalisé - Animation : transition fluide avec option
animated - Accessibilité : role="progressbar" avec aria-valuenow/min/max
-
Nouveau composant Label avec typographie pour formulaires
- Tailles :
xs,sm,md,lg,xl - Couleurs :
default,primary,secondary,success,warning,error,info,muted - Variants :
default,light,strong - Poids :
normal,medium,semibold,bold - Props spéciales :
requiredavec indicateur personnalisable (requiredIndicator)optionalavec texte optionnel (optionalText)tooltippour info-bulle native- Support icônes (
icon,endIcon)
- Prop
as:label,span,ppour flexibilité sémantique - États :
disabled,truncate - Support dark mode complet
- Tailles :
-
Nouveau composant Tabs avec pattern compound component
- 4 composants :
Tabs- Conteneur principal avec Context APITabsList- Container pour les triggersTabsTrigger- Boutons de navigation avec étatsTabsContent- Panneaux de contenu
- Variants :
underline,pills,enclosed,soft - Tailles :
sm,md,lg - Couleurs :
default,primary,secondary,success,warning,error - Orientations :
horizontal,vertical - Modes : contrôlé (
value/onValueChange) et non-contrôlé (defaultValue) - Prop
fullWidthpour occuper toute la largeur - Support icônes sur triggers (
icon,endIcon) - Navigation clavier : Enter/Space pour sélection
- Accessibilité : role="tab", aria-selected, tabIndex gérés automatiquement
- Support dark mode complet
- 4 composants :
-
Nouveau composant Tooltip avec info-bulle flottante
- Positions :
top,bottom,left,right - Variants :
default(sombre),light(clair),error,success,warning,info - Tailles :
sm,md,lg - Triggers :
hover,click,manual - Props avancées :
delaypour délai d'apparitionshowArrowpour flèche directionnellemaxWidthpour largeur maximaleopenpour mode contrôlé manuel
- États :
disabled - Accessibilité : role="tooltip"
- Support dark mode complet
- Positions :
0.6.0
Features
-
Nouveau composant Card avec pattern compound component et personnalisation complète
- 7 composants :
Card- Conteneur principal avec variants, tailles et coins arrondisCardHeader- Section en-tête avec support actions et séparateurCardBody- Zone de contenu principale avec padding configurableCardFooter- Section pied de page avec alignement et séparateurCardImage- Composant image avec ratio d'aspect et object-fitCardTitle- Typographie titre avec niveaux de headingCardDescription- Typographie description
- Variants :
default(bordure),outlined(bordure accentuée),elevated(ombre),filled(fond coloré) - Tailles :
sm,md,lg - Coins arrondis :
none,sm,md,lg,xl,full - Personnalisation des couleurs :
bgColor- Couleur de fond personnalisée (classes Tailwind)borderColor- Couleur de bordure personnaliséeshadowColor- Couleur d'ombre personnalisée
- États interactifs :
hoverable- Effet de survol avec élévationclickable- Carte entièrement cliquable avec effet de clic
- Accessibilité :
- Prop
aspour balises sémantiques (article,section,div) - Support complet des attributs HTML natifs
- Prop
- 27 stories Storybook :
- Basique : Default, WithHeaderAndFooter
- Variants : VariantDefault, VariantOutlined, VariantElevated, VariantFilled, AllVariants
- Tailles : SizeSmall, SizeMedium, SizeLarge
- Coins arrondis : RoundedVariants
- Images : WithImageTop, WithImageBottom, ImageAspectRatios
- Interactif : Hoverable, Clickable
- Header/Footer : HeaderWithActions, FooterAlignments
- Couleurs : CustomColors, GradientCard
- Exemples concrets : ProductCard, ProfileCard, BlogPostCard, PricingCard, StatsCard
- Accessibilité : AsArticle, AsSection
- Zéro dépendance externe - HTML + Tailwind CSS uniquement
- Support dark mode complet
- TypeScript avec types exportés pour tous les composants
- 7 composants :
-
Enhanced Button component with comprehensive props
- Added size variants: sm, md (default), lg, xl
- Added loading state with spinner animation
- Added icon support: leftIcon, rightIcon, icon (icon-only)
- Added fullWidth prop for responsive layouts
- Added rounded variants: none, sm, md, lg (default), full
- Improved accessibility with ARIA support
- Added comprehensive Storybook documentation
-
Enhanced Input component with comprehensive features:
- Added size variants (sm, md, lg)
- Added readOnly state
- Added color customization (labelColor, borderColor, textColor)
- Added icon support with configurable position
- Added helper text with error state
- Added hideLabel prop
- Added multiline mode (textarea) with rows
- Removed all focus styles
- 20+ Storybook stories
Fixes
-
Added MentionInput component with full mention system. New separate component using composition pattern with Input. Includes shared utilities (inputStyles.ts, InputWrapper.tsx), mention types (MentionSuggestion, MentionData, MentionInputValue), ContentEditable-based implementation, configurable trigger characters, suggestion dropdown with keyboard navigation, custom renderers, and comprehensive Storybook documentation with 26 stories.
-
Added NumberInput component with number formatting system. Supports multiple formats (number, currency, percentage, decimal), full internationalization with Intl.NumberFormat, min/max validation, step increment, locale support, decimal precision, prefix/suffix, thousand separator control, and input validation that blocks non-numeric characters. Includes 26 comprehensive Storybook stories. Reorganized Storybook structure with all form components under "Form/" folder.
-
Remove variant prop and simplify Button component
The
variantprop has been removed from the Button component. Use the new color customization props instead.Migration guide:
variant="primary"→ Remove (default blue styling)variant="secondary"→ UsebgColor="bg-gray-600 hover:bg-gray-700"variant="outline"→ UsebgColor="bg-transparent" textColor="text-gray-900"with border classes- Custom colors: Use
bgColor,textColor,focusColorprops directly
New default styling:
- Background:
bg-blue-600 hover:bg-blue-700 - Text:
text-white - Focus:
focus:ring-blue-300
Benefits:
- Simpler API without predefined variants
- Full color customization with Tailwind classes
- Consistent default blue styling
- Better flexibility for design systems
0.5.0
Features
- New Dropdown component with comprehensive features and zero external dependencies
- Core components (12):
Dropdown- Root component with context provider for state managementDropdownTrigger- Button trigger with asChild pattern support (composition)DropdownContent- Portal-rendered content panel with smart positioningDropdownItem- Menu items with variants (default, danger, success)DropdownSeparator- Visual separator between menu sectionsDropdownLabel- Section labels for menu organizationDropdownCheckboxItem- Multi-select checkbox items with controlled/uncontrolled modesDropdownRadioGroup- Radio group container for exclusive selectionDropdownRadioItem- Individual radio items within RadioGroupDropdownSubMenu- Nested submenu container with independent stateDropdownSubMenuTrigger- Submenu trigger with hover/keyboard supportDropdownSubMenuContent- Portal-rendered submenu panel with collision detection
- Custom hooks (4):
useKeyboardNavigation- Arrow keys, Home, End, Enter, Escape, Tab navigationuseFocusItem- Automatic focus management on focused itemuseClickOutside- Close dropdown when clicking outsideusePositioning- Smart positioning with viewport collision detection and auto-flip
- Advanced features:
- Compound component pattern with Context API
- Portal rendering for proper z-index stacking
- Controlled and uncontrolled modes (
open/defaultOpen) - Keyboard navigation with loop support
- Smart positioning (top/bottom/left/right with auto-flip on viewport collision)
- Nested submenus with multi-level support
- Custom min-width for content panels
- Icon and description support on items
- Keyboard shortcuts display on items
- Click outside to close behavior
- Auto-index items for navigation
- Ref forwarding on triggers for positioning
- Accessibility (WCAG AA compliant):
- Full ARIA attributes (role, aria-haspopup, aria-expanded, aria-controls, aria-labelledby)
- Keyboard navigation (Arrow Up/Down, Home, End, Enter/Space, Escape, Tab)
- Focus management with visible focus indicators
- Screen reader announcements
- Proper semantic HTML (button, menu, menuitem, menuitemcheckbox, menuitemradio)
- Bug fixes:
- Positioning flash prevented with visibility gating and canShow flag
- requestAnimationFrame loop ensures valid measurements before showing
- Always-rendered content with opacity/pointer-events control
- Applied same fix to submenus for consistent behavior
- 26 comprehensive Storybook stories:
- Basic: Default, DefaultOpen, WithIcons, WithDescription, WithShortcuts
- Items: ItemVariants, WithSeparators, LongContent, MixedContent
- Positioning: PositionTop, PositionLeft, PositionRight, SmallViewport, WithMinWidth
- Checkbox: CheckboxItems, CheckboxControlled, CheckboxMixed
- Radio: RadioGroup, RadioControlled
- SubMenus: NestedSubMenus, MultiLevelSubMenus
- Advanced: ControlledState, CustomTrigger, WithAnimations
- Real-world: UserList (avatars + info cards), ActionsMenu, SettingsMenu, ContextMenu
- Technical highlights:
- Zero dependencies (no Radix, no Headless UI)
- TypeScript with full type safety
- Tailwind CSS for styling with dark mode support
- Separation of concerns (logic hooks vs DOM manipulation hooks)
- Performance optimized with useCallback and proper dependencies
- Clean code without comments (production-ready)
- Core components (12):
0.4.0
Features
- New Checkbox component with comprehensive features and full customization
- Base functionality:
- Controlled and uncontrolled modes with
checked,defaultChecked,onChange - Native HTML input props support (
disabled,readOnly,required,name,value) - Ref forwarding with proper TypeScript types
- Controlled and uncontrolled modes with
- Presentation options:
- Sizes:
sm(16px),md(20px),lg(24px) - Variants:
default(blue checked),filled(always colored bg),outlined(thick border) - Shapes:
square,rounded,circle - Label positions:
left,right(default) - Description text and error messages support
- Sizes:
- Customization (8 color props):
checkedColor,uncheckedColor,borderColor,labelColorerrorColor,checkmarkColor,hoverColor,focusRingColor
- Advanced features:
- Indeterminate state for "Select All" functionality
- Custom icon support (override default checkmark)
- Smooth animations (scale, zoom-in) with opt-out
- Focus ring control with
showFocusRing
- Accessibility (WCAG AA compliant):
- Native checkbox input (not div-based)
- Proper ARIA attributes (
aria-invalid,aria-describedby) - Keyboard navigation (Space to toggle)
- Visible focus ring for keyboard users
- Screen reader announcements
- CheckboxGroup component:
- Manages multiple checkboxes with shared state
- Props:
value,defaultValue,onChange(array of strings) - Orientations:
horizontal,vertical - Spacing:
sm,md,lg - Context API for automatic value/state propagation
- CheckboxGroupItem component for individual items
- 40 comprehensive Storybook stories:
- Basic: Default, Checked, WithDescription, Required
- Sizes, Variants, Shapes demonstrations
- States: Disabled, ReadOnly, Indeterminate, Error
- Custom colors (5+ examples)
- Controlled component with external state
- Select All with indeterminate example
- Groups: Basic, Controlled, Horizontal, WithError
- Real-world examples: TermsAndConditions, TaskList, FilterPanel, PermissionsPanel
- Accessibility showcase
- Base functionality:
0.3.4
Fixes
- Enhanced Header component with comprehensive features (3 phases implementation)
- Phase 1 - Logo & Actions:
logoHref?: string- Make logo clickable with customizable link (default: "/")onLogoClick?: () => void- Custom click handler for logoactions?: ReactNode- CTA buttons area (login/signup/etc)rightContent?: ReactNode- Custom content in header right side
- Phase 2 - Styling & Positioning:
- Variants:
default(neutral bg),transparent,bordered,shadow - Sizes:
sm,md(default),lg- Control padding/height sticky?: boolean- Sticky positioning at topfixed?: boolean- Fixed positioning- Custom colors:
backgroundColor,textColor,hoverColor - Active state:
active?: booleanon NavItem with border-bottom highlight - Mobile menu animation with
animate-in slide-in-from-top
- Variants:
- Phase 3 - Advanced Navigation:
- Icons support:
icon?: ReactNodeon NavItem - Badges:
badge?: string | numberon NavItem - Dropdowns:
children?: NavItem[]for nested navigation - External links:
external?: booleanwith icon indicator - Click handlers:
onClick?: () => voidon NavItem - Search bar:
showSearch,onSearch,searchPlaceholderprops
- Icons support:
- Enhanced NavItem interface:
label,href,icon,badge,children,onClick,external,active
- Comprehensive Storybook documentation with 23 stories:
- Basic: Default, WithImageLogo
- Variants: Transparent, Bordered, Shadow
- Sizes: Small, Large
- Actions: WithActions, WithRightContent
- Navigation: WithIcons, WithBadges, WithDropdowns, WithExternalLinks, WithActiveStates
- Positioning: StickyHeader, FixedHeader
- Features: WithSearch, CustomColors
- Real-world examples: EcommerceHeader, DashboardHeader, DocsHeader
- Minimal: MinimalNav, NoNav
- Phase 1 - Logo & Actions:
0.3.3
Fixes
- Added ButtonGroup component and Button focus control
- New ButtonGroup wrapper component using composition pattern with Button
- Props: orientation (horizontal/vertical), size, fullWidth, selectedValue, onChange
- Smart border radius management based on position (first/middle/last)
- Adjacent border handling with -ml-px/-mt-px for seamless appearance
- Comprehensive Storybook documentation with 19 stories
- Extended Button component with new props:
selected?: boolean- Highlights button when active in group (blue-700 + ring-2)value?: string- Identifier for ButtonGroup onChange callbackshowFocusOnClick?: boolean- Controls focus ring visibility on click (default: false)
- Focus behavior: Uses focus-visible by default (keyboard-only), focus when showFocusOnClick=true
- Added Button stories demonstrating focus behaviors (FocusOnClick, FocusOnClickComparison)
0.3.2
Fixes
- Added NumberInput component with number formatting system
- New component using composition pattern with shared utilities (InputStyles, InputWrapper)
- Multiple formats: number, currency, percentage, decimal
- Full internationalization with Intl.NumberFormat
- Features: min/max validation, step increment, locale support, decimal precision
- Prefix/suffix support, thousand separator control, negative value control
- Input validation: blocks non-numeric characters, locale-aware decimal separators
- Focus/blur handling: displays formatted value when blurred, raw value when focused
- All Input features: sizes, colors, icons, error states, inline mode
- Comprehensive Storybook documentation with 26 stories
- Reorganized Storybook structure: all form components under "Form/" folder
0.3.1
Fixes
- Added MentionInput component with full mention system
- New separate component using composition pattern with Input
- Shared utilities: inputStyles.ts and InputWrapper.tsx for code reuse
- Mention types: MentionSuggestion, MentionData, MentionInputValue
- ContentEditable-based implementation for rich text support
- Configurable trigger characters (default: @)
- Suggestion dropdown with keyboard navigation (Arrow keys, Enter, Escape)
- Custom suggestion and mention renderers
- All Input features supported: sizes, colors, icons, error states, inline mode
- Comprehensive Storybook documentation with 26 stories
0.3.0
Features
- Enhanced Input component with comprehensive features
- Added size variants: sm, md (default), lg
- Added readOnly state with disabled focus and keyboard navigation
- Added color customization: labelColor, borderColor, textColor
- Added icon support with configurable position (left/right)
- Added helper text with error state (helperText, error props)
- Added hideLabel prop to visually hide the label
- Added multiline mode (textarea) with configurable rows
- Removed all focus styles (outline-none, ring-0) for cleaner UI
- All features work in both vertical and inline modes
- Comprehensive Storybook documentation with 20+ stories
0.2.1
Fixes
- Remove variant prop and simplify Button component
- Removed
variantprop ("primary", "secondary", "outline", "custom") - Added default blue color scheme (bg-blue-600, text-white, focus:ring-blue-300)
- Simplified component logic with direct color customization
- Migration: Use
bgColor,textColor,focusColorprops for custom styling - Better flexibility for design systems
- Removed
0.2.0
Features
- Enhanced Button component with comprehensive props
- Added size variants: sm, md (default), lg, xl
- Added loading state with spinner animation
- Added icon support: leftIcon, rightIcon, icon (icon-only)
- Added fullWidth prop for responsive layouts
- Added rounded variants: none, sm, md, lg (default), full
- Improved accessibility with ARIA support
- Added comprehensive Storybook documentation
0.1.8
Fixes
- Fix package.json exports to match actual build output files
- ESM: index.js → index.js (was incorrectly index.mjs)
- CJS: index.cjs → index.cjs (was incorrectly index.js)
- Types: index.d.ts/index.d.cts (was incorrectly index.d.mts)
0.1.7
Fixes
- Fix missing component exports in package entry point
0.1.6
Fixes
- Add Storybook for interactive component documentation
- Install Storybook 8 with Vite builder
- Configure Tailwind CSS for Storybook preview
- Add stories for all components: Button, Input, Header, Footer, Modal, Table
- Add GitLab Pages deployment for Storybook
- Update README with Storybook documentation
0.1.5
Fixes
- Add Changesets for automated version management and changelog generation