Unreleased
#unreleasedChanged
all-
Badge classes live in a style recipe (#739) -
badge.recipe.tsholds every class Badge draws (base, variants, compound rules, defaults) as plain data that imports nothing, so a renderer that is not React can read the same classes.Badgeresolves it with the samecva, then merges the result withcn(tailwind-merge), which is what lets a surfacetonereplace thevariantsurface; another renderer has to do both. Badge renders the same class names for everyvariant,tone,size,borderanddotcombination (a test checked all 2,700 when the recipe landed). The shadcn registry copies the recipe into the installedbadge.tsx, so that file still carries its classes. No API change. -
Badge stories and docs page are generated (#738) -
badge.stories.tsx,badge.mdxand the newbadge.generated.test.tsxare written frombadge.definition.tsand carry a "Generated from" header. Story names and ids are unchanged, and each story renders the same HTML. The docs page now takes its summary, prop descriptions and defaults from the Badge contract in@vllnt/ui-core. No change to theBadgecomponent. -
Shell docs say what the code does (#770) - the site switcher renders
groupsin the order you give and any row can becurrent, not only a first row; the default theme is the vllnt theme (maiarenders the same); the shell brand guard also fails on avllnt-prefix and finds new shell parts by name. No behaviour change. -
Badge no longer changes fill on hover (#848) - a badge is a static surface, so
BadgeandbadgeVariantsdrop theirhover:fills in everyvariantandtone. Migration: when you putbadgeVariantson a link or button, addhover:bg-primary/80(default,tone="solid"),hover:bg-secondary/80(secondary, soft) orhover:bg-destructive/80(destructive,tone="danger-solid") to itsclassName; fortone="danger-tint", addhover:bg-destructive/15.
Added
feat-
docs/llms.txtand a page for every exported component (issue #722) - the package shipsdocs/llms.txt: the conventions (install and peers, styles and the Tailwind preset, root and subpath imports, theoptimizePackageImportsnote for Next.js with webpack, theming tokens,cnandcx) and a relative link to every component page. Each page,docs/components/<name>.md, is named after the component's subpath@vllnt/ui/<name>and gives both imports (subpath and root), props, variants, the story names (states) and an example. The pages no longer carry the site install command or links to the latest source. The 74 components that had no Storybook docs page now have one, with an example taken from their stories, and packing fails when an exported component has no page. The rootllms.txtnow linksdocs/llms.txtinstead of listing the components. The JavaScript bundles do not change. -
Spatial tokens: depth roles, target sizes, press and raise (issue #846) - each depth step has a role (
z-0base,z-1raised,z-2overlay,z-3floating,z-4modal) and two new fields, written as CSS variables in both modes:--depth-z-N-border(--borderforz-0toz-2, the new--color-border-strongforz-3andz-4:--borderin light,#3a3a3ain dark) and--depth-z-N-surface(--background,--card, then--popover). The target sizes--size-target-pointer(24 px),--size-target-touch(44 px) and--size-target-spatial(60 px) join--size-target-min, which stays 2.75rem and equalssize.target.touch.motion.press(100 ms) andmotion.raise(200 ms), both ease-out, are intokens.json(no CSS variable). Every theme inthemes/presets.cssandthemes/products.csssets--color-border-strongnext to its--border(equal in light, 0.08 lighter in dark), so the top steps never draw a darker hairline than the theme's border. No existing CSS variable changes value, and no component reads the new ones yet: flat and pure-black dark stay the default. -
LauncherDock(#875) - a centred floating launcher bar at the bottom of the screen ("Search… ⌘K") whose button callsonOpen; the app opens its own palette, such asCommandDialogwithfullScreenBelow. It takeslabel,onOpen,shortcut="mod+k"(⌘K or Ctrl K, rendered after mount),hideOnScroll(window scroll, clamped against the iOS bounce) andhideWhileEditing(a:has()rule instyles.css; text fields inside a dialog, such as the palette, do not hide it), bothtrueby default,placement="all" | "below-desktop"(a media query hides it at 1024 px and wider),leadingandtrailingslots andmaterial(solid by default,"glass"opt-in). It clears the bottom safe area (needsviewport-fit=cover) and renders a spacer so it never covers the end of the page. Hidden by scrolling it isinert, hidden while editing it isvisibility: hidden.LauncherDockPropsandLauncherDockPlacementare exported, and@vllnt/ui/launcher-dockis its subpath. No new dependency. -
Health on switcher rows (#872) - a
NetworkSwitcherItemtakeshealth, the sameShellHealth({ label, tone }) as a footer link, and shows a dot in the tone and the label after the status chip.statusstays the launch stage andhealthis the live state, so a row can show both. The row'saria-describedbyreads the description, the status, then the health; the link's name stays its label. A row withouthealthrenders as before. -
Component definitions, piloted on Badge (#738) - a component can be described once in
<id>.definition.ts: plain data typed against its@vllnt/ui-corecontract (story args, regression cases, docs sections).pnpm -F @vllnt/ui definitions:generatewrites its stories, generated tests and docs page;test:onceregenerates them in memory and fails on any difference, so a hand edit fails CI. Component code stays hand-written.badge.contract.test-d.tschecks Badge's props against its contract on web. -
Health on footer links (#871) -
SiteFooterLinktakeshealth, a{ label, tone }object, and shows a dot in the tone and the label after the link's text. The link's name stays its label; assistive tech reads the health label as the link's description througharia-describedby, with an id built from the column and the link's place. The label carries the meaning, not the colour. TheShellHealthtype is exported from the root. A link withouthealthrenders the same markup as before. -
data-*attributes and slots on shell links (#770) - every anchor the shell draws (SiteHeader,SiteHeaderStatic,SiteFooter) now carriesdata-shell-slot(bar,menu,cta,switcherorfooter), so a script can tell where a link sits.SiteNavItem,SiteLocaleLink, the headercta,NetworkSwitcherItemandSiteFooterLinktake an optionaldataobject ofdata-*attributes; the shell keeps thedata-*keys and drops the rest. TheShellLinkDataandShellLinkSlottypes are exported from the root. A call with no new prop renders the 0.4.0 markup plusdata-shell-slot. -
Switcher row fields and
renderNetworkLabel(#770) - aNetworkSwitcherItemtakesdescription(a line under the label),status(a chip after it),mark(short muted text such asEN, part of the link's name) andhrefLang, all display strings. Description and status are read througharia-describedby.SiteHeaderandSiteHeaderStatictakerenderNetworkLabel(item), which draws a row's visible content (an app's lockup) as decoration, hidden from assistive tech, while a visually hiddenlabel(then the mark) names the link. The current row still linkshomeHref. TheRenderNetworkLabeltype is exported from the root. A row with onlycurrent,hrefandlabelrenders as before. -
A theme cookie shares the theme across apps (#770) -
themeCookieonSiteShell,SiteFrameandSiteThemeProviderkeeps the visitor's theme in a cookie that the app names, so apps on one site open in the same theme with no flash. The cookie is written when the visitor changes the theme, never on a plain visit, andSiteShellStatictakesthemeCookieto read it only. Without the prop nothing changes. Anameordomaina cookie cannot hold (whitespace, a control character,;,,,=; write an international domain in punycode) or amaxAgethat is not an integer throws aTypeErrorwhen the shell orSiteThemeProviderrenders; an emptydomaincounts as none. -
Link options on the shell's nav, footer and button (#770) -
SiteNavItemandSiteFooterLinktakehrefLang(set ashreflang) andmark, a short muted mark after the label such asEN. The mark sits inside the link, so its name readsLabel EN. The headerctatakesexternal, which means what it means on a nav link: a new tab withrel="noopener noreferrer", a ↗ and thelabels.externaltext, in the bar and in the menu ofSiteHeaderandSiteHeaderStatic. A call that uses none of them renders the same markup as before. -
ShellLinkEventsreports clicks on shell links (#770) - a"use client"part that renders nothing and adds one click listener on the document. A click on ana[data-shell-slot]anchor, or on a child of one, callsonLinkClick({ event, link, slot }). Anchors with any other slot value are ignored, a new handler does not add a second listener, and unmount removes the listener. It needs a hydrated app. TheShellLinkEventsPropsandShellLinkClicktypes are exported from the root. -
The theme cookie script for a page with no React (#770) -
themeCookieScript(settings)andthemeCookieString(cookie, value, secure)are exported from the root and from@vllnt/ui/theme-cookie, which imports no React, with theThemeCookieSeedSettingstype. The script is the one the shells run. Its new optionalattribute("class"or adata-*name) also puts the theme on<html>before the first paint, so a plain HTML page or another framework shares the theme with no flash. Both builders check the cookie the way the shells do. -
CommandDialogfull screen and placement (#874) -fullScreenBelow(640, 768 or 1024) fills the viewport below that width: the list scrolls inside, the content clears the safe areas (withviewport-fit=cover) and the on-screen keyboard, and the close button is a 44 px target. Above it, and without the prop, it stays the centred card.top="upper-third"pins the card's top edge at 20% of the viewport so the search does not move as results filter.closeButtonandlabelspass toDialogContent, andpresentationpasses toDialoguntouched (fullScreenBelowandtopapply to"dialog"only). The full screen is astyles.cssmedia query keyed bydata-fullscreen-below, so server and client markup match. Every placement keeps the title, focus in the search, the focus trap, the scroll lock, Escape and focus return. A call with none of the new props renders the same markup as before. -
Toggle,ToggleGroupandToggleGroupItemvariant="unstyled"(#749) - keeps the pressed state, roles,aria-pressed/aria-checked,data-state, keyboard andasChild, and adds no classes of its own: each part's class list is only itsclassName, andsizehas no effect. OnToggleGroupit also drops the group's layout classes and applies to every item.toggleVariants({ variant: "unstyled" })returns only the caller's classes; the other variants render the same class strings as before. -
TooltipArrow, andTooltipcloseDelayandtoggleable(#751) -TooltipArrowpoints at the trigger from the side the tooltip lands on, andTooltipContentstops clipping its children once it holds one.closeDelaykeeps the tooltip open for that many milliseconds after the pointer leaves (default 0).toggleablemakes a press on the trigger open and close the tooltip, so it opens on touch screens (default off). Without them, tooltips behave and look as before;TooltipContentcarries one extra class,has-[>[data-slot=tooltip-arrow]]:overflow-visible, which applies only when an arrow is inside. -
Sliderpart classes andthumbProps(#752) -controlClassName,trackClassName,rangeClassNameandthumbClassNameare merged into each part's default classes, andthumbProps(an object, or a function of the thumb's index) passes extra props, such asdata-*oraria-describedby, to every thumb; each replaces the same attribute the slider sets on that thumb. Without them, the slider renders as before.
Deprecated
allelevation.*design tokens (issue #846) - the consumer-facing change is in@vllnt/ui-core(designTokens.elevation,tokens.json);@vllnt/uiitself has noelevationCSS variable or class.elevation.none,sm,mdandlgkeep their string values; the newdeprecatedmap intokens.jsoncarries a "Deprecated:" note for each. To migrate, readshadow.raised(--shadow-raised) in place ofelevation.sm, andshadow.overlay(--shadow-overlay) in place ofelevation.mdandelevation.lg, as the Tailwind preset already does.shadow.*is empty in the flat default; an app that wants the old look copies the oldelevationvalue into its own theme. The tokens stay for every 0.x release and leave no earlier than the next major, listed under Breaking.
Fixed
fixoptimizePackageImportsprunes a root import under webpack (#882) - in a Next 16 webpack build withexperimental.optimizePackageImports: ["@vllnt/ui"], a page that renders one client component imported from@vllnt/uiloaded 680.6 KB gzipped of client JS against 182.4 KB for the same component from its subpath (Switch: 680.6 KB against 189.2 KB). It now loads the same as the subpath import (182.4 KB and 189.2 KB). The rootdist/index.jsre-exported the components through a second barrel (export * from "./components/index.js"), and Next's barrel optimizer resolves a name behind a nestedexport *to that barrel, not to its module. The root now re-exports each component from its own module, in the barrel's order; the exported names and the bundle of every export are unchanged. Turbopack, the Next 16 default, already loaded the same for both imports. Plain webpack with nooptimizePackageImportsstill loads every client module the root reaches (Next makes them all client entries of the page), so import by subpath there, as the README says. A newpnpm -F @vllnt/ui check:client-js, whichsizenow runs after the bundle size budgets, builds a small Next app with webpack and with Turbopack and fails when a root import of one client component loads more than 5 KB gzipped over its subpath import (main's root fails it with a 485.9 KB gap).next16.4.6 is now a devDependency, since the check needs Next 16.- The Pages Router builds with the root entry and no
transpilePackages-next buildof a Pages Router app that imports@vllnt/uino longer fails withERR_MODULE_NOT_FOUNDfornext/linkorERR_UNKNOWN_FILE_EXTENSIONfor a.cssfile (#820). The Pages Router loads the package through Node ESM, which needsnext/link.js(nexthas noexportsmap) and cannot load a.cssfile. The built files now importnext/link.js,next/navigation.jsandnext/image.js, andFlowDiagram's@xyflow/reactstylesheet comes from@vllnt/ui/styles.cssinstead of an import in the component. An app that does not importstyles.cssmust import@xyflow/react/dist/style.cssitself (seeMIGRATION.md). A Vite or other non-Next build that aliasesnext/*to stubs must also match the.jsform, as the README recipe now does.check:dist-importsnow fails on anext/*import without.jsand on any.cssimport left indist. - FlowDiagram fills the fullscreen dialog - the canvas was 0 px high in fullscreen, so the dialog showed only its header and the close button. It now fills the dialog body under the title, at any window size. The diagram in the page keeps its size (#838).
- FlowDiagram zoom buttons step from the real zoom - Zoom in and Zoom out
stepped from a private copy of the zoom, so the first press after load landed
on 1.2 (zooming out from a fit at 2.0) and Fit view or a wheel zoom were
ignored. They now move 0.2 from the zoom the canvas has and stop at its
limits. The
zoomthatuseFlowDiagram()returns follows the canvas too (#839). - Globe3D holds still under reduced motion - with
prefers-reduced-motion: reduce,Globe3Dno longer auto-rotates, even withautoRotateon (the default). Dragging still rotates it (#848). - AnimatedTestimonials autoplay holds under reduced motion - with
autoplayon andprefers-reduced-motion: reduce, it stays on the current entry; Previous and Next still work (#848). - UnicodeSpinner slows under reduced motion - each frame lasts 1.5 times
as long under
prefers-reduced-motion: reduce, asSpinnerturns slower. It keeps moving because the motion is the loading feedback (#848). - Static surfaces no longer respond to hover -
CreditBadge,PlanBadge, theSubscriptionCardbadge,BentoCard,Watchlistrows andMarketTreemaptiles drop their hover fill, shadow or lift: none of them is an action (#848).