Synertech Web/ui v0.57.5 Site Storybook

Documentation

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-skill installs it for Claude Code, and other assistants read the same file in node_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 LICENSE and the author field of package.json named 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 a select filter are native inputs, which draw their check in accent-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: a className, a triggerClassName or a contentClassName replaces the component's own classes that set the same thing, as on every other component since 0.57.0. Select joined 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, and triggerClassName="bg-gray-100" kept it white. AdvanceDetachable goes through cn() too, which changes nothing it draws.

    What Select drew changes where two of its own classes disagreed:

    • A disabled option shows the not-allowed cursor, no longer the pointer.
    • A disabled field is drawn on the gray-50 its classes name in the light theme, as it already was on gray-900 in the dark one.

    Kept as drawn: a field both disabled and read-only keeps the not-allowed cursor.

0.57.0

Features

  • A className replaces the component's own classes that set the same thing. cn() now resolves conflicting Tailwind classes with tailwind-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 the hover: and dark: shades too.

    tailwind-merge is a new dependency (about 9 kB gzipped, shared with an application that already has version 3). The exported cn() 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 the not-allowed cursor; a read-only RadioButton no longer shows a pointer.
    • ChartExportButton: its trigger is the pill of ChartPeriodPicker (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: borderColor replaces the default ring colour in both themes.

    Kept as drawn: a field both disabled and read-only keeps the not-allowed cursor, a FileSelector in error shows the brand's colour while a file is held over it, a mobile item of Header stays a row, and a leading-* 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 Button with a variant it 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. The Modal example uses open, submitLabel and onSubmitClick. What spoke to contributors (and told them to push to main) is in CONTRIBUTING.md, out of the package. The package has a description, and keywords that say what is in it (charts, datagrid, gantt, dashboard, nextjs, accessible…). The use-synertech-ui guide 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), the pulse of Indicator and the pulse of the rows a loading DataGrid draws stop, as the pulse and the wave of Skeleton already did. An indeterminate ProgressBar no 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-sort stays 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. A renderHeader of 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 as aria-valuenow and the bounds of minWidth / maxWidth), named by the new dataGridResizeColumn label. ← 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 through onColumnWidthsChange and onViewChange, 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), through onColumnOrderChange, onColumnReorder and onViewChange as a drop does. The button pressed keeps the focus and the move is said (dataGridColumnMoved). The menu is there whenever columnReorderable is, named dataGridReorderColumns when 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 of columns.
    • 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.
  • 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: bulkActions shows 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 a DataGridSelection: every selected key, the rows of data they name on every page, and clear(). 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 DataGridView holds what a user arranges — sort, filters, search, hidden columns, column order and widths, page size. defaultView is where an uncontrolled grid starts, onViewChange receives the whole view on every change, and the ref gains getView() and setView(), 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 (beside onColumnReorder), 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.tsx is split by role: types, pure helpers and export in modules of their own, and one module per part of the grid.

Fixes

  • Dropdown menus and submenus and the bubble of HelpButton follow their trigger when the page scrolls, instead of gliding 200ms behind it: the duration-* of their entrance also set a transition on their position. A menu opens in 150ms, like Select and Popover. 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 single clearable field 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 a listbox of options, named by the new mentionInputSuggestions label ("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 a status. It was a stack of <div>s a screen reader said nothing about. The avatar of a suggestion drawn by default has an empty alt: 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, CommandGroup and CommandItem: a command palette, opened from anywhere by ⌘K. An application that wanted its actions reachable from the keyboard built one from a Modal and a Select, 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 — onSelect is 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 its keywords, accents and case aside; what matches is written in bold. A group left without an entry goes with its heading. description is a second line, not searched.
    • Keyboard: hotkey ("mod+k" by default: ⌘K on Apple systems, Ctrl K elsewhere; false for 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 calls onSelect and closes the palette unless closeOnSelect={false}, on the palette or the entry. shortcut is shown, never bound.
    • Searching a server: filter={false}, on the palette or a CommandGroup, leaves the sorting to the application; query and onQueryChange hand it what is typed, loading shows the wait, and the list never says "No results" while it lasts.
    • Empty: emptyState replaces "No results" (an EmptyState of size sm); footer replaces the key hints, null removes them.
    • Accessible: the contract of Modal (the focus kept inside, Escape, the focus given back, the page behind it inert), a combobox over a listbox with aria-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. Twelve commandPalette… labels, in English and in French.
  • EmptyState: what a list, a table, a chart or a page shows when there is nothing in it. DataGrid and every chart took an emptyState, 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, children for a hint or a list of suggestions, then an action and a secondaryAction. Three sizes: sm in a table, a chart or a card, md (the default) for a panel, lg for a whole page.
    • The title is a paragraph unless headingLevel makes 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, DataGrid writes "No data available" as an EmptyState with 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 of onRetry under it. The labels are those of before, and an emptyState or an errorState still 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.

  • Timeline and TimelineItem: what happened, in order. The history of a file, an audit log, the progress of an order were drawn with a Divider and a list; GanttChart plans 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 when dateTime gives its moment) and the details (children, which take the title's place when there is none).
    • Markers: a dot by default, an icon in a disc, or an avatar (an Avatar of size sm fills the place). They are decorative and hidden from assistive technologies: the title says what happened and who did it. color tints 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 unless color says otherwise, and aria-current="step" on the item), upcoming (a hollow dot, a greyed title, and the line that leads to it dashed).
    • Orientation: vertical for a history of any length, horizontal for 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.
  • 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 its id, label and children (or hasChildren, to load them later), and optionally icon, expandedIcon, disabled, textValue and data. Open, selected and checked are each controlled (expanded, selected, checked with their on…Change) or held by the tree (defaultExpanded…), always arrays of identifiers in the order of the tree.
    • Keyboard: the ARIA tree pattern 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: selectionMode is single by default, multiple (Ctrl / ⌘ + click, Shift + click, Space, Shift + arrows, Ctrl / ⌘ + A over what is shown) or none. A click on a branch also opens it, unless expandOnClick={false}.
    • Three-state boxes: checkable checks 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: loadChildren is called the first time a hasChildren node 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. emptyState replaces the tree when items is empty.
    • Accessible: tree, treeitem and group roles with level, position, aria-expanded on branches only, aria-selected, aria-checked (mixed included) and aria-busy; each node is named by its label, never by the branches it holds. Two treeView… labels, in English and in French.

0.54.0

Features

  • Select multiple: several values, written as tags in the field. Choosing several labels, recipients or columns no longer goes through a Dropdown of 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 Calendar is by mode: with multiple, value, defaultValue and onValueChange take and give a string[], in the order the values were chosen; without it, a string as before. SelectProps becomes the union of the new SelectSingleProps and SelectMultipleProps, which share SelectBaseProps: an interface … extends SelectProps no 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. maxTagCount writes the first tags and counts the others in one, +2. A value with no option is written under its own text. clearable clears 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 a labels prop (UILabelsOf<"select">) for the labels of one instance; placeholder, noOptionsText, clearLabel, searchLabel and searchPlaceholder still 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. contentClassName and data-placement are 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-800 in a dark theme.
    • The search field carries aria-controls and aria-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.
  • Switch: an on/off setting that takes effect as it is turned. Notifications, a dark theme or a feature no longer go through a Checkbox, 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, as Checkbox is 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 (on by default) is sent while it is on, nothing while it is off, as for a checkbox; required keeps the form from being sent while it is off. onCheckedChange hands back the boolean, and the native onChange gets 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), and error, read as on every field: true or 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 its on-primary thumb. The focus is an outline on the track, which a forced-colours theme keeps, and the thumb is drawn in CanvasText there. The target is 24px tall at least, past the track. labelPosition="left" with className="w-full" is the row of a settings page; a right-to-left page turns it round.
  • Toaster and toast(): the stack of notifications. Toast draws 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 its id, 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 its duration, or the Toaster's (5 seconds); 0 keeps 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, action or dismiss — 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: toasterRegion and toasterRegionHotkey, the name of the region.
    • Toast: title and description take any content, not only a string.

Fixes

  • Checkbox: a box without a value of its own is sent as on under React 18, as a browser sends it. React 18 wrote value="" for the value of undefined the component handed its input, and the form received an empty string; React 19 left the attribute out. value now reaches the input only when it is given. Switch is built the same way.

0.53.0

Features

  • DatePicker and DateRangePicker: date fields that open a Calendar.

    <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/yyyy in fr-FR, mm/dd/yyyy in en-US, whatever the separator, and YYYY-MM-DD everywhere — or picked in the calendar, opened in a Popover from 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, after maxDate, one of disabledDates — stays on screen to be corrected, is reported as null, and the field says why in its own words (twelve new datePicker… and dateRangePicker… labels, English and French), before the message of error, which reads as on every field of the library
    • name submits the day as YYYY-MM-DD whatever the language (startName / endName for a period). The ref is the text field, where a form library sends the focus after a submit that failed
    • DateRangePicker names 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. Its presets are the windows of ChartPeriodPicker — same keys, same labels — held within minDate and maxDate, or windows of your own ({ label, from, to })

    PopoverContent takes initialFocus: the element the focus goes to when the panel opens, rather than its first stop.

  • One API of error for every field. error is boolean | string on Input, NumberInput, MentionInput, Select, FileSelector, Checkbox, CheckboxGroup, RadioButton and Slider, read the same way everywhere: a message marks the field invalid and is written under it in place of helperText; true marks it without a message and turns the help red; false, undefined and "" 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-invalid while 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, NumberInput and MentionInput take a message in error; error={true} with a helperText still draws the help in red, as before. Their help is now linked to the field, which it was not
    • Select and FileSelector take true. Their message is no longer a role="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 failed
    • aria-invalid="false" is no longer written on a valid Checkbox, RadioButton, Slider or FileSelector; error="" no longer marks a Checkbox or a CheckboxGroup invalid
    • The description of a RadioButton stays 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 a Slider's help
    • CheckboxGroup names its group with its label (aria-labelledby), which pointed at nothing, and describes it with its description and its message
    • The error border of FileSelector is red-500, which reads at 3:1 against the page; red-300 did not
    • hideLabel keeps the label for screen readers on Input, NumberInput and MentionInput: it is still the field's name. It was not rendered at all
    • The required asterisk of Checkbox, CheckboxGroup and RadioButton is out of the accessible name: the control already says it is required

    FormField gives 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. Unlike Tooltip, its content takes the focus; unlike Modal, 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); closeOnEscape and closeOnClickOutside.
    • Placement: side, align, sideOffset, alignOffset, avoidCollisions, collisionPadding, through the usePositioning of Dropdown — 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 in overflow: hidden cuts it.
    • Focus: on opening, to the first field or button of the panel. Escape and PopoverClose give 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 asChild composes with its child as DropdownTrigger does. A PopoverClose without children draws a cross named by the new popoverClose label.

    Tooltip and the bubble of HelpButton are placed the same way: portalled into their trigger's document and placed by usePositioning, where they were drawn in CSS inside the trigger's box. An ancestor in overflow: hidden no 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 at z-[70], above the menus. Both are shown at opacity: 0 until 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.

Fixes

  • A field the keyboard reaches shows it. The text fields drew no focus at all (focus:ring-0 and focus:outline-none): Input, NumberInput, MentionInput, DatePicker and DateRangePicker now take a ring of the brand when focused, red on a field in error, as Select already did. The same was missing from the editable area of MarkdownEditor (a ring around the editor while it or its toolbar has the focus), the search field of a searchable Select (the rule under it turns to the brand), the inline fields of SchemaEditor (an outline for the keyboard) and the mobile menu button of Header.

    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, Heatmap and ScatterChart included.
    • 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: stackSeries now 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.
    • onPointClick reads 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.format when it is given; the ticks keep the compact notation.
    • forecastFrom between two rows starts the forecast on the next row, a Date matches 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 brushToPeriod runs to the end of the last row's interval (January to March on monthly rows ends on the 31st of March). A BarChart ranked by sort takes no window.
    • maxPoints on a stacked AreaChart thins the stack once, so two bands draw the edge they share from the same points.

    New in the API: ChartBrushRange.end, ChartBrushLayer's minSpan, ChartAnnotationLayer's spanAt, and locale in the options of buildCartesianGeometry. useChartBrush().onKeyDown returns whether it consumed the key.

  • The charts get their small things right.

    • ChartExportButton needs nothing in a chart. In the actions of 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, series and xKey become optional; a field passed still wins, and a button outside a chart is handed them as before. Every chart sets the new exportSource of ChartContainer.
    • 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 Date is 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.1 is 2.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: useChartSize follows 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-surface rather 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: maxSlices counts 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 the maxSlices slices and always holds two rows at least: an application that sets maxSlices sees one coloured slice fewer. A negative value in the tail no longer shrinks the bucket and grows every other share. New valueLabel: the value column of the table was headed by x.label, the name of the slices.
    • BulletChart: the value axis is captioned by valueLabel, no longer by x.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 the milestone field is passed; it came out as a 2-pixel sliver.
    • BoxPlot: a summary given under quantiles shows no count — "Count 0" was one the chart made up — and with showMean the mean is read out in the tooltip and the data table (new label chartMean).
    • ScatterChart: the size of a bubble is read out in the tooltip and has a column in the data table, under bubble.label, written by bubble.format (new type ScatterBubble). ChartTableView takes columnFormats for a column whose unit is not the others'.
  • FooterBottom's copyright takes 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 prop Footer does not have (it did not compile): it now composes FooterBottom, as the usage guide does.

  • Forms, data and display components get their small things right.

    • Checkbox. hoverColor and focusRingColor are 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. className goes on the box (it was dropped), and indeterminate stays on the input after a click while the prop says so.
    • RadioButton. hoverColor and focusRingColor are 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. errorColor borders the circle.
    • Input with inline writes helperText under the field, not beside it.
    • FileSelector refuses a file it already holds, through onReject (new label fileSelectorAlreadyAdded), and its hidden native field is out of the tab order.
    • Calendar in dropdown: the arrows stop at fromYear and toYear, 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; between is implemented for numbers and dates, its upper bound in the new FilterValue.valueTo; a number filter compares numbers, and an empty cell is in no comparison. New labels: dataGridOperatorBetween, dataGridOperatorOn, dataGridOperatorBefore, dataGridOperatorAfter, dataGridFilterValueTo.
      • filterable alone draws a text filter; it drew no button.
      • With editable, a cell keeps its column's render until 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.
    • Avatar shows 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 an onClick and no href is a button the keyboard reaches; maxItems={1} keeps the last item; two items of one label no longer share a key.
    • TableRow is clickable only when it has an onClick, and its border is grey rather than currentColor.
    • Card padding="md" pads; Divider vertical is as tall as its row; CircularProgress spins without jumping back a quarter turn; a progress of NaN is 0 on CircularProgress and ProgressBar.
  • What an application hands a component, or a reader pastes into one, stays what it is.

    • ImageUploader refuses an SVG unless accept names it (image/svg+xml or .svg): it is an image that can carry a script, which runs once the file is served from the application's own domain. accept is 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.
    • FileSelector reads an extension as the end of a name: a file named pdf no longer passes accept=".pdf", and .tar.gz works. A dropped folder is read until it has given maxFiles accepted files, and never past 10,000 entries — read to its end before maxFiles applied, a large one held the tab. The JSDoc of both components says their checks do not replace the server's.
    • MentionInput takes 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 to onChange as a mention the reader never chose. A mention is now a chip the component placed.
    • generateSQL writes nothing of the schema as SQL of its own. A type that is not a type name is written as a quoted identifier, which PostgreSQL looks up and refuses; a defaultValue that is not a number, a string, a keyword or a function of literals is written as a string (active becomes 'active'). A shared schema with type: "int4); DROP TABLE users; --" produced a script that ran it.
    • Colours and addresses written into style can no longer add declarations. On the server, React writes a style value into the HTML as it is: a borderColor of red;position:fixed;inset:0 laid the field over the page. The colour props of Input, NumberInput, MentionInput, RadioButton, Slider and DeviceMockup, and the color of a chart series, keep a value that can only be a colour — anything else is ignored, once in the console. Banner quotes its backgroundImage.
    • Detachable and AdvanceDetachable cut the window from the page (window.opener set to null): 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.
    • AdvanceDetachable checks a message field by field before reading any of it, and without BroadcastChannel hears only the window it opened, on the page's origin. Its id names 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.css carries 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 same base layer, 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 keeps styles.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 dark variant and the animations.

Fixes

  • The advanced components do what they say.

    • DeviceMockup scrolls at its speed. scrollTop is 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 another device, 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 with orientation="landscape" keeps a landscape screen: only a phone, an android and a tablet turn.
    • Detached windows follow the page. Detachable and AdvanceDetachable copy a style sheet with every attribute — a media="print" sheet applied on screen — in the page's order, and add and remove it as the page does. The class, data-theme, dir and lang of <html> and <body> are copied and followed, so the window turns dark with the page. detachedBodyClassName is 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.
    • SchemaEditor calls onFieldClick and onFieldDoubleClick, then the table's handler; they were accepted and never called. A relation's label is drawn under its cardinality. A readOnly schema lets a relation be selected, and still never changes its cardinality.
    • Both editors: autoFit fits 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. GanttChart cuts its bars and arrows at the edge of a domain narrower than the plan, and leaves out a milestone or a today outside it — the rule of a project starting next week was drawn among the names of the tasks. DumbbellChart, BoxPlot and CandlestickChart clip their marks to the plot, take their reference lines into the value axis like the cartesian charts, and leave out one that a y.domain of the caller does not reach. BulletChart stops a measure past its domain at the end of the track and draws no target outside it; the figure, the tooltip and the table still give the value.
    • PieChart colours 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.
    • ScatterChart draws quadrants.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: change is null while 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.
    • FunnelChart shows its empty state when no stage holds a value above zero. Every stage at 0 was drawn at half the plot.
    • BoxPlot draws 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.
  • Bars keyed on a date or a number are bars again.

    A scale of time or linear sent the cartesian engine down its continuous branch, which hands out positions and leaves bandwidth at 0 — 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.

    bins is 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-ui Claude Code skill) is written with its accents throughout: the sections on Modal, 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 neither canConnect nor 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 fields threw.
      • The dialog stays open and names the first thing that does not fit, through two new labels, editorImportInvalidJson and editorImportInvalidContent.
      • loadJSON returns whether it loaded.
    • 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: updateValue is stable and builds on the latest value, so two changes in one tick both land. An inline onValueChange no 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.
    • 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 TABLE at the end.
    • Detachable and AdvanceDetachable, a blocked window:
      • The content stays in the page, and uncontrolled, the component is attached again.
      • AdvanceDetachable takes onPopupBlocked and calls onDetachedChange(false).
      • A controlled Detachable no longer tries the window again at every render of its parent.
    • Detachable and AdvanceDetachable, 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, Dropdown and ChartPeriodPicker open, listen and measure in the document of their trigger, so they work in the detached window.
  • Forms: MentionInput, Slider, ImageUploader, FileSelector and Input do what they say.

    • MentionInput shows 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 createRoot each: the provider reaches them, and react-dom/client is 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 a peer-* 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" with inputMode="url": a relative address returned by onUpload made a type="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 locale prop. It was "max 0MB" for 500 KB.
    • FileSelector: onChange was called inside the function passed to setState, 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

  • DataGrid pages its groups, fits its virtual rows and sorts values as values. Wizard passes over disabled steps, and a closed Accordion panel is out of reach.

    • DataGrid, groupBy with 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.
      • renderGroupHeader receives the whole group.
    • DataGrid, virtualized:
      • A row is exactly rowHeight tall, with no vertical padding and one line. It was 44.5px against the 40 the scroll assumed, so the bar drifted and scrollToRow missed.
      • 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 scrollToRow counts the headers.
    • DataGrid, values:
      • A Date is ordered by its moment (as text, Fri came before Mon).
      • Text is compared through an Intl.Collator of the grid's locale with numeric, so "9" comes before "10".
      • Under multiSort, turning a column around keeps its rank.
    • DataGrid, footer aggregates:
      • An empty cell is no value in an aggregate: [10, 20, null, ""] averaged 7.5, with a minimum of 0.
      • count counts the cells that hold something, text included.
      • An average, minimum or maximum of nothing leaves the cell empty. A renderAggregate still receives 0, and the rows.
      • The minimum and the maximum no longer overflow the stack on 200 000 rows.
    • 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.
      • maxStepReached follows the step rendered: a controlled parent that refused a change left the step it refused clickable.
    • Accordion: a closed panel is inert. Its links and fields no longer take the focus out of sight.
  • Modal and Drawer: a dialog asked from a detached window opens in it. It opened in the page, behind the window it was asked from.

    • Detachable and both modes of AdvanceDetachable tell their children which document they are shown in, and Modal and Drawer render 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 Modal or a Drawer is now one element deeper under <body>, inside a display: contents wrapper, so a selector such as body > [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. TableHeader draws 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 into TableHeader, and the guide says why.
    • TableHeader documents it: its children are the header cells.

    Nothing changes in the components. An application that wrote its header the way the guide showed takes the TableRow out of it.

0.50.0

Features

  • Narrow screens: a wizard that fits a phone, and a card title that makes room for its actions.

    • WizardSteps, hideLabels takes 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, and hideLabels hid them at every width.
    • WizardSteps, a hidden label is still the name of its step: it stays in the button as sr-only. The marker is aria-hidden, so with hideLabels every step was a button with no name at all.
    • WizardPanel has no role: it said role="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 by getByRole("tabpanel") looks it up by its content instead.
    • CardHeader, long title: the title shrinks beside the actions, which stay whole. It was as wide as its text: with truncate on CardTitle it never truncated, and it pushed the actions out of the card, where the card's overflow-hidden cut 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, Breadcrumb and FooterLink wrote 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 a Link of 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:

    • linkComponent on the provider: <UILabelsProvider linkComponent={Link}>, with next/link, the Link of next-intl, or a component of its own that renders an <a> with every attribute it receives (UILinkProps). Sidebar and Header render it for every address that stays in the application: the items, and the logo of Header. Sidebar and Header take 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.
    • Breadcrumb and FooterLink take a linkComponent prop. 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 disabled SidebarItem, an address the library refuses (javascript:…), an external item of Header and an external FooterLink never go through the router's link either.
    • onClick receives its event, on a SidebarItem, an item of Header, its logo and an item of Breadcrumb: event.preventDefault() keeps a link from being followed. A handler written without a parameter still compiles.
    • Header, an item with an href and an onClick: 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 that onClick calls event.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: a badge of 0 is 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 forecastFrom and 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 dashed series 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 LineChart and for the lone points of AreaChart: two rows on the same moment with the same value shared a key, with the same result.

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, duration and position were declared and read by nothing. duration calls onClose once it has passed, held while the pointer is over the toast or the focus is in it. position fixes 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. An onMouseEnter, onFocus or onClick passed 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 asChild composes with its child instead of replacing what the child says: the child's onClick and onKeyDown run first (and keep the menu closed with preventDefault()), a disabled child stays disabled, and the child's own ref still receives the element.
    • Button forwards its ref. Under React 18 a <DropdownTrigger asChild> around a Button had 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. usePositioning returns availableHeight for that.
    • A closed menu costs nothing. Every Dropdown on a page, open or not, measured twice and set a state on each scroll event. It now listens only while it is open.
    • Select opened upwards sits right above its field: its list was placed maxHeight above it whatever it held, so two options floated 180px away. While loading, Arrow down then Enter no longer chooses an option.
    • Sidebar, onMobileOpenChange is 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 below mobileBreakpoint, not at it. At exactly 768px the sidebar was a closed drawer while a button hidden from md: 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.
    • HelpButton in 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: Tooltip and the bubble of HelpButton are positioned in CSS, without a portal — an ancestor in overflow: hidden clips them, and the help bubble can leave the screen near its left edge.

0.48.0

Features

  • Numbers and dates: UILabelsProvider takes a locale, 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 locale asked the runtime for its language. That is the server's on the server and the reader's in the browser: a page rendered in en-US wrote "1,284.5" and "March 2024", and the text changed to "1 284,5" and "mars 2024" at hydration.

    What an application sees now:

    • locale on the provider: <UILabelsProvider labels={frenchUILabels} locale="fr-CA">. labels is the language of the texts, locale the way numbers and dates are written. The thirteen charts, Calendar, ChartPeriodPicker, NumberInput and the footer aggregates of DataGrid read it; the locale prop 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. DataGrid gains a locale prop.
    • Nothing changes for an application that sets none: those components still follow the language of the runtime (NumberInput still en-US). An application that renders on the server should set it.
    • StatCard takes a locale prop. It renders on the server and reads no context, so the provider does not reach it — nor ChartFacets and ChartScaleLegend, 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 a delta.format of the application's too, and delta.direction still 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. ChartPeriodPicker hands its now to the calendar it opens.
    • Calendar, "Today" shortcut: pressed while today was selected, it took the selection away and called onChange(null). It now changes nothing; in multiple mode 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 a RangeError during render. An invalid date is now no date, in value, defaultValue, month, defaultMonth, minDate, maxDate and today.

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 content editable and onSave exist 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 spellings b, i and s, kbd, and div / 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, its alt text with it.
    • Attributes: a link keeps href, any element title. class, style, id, name, target, data-* and aria-* 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 gets rel="noopener noreferrer".

    DOMPurify is now an instance of HelpButton's own: a DOMPurify.setConfig() or addHook() an application calls for its own HTML no longer changes what a help bubble lets through, and nothing HelpButton does changes them.

    The Markdown mode let the same image in by another way: ![](url) 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.

  • HelpButton: the Markdown mode no longer writes node="[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, strong and em of 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 rel given to a footer link no longer drops noopener 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 to Breadcrumb, Header, SidebarItem or a footer link ran whatever that address held.

    What an application sees now:

    • Addresses: the href of a Breadcrumb item, of a Header item or submenu item and its logoHref, of a SidebarItem, of a FooterLink and of a FooterSocialLink makes a link only when it is http:, https:, mailto:, tel: or has no scheme (a path, a query, an anchor, //host). Any other — javascript:, data:, vbscript:, but also ftp:, sms: or the scheme of an app — leaves the text or the icon without its link; a SidebarItem renders as a button, as it does without href. 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: FooterLink with external, and FooterSocialLink, add noopener noreferrer to the rel they are given. A rel="nofollow" or rel="me" used to replace them; the link now carries both.

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-600 for a button, ring-blue-500 for a focus ring, text-blue-600 for a link — 262 classes in 49 files. They now name a ramp of CSS variables, --color-synertech-primary-50 to -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. Turning on-primary dark 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 :root or on any element. On an element it repaints what is under it — a Modal, a menu or the list of a Select is 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-primary declared by the library would be the application's variable too, and whichever stylesheet came last would repaint the other.

    What stays blue

    The info status of Banner, Toast and Tooltip, which is blue in every application like the red of an error; the marks of the keys in SchemaEditor, which its legend names; and the chart series, which have their own palette (--color-chart-1 to -8).

    Colour props

    The props that took a class still do, and still win: bgColor, checkedColor, progressColor… Two defaults moved with the ramp:

    • Button: textColor defaults to text-synertech-on-primary on the default fill, and to text-white, as before, on a fill passed as bgColor.
    • Checkbox: checkmarkColor follows the same rule with checkedColor.

    An application that turned on-primary dark 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-600 on a Button of 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 SchemaEditor or Sidebar. 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 did

    onSubmitClick was awaited and onClose() 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 resolves false, 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 disabled and the one that was pressed is aria-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.
    • onCancelClick follows 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 rest

    • panelClassName reaches the dialog panel. className is, and stays, the backdrop: there was no way to give the panel a height.
    • open is accepted beside isOpen, the name Drawer uses. isOpen keeps working and is not deprecated; it is now optional in ModalProps, since one of the two is enough.
    • A modal named by aria-label with no title was shown under the placeholder "Modal Title" and its aria-label was dropped. It now has no visible title, like title="".
    • A modal given neither still shows the placeholder, and a warning says so once.

    ProgressBar: a colour and a name of the application's own

    • progressColor and trackColor replace the colours of the fill and of the track, as they do on CircularProgress. className only ever reached the wrapper, and color="primary" is blue.
    • aria-label, aria-labelledby, aria-describedby and aria-valuetext go to the element that holds the progressbar role. They landed on the wrapper, where they name nothing: the only way to name the bar was label, which also prints it — twice, on a page that already shows its own.

    Tests: no polyfill needed under jsdom

    SchemaEditor called new ResizeObserver and Sidebar called window.matchMedia without 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.

Fixes

  • A form sends what its fields show. Four defects where the two disagreed, in Checkbox, CheckboxGroup, NumberInput, Button and Chip.

    Checkbox: ticked on screen, absent from the form

    An 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 :checked picks the one on screen. It follows a reset, a <button type="reset">, and whatever writes checked through the ref. Controlled, nothing changes.

    CheckboxGroup: a form could not tell which boxes were checked

    CheckboxGroupItem read its value for the group and never handed it to the input: FormData.getAll("fruits") returned ["on", "on"].

    • Each item submits its value.
    • CheckboxGroup takes a name, which every item submits under. An item's own name wins.
    • 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 blur

    Without a value prop 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. defaultValue is 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.
    • decimals applies to the value too. It rounded what the field shows and not what it emits: the field read 1.23 and onChange received 1.23456. Without decimals the value is emitted as typed, as before.
    • A pasted number is read the way the locale writes it: 1 234,56 in French, $1,234.56 in English. It was refused whole, without a word. What is not a number in the locale of the field is still refused — an English 1,234.56 pasted in a French field is not turned into 1,23456.
    • step does something: the up and down arrows add and take it away, within min and max. It was accepted and ignored.

    Button: the form did not know which button was pressed

    value only reached a data-value attribute. With several submit buttons — the usual way to tell "save" from "delete" in a server action — the intent arrived empty. The value attribute is now set; data-value stays.

    Chip: a filter chip submitted the form

    <Chip as="button"> had no type, so it submitted the form it was in, and its props did not let an application give it one. It is now type="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

    • NumberInput with decimals: onChange receives the rounded value.
    • NumberInput: the up and down arrow keys change the value.
    • <Chip as="button" closable>: the element that carries className is 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.
  • Checkbox: the check mark of the outlined variant 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, 600 on a light page and 400 on a dark one, like every text of the kit; the border follows the same two stops, where it stayed on 600 in 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 first bg- was turned into a text colour, and the second painted a fill on a box that has none.
    • checkmarkColor still wins. A disabled box, drawn filled whatever its variant, keeps the mark of a filled box.

    The default and filled variants are unchanged.

0.46.3

Fixes

  • The editors no longer lose what was typed or drawn in them. Five defects of WorkflowEditor, SchemaEditor and AdvanceDetachable, each of which threw work away without a word.

    WorkflowEditor: Backspace in a field of a node deleted the node

    A 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, a textarea, a select or 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 field

    In 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 view

    Every 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 at

    A key is written twice, as a relation and as the foreignKey of 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. loadJSON cleans them for good.
    • Visible in the SQL export: a relation given without foreignKey used to draw a line and export nothing. It now exports its constraint. A column that references two tables gets two constraints, the second named fk_<table>_<field>_2.

    AdvanceDetachable: a window that opened overwrote the others

    Every instance sent its value when it was mounted. Opening a second tab on the same id replaced 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, then ab from another window, then a again — 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-400 on a white page reads at 2.6:1, and dark:text-gray-500 at 3.7:1 on a dark one.

    What changes on screen

    • The lightest grey ink is gray-500 on a light page and gray-400 on a dark one. Hints and captions: the "(optional)" of Label and Wizard, the step descriptions of Wizard, the helper texts and file sizes of FileSelector, the shortcut of a DropdownItem, the group label of Sidebar, the empty message of DataGrid, the week numbers and the days outside the month of Calendar, the hidden entries of a chart legend, the types and notes of SchemaEditor.
    • Icons follow, so that a component has one grey: the close buttons of Modal, Drawer and Sidebar, the clear button and the chevron of Select, the search and grip icons of DataGrid, the separators of Breadcrumb, Pagination and FileSelector. At 2.6:1 a chevron was under the 3:1 asked of a graphic as well.
    • Placeholders are texts: gray-500 in Select, MentionInput, the search of Header and 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 is gray-300 — gray-400 stopped at 4:1 on gray-700.
    • SchemaEditor: a read-only schema is drawn at full strength. Its tables were handed disabled and 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 muted Label is the shade default uses, 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.mjs no longer skips a grey text with no background, and reads placeholder-… / placeholder:text-… against the field they are written on. A class list that says cursor-not-allowed is a disabled state and is left alone.

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-700 and teal-700 instead of the 600 (solid Chip, Badge, Toast, Tooltip, the selected pill of Tabs, the step marker of Wizard, the selected day of Calendar), red-600 instead of red-500 (the badges of Header, the remove button of ImageUploader). In the dark theme the selected day of Calendar, the active page of Pagination and the submit button of Modal keep 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, CircularProgress and Slider, the icons of Toast and Banner, the variation of StatCard, Label. The soft green is green-800 on green-100; red on its own tint is red-700.
    • Error messages and required marks are red-600, and red-400 in the dark theme where nothing was said for it: Checkbox, CheckboxGroup, RadioButton, Select, Slider, Label, the helper text of the inputs. The default of Checkbox's errorColor is "text-red-600 dark:text-red-400".
    • The count of Indicator has 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 shade default uses — 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.
    • TableHeader in the dark theme and the address bar of DeviceMockup write in gray-300 on gray-700; the icons and the default value of SchemaEditor have 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.mjs runs at the end of pnpm 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.

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 on amber-500 and 1.5:1 on yellow-400, where WCAG AA asks for 4.5:1.

    They write in gray-900 now, between 7.8:1 and 11.3:1: a solid Chip, Badge and Toast, the warning Tooltip, the selected pill of Tabs, the selected day of Calendar (it already did in the dark theme), the step marker and the next button of Wizard, and the count of Indicator. On a solid Toast the 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 theme

    The text typed in the editor stayed near-black on the dark surface. The stylesheet of @mdxeditor/editor is not in a layer and colours the editable area itself, so it won over the library's utilities; the text is gray-300 in 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 under prefers-color-scheme alone: 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:

    • dark class or data-theme="dark" on an ancestor, usually <html>: dark. A dark section of a light page works too.
    • light class or data-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 dark leaves the light state undeclared, and undeclared means "ask the system": set light as well (next-themes does both). Nothing changes for an application that never touched the theme. The stylesheet is about 3 kB larger once compressed, each dark: rule now being written for two scopes.

    Animations, and classes that had no rule

    animate-in fade-in-0 zoom-in-95 and 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, and Skeleton 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 build now 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 of MarkdownEditor had no typography at all — headings, lists and links came out as flat text. They now look like the Markdown HelpButton renders.
    • scrollbar-hide: the scrolling content of DeviceMockup showed its scrollbar.
    • dark:hover:bg-gray-750: a shade that does not exist; the rows of SchemaEditor had no hover in dark mode.
    • resize-vertical on a multiline Input: the class is resize-y. The textarea is now resized vertically only, as intended.

    Header

    The default variant 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 pass backgroundColor.

    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, onCandleClick and onTaskClick were 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.

    ScatterChart has 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 UILabels for the dialogs and the charts only. Everywhere else they were written in the components — in English for most, in French for HelpButton and ImageUploader — so a French application showed "Rows per page" under its grid, and an English one "Afficher l'aide" on its help button.

    • UILabels now 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, DeviceMockup and BoxPlot read them.
    • Per instance, a component with more than a few strings takes a labels prop with the very keys of the provider — <DataGrid labels={{ dataGridNoData: "No invoice" }} />, typed UILabelsOf<"dataGrid"> — and the others a prop each: closeLabel on Toast and Banner, removeLabel on Chip, menuLabel on Header, clearLabel, searchLabel and searchPlaceholder on Select, optionalLabel on WizardSteps, loadingLabel on MentionInput. 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 the labels of one instance.
    • The labels live in a module without "use client": frenchUILabels can be read from a Server Component.
    • Label, Breadcrumb and Avatar render 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 build fails on a user-facing string written in a component (scripts/check-ui-strings.mjs).

    What an existing application will notice:

    • HelpButton, ImageUploader and the placeholder of MarkdownEditor are 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 a Modal without a title.
    • 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.
    • closeLabel passed to Toast or Banner is 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, Breadcrumb and Avatar carry four strings.

    Not in this release: a locale on the provider. Number and date formats are a separate matter from the words.

Fixes

  • DataGrid keeps 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.pageSize won 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 data shrinks under it, or a controlled page points 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 in data, which a rowKey function receives as index. That still shifts when data is refetched or paged by a server: the grid says so once, and rowKey remains 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.
    • onReorder receives positions in data. 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

    • DataGrid quoted a cell only when it held a comma and never doubled a quote, so a line break added a row and x",=1+1,"y came 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, in DataGrid'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: -5 stays -5. exportNeutralizeFormulas={false} on DataGrid, and neutralizeFormulas: false on ChartExportButton and toChartCsv, write the text as it is.
  • 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 read Hi @ — while onMentionSelect reported 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. onChange and onMentionSelect are 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 name took 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 writing checked through the ref — is followed too. A read-only button refuses the click itself. onCheckedChange is 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 and onChange never ran. The decimal separator now comes from Intl instead 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

    id is honoured. The label pointed at a generated id while the caller's id replaced it on the field alone: the field lost its accessible name, and for RadioButton, whose native input is hidden, clicking the label selected nothing.

    FileSelector

    mode="directory" and mode="both" keep every file of a folder. Without multiple, only the first valid file was kept: one file out of the folder that was picked or dropped. Only mode="file" can mean a single file. In the two other modes the selection is a list — a new pick is added to it, maxFiles caps it and "Remove all" clears it — with or without multiple, and the file dialog of both lets 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 in footer, they were cancelled and sent the focus to a day: the menus could not be operated from the keyboard. An onKeyDown passed to Calendar no 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

    Modal is rendered under <body>, like Drawer, 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 mobile Sidebar. Nothing changes in its props or in its ref.

    A test that looked the modal up in the container returned by render() now finds it in document.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: onOpenChange received true, false, true and 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 a Modal — 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).

    index on the items, and focusedIndex, setFocusedIndex, itemsRef, registerItem and getNextItemIndex on useDropdownContext(), are kept and deprecated: they do nothing any more. A custom item needs no registration — a menuitem role inside the menu is enough for the arrows to reach it. useClickOutside takes an optional isInside, 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.

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.

    • BoxPlot threw a TypeError while rendering, which unmounts the whole React tree when there is no error boundary above it.
    • Heatmap threw when given an x.format, and otherwise drew a rectangle at x="NaN" under a tooltip for a cell that was gone.
    • BulletChart, WaterfallChart, FunnelChart, DumbbellChart, CandlestickChart and GanttChart called their click handler with undefined.

    The index is now checked against the rows on every render, as LineChart, AreaChart and BarChart already 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 a GanttChart task 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. toTimestamp and brushToPeriod read the same way; in UTC nothing changes.
    • A time axis accepts those strings. x={{ key: "day", scale: "time" }} on LineChart, AreaChart or ScatterChart with rows holding "2026-03-01" threw RangeError: 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 AreaChart drawn with curve="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. LineChart and AreaChart showed 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 — whatever markers said.

    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, dompurify starts at 3.4.18, and what reaches npm is the build CI checked.

    The skill

    use-synertech-ui, the guide npx setup-claude-skill copies into a project, declared allowed-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 with npx setup-claude-skill --force.

    dompurify

    The range goes from ^3.4.11 to ^3.4.18. A fresh install already resolved to the latest release; an application with a frozen lockfile stayed on a version its own audit reports.

    Kept honest by the build

    • scripts/check-bundle-boundary.mjs, run by pnpm build, fails when the shipped skill pre-authorizes anything but Read, Glob and Grep.
    • The publish job no longer installs dependencies or rebuilds: it publishes the dist/ the build job linted, built and checked, with lifecycle scripts off. Nothing but node and npm runs 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.js as 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 with createContext is not a function — for Card, StatCard or Sparkline just 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. sideEffects only lets a bundler drop whole modules, and there was one: a Vite application importing Button alone shipped 411 kB of JavaScript, against 220 kB for React by itself.

    What changes

    • dist/ mirrors src/ (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/ui and @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), Chip and the public dropdown hooks (useClickOutside, useKeyboardNavigation, usePositioning) gain the directive they were missing. Tabs read a context and Chip always attaches a click handler, so both failed when rendered from a Server Component.

    Kept honest by the build

    scripts/check-bundle-boundary.mjs, run by pnpm build, now fails when a "use client" is lost between the sources and dist/, when a module on the server side of the boundary uses a client-only React API, when the main entry does not load under the react-server condition, when a relative import is not a real file, or when importing Button, Card or Sparkline alone pulls in more library code than its budget. It still guards the optional @mdxeditor/editor peer, now across every file the main entry reaches.

Fixes

  • PieChart and BulletChart write their percentages in the locale they are given.

    The slice shares in the PieChart legend and tooltip, and the attainment in the BulletChart tooltip, were formatted in the locale of the machine rendering the chart, whatever locale said. The legend is part of the server render, so a PieChart rendered by a server in one locale and hydrated by a browser in another failed hydration ("32.1%" against "32,1 %"), and passing locale did not help. The tooltips mixed the two: "38,4 k" next to "91.4%".

  • The refs returned by useDialogA11y, useChartSize and useDropdownContext typecheck 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/react 18 refuses on a ref prop: in a React 18 application, <div ref={dialogRef}> — the usage the documentation of useDialogA11y gives — 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 — overlay on LineChart, AreaChart, BarChart, ScatterChart

    The charts take children off 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. overlay is the way back: the chart resolves its geometry, hands it over as a ChartPlotContext, 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

    ChartContainer knew loading and empty and 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, errorState and onRetry join loading and emptyState in a shared ChartStatusProps, 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 the actions slot the container always had.

    Cross-chart interaction — ChartSyncProvider

    ChartFilterBar made 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. brush lets 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, and brushToPeriod turns it into the period a ChartPeriodPicker is set to. A press that goes nowhere is still a click and still reaches onPointClick; 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 with sync={false}. ScatterChart does 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 open

    The 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. maxPoints then thins the drawn marks only: LineChart and AreaChart through LTTB, which keeps the peaks a stride sample walks straight past, and ScatterChart through 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. BarChart has no maxPoints — dropping categories would lie, and bins is the answer there.

    The export — ChartExportButton

    The small gap the kit carried from the start: DataGrid has 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 — the actions slot 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 an actions slot and a sticky mode for a dashboard longer than a screen.
    • ChartPeriodPicker — the window a dashboard is read over, and the one filter every dashboard has. Calendar picks 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 a now the 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.ts and is exported: resolvePeriodPreset, createPeriod, formatPeriodRange, samePeriod, startOfDay, endOfDay.

    Annotations — on LineChart, AreaChart and BarChart

    referenceLines answer "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: a band (a campaign, an outage) drawn under the marks, a line (a release, a price change) drawn over them, and a point pinned 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 horizontal BarChart runs its categories up the side, where a moment is not a moment: it ignores them, with a warning.

    Textures — patterns on BarChart, AreaChart and PieChart

    The 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-surface variable — 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 diverging bar chart, a pie's folded tail — and an AreaChart textures 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. A total field draws a checkpoint from zero, and a declared total that disagrees with the sum of the steps is shown rather than hidden. No sort: 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, and sort="gap" brings the biggest movers to the top. Capped like ScatterChart at 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 under values get quartiles, outliers and an optional mean diamond; a precomputed summary under quantiles draws 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 overlap Calendar, which picks a date and hands it back. The time axis lands on calendar boundaries — Mondays, the first of the month — through the new niceTimeTicks.

    BarChart

    • bins turns it into a histogram: it reads x.key as a measurement, buckets it and counts, the bars touching because the axis underneath is continuous. sort, stack and diverging are 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, and niceTimeTicks / formatTimeTick are exported alongside the existing scale helpers.
    • ChartLegendItem takes an optional marker, so a combined chart's legend mirrors each mark.
    • New translatable labels for every column and legend entry the six components render, in UILabels and frenchUILabels.

0.41.0

Features

  • Add the four chart forms the kit was missing, and the colour ramps three of them needed: Heatmap, BulletChart, ChartFacets and a diverging mode on BarChart.

    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. steps cuts 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 completes StatCard rather 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: ScatterChart caps itself at three series and PieChart folds 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.
    • BarChart diverging — true or 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 on StackedSegment (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) and onDark(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 BarChart value label on a bar running below or left of the baseline was laid out inside the bar instead of past its end.
    • Two new UILabels keys, chartValue and chartTarget, with their French translations.

0.40.1

Fixes

  • Keep the bars of a grouped BarChart together.

    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, chartLoading and chartOther.

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/editor failed 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 markdownEditor and markdownEditorUnavailableLabel props on HelpButton and WithHelpButton. Without markdownEditor, 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.markdownEditorLoading is removed, since nothing loads asynchronously any more.

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 the GITLAB_NPM_TOKEN variable from their setup.
    • @mdxeditor/editor moved 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/editor and import @mdxeditor/editor/style.css to keep the Markdown edit mode. Without it, the edit mode renders an explanatory message instead of crashing.
    • Two new UILabels entries (markdownEditorLoading, markdownEditorUnavailable) translate those states.
    • The published bundle is now minified and ships no sourcemaps.

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

    DropdownContent and DropdownSubMenuContent keep their menu mounted in a portal under <body>, even while closed. Opening a dialog marked those portals inert along with the rest of the page, and opening the menu afterwards only flipped its aria-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, DropdownSubMenu and Select register their portal automatically

    Escape closed the menu and the dialog at once

    useDialogA11y listened on document, like Dropdown and Select do. 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.

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 an aria-label prop as fallback, and aria-describedby from the Modal description
    • 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-hidden and 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-live region) with the data-synertech-inert-ignore attribute.

    Translations

    • New UILabelsProvider / useUILabels with defaultUILabels (English) and frenchUILabels
    • New props Modal.closeLabel, Modal.enterFullScreenLabel, Modal.exitFullScreenLabel, Drawer.closeLabel and Sidebar.closeLabel; submitLabel / cancelLabel now 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, sidebar keys), and the mobile toggle now says "open"/"close" instead of "expand"/"collapse"

    New public API

    • useDialogA11y hook to give the same behaviour to custom dialogs
    • getFocusableElements, 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 the sidebar label)
    • 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 useId instead of the hardcoded drawer-title

0.37.0

Features

  • Add Calendar component — a date picker calendar with no external dependencies, built on an ARIA grid with a roving tabindex.

    Features: three selection modes via a discriminated union so value/defaultValue/onChange are typed per mode — single (Date | null), multiple (Date[], with an optional max) and range (CalendarDateRange, with hover preview and automatic bound swapping); controlled & uncontrolled modes for both the selection and the displayed month (month/defaultMonth/onMonthChange); constraints via minDate, maxDate, disabledDates (array or predicate) and disabled; display options numberOfMonths, weekStartsOn, locale, showOutsideDays, showWeekNumbers (ISO), fixedWeeks, captionLayout ("label" or "dropdown" with fromYear/toYear), bordered, renderDay, footer, todayButton, clearButton and labels for 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 the locale prop. Keyboard support covers arrows, Home/End, PageUp/PageDown and Shift+PageUp/PageDown for years, rolling the month over and clamping to minDate/maxDate. All date math is local-midnight based, so dates never shift across time zones.

0.36.0

Features

  • Add Slider component — 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 via marks), custom trackColor/fillColor/thumbColor, plus disabled and readOnly states. 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 the Intl.NumberFormat instance 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.

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 redundant aria-hidden on the Tabs panel. DropdownSeparator now 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 the hr element or the implicit role.
    • Performance: marked touch event listeners passive (useClickOutside, Select); replaced repeated Array.find()/includes() calls inside loops with Map/Set lookups (DataGrid column ordering & sort comparator, schema auto-layout); collapsed map().filter() chains into single passes (DataGrid); switched DataGrid column state to lazy initializers. All behavior-preserving.

0.35.2

Fixes

  • Security & quality pass:
    • HelpButton: non-markdown content is now sanitized with DOMPurify before it is rendered, closing a potential XSS hole when a consumer passes user-controlled HTML. This adds dompurify as a runtime dependency. Also fixes a Rules-of-Hooks violation (hooks were declared after an early return null) that could crash the component when the visible prop 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 the hr element 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.

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 half size variant and customWidth/customHeight props
    • New half size: opens the drawer at 50% width/height, anchored to the specified position
    • New customWidth prop: override the drawer width with any CSS value (e.g., "400px", "25rem", "40%")
    • New customHeight prop: override the drawer height with any CSS value, useful for top/bottom positions
    • Custom dimensions take priority over the size prop when set

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)

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-ui Claude 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 direction prop ("horizontal" | "vertical") for vertical node layouts with adaptive port positioning and vertical bezier curves
    • Add onNodeClick, onNodeDoubleClick, and onNodeContextMenu event callbacks
    • Add node action icons system via actions in nodeRegistry with onNodeAction callback, supporting positioning, dynamic visibility, custom styling, and tooltips

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

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 useLatest hook 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.setFocusedIndex type changed from (index: number) => void to Dispatch<SetStateAction<number>> (compatible with all existing usage)

    All changes are backward compatible and improve performance without affecting the public API.

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.css dans 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, soft
      • chipColor : default, primary, success, warning, error, info
      • chipSize : 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, button pour sémantique
    • Accessibilité : bouton de fermeture avec aria-label
    • Support dark mode complet
  • 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 : showValue avec formatage personnalisable (valueFormat)
    • Contenu central : support children pour 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 :
      • required avec indicateur personnalisable (requiredIndicator)
      • optional avec texte optionnel (optionalText)
      • tooltip pour info-bulle native
      • Support icônes (icon, endIcon)
    • Prop as : label, span, p pour flexibilité sémantique
    • États : disabled, truncate
    • Support dark mode complet
  • Nouveau composant Tabs avec pattern compound component

    • 4 composants :
      • Tabs - Conteneur principal avec Context API
      • TabsList - Container pour les triggers
      • TabsTrigger - Boutons de navigation avec états
      • TabsContent - 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 fullWidth pour 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
  • 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 :
      • delay pour délai d'apparition
      • showArrow pour flèche directionnelle
      • maxWidth pour largeur maximale
      • open pour mode contrôlé manuel
    • États : disabled
    • Accessibilité : role="tooltip"
    • Support dark mode complet

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 arrondis
      • CardHeader - Section en-tête avec support actions et séparateur
      • CardBody - Zone de contenu principale avec padding configurable
      • CardFooter - Section pied de page avec alignement et séparateur
      • CardImage - Composant image avec ratio d'aspect et object-fit
      • CardTitle - Typographie titre avec niveaux de heading
      • CardDescription - 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ée
      • shadowColor - Couleur d'ombre personnalisée
    • États interactifs :
      • hoverable - Effet de survol avec élévation
      • clickable - Carte entièrement cliquable avec effet de clic
    • Accessibilité :
      • Prop as pour balises sémantiques (article, section, div)
      • Support complet des attributs HTML natifs
    • 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
  • 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 variant prop has been removed from the Button component. Use the new color customization props instead.

    Migration guide:

    • variant="primary" → Remove (default blue styling)
    • variant="secondary" → Use bgColor="bg-gray-600 hover:bg-gray-700"
    • variant="outline" → Use bgColor="bg-transparent" textColor="text-gray-900" with border classes
    • Custom colors: Use bgColor, textColor, focusColor props 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 management
      • DropdownTrigger - Button trigger with asChild pattern support (composition)
      • DropdownContent - Portal-rendered content panel with smart positioning
      • DropdownItem - Menu items with variants (default, danger, success)
      • DropdownSeparator - Visual separator between menu sections
      • DropdownLabel - Section labels for menu organization
      • DropdownCheckboxItem - Multi-select checkbox items with controlled/uncontrolled modes
      • DropdownRadioGroup - Radio group container for exclusive selection
      • DropdownRadioItem - Individual radio items within RadioGroup
      • DropdownSubMenu - Nested submenu container with independent state
      • DropdownSubMenuTrigger - Submenu trigger with hover/keyboard support
      • DropdownSubMenuContent - Portal-rendered submenu panel with collision detection
    • Custom hooks (4):
      • useKeyboardNavigation - Arrow keys, Home, End, Enter, Escape, Tab navigation
      • useFocusItem - Automatic focus management on focused item
      • useClickOutside - Close dropdown when clicking outside
      • usePositioning - 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)

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
    • 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
    • Customization (8 color props):
      • checkedColor, uncheckedColor, borderColor, labelColor
      • errorColor, 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

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 logo
      • actions?: 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 top
      • fixed?: boolean - Fixed positioning
      • Custom colors: backgroundColor, textColor, hoverColor
      • Active state: active?: boolean on NavItem with border-bottom highlight
      • Mobile menu animation with animate-in slide-in-from-top
    • Phase 3 - Advanced Navigation:
      • Icons support: icon?: ReactNode on NavItem
      • Badges: badge?: string | number on NavItem
      • Dropdowns: children?: NavItem[] for nested navigation
      • External links: external?: boolean with icon indicator
      • Click handlers: onClick?: () => void on NavItem
      • Search bar: showSearch, onSearch, searchPlaceholder props
    • 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

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 callback
      • showFocusOnClick?: 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 variant prop ("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, focusColor props for custom styling
    • Better flexibility for design systems

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