# Changelog

## [3.2.0] - 2026-11-16

### Added

- **Development-mode warning for an unknown value of an enumerated attribute.** A template attribute string is not
  type-checked, and a value outside the list (`appearance="filled"` on a button) matches no style rule, so the element silently
  rendered as if the attribute were unset — nothing in the console. It now logs one `console.warn` per element, attribute and
  value in development builds, naming the values that are accepted; rendering is unchanged and production builds do nothing.
  Every element attribute whose type is a closed list of strings is covered (`appearance`, `color`, `size`, `tone`, `placement`,
  `orientation`, `mode`, … on about forty elements; `u-alert` keeps its own `status` warning, which also suggests the nearest
  valid name). Elements opt in through the new `UElement.enumerated` map, and `enumeratedValues<Union>()([...])`
  (exported, also from `@iyulab/components/dist/utilities/enumerated.js`) writes a list the compiler checks against the type's
  union in both directions, so the two cannot drift. A package that builds on `UElement` can use the same map for its own
  elements.

- **`custom-elements.json` — a Custom Elements Manifest for every element.** The package now ships
  `dist/custom-elements.json` (reachable as `@iyulab/components/dist/custom-elements.json`, and declared in the
  `customElements` field of `package.json`) so editors, documentation tools and AI agents can read each element's attributes,
  properties, events, slots, CSS parts and CSS custom properties without parsing the source. It is generated from the source at
  build time (`npm run analyze`) and covers all 54 elements. Events are listed whether an element raises them with
  `this.fire()` or `dispatchEvent()` — including from an arrow-function field — with the type of their `detail`
  (`CustomEvent<USelectQueryChangeDetail>`); events documented with `@fires` keep their description. An attribute whose type is a closed list of strings
  (`appearance`, `color`, `size`, …) is typed with its accepted values (`"solid" | "soft" | "outlined" | "plain" | "link"`)
  instead of the alias name, so an editor or an agent can offer and check the values without reading the source. The file adds about
  230 kB to the compressed package.
- **Build helpers for a package that publishes its own manifest** (`@iyulab/components/plugins/cem-config.js`,
  `cem-events-plugin.js`, `cem-check.js`). `cemConfig()` is the analyzer configuration this package uses, so a package that
  builds on these elements gets the same manifest with one line in `custom-elements-manifest.config.mjs`;
  `checkManifest({ root, manifest })` returns what in a generated manifest disagrees with the source (an element that is not
  registered, a missing description, an event the analyzer invented or missed) for a package's own test.

### Changed

- **The calendar writes its day numbers in the locale's own digits.** `u-calendar` drew every day with Latin digits while the date
  text field beside it already wrote the date in the locale's digits (`۲۰۲۶/۱۱/۰۵` in `fa`), so one picker showed two numeral systems.
  The day cells now use the digits of the active locale: `fa` `۵`, `ar-EG` `٥`, `bn` `৫`. Locales that write Latin digits (`en`, `ko`,
  `de`, `ja`, `he` …) are unchanged. The value, `data-iso`, and the events still carry ISO text — only the label of the cell changes.

- **The calendar week starts on the locale's first day of the week.** `u-date-picker`, `u-date-range-picker` and the calendar inside them
  always opened the week on Sunday, so a `fa` or `ar-EG` page showed a Sunday-first grid and a `de`, `fr` or `ru` page did too. The
  weekday row, the empty cells before the 1st and the Home/End keys now start the week where the locale does (read from
  `Intl.Locale`): Saturday in `fa` and `ar-EG`, Monday in `de`, `fr`, `ru`, `en-GB`, Sunday in `en`, `ko`, `ja` and `th`. The
  `thisWeek` and `lastWeek` presets of `u-date-range-picker` follow the same day. A browser that reports no week information keeps Sunday.
  Pages that set no region and use `en`, `ko` or `ja` are unchanged.
- **Runtime dependency ranges follow the current patch releases** (`focus-trap` `^8.2.5`, `tabbable` `^6.5.2`). No behaviour change.

### Fixed

- **`validationMessage` on the form controls can be set, as the docs said.** The property tables of `u-input`, `u-textarea`, `u-select`,
  `u-date-picker`, `u-date-range-picker`, `u-file-input` and `u-checkbox` listed `validationMessage` ("Custom validation message")
  and `validation-message` worked on `u-field`, but the controls only had a getter, so `.validationMessage=${text}` in a template
  threw `TypeError: Cannot set property validationMessage … which has only a getter` on every render. It is now a property with the
  attribute `validation-message` on every form control, with the same meaning as on `u-field`: the text shown while the control is
  `invalid`, replacing the message the browser computed. Set it to an empty string to go back to the computed message. It changes
  the text only — it does not make the value invalid or block a form submit; `setCustomValidity()` is still the call that does.
- **`setCustomValidity()` can be called before the control has rendered.** Called on an element that was just created (before it is
  connected or has drawn once), it read the inner input too early and logged a development-mode `@query'd field … accessed before
  the first update` warning. The message is now taken at once and applied right after the first render.
- **The docs say where the error text goes.** A control that draws its own field box (`u-input`, `u-textarea`, `u-select`, the date
  pickers) shows its own error line when it is `invalid`, so `validation-message` on both that control and a `u-field` around it shows
  two lines. `u-field`'s docs now ask for the text in one place, like the label, and the property tables describe `validationMessage`
  as it works.
- **The keyboard focus ring on a calendar day is visible on all four sides inside a selected range.** In `u-date-range-picker` (and
  the calendar inside `u-date-picker`), the day that holds focus draws a 2px ring outside its box, and the next day's range-band
  background was painted over it, so the ring on the start day (or any day in the band) lost its trailing edge and read as a
  partly missing outline. The focused day is now raised above its neighbours.
- **The calendar names the month its grid shows in every locale.** `u-calendar`'s month title and the grid's accessible name were
  written in the locale's own calendar, but the grid and `value` are Gregorian. In `fa` the title read the Persian month (`آبان ۱۴۰۵`)
  above a grid of November 2026, so a person and a screen reader were told another month; in `th` the title carried the Buddhist year
  (`2569`) while the field next to it wrote `2026`. The title (and the "range start chosen" announcement) now use the Gregorian
  calendar, as the date text already did. Locales whose default calendar is Gregorian are unchanged.
- **The class descriptions of `u-auto-scroll` and `u-tab-nav` were attached to a neighbouring type alias.** The comment block
  sat above `AutoScrollMode` / `TabNavAppearance` instead of the class, so editors showed no description for either element and
  their `@slot`, `@csspart` and `@cssprop` entries did not reach the generated documentation. No behaviour changes.

- **A label keeps its own direction in a right-to-left page.** The text an app puts in `u-tag`, `u-chip`, `u-option`,
  `u-breadcrumb-item`, the trigger of a `u-select`, `u-button`, `u-menu-item`, `u-tree-item`, `u-checkbox`,
  `u-radio`, `u-switch`, `u-tab`, `u-badge`, the text on a `u-divider`, the content over a `u-progress-bar` and the title of a `u-steps` item took the page's direction as its paragraph direction, so a run
  of Latin letters ended up with its trailing punctuation at the wrong end (`Blue Harbor Co.` read `.Blue Harbor Co`).
  Each label is now isolated and reads in its own order; where the component puts it (the start edge, the box's
  alignment) does not change, and a left-to-right page renders exactly as before. The mechanism is one rule in the shared
  base style, `bdi { unicode-bidi: plaintext }` — a `bdi` anywhere in a component's shadow tree now resolves its direction
  from the rendered text, slotted or not (the browser default, `dir=auto`, does not look through a slot).
  Only one-line labels are isolated; a content box (`u-card`, `u-panel`, `u-dialog`, `u-alert`, `u-expander`) holds
  sentences and arbitrary markup and keeps following the page.
  Migration: none — the extra `bdi` lives inside the shadow tree, so no consumer selector can reach it.
- **A number typed into `u-input type="number"` keeps its sign in front in a right-to-left page.** The field's inner input is
  a text input (so the browser's own number handling does not apply), and in a right-to-left page it took the page as its
  paragraph direction: `-1234.5` read `1234.5-`. The input is now left-to-right; only the alignment follows the page (the
  digits still sit at the page's start edge, and the placeholder with them). A left-to-right page renders exactly as before.
  `type="email"`, `url` and `tel` were measured and read correctly, so they are unchanged.
- **`parseNumber` and `u-input type="number"` read Arabic and Persian digits and separators.** On an `ar-EG` or `fa` page
  the field wrote its decimal separator (`٫`) on blur but could not read it back: the number was lost the next time the field was
  focused and left (`value` went empty and the field showed its invalid state), and a person typing `١٢٫٥` on an Arabic keyboard
  got the same. `parseNumber` now reads the decimal digits of any script (Arabic-Indic `٠`–`٩`, Persian `۰`–`۹`, Bengali,
  Devanagari, the full-width digits an East Asian IME types …), the Arabic decimal separator `٫` and the Arabic thousands
  separator `٬`, and ignores the direction marks a formatted number can carry (`formatNumber` in Arabic puts one
  before the minus sign). `value` is still a dot-decimal string; text that is not a number (including digit-like symbols such as
  `①` or `½`) is still `null`, and text without any of these characters reads exactly as before.
- **A date written in a text field can be read back in every locale.** `formatDateText` and its date-time and period
  siblings are documented as «the way `parseDate` reads it back», and `u-date-picker` / `u-date-range-picker` with
  `format="locale"` rely on it, but in several locales they did not hold. `ar` put a right-to-left mark between the parts and
  `ar-EG`, `ar-SA`, `fa` and `bn` wrote their own digits — `parseDate` read none of it, so a person who edited the date they saw
  got a bad-input field and an empty `value`. `fa` and `th` wrote the Persian (1405) and Buddhist (2569) year, which
  read back as the wrong year or not at all. The parsers (`parseDate`, `parseDateTime`, `parseDateRange`,
  `parseDateTimeRange`) now read the digits of any script and ignore direction marks, and the text field is always
  Gregorian, as `value` and the calendar next to the field are — `th` now writes `02/10/2026`, `fa` `۲۰۲۶/۱۰/۰۲`. The ISO
  format and every locale that already wrote Latin digits in the Gregorian calendar (`en`, `ko`, `de`, `ja`, `he` …) are
  unchanged; `dateTextPattern` follows (`th` → `DD/MM/YYYY`).
- **Form controls, `u-command-palette` and `u-rating` no longer log Lit's «scheduled an update after an update completed» in a development build.**
  Three ordinary paths drew the element a second time and logged the warning in the console of every app: opening the command palette,
  a form control clearing its error once the value became valid, and a `u-rating` whose value changed after a hover. The rating now
  resets its hover preview before it draws, so that path is one draw. The palette and the form controls draw a second time for a reason
  (the search it starts when opened, and the validity that the inner native control reports only after it is drawn), which is the
  warning's own stated exception — they turn it off, with the reason in a comment.



## [3.1.0] - 2026-11-12

### Added

- **`compareText(a, b, locale?)` and `getCollator(locale?)` — one text order for tables and lists.** Digit runs
  inside text compare as numbers (`A-2` before `A-10`, `9` before `10`), case and accents compare as the same letter (equal
  rows keep their input order), and the locale is the app's `Locale.get()` (`<html lang>`, then the browser language, then
  `en`) — not the browser default, so one app orders Hangul and Latin the same way for every user (`Locale.set('ko')` puts
  Hangul first). One `Intl.Collator` is built per locale and reused; a malformed locale tag compares as English instead of
  throwing. The table packages use it for their text columns.

### Fixed

- **`u-radio` no longer passes its own host as the `setValidity` anchor.** `ElementInternals.setValidity(flags,
  message, anchor)` requires the anchor to be a shadow-including descendant of the element; the host is not one. Older
  Chromium (the 120 generation) threw `NotFoundError` on every selection, and because the exception interrupted
  validation before the event was dispatched, `change` never fired while `value` had already changed. The anchor is
  now the radiogroup container, like every other form control. Current browsers accept the host, so they were not
  affected.

### Documentation

- The README now states the browser floor: browsers that support `:state()` without the `--` prefix (Chrome and
  Edge 125, Firefox 126, Safari 17.4). Below it, form controls throw on `states.add()` and styling that keys on
  states does not apply. The skill overview carries the same line.

## [3.0.0] - 2026-11-11

### Changed (BREAKING — 3.0)

- **`u-select` announces its filter text as `query-change`, not `search`.** `search` now means one thing across the
  library — «a search was committed» (`u-input type="search"`: Enter, the clear button, Escape). `u-select searchable`
  used to bubble the same name on every keystroke, so anything outside that listened for `search` (a list page, a
  table toolbar) read an option query as a list search. The event is now `query-change` with `detail: { query }`,
  and the type is `USelectQueryChangeDetail` (was `USelectSearchDetail`). React: `onQueryChange` (was `onSearch`).
  **Migrate:** `select.addEventListener('search', …)` → `'query-change'`; on a remote-search select, listen for
  `query-change`. A listener on an element that wraps a `u-select` and hears `search` no longer receives the select's
  query — that is the point; remove any guard that filtered it out.
- **`query-change` is not fired while an IME composition is in progress.** The old `search` fired on every
  composition step with `detail.composing: true` and once more with `false` when it ended. Now the event fires once,
  with the finished text, when the composition ends; `detail.composing` is gone (it would always be `false`). A
  server search no longer has to skip half-composed syllables (`ㅅ`, `성` on the way to `서울`). The built-in
  filter is unchanged — it still narrows on the committed part while you compose.
- **`u-alert` sits in the page flow by default; `floating` is the toast look.** Before, the default was the floating
  look (content width, large shadow, scale transition, keeps its place while closed) and the page-flow form was
  `inline`. Now the default fills its container, has no shadow or transition and takes no space while closed, and
  `floating` gives the toast look. `Toast` sets `floating` itself. **Migrate:** delete `inline` (the attribute no longer
  does anything); add `floating` where you relied on the old default look. An alert you opened in a flow without
  `inline` now fills the width and loses its shadow — that is the new default.

#### Finding what to migrate

TypeScript reports these when you upgrade: importing `USelectSearchDetail`, `onSearch` on the React `USelect`,
reading `detail.composing`, and setting the `inline` property (`alert.inline = …`, `inline` on the React `UAlert`).

It cannot report these, so search your sources for them:

- a `search` listener on a `u-select` (or on an element around one) — the string overload accepts any event name, and a
  listener cast to `EventListener` hides the detail type: `rg -n "addEventListener\(['\"]search"` and
  `rg -n "@search="`;
- a `u-alert` in markup that relied on the old floating look — markup attributes have no types:
  `rg -nP '<u-alert(?![^>]*\bfloating\b)'`, then add `floating` where the toast look was meant. A leftover `inline`
  attribute is harmless (the new default is the old `inline`).

### Added

- **`UElement.forwardedAttributes`** — a component that copies a host attribute (usually `aria-*`) onto an inner element declares it
  once: `static forwardedAttributes = ['aria-label']`. The attribute is then observed and a change re-renders, which a declared
  property would give but these attributes are not. `u-button`, `u-icon-button` and the form controls moved onto it from their
  own copies of the same override; behaviour is unchanged.

### Changed

- **Layout mirrors under `dir="rtl"`: margins, inner padding, borders and text alignment are logical properties.** `margin-left/right`,
  `padding-left/right`, `border-left/right` and `text-align: left/right` in the published styles of 13 components (`u-badge`, `u-button`,
  `u-breadcrumb-item`, `u-divider`, `u-field`, `u-input`, `u-menu-item`, `u-option`, `u-select`, `u-tab`, `u-textarea`, `u-tree-item`, and the
  date picker's field) became `margin-inline-start/end` and so on, so the prefix and suffix slots, indentation and the counter side swap in a
  right-to-left document. **Left-to-right rendering is unchanged.** What names a physical side on purpose stays physical: `u-drawer
  placement`, `u-tab-panel placement` and the device safe-area insets. Not yet mirrored, outside this package: the virtualized
  grid and the timeline. `u-switch` (the thumb and its travel), the indeterminate bar of `u-progress-bar`, `u-carousel` (the first slide at the start
  side, the track and the previous/next buttons and their chevrons, and a drag toward the start side goes on), `u-slider` and `u-rating` mirror too:
  the value grows from the start side, a pointer position and the arrow keys follow it (in a right-to-left page the left arrow raises
  the value, as in a native range input), and a half-filled star is filled from its start edge. `u-split-panel` follows the pointer in a right-to-left page too: the first pane
  sits at the right, so dragging right shrinks it and the handle (and the `lazy` preview bar) stays under the pointer — before, the handle ran
  away from it (a drag of 40px moved it 40px the other way). A consumer rule that overrode
  one of these with a physical property (`::part(prefix) { margin-right: 0 }`) still applies in left-to-right text; write the logical
  property to cover both directions. A vertical `u-divider` with `line="dashed"` or `"dotted"` now draws that style in a right-to-left
  page too (its width sat on the start border but the style on the left one, so it came out solid). The chevrons the components draw themselves mirror
  as well, so "previous" and "expand" point the way the page reads: the `u-breadcrumb` separator, the previous/next buttons of `u-pagination` and
  `u-calendar`, the closed marker of `u-expander` (it turns from pointing at the start side to pointing down), the submenu marker of `u-menu-item` and
  the closed marker of `u-tree-item`. A chevron you pass in yourself (a `separator` or `expand-icon` slot) is left as you drew it. The outer
  corners of a button-style `u-radio` group and the divider between its cells sit on the start and end sides too (the first cell is rounded on
  the start side, the dividers are drawn on each cell's end side), so the group reads as one piece in a right-to-left page. The buttons at the
  end of a field (the clear button of `u-input`, `u-select` and `u-file-input`, the calendar button of the date pickers) and the vertical
  connector of a folded `u-steps` and the toggle of `u-tree-item` use start/end margins as well: the clear button of `u-input` sat 10px
  further from the end of the field in a right-to-left page than in a left-to-right one. The fill and the buffer of a determinate
  `u-progress-bar` grow from the start side too (a bar at 40% was filled from the left in a right-to-left page).
  The horizontal arrow keys follow the screen in a right-to-left page, as in a native radio group: in `u-tab-panel` (horizontal tabs),
  `u-radio` and `u-calendar` the left arrow now goes to the next tab, option or day (the right arrow to the previous one), and in
  `u-tree` and `u-menu` the arrow toward the end side (the left one) opens a branch while the one toward the start side closes it
  or goes to the parent. A sub-menu of `u-menu-item` opens toward the end side. Vertical keys and left-to-right pages are unchanged.
- **`u-menu-item` states its text alignment in logical terms.** The reflected `align` attribute is also HTML's legacy alignment attribute,
  which the browser turns into a physical `text-align` on the host (`align="left"` on a menu item left-aligned its text even in a
  right-to-left page). `left` now means the start side and `right` the end side; `center` is unchanged.

### Fixed

- **A host `aria-label` on a link-like component reaches its inner link, and follows a change.** The host's `aria-label` does not
  cross the shadow boundary, so a component has to copy it onto the `<a>`/`<button>` that takes focus — and because the attribute
  is not a declared property, a change after the element is connected never re-rendered. `u-card href` took the name only
  at the first render (a later `setAttribute('aria-label', …)` left the link with the old name or none), and `u-breadcrumb-item href`
  never copied it, so its link was named by its text only. Both now carry the host's name and track it, as `u-button` does.

- **`u-select multiple searchable` shows its whole placeholder.** With no chips the placeholder and the search input shared
  the row's width half and half, so a placeholder that fit the control was cut to «…» at half its width. While no chip stands
  the input now lies over the placeholder (as the single-value select already did) and the placeholder keeps the full width;
  typing hides it in place, so the row does not collapse. With chips the layout is unchanged.

- **`u-popover trigger="contextmenu"` opens from the keyboard in Safari.** The menu key and Shift+F10 on the anchor
  open it at the focused element. Chromium and Firefox turn those keys into a `contextmenu` event themselves; Safari does
  not, so a popover opened by right-click had no keyboard way to it there. The popover now takes the key (and ignores the
  `contextmenu` Chromium still fires when the menu key is released, so it opens once).
- **Labels that do not fit wrap instead of ending in «…».** `u-button`, `u-tag`, `u-option`, `u-menu-item`,
  `u-tree-item`, the `u-command-palette` item name and description, the `u-file-input` file name, the `u-steps`
  compact summary and the `u-carousel` page labels were one line with an ellipsis and no tooltip or title, so in a
  narrow place — a long translated label, 200% text, user text-spacing — the tail was cut and could not be read
  anywhere. A label that fits is unchanged; one that does not fit now wraps. `u-button` and `u-tag` break only between
  words, like a native `<button>`, so they do not shrink below their longest word. The `u-select` field keeps its single
  line: the open list now shows a long option in full (it wraps inside the list).

### Documentation

- The component skill's usage reference now teaches `--u-target-size` (a floor for everything that is pressed, with the
  `@media (pointer: coarse)` snippet) — it was only in `docs/theming.md`, so a consumer reading the skill wrote
  `::part()` rules per component instead.

- `u-input`: a sign-in form example with `autocomplete="username"` / `"current-password"`, and a note that the browser's
  password manager saves and fills `u-input` fields inside a `<form>` like native ones.

## [2.39.1] - 2026-10-31

### Fixed

- **`u-button` no longer puts `role="none"` on a host that carries `aria-*`.** 2.39.0 made every host presentational;
  on a host with `aria-pressed`, `aria-expanded` or `aria-haspopup` that is invalid ARIA (those states are not allowed
  on `role="none"`, and accessibility checkers report it as critical), and with a global attribute such as
  `aria-label` browsers ignore `role="none"` anyway. The host is presentational only while it has no `aria-*`
  attribute, and the role follows when one is added or removed. Your own role still wins.

## [2.39.0] - 2026-10-31

### Added

- **`delegate(type, handler)` and `listenInShadow(root, type, selector, handler)`** — event handlers for the parts of a
  shadow tree, heard on the shadow root instead of on the part. A `click`, `mousedown` or `mouseup` listener on an
  element makes screen readers announce it (and everything inside it) as «clickable» unless its role is button, link,
  menuitem, tab, option, radio, checkbox or switch; a listener on the shadow root is not announced. `delegate` is a Lit
  element directive used in place of `@click`: handlers run innermost first and `stopPropagation()` stops the ones
  further out; the element arrives as the second argument (`currentTarget` is the shadow root). A `null` or
  `undefined` handler listens to nothing, like `@click=${undefined}`.

### Fixed

- **Screen readers no longer announce «clickable» on our buttons, field labels and fields.** Measured with NVDA in
  browse mode, every `u-button` read as «clickable, button», and `u-field` labels, the `u-date-picker` /
  `u-date-range-picker` field and its label, the `u-select` field, calendar days, menu and tree item headers, rating
  symbols and the clear, password, stepper, remove, close and page buttons inside other components were announced the
  same way — each carried a click listener on an element. They are now heard on the shadow root.
- **`u-popover` hears a click on its anchor on the anchor's root** (the document or the shadow root it lives in) rather
  than on the anchor element, so the anchor is not announced as «clickable».

### Changed

- **`u-button` sets `role="none"` on its host** unless you set a role. The host only wraps the inner `<button>`; marking
  it presentational keeps your own `click` listener on a `u-button` from being announced as «clickable». A host with
  `aria-label` (or another global ARIA attribute) stays exposed — browsers ignore `role="none"` then. `u-button` now
  hears clicks on its shadow root; `click()` on the host keeps the same rules (does nothing while disabled or loading,
  submits or resets its form). A click event you dispatch on the host yourself no longer submits — call `click()`.

## [2.38.1] - 2026-10-31

### Fixed

- **`u-checkbox` and `u-switch` take a press on the whole row they stand in.** The press goes to the inner label, which
  was one line high — with a touch target (`--u-target-size: 44px`) the host stood 44px tall but its top and bottom
  bands did nothing. The label now fills the target height (the checkbox pads its single line, the switch has a minimum
  height); at the default 24px the row looks as before.

## [2.38.0] - 2026-10-31

### Added

- **`u-file-input` `directory`** — picks a folder instead of files. Every file under the folder lands in `value`
  (still `File[]`), each with its `webkitRelativePath`; the form submits them like `multiple`. The trigger reads
  "Choose folder" and the status shows the folder name and the file count (new locale strings `chooseFolder` and
  `folderSelected` in all fourteen built-in languages). Browsers do not apply `accept` to a folder pick.

### Fixed

- **`applyNumberFormat` returns `null` for a format code with more digit placeholders than `Intl.NumberFormat` takes**
  (more than 21 integer or 100 fraction) instead of throwing a `RangeError` — the answer it already gives for code syntax
  it cannot write, so a caller that shows the plain value for `null` no longer has to guard the call. A `flex-table`
  column whose `format` was a mistyped long run of `0` threw while rendering its cells.

## [2.37.0] - 2026-10-31

### Added

- **`:state(field)` on controls that draw an input box** — `u-input`, `u-select`, `u-textarea`, `u-date-picker`,
  `u-date-range-picker`, `u-file-input` and the `u-field` wrapper. Toggles that sit beside their text (`u-checkbox`,
  `u-switch`, `u-radio`) do not carry it. A layout that stands fields on their bottom edge and buttons, toggles and text
  on one text line can select `:state(field)` instead of listing tags (write it as an override of a rule for every
  item — Chromium does not recompute a negated `:not(:state(field))` when the state arrives). A `UFormControlElement` subclass from
  another package opts in with `protected static override fieldBox = true`.

## [2.36.0] - 2026-10-30

### Added

- **`applyNumberFormat(value, format, locale?)`** — one number format for tables, sheets and widgets: a spreadsheet
  format code (`#,##0.00`, `0.0%`, `#,##0;[Red](#,##0)`, `#,##0원`, sections, scaling, literals, `[$₩-412]`) or
  `Intl.NumberFormat` options. Returns `{ text, tone? }` — a section color becomes a theme status tone — or `null`
  for code syntax it does not support. Neither path writes a signed zero. Exported with the `NumberFormat`,
  `FormattedNumber` and `FormatTone` types.

### Fixed

- **`u-button` shows its keyboard focus ring.** The ring is the inner button's outline, drawn 2px outside the
  host box, and the host clipped its overflow — so a focused `u-button` (every appearance, link buttons too) looked
  exactly like an unfocused one (WCAG 2.4.7). The host no longer clips; the inner button does, which keeps the content
  inside the rounded box without cutting its own outline.
- **The focused name tab of `u-carousel pagination-style="labels"` shows its whole ring.** The row spans the host's width
  at its bottom edge and the host clips its slides, so the ring drawn outside the tab was cut on three sides; it is now
  drawn just inside the tab.
- **A `u-button` label too long for its width ends in «…».** The label box did not shrink, so the declared ellipsis
  never applied and the text was simply cut at the edge.

## [2.35.1] - 2026-10-25

### Fixed

- **A drawer that fills a phone screen keeps its close button and actions off the notch.** The panel now pads the
  screen edges it touches by `env(safe-area-inset-*)` — top, bottom and its own side for a side drawer — so on a page
  with `viewport-fit=cover` the header and footer no longer sit under a notch or home indicator. Pages without it see
  no change (the insets are 0).
- **An empty `u-date-range-picker` shows its whole placeholder.** The text box took the input's default width (about
  twenty characters), shorter than the range placeholder, so its end was cut off («YYYY-MM-DD – YYYY-MM-DI»). Without
  `chars` the box is now as wide as the longer of the placeholder and a filled range, measured in the rendered font;
  a width set on the host still decides.
- **`u-steps` no longer cuts off steps in a narrow box.** The default `line` form kept every step on one row, so in a
  narrow container (seven steps in a 22rem side panel) the steps past the edge were clipped. When the steps do not fit
  the element's width it now folds to one step per row, with the connectors running down from the markers, and
  returns to one row when the width allows. `bars` and `compact` are unchanged.

## [2.35.0] - 2026-10-24

### Added

- **`<u-command-palette>` — find anything from one field.** A dialog with a search field (WAI-ARIA APG combobox) over
  results grouped by source: give it `sources` (`{ id, label, search(query, { signal }) }`, sync or async), and it asks
  each with the empty query when opened, then again `debounce` ms after typing stops, aborting the previous request;
  a failing or slow source does not hold back the others. ↑/↓ move, Enter or a click chooses — a cancelable
  `command` event (`detail: { item, source }`), after which an item with `href` is followed unless canceled — and
  Escape closes; focus returns to where it was. The shortcut that opens it is the app's. `filterCommands(items, query)`
  filters static items with the locale's search match. New locale key `searchFailed`. New types `CommandItem`,
  `CommandSource`, `CommandSearch`, `UCommandPaletteCommandDetail`, `UCommandPaletteEventMap`.

- **`u-carousel` says which slide is shown, and slides out of view are out of reach.** A `change` event fires when the
  shown slide changes — by a person or by autoplay — with `detail: { index, previousIndex, cause }` (`'user'` or
  `'autoplay'`); setting `index` does not fire it and it does not bubble, like `u-tab-panel`'s. A wall screen whose
  heading follows each slide can now follow it. Slides out of view are now `inert`, so their links and buttons leave
  the Tab order and assistive technology reads only what is on screen (WAI-ARIA APG Carousel); with
  `slides-per-view` above 1 only the slides outside the range. An `inert` the page set on a slide is kept. New types
  `UCarouselChangeDetail`, `UCarouselEventMap`.

- **`<u-auto-scroll mode="item">` — one item at a time.** For a board read from across the room, where nothing can be
  read while it moves: it glides to the top of the next item and waits `pause` there. The items are the slotted
  elements, or a single wrapper's children. New type `AutoScrollMode`.
- **`<u-tab-nav appearance="tiles">` and `<u-tab count-appearance="figure">` — tiles for stations.** Equal tiles
  instead of an underlined strip, the current one filled (`--tab-nav-color`, text `--tab-nav-contrast`), wrapping when
  narrower than `--tab-nav-tile-min`. A `figure` count is a large number under the label — for a shop-floor terminal's
  stations, where how much waits at each is why you pick one. New type `TabNavAppearance`.
- **`<u-steps appearance="compact">` — seven steps on one line.** One small segment per step and the current step's
  name beside them, for a list table's progress column, a preview panel or a card header. Travelled segments are
  filled, the current one takes the primary colour, a held one the warning colour and a skipped one is dashed. The
  other names stay in the list for assistive technology. New part `summary`, new custom properties
  `--steps-segment-width` and `--steps-current-color`.

### Fixed

- **A searchable `u-select` reads its chosen value again.** Since 2.34.0 its combobox is the edit field in the trigger,
  and that field stayed empty while closed — the chosen text was drawn beside it — so the accessibility tree and screen
  readers read «label, combobox, blank» (WCAG 4.1.2), and role-based test queries found no value. Closed, the field now
  holds the chosen option's text (WAI-ARIA APG editable combobox); focusing it selects that text, so the first key
  replaces it and becomes the query; closing or Escape puts the chosen text back. The `search` event still carries only
  what was typed. With `multiple`, the field stays the search box and the chosen chips are its description.

## [2.34.0] - 2026-10-23

### Changed

- **A searchable `u-select` is an editable combobox: its search input lives in the trigger.** Focus lands in it, so
  typing on the closed select opens the list and the typed text — the first syllable of a Korean, Japanese or Chinese
  composition included — is the query. Before, the trigger was not editable: the first keystrokes were dropped (an
  input method cannot compose there) and the list had to be opened with ↓ or a click first. The dropdown no longer
  holds a search field and no longer has `role="dialog"`; the combobox is the input (`aria-autocomplete="list"`),
  `::part(search-input)` is that input, and `focus()` focuses it. Closing the list clears the query (a `search` event
  with an empty query follows), so the trigger shows the value again. `Escape` keeps the focus in the input.

### Fixed

- **`u-dialog` and `u-drawer` footers keep their padding and divider under a document-wide reset.** They were set on
  the slotted footer element, and document rules beat `::slotted()` rules whatever their specificity, so Tailwind's
  preflight (`* { padding: 0; border: 0 solid }`) stripped them. A new `footer` part inside the shadow root draws
  them now; the slotted element keeps its flex row and gap. Padding or a border you set on the slotted element now
  adds inside the footer.
- **Prefix and suffix spacing survives a document-wide reset** on `u-button`, `u-badge`, `u-breadcrumb-item`,
  `u-input`, `u-menu-item`, `u-option`, `u-tab`, `u-tree-item` and `u-select`. The gap beside a `prefix` or `suffix`
  slot was a margin on the slotted element, which a reset like Tailwind's preflight removes, so icons sat against the
  text. The slots now sit in a box inside the shadow root that carries the gap, and that box takes no space while
  its slot is empty.
- **`u-tab-panel` card and pill tab borders, and the dividers of a button-style `u-radio`, survive a document-wide
  reset.** They were borders on the slotted tabs and options. The container now hands the width and colour down
  through custom properties and each tab or option draws them on its own inner box.

### Added

- **`unattended` on `u-carousel` and `u-auto-scroll`** — for a wall display, lobby or kiosk screen nobody operates. A
  full-screen board always has the cursor over it, and a tap leaves focus in it; without it the carousel stopped on
  that slide and the list stopped scrolling, for good. With `unattended` the pointer and focus from a tap do not stop
  them, and a stop caused by keyboard focus ends after `resume-delay` (30 s by default) without a key press or a click.
  The carousel's stop button still stops it (WCAG 2.2.2). `u-carousel` also gets `startRotation()` / `stopRotation()`.
- **Type-ahead on a non-searchable `u-select`** — a letter on the closed trigger picks the next option whose text
  starts with it (`change` fires), the same letter again cycles, and letters typed within half a second form a word;
  on an open list the letters move the focus instead. This is what a native `<select>` does.

## [2.33.0] - 2026-10-23

### Added

- **`u-steps appearance="bars"`** — each step an equal column with a bar on top and its name and description (a date)
  under it; travelled and current bars filled, the current name bold. For a detail page header with seven dated steps.
- **`u-steps` status `skipped`** — a step this record's route does not have (an order with no proof): a dashed ring, or
  an empty bar, and the hidden word «Skipped» (`stepSkipped`, in every bundled locale).
- **`u-card tone`** — `warning` · `danger` · `success` · `info` give the card that status's face and border, `primary` a
  main-colour border for the one card holding the next action. Painted on the inner box, so a page-set
  `--card-border-color` does not cover it.

## [2.32.0] - 2026-10-23

### Added

- **`u-auto-scroll`** — a box that scrolls its own overflowing content, slowly, for a screen nobody touches (a wall
  display, a kiosk): it waits at the top, scrolls to the end, waits, and starts over. It stands still under the
  pointer or with focus inside, never moves for reduced motion, scrolls by hand as usual, and starts over from the
  top when it comes back into view (a carousel returning to its slide). `duration` fits one round into a fixed time —
  a 20-second slide — whatever the list's length.
- **`u-carousel` `pagination-style="labels"`** — a row under the slides naming each slide (its `aria-label`) with a
  progress bar: passed tabs are full and the current one fills over `autoplay-interval` while rotating. For a
  rotating wall display read from across the room. Parts `dot-label`, `dot-track`, `dot-progress`. The stop/start
  button now follows the type ladder (24px at the default 13px label step), so it grows on a large-text screen.
- **`Theme.override(theme)`** — applies a theme to the document without changing or storing the user's preference
  (`get()` keeps answering it); `null` returns to the preference. For a screen that owns its background, such as a
  floor board that stays dark.

## [2.31.1] - 2026-10-23

### Fixed

- `u-avatar` initials now meet WCAG AA contrast. The default background moves from `--u-neutral-500` to `--u-neutral-700`
  (fallback `#9E9E9E` → `#616161`): white initials measured 2.68 (light) and 2.69 (dark) on the old step and 6.19 · 6.08
  on the new one. Avatars without a `background` of their own render a step darker.

## [2.31.0] - 2026-10-23

### Added

- `u-date-range-picker`: built-in presets `last3Months` and `last6Months` — the months ending today, the quick periods a
  business list offers beside «last 7 days». A day the earlier month lacks clamps to its end (the 3 months ending May 31
  start on March 1). Labels in all 14 locale tables.

### Fixed

- `u-radio` with a `label` no longer logs «u-field label="…" has no form control» in development. The group was named
  correctly; the check did not follow the radio's slotted options. An element with an ARIA widget role
  (`radiogroup`, `listbox`, `combobox`, `slider` and the like) now counts as the control a field label names.

## [2.30.2] - 2026-10-22

### Fixed

- `u-input type="number"`: a value that is a multiple of `step` is no longer reported as a step mismatch when `step` is small
  (`49.7` with `step="0.000001"`). The check divided and allowed an absolute error of `1e-9`, but floating-point division
  error grows with the quotient; it now compares exactly at the longest decimal precision of the value, the minimum and the step.
- Any form control: while an error is shown, changing `value` from code (clearing it, restoring a default) now re-judges it —
  an error that no longer applies is hidden instead of staying under an empty field. An error is never newly shown this way;
  that stays the job of blur and submit.
- `u-input type="number"`: the stepper (buttons, ArrowUp/ArrowDown) finds the neighbouring step with the same exact
  comparison, so it no longer stalls on a small step with a large quotient (`49.699999` with `step="0.000001"`).
- `u-tooltip`: the tooltip text now reaches assistive technology. The host gets `role="tooltip"` and an `id`, and each target gets
  that `id` appended to `aria-describedby` (existing values are kept, an author's own `id`/`role` is left alone, and the link is
  withdrawn when the tooltip leaves or `for` changes). An `interactive` tooltip keeps the description link but gets no
  `role="tooltip"`, since content a user operates is not a tooltip in the WAI-ARIA pattern.
- `IconRegistry` no longer logs an error for an icon request cut off by leaving the page (`pagehide` / `beforeunload`, or an
  `AbortError`). Any other transient failure is still retried on the next lookup, and is now reported with `console.warn`
  rather than `console.error`.

## [2.30.1] - 2026-10-20

### Fixed

- Open floating elements (`u-select`, `u-popover`, `u-tooltip`, menus, pickers) no longer stay `visibility: hidden` when the
  ancestor that was clipping their anchor changes size. The anchor-hidden check only re-ran on scroll and on anchor/popup
  resizes, so a collapsed section that expanded after the popup opened left the anchor fully visible and the open popup
  invisible. Clipping ancestors are now observed for size changes while a popup is tracked.

## [2.30.0] - 2026-10-17

### Added

- Form controls (`u-input`, `u-select`, `u-textarea`, `u-date-picker`, `u-date-range-picker`, `u-file-input`,
  `u-radio`, `u-rating`, `u-slider`) take `description-display` (`inline` · `hint`) for the field they render — empty
  follows the app-wide `UField.descriptionDisplay`. Fold help text into hints app-wide and keep a note about the
  current state (why a field is locked, an input limit) under its control.
- `u-tab` `count-appearance` — `badge` (the pill, default) or `plain` (no pill: a smaller, weaker number beside the
  label, for a detail page with many tabs where seven pills read before the labels). `UTab.countAppearance` sets the app
  default; a tab's own attribute wins.

### Fixed

- `description-display="hint"`: a programmatic `focus()` no longer opens the hint — a drawer or dialog focusing its first
  field on open showed that field's tooltip over the control and blocked clicks on it. The hint opens on Tab (and on
  hover and tap, as before). The open tooltip also lets clicks through to what is under it.

## [2.29.0] - 2026-10-17

### Added

- Role colour `secondary` — a second brand colour next to `primary`, with no status meaning. The token sheets define
  `--u-secondary-color-weakest` · `-weaker` · `-weak` · `--u-secondary-color` · `-strong`, `--u-secondary-txt-color` and
  `--u-secondary-bg-color` (default: the purple ramp, distinct from the blue of `primary`/`info` and from the status hues),
  under the same contrast contract as the other roles in light and dark. `u-button`, `u-tag`, `u-chip`, `u-badge`,
  `u-checkbox` and `u-spinner` accept `color="secondary"`. Status-only surfaces (`u-alert`, `u-progress-bar` and
  `u-progress-ring` statuses) do not, as they do not accept `primary`.

## [2.28.1] - 2026-10-16

### Fixed

- `u-button` · `u-icon-button`: an empty state attribute on the host (`aria-pressed` · `aria-expanded` · `aria-haspopup` ·
  `aria-current`) reaches the inner button as `"true"`. React 19 writes a boolean `true` on a custom element as an empty
  attribute, so `<UButton aria-expanded={open}>` gave the focused button `aria-expanded=""` — not valid ARIA, read as
  «not expandable» once opened.
- `u-tooltip` · `u-popover`: a closed floating element takes no part in layout once its closing fade ends. A hidden
  absolutely positioned box still counted toward its scroll container’s overflow, so a never-opened wide tooltip next
  to an anchor near the right edge gave a vertical list a horizontal scrollbar. It is laid out again before it is
  measured for opening.
- `u-menu-item` with a submenu is named by its own label only — the children's labels were part of its name
  («Theme Light Dark»). It now carries `aria-haspopup="menu"` and `aria-expanded`, and the submenu is `role="menu"`.

### Changed

- Console diagnostics begin with `[@iyulab/components]`, so a message in a console shared by several packages says which one wrote it (several also say what to do next).

## [2.28.0] - 2026-10-15

### Added

- `u-option-group` — a labelled group of `u-option`s in `u-select` and the `u-input` combobox, the native `<optgroup>`.
  The heading is not an option (no focus, no selection; the arrow keys pass from group to group), the group is
  `role="group"` named by its `label`, and a group whose options a search filtered out is hidden, heading included.
  Options added to a group later are picked up.

### Fixed

- `plugins/dts-globals`: augmentations of a bare module — `declare module 'react' { namespace JSX … }` — are resolved like
  `declare global` blocks. The bundler copies them into every entry the same way, so a JSX props type the entry did not
  reach was left undeclared (`TS2304` with `skipLibCheck: false`).

## [2.27.1] - 2026-10-15

### Fixed

- `plugins/dts-globals`: a class the declaration bundler inlined into an entry as a private copy (declared there, exported
  only by another entry) is now pointed at the public export as well. The copy is a second nominal type for the same tag,
  so a program that loaded both entries failed with `TS2717`.

## [2.27.0] - 2026-10-15

### Added

- `plugins/dts-globals` — `fixPublishedDtsGlobals(packageRoot)`, a build step for packages that bundle their
  declarations (`vite-plugin-dts` with `bundleTypes`). The bundler copies every `declare global` merge of the source
  tree into each entry `.d.ts` but drops the classes those merges name when the entry does not reach them, so a
  consumer that checks library types (`skipLibCheck: false`) fails with `TS2304` just for importing the package. The
  step points each such name at the public entry that exports it (`import('<package>/<subpath>').Name`), types a tag
  whose class no entry exports as `HTMLElement`, and leaves built-in types alone. Call it from the plugin's
  `afterBuild` hook (`import { fixPublishedDtsGlobals } from '@iyulab/components/plugins/dts-globals.js'`).

## [2.26.1] - 2026-10-14

### Fixed

- **Focus is visible in forced colors mode** (Windows contrast themes). Forced colors drop `box-shadow`, and
  `u-input`, `u-textarea`, `u-checkbox`, `u-switch`, `u-slider`, `u-file-input`, the calendar day, the picker field
  and time input and the date range presets drew focus with `box-shadow` alone — tabbing to them showed nothing. They
  now draw a `Highlight` outline in that mode. Normal rendering is unchanged.
- **`u-switch` on and off look different in forced colors mode.** The track and thumb were told apart by background
  colour only, which forced colours paint the same; the track now has a border and the thumb and the checked track use
  system colours.
- **Invalid `u-input`, `u-textarea` and `u-select` are marked in forced colors mode** with a dashed outline (their red
  ring is a `box-shadow`). Focus still wins while the field is focused.

## [2.26.0] - 2026-10-14

### Added

- `u-field` parts `header`, `label`, `required` and `footer` — a theme can draw the label row and the line under the
  control (description, or the validation message while `invalid`) its own way. Before, only the hint icon and its
  tooltip were reachable.

## [2.25.0] - 2026-10-14

### Added

- **`u-alert inline` — an alert in the page flow.** Without it an alert has the floating look a toast uses: content
  width, a large shadow, a scale transition, and the space it keeps while closed. With `inline` it fills its
  container, drops the shadow and the transition, and takes no space while closed — for a callout, an error summary
  or a result line. The default look is unchanged.
- `u-alert` `icon` slot — replaces the status icon (a pencil on a note).
- **`u-card href` — a card that is a link.** The outer box renders as an `<a>` (with `target`, `rel`, `download`): the
  text stays ink with no underline, the border carries hover, and the card does not lift. The focus ring is drawn
  inside the box, since the card clips its overflow. A host `aria-label` names the link.
- **`u-tag size="sm"` — a mark inside a line of text.** The overline text size and its leading with no block
  padding: about 18px with the border, so an attribute next to an id does not grow a dense table row. The default
  (`md`) is unchanged.
- **`u-tab-nav` — a tab strip of links.** For tabs that are URLs (saved views): a `<nav>` landmark named by `label`
  whose tabs are links (`<u-tab href>`), with the current one marked by `value` (or `active`) and announced as
  `aria-current="page"`. Each link is a Tab stop; there is no tab role and no arrow-key model — those belong to
  `u-tab-panel`, which switches panels on one page.
- `u-tab` `href` / `target` / `rel` — the tab renders as a link for `u-tab-nav` (no tab role, no remove button).
- `u-tab` `count` — a quiet count after the label (smaller, weaker, tabular digits in the active locale), in a panel
  tab or a link tab.
- `u-tab` `active` is now a declared property. The tab panel already set the attribute; a link tab reads it.

### Fixed

- `u-alert` keeps a `role` the author set. It wrote its derived role (`alert` / `status`) on every update, so a
  static note could not be `role="note"` and was announced as a live region. The derived role still applies when
  the author leaves `role` empty.

## [2.24.0] - 2026-10-14

### Added

- **A selection role — `--u-selection-color` / `--u-selection-txt-color`.** The mark of a chosen option and the check
  drawn on it: a checked `u-checkbox` (its default `color="primary"`), a selected `u-radio`, a `u-switch` that is on.
  They default to `--u-primary-color` / `--u-primary-txt-color`, so nothing changes unless a theme sets them — a theme
  with an ink primary points them at its interaction hue, the way it does the focus ring, and a checked box then
  reads as a choice rather than an action. An outlined checkbox keeps its check on `--u-primary-color-strong`.

## [2.23.2] - 2026-10-13

### Fixed

- **A dark button shows its hover and press.** `u-button` derived its hover and active colours by mixing toward black
  (85% / 70%), so a near-black brand colour — an ink primary such as `#18191B` — had nowhere to go: the hover was
  about 1.05:1 against the resting button and the most-pressed button on the screen showed no state. A colour darker
  than OKLab lightness 0.4 now mixes toward white instead; mid and light colours derive exactly as before. The same
  rule applies to the `link` text states of the decorative colours. Browsers without relative colour syntax keep the
  old direction.

## [2.23.1] - 2026-10-13

### Fixed

- A `u-dialog` or `u-drawer` whose controls are components — `u-button`, `u-icon-button` — gives the first of them the
  focus when it opens. The focus stayed on the dialog itself: the initial-focus search did not count a host whose
  shadow root delegates focus as focusable, and the trap's own «first tabbable» did not see inside it at that moment
  (a native `<button>` was found). `autofocus` on a `u-icon-button` is honoured for the same reason.

## [2.23.0] - 2026-10-13

### Added

- `u-field` can show its `description` as an info icon beside the label, with the text in a tooltip on hover, instead of
  a line under the control: `description-display="hint"` on one field, or `UField.descriptionDisplay = 'hint'` once for
  the whole app (that default also reaches the fields `u-input`, `u-select` and the other controls render internally).
  The control keeps the text as `aria-description`, a validation message still shows under the control, and a field
  without a label keeps the description inline. The hint opens on hovering the icon, on entering the field's control
  from the keyboard (a click into the control does not), and on tapping the icon (touch); Escape or focus leaving the
  field closes it. The icon is not a Tab stop.
- **`u-select searchable`: Enter in the search field picks the first match.** While there is a query, the first
  visible option is the active candidate — shown like a hovered option (`u-option[active]`) and announced through the
  search field's `aria-activedescendant` — and Enter selects it (and closes the list; with `multiple` it toggles and
  the list stays open). Typing «ap» and pressing Enter used to do nothing; the match took ArrowDown, then Enter. The
  Enter that commits an IME composition does not pick. Options a remote search puts in get a candidate as they arrive.

### Fixed

- An open `u-tooltip` closes on Escape — content shown on hover or focus could only be dismissed by moving the pointer
  or the focus away (WCAG 1.4.13). The tooltip joins the overlay layer stack, so inside a dialog the first Escape
  closes the tooltip and the next one the dialog.

## [2.22.0] - 2026-10-13

### Added

- `u-select` `search` carries `detail.composing` — `true` while an IME composition (Korean, Japanese, Chinese) is in
  progress, so `query` ends in a partial syllable (`ㅅ`, `성` on the way to `서울`). When the composition ends the event
  fires again with `composing: false` and the finished text; Chromium sends no plain `input` at that point, so a
  consumer that skipped composing events had no way to see the finished query. A consumer that searches a server can
  now skip composing queries. `search` no longer repeats an unchanged query.
- **Search matching** — `Locale.matchesSearch(text, query, options?)` and `Locale.registerSearch(locale, matcher)`. The
  default rule folds case and diacritics and compares Hangul syllables whole; with `composing: true` the query's last
  syllable, still being typed, is compared as the jamo in typing order, so it matches the word it is becoming (`성`
  and `서우` match `서울`). A query of consonants only matches initials (`ㅅㅇ` finds `서울`). `defaultSearchMatch`,
  `foldForSearch`, `hangulKeystrokes` and `initialsOf` are exported from `utilities/search`;
  `CompositionTracker.searchQuery(input)` gives the query and the flag together.
  `u-select searchable` filters with it — typing `서울` with a Korean IME narrows to `서울` and `성남` at `성` and to
  `서울` at `서우`, instead of waiting for the syllable to be committed. A language's own rule is registered with
  `registerSearch`.
- `CompositionTracker` and `replayInput` (`utilities/composition`) — for an input that filters or searches as you type.
  Attach a tracker to the input's `compositionstart`, `compositionupdate` and `compositionend`; `composing` says an IME
  composition is in progress and `settled(input)` gives the text without the syllable still being composed. Filtering
  on the settled text never hides an item the finished text would match. `new CompositionTracker(replayInput)` re-runs
  the input's own `input` handler when the composition ends, for an input that waits until then.
- `modelValue` on form controls — the value a `u-form` reads into and writes from its `model`. It is `value` by
  default; `u-checkbox` and `u-switch` exchange `checked`. A custom control whose state lives in another property
  overrides it.

### Fixed

- `u-select searchable` no longer hides options or announces "No matches" for a syllable still being composed. It
  filtered on every composition step, so typing «서울» with a Korean IME showed no options and announced "No matches"
  at «ㅅ», and showed only «성남» at «성». While composing it now filters on the committed part only, which never hides
  an option the finished text would match; "No matches" appears only when the committed part already matches nothing.
- `u-input` keeps `value` in step with the box during an IME composition. It used to update only when the composition
  ended, so the `input` events an ancestor received during composition read an old value (`undefined` or the previous
  syllable while the box showed «서울»). These events are now re-dispatched from the host and keep `isComposing`.
- Events re-dispatched from a control's host now bubble and cross shadow roots. `relay()` copied the original event
  with object spread, which does not include `bubbles`, `composed`, `cancelable` or `InputEvent` fields (they are
  prototype getters), so the re-dispatched event reached only listeners on the host itself. Affected: `change` from
  `u-checkbox`, `u-switch`, `u-textarea` and `u-file-input`, and `input` from `u-input` and `u-textarea`. A listener
  on an ancestor — a delegated handler, a dirty-state tracker, `u-form` — now receives each of these once, and
  `InputEvent.data` and `inputType` are kept.
- `u-form` keeps `model` in step with checkboxes and switches in both directions. It used to read and write their
  `value` (the submitted text), so a checked box put `undefined` in the model and `model.agree = true` did not check
  the box. With the propagation fix above, user edits in a checkbox, switch, textarea or file input now update
  `model` — before, only `u-input` reached it.

## [2.21.0] - 2026-10-12

### Added

- **Date values** — `readDateValue(value)` reads the three kinds of date text an app receives and says which
  one it is: `instant` (a date-time with `Z` or an offset — that moment), `plainDateTime` (no offset — local wall
  clock) and `plainDate` (`YYYY-MM-DD` — local midnight, not UTC midnight). It returns `null` for a day or time that
  does not exist (`2026-02-30`) instead of a rolled-over date. `writeInstant`, `writePlainDateTime`,
  `writePlainDate` and `localOffset` write a date back in the kind it was read. The date pickers and `formatDate`
  read through it.

### Changed

- `formatDate` shows ISO-shaped text that names no real day (`2026-02-30`) as the text itself, as it does for
  other invalid input — it used to format the rolled-over date (March 2). Text that is not ISO-shaped still goes
  to the platform parser.

## [2.20.3] - 2026-10-12

### Fixed

- `parseNumber` and `u-input type="number"` read an exponent, as a native number input does: `1e7`, `1.5e-6`,
  `2E+3`, and `1,5e3` on a comma-decimal page. Typed scientific notation used to report `badInput` with an empty
  value. This also fixes a round trip: `value` is written with `String(number)`, which uses exponent form for very
  small and very large numbers (`0,0000001` → `"1e-7"`), and `valueAsNumber` read that back as `NaN`.
- The React wrappers type an event with a standard DOM name (`change`, `input`, `copy`) as the DOM event the
  element dispatches — `Event`, `ClipboardEvent` — instead of `CustomEvent`. These events carry no `detail`; the
  old type let `e.detail` pass type checking and read `undefined` at runtime. Runtime behaviour is unchanged. A
  handler annotated `(e: CustomEvent)` or reading `e.detail` on these props now fails type checking: annotate it
  `(e: Event)` and read the value from `e.currentTarget`. Wrappers built with `plugins/vite-plugin-react-wrapper`
  get the same typing.

## [2.20.2] - 2026-10-12

### Fixed

- The React wrapper types name every event's `detail` type with an import. `onPageChange` on the `UPagination`
  wrapper used `PageChangeDetail` without importing it: under `skipLibCheck` the handler's event was silently
  `any`, otherwise the declaration failed with `TS2304`. The wrapper generator (`plugins/vite-plugin-react-wrapper`)
  now imports a detail type declared in the element's own module, and one imported from another package by its
  package specifier.
- The wrapper generator types an `@event`-only event from the package's event map declarations — an element-scoped
  `*EventMap`, then the `HTMLElementEventMap` / `GlobalEventHandlersEventMap` augmentations — when the event's
  `detail` is `CustomEvent<T>` (or an alias of it) with `T` importable. Events dispatched by a controller rather than
  `this.fire<T>()` were typed as a bare `CustomEvent`. Native-named events (`change`, `input`) are unchanged.

## [2.20.1] - 2026-10-12

### Fixed

- `u-date-picker` and `u-date-range-picker` in `mode="datetime"` read a value written with another offset as the
  instant it names. A value such as `2026-09-06T22:22:34Z` showed `22:22` on a `+09:00` machine, and editing it wrote
  that wall clock back with the local offset, moving the stored instant by nine hours. The picker now shows the local
  time of that instant, writes edits in the local offset for the same moment, and keeps the given string (no `change`)
  when a pick leaves the instant as it was. `start` and `end` on the range picker still return the halves as written.

## [2.20.0] - 2026-10-10

### Changed

- `required` on `u-field` makes the control it labels required. It only drew the marker, so a field shown as required
  submitted empty unless the control also carried `required`. A field wrapping several controls keeps the marker only;
  turning `required` off on the field removes only the `required` the field set.
- Form controls show their error when a submit attempt or `form.reportValidity()` on the owning `<form>` blocks
  submission. Submission was blocked but no control showed why. To check without showing errors, call the control's
  `validate(false)` — a page-level `form.checkValidity()` fires the same `invalid` event and shows errors too.
- `u-form.validate()` moves focus to the first invalid control and takes `report` like a control's `validate()`:
  `validate(false)` checks without touching the screen.

### Fixed

- `u-form` saw only its direct children, so a control wrapped in `u-field` or a layout element was not validated, synced
  from `model`, or reset — an empty required field reported the form valid. It now covers every control inside it, up
  to a nested `u-form`, and validates all of them instead of stopping at the first invalid one.
- `validate()` judged the previous value when the value was set in the same tick (`el.value = x; el.validate()`, and
  `form.model = …; form.validate()`), and left the error on. It now completes a pending render first.

## [2.19.1] - 2026-10-09

### Changed

- `Dialog` loads `u-input` only when `Dialog.prompt` is called. An app that imports `Dialog` from its own module for
  `alert` and `confirm` no longer carries the input and the popover, option and field it brings (gzip 62.4 KB → 43.7 KB
  in a minimal consumer); `prompt` loads it on first use and stays as before.

## [2.19.0] - 2026-10-09

### Added

- `plugins/vite-plugin-strip-css-comments` — a Vite plugin that strips block comments from `css` tagged templates
  in a package's own sources before the build. Lit packages use it so their style comments do not reach consumers
  (`import stripCssComments from '@iyulab/components/plugins/vite-plugin-strip-css-comments.js'`).

### Changed

- Comments inside the components' `css` styles are no longer shipped. A tagged template's body is a string, so a
  consumer's bundler could not remove them; they were design notes, sent to every browser. A consumer bundle of the whole library is about a fifth smaller (gzip 141.9 KB → 114.2 KB),
  a single `u-button` about a sixth (33.4 KB → 27.7 KB).

### Documentation

- The README and the skill teach importing utilities from their own modules
  (`@iyulab/components/dist/utilities/Theme.js`) in an app that imports components one by one. The barrel registers
  every component even when one value is taken from it — `Theme` alone measured 158 KB gzip through the barrel and
  19 KB through its module.

## [2.18.0] - 2026-10-08

### Added

- **`decodeDelimited(text, delimiter)`** (`utilities/tsv`) — reads comma- or semicolon-separated text with the same
  quoting rules as `decodeTsv` (RFC 4180), which is now `decodeDelimited(text, '\t')`. A file importer had only the tab
  reader, so a comma CSV came back as one cell per line.

## [2.17.0] - 2026-10-08

### Added

- **`u-input type="search"` fires `search { query }`** when a search is committed — `Enter`, the clear button, or
  `Escape`, which now clears a non-empty search field in every browser (an empty field leaves `Escape` to the page).
  `query` is the value with surrounding spaces trimmed. A list search box had no event in the shape list sources take;
  the native `search` event exists only in some browsers and stays inside the shadow root. `UInputEventMap` types it.

### Fixed

- `u-steps` keeps its screen-reader-only status text inside the element — the absolutely positioned text escaped an
  unpositioned scroll container and could stretch the document.
- **`u-icon-button` and `u-copy-button` follow the control density** — their glyph size is `--u-density` × 10/7
  and × 9/7 (20px and 18px at the default density, unchanged). On a screen that raises the density, the
  `u-button` text grew and the icon buttons beside it stayed put.
- **`u-alert`'s body reads `--u-text-body-size`** (14px by default, unchanged) — like its title, which already read
  `--u-text-subtitle-size`.

### Documentation

- `docs/react-events.md`: an event description that spans several lines in the source is shown in full (it was cut
  after its first line, mid-sentence, in nine rows), and an element that redescribes an inherited event shows its own
  description (`u-tooltip` and `u-popover` showed the base class wording for `show`/`hide`).

## [2.16.0] - 2026-10-07

### Added

- **`u-pagination` `label` and `formatRange`.** `label` names the navigation (the locale string when empty) — two
  pagers on one page were two landmarks with the same name. `formatRange(start, end, total)` builds the range text
  when a screen formats counts its own way. Both are what a table needs to use `u-pagination` as its pager.

## [2.15.0] - 2026-10-07

### Added

- **`isFromControl(event, boundary)`** — whether an event came from a control inside `boundary`: a link, a button, a
  form field, or an element with a control role (`button`, `link`, `checkbox`, `switch`, `radio`, `menuitem`,
  `option`, `tab`). Open shadow roots are looked into, so a `u-button` counts. For a box that reads «pressed» for
  itself — a row that opens on click — so that pressing a control it renders stays that control's act.

## [2.14.0] - 2026-10-07

### Added

- **`u-pagination`** — page navigation for a paged list: the range and total ("101–120 of 345"), previous / next, page
  numbers with gaps, and optionally rows per page (`page-sizes`). `page` is zero-based, the same axis as the data
  sources and both tables; `page-change` carries `{ page, pageSize }` (a size change goes back to page 0) and is
  cancelable — uncancelled, the element updates itself. A `<nav>` named by the locale, "Page n" buttons, the current
  one with `aria-current="page"`. 14 locales.
- `u-button` forwards `aria-current` to the element that takes focus, like its other state attributes — a current
  page, step or item set on the host was not read.

## [2.13.1] - 2026-10-07

### Fixed

- **`u-date-picker` and `u-date-range-picker` are as tall as the other fields of the same size.** Their typed-date
  text box (since 1.55.0) took the line height from the page (`normal`) instead of the 1.5 the other fields use, so
  in a form row the pickers sat 3–8px lower than `u-input` and `u-select` beside them (at the default density: 24 /
  26 / 30px against 27 / 31 / 36px). The text box now uses the same line height.

## [2.13.0] - 2026-10-07

### Changed

- **`size="sm"` and `size="lg"` follow the density** (`--u-density`) on `u-button`, `u-input`, `u-select`, `u-textarea`,
  `u-date-picker` and `u-date-range-picker`: sm is 6/7 of it and lg 8/7. They were 12px and 16px whatever the density,
  so a host that raised the density (a field or touch mode) enlarged the default controls and left the small ones
  at 12px. At the default density (14px) nothing changes.

## [2.12.1] - 2026-10-07

### Fixed

- **A `chars` field measures again when an inherited font changes** (`u-input`, `u-select`, `u-date-picker`,
  `u-date-range-picker`). The field was measured when it rendered, so a font change coming from outside the
  component — a page switching its density or text size at runtime — left it at the old width: too wide after
  shrinking, cutting the last characters after growing. The field now notices inherited font size, family and
  letter-spacing changes and measures again.

## [2.12.0] - 2026-10-07

### Added

- **`u-select` `filter="none"`** — a searchable select that leaves filtering to you. The `search` event could already
  drive a server query, but the built-in filter kept running and could not be turned off: options the server found
  by several words or by another field stayed hidden (a reused `u-option` kept the `hidden` of the earlier text), so
  the results looked empty. With `filter="none"` nothing is hidden. `local` stays the default.
- **No matches** — when the search text matches no option (and the select is not `loading`), the dropdown says so
  in a status line (`part="no-matches"`, new locale key `noMatches` in all fourteen languages).

### Fixed

- With local filtering, options added while a search text is in place are filtered by it too; they appeared
  unfiltered. And an option added a moment ago is matched by its label — before its first render it was matched
  by its `value` (`UOption.getText()` read the label from its own slot, which did not exist yet).
- **A stretched `u-card` keeps its border on the whole card.** The border is drawn by the inner `.base` (so app
  resets do not remove it), which did not grow with the host: a vertical card stretched to its row's height, or
  given a height, closed its border at the content and painted a second, borderless panel below.

## [2.11.1] - 2026-10-07

### Fixed

- **A `chars` field holds N characters as they are drawn** (`u-input`, `u-select`, `u-date-picker`,
  `u-date-range-picker`). The width was `N` CSS `ch`, which is one `0` without font features or letter spacing, so
  with tabular figures (`font-variant-numeric: tabular-nums`, as the house theme sets) or letter spacing the last
  digit was cut — six digits in Pretendard 14px overflowed by 2px. The field now draws N zeros in the text's own
  computed font off-screen and uses that width; it re-measures when the font loads or the size changes.

## [2.11.0] - 2026-10-07

### Added

- **`chars` on `u-select`, `u-date-picker` and `u-date-range-picker`** — the same declaration `u-input` has: an unsized
  field draws at N characters + its suffix buttons + padding, and a sized one uses it as the text floor. These fields
  had only the text floor (`--*-min-text`), so a consumer sized them by copying the clear, arrow and calendar button
  boxes and the padding into a `calc()`. An unsized `u-select` also widened and narrowed with the chosen option; with
  `chars` its width holds and a longer option ends in an ellipsis.

## [2.10.3] - 2026-10-07

### Fixed

- `u-input` and `u-select` register the `u-popover` they render with an explicit import. They imported `UPopover` for
  a type only, and the published modules kept the import by accident (decorator metadata) — a build setting away from
  the same undefined-element failure 2.10.2 fixed for `u-select`'s chips.

## [2.10.2] - 2026-10-07

### Fixed

- **A deep import of `u-select` registers `u-chip`.** Multi-select chips are `<u-chip>` elements, but `UChip` was
  imported for a type only, so the build dropped the import: with `@iyulab/components/dist/components/select/USelect.js`
  alone the chips were undefined elements. The barrel import hid it (another module registered `u-chip`).
- **`Dialog.prompt`'s text box is named by the message** — it had only its placeholder, which is not a name (it
  disappears as you type).

## [2.10.1] - 2026-10-07

### Documentation

- The `Theme.resolved()` row of the theme reference had an unescaped `|` in its type cell, which split the table row
  into extra columns.

## [2.10.0] - 2026-10-07

### Changed

- **Host roles and names are attributes, so role-based test queries find them.** `u-dialog`/`u-drawer` (`dialog`,
  `aria-modal`, named by the `header` slot through `aria-labelledby`), `u-field` as a labelled `group`,
  `u-progress-bar`/`u-progress-ring`/`u-spinner` (`progressbar` and `aria-valuenow`/`min`/`max`), `u-carousel`
  (`region`, `aria-roledescription`) and the `u-tree-item` name were `ElementInternals` defaults. Those are invisible
  from the DOM by design, so Playwright's `getByRole`, Testing Library and axe-core found no dialog, group, progress bar
  or region — only the browser's accessibility tree had them. The accessibility tree is unchanged. An attribute is the
  component's only if it was empty when first written; a `role` or `aria-*` you set — before or after — is never
  overwritten or removed. A `header` element without an `id` gets one (`u-name-N`) so the dialog can reference it.
## [2.9.1] - 2026-10-07

### Fixed

- **`u-field`'s label names the group when it spans several controls or one that names itself.** It always copied the
  label onto the first slotted control, so "Theme" over two buttons "Light · Dark" made the first button read
  *Theme* — its visible text and its name disagreed (WCAG 2.5.3 Label in Name). With two or more controls, or a single
  button, link, checkbox, switch or radio with its own text, the field is now a `group` named by the label and
  described by `description`; each control keeps its own name. A single input is named by the label as before.

## [2.9.0] - 2026-10-07

### Added

- **`u-input` `chars`** — the number of characters the field holds. An unsized field (the default `inline-block`) draws
  at N characters plus its suffix icons and padding, so "a 12-digit number box" no longer needs a `calc()` that copies
  the field's icon boxes and padding (and drifts when the host target floor changes). In a sized field it is the text
  floor. Native `<input size>` / CSS `field-sizing` axis — `size` is already this component's sm/md/lg scale.
- `AlertDialogOptions.confirmLabel` and the locale key `ok` (en `OK`, ko `확인`, es `Aceptar` …).

### Fixed

- **`Dialog.alert` has an OK button**, focused when it opens — like a native `alert()`. It opened with no button at
  all, so it closed only by Esc or a backdrop click (neither visible), and the `alertdialog` had nowhere for focus to
  go (WAI-ARIA APG Alert Dialog).

## [2.8.0] - 2026-10-07

### Added

- **Switching the locale at runtime updates what is already on screen.** `Locale.set()` and `Locale.register()` now
  notify, and every connected component re-renders — including text it keeps outside its template: form validation
  messages, `u-spinner`'s default name, `u-split-panel`'s handle name, `u-carousel`'s descriptions and slide names, the
  decimal separator shown by `u-input type="number"`. An element detached during the change catches up when attached
  again. Before, the old language stayed until something else re-rendered the component.
- `Locale.subscribe(listener)` (returns the unsubscribe function) and `Locale.revision` for your own code —
  `useSyncExternalStore(Locale.subscribe, () => Locale.revision)` in React.
- `UElement.localeChanged()` — a protected hook for subclasses that keep localized text outside `render()`.

### Fixed

- **An unknown `u-alert` `status` warning names the likely word** — `status="danger"` now warns "Did you mean
  status="error"?" (also `warn`, `critical`, `positive` …). `status` is an outcome (`error`) while a button's or
  badge's `color` is a palette role (`danger`); a value carried over from `color` rendered as a neutral notice with only
  the list of valid values to go on.

## [2.7.0] - 2026-10-07

### Added

- **`u-carousel` has the WAI-ARIA APG carousel structure.** The host is a `region` described as a "carousel" and each
  slide a `group` described as a "slide" and named by its position ("2 of 5"), so a screen reader announces where it
  is. Name the carousel with `aria-label`. A `role`, `aria-roledescription` or `aria-label` already on a slide is kept.
  New locale keys `carousel`, `slide`, `slideOf` (all built-in languages).
- `--select-min-text`, `--date-picker-min-text`, `--date-range-picker-min-text` (see below).

### Fixed

- **`u-file-input` clear button has a 24px target** (WCAG 2.2 SC 2.5.8) and follows `--u-target-size`. It was the bare
  16px glyph.
- **`u-date-picker` and `u-date-range-picker` clear and calendar buttons have a 24px target** (WCAG 2.2 SC 2.5.8) and
  follow the host floor `--u-target-size`. They were the bare 14px glyph, so a page that set a 44px floor still had two
  14px buttons in every date field. The glyph stays 1em; the press area grows into the field's padding, so the field
  keeps its height.
- **`u-select`, `u-date-picker` and `u-date-range-picker` no longer fold their text to nothing in a narrow box** — the
  same floor `u-input` got in 2.4.0. With the clear button (and the host target floor) a 60px field drew 0px of text.
  Each now has a text floor (`--select-min-text`, `--date-picker-min-text`, `--date-range-picker-min-text`, default
  `4ch`, plus the suffix buttons); below it the field overflows its host visibly.

## [2.6.0] - 2026-10-06

### Changed

- **`u-rating` is one Tab stop and its arrows choose**, like a native radio group (WAI-ARIA APG Radio Group). Every
  star was a Tab stop, so Tab walked through five stars; arrows only moved focus, so the next Tab jumped back to the
  chosen star. Now Tab enters on the chosen star (the first when there is none) and leaves on the next press;
  `Arrow` keys move and choose, firing `change`, and `Home`/`End` choose the first/last. `focus()` goes to the chosen
  star (it went to the first).

### Fixed

- **`u-tree` is one Tab stop** (APG Tree View). Every item was a Tab stop. Now Tab enters on the item focused last (at
  first the selected item, else the first) and the next Tab leaves the tree; arrows move inside as before. When that
  item is collapsed away or disabled the stop moves to its nearest visible ancestor. Only the stop carries `tabindex`
  — an item is a shadow host and its children render in its slot, so a `tabindex="-1"` parent would take its whole
  subtree out of Tab order; `item.focus()` and a click make an item the stop first.

## [2.5.0] - 2026-10-06

An accessibility-tree audit of the interactive widgets — what a screen reader receives, not what the DOM says.

### Fixed

- **`u-progress-bar` and `u-progress-ring` are exposed as a `progressbar`** with `aria-valuenow`/`min`/`max`
  (no value when `indeterminate`). They had no role, so nothing was in progress as far as assistive technology knew.
  Name them with `aria-label`.
- **`u-spinner` is an indeterminate `progressbar` with a name** — its text (read once, as the name), or the locale's
  new `loading` word when it has none. It was invisible to assistive technology.
- **`u-rating` stars are named radios** (`1`…`max`; a screen reader adds "3 of 5"). They were five unnamed radios.
- **`u-tree-item` carries its structure and state:** `aria-level` (nested items all reported level 1 — they render
  through a shadow slot, so DOM nesting gave the browser nothing to count), `aria-expanded` on items with children,
  `aria-selected` in a `selectable` tree, `aria-checked` (`mixed` for a partly checked parent) in a `checkable` tree.
  An item is named by its own label; it was named with every descendant's text ("Root Child 1 Child 2").
- **`u-icon-button` is named by its tooltip text** when it has no `aria-label`. The slot only filled the tooltip,
  so a button written as the docs show had no name.

### Added

- Locale key `loading` (all 14 built-in languages).

## [2.4.0] - 2026-10-06

### Fixed

- **`u-dialog` and `u-drawer` are exposed as dialogs.** They trapped focus but carried no role, so a screen reader user
  landed among unfamiliar buttons without hearing that anything had opened, and `getByRole('dialog')` found nothing.
  The host is now a `dialog` (via `ElementInternals`), with `aria-modal` when `mode="modal"`, named by the `header` slot
  (tracking its content). `aria-label`, `aria-labelledby` and `role` on the host still override.
- **`Dialog.alert` and `Dialog.confirm` open as an `alertdialog`**, like a native `confirm()` — moving from `confirm()`
  to `Dialog.confirm` no longer loses that. With a `title` the title names the dialog and the message describes it;
  without one the message is the name. `Dialog.prompt` and `Dialog.show` are named the same way, as a `dialog`.
- **`u-switch` is exposed as a `switch`**, not a checkbox — announced as on/off, and found by `getByRole('switch')`.
- **`u-file-input`: setting `value` to `null` (or `[]`) clears the native input**, as `reset()` did. It only synced the
  form value, so after an app reset the state the native input still held the last file — picking that same file again
  fired no `change`, and nothing happened.
- **`u-input` keeps a minimum text area.** The suffix icons (number stepper, clear, password toggle) have a fixed box —
  at least 24px, or `--u-target-size` — and in a narrow field they took the whole width: a 90px number input drew a 0px
  text area, with no value or caret visible. The field now has a floor (`--input-min-text`, default `4ch`, plus the
  icons it shows); given less, it overflows its host visibly. Fields at their default or a wider width are unchanged.

## [2.3.1] - 2026-10-06

### Fixed

- **`Toast` renders its message as text.** `Toast.success`/`error`/`info`/`warning`/`notice`/`message`/`show` set the
  message as the alert's `innerHTML`, so markup inside it became elements — and toasts carry server error messages
  (`Toast.error(err.message)`, a data service's `notify.error`) and user data. Same class as the `Dialog` fix in 2.3.0;
  HTML in a toast was never documented.

## [2.3.0] - 2026-10-06

### Fixed

- **`Dialog.alert` and `Dialog.confirm` render a string `message` as text**, like `Dialog.prompt` always did. They passed
  it to `show({ content })`, whose string `content` is HTML, so a confirmation that included user input (an item's
  name) could inject markup — `<img src=x onerror=…>` ran. Nothing documented HTML in these messages; if you relied on
  it, pass a `TemplateResult` (below) or use `Dialog.show({ content })`, which keeps its HTML-string contract.

### Added

- `Dialog.alert` / `Dialog.confirm` accept `string | TemplateResult` — formatting goes through a Lit template, whose
  interpolated values stay text.

## [2.2.2] - 2026-10-06

### Documentation

- Examples that did not type-check against the API they teach: `Theme.init` persisted to localStorage with a `store.key` option that does not exist (the theme is stored under `theme`, with an optional `prefix`) in the theming guide and the skill reference; `Dialog.prompt` took `default` instead of `defaultValue`; the overlay-manager example read a field it never declared.

## [2.2.1] - 2026-10-06

### Fixed

- **`u-select`'s `search` and `u-tab-panel`'s `change` are typed for TypeScript listeners.** Each element
  declares its custom events (`USelectEventMap`, `UTabPanelEventMap`) and types `addEventListener` with
  them — `select.addEventListener('search', (e) => e.detail.query)` no longer needs a cast. They are
  element-scoped rather than global: `change` is already the native `Event` there.

### Documentation

- **Quick Start** — a first page (token sheet, `u-input` and `u-button` in a native form, a toast) that
  builds, type-checks and renders as written.

## [2.2.0] - 2026-10-06

### Added

- **`isTextEntry(target)`** — whether a key or clipboard event came from a text field (a text-like
  `<input>`, a `<textarea>`, editable content), which keeps its own clipboard. Pairs with
  `copyFromKey`/`pasteFromKey`: a grid skips its copy key in the cell editor, but not while a row
  checkbox has focus.

## [2.1.0] - 2026-10-06

### Added

- **`copyFromKey(text)` / `pasteFromKey()`** — Ctrl/Cmd + C, X and V for something that is not a text
  field (a grid's selected cells, a list's selected rows), working in every browser. They use the
  browser's `copy`/`cut`/`paste` event and its `clipboardData` when the browser fires one — no
  permission, any page — and the async Clipboard API when it does not: Safari fires no `copy` event
  without a text selection. `copyFromKey` resolves `true` only once the text is on the clipboard, so a
  cut can clear its selection safely. Call them from the shortcut's `keydown` without preventing the
  key.

## [2.0.3] - 2026-10-06

### Fixed

- **A control in a tree item, menu item or tab slot keeps its own keys and clicks** (`u-tree-item`,
  `u-menu-item`, `u-tab`). A button placed in the `prefix`/`suffix` slot could not be pressed from
  the keyboard — Enter and Space were taken by the tree or menu and selected the item instead — an
  arrow key on it moved to the next item, and a mouse click on it also selected or expanded the item
  and stopped there, so a listener outside never saw it. Keys and clicks from such a control now go
  to the control only; the item's keyboard model applies while the item itself has focus, as with
  interactive content inside `<summary>` or `<label>`.

## [2.0.2] - 2026-10-06

### Fixed

- **Space on a `u-select` option selects without scrolling the list.** In a `multiple` select the
  list stays open, and each Space toggled the option *and* scrolled the list, carrying the focused
  option away from the pointer's view. Enter and Space now only select.
- **Space on a `u-tab` selects the tab without scrolling the page.**
- **Keys pressed on a tab's close button belong to the button** (`u-tab[removable]` in
  `u-tab-panel`). An arrow key on the close button moved to the next tab, and Enter selected the tab
  being closed before closing it. The tab keyboard model now applies only while the tab itself has
  focus.

### Tests

- Keyboard contracts of `u-radio` (arrows move focus and selection together and wrap, Home/End,
  disabled options skipped, one tab stop) and `u-select` (open with Enter, arrows/Home/End on
  options, Enter/Space select, Escape closes and returns focus, search field arrows to the
  first/last visible option) are now pressed with real key input.

## [2.0.1] - 2026-10-05

### Fixed

- **A press on a date picker's calendar keeps focus in the picker** (`u-date-picker`,
  `u-date-range-picker`). Pressing a part of the calendar that takes no focus — the month title, the
  weekday row, a gap — moved focus to the page with the calendar still open: the keyboard lost its
  place, and a host that ends an edit on `blur` (a table cell editor) ended it in the middle of
  choosing. Presses on controls (days, buttons, the time input) are unchanged.

### Documentation

- README: individual imports use the exported `dist/components/<name>/U<Name>.js` paths (the
  `@iyulab/components/u-button` form shown before was never exported).

## [2.0.0] - 2026-10-05

### Changed (breaking)

- 🔴**One appearance vocabulary — `variant` → `appearance`** (no aliases). Values mean the same thing
  on every component: `solid` (filled with the colour) · `soft` (tint, no outline) · `outlined` ·
  `plain` (no chrome) · `underlined` (fields only) · `link` (button family only). Migration, per
  component:

  | Component | Before | After |
  |---|---|---|
  | `u-button` · `u-button-group` · `u-icon-button` · `u-copy-button` | `variant="solid"` · `"filled"` · `"surface"` · `"outlined"` · `"ghost"` · `"link"` | `appearance="solid"` · `"soft"` · `"soft"` · `"outlined"` · `"plain"` · `"link"` |
  | `Dialog` action options | `{ variant }` | `{ appearance }` |
  | `u-tag` · `u-chip` | `variant="solid"` · `"filled"` · `"surface"` · `"outlined"` | `appearance="solid"` · `"soft"` · `"soft"` · `"outlined"` (new: `"plain"` — coloured text only) |
  | `u-badge` | `variant="pill"` · `"dot"` · `"square"` | `shape=` same values (`variant` there was a shape, not an appearance) |
  | `u-alert` · `Toast` options | `variant="solid"` · `"filled"` · `"outlined"` · `"glass"` | `appearance="soft"` · `"soft"` · `"outlined"` · `"soft"` — the old `solid` was a tint with an outline, not a solid fill, so both tints are `soft` (tint, no outline); `glass` is removed |
  | `u-checkbox` | `variant="filled"` · `"outline"` | `appearance="solid"` · `"outlined"` |
  | `u-input` · `u-select` · `u-textarea` | `variant="outlined"` · `"filled"` · `"underlined"` · `"borderless"` | `appearance="outlined"` · `"soft"` · `"underlined"` · `"plain"` — on a field `soft` is a tinted face that keeps a bottom border (the old `filled` look), so the focus line has somewhere to show |
  | `u-card` | boolean `borderless` | `appearance="plain"` — no border and no shadow (default `outlined`); `shadowless` stays |
  | `u-menu` | boolean `borderless` | `appearance="plain"` (default `outlined`) |
  | `u-tab-panel` | `variant="line"` · `"card"` · `"pill"` · `"plain"` | `appearance=` same values |
  | `u-divider` | `variant="solid"` · `"dashed"` · `"dotted"` | `line=` same values (a line style, not an appearance) |
  | `u-text` | `variant` | unchanged — the only remaining `variant`, the typography step |
  | `u-radio` | `variant="filled"` · `"outlined"` | `appearance="solid"` · `"outlined"` (new: `"soft"` — a segmented control, `type="button"` only) |

  `u-icon-button` and `u-copy-button` default to `appearance="plain"` (was `variant="ghost"`).
  `u-tag` and `u-chip` default to `appearance="soft"` (was `variant="filled"`).
  `u-alert` and toasts default to `appearance="soft"` (was `variant="solid"`, the same tint plus an outline).
- 🔴**`color="neutral"` means achromatic (grey) everywhere; the brand colour is `primary`.** Before,
  `neutral` on `u-button` was the brand path (its default) while on `u-badge`/`u-checkbox` it was
  grey. A `u-button` with no `color` is now painted as `primary` — a bare button looks the same; a
  button that set `color="neutral"` explicitly is now a grey button (drop the attribute or use
  `primary` for the old look). `color` has no default value, so a bare button carries no `color`
  attribute and `u-button[color="primary"]` still picks out only the buttons that set it. `plain` and
  `link` buttons show body/link text with no `color` or `neutral` and take the colour for every
  other value — `appearance="plain" color="primary"` draws brand-coloured text, as
  `variant="ghost" color="primary"` did in 1.x.
- 🔴**Text fields take `size="sm|md|lg"` like buttons, and `md` no longer inherits the font size.**
  `u-input`, `u-select`, `u-textarea`, `u-date-picker` and `u-date-range-picker` render at
  `--u-density` (14px) by default — 12px for `sm`, 16px for `lg` — so a field and a button of the same
  size share a height (fields used to inherit the surrounding font size and grew taller than the
  button beside them in larger text). `u-input`'s old `size` (the native character-width number) is
  removed — set the width with `--u-input-width`. Suffix icons (clear, password toggle, steppers,
  the select's clear) keep a 24×24 target at every size: their padding is
  `max(0.25em, 12px − 0.5em)` (unchanged at 16px), where it used to be 0.25em and fell to 21px at 14px.
- 🔴**`u-checkbox`: the default `color` is `primary`, and `blue` is blue.** The old default `blue` had no
  rule of its own and painted the brand colour — the word meant "no colour set". A bare checkbox looks
  the same; one that set `color="blue"` explicitly now gets the palette blue. The `--checkbox-fill-color`
  hook is removed for the same reason as the tag's: every colour fills the checkbox's own slot.
- **`u-spinner`: `color="neutral"` is grey** (it had no rule and drew in the brand colour).
- **`u-button`: a `soft` button in a role colour (`primary`·`info`·`success`·`warning`·`danger`) uses
  the role's surface token `--u-{role}-bg-color`**, the same surface a `soft` tag or alert of that
  colour uses, and deepens it on hover/active. It used to mix 12% of the fill colour into the
  background, so a `soft warning` button was almost white next to a `soft warning` tag. Decorative
  colours keep the 12% mix. A coloured `plain` button now hovers onto that surface instead of the
  neutral grey hover, so the colour stays the signal while the pointer is on it.
- 🔴**`u-tag` / `u-chip`: `color="neutral"` (the default) is grey; the decorative `gray` is removed.**
  A bare tag was a brand tint and a grey label needed `color="gray"`; now a bare tag is the grey label
  and a brand-tinted one is `color="primary"`. Replace `color="gray"` with `color="neutral"` (or
  drop it). The `--tag-fill-color` hook is removed — every colour fills the tag's own slots now, so
  the fallback it fed could no longer be reached. This includes the chips `u-select` draws for a
  `multiple` selection: they are grey now.

- **The built-in token sheets live in a cascade layer: `@layer iyu.base, iyu.house;`.** `light.css`
  and `dark.css` (static import or `Theme.init()`) declare the order and put every token in
  `iyu.base`. Unlayered application CSS now beats the defaults regardless of specificity, load
  order or `Theme.init()` timing; a house theme sits in `iyu.house` between the two.
  **Migration:** a plain `:root { --u-… }` override now also applies in dark mode — the dark
  palette no longer wins by specificity. Scope mode-specific values with `:root[theme="dark"]`.
  Selectors written only to win the specificity race (`:root:root`, `:root:not([theme="dark"])`)
  still work and can be simplified.
- **React wrapper props keep a component's own types where React also knows the name as an HTML
  attribute.** `color` was typed as React's `color?: string`, so `<UTag color="gray">` compiled
  although `gray` is not a `TagColor` — every role axis (`UButton`, `UBadge`, `UChip` …) accepted any
  string. A property the component declares now wins over the HTML attribute of the same name; DOM
  properties React does not model (`autofocus`) are still accepted. **Migration:** a value outside
  the documented union is now a type error — use one the component lists.
- **`IconRegistry.register(lib, resolver)` replaces an existing library.** It used to ignore a name
  that was already registered, so replacing a built-in CDN library with a local resolver silently did
  nothing unless `unregister` came first. Replacing evicts the library's cached icons, and a lookup
  still in flight with the old resolver no longer writes its result into the cache (`unregister`
  gets the same guard). **Migration:** `unregister` + `register` still works; `register` alone is
  enough. Code that relied on a second `register` being ignored now replaces the first.

### Fixed

- **Reduced motion reaches two more places.** `u-tab-panel` scrolled a horizontal tab list on the
  mouse wheel with `behavior: 'smooth'` regardless of `prefers-reduced-motion`; it now scrolls
  instantly when the user asks for less motion. `u-progress-bar[striped]` kept its stripes moving;
  the stripes now stand still (an indeterminate bar still moves — that motion says work is ongoing,
  as a spinner's does).

- **`u-radio type="button"`: its options are radios to assistive technology.** The button style
  hides the radio marker, and the option took its role from the marker — so a `radiogroup` held
  `role="option"` items with `aria-selected`. The role now follows the group.
- **`u-button` and `u-icon-button` pass button state ARIA to the element that takes focus.**
  Only `aria-label` used to cross the shadow boundary, so a toggle or disclosure button's
  `aria-pressed` / `aria-expanded` / `aria-haspopup` set on the host never reached assistive
  technology (WCAG 4.1.2). They are now moved to the inner `<button>` (`aria-pressed` not on a
  link), and `aria-controls` is carried as an element reference.
- **`u-tab-panel` tells assistive technology which tab is selected.** Tabs carry `aria-selected`,
  only the selected tab is a tab stop (roving tabindex — Tab used to stop on every tab), each
  `u-panel` becomes a `tabpanel`, and tab and panel are linked with `aria-controls` /
  `aria-labelledby` (ids are generated when missing). Selection used to show only through the
  `active` styling attribute (WCAG 4.1.2).
- **`u-radio` is one tab stop, and arrow keys select.** Only the selected option (or the first
  enabled one) is in the tab order, and ArrowUp/Down/Left/Right, Home and End move focus and
  selection together and fire `change` — the native radio group behaviour. Before, every option
  was a tab stop and arrows only moved focus. `focus()` now goes to that tab stop instead of the
  first option.
- **A field with `appearance="plain"` shows focus.** It draws nothing at rest, but used to draw
  nothing on focus either (since 1.x `borderless`), leaving only the caret; it now draws the focus
  ring (`--u-focus-ring-color`) while focused. Applies to `u-input`, `u-select` and `u-textarea`.
- **A single disabled option in `u-radio` stays disabled.** The group copied its own disabled state
  onto every option, so `<u-option disabled>` inside an enabled group was clickable. The group now
  blocks every option only while it is itself disabled or read-only, and restores each option's own
  state afterwards.
- **Every focus is visible on a soft segmented `u-radio`.** Its segments have no border and the
  option drops its outline, so the focused segment showed no change; it now draws the focus ring.

### Added

- **`--u-target-size` — a minimum size for every press target, independent of text size.** Unset by
  default (nothing changes). Set it — e.g. `@media (pointer: coarse) { :root { --u-target-size: 44px } }`
  — and buttons, text fields, selects, date pickers, menu/tree rows, options, tabs, expander headers,
  breadcrumb links and calendar days grow to at least that size; checkboxes, switches, rating stars,
  the slider thumb, field icons, the split handle and carousel dots keep their visible size and grow
  only the area that takes the press. Text size stays with `--u-density`. See `docs/theming.md`.
  Text fields and selects now clip their content at the outer edge of the border instead of the
  inner edge (`overflow: clip` with a 1px margin) so an enlarged field icon reaches the border;
  nothing renders differently at the default size.
- **`--u-canvas-bg-color`** — the application background behind surfaces (page body). Light default
  `neutral-100`, one step below raised chrome (`neutral-50`) and surfaces (`neutral-0`).
  `--u-bg-color` stays the surface components paint their own face with.
- **`--u-txt-color-weaker`** — a third text step below `-weak` for metadata, units, secondary columns
  and an empty value's dash (readable on the surface: 4.6 light · 5.0 dark).
- **`dot` on `u-tag`** — a small leading mark in the text colour (`part="dot"`, `--tag-dot-size`), for
  status labels repeated down a table column. The status `icon` wins when both are set.
- **Field box tokens** — `--u-field-padding-block` (0.3em), `--u-field-padding-inline` (0.6em) and
  `--u-field-radius` (0.25em), read by `u-input`, `u-select`, `u-textarea`, `u-date-picker`,
  `u-date-range-picker` and the calendar trigger. They were em literals a theme could not reach; a theme
  now sets form density in one place (height = 1.5em line + 2 × block padding + 2px). Defaults
  unchanged.
- **`appearance="soft"` on `u-radio type="button"`** — a segmented control: a quiet track (`--u-bg-color-raised`),
  the picked segment rises onto the surface with a light shadow; no joined borders. For switching a
  view or picking a level.
- **`u-steps`** — a display-only progress line (complete · current · hold · upcoming) from `items` and
  `current`; status by marker shape as well as colour, `aria-current="step"` and hidden status words
  for assistive tech (new locale keys `stepComplete`, `stepOnHold` in all 14 locales). Stack one per
  track with a `label`.
- **`--u-focus-ring-color`** — every keyboard focus ring reads it (default `--u-primary-color-strong`):
  outlines and the rings around checkbox, switch, file-input trigger, slider thumb, calendar days and
  range presets. A text field shows focus on its own border instead, which reads
  `--u-input-border-color-focus`. A theme with a neutral ink primary can keep focus on an
  interaction hue by setting both.

## [1.58.0] - 2026-10-03

### Added

- **`confirm` on `u-date-picker` and `u-date-range-picker`: apply calendar picks with a button.** With
  `confirm`, choosing a day, a time, a range, a preset, "Today" or "Clear value" in the calendar only
  stages the choice; the footer adds Cancel and Apply. Apply commits it and fires `change` once;
  Cancel, Escape or closing the calendar any other way drops it. Useful where a day and a time, or a
  range adjusted several times, should reach the app as one change. Typing in the field still commits
  on Enter or leaving it. New locale key `apply` in all built-in locales.
- **`isDateDisabled` on `u-date-picker` and `u-date-range-picker`: app rules for days that cannot be
  chosen** — weekends, holidays, fully booked days. The function receives the ISO day; a disabled day
  is drawn `aria-disabled`, cannot be picked, and turns "Today" (or a preset ending on it) off. A range
  may run across a disabled day but cannot start or end on one. A typed or assigned value on a
  disabled day reports `stepMismatch` with the new locale message `dateUnavailable`.

- **`u-date-range-picker mode="datetime"`: a period with start and end times.** Labelled start and end
  time inputs sit under the calendar; each half of the value is a complete ISO-8601 `DateTimeOffset`
  (`2026-10-01T09:00:00+09:00/2026-10-01T18:00:00+09:00`). The first range picked, and any preset,
  covers its days whole (00:00–23:59); picking other days afterwards keeps the times. The text box reads
  `2026-10-01 09:00 ~ 2026-10-31 18:00` and `2026-10-01 09:00 ~ 18:00`. New exports
  `parseDateTimeRange` / `formatDateTimeRangeText`, new parts `calendar-time` / `time-input`, new
  locale keys `startTime` / `endTime`.

- **`seconds` on `u-date-picker` and `u-date-range-picker` (`mode="datetime"`): times to the second.**
  The time inputs show seconds, the text box reads and shows `HH:mm:ss`, and in the range picker a
  whole day ends at `23:59:59`. Without it, times stay to the minute and typed seconds are dropped, as
  before. `parseDateTime` / `parseDateTimeRange` take `seconds: true` to keep them, and
  `formatDateTimeText` / `formatDateTimeRangeText` take a `seconds` argument to write them.

- **12-hour times are read.** `parseDateTime` and `parseDateTimeRange` — and so the text boxes of
  `u-date-picker` / `u-date-range-picker` in `mode="datetime"`, and other readers built on them — take
  `3:00 PM`, `3:00pm`, `p.m. 3:00` in every locale, and the locale's own words before or after the
  time (`오후 3:00` in `ko`, `午後3:00` in `ja`, `下午 3:00` in `zh-CN` …; `12 AM` is midnight, `12 PM`
  noon). The words come from the new locale keys `timeAm` / `timePm`. The value and the shown text
  stay 24-hour.
- **`Locale.getValue(key, params, locale)`** resolves a message for a given locale (along its
  fallback chain) instead of the active one.

### Changed

- **`u-carousel[autoplay]` starts stopped for users who prefer reduced motion.** With
  `prefers-reduced-motion: reduce`, rotation does not start on its own; the start button turns it on.
  Turning the setting on while the page is open stops rotation.

### Fixed

- **`u-date-picker mode="datetime"` takes the UTC offset of the chosen time, not of midnight.** On a
  day the clocks change, a time after the change carried the offset from before it.
- **`u-date-picker` re-validates when `min` or `max` changes.** A value that a new bound put out of
  range kept reporting valid until the value itself changed; `u-date-range-picker` already re-validated.

## [1.57.1] - 2026-10-03

### Fixed

- **`u-date-picker`: picking a day after typing shows the picked day.** Text typed into the field but
  not yet committed stayed in the box after a day was picked in the calendar (or the time changed), so
  the field showed the half-typed text while the value was the picked day. `u-date-range-picker` already
  cleared it; both pickers now share one implementation of the text box.

## [1.57.0] - 2026-10-03

### Added

- **`u-date-range-picker` takes a typed range.** The field is a text box like `u-date-picker`'s: type
  `2026-10-01 ~ 2026-10-31` (also `–`, ` - `, the ISO interval with `/`, a short second day such as
  `10-31`, or one day for a one-day range) and press Enter or leave the field. A second day without a
  year that would fall before the first runs into the next year (`2025-12-20 ~ 01-05`). It shows
  `YYYY-MM-DD – YYYY-MM-DD` in every browser language; `format="locale"` uses the locale's numeric
  order. Clicking the field opens the calendar and keeps the caret in the text box; ArrowDown or
  Alt+ArrowDown moves into the calendar. Text that is not a range clears the value and reports
  `badInput`. New CSS part `input`.
- **`parseDateRange`, `formatDateRangeText`** next to `parseDate`.

### Changed

- **`u-date-range-picker`: the trigger text is `YYYY-MM-DD – YYYY-MM-DD`** (was the locale's joined
  range, e.g. `Mar 6 – Apr 3, 2026`) so that what is shown can be typed back, and a click keeps focus
  in the text box — the same as `u-date-picker`.

## [1.56.0] - 2026-10-03

### Added

- **`u-date-picker mode="datetime"` takes a typed date and time.** The field is the same text box as in
  `mode="date"`: type `2026-10-02 14:30` (or `9:05`; seconds are dropped) and press Enter or leave the
  field. It shows `YYYY-MM-DD HH:mm` whatever the browser language (`format="locale"` writes the date
  part in the locale's numeric order). Typing only a date keeps the time already set. An impossible time
  (`25:00`) clears the value and reports `badInput`. The value is still a full ISO-8601 `DateTimeOffset`.
- **`parseDateTime`, `formatDateTimeText`** next to `parseDate`.

### Changed

- **`u-date-picker mode="datetime"`: the trigger text is `YYYY-MM-DD HH:mm`** (was the locale's medium
  date and short time, e.g. `Oct 2, 2026, 2:30 PM`), and a click keeps focus in the text box — the same
  as `mode="date"` since 1.55.0.

## [1.55.0] - 2026-10-03

### Added

- **`u-date-picker` takes a typed date.** In `mode="date"` the field is now a text box: type
  `2026-10-02`, `2026/10/2`, `20261002` or `10-02` (this year) and press Enter or leave the field.
  It shows the date as `YYYY-MM-DD` whatever the browser language — the native date input follows
  the browser's UI language instead (`10/02/2026` in an English browser), which is why a picker that
  could not be typed into was the only way to get a stable format. `format="locale"` shows and reads
  the locale's numeric order (`10/02/2026` in `en-US`, `02.10.2026` in `de`); ISO is read either way.
  Clicking the field opens the calendar and leaves the caret in the text box; ArrowDown or
  Alt+ArrowDown moves into the calendar. Text that is not a date clears the value and reports
  `badInput`, as the native date input does; a date outside `min`/`max` is kept and reported as out
  of range. New CSS part `input`. `mode="datetime"` is unchanged.
- **`parseDate`, `formatDateText`, `dateTextPattern`** — the text box's reader and writer, exported
  next to `parseNumber`: `parseDate('20261002')` is `'2026-10-02'`, `parseDate('2026-02-30')` is `null`.

### Changed

- **`u-date-picker` in `mode="date"`: the trigger text is `YYYY-MM-DD`** (was the locale's medium
  date, e.g. `Oct 2, 2026`) so that what is shown can be typed back. Use `format="locale"` for the
  locale's numeric order. A click no longer moves focus into the calendar — it stays in the text box
  so the person can type; the keyboard path into the calendar is ArrowDown.

## [1.54.0] - 2026-10-02

### Added

- **`u-date-range-picker`** — a period of days in one form field. The value is an ISO 8601
  interval, `YYYY-MM-DD/YYYY-MM-DD` (start first), with `start`/`end` getters; it submits as one
  field. The popover shows two months; the first day picked anchors the range and the range
  previews up to the day under the pointer or keyboard focus. The second day completes it — the
  earlier of the two becomes the start, so a range never comes out reversed. Escape while a range
  is half picked drops the anchor. Supports `min`/`max`, `required`, `clearable` and form reset.
- `u-date-range-picker` `presets` — quick ranges beside the calendar. Built-in: `today`,
  `yesterday`, `last7Days`, `last30Days`, `thisWeek`, `lastWeek`, `thisMonth`, `lastMonth`,
  `thisYear` (attribute: space-separated names); app-defined `{ label, range }` presets for
  periods such as fiscal quarters. Picking one commits the range; one that reaches outside
  `min`/`max` is disabled. Locale keys for their labels (`yesterday`, `last7Days`, `last30Days`,
  `thisWeek`, `lastWeek`, `thisMonth`, `lastMonth`, `thisYear`, `quickRanges`) in all 14 built-in
  locales.
- The range calendar announces the first day picked through an off-screen status region ("Start:
  March 5, 2026. Choose the end date."), and the preset equal to the current range is marked
  `aria-pressed="true"`. Locale key `rangeStartChosen`.
- `formatDateRange(start, end, options?, locale?)` — formats a date range with
  `Intl.DateTimeFormat#formatRange`, so the locale chooses the separator and drops the parts both
  ends share.
- Locale key `chooseDateRange` (the range calendar's dialog name), in all 14 built-in locales.
- `parseNumber(text, locale?)` — reads a number the way a person types it, in any locale (the
  inverse of `formatNumber`). With both `.` and `,` present the last is decimal; one separator
  repeated groups; a single `.` is decimal; a single `,` is decimal except on a dot-decimal locale
  with exactly three digits after it. Grouping by separators, spaces or apostrophes must come in
  threes. Returns `null` for anything else — never a partial number.

### Fixed

- **`u-input type="number"` reads a decimal comma.** A native number input drops or rejects it
  depending on the browser — `1,5` became `15`, a valid number ten times too large, with nothing
  invalid to report. The inner input is now `type="text" inputmode="decimal"` and the text is read
  with `parseNumber` in the page's locale. `value` stays the canonical dot-decimal string (`""` for
  text that is not a number, which reports `badInput`); new `valueAsNumber`. On blur the text is
  shown with the locale's decimal separator. `min`/`max`/`step` are checked on the parsed number
  with native semantics, and the stepper buttons and ArrowUp/ArrowDown step it.

### Changed

- `u-date-picker` draws its calendar through a new internal element, `u-calendar` (registered
  with the date picker; not exported from the package entry and not part of the public API). The
  picker's existing parts — `calendar-header`, `calendar-title`, `calendar-weekdays`,
  `calendar-grid`, `calendar-week`, `day` — still reach the day grid from outside through
  `exportparts`. The grid now carries an accessible name (the month and year).
- Calendar day cells never shrink below 32px wide; a multi-month calendar places the next month
  on its own row when the space for one month drops below that.

## [1.53.0] - 2026-09-30

### Fixed

- **An `autoplay` carousel can now be stopped** (WCAG 2.2.2 Pause, Stop, Hide). `u-carousel` with
  `autoplay` renders a stop/start button as the first control of its indicator row (part
  `rotation-button`, with localized names). Rotation also pauses while the mouse is over the
  carousel, and stops when keyboard focus moves into it until the user starts it again — the
  WAI-ARIA APG carousel pattern. While rotating, the slides are `aria-live="off"`; when stopped,
  `polite`, so a screen reader announces the slide the user moves to.
- Two built-in icons, `player-pause-fill` and `player-play-fill`, back that button.

### Changed

- Peer dependency ranges promise only the majors that are tested: `@lit/react ^1.0.8` (was
  `>=1.0.8`) and `react ^18.0.0 || ^19.0.0` (was `>=18.0.0`).

### Documentation

- README: a **KWCAG 2.2** table (the Korean web accessibility standard used for certification) — all
  33 check items, each marked as guaranteed by a test, shared with the app, or not applicable, with
  the test that measures it across this package and its siblings.

## [1.52.0] - 2026-09-30

### Added

- `encodeTsv(rows)` and `decodeTsv(text)` — the clipboard format spreadsheets use for copy and paste
  (tab-separated, RFC 4180 quoting). A cell containing a tab, a line break or a double quote is quoted,
  so a multi-line cell pastes into Excel as one cell instead of several rows; reading accepts CRLF,
  keeps rows of empty cells and treats a quote in the middle of a cell as text.
  `decodeTsv(encodeTsv(rows))` returns `rows`.

## [1.51.0] - 2026-09-30

### Added

- `isImeComposing(event)` — whether a key event belongs to an IME composition (Korean, Japanese,
  Chinese …). It checks `isComposing` and also `keyCode` 229, because Safari delivers the key that
  confirms a composition after `compositionend` with `isComposing` false. Use it in any handler that
  acts on Enter while the user types text.

### Fixed

- **`Dialog.prompt` no longer confirms on the Enter that finishes an IME composition** — typing a
  Korean name and pressing Enter closed the dialog before the last syllable was committed.
- `u-input` no longer submits its form on Safari's composition-confirming Enter (it already ignored
  the Enter that Chrome and Firefox send while composing).

### Documentation

- README component list includes `u-expander`.

## [1.50.0] - 2026-09-29

### Added

- `protected effectivelyDisabled` on the form control base class — `disabled` or disabled by an
  ancestor `<fieldset>`. Subclasses that draw their own controls should read it instead of
  `disabled`.

### Fixed

- **`form.reset()` now resets form controls.** A native form reset — including `u-button
  type="reset"` — left every control as it was. Controls now implement the standard
  `formResetCallback` and return to their default: the `value` attribute (`checked` for
  `u-checkbox` and `u-switch`, taken when the control is first connected), or empty when there is
  none, with validation marks cleared. A control's own `reset()` is unchanged: it empties that
  control.
- **Form controls and `u-button` now follow a disabled `<fieldset>`.** Inside `<fieldset disabled>`
  they were only left out of the submitted data: the inner input stayed enabled and focusable, the
  control did not look disabled, and a `u-button type="submit"` still submitted the form. They now
  implement the standard `formDisabledCallback` and behave exactly as with their own `disabled`
  attribute. The `disabled` property itself is not changed, so a control disabled on its own stays
  disabled when the fieldset is enabled again. Built-in disabled styles now use `:host(:disabled)`,
  which matches both cases.
- `u-breadcrumb` with a custom `separator` slot rendered no separators at all. Separators are now
  placed between the items whatever the order of the slotted elements, and follow later changes to
  the separator slot. Separators are marked `aria-hidden`, so a text separator such as `/` is no
  longer read out between items.

## [1.49.1] - 2026-09-28

### Fixed

- Comments shipped in `dist/utilities/Toast` and `dist/plugins/vite-plugin-react-wrapper` referred to
  internal planning documents. They now describe the behavior on their own. No code change.

## [1.49.0] - 2026-09-28

### Added

- **A layer stack for Escape: `OverlayManager.openLayer(el, onEscape)`, `closeLayer(el)`,
  `topLayer`.** Every surface that closes on Escape is a layer, layers stack in the order they
  opened, and one Escape closes the topmost one. `u-dialog`, `u-drawer` and an open `u-popover` are
  layers; an app surface that is not an overlay component (a shell panel, a custom sheet) can join
  the same order instead of listening for Escape itself. The manager listens once on `document`: an
  Escape a control already handled closes no layer, and the Escape that closes one is marked
  consumed, so listeners on `window` see `defaultPrevented`. `onEscape` receives the event and may
  return `false` to decline — for a non-modal panel that only closes while focus is inside it —
  which leaves the key unconsumed and closes nothing.

- **Stacking tokens for surfaces that overlap across the page: `--u-layer-shell` (1000),
  `--u-layer-floating` (1000) and `--u-layer-overlay` (9999).** Floating elements and overlays now
  read them (same values as before), so an app surface that must sit in the same order reads the
  token instead of repeating a number. Both sheets declare them. See `docs/design-tokens.md`.

### Fixed

- **A popover opened inside a popover now closes alone on Escape.** Each open popover listened for
  Escape itself, so one press closed the whole chain (a submenu and its menu). The second press
  closes the outer one.

## [1.48.0] - 2026-09-28

### Changed

- **`glob` is now an optional peer dependency instead of a dependency.** Only the build plugin
  `@iyulab/components/plugins/vite-plugin-react-wrapper` uses it, yet every app installing the
  components also installed `glob` and its five transitive packages. Browser apps install none of
  them now. If your build imports that plugin, add `glob` to your `devDependencies`.

## [1.47.1] - 2026-09-28

### Fixed

- **`u-dialog` / `u-drawer` initial focus now reaches the control you asked for.** Three cases
  sent it to the first tabbable element instead (often the close button):
  - **`<u-input autofocus>`** (and any control component) — the component host was handed to the
    focus trap, which does not count a host as focusable and fell back. The overlay now focuses the
    target itself, so the component forwards focus to its inner field.
  - **A form component slotted into the overlay** — `[autofocus]` and the first input control were
    looked up with `querySelector`, which stops at shadow roots. The search now goes through them.
  - **A `u-select` before the target** — once the search goes through shadow roots it must not stop
    at the closed popover every `u-select` keeps inside (it carries an `autofocus` attribute of its
    own). Only elements that can actually take focus are candidates.

### Added

- **`querySelectorDeep(roots, selectors, accept?)` and `isFocusCandidate(el)`** in
  `utilities/elements` — the shadow-piercing lookup and the focusability test the overlays use,
  for other layers that place initial focus the same way.

## [1.47.0] - 2026-09-28

### Added

- **Chart palette tokens `--u-chart-color-1` … `--u-chart-color-8`** — eight series colours, in a
  fixed order, checked together for lightness, colour-vision-deficiency separation and (dark)
  contrast, in both sheets. See "Chart palette" in `docs/theming.md`.
- **`Dialog.confirm(message, { confirmColor })`** and **`DialogAction.color`**. Confirming an
  action that cannot be undone had no way to say so — the confirm button was always the default
  colour. `confirmColor: 'danger'` draws it in `danger`.
- **`u-tag color="gray"`** — a colourless label on the decorative axis. `neutral`, the default,
  follows the brand colour, so there was no way to draw a gray tag: a "Pending" status tag came out
  the same blue as an `info` "Shipped" next to it. `gray` reads the neutral ramp and, like the
  other decorative colours, ignores re-branding.

### Changed

- **`--u-font-mono` lists `Consolas`** after `Cascadia Code`, so Windows installs without Cascadia
  get a code face instead of `Courier New`.

### Fixed

- **An empty `u-select` is as tall as a filled one.** With no value and no placeholder, its display
  area had no line box, so the control was shorter than a `u-select` with a value — and shorter
  than a `u-input` beside it in the same form row, which knocked the labels out of line.
- **`u-input` commits its value before `Enter` submits the form.** `change` used to fire only on
  blur, so pressing `Enter` in a form submitted it first and committed the value afterwards — a
  form that reads values from `change` (the usual React `onChange` wiring) submitted empty fields,
  and a sign-in form typed and sent with `Enter` failed. `change` now follows the native input: it
  fires on `Enter` and on blur, before the submit, and only when the value changed.
  ⚠A blur that did not change the value no longer fires `change`. If you relied on that, listen
  for `blur` (or `focusout`) instead.

## [1.46.0] - 2026-09-24

### Changed

- **`u-icon` takes its 1em box before the SVG arrives.** Icons resolve asynchronously and draw
  nothing until they do; the host had no size of its own, so its box was 0 × 0 until the SVG
  landed and everything around it moved — a layout shift wherever an icon appears (a collapsed
  sidebar item jumped from 16px to 36px tall on load). The host is now `1em` square from the first
  paint, and `font-size` still sets the size.
  ⚠An empty `<u-icon>` (no `name`, no `src`) now also takes that box. If you rendered one as an
  invisible placeholder, render nothing instead.

### Fixed

- **A selectable `u-chip` is a keyboard-operable toggle button.** It had a click handler and
  nothing else — no role, no tab stop, no key — so keyboard users could not reach it and assistive
  tech did not know it toggles. It is now in the tab order with `role="button"` and `aria-pressed`,
  and `Enter` / `Space` toggle it and fire `pick` like a click. A chip that is not selectable stays a
  status label, out of the tab order; a `tabindex` you set is kept.
- **`focus()` now reaches the control inside `u-icon-button`, `u-copy-button` and
  `u-breadcrumb-item`** (with `href`) — the same defect `u-button` had in 1.45.2: the host is not
  focusable, so calling `focus()` on it did nothing.

## [1.45.2] - 2026-09-24

### Fixed

- **`u-button.focus()` now focuses the button.** The host itself is not focusable, so calling
  `focus()` on a `u-button` did nothing — no error, no focus. Anything that moves focus to a
  button (initial focus when a panel opens, returning focus when it closes) failed silently. The
  host now delegates focus to the inner native `<button>` (or `<a>` when `href` is set), and the
  host matches `:focus` while it holds it. A disabled button still cannot take focus.

## [1.45.1] - 2026-09-24

### Fixed

- 🔴 **A floating element opened by setting `open` is now positioned.** Positioning and scroll/resize
  tracking ran only inside `show()`, so every path that sets `open` directly left the element at
  its static position with no coordinates at all. The visible case is a `u-menu-item` submenu
  opened with the keyboard (`ArrowRight`) or by clicking its header: the submenu drew on top of
  its parent item instead of beside it — mouse users never saw it, because hovering goes through
  `show()`. A declarative `<u-popover open>` was affected the same way. Opening by `open` now
  positions against the anchor and tracks it; closing by `open` stops tracking.

## [1.45.0] - 2026-09-23

### Added

- **`LocaleNamespace.textIn(locale, key, params?)` — look a string up in a given locale without
  changing the active one.** A namespace resolved only against the active locale, and the lookup
  chain is internal, so a package whose elements take their own `locale` attribute (one element in
  a different language from the document) had to re-implement the chain to honor it. `textIn`
  walks the same chain as `text()`; an empty `locale` means the active one. `text` and `textIn`
  also keep working when taken off the handle (`const { text } = ns`).

### Fixed

- **A region-less language tag now reaches the shipped regional table.** Chinese and Portuguese
  ship only as `zh-CN`, `zh-TW` and `pt-BR`, and the lookup chain only shortened a tag (`ko-KR` →
  `ko`) — so a page with `<html lang="zh">` or `lang="pt"`, a common and valid choice, rendered
  every built-in string (clear buttons, steppers, validation messages) in English. The chain now
  shortens a tag one subtag at a time and then falls to the language's default regional table:
  `zh` → `zh-CN`, `pt` → `pt-BR`, and Traditional Chinese tags (`zh-Hant`, `zh-HK`, `zh-MO`) →
  `zh-TW` rather than the Simplified default. A table you register for the region-less tag still
  comes first. `Locale.namespace()` shares the chain, so packages that register their own strings
  get the same resolution.

## [1.44.1] - 2026-09-23

### Fixed

- 🔴 **A closed popover no longer consumes `Escape`.** A popover with `escape` in its `dismiss`
  list listens on the document from the moment it connects, and it called `preventDefault()`
  whether or not it was open. Every form control carries a popover, so on any real screen a
  document-level `Escape` always arrived already `defaultPrevented` — and `defaultPrevented` is
  exactly the signal you need to tell whether an inner layer handled the key. Now only an open
  popover consumes it. A popover waiting on `showDelay` still has its pending show cancelled, but
  the key is not consumed because nothing was visible yet. A closed popover also ignores document
  clicks instead of running `hide()` on every click.
- **`u-input` no longer consumes `Escape` while its suggestion list is closed.**
- **`u-select` returns focus to the combobox when its list closes with focus inside it.** Closing
  the list with `Escape` or choosing an option with the keyboard left focus inside the hidden
  list, where keyboard users lost their place and the next `Escape` was swallowed again. Closing
  by clicking elsewhere does not move focus.
- **Dialogs and drawers ignore an `Escape` that something inside them already consumed.** With an
  open list inside a dialog, one press used to close both. Now the first press closes the list and
  the second closes the dialog — one press, one layer.
- 🔴 **`disabled` is now exposed to assistive technology on controls whose role sits on a
  non-native node.** These controls blocked interaction but never said so: screen readers
  announced nothing, and test tools that check actionability treated the control as enabled,
  clicked it, and had the click silently swallowed. `aria-disabled="true"` is now set on the
  `combobox` of `u-select` and `u-date-picker`, the `radiogroup` of `u-radio` and `u-rating`,
  the host of `u-menu-item`, `u-tab` and `u-tree-item`, and the link of `u-breadcrumb-item`.

- 🔴 **In dark mode, a `:root` override of the scale tokens now wins, as it does in light.**
  `dark.css` redeclared radius, spacing, the type scale, motion and fonts — with the same values as
  `light.css` — under `:root[theme="dark"]`, which outranks `:root`. So every layer that sets those
  tokens on `:root` (the `@iyulab/enterprise` preset, a brand sheet) lost in dark mode regardless
  of load order. Colors still switched, so dark mode *looked* fine while the type scale and radius
  quietly fell back to neutral. Those tokens now sit in a `:root:where([theme="dark"])` block, at
  the same specificity as `:root`. `dark.css` still defines every token, so a fixed-dark screen
  that loads only that sheet is unaffected. **No visual change** for anyone not overriding them.
- 🔴 **`prefers-reduced-motion` is honoured in dark mode.** The durations were among the tokens
  redeclared at the higher specificity, so `light.css`'s reduced-motion rule lost to them and
  animations kept running for users who asked for less motion. `dark.css` now carries the same
  rule for itself.

- **`Dialog.confirm` and `Dialog.prompt` label their buttons in the active locale.** The defaults
  were the English literals `Cancel` and `Confirm`, so an app that had switched `Locale` got
  English buttons under a translated message, while every other built-in label in this package
  already followed the locale. `confirm` and `cancel` are now in all fourteen built-in tables;
  labels you pass explicitly still win, and English is unchanged.

⚠ **If you close your own panel on `Escape`**, you can now guard it with `event.defaultPrevented`
the way the platform intends; you no longer need to inspect which popovers are open. **If a test
locates a control by tag and expects a click on a disabled one to be attempted**, it will now
wait instead — locate by role.

### Documentation

- The popover and overlay references state the `Escape` contract, with the guard a consumer
  panel should use. The skill index states where `disabled` is exposed for each control.
- `docs/theming.md` says which tokens a `:root` override reaches in dark mode, and how to
  override a color there too.

## [1.44.0] - 2026-09-22

### Fixed

- 🔴 **`Theme.init()` no longer overrides styles the document already has.** The built-in token
  sheets were appended to the end of `<head>`. A consumer stylesheet declaring the same `--u-*`
  tokens on `:root` is placed by the bundler while the document parses, so the runtime append
  always came *after* it — and at equal specificity the later rule wins. The result was that the
  built-in defaults silently overrode whatever the consumer had set, with no error and no
  warning. Where the two sheets agreed on some values and differed on others, it read as
  *partially applied* rather than as ignored, which is harder to notice than an outright failure.
- **The sheets are a defaults layer, so they now go in front of the document's other styles.**
  They are inserted ahead of the first `<style>`/`<link rel=stylesheet>` — not pushed past
  `<meta>` and friends — and their order relative to each other is preserved rather than
  reversed. If a document has no stylesheets at all, they are appended as before; anything added
  later still comes after them, which is the point.

⚠ **If you relied on the old behavior** — that is, on the built-in values winning over a sheet
you loaded yourself — you no longer need to; load order now works the way `:root` at equal
specificity implies. Nothing changes for consumers who never override these tokens.

### Documentation

- **`docs/theming.md` no longer tells you to sequence your override after `Theme.init()`.** That
  instruction existed because of the behavior above, and it outlived it by exactly one release
  otherwise. The Custom Themes section now says a plain static `import` is enough, states what
  changed for anyone still on an older version, and keeps the one rule that *does* still decide
  the outcome: specificity. `How Theme Switching Works` says where the sheets are inserted, not
  just that they are.
- The same note is in the skill reference for `Theme`, which is where an assistant reads it.

### Notes

- The regression measures computed values in a real browser. Asserting where a node was inserted
  would describe placement, not the cascade, and the contract here is the cascade.

## [1.43.0] - 2026-09-22

### Added

- **`menu-2` and `layout-sidebar` join the built-in icon set.** An app shell draws its own
  chrome — a mobile menu toggle, a sidebar toggle, an overlay close button — and two of those
  three names existed only in a CDN-backed library. A deployment without internet access
  rendered them blank no matter how thoroughly the app had baked its own icons into the bundle,
  because the shell was not resolving them through that registration at all. The names now
  exist here, so a shell can resolve all of its chrome from the bundled set.
- Both glyphs follow what the set already contains: the same 24px grid, the same stroke weight
  and the same caps.

### Documentation

- **`docs/icons.md` now says which built-in names are load-bearing outside this package.**
  Removing one of them blanks a control in every app built on a shell that draws itself from
  the bundle, and nothing in the type system would say so before the screen went empty.

## [1.42.4] - 2026-09-21

### Changed

- **`u-icon` no longer documents an `svg` CSS part.** It was declared and published but
  **never implemented** — the SVG markup comes from the icon registry or a URL and is injected
  as-is, so there is no element the component owns to carry a part. If you have a rule like
  `u-icon::part(svg) { … }`, it has been matching nothing and raising no error the whole time;
  that is why the claim survived. Style `u-icon` itself instead — it inherits `font-size` and
  `color`, which is what sizes and colors the glyph. This removes a documented name, but
  nothing can have depended on behavior that never existed.

### Documentation

- **Every CSS part a component emits is now declared and listed.** Nine parts were emitted
  without a `@csspart` declaration (`base` on card, divider, tag and tab; `base`,
  `radio-marker` and `check-marker` on option; `calendar-week` and `time-input` on the date
  picker), and seven were emitted without appearing in their reference page. The badge and
  tooltip pages had no `CSS Parts` section at all, and the breadcrumb page was missing the
  `link` part its items expose.
- Aiming `::part()` at a name no element carries matches nothing and raises no error, so this
  class of drift is invisible from the outside — which is why it is now checked rather than
  maintained by hand.

## [1.42.3] - 2026-09-20

### Fixed

- **Two accessible names were English regardless of the locale.** The breadcrumb landmark was
  labelled `breadcrumb` inline, so a screen-reader user on a translated page heard an English
  landmark name; it now resolves through the locale table, which gains a `breadcrumb` key in every
  bundled language. `u-avatar` fell back to the literal `Avatar` as its image `alt` when no label
  was given — an avatar with nothing to name is decorative, so it now carries an empty `alt` and is
  skipped rather than announced with an English word.

## [1.42.2] - 2026-09-20

### Fixed

- **Weak borders were invisible in the dark theme.** `--u-border-color-weak` and
  `--u-bg-color-raised` both resolved to the same ramp step in the dark sheet, so any hairline drawn
  with the weak token on a raised surface — sidebar header and footer rules, group separators, table
  row rules, split-pane dividers — had a contrast ratio of 1.00 against its own background and
  disappeared entirely. The dark weak border now sits one ramp step above the raised surface. In the
  dark theme this makes the weak and default border tokens resolve to the same value; that is
  intentional, since the previous weak value was not distinguishable on the surfaces it is used on.
  The light theme is unchanged, as are the default and strong border tokens in both themes.

## [1.42.1] - 2026-09-17

### Fixed

- **`u-panel` no longer adds a trailing blank page when printed.** Its `overflow: auto` makes it a
  scroll container, which keeps the bottom margin of its last block inside the panel, so the panel
  grew by that margin; content ending just short of a page boundary then spilled onto a page
  holding only the margin. In print media the panel now uses `overflow: visible`, letting the
  margin collapse past it and be truncated at the page break. Screen behavior is unchanged.

## [1.42.0] - 2026-09-17

### Fixed

- **Two icon-only controls named themselves in English regardless of the locale.** `u-chip`'s remove
  button and `u-tab`'s close button carried a hard-coded `aria-label`, so on a Korean app a
  screen-reader user heard "Remove" and "Close tab" while everything around them was translated.
  These controls have no visible text, so the gap could not show up in a visual review — only
  someone using assistive technology would meet it. Both names now come from the locale table, with
  `remove` and `closeTab` added for all fourteen built-in locales.
- **`u-alert` fell back to the raw status value as its title, which is not a word in any locale.**
  An alert written without a `title` showed `ERROR` or `DANGER` in the title row regardless of the
  locale in effect, so a Korean screen carried uppercase English — one such screen reached a
  customer in a printed manual. The same component's close button has always gone through `Locale`,
  so the locale layer was not missing, only unused in this one place. The default title now comes
  from the locale table (`오류` / `Error` / `エラー` …), with entries added for all fourteen built-in
  locales, and a consumer-supplied `title` still wins.

### Added

- **`u-alert` warns once in development when `status` is not one of the five known values.** An
  unknown value renders as a neutral notice with the bell icon and `role="status"` — so an alert
  meant to report an error looks like an ordinary message and nothing says otherwise. Types cannot
  catch this, because attributes set in HTML or produced by a server carry no type. `ALERT_STATUSES`
  is now exported so the runtime check and the type read the same list.

- **`reactWrapper({ reexport })`** — the generated React barrel can now re-export additional module
  specifiers alongside the wrappers it generates. A package that keeps a few hand-written wrappers
  (for a generic property or a custom event mapping the generator cannot derive) previously had to
  publish them on a separate subpath, which left consumers with a barrel that was *not* a superset
  of the per-component subpaths: what you got depended on which specifier you reached for. Passing
  the hand-written module here folds it into the same barrel, so one specifier carries everything.
  Give a package specifier rather than a relative path — a relative path bypasses the `exports` map,
  which in a workspace makes the barrel load a different copy of the elements than the rest of the
  package and registers the same tag twice.

## [1.41.1] - 2026-09-16

### Fixed

- **The development-mode warning that reports an unnamed field fired on correctly built forms**
  whenever the field was first rendered inside a hidden container — a closed drawer, a collapsed
  accordion, an inactive tab panel, a wizard step that is not current. The check asked whether the
  slotted subtree held anything *focusable*, and the focusability test it used considers an element
  that is not rendered to be unfocusable. Whether a label has a control to name is a question about
  structure, not about what is on screen right now, so the check now answers it structurally
  (form-associated custom element, native form/focusable tag, `tabindex`, `contenteditable`) and no
  longer consults visibility or `disabled`. Focus delegation still uses the focusability test, which
  is the right question there. Consequently the warning text now reads "has no form control" rather
  than "has no focusable control".
- **A false warning silenced the real ones.** These warnings de-duplicate per key, and both field
  warnings used one flat key each, so the first occurrence on a page consumed the budget for every
  later field — a spurious warning permanently suppressed genuine ones, and even without any false
  positive only the first of several real violations was ever reported. Both keys now include the
  label, matching `u-icon` and `u-split-panel`, which already key by what distinguishes the case.

## [1.41.0] - 2026-09-16

### Fixed

- **`u-field` drew its label but never connected it to the control it wraps** — the shadow `label`
  had no `for`, and the slotted control's `id`, `aria-label` and `aria-labelledby` were all empty.
  Every control in a labelled form was therefore unnamed in the accessibility tree while looking
  completely normal on screen, with no console signal. This is the exact shape this package's own
  reference documentation teaches (`<u-field label="Email"><u-input></u-input></u-field>`), so
  following the docs produced the defect. `u-field` now copies its `label` onto the slotted element
  as `aria-label` (and `description` as `aria-description`); `aria-labelledby` is not usable here
  because it does not cross shadow boundaries.
- **`u-field.focus()` and clicking its label did nothing when a custom-element control was
  slotted** — the target search used a focusability test that does not look inside shadow roots, so
  it only ever matched native elements. It now also recognizes form-associated custom elements, and
  falls back to searching inside a slotted wrapper.
- **`u-switch` ignored its inherited `label` property** — unlike its sibling `u-checkbox`, the
  default slot had no fallback, so `<u-switch label="…">` rendered neither a visible label nor an
  accessible name.
- **A field label did not reach `u-checkbox`, `u-switch` or `u-file-input`.** Those three take
  their accessible name from their own content — the first two wrap the native control in a
  `<label>`, and the third's focusable element is a "choose file" button — so the mechanism that
  works for the other seven controls did nothing for them. An empty checkbox or switch inside a
  labelled field was named by nothing but its required marker. They now take the field's label
  when, and only when, they have no name of their own.

### Added

- **Form controls now forward a host `aria-label` / `aria-description` to the native control inside
  their shadow root.** Previously only `u-button` did this, so setting `aria-label` directly on
  `u-input`, `u-select`, `u-textarea`, `u-date-picker`, `u-radio`, `u-rating` or `u-slider` had no
  effect on the accessible name. A control's own `label` still wins over the host attribute.
- **Two development-mode warnings on `u-field`**: a label with nothing focusable in the default
  slot (the label names nothing), and a label set on both the field and the slotted control (the
  label renders twice).

### Notes

- A control that already carries its own `label`, `aria-label` or `aria-labelledby` is left
  untouched — overriding it would make the visible label and the accessible name disagree
  (WCAG SC 2.5.3 Label in Name).
- `u-file-input` **composes** rather than overrides: its trigger is named "<visible text>,
  <field label>", so the visible text stays part of the accessible name (SC 2.5.3) while several
  file pickers on one screen remain distinguishable.
- All ten form controls are covered by a reach gate that drives each one in a real browser
  (`tests/browser/field-name-reach-census.browser.test.ts`). A new form control has to be added to
  that table or it sits outside the gate.

## [1.40.3] - 2026-09-13

### Fixed

- **`createDevWarner`/`devWarnOnce`, and the `u-icon`/`u-split-panel` warnings built on them, were
  a complete no-op in every published release since 1.40.1** — the guard used
  `import.meta.env.DEV`, which Vite resolves statically at this library's own build time (not the
  consumer's), so the published dist always shipped with `false` baked in and Rollup's dead-code
  elimination removed the warning body entirely. No published dev-mode warning from this package
  has ever actually fired for a consumer. Replaced with `process.env.NODE_ENV !== 'production'`,
  which this library's own build leaves untouched and each consumer's own bundler resolves against
  its own dev/production build (the same convention used by other libraries in this ecosystem for
  the same reason). A new test asserts the built dist directly, not just the source.

## [1.40.2] - 2026-09-13

### Added

- **`createDevWarner(scope)` / `devWarnOnce` / `resetDevWarnings` are public** (barrel and
  `@iyulab/components/dist/utilities/devWarning.js`). The one-shot, development-only warning
  helper that `u-icon` and `u-split-panel` use since 1.40.1 is now the shared primitive for the
  sibling packages' warnings of the same kind — each package gets its own `[scope]` prefix and
  its own key space, and `resetDevWarnings()` clears every scope for tests. No behavior change
  for existing warnings.

## [1.40.1] - 2026-09-13

### Added

- **Development-mode warnings for two states that were silently wrong.** Both are one-shot,
  namespaced `[@iyulab/components]`, and compiled out of production builds (`import.meta.env.DEV`).
  - `u-icon`: when a `name` does not resolve (404, unknown `lib`, unparsable SVG) the icon still
    draws its `fallback` — that is intended — but now says so once per name, with what to check.
    Thirty menu items rendering the same cube with no signal is how this was found.
  - `u-split-panel`: when the host has no height of its own it sits at one line of content (18px
    measured) and anything sized 100% inside its panels collapses; it now says so once and tells
    you to size the host or its parent.

## [1.40.0] - 2026-09-10

### Changed

- **Every icon button inside an input — clear, the password toggle, the number steppers — now takes
  the pointer across 24×24** (WCAG 2.2 SC 2.5.8), not just the last one. Fitting two of them side by
  side needs room, so the gap between icons grows from `0.25em` to `0.5em` (4px → 8px at the default
  size), the stepper glyphs render at `1em` like every other icon instead of `0.85em`, and the
  `underlined` and `borderless` variants — which have no side padding — get `0.25em` of it back on
  the right. A field with a single icon is unchanged apart from that icon sitting 4px further from
  the text; fields with a toggle *and* a clear button, or with steppers, are 4px wider in their icon
  area. Supported density is documented with it: these sizes hold at `--u-density: 14px` and above
  (see *Density* in `docs/theming.md`).

- **A searchable select's dropdown is now a dialog, and opening it puts focus in the search
  field.** The dropdown used to carry `role="listbox"` while also holding the search field — a
  listbox may contain only options, so assistive technology met a text field where it expected
  a list. The options now sit in their own `role="listbox"` inside the dropdown, and with
  `searchable` the dropdown is a named `role="dialog"` containing the search field and that list
  (the WAI-ARIA *combobox with dialog popup* pattern); the trigger reports
  `aria-haspopup="dialog"`. Opening it focuses the search field, so you can type to filter at
  once; `ArrowDown` still moves to the first option and `Escape` still closes. The dialog is
  named by the select's `label`, or "Search" without one. Without `searchable` nothing changes
  for users — the trigger still reports a listbox and opening still focuses the first option. A
  `multiple` select's list now reports `aria-multiselectable`.

- **Secondary text (`--u-txt-color-weak`) now meets WCAG AA 4.5:1 on every surface it is
  placed on, not only on the page background.** It moves one step along the neutral ramp —
  `neutral-600` → `neutral-700` in the light theme, `neutral-700` → `neutral-800` in the dark
  theme. Before, it passed on the base surface only; on a raised surface (table headers, cards)
  and on the active surface it fell below the threshold:

  | | base | raised | active |
  |---|---|---|---|
  | light, before → after | 4.61 → 6.19 | 4.41 → 5.93 | 3.97 → 5.34 |
  | dark, before → after | 5.43 → 8.64 | 4.16 → 6.62 | 3.15 → 5.01 |

  Secondary text reads slightly darker in the light theme and slightly lighter in the dark
  theme. It stays distinct from body text (contrast between the two: 2.60 light, 1.46 dark), and
  the contrast contract now asserts both properties — all three surfaces, and a floor on the
  body-to-secondary ratio — so neither can regress silently. Themes that already override the
  token are unaffected.

- **The split panel's handle now takes the pointer across 24px while its line stays 4px wide**
  (WCAG 2.2 SC 2.5.8). It used to be a 4px strip to grab. The area that receives the pointer
  occupies real layout space between the panels rather than overlapping them — every panel is a
  scroll container, so its scrollbar sits right against the handle, and an overlapping hit area
  would have swallowed it. The visible line is unchanged; the panels sit 20px further apart.
  New custom property `--splitter-hit-size` (default `24px`) sets that area; the handle is the
  larger of it and `--splitter-size`. To keep the previous flush handle, set
  `--splitter-hit-size: var(--splitter-size)`. The `lazy` preview bar is centred on the line.

### Added

- **The split panel can be resized from the keyboard.** Each handle is now a focusable
  `role="separator"` (WAI-ARIA APG *Window Splitter*) with a name, an orientation and a value —
  the share of the panel before it. The arrow keys along the split axis move it by 5%, `Home` and
  `End` take that panel to its smallest and largest size, and `Enter` collapses it or restores it.
  Before, dragging was the only way to change the layout (WCAG 2.1.1, 2.5.7). A keyboard change
  fires `shift-start`, `shift` and `shift-end`, so code that saves the ratio on `shift-end`
  picks it up unchanged. New locale message `resizePanels` in all fourteen built-in locales.

- **`--u-select-display` / `--u-select-width` and `--u-textarea-display` / `--u-textarea-width`
  on the host**, matching the hooks `u-input`, `u-date-picker` and `u-file-input` already
  expose. Defaults are unchanged, so this is additive: a consumer who sets nothing sees what
  they saw before. A form row mixes control types, and an asymmetric hook meant some cells
  followed their container while others overflowed it — with no way to reach the ones that did
  not have the hook. The regression covers all five controls rather than the two that were
  missing it, because the invariant is the symmetry itself.

### Fixed

- **`u-popover`'s `autofocus`, and `focusTo()`, now reach controls inside wrapped content.**
  They are documented to focus the first focusable element *inside* the popover, but only looked
  at the popover's direct children, so content wrapped in an element — a form in a `<div>`, a
  field in a `<label>` — was skipped and focus stayed where it was. They now search descendants
  in document order, including elements slotted through an inner `<slot>`, and skip disabled and
  `hidden` subtrees.

- **Pressing Enter in an input now submits its form, as it does in a native text field.** The
  field's own `<input>` lives in the component's shadow root, so the browser never treated it as
  part of the surrounding `<form>` and Enter did nothing. The input now follows the HTML
  implicit-submission steps: if the form has a submit button, the first one is activated (a
  disabled one does nothing, and a native button becomes the event's `submitter`;
  `<u-button type="submit">` counts); if it has none, the form is submitted only when no other
  single-line field is in it. Enter that confirms an IME composition, and Enter with a modifier
  key, do not submit. The decision is taken one task later, so a `keydown` listener that calls
  `preventDefault()` still cancels it. **If your code submits on Enter itself, it must call
  `preventDefault()` or be removed** — otherwise the form is now submitted twice.

- **In a narrow input the clear button, the password toggle and the number steppers could be
  pushed outside the field and clipped** — neither visible nor clickable. The text field did not
  shrink below its intrinsic width (about 20 characters, from the native `size` default), so
  whenever the field was narrower than that plus its trailing icons — a 200px `clearable` input
  was enough — the icons were laid out past the field's edge and cut off by its overflow. The text
  field now shrinks, and the icons stay inside the field at any width.

- **The input's clear button and password toggle, and the select's clear button, were 16×16
  pointer targets** (WCAG 2.2 SC 2.5.8). Each now takes the pointer across 24×24 while the glyph
  stays 16×16 and nothing moves: the extra area comes from the gap before the icon and, for the
  last icon in the field, from the field's own padding — the field's height and the text width
  are unchanged. Where two icons sit side by side (a `clearable` password field, the number
  steppers), and in the `underlined` and `borderless` variants, which have no side padding to
  grow into, the area grows only as far as it can without overlapping its neighbour or being
  clipped; those arrangements still fall short of 24×24.

- **An input with suggestion options opened its list on page load**, with focus elsewhere and
  nothing typed — the documented markup (`u-option` children) did exactly that — and, because
  the list opens and closes on focus, it stayed over the page until the field was visited and
  left. The list now opens when options arrive only while the field has focus, which keeps
  autocomplete (results that arrive while typing) working. And when every option went away
  while the list was open, the empty list could not close — the component cancelled its own
  `hide` whenever there were no options — and an empty box stayed over the page; it now closes.

- **The select's search field (`searchable`) had no accessible name** — no label, no
  placeholder, no `aria-label` — so assistive technology announced an unnamed text field with
  no hint of what it filters (WCAG 4.1.2). It is now named by the new locale message `search`
  ("Search"), present in all fourteen built-in locales.

- **The tree item's expand toggle (18×18) and checkbox (16×16) were undersized pointer
  targets** (WCAG 2.2 SC 2.5.8) — with `trigger="icon"` the toggle is the only pointer path to
  expand a node, and the header click never checks. Both now take the pointer across 24×24
  while what you see stays 18×18 and 16×16; the glyphs, the label and the row height do not
  move, because the extra area comes from the header's own padding and the gaps between them.
  In a checkable row the toggle's extra width goes to its left, so the two areas meet without
  overlapping.

- **Dragging a split panel's handle moved the panels further than the pointer**, and a
  non-even `default-ratio` did not produce that ratio. Each panel subtracted an equal share of
  the handles' thickness, which equals "its share of the space left over" only when every panel
  is the same size; the drag converts pointer travel against that left-over space. Each panel
  now subtracts its proportional share, so a `[30, 70]` split is exactly 30:70 of the space
  between the handles and the handle stays under the pointer. The error grew with handle
  thickness (about 1% of the travel at 4px, about 9% at 24px). A ratio that does not parse —
  the component reference showed `default-ratio="[30,70]"`, but the attribute is
  comma-separated without brackets (`"30,70"`, the form it reflects) — now falls back to an even
  split instead of collapsing the panels; the reference is corrected.

- **The checkbox, the switch, the rating symbols, the chip's remove button and the slider all
  presented a pointer target smaller than 24×24 CSS px** (WCAG 2.2 SC 2.5.8 Target Size
  (Minimum)). The target grew, the glyph did not: the box, the track, the star, the icon and
  the slider's 18px thumb keep their sizes, and only the area that receives the pointer grows.
  Controls do take a few more pixels vertically — a 24px target needs 24px of room unless
  targets are allowed to overlap. For the slider the container height had to rise as well,
  since it is the element that receives `pointerdown`; measuring only the focusable thumb had
  missed that axis.

- **A toast raised over a page that stacks its own content above every z-index value is no
  longer hidden by it.** The document-level toast container is promoted to the browser's native
  top layer (`popover="manual"`), which takes the notification channel off the z-index axis
  entirely rather than trying to win on it. The existing z-index remains as the fallback where
  `showPopover` is unavailable, and the container anchored to a target element is deliberately
  left alone — it needs its ancestor's positioning context, which the top layer removes. One
  limit is pinned by test rather than left to be discovered: a native modal dialog makes
  everything outside it inert, so no stacking strategy reaches above one.

- **Two dead initialisers dropped**, and the tab panel's keyboard navigation — which had no
  regression coverage at all — is now covered. Both assignments were overwritten on every path
  that read them.

## [1.39.0] - 2026-09-08

### Fixed

- **A toast raised while a modal is open is no longer hidden behind it.** `Toast` hardcoded
  `z-index: 9999` on its container while `OverlayManager` assigned open overlays a value
  *above* 9999, so a toast could never appear over an open `u-dialog` or `u-drawer` — the
  most common place an application reports a failure. Stacking is now a contract owned by
  `OverlayManager`: overlays are assigned from a bounded band, and the notification layer sits
  above that band by construction. Read `OverlayManager.notificationZIndex` instead of
  hardcoding a value for any surface that must stay visible over an overlay.

- **`Toast` no longer returns a promise that never settles, and no longer drops toasts
  silently.** The container cache was keyed by a string derived from the target
  (`"<position>@<id>"`), which collided when a different element reused the same `id`, never
  cached at all for targets without an `id` (the fallback embedded `Date.now()`), and made the
  cleanup path recompute a key that could miss. A cached container that had left the document
  was still handed back, and an element appended to a detached container never connects — so
  its `updateComplete` never resolves and `await Toast.success(...)` hung forever with no error
  and no toast. Containers are now keyed by the target element itself and validated on every
  cache hit. Passing a target that is not in the document now warns and returns instead of
  hanging.

### Changed

- **Overlay z-index is derived from how many overlays are open at once, not from how many have
  ever been opened.** The previous counter increased monotonically and never reset, leaving the
  overlay band unbounded. Relative stacking between simultaneously open overlays is unchanged.

### Added

- **`OverlayManager.notificationZIndex`** — the z-index of the notification layer, guaranteed to
  sit above the entire overlay band.

## [1.38.0] - 2026-09-08

### Changed

- **`<html lang>` now takes precedence over the browser language when the initial
  locale is detected.** `detectLocale()` consulted `navigator.language` first, which
  made the `document.documentElement.lang` branch unreachable in a browser: a document
  declaring `lang="en"` still emitted accessible names in the browser's language, and a
  screen reader then announced them under English pronunciation rules (WCAG 3.1.1 /
  3.1.2). The `lang` attribute is the author's declaration of the document's language;
  the browser language is the fallback for when that declaration is absent, not an
  override for it. **Only documents that actually set `lang` change behaviour** — an
  absent or empty `lang` falls back to the browser language exactly as before, so apps
  that never set it are unaffected. `Locale.set()` still overrides both. The Node 21+
  guard on the `navigator` branch is unchanged.

### Documentation

- `formatNumber`, `formatCurrency` and `formatDate` were public through the barrel but
  appeared in no published document; they are now documented.
- `isCoarsePointer` is documented alongside the other element helpers.
- `formatDate`'s JSDoc cross-referenced a `formatCurrency` fallback that does not exist.
  `formatCurrency` throws on an invalid currency code, and the asymmetry between the two
  is deliberate; both are now described as they behave.
- The `BrowserStorage` reference notes that the constructor throws outside a browser.

## [1.37.1] - 2026-09-07

### Fixed

- **A popover or tooltip with a wide trigger could still end up off-screen.**
  When `placement` is set, `flip` is always applied, but it only considered the
  opposite side on the same axis. A trigger that spans nearly the full viewport
  width — a full-width row or drawer item, say — leaves room on neither the left
  nor the right, so a `right-end` popover flipped to `left-end`, found no room
  there either, and rendered outside the viewport. `flip` now also falls back to
  the perpendicular axis, tried strictly last: a placement that already fits is
  never re-evaluated, so this only changes cases that were previously broken.
  The `placement` docs described the old, narrower behavior and have been
  corrected in the JSDoc and the popover/tooltip references.

- **The generated React wrappers pointed at a different copy of each element
  class than a deep import did.** Each wrapper reached its element class by a
  relative path, which bypasses the package's own `exports` map. In a workspace
  that redirects `./dist/*` to source for live editing, that left the wrapper on
  one declaration tree and every consumer deep import on another, so the same
  component existed as two nominal types and merging both into
  `HTMLElementTagNameMap` failed with `TS2717` — importing `@iyulab/components/react`
  anywhere in such a program was impossible. Wrappers (and their event-detail
  type imports) now reference the package by name, letting the `exports` map
  resolve both axes to one tree in either setting. Published output is
  unaffected: both forms resolve to the same built file there. The React type
  smoke fixture no longer needs its `paths` override to compile.

## [1.37.0] - 2026-09-06

### Added

- **`u-date-picker` and `u-select` expose a `:state(open)` custom state.**
  Both already tracked their popover's open/closed state privately; it is now
  surfaced through `ElementInternals.states` so consumers can style the trigger
  while the popover is showing — `u-date-picker:state(open)::part(container)`,
  `u-select:state(open)::part(container)`. Deliberately not a reflected
  attribute: the state stays private to the component and exists only as a CSS
  hook, so no new public attribute enters the API surface.

### Documentation

- **`UFloatingElement.placement` documents that `flip` is always applied.**
  Whenever `placement` is set, floating-ui's `flip` middleware runs (switching
  to the opposite side when the placed side has no room) — this has always been
  the behavior but was undocumented, and `shift`'s description ("keeps the
  element on screen") over-promised, since `shift` only corrects the cross axis
  *within* a side. Both properties now describe the split, and a regression test
  covers the flip fallback.

## [1.36.0] - 2026-09-04

### Added

- **`UFileInput` (`u-file-input`), a form control wrapping a native
  `<input type="file">`.** Trigger button, selected-file(s) status text,
  and a clear button, styled to match the rest of the form control
  family. `value` is `File[] | null`; native `<form>`/`u-form`
  submission works out of the box via `ElementInternals` (single file)
  or a `FormData` with the file repeatedly appended under the same key
  (multiple files, matching native multi-file submission semantics).
  `accept`/`multiple` pass through to the underlying input.
  Drag-and-drop is out of scope for this release.

## [1.35.7] - 2026-09-03

### Fixed

- **`DialogOptions`/`PromptDialogOptions` skill-doc reference had drifted substantially.**
  `DialogOptions` listed a `closable` field that has never existed and was missing five real
  fields (`offset`/`modal`/`buttonClose`/`escapeClose`/`backdropClose`). `PromptDialogOptions`
  claimed `extends DialogOptions` (source: `extends ConfirmDialogOptions`) and a `default`
  field that doesn't exist — the real field is `defaultValue` — while `type` was missing
  entirely. Fixed the reference and the usage example. Found by a new internal tool
  (`type-doc-check.js`) that diffs hand-copied TS interface doc snippets against source.

## [1.35.6] - 2026-09-03

### Fixed

- **`BrowserStorage`'s skill docs never caught up to its Cookie Store API rewrite.**
  `CookieOptions`'s documented fields (`maxAge`, `secure`) don't exist on the actual
  type (`window.cookieStore`-based), which instead has `expires`
  (`DOMHighResTimeStamp`) and `partitioned`; the type union also omitted
  `BrowserStorageOptions`' `prefix` field entirely. Added a note on Chromium-only
  support, since the class throws where `cookieStore` is unavailable.
- **`theme.md`'s `Theme.init()` example passed a `key` property `store` has never
  had** — the real field is `prefix`. Fixed the example to match the type.

## [1.35.5] - 2026-09-01

### Fixed

- **`BrowserStorage`'s `set`/`get`/`remove` all threw the same
  `"Unsupported storage type"` with no indication of what value was
  actually configured or what's valid.** A consumer who set `options.type`
  to a typo or a value from an older version had nothing to go on. The
  message now includes the actual value and the two supported options
  (`"localStorage"` or `"cookie"`).

## [1.35.4] - 2026-09-01

### Fixed

- **`UDatePicker`'s popover dialog and previous/next-month buttons had
  hardcoded English accessible names** (`"Choose date"`, `"Previous month"`,
  `"Next month"`), unlike every other label in the same component which
  already goes through the `Locale` registry. A locale-switching consumer
  saw every other label translate except these three. Added `chooseDate`,
  `previousMonth`, and `nextMonth` to `LocaleMessageKey` and to all 14
  built-in locale tables, and routed the three literals through
  `Locale.getValue(...)`.

## [1.35.3] - 2026-09-01

### Fixed

- **`UButton` and every form-associated control built on `UFormControlElement`
  (`UInput`, `UCheckbox`, `UDatePicker`, `URadio`, `URating`, `USelect`,
  `USlider`, `USwitch`, `UTextarea`) threw an uncaught `NotSupportedError`
  when reconnected to the DOM.** Both classes called `attachInternals()`
  unconditionally on every `connectedCallback()`, but the spec allows only
  one call per element instance — moving an already-connected instance
  (list reordering, a framework's DOM reconciliation, virtual scrolling)
  reused the same instance and threw on the second attach. Both call sites
  now guard on whether `internals` is already set.
- **`UCheckbox`'s visual checkbox box (`.checkbox`, not just its checkmark
  icon) could still intercept clicks aimed at the control.** `1.35.1` fixed
  the icon but the parent box itself had no `pointer-events: none`, so it
  remained the topmost element at that point — native clicks still reached
  the control via the wrapping `<label>`, but anything that hit-tests the
  topmost element first (browser automation, some accessibility tooling)
  could still see it as blocked.
- **`UInput`'s clear button fired `change` but not `input`.** Typing signals
  a value change via `input`; the clear button only fired `change`, so a
  consumer subscribed to `input` alone (a common controlled-component
  pattern) never saw the value being cleared. The clear button now fires
  `input` first, matching typing, then `change` as before.

## [1.35.2] - 2026-09-01

### Fixed

- **Several icon-only buttons had no accessible name.** `UAlert`'s close
  button, `UCopyButton`'s icon-only mode, and `UDialog`'s and `UDrawer`'s
  close buttons showed only an icon with no `aria-label` and no text
  content, so screen readers announced them as plain "button". Added
  `aria-label` via the existing `Locale` registry.
- **`UIconButton` never forwarded a host `aria-label` to its inner
  `UButton`.** Any consumer setting `aria-label` on `u-icon-button` (`UDatePicker`'s
  previous/next-month buttons included) saw it silently dropped across the
  shadow boundary — the built-in tooltip doesn't wire any ARIA attribute
  either. Fixed the same way `UButton` already forwards its own host
  attribute to its native button/anchor.

## [1.35.1] - 2026-08-30

### Fixed

- **`UCheckbox`'s checked-state checkmark icon could intercept clicks aimed at the
  checkbox.** The icon lacked `pointer-events: none`, so once checked it became the
  topmost element at that point — native clicks still reached the control via
  bubbling, but anything that hit-tests the topmost element before acting (browser
  automation, some accessibility tooling) could see it as blocked. Same fix applied
  to `UTreeItem`'s prefix checkbox and expand/collapse toggle icons, which shared the
  identical pattern.

## [1.35.0] - 2026-08-28

### Added

- **`USelect` fires a `search` event on every search-input change when
  `searchable`.** The search text was already computed internally to drive
  the built-in local option filtering, but never surfaced — a consumer
  binding `USelect` to a large server-paginated dataset had no way to hook
  into it and had to rebuild the search UI from scratch to do remote
  search. `search` (`detail: { query: string }`, non-cancelable) fires
  alongside the existing local filtering, so a consumer can subscribe and
  drive remote search without losing the built-in search input. Mapped
  through to the React wrapper as `onSearch`.

## [1.34.0] - 2026-08-28

### Added

- **`UDatePicker` gains a `mode="datetime"` option for combined date+time
  selection.** Previously the component had no concept of time of day at
  all, so a date+time field had no picker UI and consumers fell back to
  free-text input with no format guarantee. `mode="datetime"` adds a native
  time input to the calendar popover; the resulting `value` is always a
  complete ISO-8601 `DateTimeOffset` string — seconds and the local UTC
  offset are filled in automatically regardless of how coarse the time
  input was. Picking a day preserves whatever time was already set; only
  the "today" quick action overwrites both to right now. 12/24-hour display
  is left to the browser's native time input rather than a custom widget.
  Adds the `time` locale key (14 locales).
- **`UDatePicker`'s calendar popover gains visible "today"/"clear"
  quick-action buttons.** The calendar already computed today's date (for
  the today-cell highlight) and already exposed value clearing via the
  trigger's clear icon — these buttons just surface both as visible,
  keyboard-accessible controls in the popover footer. Adds the `today`
  locale key (14 locales), reusing the existing `clear` key for the reset
  button label.

## [1.33.4] - 2026-08-27

### Fixed

- **`u-carousel`'s previous/next buttons and pagination dots had no accessible
  name.** All three are icon-only controls; without an explicit label a screen
  reader announced them as unnamed buttons. They now carry a localized
  `aria-label` (`Locale.getValue('previousSlide' | 'nextSlide' | 'goToSlide')`,
  the pagination dots also gaining `aria-current`) — translated across all 14
  built-in locales.

## [1.33.3] - 2026-08-26

### Fixed

- **`Locale`'s automatic locale detection could pick up the host machine's OS
  locale instead of a browser user's language.** `detectLocale()` trusted any
  global `navigator.language` it found, including the one Node.js itself now
  provides outside a browser — that global reflects the server/CLI machine's
  OS locale, not a real user's setting. Importing this module in a non-browser
  context (SSR, a Node script, a test runner) could silently default to a
  non-English locale instead of the documented `'en'` fallback. It now only
  trusts `navigator.language` when an actual `window` is present.

## [1.33.2] - 2026-08-25

### Fixed

- **`u-popover[trigger="hover"]` closed immediately on touch devices.** Its hover
  handlers didn't distinguish pointer type — a tap fires `pointerenter` followed
  almost instantly by `pointerleave` (touch/pen have no sustained "hover" state the
  way a mouse does), so the popover closed again before a user could interact with
  it. It now falls back to a click-like toggle on `touch`/`pen` pointers, matching
  the common convention for hover-triggered menus (this also fixes `u-menu-item`'s
  submenu, which uses the same trigger). Mouse and `focus`/`focusin` triggers are
  unaffected.

### Docs

- `UFloatingElement`'s `show-delay`/`hide-delay` now document their kebab-case HTML
  attribute name explicitly — the corresponding `showDelay`/`hideDelay` camelCase
  spelling is silently ignored, and this wasn't called out before.

## [1.33.1] - 2026-08-25

### Fixed

- **`aria-label` set on `<u-button>` never reached the accessibility tree.** The host
  attribute was present, but the actual interactive node exposed to assistive technology is
  the native `<button>`/`<a>` rendered inside the shadow root — ARIA content attributes on a
  shadow host do not cross the shadow boundary to label a descendant. Icon-only buttons using
  `aria-label` for their accessible name were announced as unnamed controls. `render()` now
  forwards the host's `aria-label` onto the internal element, and attribute changes made after
  connection are observed and re-rendered (previously only the initial value would have had
  any chance of being picked up).

## [1.33.0] - 2026-08-21

### Added

- **`u-radio` and `u-rating` now support `.focus()`/`.blur()` on the host element too**,
  completing the same contract added to the rest of the form controls in `1.32.0`. Both are
  option/symbol *groups* rather than a single target, so `.focus()` delegates to the first
  option (`u-radio`) or the first symbol (`u-rating`) regardless of the current selection —
  the same "one fixed delegation target" contract every other control in this library now
  shares, rather than adding value-aware branching.

## [1.32.0] - 2026-08-21

### Added

- **`u-select`, `u-date-picker`, `u-textarea`, `u-checkbox`, `u-switch`, and `u-slider` now
  support `.focus()`/`.blur()` on the host element**, matching `u-input`'s existing contract.
  Previously only `u-input` delegated `.focus()` to its actual interactive element; calling
  `.focus()` on any of the others was a silent no-op, since the host element itself carries no
  `tabindex` — only an internal element does (the container, the native `<input>`/`<textarea>`,
  or, for `u-slider`, the first thumb). Any consumer building a generic "scroll to and focus
  the first invalid field" flow now gets consistent behavior across every form control this
  library ships, instead of having to special-case each one.
- **`u-field` now exposes `.focus()` publicly**, delegating to the first focusable slotted
  child — the same lookup its label-click handler already used internally, now available to
  consumers slotting an arbitrary form control (not one of this library's own) directly into
  `<u-field>`.

## [1.31.0] - 2026-08-20

### Added

- **`u-chip`'s remove button and `u-tab`'s close button are now keyboard-operable.** Both
  render a real `<u-button>`, but it carried an explicit `tabindex="-1"` — which, despite the
  inner native `<button>` still reporting `tabIndex === 0`, removes it from the browser's
  actual Tab sequence (verified in real Chromium; the property alone doesn't tell you this).
  Neither component offered any alternative keyboard path to trigger removal, so a
  keyboard-only user could see a removable chip or a closable tab but never dismiss it without
  a mouse. The `tabindex="-1"` override is removed, restoring each button's normal default
  focusability — Tab now reaches it like any other button, and Enter/Space activate it
  natively.

## [1.30.0] - 2026-08-20

### Added

- **`u-input`, `u-select`, and `u-date-picker`'s suffix action icons (clear, password
  show/hide, and the new number stepper) are now keyboard-operable.** They were mouse-only —
  a plain `u-icon` with a click handler, no `tabindex`, no role, no accessible name — so a
  keyboard-only or screen-reader user had no way to clear a field or toggle password
  visibility. They now get `role="button"`, `tabindex="0"`, an `aria-label`, and Enter/Space
  activation, matching how the rest of the library already treats icon-triggered actions.
  Three new `Locale` keys — `clear`, `showPassword`, `hidePassword` — join `increment`/
  `decrement` from `1.29.0`, translated into all 14 built-in locales.

## [1.29.0] - 2026-08-20

### Added

- **`u-input[type="number"]` now has click `−`/`+` stepper buttons.** The native browser spin
  buttons were already hidden by CSS with nothing put in their place, so there was no way to
  adjust a number field with the mouse — only by typing or, undiscoverably, the keyboard arrow
  keys. The new buttons delegate to the native `stepUp()`/`stepDown()`, so `min`/`max`/`step`
  are respected exactly as they already were for the keyboard path; a button dims (and stops
  responding to clicks) once its direction would go past `min`/`max`. Hidden when the field is
  `disabled`, `readonly`, or not `type="number"`. Two new `Locale` keys, `increment`/
  `decrement`, back their `aria-label`s and are translated into all 14 built-in locales.

## [1.28.0] - 2026-08-17

### Added

- **`u-alert` now sets its own ARIA `role`/`aria-atomic` instead of leaving it to the
  consumer.** `status="error"`/`"warning"` renders `role="alert"` (implicit
  `aria-live="assertive"`); every other status (including no status) renders `role="status"`
  (implicit `aria-live="polite"`). `aria-atomic="true"` is always set so the whole message is
  announced as one unit. Previously a screen-reader user got no announcement at all when an
  alert appeared unless the consumer manually attached `role="alert"` at every call site —
  `status` already carries the severity, so the component derives the role from it.

## [1.27.3] - 2026-08-11

### Fixed

- **`u-textarea`'s form submission value now stays in sync with `value` across every change
  path**, not just on `change`. Previously, `ElementInternals.setFormValue()` was only called
  from the `change` handler, so submitting a form before the field lost focus (an initial
  `value` attribute or a programmatic `.value =` assignment) could send a stale or missing
  value. Sync now happens reactively whenever `value` changes, matching `u-input`'s contract.
- **`u-checkbox`/`u-switch`'s form submission value now stays in sync with `checked` across
  every change path**, not just on the native `change` event. Previously,
  `ElementInternals.setFormValue()` was only called from the click handler, so submitting a
  form before interaction (an initial `checked` attribute or a programmatic `.checked =`
  assignment) could send a stale or missing value. Sync now happens reactively whenever
  `checked` (or `value`) changes.

## [1.27.2] - 2026-08-11

### Fixed

- **`u-input`'s form submission value now stays in sync with `value` across every change
  path**, not just on blur. Previously, `ElementInternals.setFormValue()` was only called from
  the blur handler, so submitting a form before a field lost focus (an initial `value`
  attribute, a programmatic `.value =` assignment, or the clear button from 1.27.1) could send a
  stale or missing value. Sync now happens reactively whenever `value` changes, matching
  `u-select`'s existing contract.

## [1.27.1] - 2026-08-11

### Fixed

- **`u-input[clearable]`'s built-in clear button now dispatches `change`**, matching the
  existing contract on `u-select` and `u-date-picker`. Previously, clicking the clear icon
  emptied the value visually but fired no event, so consumers binding to `change` (e.g. a
  filter bound to `.value`/`@input`) never saw the reset.

## [1.27.0] - 2026-08-08

### Added

- **`formatNumber`/`formatCurrency`/`formatDate` utilities** (`utilities/format.ts`). Thin
  wrappers around `Intl.NumberFormat`/`Intl.DateTimeFormat` that default to the active
  `Locale.get()` locale. `formatCurrency` has no default currency — callers must pass one
  explicitly.
- **`u-date-picker`** — a single-date picker form control (`UFormControlElement`), matching
  the value contract of a native `input[type=date]` (ISO `YYYY-MM-DD`). Renders a calendar
  grid in a popover with full keyboard navigation (arrow keys, Home/End, Enter/Space, Escape)
  following the WAI-ARIA Date Picker Dialog pattern. `min`/`max` mark out-of-range days
  `aria-disabled` (focusable but not selectable, so keyboard users can still perceive and
  navigate past them) and drive `rangeUnderflow`/`rangeOverflow` validity. Date ranges and
  `datetime-local` are out of scope for this release.

## [1.26.0] - 2026-08-07

### Added

- **`--u-density` switch.** `u-button`, `u-form`, and `u-button-group` now read
  `font-size: var(--u-density, <current default>)` at their base rule instead of a hardcoded
  literal. Setting `--u-density` on an ancestor rescales these controls (and, since padding/
  min-height are expressed in `em`, everything proportional to them) without touching each
  component individually. Unset, rendering is byte-identical to before. An explicit `size="sm"`/
  `size="lg"` on `u-button` still wins — the switch only affects the unattributed default, not an
  author's explicit per-instance choice.
- **New token `--u-bg-color-raised-hover`.** In dark, `--u-bg-color-raised` and the global
  `--u-bg-color-hover` resolved to the same value, so hovering a card or table header produced no
  visible feedback — a single global hover token has no way to know what surface it sits on. The
  new token is computed relative to `--u-bg-color-raised` via `color-mix()` in dark; in light it
  aliases the existing hover token, since that palette already keeps raised and hover apart.
  Purely additive.

### Fixed

- 🔴**`sideEffects` omitted this package's own entry barrel, so bundlers dropped every element
  registration.** The barrel that `exports["."]` resolves to exists solely to register the custom
  elements, but it was not in the `sideEffects` allowlist. A consumer writing
  `import '@iyulab/components'` — the form this package's own documentation recommends — had the module
  elided entirely in a production build. The failure is silent: the build succeeds with no warning,
  the tags remain in the DOM, and an unregistered custom element renders nothing.

  Registration modules were already listed correctly. That was not enough: a dropped barrel means
  they are never reached.

  Measured on a minimal Vite production build importing only the barrel, the emitted chunk went from
  **692 B with zero `customElements.define` calls** to the full bundle with registrations intact
  once the barrel was declared — a one-line manifest difference, identical sources.

  The `./react` subpath entry had the same gap.

  Both the source-resolved and published-artifact forms of every affected entry point are now
  declared, so workspace consumers and installed consumers get the same guarantee.

## [1.25.0] - 2026-08-05

### Fixed

- 🔴**`u-field`: the documented `validation-message` attribute never applied.** Lit derives
  the default attribute name by **lowercasing** the property name — not by kebab-casing it —
  so `validationMessage` was only reachable as `validationmessage`. Every usage in the
  documentation and examples wrote `validation-message`, which set nothing and left the
  error text invisible. The attribute name is now declared explicitly, matching the
  convention already used elsewhere (`show-delay`, `hide-delay`).

  ```html
  <u-field label="Name" invalid validation-message="Name is required.">
    <u-input></u-input>
  </u-field>
  ```

  Property bindings (`.validationMessage=${…}`) are unaffected.

## [1.24.0] - 2026-08-04

### Added

- 🔴**`u-text` — 의미 타이포그래피 스케일(7단)을 마크업에서 쓰는 자리.**
  시트는 `1.21.0` 부터 단마다 **크기·굵기·행간·자간** 네 값을 갖고 있었지만 **그 단을
  적용하는 컴포넌트가 없었다** — 소비자가 스케일을 쓰려면 자기 CSS 에서 토큰을 직접
  참조해야 했고, 그러면 «컴포넌트만으로 화면을 짓는다»가 그 자리에서 깨졌다.
  ⇒ 우리가 준 것은 **값**이고 필요했던 것은 **자리**다.

  ```html
  <u-text level="1" variant="display">문서 제목</u-text>
  <u-text variant="subtitle" tone="weak">한 줄 설명</u-text>
  <u-text>본문</u-text>
  <u-text variant="caption" tone="weak">보조 문구</u-text>
  ```

  ★**시각 축(`variant`)과 의미 축(`level`)이 독립**이다 — `level` 을 주면 섀도 루트에 실제
  `<h1>`~`<h6>` 을 렌더해 heading 으로 읽히고(슬롯 텍스트가 접근가능 이름), 주지 않으면
  `<p>` 다. 그래서 *"페이지의 두 번째 제목이 시각적으로 가장 큰"* 배치가 마크업을
  거짓말시키지 않고 표현된다.

  ⚠**`tone` 은 중립 강조 축이다**(`default`·`weak`·`strong`·`inverse`) — 역할색이
  아니다. 소비 화면 실측에서 나온 색 다섯 중 셋이 이 축이었고 나머지 둘은 **링크**와
  **콜아웃 박스**라 이 컴포넌트의 축이 아니었다.

  ⚠**값을 새로 정의하지 않는다** — 7단 × 4속성을 시트에서 읽기만 한다. 회귀 12건이
  *"어떤 크기인가"* 가 아니라 ***"시트가 말한 그 값을 쓰는가"*** 를 잰다.
  같은 이유로 `overline` 에 `text-transform: uppercase` 를 **붙이지 않았다** — 관습이긴 하나
  소비자가 쓴 글자를 바꾸고, CJK 에는 효과가 없어 **같은 단이 언어에 따라 다르게 보인다.**

### Fixed

- 🔴**`u-field` 안의 컨트롤이 필드 폭을 채우지 않아 폼 격자가 어긋났다.** 실측: 같은 231px
  칸 안에서 `u-input` 202 · `u-select` 71/92/108 · `u-textarea` 168 — **오른쪽 끝이 다섯
  군데에서 다 달랐다.** 컨트롤 자신의 기본값(`inline-block`)은 옳지만, `u-field` 로 감싼
  순간 그것은 **폼의 한 칸**이다 ⇒ 라벨·설명·검증 문구의 배치를 책임지는 이 컴포넌트가
  폭도 함께 정한다(`::slotted(*) { width: 100% }`).
  ⚠소비자가 인라인 `style` 로 폭을 주면 그쪽이 이긴다.

### Added

- **`u-icon[fallback]`** — 이름·URL 이 해석되지 않을 때 대신 그릴 SVG 원문.
  «아이콘이 안 보인다»가 **«누를 것이 없다»** 가 되는 자리가 있다(접힌 사이드바의 메뉴 항목).
  해석 실패는 이름 미지정 · 404 · SVG 파싱 실패를 **모두** 포함한다.

### Documentation

- 🔴**`Theme.accent(seed)` 가 `primary` 역할 토큰 **7종 중 6종**만 세팅한다는 것을 명시했다.**
  `--u-primary-bg-color`(`u-tag` 의 `--tag-hue-surface` 가 읽는 «글자를 얹는 옅은 면»)는
  시트 기본값으로 남으므로, **시드만 넣으면 태그·선택된 행 같은 옅은 면이 파랑으로 남는다.**
  실측된 증상이 *"버튼은 브랜드인데 선택된 표 행은 파랑"* 이다.
  ⇒ `usage.md` 브랜드 절에 **7종 표**와 한 줄 해법을, `Theme.accent` JSDoc 에 같은 내용을 적었다.

  ⚠**파생을 붙이지 않은 이유**: 이 토큰은 `info`·`success`·`danger`·`warning` 과 한 세트로
  **5계열 × 2테마 = 10개 값이 손으로 짝지어져** 있고, 두 테마가 같은 계약을 쓰지 않는다
  (바탕 대비비 실측 — 라이트 **1.142** · 다크 **1.030**). 도출식으로 바꾸는 것은 팔레트
  값 결정이라 별도 판단이 필요하다.

  브라우저 회귀 2건이 이 문서가 참인지 잰다 — **결손을 고정하는 것이 아니라**, 나중에 파생이
  붙으면 그 테스트가 뒤집히면서 문서도 고치라고 알린다.

## [1.23.0] - 2026-08-04

### Added

- **`u-expander` — 제목을 눌러 본문을 접고 펴는 디스클로저.**

  ```html
  <u-expander label="배송 정보" open>
    <p>본문</p>
  </u-expander>
  ```

  헤더는 **네이티브 `<button>`** 이라 Enter/Space·포커스 순서가 그대로 따라온다. 높이 전환은
  grid 트랙(`0fr` ↔ `1fr`)이라 콘텐츠 높이를 JS 로 재지 않으며, `prefers-reduced-motion:
  reduce` 에서 멈춘다(접힘/펼침의 결과는 정지 상태에서도 그대로 읽히므로 이 전환은 장식이다).

  ⚠**접힘의 요점은 높이가 아니라 «도달 불가»다** — `overflow: hidden` 만으로 접으면 화면에서
  사라진 콘텐츠가 **접근성 트리와 탭 순서에 그대로 남는다.** `visibility` 를 함께 옮겨
  접힌 본문이 포커스를 받지 못하게 한다(회귀 테스트가 이 조건만 따로 잰다).

### Changed

- **콘솔 진단 문구가 영어로 이주했다** — 토큰 시트 부재 경고 · `[Dialog]` 표시 실패 ·
  `[IconRegistry]` 리졸브 실패. 화면 문자열이 아니라 **개발자 대면 진단**이고, 검색 가능성과
  이슈 재현 공유에서 영어가 유리하다는 판단이다(로케일 레지스트리에 넣지 않는다 — 사용자가
  읽는 문자열이 아니다). 문구를 판별식으로 쓰던 테스트가 있다면 *"무엇을 말하는가"* 로 좁힐 것.

### Removed

- 🔴**한 번도 동작한 적 없는 선언 3종을 걷었다.** 전부 «선언 + 문서»만 있고 그 값을 읽는
  코드가 **어디에도 없었다**(전수 검색). 동작이 없었으므로 **깨질 동작도 없다.**

  | 제거 | 문서가 약속하던 것 | 대체 |
  |---|---|---|
  | `u-panel[collapsible]` | *"Allow the panel to collapse"* | **`u-expander`**(위) |
  | `u-tab-panel[editable]` | *"Allow adding/removing tabs"* | 없음 — 탭 추가/삭제는 소비자가 슬롯을 직접 다룬다 |
  | `u-tree[droppable]` · `u-tree-item[droppable]` | *"Enable drop" / "Accepts drops"* | 없음 — 아래 참조 |

  ⚠**`draggable` 은 남는다** — 그것은 네이티브 전역 속성이라 브라우저가 드래그 자체는
  켜 준다. 다만 문서가 *"Allow reordering tabs by drag"*·*"Enable drag"* 로 **재정렬/드롭
  기능을 약속**하고 있었고 그런 코드는 존재한 적이 없다 ⇒ **문서를 사실로 정정**했다
  (*"native drag attribute — no built-in reordering"*). 드래그 재정렬·트리 드롭은 수요가
  모이면 기능으로 설계한다.

- **`Locale.namespace()` — 상위 패키지가 자기 화면 문자열을 담을 자리.**

  ```ts
  const t = Locale.namespace<'empty' | 'loading'>('u-data-view');
  t.register('en', { empty: 'No data', loading: 'Loading…' });
  t.register('ko', { empty: '데이터가 없습니다' });
  t.text('empty');                     // 활성 로케일 기준
  ```

  종전의 `Locale.register`/`getValue` 는 **검증 메시지 9키의 닫힌 유니온**(`LocaleMessageKey`)만
  받는다. 상위 패키지의 화면 문자열은 그 유니온에 없고, 넣으면 기반 라이브러리에 소비자
  도메인 어휘가 쌓인다. ⇒ 결과적으로 각 패키지가 **자기 레지스트리를 손으로 만들거나**
  문자열을 하드코딩해 왔다.

  ⚠**순수 가산이다** — `LocaleMessageKey`·`register`·`getValue` 세 시그니처를 하나도
  건드리지 않는다. 키 유니온은 **소비자가** 제네릭으로 정하므로 라이브러리 키셋은 커지지 않는다.

  조회 사슬(정확 일치 → base 언어 → `en`)과 `{name}` 치환은 검증 메시지와 **같은 구현을
  공유한다** — 두 벌로 두면 한쪽만 고쳐진다. 사슬에 없는 키는 **키 자체**를 돌려준다
  (조용히 빈 문자열이 되는 것보다 화면에 드러나는 편이 낫다).

- **`Theme.accent(seed)` — 브랜드 색 하나로 `--u-primary-*` 램프를 만든다.**

  ```ts
  Theme.accent('#6A1B9A');   // 램프 5단 + 면 위 글자색이 계산된다
  Theme.accent(null);        // 해제 — 시트 기본값으로
  ```

  종전에는 소비자가 램프를 **손으로 열 줄 적었고**, 그 값이 대비 계약을 만족하는지는
  아무것도 확인하지 않았다. 이제 **계산해서** 넣는다 — 면 위 글자 4.5 · 바탕 위 글자 4.5 ·
  `-strong` ↔ `-color` 구분 1.20 · 그래픽 3.0.

  ⚠**CSS `color-mix()` 만으로는 안 된다** — 고정 비율은 밝은 시드에서 깨진다(노랑의
  `-strong` 이 바탕 대비 **2.21**, 기준 4.5). 목표 대비까지 섞으려면 대비를 **계산**해야
  하고 CSS 에는 그 수단이 없다. ⇒ 계산은 JS, 결과만 커스텀 프로퍼티로.

  ⚠**테마가 바뀌면 다시 계산된다** — 대비 목표가 «바탕 기준»이라 라이트와 다크는 같은
  시드에서 **다른 램프**를 갖는다. 바탕은 계산 시점의 `--u-bg-color` 를 읽으므로 소비자가
  바탕을 덮었으면 그 값이 기준이 된다.

- **`u-skeleton` 에 `lines` — 여러 줄 자리표시자.**

  ```html
  <u-skeleton lines="3" height="1em"></u-skeleton>   <!-- 막대 3개 · 마지막 줄은 짧게 -->
  ```

  종전에는 목록 한 줄·문단 자리표시자를 만들 때 **폭만 다른 막대를 손으로 반복**해야 했다
  (이 리포 안에서만 12사용처). 마지막 줄을 짧게 그리는 것은 장식이 아니라 **문단의 끝**을
  나타내는 신호다(`--skeleton-last-line-width`, 기본 60%). 줄 간격은
  `--skeleton-line-gap`(기본 `0.5em`).

  ⚠**단일 막대의 모양은 바뀌지 않는다** — `lines` 가 없으면 종전과 완전히 같고, 회귀
  테스트가 그 계약을 감시한다. `pulse`/`shimmer` 는 줄마다 적용되며 `prefers-reduced-motion`
  에서 함께 멈춘다.

- **오버레이가 열릴 때 `autofocus` 를 존중하고, 없으면 첫 입력으로 간다** (`u-dialog`·`u-drawer`).

  ```html
  <u-drawer closable>
    <span slot="header">주문 편집</span>
    <u-input label="수량" autofocus></u-input>   <!-- 여기로 간다 -->
  </u-drawer>
  ```

  종전에는 `focus-trap` 의 기본값(**첫 tabbable 노드**)에 맡겨져 있었다. 그 결과 ⑴`autofocus`
  가 **무시되고**(focus-trap 은 그 속성을 보지 않는다) ⑵**버튼이 마크업 앞에 있으면 버튼이
  포커스를 가져갔다**(확인/취소가 먼저 오는 다이얼로그가 그 모양이다 — 실측: 입력이 아니라
  첫 버튼). ⇒ 순서를 계약으로 고정한다: `[autofocus]` → 첫 입력 컨트롤 → 첫 tabbable.

  ⚠**시각적 변화가 있을 수 있다** — 버튼이 앞에 오는 다이얼로그는 이제 **입력**에서 시작한다.
  기존 동작을 원하면 그 버튼에 `autofocus` 를 준다.

- **`u-tag`·`u-badge` 에 `icon` — 상태가 «색 없이도» 구분된다.**

  ```html
  <u-tag color="danger" icon>실패</u-tag>     <!-- ✕ 원형 아이콘 -->
  <u-tag color="success" icon>완료</u-tag>    <!-- ✓ 원형 아이콘 -->
  ```

  대비 계약(1.20.0)은 각 상태색이 **자기 바탕에서 읽히는가**를 지키지만 *구별되는가* 는 지키지
  않는다 — 색각 이상(남성 약 8%)이나 흑백 인쇄에서는 «성공»과 «실패»가 같은 회색 알약이 된다.
  역할 색 충돌 검사가 **색 공간에서**(ΔE) 세운 구분을 이 축은 **모양 공간에서** 세운다.

  ⚠**의미가 없는 색에는 그리지 않는다** — 장식 축(`blue`·`purple` …)은 *색 자체*를 뜻하고
  `neutral`·`primary` 는 상태가 아니다. 없는 의미를 아이콘으로 지어내면 그 아이콘이 **잘못된
  정보를 나른다**. `u-badge variant="dot"` 도 콘텐츠를 렌더하지 않으므로 대상이 아니다.

  ⚠**렌더는 가산이다** — `icon` 을 주지 않으면 종전 그대로다. 아이콘은 **내장 번들**에서 오므로
  네트워크를 타지 않는다(오프라인에서도 그려진다).

  ⚠**다만 번들 크기는 가산이 아니다** — `u-tag`·`u-badge` 가 `u-icon` 을 import 하고, 내부
  아이콘 번들은 **빌드 시점 eager glob** 이다. 그래서 `dist/components/tag/UTag.js` 만 deep
  import 하던 소비자도 이제 `UIcon`(2.3 KB)과 내장 SVG 세트(**~9.8 KB**, 19종)를 함께 받는다.
  전체 라이브러리를 쓰는 소비자에게는 변화가 없다(이미 포함돼 있다).

- **`u-skeleton` 의 `pulse`/`shimmer` 가 `prefers-reduced-motion: reduce` 에서 멈춘다.**

  ⚠**스피너는 그대로 돈다** — 갈림길은 *멈추냐 마냐*가 아니라 **어느 움직임이 의미를
  나르는가**였다. 스피너의 회전은 **신호**라 죽이면 진행 여부를 알 수 없다(WCAG 2.2.2 는
  로딩 표시처럼 움직임이 본질인 것을 예외로 둔다). 스켈레톤은 **기본값이 이미 정적**이고
  정지한 블록이 «로딩 중»을 그대로 나르므로 `pulse`/`shimmer` 는 장식이다.

  ⚠시트의 reduce 규칙(`--u-duration-*: 0ms`)은 **`animation` 을 쓰는 자리에 닿지 않는다** —
  지속시간 축을 경유하지 않기 때문이다. 그래서 컴포넌트에서 명시적으로 멈춘다.

### Changed

- ⚠**`u-dialog`·`u-drawer` 제목이 2px 작아진다** — `18px` 리터럴 → `--u-text-subtitle-size`(16px).

  종전에는 *다이얼로그 제목 18 · 얼럿 제목 16* 으로 **같은 위계가 두 값**이었다. 18px 는
  타입 스케일 7단에 **없는 단**이라 리터럴로만 존재할 수 있었고, 그래서 소비자가 스케일을
  조율해도 이 두 자리는 따라오지 않았다.

  ⚠**단을 늘리지 않았다** — 18px 를 요구하는 타이포 자리는 전수 **둘뿐**이고(`u-copy-button`
  의 18px 는 아이콘 크기다), 단일 수요로 축을 늘리는 것은 선제 확장이다. 같은 패키지의
  `u-alert` 가 이미 `subtitle` 을 쓰고 있어 **선례를 따랐다**.

  ⚠**헤더의 닫기 버튼은 `font-size: inherit` 이라 함께 2px 작아진다.**

  `tests/build/type-scale.test.ts` 가 *"제목 위계를 가진 컴포넌트가 같은 단을 읽는가"* 를
  대조한다 — 리터럴로 다시 갈라지면 발화한다.

### Fixed

- **역할 색의 «의미 충돌» 검사를 뒀다**(`tests/build/role-color-collision.test.ts`).
  대비 검사는 각 역할색을 **자기 바탕에 대해** 재므로 *"저장(primary)과 삭제(danger)가
  같은 색"* 인 상태도 **양쪽 다 통과한다** — 대비는 *읽히는가*를 묻지 *구별되는가*를 묻지
  않는다. 이제 역할끼리의 거리를 CIELAB ΔE 로 잰다(임계 20).

  ⚠**`primary` 와 `info` 는 기본값이 의도적으로 같으므로 면제**다(브랜딩은 `primary` 만
  바꾼다). 면제쌍의 **근거가 시트 주석에 남아 있는지**도 함께 잰다 — 근거 없는 면제가
  쌓이면 검사가 아무것도 지키지 않게 된다.

  실측: 면제쌍을 뺀 최소 거리가 **38.7**(라이트 `-strong` 의 warning/danger)이라 정상적인
  램프 조율에는 발화하지 않는다.

## [1.22.0] - 2026-08-03

### Added

- **`u-button` 의 `variant="ghost"` 가 `color` 축을 따른다.** 종전에는 `color` 를 무엇으로
  주든 같은 중립색이 나왔다 — `solid`·`outlined`·`link` 셋은 따르는데 **`ghost` 한 자리에서만
  축이 끊겨** 있었다.

  ```html
  <u-button variant="ghost" color="danger">삭제</u-button>   <!-- 이제 위험색 -->
  ```

  ★**`ghost` 는 색이 «필요 없는» variant 가 아니라 색이 «유일한 신호»인 variant 다.** 면도
  테두리도 없으므로 글자색이 사라지면 남는 구분이 없다 — 파괴적 액션을 `ghost` 로 두는
  화면에서 위험 신호가 통째로 없어진다.

  `link` 와 같은 이유로 면 슬롯(`--btn-color`)이 아니라 **`--btn-color-strong`**(바탕 위 글자
  단)을 읽는다. 실측 대비: primary **5.75** · danger **5.62**(흰 바탕).

  ⚠**`color` 를 주지 않은 `ghost` 는 변화 없다** — 가산 변경이다.

  ⚠**축이 한 자리에서만 끊기면 개별 확인으로는 보이지 않는다.** `ghost` 를 혼자 보면
  *"원래 수수한 것"* 으로 읽힌다. `tests/browser/button-variant-color-grid.browser.test.ts`
  가 **variant × color 를 격자로** 놓고 행 사이를 비교한다 — variant 마다 축이 나타나는
  자리가 다르므로(면·테두리·글자) 그 자리를 각각 잰다.

## [1.21.0] - 2026-08-03

> **디자인 파운데이션 릴리스.** 이 패키지에는 **글자 크기·굵기·행간·자간 토큰이 하나도
> 없었다**(폰트 패밀리 6개가 전부였다). 그래서 소비자는 화면의 모든 글자 크기를 리터럴로
> 적었고, 한 앱 안에 12·12.5·13·13.5·14 가 섞였다. 위계가 없으면 화면이 평평해 보이고,
> 평평한 화면은 낡아 보인다. 이 릴리스는 **축을 연다** — 값의 취향은 상위 계층 몫이다.

### Added

- **타입 스케일 축** — 7단 × 4속성. 단 이름은 크기가 아니라 **역할**이다.

  ```
  --u-text-{display,title,subtitle,body,label,caption,overline}-{size,weight,leading,tracking}
  ```

  ★**네 값을 단 단위로 묶어 낸다.** 크기만 주면 소비자가 굵기·행간을 각자 정해 결국
  제각각이 된다 — 스케일이 스케일로 동작하려면 한 단이 네 값을 모두 소유해야 한다.

  🔴**한글 기준으로 값을 골랐다**: ⑴행간 **전 단 1.4 이상**(라틴 관례 1.2 는 한글에서
  답답하다 — 받침 때문에 글자 상자가 세로로 꽉 차 있다) ⑵자간은 **0 이 기본**이고 큰
  제목만 음수(한글에 양수 자간은 가독성을 떨어뜨린다) ⑶양수 자간은 `overline` 하나뿐이고
  그 단은 **영문·숫자 라벨**을 전제한다.
  ⚠**`text-transform` 은 토큰으로 내지 않는다** — 한글에 대문자가 없어 `uppercase` 가
  아무 효과가 없고, 영문이 섞이면 그것만 커져 오히려 어수선해진다.

  ★**이 축의 1차 소비자는 컴포넌트가 아니라 소비 앱이다** — 화면의 제목·라벨·캡션을
  짓는 쪽이다. 컴포넌트는 대부분 자기 크기가 이미 정해져 있고(툴팁은 툴팁이다),
  `u-button` 의 `size` 축 리터럴(12/14/16px)은 **결손이 아니라 설계**다(여백·최소높이가
  전부 `em` 이라 그 한 값으로 비례한다). ⇒ 컴포넌트 배선은 **값이 이미 단과 일치하는
  자리에만** 했다(시각 변경 0): `u-alert` 머리줄 → `subtitle` · `u-tooltip`·`u-tag` →
  `caption`.

  ⚠**남은 것 하나를 숨기지 않고 적는다**: `u-dialog`·`u-drawer` 의 제목은 **18px** 인데
  **스케일에 18px 단이 없다**(title 20 / subtitle 16). 값이 어긋나므로 배선하지 않았다 —
  맞추려면 제목이 2px 작아지거나(시각 변경) 스케일에 단을 하나 더해야 한다(7 → 8단).
  **사람 판단으로 올린다.**

- **모션 축** — `--u-duration-{instant,fast,normal,slow}` · `--u-ease-{standard,decelerate,accelerate}`.
  ★**`prefers-reduced-motion: reduce` 존중을 라이브러리가 진다** — 지속시간을 0 으로 눌러
  이 축을 경유하는 모든 애니메이션이 함께 멈춘다. 소비자마다 각자 처리하게 두면 반드시
  빠뜨리는 앱이 나오고, 그 앱은 접근성 감사 전까지 아무도 모른다.

  **컴포넌트 `transition` 37곳 · 24파일 배선.** ⚠**리터럴 지속시간이 남아 있으면 그 자리는
  `prefers-reduced-motion` 을 비껴간다** — 축이 있어도 경유하지 않으면 아무것도 멈추지
  않기 때문이다. 회귀 테스트가 **컴포넌트 시트에 리터럴 지속시간 0건**을 지킨다(폴백은
  제외 — 시트 부재 시 렌더를 살리는 장치다). 컴포넌트-로컬 지속시간 토큰
  (`--switch-duration`)의 **기본값도 공용 축에서 파생**시켰다. 그러지 않으면 그
  컴포넌트만 비껴간다.

  ⚠**지속시간이 계단으로 접히면서 값이 움직인다**(최대 편차는 진행바 `0.4s → 0.32s`,
  −20%). 나머지는 ±10% 이내다(`0.15s → 140ms` · `0.2s → 220ms` · `0.3/0.35s → 320ms`).
  **값 보존 대신 계단을 고른 이유**: 7가지 지속시간을 그대로 토큰화하면 축이 아니라
  사전이 되고, 그러면 이 축의 존재 이유(전수 경유 → 한 번에 멈춤)가 성립하지 않는다.

- **여백 스케일 상단 4단** — `xl: 20px` · `2xl: 24px` · `3xl: 32px` · `4xl: 40px`.
  종전에는 `lg`(16px)에서 끊겨 **카드 안쪽 여백·섹션 간격·페이지 여백 구간이 통째로
  비어 있었다** — LOB 화면 여백의 대부분이 그 구간이다.
  ⚠`xs: 6px` 는 4px 격자를 벗어나 있으나 **바꾸지 않는다**(배선된 컨트롤 여백이 전부
  움직인다). 신규 단은 전부 4의 배수이며 테스트가 지킨다.

- **반경 스케일 상단 2단** — `2xl: 12px` · `3xl: 16px`. **면(surface)용**이다.
  카드·패널·대화상자처럼 큰 사각형은 컨트롤과 같은 반경을 쓰면 각져 보인다.
  ⚠**기존 5단(3/4/6/8px)의 값은 바꾸지 않았다** — 컨트롤용이고, 바꾸면 모든 소비자의
  버튼·입력이 동시에 움직인다.

### Changed

- ⚠**그림자가 2겹이 된다** — 접촉 그림자가 추가됐다(예: `--u-shadow-md` 는
  `0 2px 8px rgba(0,0,0,.12)` → `0 2px 8px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.05)`).
  1겹 그림자는 경계가 탁해 회색이 낀 것처럼 보인다. **기존 레이어의 값은 그대로**이므로
  기존 인상은 유지되고 접촉면만 또렷해진다.
  ★배치 순서가 **지배 레이어 먼저**인 것은 의도다 — elevation 계약이 값의 첫 레이어로
  단의 세기를 읽으므로, 그 계약과 알파 짝(`--u-shadow-color-*`)이 단일 출처로 남는다.

- ⚠**`--u-font-base` 에 CJK 폴백이 들어간다** — 국제화이지 취향이 아니다.
  종전 스택(`-apple-system, Segoe UI, Noto Sans, Helvetica, Arial`)에는 **한중일 글립을
  가진 폰트가 하나도 없었다.** Windows 는 UA 가 임의로 맑은 고딕을 고르고 macOS 는
  Apple SD Gothic Neo 를 줘서 **같은 앱이 OS 마다 다른 글꼴로 렌더**됐다.
  스택 맨 앞의 `Pretendard` 는 **소비자가 로드했을 때만** 잡히는 선택적 이름이다 —
  라이브러리는 웹폰트를 네트워크로 요청하지 않는다(소비자 CSP·오프라인 환경을 깬다).

- `u-alert` glass variant 의 반경 리터럴 `16px` 이 `--u-radius-3xl` 배선으로 바뀐다(값 동일).

### 계약 테스트

`tests/build/type-scale.test.ts` 신설 — 단·속성 존재, 두 시트 동일, 인접 단 비율 1.05~1.35,
크기 역전 없음, **행간 1.4 이상**, **양수 자간은 overline 하나뿐**, 굵기 100 단위,
`prefers-reduced-motion` 에서 지속시간 0.

## [1.20.0] - 2026-08-03

> ⚠**이 릴리스는 시각이 바뀐다.** 아래 항목들은 값을 고르는 문제가 아니라 **관계가
> 어긋나 있던 것**을 맞춘 것이며, 그 결과 버튼 폭·높이 등이 움직인다.

### Added

- **`color` 속성이 역할 값을 받는다** — `primary` · `info` · `success` · `warning` · `danger`.
  대상: `u-button` · `u-tag`(→ `u-chip`) · `u-badge` · `u-checkbox` · `u-spinner`.

  ```html
  <u-button color="danger">삭제</u-button>   <!-- 의미: 파괴적 동작 -->
  <u-button color="red">삭제</u-button>      <!-- 의미: 빨강. 리브랜딩해도 빨강 -->
  ```

  종전에는 `color` 가 **원색 이름만** 받았다. 브랜드가 빨강인 제품에서는 *브랜드*와
  *위험*이 같은 이름이 되고, 의미가 색에 종속된다.

  두 축은 성질이 반대이며 **병존**한다:

  | 축 | 값 | 리브랜딩 | 대비 |
  |---|---|---|---|
  | **역할** | `primary` `info` `success` `warning` `danger` | 따라온다 | 계약 검사가 지킨다 |
  | **장식** | `blue` `green` `red` `orange` `teal` `cyan` `purple` `pink` | 의도적 면역 | 소비자가 고른 색 |

  ★**역할 값은 전경색을 함께 가져온다.** 장식 축은 면 위 글자가 흰색 고정인데, 역할 축은
  `--u-{role}-txt-color` 를 쌍으로 받는다 — 그래서 `warning` 이 노란 면 위에 **검은 글자**로
  렌더된다. 같은 표시가 **바탕 위**에 서는 자리(`variant="link"` · `u-checkbox[variant="outline"]` ·
  `u-spinner`)는 면 단이 아니라 `-strong` 을 읽는다. 면 단을 바탕 위 글자로 쓰면 다크에서
  **3.07** 로 AA 미달이기 때문이다.

  ⚠**순수 가산 — 장식 값의 렌더는 변하지 않는다.** 계산색 대조로 실증했다(기존 장식
  매트릭스 브라우저 테스트 통과).

- **대비 계약 단언 1종** — `--u-{role}-color-strong` on `--u-{role}-bg-color`(유채색 면 위의
  **그 역할 글자**). `u-tag` 의 `surface`/`filled` 가 쓰는 실제 조합이며 두 테마 10/10 통과
  (최저 다크 warning 4.58). 종전 단언은 같은 면 위의 **중립 본문**만 재고 있었다 — 태그는
  의미를 색으로도 전달하므로 중립으로 대체할 수 없어 요구가 다르다.

- **대비 계약이 표면 3종을 교차 검증한다** — 중립 텍스트 단을 `--u-bg-color` 하나가 아니라
  `-raised`·`-active` 까지 대조한다. `--u-bg-color-raised` 는 1.18.0 신설인데 **면 축을
  늘리면서 검사의 곱집합을 늘리지 않아** 그 조합이 한 번도 측정되지 않았다.

  ★현재 미달 4칸(`--u-txt-color-weak` × `-raised`/`-active`, 두 테마)은 **측정값으로 핀**해
  감시한다 — 값을 고치는 것은 게시된 전 컴포넌트의 보조 텍스트를 움직이는 사람 판단이다.
  해소안은 실측해 두었다(양 테마 한 단씩 → 6/6 통과, 다만 보조↔본문 위계비가 다크
  2.33 → 1.46 으로 약해진다).

- ★**높이(elevation) 축 — `--u-shadow-sm` · `-md` · `-lg` · `-xl`**

  그림자 **색** 축(`--u-shadow-color-*`)은 있었지만 **높이** 축이 없었다. 그래서
  컴포넌트가 그림자를 리터럴로 썼고, 같은 리듬을 의도한 자리에 **서로 다른 값 11가지**가
  생겼다 — `u-card` 는 `0 2px 8px rgba(0,0,0,.1)`, `u-carousel` 은 같은 형태에 `.15`.

  ⚠**더 큰 문제는 그 리터럴들이 테마를 몰랐다는 것이다.** `rgba(0,0,0,.1)` 은 다크
  바탕에서 사실상 보이지 않는다 — **다크에서 카드·드롭다운의 높이 표현이 없었다.**
  색 축은 다크에서 3배 가까이 진한 값을 갖고 있었는데(`.12` → `.35`) 아무도 읽지 않았다.

  ```
              라이트                        다크                    쓰이는 곳
  sm   0 1px 3px  rgba(0,0,0,.08)   0 1px 3px  rgba(0,0,0,.25)   탭 · 슬라이더/스위치 손잡이
  md   0 2px 8px  rgba(0,0,0,.12)   0 2px 8px  rgba(0,0,0,.35)   카드 · 캐러셀 · 메뉴 항목
  lg   0 4px 12px rgba(0,0,0,.16)   0 4px 12px rgba(0,0,0,.45)   드롭다운 · 알림 · hover 상승
  xl   0 6px 18px rgba(0,0,0,.24)   0 6px 18px rgba(0,0,0,.60)   대화상자 · 드로어 · 툴팁
  ```

  **소비자 영향**: 15곳의 그림자가 이 4단으로 수렴하므로 일부 컴포넌트의 그림자가
  미세하게 바뀐다(대부분 알파 ±0.04). **다크에서는 눈에 띄게 진해진다** — 종전이
  결손 상태였다. 개별 조정이 필요하면 토큰을 덮으면 된다.

  ⚠**예외 하나**: `u-alert[variant="glass"]` 는 이 축을 쓰지 않는다 — 그 값은 유리
  질감 레시피의 일부이지 높이가 아니다(주석에 명시).

### Changed

- **라이브러리가 스스로 그리는 숫자를 고정폭 자릿수로 낸다** — `u-slider` 의 값 표시와
  썸 툴팁, `u-select` 의 개수 표시(`n / m`).

  셋 다 **제자리에서 값이 바뀌는** 자리다. 비례폭 숫자는 자릿수가 바뀔 때마다 폭이
  달라져 옆 요소를 밀어내므로, 슬라이더를 끌 때 값이 흔들리고 선택할 때마다 라벨 줄이
  움직였다.

  ⚠**눈금 라벨과 입력 필드는 대상이 아니다** — 눈금 라벨은 값이 바뀌지 않고 각자 제
  위치에 정렬되며, 입력 필드는 소비자가 정할 몫이다(`u-input[type="number"]` 의
  `::part(input)` 오버라이드 예시가 문서에 있다).

- ★**`u-button` 의 크기 축이 실제로 비례하게 됐다.**

  크기 축은 `font-size` 하나로 움직이고 나머지가 `em` 으로 따라오는 설계인데,
  **두 값이 그 비례에서 빠져 있었다.**

  ```
  ⑴ 가로 여백 = 세로 여백 (둘 다 0.5em)       →  글자가 테두리에 붙었다
  ⑵ min-height 없음                            →  아이콘 버튼과 글자 버튼의 높이가 달랐다
  ```

  ⑵ 는 툴바에서 눈에 띄는 어긋남이었다 — 실측(같은 `size`):

  ```
              sm      md      lg
  글자 버튼   32px    37px    42px
  아이콘 버튼 30px    32px    34px      ← 계단의 기울기가 달라 size 를 올릴수록 벌어진다
  ```

  **바뀐 것**

  | | 종전 | 1.20.0 |
  |---|---|---|
  | `--btn-padding-inline` 기본값 | `0.5em` | **`1em`** |
  | 내부 버튼 `min-height` | 없음 | `calc(1.5em + 2 × --btn-padding-block + 2px)` |

  ★**최소높이는 상수가 아니라 글자 버튼의 자연 높이를 그대로 다시 쓴 식**이다
  (줄높이 + 상하 여백 ×2 + 테두리 ×2). 그래서 **글자 버튼의 높이는 변하지 않고**
  아이콘 버튼만 같은 높이로 올라온다. 상하 여백을 덮어도 둘이 함께 움직인다.

  **소비자 영향**: 버튼이 **가로로 넓어진다**(md 기준 좌우 7px → 14px). 좁은 폭을
  유지해야 하면 `--btn-padding-inline` 을 덮으면 된다 — 높이는 그 값에서 파생되지
  않으므로 영향받지 않는다.

### Fixed

- ★**다크 테마에서 입력 오류·포커스를 테두리로 알 수 없던 문제** — 상태 테두리 두 토큰이
  **면**의 단(`-color`)을 읽고 있었다. 테두리는 면이 아니라 **면 위에 그리는 선**이므로
  `-strong` 이 맞고, 그 어긋남이 다크에서 WCAG 1.4.11(비텍스트 3.0) 미달로 나타났다.

  ```
                                입력면 위 대비        라이트          다크
  --u-input-border-color-focus    → -strong        4.60 → 5.75    2.74 ✗ → 4.74 ✓
  --u-input-border-color-invalid  → -strong        4.98 → 5.62    2.44 ✗ → 4.34 ✓
  ```

  두 테마 모두 **더 잘 보이는 쪽으로만** 움직인다. 영향 범위는 `u-input` · `u-textarea` ·
  `u-select` · `u-checkbox` · `u-switch` 의 포커스/오류 표시다.

  ⚠**리브랜딩 시**: 상태 테두리는 이제 `--u-primary-color-strong` · `--u-danger-color-strong`
  을 따른다. 역할당 5단을 모두 재정의하는 정규 경로를 쓰고 있다면 조치가 필요 없다.
  `--u-primary-color` **한 단만** 덮고 있었다면 포커스 테두리가 따라오지 않으므로
  `-strong` 도 함께 덮을 것.

- **역할 축 검사에 구멍이 있었다** — `role-token-layer.test.ts` 의 장식 축 면제 판정이
  `[color=…]` 전체였다. 역할 값도 같은 형태의 선택자를 쓰므로, **역할 규칙이 팔레트를
  직접 읽어도 검사가 침묵**했다. 면제를 장식 값에만 준다.

- ★**다크 테마에서 키보드 포커스 링이 잘 보이지 않던 문제** — 모든 컴포넌트에 적용된다.

  포커스 링(`UElement` 의 `:focus-visible`)이 `--u-primary-color-weak` 를 읽고 있었다.
  포커스 링은 **바탕 위에 그리는 그래픽**이라 바탕 기준으로 재야 하는데, 그 단은
  **다크에서 2.31**(WCAG 1.4.11 기준 3.0)이다. `-strong` 으로 옮겨 라이트 5.75 ·
  다크 5.32 로 두 테마 모두 통과한다.

- ★**바탕·트랙 위 그래픽이 `-weak` 를 읽던 자리를 `-strong` 으로 옮겼다.**

  ```
  진행바 · 진행 링 (5상태 각각)      트랙(neutral-200) 위에서 재야 한다
  별점 기호                          라이트에서 노랑(#FFEB3B) 대 흰 바탕 = 1.22
  스플리터 활성 표시
  포커스 링 (위 항목)
  ```

  실측(비텍스트 3.0 기준, 5역할 × 2테마 = 10칸):

  ```
             바탕 위        트랙 위
  -weak      4칸 통과       1칸 통과      ← 종전
  -strong    10칸 통과      10칸 통과     ← 1.20.0 (최저 4.34)
  ```

  ⚠**진행바·진행 링 안에도 비대칭이 있었다** — 같은 컴포넌트인데 `success`·`error` 는
  `--u-*-color`(면의 단), `warning`·`info` 는 `--u-*-color-weak` 를 읽고 있었다.
  다섯 상태가 이제 같은 단을 읽는다.

  ⚠**시각 변경**: 진행바·진행 링·별점이 진해진다. 특히 **라이트에서 별점이
  노랑 → 어두운 호박**으로 바뀐다. 종전 값(#FFEB3B)은 흰 바탕에서 1.22 였고, 빈 별
  (`--rating-symbol-off-color`, #E0E0E0)과의 구분도 사실상 없었다 — *별점을 읽을 수
  없는 상태*였다. 금색 별이 필요하면 `--rating-symbol-color` 를 덮으면 된다.

  ⚠**`u-tag` 의 테두리(`--tag-hue-line`)는 옮기지 않았다** — 그 선은 바탕이 아니라
  **태그 자신의 면을 두르며**, 장식 축이 같은 자리에서 `shade-300` 을 쓰므로 역할 축만
  옮기면 두 축의 대응이 깨진다. "장식 테두리가 1.4.11 대상인가"는 별개의 판단이다.

### Documentation

- **비라틴 문자권(CJK·태국어·아랍어) 폰트 스택 지침** — `docs/theming.md` 에 절을 신설했다.
  `--u-font-base` 는 시스템 UI 스택이라 **대부분의 앱은 조정할 필요가 없다**. 문제가
  드러나는 것은 **브라우저 UI 언어와 콘텐츠 문자가 다른 경우**로, 그때 스택이
  `Helvetica`/`Arial` 까지 떨어지고 브라우저가 글자마다 대체 서체를 골라 줄이 고르지
  않게 보인다. `:root:lang(…)` 별 권장 스택 6종과 **순서 규칙**(플랫폼 UI 폰트를 앞에
  유지하고 명시 서체를 그 뒤 대비책으로), 그리고 `--u-font-mono` 에 CJK 커버리지가
  없다는 점을 함께 적었다.

## [1.18.0] - 2026-08-02

### Added

- **`--u-bg-color-raised`** — 바탕에 인접해 있으면서 한 단 구분되는 **크롬 면**
  (툴바 · 표 헤더 · 푸터 · 페이지네이션).

  ```
  라이트  neutral-50  (#FAFAFA)   다크  neutral-300 (#2A2A2A)
  ```

  종전에는 배경 역할 토큰이 **상호작용 상태 이름뿐**이었다(`-hover`·`-active`·
  `-disabled`). *"바탕보다 한 단 올라온 면"* 을 뜻할 수단이 없어, 소비 패키지가
  `:host-context([theme="dark"])` 로 다크만 손으로 보정했다 — 그리고 그 선택자는
  **Firefox·Safari 에서 미지원**이라 그 브라우저에서는 다크가 적용된 적이 없었다.

  ⚠**`--u-panel-bg-color` 와 다르다.** 그쪽은 *떠 있는* 패널(카드·대화상자·메뉴)이라
  라이트에서 페이지와 같은 흰색이고 그림자가 높이를 나른다. 크롬 면은 그림자가 없어
  라이트에서도 틴트가 필요하다.

  ⚠**한 단만 정의한다.** 두 단째의 실측 수요는 라이트 한쪽뿐이었고, 다크에서는 소비 측
  오버라이드가 두 값을 이미 같은 단으로 합치고 있었다. 상호작용 상태 축에 높이를 얹지도
  않는다 — 의미가 어긋난다.

## [1.17.0] - 2026-08-02

### Fixed

- ★**알림(`u-alert`) 아이콘이 알림 배경 위에서 보이지 않던 문제 — 라이트 4/4 미달.**

  ```
  라이트 (기준 3.0)   error 2.31 ✗   warning 1.48 ✗   info 2.63 ✗   success 2.50 ✗
  다크                 3.18 ✓         3.80 ✓          3.48 ✓        3.95 ✓
  ```

  원인은 **전경이 아니라 배경**이었다. 알림 배경이 `--u-*-color-weakest`(라이트
  shade-200)였는데, 그 단은 **진행바 버퍼 같은 그래픽**에도 쓰인다 — 그래픽으로 보이려면
  진해야 하고 면으로 쓰이려면 옅어야 한다. 두 요구를 한 단에 겹쳐 둔 것이 결함의 뿌리다.

  ⇒ 알림 배경을 **면 토큰 `--u-*-bg-color`** 로 옮겼다. 두 테마 **4/4 통과**(4.58~7.00).
  `-weakest` 는 그래픽 단으로 남는다.

  **라이트 알림 배경이 옅어진다** — error `#EF9A9A` → `#FFEBEE` · info `#90CAF9` →
  `#E3F2FD` · success `#A5D6A7` → `#E8F5E9` (warning 은 `#FFF59D` 유지).

- **라이트 `--u-warning-color-strong` 이 어떤 배경에서도 읽히지 않던 문제.**
  yellow-700(`#FBC02D`)은 흰 바탕 1.66 · 노란 면 위 1.61 이다. 노랑 램프는 900 까지도
  2.65 로 미달이고 **1000(`#8A4A00`)에서 처음 6.86** 이 된다.

  ⇒ 라이트만 `yellow-1000` 으로 옮겼다(다크는 yellow-700 = 5.30 으로 이미 정상).
  경고 아이콘·문구가 **밝은 노랑에서 어두운 호박색으로** 바뀐다 — 이 단의 용도는 면이
  아니라 글자·아이콘이므로 색상보다 가독성이 앞선다.

  ⇒ 1.16.0 이 대비 검사에서 **제외해 두었던 라이트 warning 이 제외 없이 통과**한다.

### Added

- **`--u-warning-bg-color`** — 1.16.0 에서 유일하게 빠져 있던 유채색 면 토큰.

  당시 판정은 *"라이트 황색 틴트가 Δ0.071 로 거의 보이지 않아 세기를 맞출 단 짝이 없다"*
  였는데, 그 측정은 **shade-0 짝만** 재고 있었다. 노랑만 한 단 내려 잡으면 라이트 쪽
  세기가 맞는다 — 바탕 대비 휘도 델타 실측:

  ```
  blue-0 0.131 · red-0 0.132 · green-0 0.117 · yellow-200 0.110   (yellow-0 은 0.027)
  ```

  라이트 `yellow-200` / 다크 `yellow-100`. ⚠단 이름이 계열마다 다른 것은 이 층의 정상
  상태다 — 라이트 팔레트는 휘도 순이 아니라 같은 단 번호가 같은 세기를 뜻하지 않는다.

- **대비 계약 단언 2종** — `상태 아이콘이 그 상태의 면 위에서 보인다`(비텍스트 3.0)와
  면 토큰 위의 본문(5역할 전부). 1.16.0 이 측정값으로만 기록해 둔 항목이 단언으로 승격됐다.

### Known issues

1.16.0 의 다음 둘은 그대로다 — **다크 `-weak` 의 구조적 충돌**(바탕 위 그래픽과 흰 글자를
받는 면이 팔레트의 반대쪽을 요구한다)과 **`--u-border-color-strong` 3.0 미달**.
알림 테두리(`-weaker`)도 면 위에서 3.0 에 못 미치지만(1.13~2.61), 알림은 상호작용
컴포넌트가 아니라 WCAG 1.4.11 적용 여부 자체가 판단을 요구하므로 이번에 손대지 않았다.

## [1.16.0] - 2026-08-02

### Fixed

- ★**역할 토큰의 유채색 단이 WCAG AA 를 받치지 못하던 문제 — 두 테마 모두.**

  1.15.0 은 *"라이트 shade-600 위의 흰 글자가 8색 중 6색 미달, 다크는 8/8 통과"* 로
  기록했다. 그 측정은 **한 방향만** 재고 있었다 — 같은 토큰이 **바탕 위의 글자**로도
  쓰이는데, 그쪽은 다크가 미달이었다:

  ```
  바탕 위의 글자 (기준 4.5)          면 위의 흰 글자 (기준 4.5)
  라이트  --u-primary-color  3.68 ✗   라이트  3.68 ✗
  다크    --u-primary-color  3.07 ✗   다크    6.09 ✓
  다크    --u-danger-color   2.74 ✗   다크    6.83 ✓
  ```

  실제로 깨져 있던 자리: **입력 오류 문구**(`u-field`·`u-checkbox`·`u-switch`),
  **링크 버튼**(`variant="link"` 쉬는 상태 3.12), **복사 완료 표시**, hover/active
  텍스트·아이콘.

  ⇒ **단을 대비로 다시 골랐다.** 단 번호가 아니라 측정이 기준이다:

  | 토큰 | 라이트 | 다크 |
  |---|---|---|
  | `--u-primary-color` · `--u-info-color` | blue-600 → **blue-700** (4.60) | 변경 없음 (면, 6.09) |
  | `--u-primary-color-strong` · `--u-info-color-strong` | blue-700 → **blue-800** (5.75) | blue-700 → **blue-800** (5.32) |
  | `--u-danger-color` | red-600 → **red-700** (4.98) | 변경 없음 (면, 6.83) |
  | `--u-danger-color-strong` | red-700 → **red-800** (5.62) | red-700 → **red-800** (4.87) |
  | `--u-success-color` | green-600 → **green-800** (5.13) | 변경 없음 (면, 4.93) |
  | `--u-success-color-strong` | green-700 → **green-900** (7.87) | 변경 없음 (5.15) |

  ⚠**계열마다 단이 다르고 테마마다 다르다.** Material 램프는 휘도가 아니라 색상 기준으로
  만들어져 있어 같은 단 번호가 같은 세기를 뜻하지 않는다(green 은 700 도 4.12 로 미달이라
  두 단을 건너뛴다). 종전에는 두 시트가 **같은 단**을 쓰도록 테스트가 강제하고 있었고,
  그 규칙이 라이트만 미달인 결함을 세 번 반복해서 만들었다.

  ⚠**라이트와 다크에서 요구가 갈리는 이유**: 라이트는 바탕도 on-color 도 흰색이라 두
  요구가 한 조건으로 합쳐지지만, 다크는 바탕 `#121212` · on-color `#FFFFFF` 로 **정반대
  방향**이다. 한 단이 둘을 맡을 수 없다. 그래서 `-color` 는 **면**, `-strong` 은
  **글자·아이콘**으로 용도를 확정했고, 다크에서 두 단이 벌어진다.

- **`--u-warning-txt-color` 가 노란 면 위에서 읽히지 않던 문제** — `#FFFFFF` 는 라이트
  노랑 위에서 1.40 이다. 노랑은 **어떤 단으로 옮겨도** 흰 글자로 AA 를 못 받치므로
  (라이트 최대 2.65 @900, 그마저 갈색) 전경을 뒤집었다: `var(--u-neutral-1000)` —
  라이트 `#000000`(15.05 ✓) · 다크 `#FFFFFF`(4.65 ✓). 한 줄로 양 테마를 만족한다.

- **`u-badge[color="blue"]` 가 장식 축에서 역할 토큰을 읽던 문제.** 이 한 색만
  `--u-primary-color` 를 참조해, 브랜드 색을 바꾸면 `color="blue"` 배지가 함께 움직였다
  (`color="green"` 등 나머지 8색은 팔레트 직참조라 움직이지 않는다). `--u-blue-500` 로
  되돌렸다 — 이 컴포넌트의 다른 장식 색과 같은 단이다. **배지 파랑이 `#1E88E5` →
  `#2196F3` 로 바뀐다.**

- **`u-button[variant="link"]` 이 `--u-link-txt-color` 를 무시하던 문제.** 링크 색을
  정의해 둔 토큰이 **어디에서도 쓰이지 않았고**, 링크는 대신 `--u-primary-color-weak`
  (흰 바탕 3.12 ✗)를 썼다. 쉬는 상태를 그 토큰으로 되돌리고, hover/active 는 밑줄 +
  `-strong` 한 단으로 합쳤다.

### Added

- **`tests/build/token-contrast.test.ts`** — 역할 토큰의 **조합 대비**를 단언하는 회귀망.
  값 하나를 재는 것으로는 토큰이 안전한지 알 수 없다는 것이 위 결함의 교훈이므로,
  `(전경, 배경, 기준)` 표를 두 테마에 대해 검사한다. 소비자가 `--u-primary-color` 를
  덮어써도 살아남는 형태의 계약이다.

- **`node scripts/token-fallbacks.mjs --refresh`** — 시트 값이 바뀐 뒤 **이미 배선된**
  폴백 리터럴을 다시 굽는다. 종전 생성기는 배선만 하고 갱신을 못 해서, 매핑을 바꿀 때마다
  수십 곳을 손으로 고쳐야 했다(*"폴백은 손으로 쓰지 말고 생성한다"* 는 원칙에 갱신 경로가
  없었다). 이번 변경의 49곳이 이 명령으로 처리됐다.

### Changed

- **시각 변화 요약** — 전부 *진해지는* 방향이며 레이아웃에 영향이 없다.
  주 강조색 `#1E88E5` → `#1976D2` · 오류색 `#E53935` → `#D32F2F` ·
  성공색 `#43A047` → `#2E7D32` · 링크/hover 텍스트가 한 단 더 · 경고 면 위 글자가
  흰색 → 검정 · 배지 파랑 `#1E88E5` → `#2196F3`.
  다크에서는 **글자로 쓰이는 자리만** 밝아진다(면 색은 그대로).

### Known issues

- **알림(`u-alert`) 아이콘이 알림 배경 위에서 3.0 에 미달** — 라이트 danger 2.61 ·
  warning 1.48 (info 3.28 ✓ · success 4.79 ✓ 는 이번 재매핑으로 해소됐다). 원인은
  전경이 아니라 **배경(`-weakest` = shade-200)이 너무 진한 것**이라 면 토큰 쪽을
  손봐야 한다. 다크는 4/4 통과한다.

- **다크에서 `-weak`(진행바 채움·별점·포커스 링)가 바탕 위 3.0 미달** (2.31).
  이 자리는 재매핑으로 못 고친다 — 다크에서 `-weak`(바탕 위 그래픽, 밝아야 함)와
  `-color`(흰 글자를 받는 면, 어두워야 함)가 팔레트의 **반대쪽**을 요구하므로 강도 축
  하나로 표현되지 않는다. 새 축 신설 여부는 설계 결정이다.

- **`--u-border-color-strong` 이 양 테마 모두 3.0 미달** (라이트 1.88 · 다크 2.40).
  무엇이 "UI 컴포넌트 경계"인지의 판단이 선행돼야 한다.

- **장식 축(`[color=X]`)의 shade-600 위 흰 글자는 여전히 8색 중 6색 미달** — 아래
  1.15.0 항목 참조. 역할 층과 달리 장식 축은 소비자가 고른 색이라 라이브러리가 단을
  대신 고를 수 없다.

## [1.15.0] - 2026-08-02

### Fixed

- ★**`--u-txt-color-weak` 가 라이트 테마에서 WCAG AA 에 미달하던 문제.**
  흰 배경 대비 **2.68** (AA 기준 4.5) 이었다. neutral-500 → **neutral-600** 으로 한 단
  내려 **4.61** 로 통과한다. 다크 매핑(neutral-700 = 5.43)은 원래 정상이었으므로 그대로
  둔다 — **라이트 한쪽만의 결함**이었다.

  이 토큰은 컴포넌트 전반의 보조 텍스트가 쓴다. **보조 텍스트가 한 단 진해진다** —
  방향이 단조로워(가독성만 상승) 레이아웃·위계에는 영향이 없다. 배선된 폴백 리터럴
  17곳(11파일)도 함께 맞췄다.

### Added

- **유채색 표면 토큰 4종** — `--u-primary-bg-color` · `--u-info-bg-color` ·
  `--u-success-bg-color` · `--u-danger-bg-color`.

  종전에는 역할 층의 유채색이 **전경 5단뿐**이라, 상태 배경(선택된 행, 정보 패널,
  오류 줄 …)이 필요한 컴포넌트는 팔레트를 직접 읽고 다크를 손으로 보정해야 했다.

  ⚠**두 테마가 같은 단이 아니라 같은 세기가 되도록 짝지었다.** 팔레트의 유채색 틴트는
  다크에서 짓눌린다 — 바탕 대비 델타의 다크/라이트 비가 중립은 1.34~1.62배인 반면
  청색은 **0.38~0.54배**다. 그래서 라이트 shade-0 ↔ 다크 shade-100 으로 맞췄고,
  실측 세기 비는 blue 1.09 · red 1.12 · green 0.91 이다.

  ⚠**경고(yellow)는 빠져 있다.** 라이트 황색 틴트가 Δ0.071 로 거의 보이지 않아 어떤
  단 짝을 골라도 비가 2배 밑으로 내려가지 않는다(최선 1.99). 팔레트 리터럴 재설계가
  선행돼야 한다.

- **유채색 배경 위의 글자 토큰 5종** — `--u-primary-txt-color` 외.
  `--u-txt-color-inverse` 는 다크에서 neutral-100(`#121212`)이라 유채색 버튼 위에서
  읽히지 않는다. 브랜드 색을 바꾸는 소비자가 전경색도 함께 조절할 수 있도록 분리했다.
  값은 두 테마 모두 `#FFFFFF` 이며 **현재 렌더는 바뀌지 않는다**(컴포넌트가 이미
  리터럴 흰색을 쓰고 있었다).

### Known issues

- ★**라이트 팔레트의 shade-600 위에서 흰 글자가 AA 에 미달한다 — 8색 중 6색.**
  `u-button[variant="solid"]` 이 그 조합이다. 실측(흰 글자 기준):

  | 계열 | 라이트 shade-600 | 라이트 shade-700 | 다크 shade-600 |
  |---|---|---|---|
  | blue | 3.68 ✗ | 4.60 ✓ | 6.09 ✓ |
  | green | 3.30 ✗ | 4.12 ✗ | 4.93 ✓ |
  | red | 4.23 ✗ | 4.98 ✓ | 6.83 ✓ |
  | orange | 2.37 ✗ | 2.70 ✗ | 5.34 ✓ |
  | teal | 4.32 ✗ | 5.32 ✓ | 4.91 ✓ |
  | cyan | 2.74 ✗ | 3.51 ✗ | 4.56 ✓ |
  | purple | 7.04 ✓ | 8.20 ✓ | 6.03 ✓ |
  | pink | 4.95 ✓ | 5.87 ✓ | 5.47 ✓ |

  **다크는 8/8 통과**한다. 한 단 내리는 것(shade-700)으로는 3색만 해결되고 green·
  orange·cyan 은 여전히 미달이라, **라이트 유채색 램프의 리터럴 재설계**가 필요하다.
  위 `--u-txt-color-weak` 와 같은 성격이며 — 다크는 대비를 검증하며 만들어졌고 라이트는
  그렇지 않다 — 범위가 훨씬 크다. 이번 릴리스에서는 고치지 않았다.

## [1.14.1] - 2026-08-01

### Fixed

- ★**Vite 플러그인 진입점이 게시본에 실려 있지 않던 문제 수정** —
  `@iyulab/components/plugins/vite-plugin-react-wrapper.js` 를 임포트하는 소비 패키지의
  **빌드가 실패**했다(`ERR_MODULE_NOT_FOUND`).

  플러그인을 타입 검사 전용(`noEmit`)으로 바꾸면서 `.js` 산출물이 사라졌는데
  `exports`·`files` 선언은 그대로 남아 있었다. **이 패키지 안에서는 아무 증상이 없다** —
  로컬 빌드는 상대 경로로 `.ts` 소스를 직접 읽기 때문이다. 깨지는 곳은 게시본을 설치한
  다른 패키지이고, 그것도 버전 범위가 새 버전을 잡을 때까지 잠복한다.

  산출물을 **`dist/plugins/`** 로 내보내고 `exports` 가 그곳을 가리키게 했다.
  **임포트 경로는 종전과 같다** — 소비 패키지는 변경할 것이 없다.
  (산출물을 소스 옆이 아니라 `dist/` 밑에 두는 것은 의도적이다. 옆에 두면 확장자 없는
  임포트가 컴파일본을 소스보다 먼저 잡아 로컬만 낡은 산출물을 쓰게 된다.)

  `exports` 대상이 실재하는지 검사하는 테스트를 추가했다 — 게시 계약은 게시하는 쪽에서
  확인해야 한다. 소비하는 쪽은 너무 늦게 안다.

## [1.14.0] - 2026-08-01

### Added

- **토큰 시트 없이도 렌더된다** — 시트 토큰 참조 **411곳**에 use-site 리터럴 폴백을
  배선했다(`var(--u-txt-color)` → `var(--u-txt-color, #212121)`).

  토큰 시트(`styles/tokens.css`)를 로드하지 않으면 `var(--u-*)` 는 무효가 되고 **그 선언이
  통째로 버려진다** — 색이 빠지는 게 아니라 규칙이 사라지는 것이라, 텍스트가 안 보이거나
  패널이 완전히 투명해진다. 이제 시트가 없어도 기본 테마 값으로 렌더된다.

  **시트를 쓰는 경우 시각 변화는 없다** — 폴백은 시트가 없을 때만 평가된다. 리터럴이
  시트 값과 어긋나지 않도록 대조 테스트가 강제하며, 폴백은 손으로 쓰지 않고 생성한다.

- **`Theme.resolved()`** — 문서에 **실제로 적용된** 테마(`'light' | 'dark'`)를 돌려준다.

  `Theme.get()` 은 사용자의 **선호**를 돌려주며 거기에는 `'system'` 이 있고, 그것이
  기본값이다. 그래서 `get() === 'dark'` 로 분기하는 소비자는 **system + OS 다크에서
  밝은 화면을 그리게 된다** — 가장 흔한 경로에서 틀린다. 실효 테마를 알 방법이 없어
  소비자마다 다르게 추측하고 있었다.

  ⚠**폰트 계열(`--u-font-*`)은 예외**다 — 폴백을 배선하지 않았다. 폰트 스택은 리터럴이
  100자를 넘어 모든 사용처에 굽으면 얻는 것보다 잃는 것이 크고, 시트가 없으면 UA 기본
  폰트로 대체되어 **화면이 깨지지 않는다**(색·테두리는 깨진다).

### Fixed

- ★**토큰 시트를 쓰지 않을 때 버튼만 다른 브랜드 색으로 렌더되던 문제 수정** —
  `u-button` 의 폴백 3곳(`#3b82f6`·`#2563eb`·`#1d4ed8`)이 디자인 시트의 파랑
  (`#2196F3`·`#1E88E5`·`#1976D2`)과 다른 계열이었다. 시트를 로드한 환경에서는 폴백이
  평가되지 않아 드러나지 않았고, **시트 없이 쓰는 소비자에게만** 버튼이 다른 파랑으로
  보였다. 시트 값으로 맞췄다.
- **오버레이 배경 불투명도 불일치 수정** — 폴백이 `rgba(0,0,0,0.4)`, 시트가 `0.5` 였다.
- **`u-badge` 의 폴백이 다른 명도 단을 가리키던 문제 수정** —
  `var(--u-primary-color, var(--u-blue-500))` 이 시트 정의(`--u-blue-600`)와 어긋나 있었다.

### Changed

- **토큰 시트 부재 경고 문구를 실제 거동에 맞췄다.** 종전에는 *"테두리·배경·색이 무효가
  됩니다"* 였으나 폴백 배선으로 더는 무효가 되지 않는다. 이제 남는 손실을 정확히 말한다 —
  **다크 테마와 테마 변수 오버라이드가 적용되지 않는다.** 경고 자체는 유지한다: 폴백은
  *"조용히 사라지지 않게"* 하는 안전망이지 *"시트 없이 써도 된다"* 가 아니다.
- **`u-tree` 의 기본 글자 크기가 `rem` 에서 `em` 으로 바뀌었다.** 루트 기준이라 소비자가
  컨테이너 타이포를 키워도 트리만 따라오지 않았다. **기본 상황에서는 두 단위가 같은 값
  (14px)이므로 시각 변화가 없고**, 상속 컨텍스트에서만 동작이 달라진다 —
  `<div style="font-size:24px"><u-tree>` 안에서 트리가 21px 로 함께 커진다.

## [1.13.0] - 2026-08-01

### Added

- **여백 스케일 토큰** `--u-space-3xs|2xs|xs|sm|md|lg` (2·4·6·8·12·16px). 컨테이너·오버레이
  (`u-card`·`u-dialog`·`u-drawer`·`u-alert`·`u-menu`·`u-tooltip`·`u-carousel`·`u-divider`·
  `u-slider`·`u-button-group`)의 레이아웃 여백 **선언 28곳(토큰 참조 33건)**을 이 스케일로 배선했다.
  반경 스케일과 마찬가지로 테마와 무관하며 두 시트가 같은 값을 갖는다.

  **시각 변화는 없다** — 배선은 `var(--u-space-md, 12px)` 형태로 원래 리터럴을 폴백에
  보존하며, 토큰 값이 그 리터럴과 같다(테스트로 강제한다). 토큰 시트를 넣지 않은 소비자도
  종전과 동일하게 렌더된다.

### ⚠ 이 스케일을 폼 여백에 쓰지 마세요

**여백은 하나의 축이 아니다.** 폼·인라인 요소(`u-button`·`u-input`·`u-select`·`u-checkbox`·
`u-radio`·`u-switch`·`u-badge`·`u-tab`·`u-field` 등)의 여백은 `em` 이라 **상속된 `font-size`
에 비례**한다 — `body { font-size: 18px }` 를 지정하면 그 컴포넌트들의 여백도 함께 커진다.
그 비례는 의도된 동작이므로 절대 스케일로 흡수하지 않았다.

폼 여백을 조정할 때는 이 토큰이 아니라 해당 컴포넌트의 훅(`--btn-padding-block` 등)이나
타이포를 쓰세요. 어떤 토큰이 어느 축에 속하는지는 `docs/design-tokens.md` 에 있다.

### Fixed

- ★**`u-divider` 의 간격이 소비 앱 CSS 리셋에 지워지던 문제 수정** — 마지막 남은 리셋 취약
  컴포넌트였다. 간격을 `:host` 의 `margin` 에서 **내부 요소(`::part(base)`)의 `padding`** 으로
  옮겼다. 기본 렌더는 동일하다.
  ★종전에는 *"구분선 간격은 형제를 밀어내는 것이라 내부 요소로 옮기면 상쇄된다"* 는 이유로
  해법이 없다고 봤는데, 그것은 **`margin` 을 옮길 때만** 참이다. `padding` 은 호스트 박스
  자체를 키우므로 형제는 종전대로 밀려나고, 섀도 내부에 있어 문서 리셋이 닿지 못한다.
  실제 렌더 측정(리셋 적용 전후의 형제 간 거리)으로 검증했다.
  ⚠**호환성**: `u-divider { margin: … }` 처럼 호스트에 직접 간격을 주던 소비자는 이제 효과가
  없다. `--divider-spacing` 을 쓴다(리셋 아래에서도 동작하는 것을 테스트로 확인했다).
  `u-divider` 에 `part="base"` 가 추가됐다.

### Changed

- **`u-tag` 의 prefix/suffix 간격을 `--tag-gap` 하나로 일원화** — 종전에는 `gap`(4px)과 슬롯
  margin(0.15em, 약 1.8px)이 **같은 자리에 겹쳐** 있어, 소비자가 `--tag-gap` 을 0 으로 줘도
  1.8px 이 남았고 그 값에는 훅이 없었다. `--tag-gap` 기본값을 합계(약 6px)로 올려 흡수했다 —
  렌더 간격 차이는 서브픽셀이다.

### Documentation

- **타이포에 반응하는 컴포넌트 / 그렇지 않은 컴포넌트**를 `docs/design-tokens.md` 에 명시했다.
  대부분은 `font-size: inherit` 이라 소비자 타이포를 따르지만, `u-tag`·`u-tree-item`(12px)·
  `u-copy-button`(18px)·`u-icon-button`(20px)은 **의도적으로 자기 크기를 고정**한다 —
  주변 텍스트와 무관하게 일정해야 읽히는 것들이다. 이 넷의 `em` 여백은 고정 크기 위에
  얹히므로 실질적으로 절대값이며, 크기 조정은 각 컴포넌트의 여백 훅으로 한다.

## [1.12.0] - 2026-08-01

### ⚠ 업그레이드 전 확인 (호스트 직접 오버라이드)

`u-tag` · `u-badge` · `u-tab` · `u-option` · `u-menu` · `u-tooltip` · `u-alert` · `u-card` 의 **여백·테두리가 섀도 내부 요소로 이전**됐다. 1.10.0 의 `u-button` 과 같은 변경이며 이유도 같다 — `:host` 에 둔 여백은 소비 앱의 CSS 리셋(`* { padding:0; border:0 }`, Tailwind preflight 포함)에 **에러 없이 지워진다**.

호스트에 **직접** 여백/테두리를 주고 있었다면 조용히 무효가 된다:

```css
/* 이전 — 더 이상 적용되지 않는다 */
u-tag { padding: 4px 10px; }

/* 이후 — 전용 훅을 쓴다 */
u-tag { --tag-padding-block: 4px; --tag-padding-inline: 10px; }
```

`::part()` 오버라이드는 **종전대로 동작한다.** 기존 part 는 변경되지 않았고, 레이아웃 래퍼가 필요한 컴포넌트에는 `part="base"` 가 추가됐다(`u-alert` 는 기존 `::part(container)` 가 그 역할을 맡는다).

### Added
- 여백/테두리 훅 19개 — `--tag-padding-block`·`-inline`·`--tag-gap` · `--badge-padding-block`·`-inline` · `--tab-padding-block`·`-inline` · `--option-padding-block`·`-inline` · `--menu-padding`·`--menu-border-width`·`--menu-border-color` · `--tooltip-padding-block`·`-inline` · `--alert-padding-block`·`-inline`·`--alert-border-width` · `--card-border-width`·`--card-border-color`
- `part="base"` — 레이아웃 래퍼 (`u-tag`·`u-badge`·`u-tab`·`u-option`·`u-menu`·`u-tooltip`·`u-card`). `u-alert` 는 기존 `::part(container)` 가 그 역할을 맡으므로 새 part 를 만들지 않았다.

### Fixed
- **소비 앱 CSS 리셋에 컴포넌트 여백·테두리가 지워지던 문제** (8개 컴포넌트) — 호스트 요소에 대해서는 문서 작성자 스타일이 섀도의 `:host` 규칙을 이긴다. 컴포넌트는 정상 동작하고 작아지기만 하므로 소비자는 *"업스트림이 못생겼다"* 로 읽고 각자 다시 칠했다.

### Changed (내부 구조 — 시각 변화 없음)
- **`u-tag` 의 `variant × color` 매트릭스를 접었다** — 하드코딩 선택자 **36개 → 9개**. 각 색이 hue 슬롯 5개를 채우고 variant 규칙이 그것을 소비하며, 슬롯이 비면(`color="neutral"`) 종전대로 `--tag-fill-color`(브랜드) 경로를 탄다.
  - 36조합의 렌더 색을 팔레트 단과 대조하는 브라우저 테스트를 **리팩터 전에** 만들어 통과시킨 뒤 접었다 — 같은 테스트가 접은 후에도 통과한다.
  - `yellow` 가 `solid`(600)·`outlined` 텍스트(700)에서 한 단 진한 예외는 그대로 보존했다. 종전에는 4개 규칙에 흩어져 있어 보이지 않던 것이 이제 한 곳에 데이터로 드러난다.
  - `color` 속성과 `--tag-color`/`--tag-bg-color`/`--tag-border-color` 는 **공개 API 그대로**다. 새 `--tag-hue-*` 슬롯은 내부 구현이라 공개하지 않는다.
- **`u-checkbox` 의 `variant × color × state` 매트릭스를 접었다** — 16개 → 8개. `u-tag` 와 **같은 방식**이다: `color=` 는 hue 슬롯만 채우고 variant 규칙이 폴백과 함께 읽는다. 슬롯이 채워지면 `color=` 가 최종 권한을 갖고, 비면(기본 `blue`) 채움색 훅을 탄다.
  - 기본값 `blue` 는 규칙을 갖지 않는다 = 슬롯이 비어 브랜드 훅을 탄다. 종전에도 `[color="blue"]` 규칙은 훅을 재진술만 하고 있었다.
  - 두 컴포넌트의 오버라이드 우선순위가 같은지 회귀 테스트로 결박했다 — 소비자가 채움색 훅을 덮어도 `color=` 지정이 이긴다.
  - 여기도 32조합(2 variant × 8색 × 2상태)의 렌더 색을 대조하는 브라우저 테스트를 리팩터 전에 만들어 통과시킨 뒤 접었다.

### Added — 스케일 토큰 (반경)
- `--u-radius-none`/`-sm`/`-md`/`-lg`/`-xl`/`-pill`/`-circle`. 컴포넌트의 반경 리터럴 **40건**을 이 축으로 배선했다.
  ★리터럴을 흩뿌리면 값이 갈린다 — 실제로 pill 이 `999px`(2곳)와 `9999px`(3곳) 두 표기로 나뉘어 있었다(시각 차이는 없으나 의도가 하나임을 코드가 말하지 못했다).
  - em 기반·다중값·`calc()` 반경은 **의도적으로 제외**했다. 폰트 크기를 따라야 하거나 기하 계산이라 스케일 축이 아니다.
  - 반경은 테마와 무관하므로 두 시트가 같은 값을 갖는다(테스트로 강제).
  - 여백(space)·타이포 축은 `em` 기반이라 별도 분석이 필요하다 — 이번 범위 밖.

### 미해소 (1개)
- `u-divider` — `:host` 의 `margin` 은 **형제 간 간격**이라 내부 요소로 옮기면 의미가 달라진다(내부 margin 은 호스트 박스 안에서 상쇄되어 형제를 밀어내지 못한다). 별도 설계가 필요하다.

## 1.12.0 에 포함된 가산 층 — 역할 토큰 (별도 게시본 없음)

> ⚠**`1.11.0` 이라는 게시본은 존재하지 않는다.** 이 층은 원래 1.11.0 으로 따로 낼 계획이었으나
> 1.12.0 에 함께 출하됐다. 버전 헤딩으로 남기면 체인지로그 파서와 릴리스 링크가 없는 버전을
> 가리키게 되므로, 헤딩은 버전 형태를 쓰지 않는다.
> 아래 변경은 전부 **순수 가산**이며 1.12.0 에 그대로 들어 있다. 1.12.0 의 파괴적 변경과
> 층을 구분해 두기 위해 항목을 나눠 남긴다.

### Added
- **역할 토큰 층 (5역할 × 5단 = 25개)** — `--u-{primary,info,success,warning,danger}-color{-weakest,-weaker,-weak,,-strong}`.
  ★**이것이 중요한 이유**: 종전에는 컴포넌트가 팔레트 프리미티브(`--u-blue-600`, `--u-red-700` …)를 **직접** 참조했다. 그래서 브랜드 색을 바꾸려면 소비자가 팔레트 자체를 하이잭하거나(모든 파랑이 함께 바뀐다) 컴포넌트마다 CSS 를 덮어써야 했다. 이제 **`--u-primary-color` 한 줄**이면 버튼·체크박스·라디오·스위치·슬라이더·트리·메뉴·탭·진행바 등이 함께 따라온다.
  - 단은 **강도 축**이다(weakest → strong). 용도(배경/테두리/텍스트)는 소비처가 정한다 — 단을 속성에 묶으면 *"primary 버튼의 배경은 어느 단인가"* 같은 모순이 생긴다.
  - `primary` 와 `info` 는 기본 색상이 같지만 **다른 역할**이다. 리브랜딩은 `primary` 만 바꾸고 정보성 파랑은 그대로 둔다.
  - 실사용이 없는 조합도 **전 그리드를 정의**한다 — 브랜딩 도중 특정 단만 없는 것을 발견하는 비용이 더 크다.
- **시맨틱 토큰이 역할 층을 경유** — `--u-txt-color-hover`·`-active`, `--u-icon-color-hover`·`-active`, `--u-link-txt-color`, `--u-input-border-color-focus` → `--u-primary-color` 계열. `--u-input-border-color-invalid` → `--u-danger-color`. 값은 동일하며 참조 경로만 바뀌었다 — 역할 하나를 덮으면 시맨틱 층까지 따라온다.
- **`docs/theming.md` 역할 토큰 절** — 그리드·파급 범위·파생 예제. 어느 시트를 넣을지에 대한 선택 기준도 추가했다(아래 Fixed 참조).
- **전역 토큰 레퍼런스 `docs/design-tokens.md`** — 역할 25 · 시맨틱 45 · 팔레트 111. `light.css` 에서 생성(`npm run docs:tokens`)하며 테스트가 drift 를 막는다.
  ★기존 `css-custom-properties.md` 는 **컴포넌트 JSDoc 만** 훑으므로 시트 레벨 토큰이 한 건도 실리지 않았다 — `--u-primary-color` 같은 브랜드 훅이 생성 레퍼런스에서 통째로 빠져 있었고, 소비자는 생성 문서를 먼저 연다. 세 문서가 서로를 가리키는지도 테스트로 확인한다.

### Fixed
- **문서가 브랜드 오버라이드의 파급 범위를 잘못 적고 있던 문제** — `u-badge`·`u-tag` 가 `--u-primary-color` 를 따른다고 안내했으나, `u-badge` 는 실제로 `color` 속성(장식 축)만 사용해 브랜드 색에 반응하지 않는다. 목록을 나열하는 대신 **규칙**(역할 축은 팔레트를 직접 참조하지 않는다)으로 서술하고 테스트로 강제한다.
- **낡은 폴백 안내 7건** — `@cssprop` 설명의 *"미지정 시 blue-600"* 은 `--u-primary-color` 가 정의되지 않던 시절의 서술이다.

### Changed
- 컴포넌트 스타일의 역할 축 팔레트 직참조 **64건 → 0건**. 시각 결과는 **라이트·다크 모두 변경 없다** — 역할 토큰이 종전과 동일한 팔레트 단을 가리키고, 팔레트 값 자체가 이미 시트별로 다르기 때문이다.
- `var(--u-primary-color, var(--u-blue-600))` 형태의 폴백 체인 **13건 정리** — `--u-primary-color` 가 실제로 정의되면서 폴백 arm 이 죽은 코드가 됐다(두 토큰 모두 같은 시트에서만 정의되므로 손실 없음).

### Unchanged (의도적)
- **`color` 속성(장식 축)은 그대로다** — `u-tag`·`u-badge`·`u-button`·`u-checkbox`·`u-spinner` 의 `color="purple"` 류는 역할 의미가 없는 **소비자의 색 선택**이므로 팔레트를 직접 읽으며, 브랜드 오버라이드에 **의도적으로 면역**이다. `<u-tag color="green">` 은 리브랜딩 후에도 녹색이다.

## [1.10.0] - 2026-08-01

### Added
- **디자인 토큰의 정적 CSS 진입점** — `import '@iyulab/components/styles/tokens.css'` 한 줄로 런타임 호출 없이 토큰을 보장한다(light + dark 한 장, 다크는 `:root[theme="dark"]` 스코프라 안전하게 공존한다). 개별 시트(`styles/light.css`·`styles/dark.css`)도 그대로 쓸 수 있다.
  ★**이것이 중요한 이유**: 토큰이 없으면 컴포넌트 시트의 `var(--u-…)` 가 전부 무효가 되어 **테두리·배경이 에러 없이 사라진다**. 종전에는 토큰 주입 경로가 `Theme.init()` 런타임 호출 하나뿐이었고, `@iyulab/modern-app` 셸이 그것을 대신 호출하는 구조였다 — 그래서 셸 **밖**에서 렌더되는 화면(로그인·온보딩·오류 페이지·임베드 위젯)은 같은 컴포넌트를 쓰면서도 조용히 무스타일로 렌더됐다.
- **토큰 부재 진단 경고** — 개발 빌드에서 토큰 시트가 없으면 첫 컴포넌트 연결 시 1회 콘솔 경고. 종전에는 CSS 가 아무 신호도 내지 않아 소비자가 자기 CSS 를 며칠 의심했다.
- **CSS 커스텀 프로퍼티 레퍼런스** — `docs/css-custom-properties.md`(23컴포넌트·98프로퍼티). 컴포넌트 JSDoc 에서 생성(`npm run docs:cssprops`)하며 테스트가 drift 를 막는다.
- **React 이벤트 레퍼런스** — `docs/react-events.md`(24컴포넌트·37이벤트). 종전에는 소비자가 `dist/react/*.js` 를 열어봐야 알 수 있었다. ★`onClick` 같은 **네이티브 이벤트는 매핑 없이도 동작한다**는 점을 문서 상단에 명시(수동 `addEventListener` 배선이 불필요하다).
- `--u-input-display` / `--u-input-width` 정식 선언 — 폼/그리드 셀에서 입력이 컨테이너 폭을 채우게 하려면 `--u-input-display: block`. 종전에도 전자는 동작했으나 문서화되지 않아 소비자가 `u-input { display:block; width:100% }` 를 각자 작성했다.
- `--u-border-color-hover` 토큰 신설 — `--u-bg-color-hover`·`--u-input-border-color-hover` 는 있는데 일반 border 계열에만 hover 가 없던 결손을 채운다.
- `@cssprop` 선언 25건 추가(`u-button` 파생 색 11 · `u-tree` 들여쓰기 5 · 그 외).

### Fixed
- **React 래퍼가 상속받은 이벤트를 노출하지 않던 결함** — 래퍼 생성기가 leaf 파일만 파싱해, `show`/`hide` 를 베이스(`UOverlayElement`)가 발화하는 `u-dialog`·`u-drawer` 가 `events: {}` 로 생성됐다. React 소비자가 `onShow`/`onHide` 를 붙여도 **에러도 경고도 없이 아무 일이 일어나지 않았다**. 이제 상속 체인을 따라 수집하며, `u-popover`·`u-tooltip` 의 이벤트 detail 타입도 함께 정밀해진다. 누락 시 **빌드가 실패**한다.
- **`u-menu-item` 하위 메뉴 팝오버가 오버플로 조상에 클리핑되던 문제** — `u-select`·`u-input` 과 달리 `strategy="fixed"` 가 지정돼 있지 않았다.
- **`u-option` 의 hover 테두리가 무효였던 문제** — 정의된 적 없는 `--u-border-color-hover` 를 폴백 없이 참조해 선언 전체가 무효였다.

### Changed
- ⚠**`u-button` 의 여백·테두리를 내부 요소(`::part(button)`/`::part(link)`)로 옮겼다.** 기본 렌더는 동일하다.
  ★**이유**: `:host` 에 둔 여백·테두리는 소비 앱의 CSS 리셋(`* { padding:0; border:0 }` — Tailwind preflight 등 사실상 표준 관행)에 **지워진다**. 호스트 요소에 대해서는 문서 작성자 스타일이 섀도의 `:host` 규칙을 이기기 때문이며, 그 결과 버튼이 글자 높이만 남았다(에러 없음).
  ⚠**호환성**: `u-button { padding: … }` 처럼 **호스트에 직접** 여백을 주던 소비자는 이제 효과가 없다. `--btn-padding-block`/`--btn-padding-inline` 토큰이나 `::part(button)` 을 쓴다. `::part(button)` 오버라이드는 종전대로 동작한다.
- 빌드 스크립트 정리 — 플러그인은 이제 타입 검사만 하고 산출물을 내보내지 않는다(`typecheck:plugins`). 종전에는 컴파일된 `plugins/*.js` 가 `.ts` 소스를 가려 **플러그인 수정이 한 빌드 늦게 반영**되고, 산출물이 없는 신규 클론/CI 와 로컬의 동작이 달랐다.

## [1.9.0] - 2026-07-28

### Fixed
- **열린 팝오버가 페이지 스크롤 한 번에 닫히던 결함 수정** (u-select listbox·u-input combobox 실사용 및 E2E 구동 불능). `UPopover.dismiss` 기본값의 `scroll` 이 document 캡처 단계로 등록되는 한편 `UFloatingElement.show()` 는 **모든** 플로팅 엘리먼트에 floating-ui `autoUpdate`(스크롤 시 앵커 추종 재배치)를 설치한다 — 같은 스크롤 이벤트에 재배치와 닫기가 동시에 걸리고 닫기가 이기는 자기모순이었다. 이제 `scroll` 은 **앵커가 스크롤로 의미를 잃을 때만** 닫는다: 실제 엘리먼트에 앵커된 팝오버(드롭다운·제안 목록·서브메뉴·툴팁)는 재배치되어 열린 채 유지되고, `trigger="contextmenu"` 의 좌표 기반 가상 앵커는 종전대로 닫힌다. Playwright 의 "scroll into view" 가 목록을 닫아 `getByRole('option').click()` 이 완주하지 못하던 문제도 함께 해소된다. 회귀 테스트 3건 추가.
- **`dismiss: 'resize'` 도 같은 원칙으로 정합** — `autoUpdate` 는 `ancestorResize` 로 window 리사이즈도 구독해 재배치하므로 scroll 과 동일한 자기모순이었다. 이제 리사이즈도 좌표 기반 가상 앵커에서만 닫는다. 이로써 모바일에서 `u-select searchable` 의 검색 입력을 탭할 때 가상 키보드가 레이아웃 뷰포트를 줄이며 발생시키는 리사이즈로 드롭다운이 닫히던 문제가 해소된다. 회귀 테스트 2건 추가.

- **React 래퍼가 `ref` 를 타입 수준에서 거부하던 문제 수정** — 생성된 `.d.ts` 가 `React.ForwardRefExoticComponent<P>` 를 쓰면서 P 에 `React.RefAttributes` 를 넣지 않았다. `ForwardRefExoticComponent<P>` 는 ref 를 자동으로 더해 주지 않으므로, `@lit/react` 가 런타임에 ref 를 정상 전달하는데도(`ReactWebComponent` 자신은 `PropsWithoutRef<…> & React.RefAttributes<I>` 로 선언돼 있다) `<UButton ref={…} />` 가 TS2322 로 거부됐다. 이제 42개 래퍼 전부가 ref 를 받으며, ref 타입은 `HTMLElement` 가 아니라 **해당 엘리먼트 클래스**로 좁혀진다. 신설 React 타입 스모크가 첫 실행에서 잡아낸 결함이다.

### Added
- **React strict 소비 타입 스모크** — 소비자가 React 19 + TS strict 에서 겪은 래퍼 결함들(JSX children TS2747, 이벤트 핸들러 교집합, 위 ref 누락)은 전부 **런타임에 드러나지 않는 타입 실패**라 vitest 로는 잡히지 않는다. `tests/types/react-consumption.tsx` 를 두고 `tsconfig.react-smoke.json` 전용 프로젝트로 컴파일하며, 검증 대상이 빌드 산출물(`dist/react/*.d.ts`)이므로 `build` 파이프라인 끝에 건다(`npm run build` 에 포함). 소비자와 동일한 진입점 `@iyulab/components/react` 를 통과시켜 `exports` 맵까지 함께 검증한다.
- **앵커 이탈 시 팝오버 자동 숨김** — 위 수정으로 실앵커 팝오버가 스크롤에 닫히지 않게 되면서 드러난 케이스 대응. `strategy="fixed"` 팝오버는 overflow 조상에 클립되지 않으므로(그것이 fixed 를 쓰는 이유), 앵커가 스크롤 패널 밖으로 나가면 팝오버만 화면에 남아 무관한 콘텐츠를 덮을 수 있었다. floating-ui `hide` middleware 를 `UFloatingElement.reposition()` 에 도입해, 앵커가 클리핑 영역(스크롤 컨테이너·뷰포트)을 완전히 벗어나면 `anchor-hidden` 속성이 붙고 엘리먼트가 숨겨진다. **닫히지는 않으므로**(`open` 유지) 되돌려 스크롤하면 열린 상태 그대로 복귀한다. `anchor-hidden` 은 읽기 전용 파생 상태이며 스타일 훅으로 사용할 수 있다. 회귀 테스트 2건 추가.

## [1.8.1] - 2026-07-24

### Fixed
- **u-field 합성 폼 컨트롤이 접근성 트리에서 이름 없이 노출되던 문제 수정** (WCAG 1.3.1·4.1.2 — Playwright E2E 실측). 라벨은 `u-field` 의 별도 섀도 스코프에 렌더되어 `label[for]` 로 컨트롤과 연결될 수 없었고, 섀도 경계 탓에 cross-root `aria-labelledby` 도 현 브라우저에서 신뢰성 있게 배송되지 않는다. 이제 각 컴포넌트가 자신의 접근 이름 호스트에 라벨을 `aria-label`(설명은 `aria-description`)로 미러링한다 — `u-input`/`u-textarea`(네이티브 컨트롤), `u-rating`/`u-radio`(`role=radiogroup`), `u-select`(`role=combobox` + `aria-expanded`/`aria-haspopup`/`aria-controls`), `u-slider`(`role=slider` + `aria-valuenow`/`valuemin`/`valuemax`/`valuetext`). 아울러 `u-option` 이 사용 맥락에 맞는 자식 역할·상태를 노출한다 — radiogroup(`marker='radio'`) 안에서는 `role=radio` + `aria-checked`, listbox(`u-select`/`u-input` combobox) 에서는 `role=option` + `aria-selected`(+ `aria-disabled`) — 이름만 있고 비어 보이던 radiogroup/combobox 위젯이 자식까지 정합하게 읽힌다. `u-rating` 심볼(`role=radio`)도 커밋 값 기준 `aria-checked` 를 노출한다. `getByLabel`/`getByRole({name})` 로케이터와 스크린리더가 컨트롤을 이름으로 인식한다.
- **React 래퍼 `.d.ts` 타이핑 2건 수정** (React 19 + TS strict 컴파일 차단 — 실사용에서 관측). (1) `React.HTMLAttributes` 의 이벤트 핸들러(`onChange` 등)와 래퍼의 CustomEvent 시그니처가 교집합되어 어떤 핸들러도 대입 불가였던 것을, HTMLAttributes 쪽 동명 이벤트 키를 `Omit` 해 CustomEvent 시그니처만 남기도록 교정. (2) `Partial<Element>` 의 DOM `children: HTMLCollection` 이 JSX children 을 가려 `<UButton>text</UButton>` 이 TS2747 로 실패하던 것을, `Omit<Partial<Element>, keyof HTMLAttributes>` 로 DOM 전용 키를 제거하고 React 친화 타입(`children: ReactNode`)이 HTMLAttributes 에서 공급되도록 교정. 소비자의 `as unknown as ComponentType` 우회 제거 가능.

## [1.8.0] - 2026-07-22

### Fixed
- **`u-icon` 아이콘 리졸브가 재렌더·재마운트마다 다시 fetch되던 스톰 수정** — `IconRegistry.resolve()`가 리졸버 결과를 캐시하지 않아, SSE 스트리밍처럼 같은 아이콘이 반복 재마운트되는 UI에서 단일 아이콘에 수백 회 fetch가 발생했다(미존재 아이콘은 404 스톰으로 콘솔 오염 + dev 서버 부하 — 실사용에서 관측). 이제 레지스트리가 (lib, name) 단위 캐싱과 동시 요청 in-flight dedupe를 소유해, 커스텀 리졸버를 포함한 모든 라이브러리에서 아이콘당 세션 1회만 리졸브된다. `u-icon`의 `src` 경로·무-lib 기본(baseUrl) 경로도 신설 `IconRegistry.resolveUrl(url)`을 경유해 동일하게 캐시된다.
- 내장 CDN 리졸버(tabler/heroicons/lucide/bootstrap)가 네트워크 오류를 `undefined`로 삼키던 것을 throw 전파로 교정 — 일시 장애가 세션 내 not-found로 오인·고착되지 않고 다음 조회에서 재시도된다.

### Changed
- **`IconResolver` 계약 명확화 (동작 변경)** — 리졸버의 `undefined` 반환은 이제 **not-found 확정**을 뜻하며 네거티브 캐시되어 세션 내 재호출되지 않는다(탈출구: `IconCache.clear()`). **일시 오류(네트워크 장애 등)에는 `undefined` 대신 `throw`를 사용할 것** — throw는 캐시되지 않아 다음 조회 시 재시도된다. 일시 실패에 `undefined`를 반환하던 커스텀 리졸버는 throw로 전환해야 재시도 동작을 유지한다.
- `IconRegistry.unregister(lib)`가 해당 라이브러리의 캐시 항목을 함께 비운다 — 내장 CDN 라이브러리를 로컬 리졸버로 교체(`unregister` → `register`, 폐쇄망 대응)할 때 이전 리졸버의 stale 결과가 남지 않는다.

### Added
- `IconRegistry.resolveUrl(url)` — URL 직접 리졸브(캐시 + dedupe). 예약 네임스페이스 `url`로 `IconCache`에 저장되며 소비앱의 prewarm 용도로도 사용 가능.
- `IconCache.clear(lib)` — 특정 라이브러리 항목만 클리어(전체 클리어는 기존대로 인자 없이).
- `IconCache.set()`이 `undefined`(네거티브 항목) 저장을 허용.

### Documentation
- `docs/icons.md`·skills 레퍼런스에 리졸버 계약(성공/not-found/일시 오류)·캐싱 동작·내장 라이브러리 오버라이드 절차(`unregister`→`register`) 문서화. CDN 버전 표기 드리프트 교정(lucide 0.577.0, bootstrap 1.13.1).

## [1.7.2] - 2026-07-19

### Fixed
- **`Dialog.show()`가 영구 대기(hang)에 빠지던 결함 수정** — 프로미스 executor 가 `async` 였던 탓에 `await dialog.updateComplete` 가 reject 되면 예외가 삼켜지고 `hide` 리스너가 등록조차 되지 않아, `await Dialog.show(...)` 호출자가 **영원히 매달렸다**. 이제 리스너를 `await` **이전에** 등록하고(대기 중 발생한 `hide` 를 놓치던 경합도 함께 해소), 업데이트 실패 시 `console.error` 후 문서화된 "닫힘 = null" 규약대로 `null` 로 종료하며 고아 엘리먼트를 DOM 에서 제거한다. 회귀 테스트 3건 추가(정상 resolve / 닫힘 null / updateComplete reject).
- `UOverlayElement`: 삼항 연산자를 문(statement)으로 사용하던 `open ? setup() : cleanup()` 을 `if/else` 로 교정.
- `URating`/`USelect`/`UTree`: `switch` case 블록 안의 `const` 선언이 블록 스코프를 벗어나 다른 case 로 누출될 수 있던 형태를 중괄호 블록으로 격리(`no-case-declarations`).

### Changed
- **이 패키지의 eslint 가 실제로 동작하기 시작했다.** `eslint.config.js` 의 두 결함 — (1) `files: ["src/**/*"]` 가 ESLint 9 에서 universal 패턴으로 취급돼 `.ts` 를 린팅 대상으로 opt-in 하지 못함, (2) 배열 프리셋(`tseslint.configs.recommended`)을 객체 스프레드해 프리셋이 통째로 무력화됨 — 을 수정했다. `build` 스크립트에 `eslint &&` 게이트가 있었으나 매칭 파일이 0개라 **항상 통과**하고 있었다. 위 결함들은 모두 이 복구로 처음 드러난 것이다.
- `npm run lint` / `npm run lint:fix` 스크립트 추가(flex-table·u-widgets 와 통일).
- 내부 타입 정밀화: `Dialog`/`Theme`/`UTooltip`/`UInput`/`UTextarea` 의 `any` 캐스팅을 실제 타입(`CloseOnPolicy[]`, `UInput`, `InputType`, `VirtualElement`, `unknown[]`)으로 교체. 공개 API 시그니처 변경 없음.

## [1.7.1] - 2026-07-19

### Fixed
- `UInput.type` 을 host 요소로 **reflect** 하도록 수정 — 미반영 시 `u-input[type="number"]::part(input)` 같은 속성 셀렉터가 HTML 속성으로 준 경우에만 매칭되고, React/Lit 의 property 바인딩(`.type=`, `el.type=`)에서는 host 에 속성이 나타나지 않아 무효였다. 형제 컴포넌트 `URadio.type` 은 이미 reflect 하고 있어 리포 내 비일관이기도 했다.

### Documentation
- `docs/theming.md` 에 `::part()` 커스터마이즈 섹션 신설 — 텍스트 정렬 레시피(`text-align` + `font-variant-numeric: tabular-nums`), 숫자 입력 우측정렬을 기본값으로 두지 않는 근거, 비반영 속성용 클래스 셀렉터 대안, 숫자 포맷팅 책임 범위.
- `docs/architecture.md` CSS Parts 절에서 `theming.md` 로 상호 링크. `UInput` 의 `@csspart input` JSDoc 보강.

## [1.7.0] - 2026-07-17

### Fixed
- **폼 컨트롤 `change` 이벤트 의미론을 네이티브 규약으로 교정** — `USelect`/`URadio`/`URating`/`USlider`가 `updated()` 경로에서 무조건 `change`를 발화해, (1) 옵션 slot 등록 시 `value===undefined` 상태의 change가 발화되어 React 등 controlled 래퍼의 state를 오염시키고(옵션 등록 전 세팅한 초기값이 유실·서버 enum 기본값으로 저장되는 무증상 데이터 결함 — 실사용에서 관측), (2) 프로그램적 `value` 세팅이 사용자 이벤트로 위장되어 에코 루프를 만들던 문제 수정. 이제 `change`는 **사용자 상호작용**(옵션 클릭·키보드·칩 제거·지우기·드래그 확정)에서만 발화한다. `UInput`(blur 발화)·`UMenu`/`UTree`(핸들러 발화)는 원래 규약대로였으며 변경 없음.
- `USlider`: 문서("드래그 완료 후 발생")와 달리 **드래그 중 매 pointermove마다 change가 연사**되던 결함 수정 — 이제 `pointerup` 시 값이 실제로 바뀐 경우 1회 발화. 단일 select에서 동일 옵션 재선택, 선택된 라디오 재클릭도 네이티브와 동일하게 미발화.
- `USelect`/`URadio`/`URating`의 `onChangeValue()`가 `updated()` 내부에서 `validate()`→`requestUpdate()`를 호출해 v1.5.1 검증 아키텍처를 위반하고 "scheduled an update after an update completed" Lit 경고를 재유발하던 잔재 제거 — 검증 UI 갱신(`validate()`)은 사용자 상호작용 경로에서만 수행하고, 프로그램적 세팅은 base의 silent `setValidity()`로 internals만 갱신한다.
- **마크업 `value` attribute 선언이 일반 문자열에서 silently null이 되던 갭 수정** — base가 `type: Object`(JSON.parse)여서 `<u-input value="hello">`·`<u-select value="b">`가 null로 해석됐다. 기본 해석을 raw 문자열로 바꾸고, `u-rating`/`u-slider`는 숫자, `u-select`(multiple)/`u-slider`(range)는 JSON 배열(`value='["a","b"]'`)을 지원한다.
- `USlider` range 표시 텍스트의 구분자 인코딩 오염(`5 ??10`) → `5 ~ 10`으로 교정. `URating` min/max 주석 모지바케 정리.

### Changed
- 프로그램적 `value` 세팅은 이제 `change` 발화·`invalid` 플래그 자동 갱신을 하지 않는다(`ElementInternals` validity는 계속 동기화됨). 프로그램적 변경 후 검증 UI 갱신이 필요하면 `validate()`를 명시 호출할 것. `value='"quoted"'` 형태(JSON 문자열)로 attribute를 우회 선언하던 경우 이제 따옴표 포함 raw 문자열로 해석된다.

## [1.6.0] - 2026-07-16

### Added
- `UCopyButton`(`u-copy-button`): **인라인 텍스트 라벨** 지원 — `label` prop을 지정하면 아이콘 옆에 보이는 텍스트 라벨을 렌더한다(예: `label="결과 복사"`). 지금까지 u-copy-button은 아이콘 전용(기본 슬롯은 툴팁으로 소비)이라 "📋 결과 복사"처럼 라벨이 붙은 복사 버튼을 표현할 수 없어, 소비자가 검증된 클립보드 로직(취소 가능 `copy` ClipboardEvent + copied 상태 + 아이콘 토글)을 재사용하지 못하고 자체 재구현하던 역량 갭을 해소. 비파괴 — `label` 미지정 시 기존 아이콘 전용 형태(및 기본 슬롯=툴팁 의미)를 그대로 유지한다. 라벨 지정 시 내부적으로 `u-button`(아이콘 prefix + 텍스트)으로 렌더하고, 클립보드 로직은 두 형태에서 동일하다.

### Fixed
- `u-drawer`/`u-dialog`: **테마 토큰 미정의 시 패널이 투명하게 렌더**되어 모달이 "안 뜬 것처럼" 보이던 결함 수정. backdrop(`--u-overlay-bg-color`)에는 폴백이 있는데 패널 배경/테두리(`--u-panel-bg-color`/`--u-border-color`)에는 폴백이 없어, `Theme.init()`로 토큰을 주입하지 않은 소비자에게 backdrop만 흐려지고 패널은 투명하게 떠 슬롯 콘텐츠가 뒤 페이지와 겹쳐 읽히던 footgun. backdrop과 동일 정책으로 패널 배경에 `Canvas`, 테두리에 `color-mix(in srgb, CanvasText 20%, Canvas)` CSS 시스템 컬러 폴백을 부여 — 토큰 미정의 소비자도 라이트·다크 자동 적응되는 가시 패널을 얻고, 토큰 정의 소비자는 기존과 동일(폴백 미사용). 실 브라우저 렌더 회귀 가드 추가.

## [1.5.1] - 2026-07-07

### Fixed
- `UFormControlElement.updated()`가 `value`/`required` 변경 시마다 `setValidity()` 이후 `requestUpdate()`를 무조건 호출해 "scheduled an update after an update completed" 개발자 경고가 매 입력마다 발생하던 문제 수정(`USelect`/`UInput`/`UCheckbox`/`UTextarea` 등 폼 컨트롤 전반에 영향). `updated()`에서는 `internals.setValidity()` 갱신만 수행하고 화면 재렌더 강제는 제거했으며, `validationMessage` 재렌더는 기존처럼 `validate()`를 호출하는 blur/change 핸들러에서만 처리한다.

## [1.5.0] - 2026-07-07

### Added
- `UCopyButton`(`u-copy-button`) 컴포넌트 추가. 클릭 시 클립보드에 텍스트를 복사하고 아이콘(`copy`/`check`)으로 복사 상태를 표시하며, 실제 쓰기 전에 취소 가능한 `copy` 커스텀 이벤트(`ClipboardEvent`)를 발행해 리스너가 복사를 취소하거나 `clipboardData.setData()`로 복사될 값을 바꿀 수 있음.

### Changed
- **Breaking:** 내부 아이콘 세트(`lib="internal"`)의 이름 규칙을 정리: `x-lg`→`x`, `check-lg`→`check`, `dash-lg`→`minus`, `eye-slash`→`eye-off`, `exclamation-circle-fill`→`alert-circle-fill`, `exclamation-triangle-fill`→`alert-triangle-fill`, `check-circle-fill`→`circle-check-fill`, `plus-lg`→`plus`. `lib="internal"`로 위 이름을 직접 참조하던 코드는 갱신 필요. 미사용 아이콘(`three-dots`, `three-dots-vertical`) 제거, 신규 아이콘(`copy`) 추가.
- `IconRegistry.register()`가 이미 등록된 라이브러리 이름에 대해 경고를 출력하는 대신 조용히 무시하도록 변경.
- `UIconButton`이 `inline-flex`로 레이아웃되도록 개선.

## [1.4.0] - 2026-07-06

### Changed
- 폼 유효성 검증 아키텍처를 `UFormControlElement.validate()` 템플릿 메서드 + 컴포넌트별 `setValidity()` 구현 구조로 재정비하고, `commit(flags, message, anchor)` 헬퍼로 `setCustomValidity()` 커스텀 메시지 우선순위를 일관화. `validate(report)`로 `checkValidity`/`reportValidity`와 동일한 조용한 검증 모드도 지원.
- 로케일 시스템을 `src/core/locale.ts` 기반 레지스트리에서 `Locale` 유틸(`Locale.register()`, `Locale.set()`, `Locale.getValue()`)로 전환하고, en/ko/ja/zh-CN/zh-TW/es/fr/de/pt-BR/vi/th/id/ru/ar 14개 로케일 JSON을 빌드 시점 내장하도록 변경.
- 인터랙티브 컴포넌트의 색상 체계를 `--u-primary-color` 중심 토큰으로 전환해 hover/active/surface/outline 상태를 `color-mix()`로 파생하도록 개선. 이제 `--u-primary-color` 재정의만으로 전역 테마 컬러 커스터마이징 가능.
- 개발 스크립트를 `dev`에서 `start`로 정리하고 `test:watch` 스크립트를 제거.

### Fixed
- 오버레이/컨테이너 계열 커스텀 이벤트(`show`/`hide`/`remove`/`expand`/`collapse`/`shift`)를 `bubbles:false`, `composed:false`로 조정해 중첩 컴포넌트에서 자식 이벤트를 조상 이벤트로 오인하던 문제를 해결.
- `UFloatingElement`가 `--anchor-width`/`--anchor-height`를 실제 픽셀 기준으로 노출하도록 개선하고, `USelect`/`UInput` 팝오버 폭 계산이 strategy(`fixed`)와 무관하게 일관되게 동작하도록 수정.
- `UOption.getText()`가 텍스트 노드만 추출하도록 보정하고 `getContent()`를 추가해 `USelect` 선택값 표시에서 리치 콘텐츠 처리를 개선.
- `UTabPanel`의 `change` 이벤트가 초기 마운트/직접 값 대입 시 오발생하지 않도록 사용자 조작(클릭/키보드)에서만 발생하게 수정.
- `Toast`에 전역 기본 옵션을 추가하고 hide 이벤트 처리에서 `target`을 검사하도록 바꿔 내부 엘리먼트 이벤트 오탐을 방지.

### Removed
- **Breaking:** `UDataElement` 및 관련 스타일 파일(`UDataElement.styles.ts`) 제거.
- **Breaking:** `sanitizers` 유틸과 `buildElementHTML`(in `utilities/elements.ts`) 제거, 이에 따른 `src/index.ts` export 정리.
- 브라우저 테스트 `tests/browser/input-display-token.browser.test.ts` 제거.

## [1.3.4] - 2026-07-03

### Documentation
- `README.md`의 `## React` 섹션에 peerDependency 설치 안내(`npm install @iyulab/components @lit/react react`)를 추가. 기존 문서는 래퍼 사용 예제만 있어 `@lit/react`·`react`를 별도 설치해야 한다는 전제가 누락되어 있었고, 예제를 그대로 따라하면 `@lit/react` 미설치로 모듈 해석 오류가 났다. `@iyulab/data-components` README의 `/react` 안내와 형식을 통일.

## [1.3.3] - 2026-07-03

### Fixed
- `UCheckbox`: 클래스 JSDoc에 `@event change` 태그 누락으로 공식 React 래퍼(`@iyulab/components/react`)의 `UCheckbox` props가 빈 `{}`로 생성되어 `onChange`가 노출되지 않던 결함 수정. 런타임은 `this.relay(e)`로 `change`를 정상 발생시키지만, 래퍼 생성기가 `@event` 태그(또는 `this.fire<T>('name')` 리터럴)로만 이벤트 맵을 도출하므로 태그가 없으면 이벤트가 누락된다. (`USwitch`/`UInput`/`UTextarea`는 태그 보유 — `relay()`를 쓰는 폼 컨트롤 중 `UCheckbox`만 누락되어 있었음.)

### Changed
- `plugins/vite-plugin-react-wrapper.ts`: `@customElement` 컴포넌트가 `this.relay(...)`/`this.dispatchEvent(...)`로 이벤트를 발생시키지만 수집된 이벤트가 0건이면 빌드 시 경고를 출력하도록 개선 — 위 `UCheckbox`류의 "태그 누락으로 이벤트가 조용히 사라지는" 결함 재발 방지. (`this.fire<T>('name')`은 이름이 정적으로 잡히므로 경고 대상이 아님.)

## [1.3.2] - 2026-07-02

### Documentation
- `docs/form-controls.md`: `UCheckbox`의 `label` attribute가 다른 폼 컨트롤과 달리 default slot의 fallback content로 쓰인다는 점(slot이 있으면 attribute보다 우선)을 "Common Properties" 표 아래에 명시.

## [1.3.1] - 2026-07-02

### Added
- `UInput`: `--u-input-display` CSS 커스텀 프로퍼티 추가(기본값 `inline-block`, 기존과 동일). 폼/그리드 셀에서 전체 폭을 채우려는 소비자는 `u-input { --u-input-display: block; }`로 오버라이드 가능 — 이전에는 전역 `u-input{ display:block; width:100% }` 같은 하드코딩 우회가 필요했다.

## [1.3.0] - 2026-07-02

### Fixed
- `UFloatingElement.strategy`에 `reflect: true` 누락 수정 — JS로 `.strategy = 'fixed'`를 설정해도 host 속성이 갱신되지 않아 `:host([strategy="fixed"])` CSS 셀렉터가 매치되지 않던 버그.

### Changed
- `USelect` 내부 `<u-popover>`의 기본 위치 전략을 `strategy="fixed"`로 변경. 기존 `absolute` 기본값은 `UDrawer` body(`overflow:auto`)처럼 스크롤 컨테이너 안에 `u-select`가 놓이면 팝오버가 잘리는 문제가 있었다(흔한 "폼 드로어 + 셀렉트" 조합에서 재현). `fixed`는 뷰포트 기준으로 그려져 조상의 `overflow`에 클리핑되지 않으며, `@floating-ui/dom`의 `autoUpdate`가 스크롤/리사이즈 시 위치를 계속 재계산하므로 기존 동작과 시각적으로 동일하게 보인다.

## [1.2.1] - 2026-07-02

### Fixed
- `plugins/vite-plugin-react-wrapper.ts`: 생성된 `dist/react/*.js` 래퍼가 `import { X } from '...'`와 `export const X =...`를 동일 스코프에 선언해 **모든** React 래퍼(및 barrel `@iyulab/components/react`)가 `SyntaxError: Identifier 'X' has already been declared`로 로드 자체가 실패하던 결함 수정. `.d.ts` 템플릿은 이미 `as ${className}Element` 별칭을 썼으나 `.js` 템플릿만 누락되어 있었음 — `.js` 생성기에 동일한 별칭을 적용해 근본 수정. 이 서브패스를 문서화·검증하는 과정에서 발견(README 예시를 실제로 import해보다가 SyntaxError 재현).

## [1.2.0] - 2026-07-02

### Added
- `UButton`: `color` property (`"neutral" | "blue" | "green" | "red" | "orange" | "teal" | "cyan" | "purple" | "pink"`, default `"neutral"`) — semantic color axis independent of `variant`, e.g. `variant="solid" color="red"` for a destructive action button.
  - Default `"neutral"` renders identically to the previous (pre-1.2.0) output — fully backward compatible.
  - Applies to `solid`/`surface`/`filled`/`outlined` (background/border) and `link` (text color, only when explicitly set to a non-neutral color — the default blue `link` look is preserved). `ghost` is unaffected: its hover/active backgrounds use the generic `--u-bg-color-hover`/`--u-bg-color-active` tokens rather than the neutral color scale, so there is no palette to redirect.
  - Verified visually via a live browser render (all variant × color combinations) in addition to `npm run build`/`npm test`.
- `UButton`: `size` property (`"sm" | "md" | "lg"`, default `"md"`) — scales the button by changing `font-size` only; padding, the spinner, and prefix/suffix margins are already `em`-relative so they scale proportionally with zero extra CSS.
  - Default `"md"` (14px) renders identically to the previous (pre-1.2.0) output — fully backward compatible. `sm` = 12px, `lg` = 16px.
  - Verified visually via a live browser render (sm/md/lg, including with `loading` and prefix icon slots).

## [1.1.1] - 2026-06-26

### Fixed
- `UAlert`: Moved padding from `:host` to the Shadow DOM `.container`. A consumer-side light-DOM reset (e.g. Tailwind preflight's `*{padding:0}`) targets the host element directly and overrode the `:host` padding, collapsing toast/alert spacing to zero. Padding on a Shadow DOM inner element is immune to outer-tree resets.
- `UDrawer`: `.panel` now honors `--drawer-size`. Previously the panel never referenced the variable, so setting `--drawer-size` had no effect and the panel sized to its intrinsic content width. Slide-axis size is now `width: var(--drawer-size, 28rem)` (left/right) / `height: var(--drawer-size, 16rem)` (top/bottom), with `max-width`/`max-height: 100%` for narrow viewports.

### Added
- `UDrawer`: Documented `--drawer-size` as a public CSS custom property (`@cssproperty`).

## [1.1.0] - 2026-06-22

### Added
- Validation messages: Introduced a locale registry (English default + `registerLocale`) so consumers can register and switch validation-message locales.

## [1.0.10] - 2026-06-09

### Fixed
- `UInput`: Fixed broken IME composition input and prevented duplicate `input` event dispatch.

## [1.0.9] - 2026-05-27

### Changed
- `Toast`: Default duration changed from 3000ms to 4000ms.

## [1.0.8] - 2026-05-21

### Added
- `vite-plugin-react-wrapper`: Added an `exclude` option.

## [1.0.7] - 2026-05-21

### Changed
- `UAlert`: Increased padding (8px→12px vertical, 12px→16px horizontal) to improve toast spacing.

## [1.0.6] - 2026-05-15

### Changed
- `UButton`: Updated form-association handling and aligned submit/reset actions to use the element internals form reference.
- Theme tokens: adjusted `--u-txt-color-weak` in light theme to improve weak-text contrast behavior.

### Fixed
- `URadio`: Option disabled state is now consistently synchronized for both `disabled` and `readonly` states.
- `UOption`: Added spacing rules for slotted `prefix` and `suffix` content to improve option layout consistency.

### Removed
- `UButton`: Removed the `associatedForm` getter from the public API.

## [1.0.5] - 2026-05-07

### Fixed
- `UCheckbox`: `label` attribute/property가 slot fallback으로 렌더되지 않던 버그 수정. `<u-checkbox label="활성">` 형태의 attribute 방식이 이제 동작함. slot에 children이 있는 기존 사용은 영향 없음

## [1.0.4] - 2026-04-20

### Fixed
- `UButton`: Fixed `type="submit"`/`"reset"` not triggering ancestor `<form>` actions. The button rendered inside Shadow DOM cannot propagate submit/reset to the host form by default. Implemented form-associated custom element pattern (`static formAssociated = true` + `attachInternals()`) so `type="submit"` calls `requestSubmit()` and `type="reset"` calls `reset()` on the associated form. Adds `form` (ID), `name`, `value` properties for HTML `<button>` standard parity. Exposes `associatedForm` getter for inspection.

## [1.0.2] - 2026-04-07

### Fixed
- `Toast`: Fixed toast not being removed from DOM after hide — changed event listener from `'u-hide'` to `'hide'` to match actual event dispatched by `UAlert`
- `Dialog`: Fixed dialog promise never resolving after close — changed event listener from `'u-hide'` to `'hide'` to match actual event dispatched by `UOverlayElement`

## [1.0.1] - 2026-04-01

### Changed
- `@lit/react` moved from `dependencies` to optional `peerDependencies`

### Fixed
- `UIcon`: Auto-apply `fill="currentColor"` only for fill-based icons; skip when `stroke="currentColor"` is present. Removed global `fill: currentColor` CSS rule
- `URadio` / `USelect`: `options` field is now a `@state()` so the UI re-renders when options change; `onChangeValue()` now triggers on both `value` and `options` changes
- `UTextarea`: Replaced `all: unset` with explicit CSS reset for better cross-browser compatibility; height recalculation moved inside `requestAnimationFrame` to stabilize auto-resize
- `Dialog`: Fixed `prompt()` input not capturing user text — switched to property binding (`.value`) and native `@input` event

## [1.0.0] - 2026-04-01

### Added
- New components: `u-avatar`, `u-badge`, `u-breadcrumb` / `u-breadcrumb-item`, `u-chip`, `u-field`, `u-icon-button`, `u-option`, `u-panel`, `u-radio`, `u-rating`, `u-select`, `u-slider`, `u-switch`, `u-tab` / `u-tab-panel`
- `Toast` utility: semantic API replacing `Notifier.toast()` — `Toast.show()`, `Toast.success()`, `Toast.error()`, etc.
- `Dialog` utility: imperative API — `Dialog.confirm()`, `Dialog.prompt()`, etc.
- `OverlayManager`: built-in overlay stack management and ESC key handling
- `icons.ts`: full rewrite of `IconRegistry` with bundled SVG support via Vite `import.meta.glob` and built-in CDN resolvers for Tabler, Heroicons, Lucide, and Bootstrap Icons
- Vite plugins: `vite-plugin-glob-resolve` and `vite-plugin-react-wrapper` for automatic React wrapper generation
- `skills/iyulab-components/` agent skill with 39 component references, 9 utility references, and 5 extension references
- `docs/` developer documentation (architecture, guidelines, events, theming, form-controls, icons)

### Changed
- **Breaking:** Removed `U`-prefixed event types (`UChangeEvent`, `UInputEvent`, `UShowEvent`, `UHideEvent`, `USelectEvent`, `UResizeEvent`) — replaced with `ShowEvent`, `HideEvent`, `PickEvent`, `CheckEvent`, `ExpandEvent`, `CollapseEvent`, `NavigateEvent`, `RemoveEvent`, `ShiftEvent`
- **Breaking:** `Notifier` replaced by `Toast`; `IconRegistry` rewritten as `icons.ts` — existing API is not compatible, migration required
- **Breaking:** `UModalElement` removed — merged into `UOverlayElement`; extend `UOverlayElement` instead
- Heavy components extract render logic into a separate `U<Name>.component.ts` file
- `converters.ts` extended with additional type conversion utilities
- `README.md` overhauled with Agent Skills installation guide

## [0.4.0] - 2026-03-02

### Added
- `UJsonElement`: new base class that reads JSON from a `<script type="application/json">` tag in light DOM and maps properties to the component automatically; includes built-in error UI (`error()` method) and `buildHTML()` static helper
- `sanitizers.ts` utility: `stripZeroWidth()`, `escapeHtmlText()`, `escapeHtmlAttr()`, `escapeHtmlHref()` for HTML/XSS protection
- New icon assets: `arrow-down-up`, `code-slash`, `download`, `sort-alpha-down`, `sort-alpha-up`

### Changed
- **Breaking:** `BaseElement`, `FloatingElement`, `ModalElement` renamed to `UElement`, `UFloatingElement`, `UModalElement` — all components updated accordingly

### Fixed
- `UCarousel`: Fixed tap vs drag detection — pointer target is tracked to dispatch a `click` event on tap when drag distance is below threshold

## [0.3.0] - 2026-02-26

### Added
- `UCard`: card layout component with `header`, `footer`, `media` slots
- `UCarousel`: carousel component with autoplay, drag, navigation, and multi-slide view

### Changed
- Moved `@lit/react` and `react` to optional `peerDependencies`
- Updated devDependencies

## [0.2.3] - 2026-02-09

### Added
- `UInput`: `inputmode`, `enterkeyhint`, `size`, `multiple` properties for improved mobile UX and HTML standard compliance (#4)

## [0.2.2] - 2026-02-09

### Added
- `UInput`: `min`, `max`, `step` properties for number/date/time input types (#1)

## [0.2.1] - 2026-02-09

### Added
- Events documentation: complete event API reference with all `u-*` events, detail types, and usage examples (#3)
- CSS Custom Properties reference: full `--u-*` variable list with light/dark values (#2)
- Theming guide: setup, switching, and external design system integration
- Component list with tags and descriptions

## [0.2.0] - 2026-01-16

### Added
- `UTag`: tag component for labels, categories, and status; variants: `default`, `info`, `success`, `warning`, `danger`; removable with animation; prefix/suffix slots
- `UButton`: `variant` property with `default`, `borderless`, and `link` styles
- `UTooltip`: `interactive` property for keeping tooltip open on hover
- New icon assets: `arrow-repeat`, `box-arrow-up-right`, `file-earmark`, `flag`, `globe`, `hand-thumbs-up`, `hand-thumbs-up-fill`, `hand-thumbs-down`, `hand-thumbs-down-fill`, `share`, `stop-circle`, `tools`
- `converters.ts`: `arrayAttrConverter()` for array attribute conversion
- `elements.ts`: DOM helpers — `getParentElement`, `querySelectorWithin`, `querySelectorAllWithin`

### Changed
- **Breaking:** `IconRegistry` changed from singleton instance to static class (use `IconRegistry.register()` instead of `icons.register()`)
- **Breaking:** `Notifier` changed from singleton instance to static class (use `Notifier.toast()` instead of `notifier.toast()`)
- **Breaking:** `Theme` changed from singleton instance to static class (use `Theme.init()` instead of `theme.init()`)
- **Breaking:** `UIconButton` removed — use `UButton` with icon slot instead
- `FloatingElement`: enhanced positioning and anchor management logic
- `UButton`: improved click event handling for disabled and loading states
- `UDialog` / `UDrawer`: updated to use improved modal element patterns
- `UMenu`: refactored submenu handling and dropdown logic
- `IconRegistry`: reorganized and improved icon loading architecture
- Internal utilities moved to public: `internals/attribute-converters.ts` → `utilities/converters.ts`, `internals/node-helpers.ts` → `utilities/elements.ts`, `utilities/icons.ts` → `utilities/IconRegistry.ts`

## [0.1.11] - 2026-01-06

### Added
- `UTreeItem`: `loading` property with spinner indicator and `MutationObserver` for dynamic child loading
- `UMenuItem`: `loading` property with spinner indicator

### Changed
- `UDivider`: simplified component (removed movable functionality)
- `USplitPanel`: completely rewritten with native splitter implementation
- `UMenu` / `UMenuItem`: refactored submenu handling logic
- `UTreeItem`: improved children slot handling with `processChildren` method; indent styling now uses CSS custom property (`--indent-level`)

### Fixed
- Fixed d.ts generation error for `Theme` class by exporting the class

## [0.1.10] - 2025-12-19

### Fixed
- Fixed circular dependency issue between `UMenu` and `UMenuItem`
- `UMenuItem` now uses tag name check instead of `instanceof` for submenu detection

## [0.1.9] - 2025-12-19

### Added
- `Tree` and `TreeItem` components for hierarchical data display
- Updated React wrapper plugin to support new file structure

### Removed
- Removed `CopyButton` component

### Changed
- React wrapper output directory changed to `react-components`

## [0.1.8] - 2025-12-18

### Changed
- **Breaking:** Added `U` prefix to all component class names (e.g., `Alert` → `UAlert`)
- **Breaking:** File naming convention changed: `{Name}.ts` → `U{Name}.component.ts`, `{Name}.styles.ts` → `U{Name}.styles.ts`, `index.ts` → `U{Name}.ts`

## [0.1.7] - 2025-12-12

### Added
- `FloatingElement` base class for shared popover and tooltip logic
- `ModalElement` base class for shared dialog and drawer logic
- `Drawer` component
- `Skeleton` component

### Changed
- `Menu`: improved with dropdown, context menu, and submenu support
- `Dialog`: refactored to extend `ModalElement`

### Removed
- Removed `ContextMenu` and `DropdownMenu` — functionality merged into `Menu`

## [0.1.5] - 2025-12-10

### Changed
- Improved `Icon` component and refactored icon utilities
- Improved `Input` component styles and validation
- Improved `Tooltip`, `Divider`, `SplitPanel` components
- Improved `notifier` utility
- Updated theme styles (light/dark)

### Removed
- Removed `Panel` component

## [0.1.4] - 2025-12-05

### Fixed
- Fixed miscellaneous issues

## [0.1.3] - 2025-11-17

### Added
- `ProgressBar` component for displaying top-of-page loading progress

### Fixed
- Fixed theme `useBuiltIn` option not working as expected

## [0.1.2] - 2025-11-13

### Fixed
- Fixed a type issue in `theme` utility

## [0.1.1] - 2025-11-13

### Added
- `BrowserStorage` utility supporting `localStorage` and `cookie` with async get/set/remove methods

### Changed
- Theme `persist` option renamed to `store`

### Removed
- Removed `toggle` method from theme utility

## [0.1.0] - 2025-11-12

### Added
- Initial release
