Changelog

Version 1.4.4 04/24/2025
fix Dialog

Fixed situation where dialogs were unrendered, but body scroll was still prevented.

fix Context Menu

onOpenChange did not work properly when context menu was closed.

feature Context Menu

Added link item to context menu.

Version 1.4.3 04/12/2025
improvement Toast Provider

Added data key to showToast action to provide arbitrary data to a toast.

improvement Dialog

Added role attribute to sc-dialog-content to change the dialog's role.

Version 1.4.2 04/02/2025
improvement Select

Added onFocusChange event to the select component.

Version 1.4.1 03/28/2025
fix Popover

Click outside listener did not fire for position fixed in non-modal mode.

Version 1.4.0 03/16/2025
feature Accordion

Added accordion icon component as a visual indicator for the accordion's state.

feature Collapsible

Added collapsible icon component as a visual indicator for the collapsible's state.

Version 1.3.2 03/13/2025
fix Tooltip

The attribute disable-hoverable-content was not working correctly.

Version 1.3.1 03/04/2025
improvement Tooltip

Added disabled option to the tooltip.

Version 1.3.0 03/03/2025
feature Dropdown

Added link item to include regular links in dropdowns.

feature Menubar

Added link item to include regular links in a menubar.

Version 1.2.9 03/01/2025
fix Slider

The initial values of the slider thumbs were not displayed when no min and max values were specified.

Version 1.2.8 02/22/2025
fix Dialog

The dialog scroll area did not respond in certain edge cases on desktop browsers.

fix Select

Hidden select elements, which are required in forms, were focusable.

Version 1.2.7 02/18/2025
fix Dialog

Dialog click outside listener fired occasionally on clicks inside the dialog.

Version 1.2.6 02/17/2025
improvement Popover

Added trigger-keys attribute and events for onClick and onKeydown to sc-popover-trigger.

fix Tabs

Attribute aria-selected was not set for tabs-trigger and trigger tabindexes were not updated correctly on trigger click.

fix Trigger Button Context

Attribute aria-expanded was incorrectly set to "undefined" instead of being omitted when not needed.

Version 1.2.5 02/13/2025
fix Avatar

Avatar image remained rendered after src was changed and the fallback was displayed.

fix Scroll Area Behavior

In certain situations, scroll on desktop was not prevented correctly.

fix Portal

Handled corner cases where pointer events were not prevented.

improvement Popover

Added role to sc-popover-scroll-area.

Version 1.2.4 02/12/2025
improvement Select

Added onSelect event to sc-select-item.

improvement Popovers

Improved click-outside handling and event prevention in modal mode for all dropdown, select, and popover components.

Version 1.2.3 02/11/2025
fix Checkbox

In controlled mode, the checkbox state and indicator display could get out of sync when clicking rapidly and frequently.

fix Modal Portal

Added stop propagation to the modal portal, ensuring proper behavior for nested modals.

Version 1.2.2 02/09/2025
improvement Provider

Exposed the array of open modals in the sc-provider.

Version 1.2.1 02/06/2025
fix Select

The Escape keydown event did not have a stop propagation. This led to issues with selects in dialogs.

Version 1.2.0 02/05/2025
feature Select

Added multi-select functionality to the select component.

Version 1.1.2 02/04/2025
fix Scroll Area

Enabled horizontal scrolling in all scroll area components.

Version 1.1.1 02/01/2025
fix Popover

Fixed an issue where the popover sometimes did not receive focus and did not listen for the Escape keydown.

Version 1.1.0 01/15/2025
feature Toast

Added a flexible toast component with a central provider.

Version 1.0.0 01/01/2025
feature Initial Release

This is the first release of the package. Includes more than 25 ARIA-compliant primitives that can be used in any toddle project.

made for toddle