# Glyph changelog

## Unreleased

- npm descriptions and keywords for AI coding agents. `@glyphui/mcp` declares `mcpName` (`io.github.khalmohak/glyph`) and ships a `server.json`, so it can be listed in the official MCP Registry. (@glyphui/auth, @glyphui/blocks, @glyphui/mcp, @glyphui/tokens, @glyphui/ui, @glyphui/viewers)
- New package: `@glyphui/mcp`, an MCP server that gives Claude Code, Cursor, VS Code, Windsurf and Claude Desktop Glyph's components, props, examples, guides, setup and theming, so agents use the real API instead of guessing. Run it with `npx -y @glyphui/mcp`; setup for each editor is in the new [Use with AI](https://glyphui.xyz/docs/ai) guide. The data is generated from the docs at build time and ships in the package, so answers match the installed Glyph version and need no network. (@glyphui/mcp)
- PdfViewer sets `aria-busy` while a document loads, so screen readers know it isn't ready yet (its toolbar is disabled meanwhile). (@glyphui/viewers)

## 0.8.2

- The docs moved to [glyphui.xyz](https://glyphui.xyz), with the demo apps at [demo.glyphui.xyz](https://demo.glyphui.xyz) and [auth.glyphui.xyz](https://auth.glyphui.xyz). Package homepages and README links point there; the old GitHub Pages links redirect. (@glyphui/auth, @glyphui/blocks, @glyphui/tokens, @glyphui/ui, @glyphui/viewers)

## 0.8.1

- Charts and data tables measure again once web fonts finish loading. A chart's y-axis width and a table's pinned-column offsets were measured with the fallback font when the real one arrived late, so they could stay slightly off (and render differently from one page load to the next). (@glyphui/ui)

## 0.8.0

- New package: `@glyphui/viewers`, file and data viewers themed by your Glyph theme. (@glyphui/viewers)

  - `PdfViewer`: thumbnails, zoom (fit width, fit page, percent), rotation, search with highlights, selectable text, download, print, fullscreen, password-protected files. Only pages near the view render, so long documents stay fast.
  - `CsvViewer` and `SpreadsheetViewer` (.xlsx): typed columns (numbers, dates, yes/no, text) shown through DataTable with search, filters from the data, column controls and CSV export. Big CSVs parse in a worker and render virtualized.
  - `JsonViewer`: a keyboard-navigable tree with search, expand to depth, copy value or JSONPath, and a raw view.
  - `CodeViewer` and `MarkdownViewer`: syntax colors from your theme, line highlights, wrap and copy; GitHub-flavored Markdown with heading links, safe by default.
  - `DiffViewer`: unified or side by side, with changed words highlighted and unchanged lines folded.
  - `ImageViewer`, `VideoPlayer`, `AudioPlayer` and `Waveform`: zoom and pan, themed media controls with captions, speed and keyboard shortcuts, and a waveform you can seek on.
  - `FilePreview` and `FilePreviewDialog`: pick the right viewer from a file's name or type, with a download fallback.

  Each viewer is its own entry point, with its library as an optional peer dependency.
- Auth fixes, several of them security-related. (@glyphui/auth)

  **Security**

  - Password reset by code now sends the email with the code, and the memory adapter checks the code against that account only. Before, a 6-digit code was accepted for whichever account it belonged to. Your REST server should do the same: look up the code for `email`, not on its own.
  - Bearer sign-out sends the refresh token so your server can revoke it.
  - When the sign-out request fails (offline, server error), the tab no longer quietly signs back in on the next focus or reload: it retries the server sign-out first.
  - The idle timeout counts activity in every tab, so a background tab no longer signs out someone who is working in another one.
  - `?next=` paths are checked after URL normalization too (`/..//evil.com` is rejected).

  **Reliability**

  - Refresh-token rotation no longer races. A session check and a refresh, or two tabs, used to rotate the same refresh token twice, which servers with reuse detection treat as theft and answer by signing the user out everywhere. Refreshes now take a lock shared across tabs (Web Locks API) and reuse a rotation that already happened.
  - Sessions that last less than a minute, or a server clock ahead of the browser's, no longer cause a refresh loop.
  - `fetch` keeps a `Request`'s own headers and body, and can retry it after a refresh.
  - A `200 { user: null }` session response counts as signed out. Sign-in responses without a user (such as `204` with a cookie) and refresh responses with only tokens load the user from the session endpoint.
  - Servers without a refresh endpoint fall back to checking the session.
  - Rapid organization switches keep the one picked last. `OrganizationSwitcher` takes `onError` and disables its items while switching.
  - `?next=` keeps its own encoding (`/search?q=a%26b` no longer turns into `/search?q=a&b`).

  **Messages**

  - Error responses without a JSON `message` get a readable message instead of the raw body (no more HTML error pages in forms). `429` responses read `Retry-After`, exposed as `AuthError.retryAfter`.
  - A malformed CSRF cookie no longer breaks every request.
  - Sign-out buttons in `UserMenu`, `SessionExpiredDialog` and `IdleWarningDialog` finish signing out even when the server is unreachable.
- `@glyphui/ui`, `@glyphui/blocks` and `@glyphui/tokens` are now peer dependencies of `@glyphui/auth`, `@glyphui/blocks` and `@glyphui/viewers`, so your app and Glyph share one copy. As regular dependencies, a version mismatch installed a second copy of `@glyphui/ui` with its own React context, and components like `UserMenu` crashed with "must be used inside GlyphProvider". Keep all `@glyphui/*` packages on the same version. (@glyphui/auth, @glyphui/blocks, @glyphui/viewers)

  `ForgotPasswordForm` copy now matches the reset method: with code-based resets it offers to send a code instead of a link.
- Fixes from building a helpdesk app on a real bearer-token API. (@glyphui/auth, @glyphui/ui, @glyphui/viewers)

  **Auth**

  - **Two-step sign-in works with bearer tokens on multi-user servers.** A server can return a `challenge` with `needs-second-factor` (and `needs-verification`); the client sends it back with the code, so the server knows which sign-in the code completes. The memory adapter and the example app now track each sign-in separately instead of one global "pending" user.
  - **Sign-in links can be completed.** New `completeMagicLink(token)` on the client and adapters (REST: `POST /auth/magic-link/verify`), and a `MagicLinkCallback` screen for the page the link opens.
  - **The session-expired dialog handles two-step accounts:** after the password it asks for the code right there instead of sending people to the sign-in page.
  - **SignUpForm `extraFields`** for invite codes, workspace names and similar. Values are validated with the form and passed to `signUp` as `extra`; the REST adapter sends them with the request.
  - **The code step says how the code arrived** (authenticator app, email or text) from the server's `method`. Override it with `SignInForm twoFactor`.
  - **OrganizationSwitcher `label` and `createLabel`**, so it can say Workspaces or Teams.
  - **`AuthRevalidator` / `useAuthRevalidation()`** for React Router data routers: pages guarded only by `protectedLoader` now redirect after an idle, cross-tab or server sign-out. `IdleWarningDialog onSignOut` also fires for the automatic idle sign-out, and the auth state records `lastSignOut`.
  - Docs cover the bearer-mode server contract (refresh rotation, two-step challenges, magic links, organizations) and the CORS headers a separate API origin needs.

  **UI**

  - Charts that start in a loading or empty state measure their width once data arrives (Funnel, Sankey and Heatmap used to keep a 480px fallback and overflow narrow cards).
  - Gauge inside ChartCard no longer shows its title twice.
  - DataTable phone cards, Alert, form errors, chart tooltips and tables, mega-menu link cards, FileUpload rows and Stepper steps use the container radius, so themes with pill-shaped controls (playful) don't turn them into ovals.
  - The DataTable phone-card list is named after the table.
  - `tableSearch(state)` builds a table URL for deep links; comma-joined values in hand-written links (`f.status=open,pending`) are read as separate filter values. The URL format is documented.
  - `SidebarHeader` grows with its content, so a switcher under the brand isn't clipped.
  - `StaggerItem` no longer needs `index`: it follows document order.
- Bug fixes found in a full review of tokens, viewers and blocks. (@glyphui/blocks, @glyphui/tokens, @glyphui/viewers)

  **Tokens**

  - Focus rings are back in the editorial preset, and in any theme that sets a shadow to `none`. Tailwind draws a component's shadow and focus ring as one `box-shadow`, and a `none` inside it cancelled both, so keyboard users saw no focus on editorial buttons, inputs and cards. `none` is now written as an empty shadow.
  - Themes loaded from data (per-tenant branding, a theme editor) can no longer break out of the generated CSS: values that contain `;`, `{`, `}`, comments or `</style>` stay inside their own declaration, and theme names are escaped in `ThemeScope` selectors.
  - Merging a theme override parsed from JSON ignores `__proto__`, `constructor` and `prototype` keys.
  - A spring with zero or negative stiffness or mass, negative damping, or `NaN` falls back to the default spring instead of producing an invalid CSS easing.

  **Viewers**

  - PdfViewer no longer leaks a pdf.js document (and its worker memory) when it unmounts, or its file changes, while pdf.js or the file is still loading. Search results reset when the document changes.
  - Text files are decoded in the right encoding: UTF-16 files (Excel's "Unicode text") and Windows-1252 files (CSV files saved by Excel on Windows) now show accented characters correctly in CsvViewer, CodeViewer, JsonViewer and MarkdownViewer.
  - Bytes from another realm (an iframe, a worker, Node's `TextEncoder`) are recognized instead of being fetched as a URL.
  - File names in URLs with broken percent-encoding (`report%.pdf`) no longer crash the viewer.
  - JsonViewer shows in-memory `data` the way `JSON.stringify` would (dates as strings, `undefined` keys left out, BigInt as numbers), marks circular references as `[Circular]` instead of freezing the page, handles very deep documents, and its raw view and copy buttons no longer throw on circular or BigInt data.
  - MarkdownViewer gives repeated headings unique ids (`setup`, `setup-1`, …) so every anchor works, and images whose unsafe URL was removed no longer render with an empty `src`.
  - DiffViewer ignores Windows line endings and a missing final newline, so files saved on another OS no longer show every line as changed.
  - CodeViewer falls back to plain text when a grammar fails to load, and recovers on the next file instead of staying broken.
  - FilePreview no longer mistakes files named `constructor` or `__proto__` for a known type.

  **Blocks**

  - Pricing's default price format shows cents with two digits and thousands with separators (`$19.50`, `$1,250`).
  - Stats only counts up values that read back exactly as written, so `007`, `.5` and `00:05` keep their text.
  - AuthCard and Newsletter submit once while a request is in flight, even when a password manager or script submits the form directly.
  - SiteFooter renders every link when placeholder links share an `href`.
- Readable button text for custom brand colors. When a theme changes a solid tone (`primary`, `secondary`, `success`, `warning`, `danger`, `info`) without setting its `*-foreground`, and the inherited text color no longer reaches 4.5:1 on it, `defineTheme` now picks white or dark ink, whichever reads better. Values you set are kept. Status text colors (`*-text`) are also checked against `raised` surfaces (menus, popovers), fixing glyph's dark danger text in menus (4.49:1). (@glyphui/tokens)
- Fixes from building a real app with Glyph (Ledgerline): (@glyphui/ui)

  - **NumberInput no longer corrupts amounts.** Tabbing into a formatted value like "$90,000.00" and typing used to append (giving $900,001,250); keyboard focus now selects the whole number so typing replaces it. NumberInput also reports the value while you type, so form errors clear before you click Submit instead of moving the button out from under the click. Clamping and rounding still happen on blur.
  - **Shared table links with one filter value work.** `useTableUrlState` (and `parseTableSearch`) take your `columns` and decode each filter by its type, so `?f.status=overdue` gives a `multi` filter `['overdue']`, not a string. DataTable always reports `multi` filters as arrays, and the new `getFilterList(filters, id)` reads a filter as an array for server-side fetches.
  - **Menus no longer hide the page from screen readers.** `DropdownMenu` and `ContextMenu` are now non-modal by default: focus still moves into the menu and Escape or an outside click closes it, but the rest of the page isn't marked `aria-hidden` while staying focusable. Pass `modal` for the old behavior.
  - **Contrast warnings in development.** `GlyphProvider` logs once per theme when its colors fail WCAG contrast, naming each pair. `auditContrast` and `contrastRatio` are now exported from `@glyphui/ui`.
  - **Tab panels show focus.** A tab panel that takes keyboard focus now gets the focus ring.
  - **InputOTP fits phones.** Slots and gaps are one step smaller below `sm`, so eight slots fit a 390px screen.
  - **Headings wrap long words** instead of overflowing narrow screens.
- Bug fixes across components: (@glyphui/ui)

  - **NumberInput** reads the locale's decimal comma ("1.234,5" is 1234.5 with `locale="de-DE"`), keeps showing the raw number while focused after arrow keys or the − / + buttons (instead of switching to the formatted "$2.00"), and no longer calls `onValueChange` when you leave the field without changing it.
  - **TagInput** no longer adds a tag when Enter confirms an IME candidate (Japanese, Chinese, Korean input). When `maxTags` is reached the field stays focused and read-only, so Backspace can still remove the last tag; before, it was disabled and focus was lost.
  - **Slider** with `showValue` and no `value` now updates the shown number as you drag or use arrow keys.
  - **Carousel** arrow keys no longer hijack text fields, selects and sliders inside a slide, and your own `onKeyDownCapture` on the carousel, or `onClick` on CarouselPrevious / CarouselNext, now runs alongside Glyph's instead of replacing it.
  - **TreeView** keeps its keyboard navigation when you pass your own `onKeyDown`.
  - **Button** with `asChild` and `disabled` or `loading` now really disables the link it renders: `aria-disabled`, out of the tab order, click prevented.
  - **useCommandMenuShortcut** no longer throws on keydown events without a key (Chrome autofill), and holding ⌘K no longer toggles the menu repeatedly.
  - **Color mode** follows a change made in another tab.
  - **Avatar** initials keep emoji and other multi-byte characters whole.
  - **FileUpload** lists two rejected files with the same name without a React key warning.
  - `useControllableState` (used by most inputs) applies several functional updates in one event correctly and returns a stable setter.
  - DatePicker and DateRangePicker: the clear control is now a real button beside the trigger instead of a fake button nested inside it, so screen readers announce both correctly, and focus returns to the picker after clearing.
- Bug fixes for tables, charts, layout, motion and router integration. (@glyphui/ui)

  - **DataTable:**
    - In server mode, "Select all 312" now survives moving to another page.
    - When the server total shrinks below the current page (say, after deleting every row on the last page), the table moves back to the last page instead of showing an empty one.
    - Sorting or filters for a column that no longer exists (an old shared URL, say) are ignored instead of logging errors on every render.
    - CSV export now escapes a formula at the start of a list cell, like a tags column.
  - **Table URL state:** a search still being typed no longer overwrites the page the user navigated to with the back or forward button.
  - **Charts:**
    - Gaps in data (`null` or missing values) show as "—" in the accessible data table instead of `0` or `NaN`.
    - Legends ignore hidden keys for series, slices or groups that have gone away, and never leave a chart with everything hidden.
    - Heatmap skips invalid dates instead of drawing an empty grid.
  - **AppShell and Navbar:**
    - The mobile drawer and menu panel close when the window grows to desktop width.
    - Using an action in the Navbar's mobile panel closes it.
    - Links that share an `href` no longer trigger React key warnings.
  - **`useAsync`:** a function that throws before returning a promise now produces an error state instead of crashing.
  - **Motion:**
    - `PageTransition` no longer replays its entrance when the first page re-renders.
    - `AnimatedNumber` shows `NaN` or `Infinity` values directly instead of animating them.
  - **React Router:**
    - Relative `href`s (like `"invoices"` under `/app`) are marked active.
    - Table URL writes through `useRouterUrlAdapter()` keep the location hash.

## 0.7.0

- New package: `@glyphui/auth`. Authentication that runs end to end, from any backend. (@glyphui/auth)

  - **Session state.** `AuthProvider` and `useAuth()` give the status, the user and every action: sign in, sign up, sign out, email codes, two-step codes, password reset, organizations. Register your user type once and every API is typed with it. `Can`, `useCan` and `useHasRole` read roles and permissions (`invoices:*` wildcards included).
  - **Sessions that behave.** Re-checked on focus and on an interval, refreshed before they expire, synced across tabs, with an optional idle timeout. `auth.fetch` sends the session to your API, refreshes once on a 401, and opens `SessionExpiredDialog` so users sign back in without losing the page.
  - **Adapters.** `@glyphui/auth/rest` for your own API (httpOnly cookies or bearer tokens with refresh rotation, CSRF, field errors), `@glyphui/auth/firebase`, `@glyphui/auth/clerk` (a bridge inside `ClerkProvider`), and `@glyphui/auth/memory` for prototypes and tests.
  - **Protected routes for React Router.** `RequireAuth`, `GuestOnly`, `RequireRole`, and `protectedLoader` / `guestLoader` for data routers. The path the user wanted goes into `?next=` and they return there after signing in; only same-origin paths are followed.
  - **Screens.** `SignInForm`, `SignUpForm`, `ForgotPasswordForm`, `ResetPasswordForm`, `VerifyEmailForm`, `TwoFactorForm`, `MagicLinkSent`, `SocialButtons`, `AuthLayout`, `UserMenu`, `OrganizationSwitcher`, `SessionExpiredDialog` and `IdleWarningDialog`, built from Glyph components and themed by your theme file. Import `@glyphui/auth/styles.css` after the Glyph stylesheets.
- `DropdownMenuItem` supports `asChild`, so an item can be a router link while keeping its icon and shortcut. (@glyphui/ui)

## 0.6.0

- DataTable v2: the table SaaS apps need, still a drop-in for the 0.5 API. (@glyphui/ui)

  - **Server mode.** `mode="server"` with `rowCount` hands paging, sorting, search and filters to your API through `onStateChange`. The current rows stay on screen under a thin progress bar while the next page loads. Cursor APIs pass `hasNextPage`; infinite lists pass `onLoadMore`.
  - **Controlled state.** Every slice (page, sort, search, filters, hidden columns, sizes, pinning, order, selection, expanded rows, density) can be controlled through `state` and `onStateChange`, or left to the table. `onSortingChange`, `onPaginationChange`, `onSearchChange` and `onColumnFiltersChange` report single slices.
  - **State in the URL.** `useTableUrlState()` keeps the view shareable and the back button working, with any router; one user action is one history entry. With React Router, pass `adapter: useRouterUrlAdapter()` from `@glyphui/ui/react-router`.
  - **Filter chips.** Declare `meta.filter` on a column (`select`, `multi` with match counts, `range`, `date-range`, `text`) and the toolbar gets a Filter menu and Linear-style chips. The editors load on first use.
  - **Sorting and pages.** Shift-click to sort by several columns, with the order shown in the headers. Page numbers, first and last, and a rows-per-page menu.
  - **Selection.** "Select all 312" selects every matching row across pages (`allMatchingSelected` in server mode), and `bulkActions` shows your actions in a floating bar.
  - **Columns.** `columnControls` adds hiding (a View menu and a menu on each column), drag and keyboard resizing, pinning with sticky columns, and drag or keyboard reordering. `densityToggle` adds compact, default and comfortable; themes can set the default density.
  - **Rows.** `onRowClick` and `getRowHref` (a real link, so keyboard and middle-click work) without stealing clicks from buttons or checkboxes inside; `renderSubRow` for expandable details.
  - **Inline editing.** `editableCell()` edits text, numbers or choices in place. `onCellEdit` saves; the cell shows the new value at once and rolls back if saving fails.
  - **CSV export.** `exportCsv` adds an Export menu (this page, selected rows, all rows); `exportTableCsv()` and `toCsv()` export without a table. Quoting follows RFC 4180, and text that looks like a formula is neutralized.
  - **Phones and big data.** `mobile="cards"` shows rows as cards below 640px. `virtualRows()` from the new `@glyphui/ui/data-table/virtual` renders only visible rows for 10,000+ (needs `@tanstack/react-virtual`).
  - **Fixes.** When `data` changes, selections of rows that still exist are kept (with `getRowId`) and the page stays in range.

## 0.5.0

- Motion is on by default, and the theme controls it. (@glyphui/blocks, @glyphui/tokens, @glyphui/ui)

  - New theme keys: `motion.level` (`none`, `subtle` or `expressive`) and `motion.spring` (`{ stiffness, damping, mass? }`). The spring is compiled to a CSS `linear()` curve, so CSS and JavaScript animations move the same way: `--glyph-ease-spring` and `--glyph-duration-spring`, the `ease-spring` utility, and `springEasing()` in `@glyphui/tokens`. Brutalist snaps with no bounce; Playful is expressive.
  - `GlyphProvider` takes `motion` to override the level app-wide (e.g. `motion="none"` in tests). Visitors who prefer reduced motion never get animation. The level is mirrored to `<html data-motion>`, with `motion-none:` and `motion-expressive:` variants.
  - Menus, popovers, selects, tooltips and hover cards spring out of their trigger and animate out before unmounting. Dialogs, alert dialogs and the command menu rise in and settle out. Overlays fade in and out.
  - Sliding active indicators in Tabs, SegmentedControl, Sidebar and Pagination. Files in FileUpload and chips in TagInput animate in and out. The Switch thumb uses the theme spring, the Checkbox tick draws on when checked, and buttons press down.
  - New primitives: `Reveal`, `Stagger`/`StaggerItem`, `AnimatedNumber`, `PageTransition`, `Presence`, `ActiveIndicator`, `m` (from `motion`) and `useMotionSettings`. Content never depends on JavaScript to become visible.
  - Every block animates in on scroll; Stats count up and Pricing prices spring between monthly and yearly. Pass `animate={false}` to turn a block's entrance off.
- Smaller apps. `@glyphui/ui` now ships one file per module, so your bundler keeps only the components you import, and every style and theme definition is marked side-effect free. (@glyphui/blocks, @glyphui/tokens, @glyphui/ui)

  - Importing one component no longer pulls in every dependency. `Badge` alone went from 56 kB to 14 kB gzipped.
  - `GlyphProvider` loads the `useConfirm()` dialog the first time you call it, and the toast UI only when you turn on `toaster`. A provider plus a Button now loads 28 kB gzipped up front, down from 107 kB.
- Charts v2 in `@glyphui/ui/chart`. (@glyphui/ui)

  - New chart types: `PieChart` (with slice labels; `DonutChart` is now a pie with a hole), `RadarChart`, `RadialBarChart`, `ScatterChart` (bubbles with `size`, groups with `groupBy`), `ComposedChart` (bars, lines and areas, with an optional right axis), `FunnelChart`, `Treemap`, `SankeyChart`, `Gauge` (with colored bands, read out as a meter) and `Heatmap` (a calendar of days you can move through with the arrow keys).
  - Line, area, bar and composed charts get an interactive legend (click or press Enter to hide a series), `brush` to zoom, `referenceLines` and `referenceAreas`, axis options (`xAxis`, `yAxis`), `syncId`, `onPointClick`, a total row in stacked tooltips, horizontal bars (`layout="vertical"`) and 100% stacked areas (`expand`). The y axis now sizes itself to its labels.
  - Every chart takes `loading`, `error` with `onRetry`, and `empty`, like the other data components.
  - Charts animate in and when data changes, at the theme's motion level, and stay still for visitors who prefer reduced motion.
  - `ChartCard`: a card with a period selector, a "view as table" toggle and a PNG/SVG download menu.
  - `exportChart(element, { format })` downloads any chart as PNG or SVG with its title, legend and theme colors baked in.
  - `Sparkline` gains `variant` (`area`, `line`, `bar`) and `showMinMax`.
  - Fix: a chart color that your own code never mentioned (often `chart-4`) rendered black, because Tailwind only emits theme variables it finds in your source. Charts now use the theme's `--glyph-*` variables directly.

## 0.4.0

- Fixes for the problems found while building a real app with Glyph. (@glyphui/blocks, @glyphui/tokens, @glyphui/ui)

  - **Router integration.** `<GlyphProvider router={reactRouter}>` (from the new `@glyphui/ui/react-router`) makes every Glyph link navigate client-side and marks the current Sidebar, Navbar and NavigationMenu item automatically. Pass `end` on index items; an explicit `active` prop still wins. Other routers pass `{ Link, useIsActive }`; the getting-started guide has TanStack Router and Next.js versions. `linkComponent` keeps working.
  - **Forms in modals.** `<FormSubmit form={form}>` works outside `<Form>`, for example in a Modal footer, instead of crashing. Without a form it now throws a clear error. `Modal` takes `onSubmit` for plain forms: the body and footer become one form, and a footer submit button works.
  - **No dark-mode flash with Vite.** The new `glyphColorMode()` plugin from `@glyphui/ui/vite` injects the color-mode script into `index.html`.
  - **Fonts.** `@import "@glyphui/ui/fonts.css"` loads Geist and Geist Mono, which the default theme uses.
  - **Chart palette.** Themes have five chart colors, `chart-1` to `chart-5`, and charts use them by default, so series no longer match your brand or status colors by accident. Every preset has its own palette. Themes that don't set chart colors fall back to primary, info, success, warning and danger, so existing themes keep working.
  - **Blocks stylesheet check.** If `@glyphui/blocks/styles.css` is missing, blocks warn once in the console during development, with the line to add.
  - `Field` takes `labelAction`, content beside the label that is not part of the control's name. AuthCard uses it, so the password field is named "Password" rather than "Password Forgot password?".
  - `SegmentedControl` takes its label from a surrounding `Field`, so `aria-label` is optional there.
  - Pricing: a free tier no longer shows "per month".
  - The data table still requires `@tanstack/react-table` version 8; install snippets now say `@tanstack/react-table@8`.
- Every preset now meets WCAG AA contrast in light and dark mode, and the docs pass an automated accessibility check with no exceptions. (@glyphui/blocks, @glyphui/tokens, @glyphui/ui)

  - New status text colors (`primary-text`, `success-text`, `warning-text`, `danger-text`, `info-text`) for links, field errors, Text tones and tinted badges. You don't have to set them: `defineTheme` derives each one from its tone so it stays readable, including on your own colors. Set one to override it.
  - New `auditContrast(theme)` in `@glyphui/tokens` lists every color pair in a theme that falls below WCAG AA. `contrastRatio()` is exported too.
  - Preset tweaks: lighter or darker hint text (`faint-foreground`), a deeper dark-mode blue and red behind white button text, darker light-mode success and info, chart colors that stand out against the page, and dark text on playful's mint and sky fills.
  - Calendar: days outside the month are no longer faded, and today's date keeps the selected style when picked.
  - Collapsed sidebar items keep their label for screen readers.
  - Slider takes its accessible name from the surrounding Field.
  - ScrollArea can be scrolled with the keyboard when its content overflows.
  - Charts no longer put focusable elements inside their hidden plot.
  - Pricing prices shrink to fit their card, and the plan badge wraps instead of being clipped.
  - LogoCloud wordmarks are readable.

## 0.3.0

- The roadmap ships: 25 more components and the first release of @glyphui/blocks. (@glyphui/blocks, @glyphui/ui)

  - Forms: Calendar, DatePicker and DateRangePicker (with presets), InputOTP, NumberInput, TagInput, PasswordInput (with strength meter), FileUpload (dropzone, validation, progress).
  - Overlays: Modal (the simple, prop-driven modal), ContextMenu, HoverCard.
  - Navigation: NavigationMenu (mega menus), Stepper.
  - Actions: Toggle and ToggleGroup, CopyButton.
  - Data display: Timeline, TreeView, Carousel, Collapsible.
  - Layout: Resizable panels, VisuallyHidden.
  - Charts at `@glyphui/ui/chart`: LineChart, AreaChart, BarChart, DonutChart and Sparkline, colored by theme tokens, with a screen-reader data table. recharts is an optional peer dependency.
  - `@glyphui/blocks`: Hero, LogoCloud, FeatureGrid, FeatureSplit, Stats, Pricing, Testimonials, Faq, Cta, Newsletter, SiteFooter, AuthCard, SectionHeader.

  Sheet now slides in and out from every edge, and Accordion and Collapsible animate their height when opening and closing.

## 0.2.0

- 25 new components, all themed by tokens and registered for typed theme overrides: (@glyphui/ui)

  - Overlays: Dialog, Sheet, Popover, DropdownMenu, AlertDialog with `useConfirm()` (`await confirm({ title, tone: 'danger' })`), and Toast (`toast()`, `toast.promise`).
  - Navigation: Breadcrumb, Pagination, Link, CommandMenu with a ⌘K shortcut hook.
  - Forms: RadioGroup (with option cards), Slider (single and range), Combobox (searchable, single or multiple, typed values).
  - Feedback: Alert, Banner, Progress and ProgressCircle.
  - Data display: Accordion, DescriptionList, StatCard.
  - Typography: Code, CodeBlock, Blockquote, Prose.
  - Layout: Grid, AspectRatio, ScrollArea.

  GlyphProvider now provides `useConfirm()` everywhere and takes an optional `toaster` prop. Button supports `iconOnly` together with `asChild`.
- Badge no longer stretches to full width inside flex-column containers such as Card. (@glyphui/ui)

## 0.1.1

- Publish with npm provenance, so every release links to the commit and workflow that built it. (@glyphui/tokens, @glyphui/ui)

## 0.1.0

- First public release. Theme engine with four presets (glyph, brutalist, editorial, playful), around 30 themed components on Radix, and the patterns: Form (Standard Schema), DataTable (TanStack Table), AppShell with Sidebar and Navbar, and Async states. (@glyphui/tokens, @glyphui/ui)

