Changelog
Fixed situation where dialogs were unrendered, but body scroll was still prevented.
onOpenChange
did not work properly when context menu was closed.
Added link item to context menu.
Added data key to showToast action to provide arbitrary data to a toast.
Added role attribute to sc-dialog-content to change the dialog's role.
Added onFocusChange
event to the select component.
Click outside listener did not fire for position fixed in non-modal mode.
Added accordion icon component as a visual indicator for the accordion's state.
Added collapsible icon component as a visual indicator for the collapsible's state.
The attribute disable-hoverable-content
was not working correctly.
Added disabled option to the tooltip.
Added link item to include regular links in dropdowns.
Added link item to include regular links in a menubar.
The initial values of the slider thumbs were not displayed when no min and max values were specified.
The dialog scroll area did not respond in certain edge cases on desktop browsers.
Hidden select elements, which are required in forms, were focusable.
Dialog click outside listener fired occasionally on clicks inside the dialog.
Added trigger-keys
attribute and events for onClick
and onKeydown
to sc-popover-trigger.
Attribute aria-selected was not set for tabs-trigger and trigger tabindexes were not updated correctly on trigger click.
Attribute aria-expanded was incorrectly set to "undefined" instead of being omitted when not needed.
Avatar image remained rendered after src was changed and the fallback was displayed.
In certain situations, scroll on desktop was not prevented correctly.
Handled corner cases where pointer events were not prevented.
Added role to sc-popover-scroll-area.
Added onSelect event to sc-select-item.
Improved click-outside handling and event prevention in modal mode for all dropdown, select, and popover components.
In controlled mode, the checkbox state and indicator display could get out of sync when clicking rapidly and frequently.
Added stop propagation to the modal portal, ensuring proper behavior for nested modals.
Exposed the array of open modals in the sc-provider.
The Escape keydown event did not have a stop propagation. This led to issues with selects in dialogs.
Added multi-select functionality to the select component.
Enabled horizontal scrolling in all scroll area components.
Fixed an issue where the popover sometimes did not receive focus and did not listen for the Escape keydown.
Added a flexible toast component with a central provider.
This is the first release of the package. Includes more than 25 ARIA-compliant primitives that can be used in any toddle project.