# @mielui/svelte 0.5.0 changelog

This document aggregates the release notes for this version. Review it before integrating or upgrading Mielui.

Large changes for this release have an LLM context page at [/changelog/0.5.0/llm.md](/changelog/0.5.0/llm.md).

## Breaking changes

- `chrome.borders` is removed from the theme contract. Every frame now has one border, the old `single` look, and Theme Studio no longer shows a Borders control.
- `--mielui-inset-position` is removed. Footer, header, and toolbar strips render where you write them, and Theme Studio no longer shows an Inset strip control.
- Code Block's built-in header now sits above the code, matching the install commands in the docs.
- The `--mielui-border-inset-scale` and `--mielui-modal-inset` custom properties are removed.
- The default brand color is now `#e5808a`, a pastel pink-red, instead of `#ba7ca5`. Set `brand: '#ba7ca5'` in your theme to keep the old color.
- The default neutral is now `moss`, an olive-tinted ramp: a warm off-white stage in light mode and a green-black stage in dark mode. Set `neutral: 'true'` in your theme to keep the old grey.
- Components are built on ui-sdk (`@ui-sdk/svelte` and `@ui-sdk/core`, pinned to `0.1.0-beta.24`) instead of Bits UI, vaul-svelte, and Floating UI. Install both ui-sdk packages; `bits-ui`, `vaul-svelte`, `@floating-ui/dom`, and `@internationalized/date` are no longer needed.
- Open, selected, checked, pressed, and highlighted parts expose `data-open`, `data-closed`, `data-selected`, `data-checked`, `data-pressed`, and `data-highlighted` instead of `data-state` values. Checkbox, which is a native input, keeps `data-state`.
- Popups render in place in the browser's top layer instead of being moved to `<body>`. Popover, Dropdown Menu, Combobox, and Date Picker content no longer take `portal` or `dismissLayer`.
- An open Popover locks page scrolling only, not scroll areas inside the page.
- A popup reopened while it closes plays its entrance again instead of reversing from where it was.
- Dropdown Menu and Context Menu items no longer call `onclick` when chosen with Enter or Space. Use `callback`, which runs for pointer and keyboard.
- `Tooltip.Trigger` is now the button. It takes `variant`, `size`, and `unstyled`, and a `render` snippet puts the tooltip on another trigger, such as a Dropdown Menu trigger.
- Outside a `Tooltip.Provider`, a one-word label that changes while its tooltip is open, such as Copy to Copied, is swapped instead of rolled. Wrap the trigger in a Provider to keep the roll.
- Calendar, Range Calendar, Date Picker, and Date Range Picker take ISO date strings (`'2026-09-17'`) instead of `DateValue` objects, and pick dates only: `granularity`, `hourCycle`, `hideTimeZone`, and time values are removed.
- Calendar parts are renamed: `GridHead`, `HeadCell`, `GridBody`, `GridRow`, and `Cell` become `Weekdays`, `Weekday`, `Weeks`, and `Day`. The Month `day` snippet receives an ISO string.
- Date props are renamed: `minValue`/`maxValue` to `min`/`max`, `placeholder` to `month`/`defaultMonth`, `numberOfMonths` to `months`, `pagedNavigation` to `pageBy="page"`, `readonly` to `readOnly`, `preventDeselect` to `deselectable`, `closeOnDateSelect`/`closeOnRangeSelect` to `closeOnSelect`, `isDateDisabled`/`isDateUnavailable` to `unavailable`, and `excludeDisabled` to `allowUnavailable`.
- Date props `calendarLabel`, `yearFormat`, `disableDaysOutsideMonth`, `initialFocus`, `validate`, `onInvalid`, `onStartValueChange`, `onEndValueChange`, and `readonlySegments` are removed. Cancel a change from `onValueChange` with `details.cancel()` instead of `validate`.
- Date Picker's input is one text field that accepts typed dates. `DatePicker.Segment` is removed.
- Date picker popups line up with the start of the input instead of the trigger button.
- Drawer's `Portal` part and the `handleOnly`, `closeThreshold`, `repositionInputs`, and `nested` props are removed. Dragging follows ui-sdk's drawer physics.
- Accordion headers no longer move focus with the arrow keys, Home, or End. Tab moves between them.
- Tabs' selected marker is a `[data-ui="tabs-indicator"]` element placed by ui-sdk's `--active-tab-*` variables, and the tab list no longer sets `data-indicator-ready`. With `activationMode="manual"`, the ghost highlight follows the pointer and the selected tab, not keyboard focus.
- Pressing Enter on a Switch submits its form instead of toggling it. Space toggles it.
- A named range Slider submits one value, `start/end` (such as `20/80`), instead of two fields with the same name.
- OTP Field's `element` binds the root `<div>` instead of the hidden input.
- OTP Field's `pattern` takes `digits`, `letters`, `alphanumeric`, or a RegExp that each character must match, instead of a regex string for the whole code. Bits UI's `REGEXP_ONLY_*` constants no longer apply.
- In a Toolbar or `Composer.Toolbar`, only toolbar parts join arrow-key navigation. Render a Select or Dropdown Menu trigger through `Toolbar.Button`'s `render` snippet to include it. Clicking a toggle moves the toolbar's Tab stop to it.
- `Toolbar.Button` shows its selected look from `aria-pressed`, and `Toolbar.Link` from `aria-current`, instead of `data-state="on"`.
- `RadioGroup.Item` takes button attributes instead of input attributes, and its `onchange` is removed. Use `onValueChange` on the root.
- Combobox results carry `data-ui="combobox-result"` and `data-value` instead of `data-combobox-result` and `data-combobox-value`. With the input appearance, the page behind an open Combobox stays interactive.
- `Combobox.Root` no longer takes `hoverable`, `delay`, or `closeDelay`. A Combobox opens on click or typing only.
- Command and Combobox results keep the order you write them in. The best match for the search is highlighted instead of moved to the top.
- In Command, Escape clears the search before it closes the palette, and Home and End move the caret in the search field.
- `@mielui/svelte/utils` no longer exports `clickOutside`, `getFocusableElements`, `inertOutside`, `lockBodyBackground`, `lockBodyScroll`, `pushEscapeLayer`, `trapFocus`, `isPointInSubmenuTriangle`, `positionFloatingPanel`, `submenuPanelOffset`, or their `reset*ForTests` helpers.
- `@mielui/svelte/transition` no longer exports `panelMotion`, `dialogIn`, `dialogOut`, `overlayIn`, `overlayOut`, `sheetIn`, `sheetOut`, or `SheetSide`.
- The `TooltipState` and `SelectState` types are removed, along with `ContextMenuState`, `CommandState.itemsVersion`, `SheetState.triggerRef`, `CommandItem.ref`, `CommandItem.callback`, and the `name`, `isSelected`, and `setValue` fields of `RadioGroupContext`.
- Morph, Number Shuffle, and Shimmer are attachments. Write `{@attach morph({ key })}`, `{@attach numberShuffle({ value })}`, and `{@attach shimmer}` instead of `use:`.
- Import them from `@mielui/svelte/attachments/<name>` instead of `@mielui/svelte/actions/<name>`. The docs moved from `/docs/actions` to `/docs/attachments`, and the old links redirect.
- `pressable`, `travelingHighlight`, `dynamicWidth`, and `visualViewportBounds` from `@mielui/svelte/utils` are attachments. Call `travelingHighlight()` and `dynamicWidth()` to create one.
- `dynamicWidth` no longer takes `enabled`. Attach it only when you need it, as in `{@attach enabled && dynamicWidth()}`.
- `DrawerRootProps` is renamed `DrawerProps`, and `DrawerRegionProps` is replaced by `DrawerHeaderProps`, `DrawerBodyProps`, and `DrawerFooterProps`.
- `AlertDialogActionProps` is replaced by `AlertDialogCloseProps` and `AlertDialogConfirmProps`.
- The Dialog, Alert Dialog, Sheet, Drawer, Popover, Dropdown Menu, and Tooltip triggers no longer take `id`. ui-sdk assigns it for the popup's ARIA references, so a passed `id` never reached the page. Select and Combobox triggers still take `id` for a `<label for>`.
- Button's `onclick` and `onkeydown` handlers receive an event whose `currentTarget` is the rendered `<button>` or `<a>`. Handlers annotated with a different element type need updating.
- `ComboboxState`'s `searchPlacement`, `threshold`, and `appearance` are read-only. Set them on `Combobox.Trigger`.

## Features

- Themes accept a new `moss` neutral temperature alongside `cool`, `true`, and `warm`.
- `Tooltip.Provider` takes `delay` and `closeDelay`, which apply to every tooltip inside it.
- `Toolbar.Button` takes a `render` snippet, so a Select or Dropdown Menu trigger can be a toolbar item, and renders a plain button outside a Toolbar.
- Date Picker shows "Enter a valid date." when typed text isn't a date. Change it with `labels.invalid`.
- `mielui add` suggests installing missing peer dependencies at the exact versions the component was built with.
- Every Command, Combobox, and Dropdown Menu part exports its props type, such as `CommandGroupProps`, `ComboboxResultsProps`, and `DropdownMenuSubTriggerProps`.
- Alert Dialog exports props types for Trigger, Header, Title, Description, Footer, Close, and Confirm.
- Color Picker's Trigger accepts the usual trigger props, such as `size`, `disabled`, `onclick`, and `data-*` attributes, supports `bind:element`, and exports `ColorPickerTriggerProps`.
- Data Table labels include `reset` for the button that clears every filter.
- Switch takes `onCheckedChange`, called with the new state.
- `@mielui/svelte/utils` exports `DynamicWidthOptions` and `TravelingHighlightOptions`, and `@mielui/svelte/attachments/morph` exports `MorphOptions`.

## Fixes

- Color Picker shows its channel letters and hex value in lowercase instead of capitals.
- Dark-mode colors from a theme, such as Background and On brand in the Theme Studio, now apply instead of being overridden by the default dark palette.
- The docs site now runs SvelteKit 3.1.1 and patched Vercel and Node adapters, which fix several published security advisories.
- The docs build, the browser test runner, and the theme registry now use patched tar, ws, cross-spawn, and effect, which fix several published security advisories.
- Components no longer depend on `tailwind-merge`. Variants merge through `cn`, so a single small component such as Button, Badge, or Input ships 20–35% less JavaScript.
- Tooltip loads its rolling-label animation only when it first needs it, which cuts about 11 KB gzip from every page that uses Tooltip.
- Command and Combobox load the smaller `fuse.js/basic` build, which ranks results the same way.
- File Upload's progress bar uses your `aria-label` when you pass one, instead of always announcing the built-in name.
- Dialog's Close button keeps to the start of the footer in right-to-left layouts.
- Code Block and File Diff load only the web languages up front (JavaScript, TypeScript, Svelte, HTML, CSS, JSON, and shell). The 31 other languages load the first time a block needs them, so a page that shows only web code downloads about 34 KB gzip less.
- A bound Context Menu checkbox shows its current value after the value changes while the menu is closed.
- `class` and `data-*` attributes on `Command.Group` style the group instead of its heading.
- Command no longer logs `derived_inert` warnings when it closes or unmounts during a search.
- Combobox applies the trigger's `disabled`, `name`, `appearance`, and `searchPlacement` from the first render.
- Code Block, File Diff, Folder Card, Tool, Reasoning, and Response Stream keep their own `data-ui` and state attributes when the same attributes are passed as props. Response Stream still takes your `aria-live`.
- Question and Attachment triggers type their `onclick` event with the button as `currentTarget`.
- Response Stream's waiting caret follows the theme's motion speed, like the Markdown and OTP Field carets.

## Docs

- The home page is redesigned as one quiet column: a short headline, a live coding-agent screen built from Mielui components, and plain notes on what's inside, in light and dark.
- Opening search on the docs site grows the search field into the palette instead of popping it in. Reduced motion and browsers without view transitions open it at once.
- The home page header now centers the brand, Docs link, and theme toggle in one compact row.
- Docs pages open as soon as you press a sidebar link. Visible pages load ahead of time, and a component's API reference fills in after the page appears instead of holding it back.
- The home page header link uses the same text size as the rest of the page.
- The Command docs describe `Command.Item`'s `value` correctly: it replaces `name` as the text the search matches.
- Every key of `FileDiffLabels`, `MarkdownLabels`, `ReorderListLabels`, and `MessageLabels` says what text it controls.
- A new Migrating to 0.5 guide walks through upgrading from 0.4, including the changes TypeScript does not catch.
- The Introduction and Installation pages say that interactive components build on ui-sdk, and which ui-sdk version copied components need.
- The Mielui agent skill names the ui-sdk version that copied components need, and points upgrades from 0.4 at the migration guide.
- Prose on docs pages is one size larger, 15px instead of 14px. Live examples keep their own sizes.
