Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to next, this PR will be updated.
Releases
bits-ui@1.0.0
Major Changes
Bits UI v1 (Svelte 5). This release includes many breaking changes, bug fixes, and new features. (#690)
Please see the Migration Guide and Documentation to learn more.
Minor Changes
Checkbox.Group
andCheckbox.GroupLabel
components (#1003)Patch Changes
fix: clean up event listeners for menus (#1071)
fix: allow resetting
DateField
value (#988)fix: make layers global for use with other libs that depend on Bits UI (like
vaul-svelte
) (#873)fix: pin input pattern checking (#848)
fix: toolbar item events (#813)
DropdownMenu.Trigger
should default totype="button"
while enabling users to override via thetype
prop (#951)fix: Combobox & Select trigger default to
type="button"
(#802)Add ID Attribute to Toggle Root Component (#823)
fix: scrollbar flicker (#806)
fix: Pin Input paste behavior (#1085)
breaking: remove
controlled<State>
props in favor of Svelte's Function Bindings (#1034)gracefully handle internally cancelled interactoutside events (#726)
fix:
Command
arrow navigation after empty state displayed (#997)next: fix pointer event restoration (#695)
feat: add
onStateChange
callback toCommand
component (#972)fix: Combobox
forceMount
(#844)fix: issues with body scroll lock not resetting on destroy with no transition time (#775)
feat: Navigation Menu Submenu support (#1001)
add
data-arrow
attribute to floating arrow svg (#906)breaking:
Slider.Root
now requires atype
prop to specify whether the slider should be a"single"
or"multiple"
slider, which determines whether the value and change function arguments should be of typenumber
ornumber[]
(#1032)fix: DateField 24 hour cycling (#945)
fix: use
getAttribute("style")
instead ofgetComputedStyle()
when restoring styles on body scroll lock removal (#1045)feat: export and document
Portal
utility component (#716)Update Svelte
peerDependency
from^5.0.0-next.1
to^5.0.0
(#869)fix: ensure
disabled
attribute is passed to a disabled tooltip trigger (#916)fix: dont use
display: table
in scroll area (#863)Alert Dialog:
Action
button no longer closes the dialog to accomodate form submission / other asynchronous action (#718)fix: derived updates (#802)
fix: issue with nested scroll prevention (#896)
BREAKING: Update
child
snippet behavior of Floating UI-basedContent
components (#994)fix: Pin Input allowing paste on non-matching (#1101)
fix: ensure
Tooltip.Provider
props are applied toTooltip.Root
unless overridden (#878)fix(Pagination): disable prev/next buttons when no prev/next page (#910)
fix(RangeCalendar): allow
value
to be cleared (#1075)rename various
BitsHTMLAttributes
types to avoid autocomplete interference with Svelte'sHTMLAttributes
types (#744)fix: issue where you were unable to navigate to the previous menu from within a menu of the menubar via arrow keys (#990)
fix: remove defaults from
Tooltip.Root
to favorTooltip.Provider
(#880)fix: Select/Combo scroll (#1083)
fix: ensure highlighted item is reset when items mount/unmount (#919)
fix: pagination page aria-label (#854)
fix: bug with calendar months sometimes not rendering the first day of the month (#777)
fix: forward user-defined
Menubar.Content
props (#1123)update
PaginationSnippetProps
type (#761)Forward
dir
prop to underling elements (#701)fix:
avoidCollisions
in Floating UI components (#984)fix:
onStateChange
ofCommand.Root
not firing after initial mount (#1138)breaking: rename
PinInput
onPaste
topasteTransformer
(#1152)fix: issue causing labels associated with radio group items not to select the item (#943)
fix: make
*Menu.CheckboxItem
indeterminate
prop bindable (#900)fix: issues with select/combobox highlighted for mobile (#1124)
Allow
Select
to be opened with theEnter
key. (#785)feat: export
computeCommandScore
for use in custom Command filters (#1127)fix: Tooltip
forceMount
(#844)Allow
<Button/>
withhref
to be disabled. (#1055)feat: add
clearOnDeselect
prop toCombobox.Input
to clear the input's value when the last (multiple) or only (single) item is deselected. (#1118)fix: RangeCalendar allow selecting
maxValue
as complete range (#1091)perf: optimize command methods (#992)
add tooltip data-attr (#908)
optimize classes via prototype bindings (#986)
fix: pagination with
count={0}
displaying page 0 (#893)fix: Menu grace areas to enable top/bottom submenus (#1114)
fix: command click events (#816)
fix issue with default
open
anddisabled
Portal (#1080)next: fix command
scrollIntoView
issues (#714)fix: issue with
LinkPreview
where content wouldn't close when the trigger was entered and exited quickly (#889)change: don't include
open
onchildren
snippet props, onlychild
(#737)set
preventScroll
totrue
by default onContextMenu
(#709)fix: pin input paste not working without pattern (#897)
Breaking: replace existing
Select
implementation withListbox
and remove standaloneListbox
asSelect
now has the exact functionality (#769)Select: add
data-placeholder
toSelect.Trigger
when the select doesn't have a value (#778)ensure minimum esm-env version is a working version (#840)
fix: infinite loops caused by rapid open/close of nested focus scopes (#1132)
fix: cleanup a few untracks that were left unhandled (#746)
feat: expose imperative methods on
Command.Root
for more advanced use cases (#1141)fix:
Checkbox.Group
not firingonValueChange
(#1146)fix: cleanup focus scope handlers (#936)
fix bug preventing
crossorigin
andreferrerpolicy
attributes to work withAvatar.Image
component (#721)fix: DropdownMenu & ContextMenu
forceMount
(#844)fix: Select
forceMount
(#844)update
runed
to support Astro builds (#1078)fix(Combobox): scroll highlighted item into view when navigating the list with keyboard (#699)
DropdownMenu.Trigger
type="button"
by default (#953)fix: various pointer/click issues (#794)
Allow users to override the
type
attribute onCheckbox.Root
(#934)fix: expose
updatePositionStrategy
prop for tooltip content (#1026)fix: align
Tabs
component ARIA attribute with W3C spec (#702)add
closeOnSelect
prop to all the menu item components (#859)fix:
TabTrigger
default tabindex handling (#949)fix: Avatar should render fallback if src is updated and is
null
/undefined
(#929)fix: Range Calendar external value updates (#851)
cleanup internals, update Svelte (#1024)
Listbox/Combobox: gracefully handle deselect when
type="single"
(#713)breaking: rename
onValueChangeEnd
toonValueCommit
(#774)expose
currentPage
to thePagination.Root
snippets (#759)improve export strategy (#966)
fix: issues with dismissable layer siblings being confused (#785)
fix: Select trigger refocus in firefox/safari (#735)
BREAKING:
Checkbox
and*Menu.CheckboxItem
checked
prop is now of typeboolean
withindeterminate
being a separate prop (#898)fix:
Popover
trigger close detection (#1030)Select/Combobox: add
allowDeselect
prop (#819)fix: Dialog buttons not responding on certain mobile platforms (#937)
next: improve tree-shaking (#728)
fix: make
open
prop ofDateRangePicker
andDatePicker
$bindable
(#975)fix: Pin Input paste behavior (#1096)
fix: floating focus loops (#1072)
fix: ensure
crossorigin
isn't applied to image if it isundefined
or not passed as a prop (#724)Dialog/Alert Dialog: change
Dialog.Close
andAlertDialog.Cancel
events frompointerdown
toclick
(#1028)fix: popover
forceMount
(#844)fix: Scroll Area scrollbar positioning issue after scroll then hide (#804)
fix: export
Portal
fromMenubar
namespace (#955)fix: Link preview not closing on pointer leave (#825)
Radio Group: allow both arrow up/down and left/right per WAI-ARIA spec (#742)
BREAKING:
Select
- change default value ofallowDeselect
tofalse
to align with native HTML<select>
(#1049)fix: slider disabled still allowed pointer to change value (#882)
fix: nested outside clicks (#875)
fix: allow
Select
to handle empty string values via keyboard (#979)fix(Button): make
ref
prop$bindable
(#798)fix: ensure
disabled
is passed through toDialog.Trigger
andDialog.Close
(#1057)fix:
Dialog
andAlertDialog
child
transition and addrestoreScrollDelay
prop to support custom transitions (#831)fix: Dialog/Popover clientX/Y detection to prevent password managers and other injected elements from closing the dialog when pressed (#1089)
fix: tooltip not closing when pointer leave (#1133)
fix: allow tabbing out of menus to previous and next tabbable item in the dom (#1111)
export REGEXP helpers from pin input (#821)
fix: add role="option" to select items (#857)
Add support for typeahead select when the trigger is focused and content is closed via the
items
prop onSelect.Root
. (#769)fix: LinkPreview
forceMount
(#844)fix: don't auto select first radio item unless there is already a selected value (#927)
fix: radio group onValueChange loop (#939)
fix:
Select
andCombobox
infinite loop on item selection (#925)fix: click events firing on elements behind the content when selecting Combobox.Item (#1109)
fix: ensure
disabled
is passed toPopover.Trigger
(#918)update Svelte to
5.0.0-next.260
(#707)revert to
onclick
events for most components except where it makes sense (like menus, select, etc.) (#1011)fix: bug causing focus scopes to conflict (#1123)
fix: only submit values with
FormData
on Combobox/Selecttype="multiple"
if a value is selected to align with native<select multiple>
behavior (#961)