Create

Changelog

All notable changes to this project are documented here, in a dedicated section for each release.

v0.1.4

Other changes

  • docs
    Update changelog
v0.1.3

Breaking changes

  • icon makes a square, icon-only button in any size; the icon* sizes are removed.

    Migration:replace size="icon", icon-xs, icon-sm and icon-lg with default, xs, sm or lg plus icon (<wds-button size="sm" icon="lucide-x" label="Close">). wds-pagination and wds-pagination-button take the same sizes.

    Details

    wds-button gets icon: the name of a registered icon that makes a square, icon-only button in any size (<wds-button size="sm" icon="lucide-x" label="Close">). The sizes icon, icon-xs, icon-sm and icon-lg are removed; use xs, sm, default or lg with icon instead. Content made only of <svg> or <wds-icon> elements also gives a square button, an icon-only button matches wds-button:state(icon-only), and icon-flip-rtl without a value mirrors icon. wds-toggle gets icon too. wds-pagination and wds-pagination-button take xs, sm, default or lg as size, and wds-message-scroller-button defaults to sm.

New components

  • Slides in a row or a column with buttons, dots, dragging, several slides in view, loop and autoplay.Details

    New wds-carousel with wds-carousel-item (@wds/core/carousel, @wds/angular/carousel, @wds/react/carousel): slides in a row or a column that scroll natively with snap points, with previous and next buttons, optional dots, mouse dragging, the keyboard, several slides in view (--wds-carousel-per-view), centered slides, loop and autoplay with a stop button. index, wds-change, next(), prev() and goTo() control it from code.

  • Navigation that marks the section being read, as a table of contents with levels or a horizontal bar.Details

    New wds-scrollspy with wds-scrollspy-item (@wds/core/scrollspy, @wds/angular/scrollspy, @wds/react/scrollspy): navigation that marks the section being read in the page or in a scrolling element (target), with offset for sticky headers, a vertical table of contents with level indents or a horizontal bar, smooth scrolling and focus on click, and wds-change with the active section.

  • A list, row or grid reordered with the mouse, touch or the keyboard.Details

    New wds-sortable with wds-sortable-item and wds-sortable-item-handle (@wds/core/sortable, @wds/angular/sortable, @wds/react/sortable): a list, row or grid reordered by dragging with the mouse, touch or the keyboard, with screen reader announcements, wds-change (live order) and wds-commit (once per drag, with the order before it). wds-kanban now shares its drag handling with it and, like the list, scrolls the nearest scrollable container or the page while the pointer is near its edge.

  • Rows with columns nested into a tree and collapsible groups, with any content in the cells.Details

    New wds-tree-grid with wds-tree-grid-group, wds-tree-grid-row and wds-tree-grid-cell (@wds/core/tree-grid, @wds/angular/tree-grid, @wds/react/tree-grid): rows with columns that nest into a tree by level and split into collapsible groups, with cells that hold any markup or framework component. Column headers repeat in every group and share widths and order; sorting, resizing and reordering columns fire wds-sort-change, wds-column-resize and wds-column-reorder. With row-reorderable (and nestable) rows are dragged by a grip or moved with Alt and the arrow keys, and wds-row-reorder says where they go; a row dropped onto a group outside its rows (also an empty group) comes with an empty target and goes to the end of that group. Rows and groups expand and collapse with a toggle or the arrow keys (WAI-ARIA Treegrid pattern).

Features

  • icon-start and icon-end show a registered icon before or after the text.Details

    wds-badge gets icon-start and icon-end: the name of a registered icon before or after the text (<wds-badge icon-start="lucide-check">Approved</wds-badge>), with icon-start and icon-end parts. The default slot still takes your own <svg> or <wds-icon>.

  • moveActive(step) and selectActive() drive the list when its query comes from outside the search field.Details

    wds-command gets moveActive(step) and selectActive(), so a list whose query comes from outside the search field (for example a menu under the caret in a text editor) can be driven with the arrow keys and Enter.

  • Reconnecting edges, undo and redo with history, and a minimap.Details

    wds-flow: a selected edge has grips on both ends to reconnect it (wds-reconnect, reconnectable), history adds undo and redo (undo(), redo(), clearHistory(), canUndo, canRedo, wds-history-change, Ctrl/⌘ + Z), and minimap shows an overview that pans and zooms the pane.

  • icon-start, icon-end and icon attributes take the name of a registered icon in buttons, toggles, tabs, menus, selects, alerts and more.Details

    Icon attributes take the name of a registered icon. icon-start and icon-end: wds-button (plus icon-flip-rtl; while loading the spinner takes the place of icon-start), wds-toggle, wds-tab, wds-dropdown-item, wds-sidebar-menu-button, wds-command-item, wds-select-item, wds-combobox-item (also shown in the trigger="button" field and in chips) and wds-breadcrumb-link; wds-combobox gets icon-start at the start of the field. icon: wds-alert, wds-empty, wds-item, wds-input-group-addon, wds-timeline-item, wds-stepper-item, wds-alert-dialog and wds-navigation-menu-link. The icons have icon-start, icon-end or icon parts; slots still take your own content.

  • Outline icons are modules, and components take their icons from the registry, so registerIcons() also replaces built-in icons.Details

    Icons have one source. Outline icons are modules: import '@wds/core/icons/lucide/train-front' registers the icon for <wds-icon name="lucide-train-front"> and the default export is its name (icons from lucide, ISC License, see dist/icons/LICENSE-lucide.txt). Components no longer contain inline SVG paths: they take their icons from the registry, so registerIcons() also replaces built-in icons such as lucide-chevron-down inside components. New defineIcon(), getIcon(), iconNames() and --wds-icon-stroke; ::slotted icon styles also apply to wds-icon; wds-map marker icon accepts an icon name.

    New @wds/core/icon/registry entry: the icon registry without Lit (getIcon, registerIcons, defineIcon), e.g. for rendering icons on the server.

    New @wds/core/icons/lucide.json entry: the lucide version and every icon with its SVG and tags, e.g. for an icon picker that loads them on demand.

  • --wds-input-group-height sets the height of a single-line group.Details

    wds-input-group gets --wds-input-group-height: the height of a single-line group (default 32px, the form control height), e.g. for a larger search field. The input inside follows it.

Fixes

  • A missing value in the data leaves a gap in a line and no bar instead of a zero.Details

    wds-chart: a missing value in a data row (null, undefined or an empty string) leaves a gap in a line and no bar instead of a zero; the tooltip skips the series at that point and the data table shows a dash.

  • A dragged node no longer lags behind the pointer by the 1 px drag threshold.
  • Server rendering no longer fails on inputs that are read-only in the server DOM, such as index on wds-carousel.Details

    Server rendering no longer fails on inputs that the server DOM defines as read-only, such as index on wds-carousel ("Cannot set property index of #<Object> which has only a getter"). On the server the wrapper skips such inputs for elements that are not upgraded; in the browser nothing changes.

v0.1.2

New components

  • A chat message with an avatar, header and footer; align="end" for the user's own messages.
  • A message bubble in seven variants, with reactions and quick replies.
  • A file card with upload states (uploading, processing, error, done).
  • A conversation area that follows new messages, opens at the end, start or last question, lifts a new question to the top and keeps the position when earlier messages load.
  • A box that keeps the ratio of an image, video or iframe.
  • Code with line numbers, highlighted and focused lines, diff marks, copy, download, wrap and expand.Details

    Syntax highlighting goes through a pluggable highlighter; @wds/core/code-block/shiki registers one built on Shiki (optional peer dependency).

  • A styled native <select> with <option> and <optgroup> children, form and wds-field support.Details

    The Angular select value accessor and signal form field also handle it.

  • Panel groups resized by dragging the handles or with the keyboard.
v0.1.1

New components

  • Columns of cards dragged within and between columns, reorderable and collapsible columns, keyboard support and screen reader announcements.

Features

  • resizable column widths, row density and row-reorderable rows.
v0.1.0

Features

  • First versioned release of WDS. @wds/core, @wds/angular, @wds/react and @wds/tokens share a single version and are released together.Details

    Components in this release: Accordion, Alert, Alert Dialog, Avatar, Badge, Breadcrumb, Button, Button Group, Calendar, Card, Chart, Checkbox, Collapsible, Combobox, Command, Context Menu, Data Table, Date Picker, Dialog, Drawer, Dropdown, Empty, Event Calendar, Field, File Upload, Filters, Flow, Frame, Gantt, Hover Card, Icon, Input, Input Group, Input OTP, Item, Kbd, Map, Menubar, Navigation Menu, Number Field, Pagination, Popover, Progress, Radio, Scroll Area, Select, Separator, Sheet, Sidebar, Skeleton, Slider, Spinner, Stepper, Switch, Table, Tabs, Textarea, Time Picker, Timeline, Toast, Toggle, Toggle Group, Tooltip and Tree. Built-in texts are in English and Polish and follow the lang attribute.

Footer