Skip to content

Changelog

Changelog

The changes of every 1.x release, newest first. The releases before 1.0 are in thewhole changelog on GitHub.

1.1.0

Released

The first minor after the 1.0 freeze: it closes the Fluent UI v9 gap backlog of docs/ROADMAP.md (§8.2, §8.5 and §8.6) that the freeze allowed, and adds nothing breaking. Every addition is optional and defaults to the 1.0 behaviour, with the few exceptions under "Upgrading from 1.0". What stays open, and why, is in the roadmap's §8.1a.

Upgrading from 1.0

Nothing needs to change. Three kinds of difference can show in code or markup that depends on exact details:

  1. Widened unions. PresenceStatus gains 'blocked' and 'unknown', TimePickerInvalidReason gains 'not-listed', SpinnerSize gains three sizes, ToastPosition gains 'top' and 'bottom', DismissReason and ModalOpenChangeReason gain 'parent-closed'/'focus-outside', and ToastController has three more members (updateToast, pauseToast, playToast). An exhaustive switch over one of these unions, or code that implements ToastController itself, needs the new cases.
  2. Markup. MenuButton always renders aria-expanded; RadioGroup.Item renders data-label-position and Slider renders data-orientation; a bare Skeleton is 16px tall; ToggleButton as an anchor with an href and no role no longer renders aria-pressed; a popup with the default motion is data-presence="exited" until it is placed; a Popover, Menu or other popup opened inside a Dialog or Drawer closes with it. Literal markup pins in your own tests may need a refresh.
  3. Migration codemod. chart-1 to chart-5 are names a stock shadcn/ui theme also defines, so the codemod now treats 22 names as shared (the 17 of 1.0 and these five).

Added

  • Text takes Fluent's layout and decoration props: wrap, truncate, italic, underline, strikethrough, align and block (closes text-1, text-2 and text-5).
  • Divider takes appearance (default, subtle, strong, brand), inset and alignContent (start, center, end), with data-appearance, data-inset and, on a labelled divider, data-align-content (closes divider-1, divider-2 and divider-3). DividerAppearance is a new exported type.
  • Badge takes the ghost appearance (the color as text alone), shape (circular, rounded, square), the tiny size (a 6px dot with no content), and an icon slot with iconPosition (before, after), with data-shape and data-size and the stable class wave-badge__icon (closes badge-3, badge-4, badge-5 and badge-6). BadgeAppearance gains 'ghost', and BadgeSize ('tiny' and Size) is a new exported type.
  • CounterBadge takes the ghost appearance, shape and size (extra-small to extra-large; a dot stays 6px), with data-shape and data-size (closes counterbadge-4).
  • PresenceBadge takes the statuses blocked and unknown (each with a glyph of its own) and the outOfOffice modifier, which draws the out-of-office arrow in the status's color and names the badge "<status>, out of office" (closes presence-1 and presence-2). PresenceStatus gains 'blocked' and 'unknown', so a switch over it that has no default needs the two cases. presence-4 is not changed: see the roadmap.
  • Buttons: shape (rounded, circular, square; default rounded) on Button, ToggleButton, MenuButton, CompoundButton and SplitButton and the Toolbar buttons, with data-shape while it is set (closes buttons-1). ToggleButton and MenuButton are polymorphic (as), with the new types ToggleButtonOwnProps and MenuButtonOwnProps (closes buttons-11). CompoundButton's secondaryText takes a slot object and the new contentContainer slot object re-elements the text column; both merge over slotProps (closes buttons-7). SplitButton menuButtonLabel={null} names the menu half by the primary action through aria-labelledby (closes buttons-14). Link takes background (default, brand, inverted; new type LinkBackground) with data-background (closes buttons-18).
  • Textarea takes resize (none, vertical, horizontal, both; default vertical; type TextareaResize) and onValueChange(value) (closes form-basic-13 and form-basic-15).
  • Select takes icon (a custom chevron drawn in a wave-select__wrapper beside the select; false hides the chevron; new classes wave-select__wrapper and wave-select__icon) and onValueChange(value), which with multiple gets the first selected value (closes form-basic-27 and form-basic-28).
  • RadioGroup and RadioGroup.Item take labelPosition (after, below; type RadioLabelPosition); orientation="horizontal" with labelPosition="below" is Fluent's horizontal-stacked (closes form-basic-20).
  • Slider takes orientation="vertical" (closes form-basic-30).
  • TimePicker takes showSeconds (value HH:mm:ss), formatTime(value), parseTime(text) and freeform (false limits the selection to listed times and reports others as the new 'not-listed' reason of TimePickerInvalidReason, with the message labels.notListed), closing timepicker-2, timepicker-4 and timepicker-5. A switch over TimePickerInvalidReason that has no default needs the new case.
  • Table and DataGrid take size ('medium', 'small' or 'extra-small'; type TableSize): it tightens the padding of cells, header cells, sort buttons and selection cells and sizes the media of Table.CellLayout, rendered as data-size (closes table-1). Table.Row takes appearance ('none', 'brand' or 'neutral'; type TableRowAppearance), the fill of a selected DataGrid row for a row of your own state, rendered as data-appearance (closes tr-1).
  • DataGrid takes focusMode ('cell', 'row' or 'none'; type DataGridFocusMode; Fluent's row_unstable is 'row', its 'composite' has no counterpart), and useGridNavigation takes the same option (GridNavigationFocusMode), rendered as data-focus-mode (closes dg-4, except 'composite'). DataGrid.Cell and DataGrid.HeaderCell take focusMode ('cell', 'group' or 'none'; type DataGridCellFocusMode): 'none' takes the cell and its widgets out of the arrow-key navigation, 'group' makes the cell its own focus target (closes dgc-1).
  • Table takes virtualWindow and Table.Body takes count with a function child that returns the row at an index: only the rows in view render, between spacer rows (new class wave-table__spacer), with aria-rowcount, aria-rowindex and data-row-index. GridNavigationModel takes an optional footerRowCount.
  • Dialog: Dialog.Content mountNode, titleAs and Dialog.Title as (a heading level, div or span; type DialogTitleElement), Dialog.Footer position, startActions, fluid and stackOnNarrow, and lightDismiss on a non-modal Dialog and Drawer (a press outside or focus leaving closes it, with the reasons outside-press and focus-outside) (closes dialog-6, dialogtitle-1, dialogactions-1, dialogactions-2).
  • Popover: onOpenChange(open, details?) with reason and event (types PopoverOpenChangeReason, PopoverOpenChangeDetails), withArrow, trapFocus, inline, closeOnScroll, appearance (neutral, brand, inverted), size, and Popover.Content role (closes popover-4, popover-5, popover-6, popoversurface-1, popoversurface-2, popoversurface-4).
  • Tooltip: relationship="inaccessible", withArrow with slotProps.beak, positioning.target, and asChild (no wrapper element) (closes tooltip-2, tooltip-4, tooltip-5, tooltip-7; tooltip-6 is covered by slotProps.content). TeachingPopover: appearance and trapFocus (closes teaching-2, teaching-4; teaching-3 is covered by positioning).
  • Menu: onOpenChange(open, details?) reports details.reason and the DOM event (types MenuOpenChangeReason, MenuOpenChangeDetails), closeOnScroll, inline and mountNode (both inherited by submenus), and id on Menu.Popover, which the trigger's aria-controls follows (closes menu-4 and menu-5). Menu items take subText (a second line that is part of the name; slotProps.subText), secondaryContent and disabledFocusable (closes menu-7, menu-8, menu-9). A touch or pen long press (600 ms) opens an openOnContext menu in browsers that fire no contextmenu (iOS Safari).
  • Nav and NavDrawer take density="small" (data-density), multiple={false} (one open category) and details on onValueChange, onItemSelect and onOpenCategoriesChange (types NavDensity, NavSelectDetails, NavCategoryToggleDetails) (closes nav-1, nav-2, nav-4). useNavDrawerToggle wires a Hamburger outside a NavDrawer.
  • chartSeries and the tokens --wave-chart-1 to --wave-chart-10 (chart1 to chart10, bg-wave-chart-N): ten categorical colors made for charts, 3:1 on background and card and at least 7 apart (OKLab dE x100) for full color vision and under simulated protanopia, deuteranopia and tritanopia, tested as a set in light and dark; white in high contrast. chartPalette is unchanged.
  • motion on the listbox popups of Combobox, Dropdown, TagPicker and TimePicker (and ListboxSurface), on the DatePicker calendar, and on AvatarGroup and AvatarGroup.Popover: these popups fade and slide like Popover (popupMotion), and the listbox stays in its popup while it exits.
  • useVirtualWindow takes measureItems: rows of different heights, with itemSize as the estimate; rows are measured, and the scroll position is corrected when a measured size differs. VirtualWindow.itemProps?(index) and the type VirtualItemProps are new. List, Listbox, Combobox and Dropdown lay out from it; DataGrid and FlatTree keep fixed rows.
  • virtualWindow on TimePicker and TagPicker (array form), with the classes wave-time-picker__spacer and wave-tag-picker__spacer. List takes getItemLabel(index), typeahead over every item of a windowed list.
  • Listbox (multi-select) takes range keys: Shift+Arrow, Shift+Space, Ctrl+Shift+Home/End and Ctrl/Cmd+A, with useListbox onSelectRange, the type ListboxRangeDetails and labels.rangeAdded and labels.rangeRemoved.
  • Tag and InteractionTag take disabledFocusable, InteractionTag.Primary is polymorphic (type InteractionTagPrimaryOwnProps), and TagGroup takes selectionMode="single" and wires into a Field (label, hint, message, required).
  • TagPicker takes noPopover, secondaryAction (root and TagPicker.Control, class wave-tag-picker__secondary-action), disabled on options entries, and onOptionCreate(text, details?) (type TagPickerCreateDetails).
  • Spinner takes labelPosition, the sizes extra-tiny, tiny and huge (type SpinnerSize) and a ReactNode label; SpinnerContextProvider gives a default size. ProgressBar takes thickness and shape. Skeleton takes size presets, animation="wave" and appearance="translucent", and Skeleton.Group carries the same defaults (closes spinner-3 to spinner-5, progress-3, progress-4, skeleton-1 to skeleton-3, skeletonitem-1).
  • MessageBar takes shape and politeness. Toast takes appearance="inverted" and showDismissButton. Toaster takes offset, the centered positions top and bottom, inline and announce; dispatch options take position, politeness, priority, pauseOnHover, pauseOnWindowBlur, appearance, showDismissButton and onStatusChange; the controller gains updateToast, pauseToast and playToast, also on createToaster handles (closes messagebar-4, messagebar-5, toast-4, toaster-3, toaster-4, toaster-6 to toaster-9, toastctl-2 to toastctl-4).
  • announce() and useAnnounce take an options object with batchId, priority, deferWhileTyping and ariaNotify (closes announce-1, foundation-30, foundation-31, foundation-32).
  • WaveProvider classNames: app-wide classes by root class ('wave-button': 'rounded-full'), composed after a component's own classes and before its className. They merge key by key through nested providers ('' removes one, null clears all) and reach portaled overlays. Closes the deferred half of foundation-38 (the Phase 13 ruling R17).
  • The built-in glyphs are exported (28 *Icon components, IconProps, IconComponent), each with flipInRtl, and flipIconInRtl(icon) mirrors an icon of your own in right-to-left layouts (closes foundation-42, foundation-44; the Guides/Icons story lists them).
  • Hooks useTimeout, useAnimationFrame, useScrollbarWidth, useApplyScrollbarWidth, useObservedElement and useFocusObserved (closes foundation-29, foundation-41).
  • Accordion takes collapsible={false}, number item values (Accordion<V>), AccordionToggleDetails as the optional second argument of its change callbacks, size, expandIconPosition, and a Trigger expandIcon slot, icon slot (wave-accordion-trigger__icon) and inline (closes acc-1 to acc-5).
  • Card takes disabled, defaultSelected, onSelectionChange(selected, { event }), an optional event on onSelect, and focusMode (closes card-4 to card-6). TabList takes disabled (closes tab-4). Carousel onValueChange(index, details?) reports CarouselChangeDetails (reason, event; closes car-5). Drawer takes mountNode (closes drw-5).
  • Tree takes size, appearance, independentChecks, range selection in a checkbox tree (Ctrl+A, Shift+Space, Shift+Arrow), Tree.Item open, onOpenChange and actionsVisible, and onExpandedItemsChange reports TreeOpenChangeDetails (closes tree-3, tree-5, tree-6).
  • FlatTree navigationMode="treegrid": real WAI-ARIA treegrid roles (treegrid, row, gridcell) with aria-level, aria-posinset, aria-setsize, aria-rowindex and aria-rowcount, and the APG keyboard (rows and cells, Enter or F2 into a cell's controls, Escape back); it works with virtualWindow. renderCells(row) draws the further cells, slotProps.cell and the class wave-flat-tree-item__cell style them. The nested Tree keeps its tree roles (its navigationMode="treegrid" changes the keyboard only).
  • Option groups in data mode: ListboxItem.group and renderGroup(group, { index, size }) (type ListboxGroupRenderState) on Listbox, Combobox and Dropdown draw the items of a group under a header as a named role="group", and a virtualWindow windows them with their headers. Headers are no options, so the keys and typeahead skip them; useListbox onScrollToItem(index, target?) receives the window rows of an option when items have groups. Sticky headers are not supported.
  • NavDrawer takes mountNode, as Drawer does.

Changed

  • MenuButton always reports aria-expanded: "false" unless expanded, a Menu.Trigger or your own aria-expanded says otherwise (closes buttons-12).
  • ToggleButton rendered as an anchor with href and no role no longer renders aria-pressed (not allowed on a link) and warns in development.
  • RadioGroup.Item renders data-label-position, and Slider renders data-orientation, always (enumerated attributes, C-CLASS).
  • A Popover, Menu or other popup opened inside a Dialog or Drawer closes with it (the new reason parent-closed of DismissReason, parent for a Menu), also when the surface is kept mounted or still exiting.
  • Only one Tooltip is shown at a time; it hides while the document is hidden or its anchor is clipped, and never shows over a trigger whose popup is expanded.
  • An import of only Nav no longer includes Button's modules (about 7.5 KiB minified smaller): a Button glyph is recognised by a marker.
  • A surface opened from inside a hover-closing surface, with no trigger and no focused opener, closes along with it without moving focus.
  • The pickers' popup surfaces, the DatePicker calendar and the AvatarGroup popup render data-presence and data-state, and are inert while they exit.
  • The Guides/Charts stories use chartSeries, ink their patterns in background and hide the chart's own markup (aria-hidden) inside the role="img" frame; the guide documents both. The declaration roll-up is built with unplugin-dts instead of vite-plugin-dts (build tooling only).
  • An editable combobox (Combobox, TagPicker, TimePicker) clears the highlight and aria-activedescendant on ArrowLeft, ArrowRight, Home and End, as Fluent does.
  • A Skeleton with no height is 16px tall (it drew no box before); pass height or size to change it.
  • Toasts stay beside an overlay drawer while it slides out, and a toast's shadow stays visible while it fades out.
  • ToastController has three more members (updateToast, pauseToast, playToast): code that implements the type itself must add them.
  • WaveProvider tokens={null} also resets the theme-independent tokens (the ramps, font families, stacking layers, motion) that an enclosing provider overrode.
  • A popup with the default motion (Popover, Menu.Popover, the InfoButton note, the TeachingPopover surface, the DatePicker calendar, the AvatarGroup popup and the picker listbox popups) carries data-presence="exited" for the moment before it is placed, and an open-by-default popup reaches entering only after floating-ui has placed it. The class string of popupMotion grew by six exited classes.
  • The development warning for OptionGroup children beside a virtualWindow points to group and renderGroup.
  • Smaller bundles: the provider's token reset table and useVirtualWindow are leaner (WaveProvider with Dialog -748 B minified, useVirtualWindow -728 B minified and -334 B gzip).

Fixed

  • PresenceBadge no longer throws for a status that is neither a member of PresenceStatus nor one of the removed 0.x names (a misspelled name, different casing, null from server data): it draws 'offline' and, in development, warns once. A throw there unmounted the whole Persona or Avatar around it. A throw from the development warning itself (a console that throws) now surfaces instead of being swallowed with the missing-process case.
  • useSelection clears the details of a change in a finally, so a throw from the update or from onSelectedItemsChange leaves nothing for a later change to report.
  • The rows of a <tfoot> in a windowed DataGrid get aria-rowindex, are counted in aria-rowcount and are reached by the arrow keys, PageUp/PageDown and Ctrl+End.
  • A column resize drag whose end never reaches the handle (WebKit, right to left, a table wider than its wrapper) now ends at a pointerup or pointercancel on the document, or at the next press of the same pointer, instead of leaving data-resizing and data-dragging set.
  • A Tooltip keeps the content it showed while it fades out, and backdropMotion={null} on a non-modal Dialog, Drawer or inline drawer no longer logs the backdrop-ignored warning.
  • createBrandTokens' ramp check and WaveProvider's tokens warnings are no longer skipped when there is no process global (an unbundled import in a browser); production bundles still drop them.
  • A Dropdown opened with a mouse click is focused on pointerdown, so its keys work in WebKit. Combobox, Dropdown, DatePicker, TimePicker and SearchBox move focus to the control when the clear button disappears while focused.
  • A <Fragment ref> around a trigger child, a Tooltip target, a Presence child or an asChild Overflow.Item receives its ref.
  • A selection changed while the TabList line still slides starts the next slide from the line's visible box. A percentage max-height on an Accordion region, a Tree group or a Nav list no longer resolves against the collapsing track. The check cascade of Tree and FlatTree no longer overflows the stack on very deep trees.
  • A popup whose placement flips now enters sliding away from its anchor, not toward it: the surface starts its enter on the side floating-ui resolved (Popover, Menu.Popover, the InfoButton note, the TeachingPopover surface, the DatePicker calendar, the AvatarGroup popup, and the picker listbox popups). Popups with a custom motion string, motion={null} or WaveProvider motion="none" are unchanged.
  • Dialog.Footer stackOnNarrow stacks the actions at a viewport of exactly 480px, as documented (Tailwind's max-[480px] stopped at 479px).

Documentation

  • Input's slotProps.root JSDoc says that, where the root is the <input> itself, a tab stop or roving marker goes through slotProps.input.

Size

Against 1.0.0 as published on npm, measured with this release's build tools (verify-dist's measureImport: a minified production Vite build of an entry that imports the names from dist/index.mjs, bare imports external, gzip by node:zlib; the stylesheets as built, gzip at level 9). Sizes are in bytes:

Import 1.0.0 1.1.0 Growth
dist/styles.css 110,691 (16,555 gzip) 123,260 (18,189 gzip) +12,569 (+1,634 gzip)
dist/components.css (internal) 92,638 (13,299 gzip) 104,544 (14,730 gzip) +11,906 (+1,431 gzip)
dist/utilities.css 62,857 (6,786 gzip) 65,869 (7,138 gzip) +3,012 (+352 gzip)
dist/preflight.css 3,453 (1,272 gzip) 3,453 (1,272 gzip) 0
An import of only Button 12,037 (4,033 gzip) 12,425 (4,205 gzip) +388 (+172 gzip)
An import of only MessageBar 30,070 (10,222 gzip) 30,860 (10,553 gzip) +790 (+331 gzip)
An import of only Tree 51,190 (17,427 gzip) 55,392 (18,773 gzip) +4,202 (+1,346 gzip)
An import of only Dialog 73,934 (24,667 gzip) 75,973 (25,387 gzip) +2,039 (+720 gzip)
An import of WaveProvider and Dialog 76,487 (25,640 gzip) 80,310 (27,319 gzip) +3,823 (+1,679 gzip)
An import of only DataGrid 72,123 (24,325 gzip) 72,132 (24,521 gzip) +9 (+196 gzip)
An import of usePresence and Presence 5,453 (2,341 gzip) 5,648 (2,407 gzip) +195 (+66 gzip)
An import of only useVirtualWindow 3,868 (1,817 gzip) 6,933 (2,783 gzip) +3,065 (+966 gzip)
An import of only createBrandTokens 3,630 (1,956 gzip) 3,630 (1,956 gzip) 0
An import of only waveTokens 3,071 (969 gzip) 3,142 (994 gzip) +71 (+25 gzip)
An import of only Table 33,005 (11,100 gzip) 33,949 (11,897 gzip) +944 (+797 gzip)
An import of only cn 1,062 (532 gzip) 1,062 (532 gzip) 0
An import of only mergeSlotProps 2,782 (1,344 gzip) 2,782 (1,344 gzip) 0
An import of only getNativeElementProps 2,604 (1,214 gzip) 2,604 (1,214 gzip) 0
The npm package 2,415,234 (537 files) 2,678,799 (581 files) +263,565
  • Every component pays for WaveProvider classNames (about 280 bytes in Button: the context read each component makes) and the stylesheets grow with the new utilities. DataGrid stays at its 1.0 size (+9 bytes) although it gained the row and cell focus modes, footer rows and the size variants.
  • useVirtualWindow grows by the measuring path (measureItems), which a fixed-size-only import cannot leave out; Tree by range selection, independent checks, open control and iterative cascades; Dialog by light dismiss, the title element, footer options and mountNode.
  • Budgets: verify-dist gates the ten imports from Button to waveTokens at their size measured at this release plus 512 bytes (192 gzip), and prints each against 0.18.1. Development warnings still ship in production bundles (lib/dev is a function call a minifier cannot fold); gating them behind the literal process.env.NODE_ENV check would save several KB in DataGrid, Dialog and Tree and is left for a later release.

Known limits

  • Real-browser checks of this release ran in Chromium (the popup motion, the Table and DataGrid modes, the Toaster, Tree, Accordion, Card, Dialog, Popover, Tooltip, Menu and Nav additions, and the charts in right-to-left layouts), with the vertical Slider, the DataGrid resize drag, the Combobox popup motion and the Dialog footer also in Firefox and WebKit. Not covered: real touch devices and the Android long-press contextmenu path, forced colors beyond the Tree row actions, the dark theme for the popup, Tree and Menu areas, the flipped enter of Menu.Popover submenus, InfoButton, TeachingPopover and the picker popups in Firefox, WebKit and right-to-left layouts, and the treegrid with a screen reader.
  • Still open (docs/ROADMAP.md §8.1a): the arrow keys between toasts (no screen-reader pattern), real treegrid roles in the nested Tree (use FlatTree navigationMode="treegrid"), sticky headers for option groups, and TagPicker option groups; DataGrid focusMode="row" is ignored with a virtualWindow (a development warning says so), and focusMode="composite" has no counterpart.

1.0.0

Released

The first stable release and the API freeze: Phase 14 of the roadmap. From 1.0.0 on, semantic versioning covers the exports of the package entry, the documented props and their data-* state attributes, the stable wave-* classes of the class-name registry, the --wave-* tokens, the namespaced theme keys and the CSS entries of the exports map; Wave's own wave: utility classes and the modules the entry does not export are internal. 1.0 ends the 0.x compromises at once. It makes every change 0.18 announced: everything 0.x deprecated is removed (P14-02), Image.alt is required (P14-03), Badge and CounterBadge color="important" is Fluent's neutral high-emphasis color (P14-05), a TimePicker without format follows the hour cycle of the browser's language (P14-06), and the details argument of every change callback is required. And it makes four breaks that no 0.x release announced, chosen after 0.18 shipped and without a 0.19 to announce them (the roadmap's announce-first rule is waived for them; Upgrading to 1.0 and a migration codemod stand in for the notice): every class the components draw carries the prefix wave: and an app's Tailwind build gets Wave's theme keys under wave (bg-wave-primary), so nothing of Wave's styling collides with an app's any more (P14-01); ref reaches the focusable element of twelve form controls, whose wrapper is the new slotProps.root (P14-04, reversing 0.18's decision to keep ref on the root); the package is ES modules only; and the 0.4 ramp names --brand-N and --grey-N no longer re-theme Wave. It closes the four gaps of Phase 14: foundation-9, foundation-10, badge-1 and timepicker-3. Nothing is added but what these changes need. Read "Upgrading from 0.18" before upgrading.

Upgrading from 0.18

Upgrading to 1.0 lists every change with its old and new form and how to find the uses in an app. In short:

  1. Upgrade to 0.18.1 first, run a development build and replace each use it warns about (every replacement works in 0.18), then upgrade to 1.0 and run the type check: removed props, values, call forms and exports, the ref types of the twelve controls and the required details arguments are type errors. 1.0 logs none of the 0.18 notices, and JavaScript that no type checker reads gets no message for a removed prop (the guide's "Untyped code" says what it gets).
  2. ES modules only. exports["."] is { types: index.d.ts, default: index.mjs }, main is ./dist/index.mjs and module is gone; no .cjs or index.d.cts ships. require() of the package works on Node.js 22.12 and later (the engines floor, unchanged) and returns the same module as import. A TypeScript file compiled as CommonJS needs module node20 or nodenext (node16 reports TS1479), and Jest in CommonJS mode must transform the package or run in its ES modules mode.
  3. Namespaced utilities. Wave's classes are wave:flex, wave:bg-primary; your Tailwind build gets Wave's colors, type ramp and shadows as bg-wave-primary, text-wave-body-1 and shadow-wave-4, and the 0.x names (bg-primary, text-foreground, border-border, text-body-1, shadow-4, var(--color-primary)) generate nothing unless a theme of yours defines them. The migration codemod rewrites your own classes, @apply lists and theme variable uses: node node_modules/@mortenbrudvik/waveui/codemod/migrate-1.0.mjs --dry-run "src/**/*.{ts,tsx,css}" prints every change, and without --dry-run it writes them. It never rewrites the 17 names a stock shadcn/ui theme defines too (bg-primary, text-foreground, border-border, …), nor the names your own theme declares, without --include-shared: an app without shadcn/ui and without a theme of its own passes it. It cannot find selectors of Wave's 0.x classes (.bg-primary, querySelector('.flex'): use the stable wave-* classes or data-* attributes), reveals against Wave's row groups (group-hover/table-row:: the rows carry wave:group/table-row), or the setup changes: without Tailwind, a Tailwind class in className (p-2) still removes Wave's conflicting class but nothing defines it, so use your own CSS or the new ./utilities; with ./tailwind, your @theme no longer restyles the components (they come precompiled, every theme value inlined: restyle them through the --wave-* tokens), your build no longer generates the classes they use, and any utility and unlayered rule of yours wins over Wave's classes, so a bare background class of yours also covers a component's hover, pressed, selected and disabled backgrounds.
  4. ref reaches the control of Checkbox, Switch, SearchBox, SpinButton, ColorSlider, AlphaSlider, ColorPicker.HexField, Combobox, Dropdown, TimePicker, DatePicker and TagPicker (its trigger, TagPicker.Input or TagPicker.Button), which lose controlRef; their root is slotProps.root.ref. A ref object typed for the root no longer compiles, but a callback ref or state setter typed for a <div> still does on the seven whose control is an <input> (SearchBox, SpinButton, ColorSlider, AlphaSlider, Combobox, TimePicker, DatePicker): look for those by hand. Popover.Trigger, Menu.Trigger, TeachingPopover.Trigger, Dialog.Trigger, Drawer.Trigger, Overflow.Item asChild and Presence around one of them now reach its control.
  5. Removed: every prop, value, call form, export, class, stylesheet and rule that 0.x deprecated (Removed), with no alias, and the 0.4 ramp names as overrides (override --wave-brand-N and --wave-grey-N).
  6. Required: the details argument of the change callbacks (code that calls such a prop itself passes it) and Image.alt (Changed, Required arguments and props).
  7. Defaults and meanings: color="important" on Badge and CounterBadge is the neutral high-emphasis look (severe keeps the orange); TeachingPopover's Done calls onFinish only, never onDismiss; a TimePicker without format follows the browser's language after mounting (12-hour on the server and in the hydrating render): pass format for a fixed hour cycle.

Added

  • slotProps.root on the twelve controls whose ref moved and on RadioGroup.Item (whose <label> no ref reached), as on Input since 0.18: the root element's ref, classes, style, attributes and handlers. Your classes and style come after the component's own className and style, your handlers run first (preventDefault() skips the component's own root handlers), and the component keeps its enumerated data-* attributes, its own root props and its hidden state (hidden, inert, aria-hidden at the component's own values); a <label> root (Checkbox, Switch, RadioGroup.Item, ColorPicker.HexField) takes no htmlFor from the part, which would send its clicks to another element. Checkbox, Switch and the radio do not call your root onClick while disabled; the other roots pass no click to their control and call it in every state. A click on a label root's text reaches its onClick twice, as on any <label> (the text, then the click the label passes to the control).
  • @mortenbrudvik/waveui/utilities (also ./utilities.css): the namespaced token utilities for apps without Tailwind: bg-, text-, border-, ring-, fill- and stroke- with each of the 144 color tokens, the type ramp (text-wave-body-1), the shadows (shadow-wave-4), the font families and the animations, 889 classes without variants and without spacing or layout utilities. Unlayered like ./styles, so its classes beat the zero-specificity base styles of ./styles inside the provider; link it after ./styles and before your own CSS.
  • The namespaced theme keys in ./tailwind and ./tokens (--color-wave-*, --text-wave-*, --shadow-wave-*, with the font families, durations, curves and animations that carried wave already), for an app's own classes: bg-wave-primary, text-wave-body-1, shadow-wave-4, tw:bg-wave-primary in a prefixed build.
  • The migration codemod codemod/migrate-1.0.mjs, shipped in the package (Node.js built-ins only): it rewrites an app's utilities of Wave's former theme names (31 color utilities with 144 color names, the type ramp, the shadow levels) with their variants, modifiers and important marks, @apply lists and theme variable uses (var(--color-primary), theme(--text-body-1--line-height)), in scripts, CSS, HTML, Vue, Svelte and MDX, never a comment or a declaration; --dry-run writes nothing, --include-shared also rewrites the 17 names shared with a stock shadcn/ui theme and the names the scanned files declare as their own theme keys; a second run changes nothing.
  • TagPicker.Button is reached by TagPicker's ref when it renders in place of TagPicker.Input.
  • Development warnings (keys): MessageBar:dismiss-button-slot-object, SearchBox:dismiss-button-slot-object and Tag:dismissIcon-button-slot-object, when a dismiss or clear slot object's as is a button, which is unwrapped (see Changed); Image:alt-missing ("Image: `alt` is required. …") replaces 0.18's Image:alt, for JavaScript that leaves alt out.
  • Documentation: Upgrading to 1.0 is final. The README gains the setup matrix of Quick start, "ES modules only" under Installation, "Custom Tailwind setups", "Namespaced names", the root part and the components that read a child's ref, and "Upgrading to 1.0" in place of "1.0 notices"; the guide's Pattern 5 is "cn() and wcn()" (#pattern-5-cn-and-wcn); the testing guide gains "Wave's utility classes in tests".

Changed

Styling: namespaced utilities

  • Every class the components draw carries Tailwind's prefix wave: (wave:flex, wave:bg-primary, wave:not-disabled:not-aria-disabled:hover:bg-primary-hover, wave:wave-rtl:-scale-x-100, the group markers wave:group/row, wave:group/nav-row, wave:group/table-row and wave:group/grid), and so do the public recipes focusRing, focusRingInset, inputFocus and inputFocusWithin. dist/styles.css is compiled with prefix(wave) against an internal, unnamespaced theme (src/styles/theme.css, @theme inline reference, so no theme variable is emitted), and holds the same rules as before with the prefix: stripped of wave\:, its classes, rule bodies and order equal the sheet built without the prefix. The classes are internal; the stable wave-* classes, the data-* attributes and the tokens are the styling hooks.
  • ./tailwind puts Wave in cascade layers: @layer theme, base, components, utilities;, the tokens and the namespaced keys in theme, Wave's scoped base styles in base, the components' precompiled utilities in components (from dist/components.css, an internal file: dist/styles.css without its token and base rules, which only this entry imports), and the wave-rtl: variant; it has no @source (0.x scanned dist and generated the components' classes in the app's build). So an app's @theme no longer restyles the components: in 0.x the app's --spacing, --radius-*, font weights and line heights, and the unnamespaced keys Wave shared with it (--color-primary, --text-body-1, an --shadow-N of the app's, which the 0.17 notes said keeps its value), reached them; dist/components.css inlines every theme value, and the --wave-* tokens restyle Wave. Nor does the app's build generate the classes the components use any more, so a class of the app's that worked only because Wave's dist held it is no longer generated. Any utility and any unlayered rule of the app wins over Wave's classes, in either import order; an app @layer components class competes with them by specificity, then source order; an app with a prefixed build (prefix(tw)) imports it as well, where 0.x needed ./styles in a layer.
  • ./tokens declares only the namespaced theme keys for apps (0.x declared --color-primary, --text-body-1, --shadow-4, …). A custom Tailwind setup built on ./tokens and ./variants.css no longer compiles the components (its build cannot generate their wave: classes): they come from ./styles, in a layer of the app's, as the README's "Custom Tailwind setups" shows.
  • The public cn is the components' merge (wcn, module-only, with Wave's prefix): a class and its wave: twin are one utility, so cn(focusRing, 'focus-visible:outline-offset-0') drops the recipe's offset, and an app's cn('p-4', 'p-2') merges as before. It knows Wave's scales under the 0.x and the namespaced names, so cn('text-body-1', 'text-foreground') keeps both as in 0.18, and so does cn('text-wave-body-1', 'text-wave-foreground'). A consumer's unprefixed class still replaces a component's conflicting wave: class of the same variant, as in 0.18 (the conflictingClass contract of testSystemProps is unchanged).
  • Without Tailwind, a Tailwind class passed in className (p-2) still removes the component's conflicting class but has no CSS: ./styles defines only Wave's own wave: classes, where 0.18.1's sheet happened to define the generic utilities the components used.
  • Storybook compiles two sheets: .storybook/preview.css, the library's styles.css, and .storybook/stories.css, the stories' own classes as an app's unprefixed build compiles them (one Tailwind build has one prefix). The stories use the namespaced keys (bg-wave-primary), migrated by the codemod.

ref placement

  • ref reaches the focusable element of a form control whose root wraps one (Phase 14 spec R5, which supersedes the Phase 13 spec's R19): the role="checkbox" and role="switch" buttons of Checkbox and Switch, the inputs of SearchBox (type="search"), SpinButton (role="spinbutton"), ColorSlider and AlphaSlider (range), ColorPicker.HexField, Combobox and TimePicker (role="combobox") and DatePicker (text), Dropdown's <button role="combobox">, and TagPicker's trigger, whichever renders (ref is Ref<HTMLInputElement | HTMLButtonElement>). controlRef is removed from the twelve and stays on ColorArea, Table.SelectionCell and DataGrid.SelectionCell; Input and RadioGroup.Item keep their ref. The roots of Combobox, Dropdown, TimePicker and TagPicker keep the picker's own ref beside slotProps.root.ref, so a press inside them still keeps the open list open.
  • What reads a child's ref follows it: Popover.Trigger, Menu.Trigger and TeachingPopover.Trigger place their surface against the control and return focus to it, and for the first two a press on the rest of the root (a Switch's label text) is outside the trigger, so it closes an open popover or menu (a TeachingPopover does not close on a press outside); their state ARIA stays on the root, as in 0.18. Dialog.Trigger and Drawer.Trigger take the control's element for the focus return (Escape returns focus to the control). Overflow.Item asChild measures the control, and Presence waits for the control's animations while its attributes reach the root. Tooltip, which places its surface against its own wrapper, is unchanged.

Slots

  • The dismiss and clear slots of MessageBar (dismiss), SearchBox (dismiss) and Tag (dismissIcon) take Slot<'span'>: a <button> or Button element is still merged into the built-in button, a slot object is always the content (its attributes, className, style, ref and handlers stay on the content element), and an object whose as is 'button' or Wave's Button is unwrapped like the glyph slots (its children render, its props are dropped, with a development warning). The close slots of Dialog, Drawer, NavDrawer and TeachingPopover are unchanged.

Defaults and meanings

  • Badge and CounterBadge color="important" (announced in 0.6): Fluent's neutral high-emphasis color, the page's text color as the fill with the page color as its text (near black with white text in the light theme, white with dark text in the dark one); the tint fills with the secondary text color, the outline draws the accessible neutral stroke, and a CounterBadge's dot takes the filled look. color="severe" keeps the orange that important drew through 0.x. No token was added: the pairs are the existing foreground and muted-foreground on background.
  • TeachingPopover's Done (announced in 0.14) calls onFinish only, not onFinish and then onDismiss; Close, Escape and the Trigger call onDismiss as before.
  • TimePicker's format (announced in 0.18): without format, the hour cycle of navigator.language (h23 and h24 give 24-hour times, h11 and h12 12-hour ones; a language the browser rejects gives 12-hour). The server render and the render that hydrates it show 12-hour times, so hydration matches, and the picker switches right after mounting; a picker mounted in the browser without server HTML follows the language from its first render. An explicit format wins and reads nothing. TimePicker has no hourCycle or locale prop.

Required arguments and props

  • The details argument is required in Dialog, Drawer and NavDrawer onOpenChange (announced in 0.6 and 0.11), Menu and Toolbar onCheckedValuesChange (0.7), Tree onCheckedItemsChange (0.8), Calendar onValueChange and useListbox's onOpenChange and onSelect (0.10), Overflow onOverflowChange, DataGrid onSortChange and onSelectedItemsChange and Table.SelectionCell onCheckedChange (0.14), and AvatarGroup onOpenChange, DataGrid's and useTableColumnSizing's onColumnWidthsChange, Table.ResizeHandle onResize, useTableSort's onSortChange, the onSelectedItemsChange of useSelection and useTableSelection (whose options extend useSelection's) and useFlatTree's onCheckedItemsChange (0.18). A handler may still ignore it; code that calls such a prop itself passes it (TS2554 otherwise). The paths that passed none in 0.x pass one: useTableSort's setColumnSort and toggleColumnSort without an event report new Event('sort'), useFlatTree's setChecked without an event new Event('check'), and Table.SelectionCell's form reset the form's reset event. The onResize(width, details?) of the bindings useTableColumnSizing hands to a resize handle stays optional (an input a handle calls).
  • Image.alt is required (announced in 0.18): ImageProps.alt: string (alt="" for a decorative image), and StrictImageProps is the same type. JavaScript that leaves it out renders no alt and warns once in development (Image:alt-missing).
  • Other required types: Nav.Category's label (its text children no longer label it); a DataGrid without items, sort or defaultSort takes no onSortChange (pass defaultSort={null} to hear an uncontrolled grid's sort); in single mode Accordion's openItems, defaultOpenItems and onOpenItemsChange are never. ListSelectionMode narrows to 'single' | 'multiple'.

Package

  • ES modules only (Phase 14 spec R4): one ES output (lib.formats: ['es']), exports["."] with types and default, main ./dist/index.mjs, no module field; dist holds .mjs modules, their maps, index.d.ts and the stylesheets. lib/globalRegistry still keeps one set of singletons for two copies of the package (duplicate installs or versions, bundler duplicates, hot reload, micro-frontends).
  • tailwind-merge is pinned exactly (3.7.0, was ^3.7.0): the components' merge parses classes through its experimentalParseClassName, and a test fails if the parse changes.
  • files gains codemod (without its tests); the exports map gains ./utilities and ./utilities.css and loses ./legacy-tokens.css.

Dev gates

  • verify-dist: checkNoCommonJs (no .cjs, .cjs.map or .d.cts in dist) and checkRequireEsm (the entry loads through require() in a child process and exposes the names of import()), in place of the CommonJS parity checks; RECORDED_IMPORTS_1_0, ten records (the six component imports of 0.18, the presence core, the window, createBrandTokens and waveTokens), each with its 0.18.1 size (BASELINES_0_18_1), its size measured at the flip and its budget, that size plus BUDGET_MARGIN_1_0 (512 bytes minified, 192 gzip), in place of RECORDED_IMPORTS, RECORDED_IMPORTS_0_17, RECORDED_IMPORTS_0_18, BASELINES_0_17_1, BUDGET_MARGIN_0_18 and the presence, window, DataGrid, brand and token budgets; TEST_ONLY_MODULES is lib/slotParts; MODULE_ONLY_NAMES gains wcn, createWcn and UTILITY_PREFIX.
  • build-css: the compile check runs first (scripts/prefix-codemod.mjs --check over src/components and src/lib: no unprefixed utility word in a class context, and elsewhere only the words scripts/prefix-allowlist.json names for a file); every class of styles.css but the style entries' own carries the prefix, and no declared custom property is a theme variable or refers to itself; components.css equals styles.css without the token and base rules, node for node; utilities.css holds exactly the generated classes, unlayered, and reads no variable that styles.css does not declare; no rule selects .dark or .high-contrast.
  • pack-smoke: smoke.cjs is the require() consumer; the plain fixture checks two type programs (.mts under module node16, .cts under node20), ./utilities and the shipped codemod; the Tailwind fixture builds the layered ./tailwind, a custom ./tokens setup and a prefix(tw) app; an optional floor step runs smoke.cjs on a Node.js 22.12 binary named by WAVE_NODE_FLOOR. check:package runs attw's esm-only profile. verify-storybook checks both Storybook sheets.
  • Tests: the 1.0 inventory (src/lib/deprecations.ts) and its test retired once every row was done; src/__tests__/removedApi.test.ts keeps the removed exports, types, stylesheets, theme classes, 0.4 variable names and TagPicker classes absent and fails if a library module names a removed export. testSystemProps takes ref: 'control' (with control.tag), testRootPartRef checks slotProps.root.ref, and UNKNOWN_PROP gives React's unknown-prop error. The tests assert Wave's classes with the prefix (toHaveClass('wave:bg-primary')); repository tools scripts/prefix-codemod.mjs and scripts/prefix-tests-codemod.mjs made the change.

Deprecated

  • Nothing. warnDeprecated and resolveDeprecatedProp have no caller in 1.0; they stay for a rename in a 1.x minor, which keeps the old name as a deprecated alias until 2.0.

Removed

Every row of the 1.0 inventory of 0.18 is done (84 rows: the 61 removals below, the 4 default changes and 18 required arguments and props under Changed, and the ref decision, reversed), and no alias is left. Each line names the release that announced it.

  • The 0.4 names renamed in 0.5 (announced in 0.5): Checkbox and Switch onChange(checked) (use onCheckedChange); the onChange(value) of RadioGroup, Rating, SearchBox, SpinButton, ColorPicker, SwatchPicker, TagPicker, TimePicker and DatePicker (use onValueChange); Combobox and Dropdown onOptionSelect; TabList selectedValue, defaultSelectedValue, vertical and onTabSelect; Nav selectedValue, defaultSelectedValue and onNavItemSelect; a Nav.Category labelled by its text children; TeachingPopover currentStep and defaultCurrentStep; List selectionMode="multi"; DataGrid selectedKeys, defaultSelectedKeys, onSelectionChange, sortColumn, sortDirection, defaultSortColumn and defaultSortDirection; Table.Head and Table.HeadCell (with the flat TableHead and TableHeadCell and the types TableHeadProps and TableHeadCellProps); Stack direction; Skeleton variant; a numeric Text weight; Link variant (and the type LinkVariant); Tooltip variant; Accordion's single-mode openItems, defaultOpenItems and onOpenItemsChange. The 0.5 names replace them.
  • The button-object form of the dismiss and clear slots (announced in 0.5): MessageBar.dismiss, SearchBox.dismiss and Tag.dismissIcon with button props; pass icon content and handle the press in onDismiss or onClear (see Changed, Slots for what a slot object does now).
  • legacy-tokens.css (announced in 0.5): the file and the export ./legacy-tokens.css, the 0.4 variable names.
  • The dark and high-contrast theme classes (announced in 0.5): WaveProvider and the portal wrappers carry only wave-dark and wave-high-contrast (getThemeClassName returns one class), and Wave's styles select only those.
  • animations.css (announced in 0.18): src/styles/animations.css, empty since 0.5.
  • The 0.4 ramp names as overrides (not announced): through 0.18 each ramp stop read its 0.4 name as a fallback (--wave-brand-80: var(--brand-80, #0f6cbd)), so an app's --brand-80 or --grey-38 still re-themed Wave; each stop is now its own value, and such an override stops applying without a message. Override --wave-brand-N and --wave-grey-N, which work since 0.5.
  • Tooltip delay (announced in 0.7): use openDelay.
  • A numeric size on Input, Select and Slider (announced in 0.9): use htmlSize on Input and Select; on Slider it had no effect.
  • InfoLabel label (announced in 0.9): use children.
  • wave-tag-picker__control and wave-tag-picker__group (announced in 0.11), with tagPickerClassNames.control and .group: use wave-tag-picker-control and wave-tag-picker-group.
  • PresenceBadge 'dnd' and 'oof' (announced in 0.13), with the type DeprecatedPresenceStatus: use 'do-not-disturb' and 'out-of-office'. The type no longer takes the old names; at run time they still draw 'do-not-disturb' and 'out-of-office' (the look, data-status and name of the new status), and a development build warns once per old name. The fallback is a bridge for server data and untyped code, which no type check reads, and may be removed in 2.0: map the old values before rendering (status === 'dnd' ? 'do-not-disturb' : …). Another status outside the union throws a TypeError while the badge renders, as in 0.18.
  • DataGridColumn.id (announced in 0.14): use columnId.
  • useRovingTabIndex(containerRef, options) (announced in 0.18): call useRovingTabIndex(options) and spread its containerProps on the container.
  • DataGrid's positional onSortChange(columnId, direction) (announced in 0.18), with the type DataGridLegacySortProps: give the grid items, sort or defaultSort and read onSortChange(sort, details).
  • The [presence= className rule (announced in 0.18): a className with presence variants no longer turns the default motion of Menu.Popover, Dialog.Content, Drawer and NavDrawer off; it is a plain class list, and motion replaces the default.
  • controlRef of Checkbox, Switch, SearchBox, SpinButton, ColorSlider, AlphaSlider, ColorPicker.HexField, Combobox, Dropdown, TimePicker, DatePicker and TagPicker (not announced): ref reaches the control.
  • The CommonJS build (not announced): dist/index.cjs, every .cjs module and map, index.d.cts, the require condition and the module field.
  • The development warnings of the removed forms: every deprecated:… key of warnDeprecated and resolveDeprecatedProp, MessageBar:dismiss-button-object and SearchBox:dismiss-button-object (the button-object form; an object whose as is a button now warns under the …-slot-object keys of Added), Badge:color:important, CounterBadge:color:important, Menu.Popover:legacy-motion, Dialog.Content:legacy-motion, Drawer:legacy-motion, NavDrawer:legacy-motion, Image:alt (now Image:alt-missing), Slider:size-number, Accordion:single-multiple-open, DataGrid:mixed-sort, DataGrid:items-deprecated-sort, DataGrid:sortColumn-without-sortDirection and DataGrid:sortDirection-without-sortColumn.
  • From the entry: the values TableHead and TableHeadCell and the types TableHeadProps, TableHeadCellProps, DataGridLegacySortProps, LinkVariant and DeprecatedPresenceStatus; nothing else.

Fixed

  • Overflow keeps an item's last visible size while the item is hidden from outside it. It kept the size only while the measured element itself carried the hidden marker, and read 0 otherwise (an element inside display: none measures 0). Now it also keeps it while an element around the measured one carries the marker: a control in Overflow.Item asChild, whose root carries it (see ref placement), can stay hidden instead of measuring 0, fitting and being shown again in a loop, and an Overflow nested in a hidden item keeps its items' sizes instead of reading them as 0 wide.
  • The README's custom overlays sample, which did not type-check in 0.18.1, types its props and refs.
  • A click on a Checkbox's glyph toggles it once in Firefox and WebKit (present in 0.18.1). A click on the check or the mixed glyph of a checked Checkbox toggled it, the glyph left the box, and those engines, finding the click's target gone, had the label pass the same click to the box again, which toggled it back: a checked Checkbox could not be unchecked by a click on the centre of its check, and inside Popover.Trigger or Menu.Trigger it opened the surface and closed it again. The glyphs now take no pointer events (a class at the start of their class list), so the click's target is the box, which stays. Chromium was not affected, nor were Switch and the native checkboxes.

Size

Against 0.18.1 as published on npm, measured with this release's build tools (verify-dist's measureImport: a minified production Vite build of an entry that imports the names from dist/index.mjs, bare imports external, gzip by node:zlib; the stylesheets as built, gzip at level 9). Sizes are in bytes:

Import 0.18.1 1.0.0 Growth
dist/styles.css 104,654 (16,499 gzip) 110,691 (16,555 gzip) +6,037 (+56 gzip)
dist/components.css (new, internal) — 92,638 (13,299 gzip)
dist/utilities.css (new) — 62,857 (6,786 gzip)
dist/preflight.css 3,453 (1,272 gzip) 3,453 (1,272 gzip) 0
An import of only Button 11,079 (3,865 gzip) 12,037 (4,033 gzip) +958 (+168 gzip)
An import of only MessageBar 29,221 (10,201 gzip) 30,070 (10,222 gzip) +849 (+21 gzip)
An import of only Tree 50,383 (17,271 gzip) 51,190 (17,427 gzip) +807 (+156 gzip)
An import of only Dialog 72,599 (24,466 gzip) 73,934 (24,667 gzip) +1,335 (+201 gzip)
An import of WaveProvider and Dialog 75,147 (25,458 gzip) 76,487 (25,640 gzip) +1,340 (+182 gzip)
An import of only DataGrid 73,306 (24,926 gzip) 72,123 (24,325 gzip) −1,183 (−601 gzip)
An import of usePresence and Presence 5,453 (2,341 gzip) 5,453 (2,341 gzip) 0
An import of only useVirtualWindow 3,868 (1,817 gzip) 3,868 (1,817 gzip) 0
An import of only createBrandTokens 3,630 (1,956 gzip) 3,630 (1,956 gzip) 0
An import of only waveTokens 3,071 (969 gzip) 3,071 (969 gzip) 0
An import of only Table 31,658 (11,015 gzip) 33,005 (11,100 gzip) +1,347 (+85 gzip)
An import of only cn 806 (383 gzip) 1,062 (532 gzip) +256 (+149 gzip)
An import of only mergeSlotProps 2,558 (1,224 gzip) 2,782 (1,344 gzip) +224 (+120 gzip)
An import of only getNativeElementProps 2,604 (1,214 gzip) 2,604 (1,214 gzip) 0
The npm package 4,092,458 (1,055 files; 15,878,351 unpacked) 2,415,234 (537 files; 8,561,563 unpacked) −1,677,224
  • The prefix costs about 5 bytes per class word before gzip, and the components' merge holds the prefix and its parse function (about 220 bytes); gzip absorbs most of it. The removals pay for part of it (about 430 bytes of MessageBar, about 200 of Tree and of Dialog), and in DataGrid they outweigh it: its 0.x selection, sort and column aliases and its positional callback form are gone. The presence core, the window, createBrandTokens and waveTokens hold no class string and no merge. The public cn holds the prefix-aware merge of the components now. A control with a new root part pays its merge (Checkbox-only grows from 18,527 to 19,002 bytes, TagPicker-only from 120,133 to 122,230, the prefix included).
  • dist/styles.css grows by the prefix (about 6 bytes per selector; 6,642 bytes over the sheet built without it), less what the removals took out (605 bytes: the .dark and .high-contrast selectors among them); gzip absorbs nearly all of it.
  • The package halves: dist holds 524 files (1,043 in 0.18.1), without the CommonJS build.
  • Budgets: verify-dist gates the ten imports from Button to waveTokens at their size measured at the flip plus 512 bytes (192 gzip), and prints each against 0.18.1; Table, cn and the helpers are measured, not gated.

Known limits

  • The custom Tailwind setup that imports ./styles into a layer of the app's (README, "Custom Tailwind setups") follows the cascade rules and was checked once, in Chromium; pack-smoke's custom setup checks only that the app's build holds no component class.
  • The real-browser passes of the phase ran in Chromium, Firefox and WebKit. The first covered the stylesheet setups, a consumer's overrides, right to left, motion, forced colors and the app's base styles, and found ./utilities losing to the base styles of ./styles while it was layered. The final pass verified the release in all three engines: the unlayered ./utilities (a Button's and a native button's background, a border color; on the provider root itself a utility wins by coming after ./styles); the twelve controls that ref reaches (ref and the focus ring on the control, slotProps.root.ref on the root, a Field label's htmlFor, form reset, submit and the focus of a required control, Dialog, Popover, Menu, context Menu and TeachingPopover triggers around a Switch or Checkbox placed against the control with Escape returning focus to it, Overflow.Item asChild, the roving locks); TimePicker's default format (12-hour in the server HTML, then 24-hour for en-GB, de-DE and ja-JP after hydration with no mismatch, 24-hour on a client-only mount, an explicit format winning); an app's @layer base styles inside the provider and layered token overrides (:root alone does not reach the theme tokens, :root, .wave-light does); the ./tailwind path's @property --tw-* registrations inside @layer components (pixel-identical to the plain ./styles); and the Checkbox glyph fix.
  • WebKit's forced-colors emulation in the browser pass (Playwright's WebKit on Windows) matches the media query but applies no system colors, so forced colors were compared fully in Chromium and Firefox only.
  • No CI job runs require() on Node.js 22.12 itself: pack-smoke's floor step runs only when WAVE_NODE_FLOOR names a 22.12 binary, which no CI job sets, and the CI checks require() on the Node.js lines it runs (22, 24 and 26). The final pass ran it by hand on Node.js 22.12.0 and 24.21.0.
  • Overflow.Item asChild around one of the twelve controls measures the control, not the whole component, so a control with a wider root (a Checkbox with its label) can overflow the row by the difference: use an item without asChild.
  • On the ./tailwind path Wave's @property --tw-* registrations sit inside @layer components, with the precompiled components (0.18.1: at the top level of the app's Tailwind output). Current Chromium, Firefox and WebKit honor them there (the final pass found no pixel difference from the plain ./styles); Safari 16.4 to 17.x, inside the README's browser floor, was not checked.
  • The codemod has no bin or exports entry, so it is reached by its path, node node_modules/@mortenbrudvik/waveui/codemod/migrate-1.0.mjs. Under Yarn Plug'n'Play there is no node_modules: run it with yarn node from the folder Yarn resolves for the package (yarn node -p "require.resolve('@mortenbrudvik/waveui/package.json')" names its package.json; the codemod is codemod/migrate-1.0.mjs beside it), or from .yarn/unplugged/ after yarn unplug @mortenbrudvik/waveui, or run a copy of the file, which needs nothing but Node.js (checked with Yarn 4.9).
  • tailwind-merge is pinned to an exact version (Package): an app that installs another version of it gets a second copy.