- feat: expose
onOutsideClick
handler (#863)
-
Toast: return
aria-live
type as'assertive' | 'polite'
(#859) -
Tags Input: Fix addOnPaste (closes #830) (#847)
-
Combobox: change default Value props type (
835c285a
)
- Menu: fix default active subtrigger (
84270042
)
-
Datepicker: fix types (closes #838) (#839)
-
Collapsible: remove leftover log (
31119cce
) -
Types: fix wrong builder return type for functions (#844)
-
Slider: remove
aria-disabled
from root (#825) -
Select & Combobox: Fix focus preventing parents to close on escape (fixes #739) (
c401f6ff
)
- Slider: RTL support (#791)
- Checkbox: add
disabled
prop to button that wraps input (#819)
-
Listbox: ignore certain keys in typeahead (fixes #803) (#804)
-
PIN Input: fix
value
store not updating in delete keydown event (#811) -
Combobox: remove trigger element (
18b2440c
)
- Select & Combobox: Fix
removeScroll
bugs (closes #733 & #808) (#809)
- Menu:
closeOnItemClick
prop (ff6169ef
)
- enhancement: return
startValue
&endValue
from range calendar (#801)
- Calendar/Range Calendar: apply
data-selected
attribute tooutside-month
days if selected (#799)
- Dropdown Menu, Context Menu, Menubar: export the
createMenuCheckboxItem
return type (#796)
-
fix: Date Range Picker - bug causing
onValueChange
to fire twice (#795) -
fix: Date Picker - bug causing
onValueChange
to fire twice (#795) -
fix: Range Field - bug causing
onValueChange
to not fire after init (#795) -
- Dialog: fix
aria-modal
attribute type (#788)
- Dialog: fix
- fix: bug with range calendar
onValueChange
(#792)
-
- Calendars & Date Pickers: rename
daysOfWeek
toweekdays
and addweekdayFormat
prop (closes #782) (#784)
- Calendars & Date Pickers: rename
-
Calendar: Fix bug where keyboard navigation would allow navigating to disabled months (closes #745) (#748)
-
fix:
ids
prop is notPartial
(#757) -
fix: bug causing custom ids to not always be applied (#786)
-
Date Picker & Date Range Picker: Fix
weekdayFormat
option reactivity (#785)
-
Calendars: remove unnecessary cell attributes in favor of
melt
attribute (#778) -
Dialog: remove
aria-controls
and addaria-modal
(closes #752) (#769) -
Fix: Date Pickers option store reactivity (#776)
-
Combobox/Select: Fix undefined values not selecting (#770)
-
fix: label click selects first segment (#773)
-
fix: Toggle when items inside of popover trigger (like SVGs) are clicked (#775)
- Slider: Add
data-value
attribute to thumb and tick (60312ee9
)
-
Popover: Fix trigger not toggling the
open
state (closes #763) (#765) -
Fix:
aria-disabled
attr types (closes #764) (#766)
- TOC: Add hash to URl when clicking item (closes #592) (
7d6f4e84
)
-
Dialog: closes #452 (
f2e4fdbf
) -
Slider: improve scroll handling (closes #74) (
6a23b0a1
) -
Popover: fix page jump in Safari (closes #198) (
5e30e42f
)
-
Fix: Key events in Select don't work in Safari (#741)
-
fix: space to select select options (#730)
-
fix: Select - toggle when elements within trigger are clicked (#735)
- Fix: Days of week not updating with locale (#722)
-
- New Builders: (#527)
- Calendar - build customizable, accessible, and powerful calendar components
- Date Field - an enhanced alternative to the native with an emphasis on localization & accessibility
- Date Picker - a combination of the Calendar, Date Field, & Popover builders
- Range Calendar - build a calendar with range selection. Extends the power & functionality of the Calendar
- Date Range Field - an enhanced alternative to using two native inputs for selecting start and end dates, with an emphasis on localization & accessibility
- Date Range Picker - a combination of the Range Calendar, Date Range Field, & Popover builders
- New Builders: (#527)
- Fix: Menubar Menu bring your own id (#716)
- Fix: Dialog layout shift when using svelte transitions (#706)
- TOC: isActive helper (
c7618563
)
- TOC: 'all-parents' type (
67307b2a
)
- fix: timing issue with
handleFocus
(#693)
- Feat: ability to override internal ids via a prop (#683)
- Dialog: improve trigger focus' (
257deb36
)
- Menu: add controlled submenu props (#676)
Listbox: Respect
closeOnEscape
- Menus: Return Ids (#674)
- Combobox & Select:
highlightOnHover
option (#671)
- Add
openFocus
&closeFocus
props for controlled focus (#663)
-
Fix bug where context menu wasn't treating elements within the trigger as part of the trigger (#654)
-
fix: loop prop in menus (#643)
-
DropdownMenu: Implement
disableTriggerRefocus
prop (#647) -
Tooltip: Avoid calling openTooltip on every mousemove, fixing a couple of bugs: (#660)
- onOpenChange was being called for every mouse move within the tooltip.
- Overlapping grace areas were fighting over the group.
-
- Apply correct aria attributes depending on
type
of toolbar group (#644)
- Apply correct aria attributes depending on
-
- Apply correct aria attribute depending on
type
of toggle group (#645)
- Apply correct aria attribute depending on
- Combobox: allow contenteditable (#633)
- Dialog: Fix touch event passing through overlay (
9bf81b3b
)
- The
melt
action now throws a helpful error if it's used without our preprocessor (#616)
-
Select: use listbox builder (#613)
-
Combobox: Use listbox builder (#613)
-
Add new internal builder
listbox
(#613)
- Combobox: fix highlightedItem behaviour (
36d7526c
)
- Combobox: add hiddenInput element; refactor behaviours (
a73b82c6
)
- Select: rename
input
tohiddenInput
(4c53736c
)
- Feat: Allow opting-out of floating UI (
1614f12c
)
- return an
ids
object from builders which contains theid
s Melt applies to certain elements internally (#591)
-
Tooltip: Fix bug with
group
parameter (#590) -
Link Preview: Fix bug where content would not close (
c882dfa5
) -
Slider: Add
aria-disabled
to root (#584) -
Tooltip: fix esc handler (
178ef63e
)
-
Select: Fix defaultSelected clash when
multiple
is true (d0a1d4c8
) -
Combobox: Fix defaultSelected clash when
multiple
is true (633bacf0
)
- Tooltip: Add
group
prop (#575)
-
Combobox: Fixed focus management (#569) (#570)
-
fix: change JSDoc example for
melt
action (#576) -
Tooltip: rework open & close behaviours (
21bcf3d0
) -
fix: add generics to exported types (#579)
-
Select: Fix
selected
prop type (#539) -
Pin Input: bind
$valueStr
store tohiddenInput
ofpin-input
builder (#557) -
Combobox: Fix exported types (
9e4c6a26
) -
Dropdown Menu: Up key focuses last menu item if there is no selection (#550)
-
Pin Input: Change
type
prop's types (that's confusing!) (#545)
- Select: fix deep equality on isSelected (
ad02e18f
)
- ca04a433: Combobox: Pressing enter no longer submits form
- 4da1aa73: Combobox: Refactor API, allowing for a more general use case.
- Discarded
isEmpty
,filterFunction
&debounce
. - Added
touchedInput
state
- Discarded
- 82d37a43: Tooltip: Add
disableHoverableContent
prop
- c472cf1d: chore(package.json): add 'repository' property to
package.json
- 244aae3f: refactor: ensure type safety for
disabled
&data-disabled
props
- f30c4d17: improve accordion types
- 952396b2: Tree: remove stopPropagation
- da5eed08: Tree: improve arrow key performance
- bb3349ec: Tree: fix initial tabindex
- e5f48244: Tree: refactor tabindex behaviour
- 1e3bb94d: Tree: fix arrow key nav
- ae88900e: Tree: invert logic from collapsed to expanded
- 4dcacd19: Tree: mark args as optional
- 38fd632f: Tree: remove value prop
- e8ca932a: Refactor: remove leftover logs
- 5ef61385: Tree: remove label
- 2c07edcb: ✨ [New builder] Tree View
- 0f00ca50: Adds highlighted store and isHighlighted helper to combobox
- 5a35ad18: add mutation observer to ToC to make it update when headings change and also return the original heading node within the headings list
- 9e15ccd4: Select: fix isSelected function for single option.
- 4991c06d: - Improve handling of custom labels/IDs for select & combo
- 4aa5ee70: Toasts: updateToast helper fn && null closeDelay option
- 113776fa: internal refactors
- a53aa213: Fix: bug preventing menubar triggers from toggling
- 5d41f209: Popover: fix edge-case where multiple menus were appearing on click
- d92db5aa: fix derivedWithUnsubscribe not properly unsubscribing
- 37afdfc8: set package json entry point
- e6fbcbce: Combobox: change inputValue to Writable
- f74ec13d: fix context-menu and menubar typeahead
- 0528b0e1: Dropdown Menu: Add option to enable or disable typeahead
- 6f2063e6: fix slider overrideable
- 2c9ef167: fix: Combobox isSelected function
- 350246dd: Fix: Bug where selecitng an item in a
Select
would close it's parent popover or dialog
- aae6d6e2: Expose isInputValid, addTag, etc to helpers in tags-input
- ff0e0316: Select: fix isSelected
- d15008fd: Combobox: combine value and label into single selected state
- 85254927: Select: combine value and label into single selected state
- b3637384: fix tooltip timers
- 25118ed8: - Fix bug in
Select
where it would intercept form submissions - ede9de82: Internal: Swap custom deepEqual fn with
deep-equal
package - d790d32c: Tag Input: Add JSDoc to
add
,update
andremove
functions
- eedcbb92: Change radio-group item-inputs to single hidden-input
- 0de31f18: remove slider default aria lavel
- 7f4aa574: fix dialog content click closing
- eedcbb92: Fix required attribute in radio-group
- f56e9309: fix(#419) preserve body padding in removeScroll
- 8355263b: fix: bug where dialog would call
handleClose
twice on click outside events
- 8a6cdd76: fix accordion defaultValue
- 41db52bf: fix missing tabindex on radio-group
- afe293bd: fix popover click outside & nested popovers
- 2579257b: fix combobox arrow keys
- b10b2906: refactor menubar internals
- c560cd5b: [Menubar] Hotfix: menubar race conditions
- 77a39a59: fix pin input controlled value
- 908f68ef: Rename Hover Card to Link Preview
- 4d9212fc: Keep Select menu open on select when
multiple
prop istrue
- abcae57d: fix: context menu not closing when clicking on svg element
- 698a22d6: fix combobox controlled reset
- 886ea40b: improve event canceling; replace e.detail.cancel() with e.preventDefault()
- 7ab57673: fix accordion defaultValue
- a5270d8d: Combobox: refactor API to be more declarative
- 9fe1832f: Select: improve valueLabel behaviour
- 13d4cd85: [Context Menu] Fix bug preventing forms from being submitted within the menus
- 0be3520a: [Select] Prevent trigger refocus when using mouse
- 19942427: [Menubar] Fix lag when switching between menus
- 69858eaf: Resolves a bug in select builder when multi-select is active where data-selected and aria-selected were not being set properly
- aba59d25: fix: tag being created/updated even if not valid
- c0c66f0d: [Types] Expose ComponentEvent types
- adcf8853: Improved pin-input backspace behaviour
- b3756704: remove TOC logs
- dbf938bd: change checkbox default value
- 8a673d15: remove preventDefault from radio button item
- 822a0a55: Add TOC
- e46d57c8: feature: Add trim option to input-tags
- 7fd917c1: change tabs autoSet behaviour
- 2ca365c0: - Add
group
andgroupLabel
elements to the Menu builders
- 5ba01f80: feat: Added support for
NodeNext
andBundler
fortsconfig.json
'smoduleResolution
config option
- fbfef15b: Slider: defaultValue no longer required
- 8cc15888: refactor: standardize portal prop
- 270c98e5: fix: outside click not being allowed on dialog
- b1bfc1a3: - Toast
- Change pointerenter behaviour from reset timer to pause timer
- Add getPercentage function to calculate percentage of time remaining
- 6e4b44e7: refactor: menu types
- 2e29832f: [Combobox] Fix type generation issue
- 14bbbef4: Fix portalling issues
- f5bd0768: fix various slider bugs
- 21d19c31: [Dialog] fix: no longer require trigger to open dialog
- b2d33548: refactor: internal menu types
- cba5bb7c: convert controllable returned states from readables to writables
- 714f4b3c: Combobox: add controlled support
- 98e05474: fix: Select & Menu keydowns leaking
- 8218662d: [Select]: Add multiple prop
- c2bca81c: [Slider] - Fix vertical slider arrow behavior
- 3b86f0eb: change accordion type prop to multiple
- f44c54eb: Dialog: Add portalled element
- d2d7c98f: Fix: vertical slider inversion
- 8400a4e5: Replaced the
melt
attribute for theuse:melt
action - ab1ec0bd: New Feature: Controlled Props
- Controlled props give you more control over the state & behavior of the builder components.
- 8e5414c8: [New Feature] Custom Melt Events
- ab1ec0bd: New Feature: Controlled Props
- Controlled props give you more control over the state & behavior of the builder components.
- 8e5414c8: [New Feature] Custom Melt Events
- a3781f7c: fix: Remove
@melt-ui/svelte
alias, add text transform
- 6f521b22: [Hover Card]
- Fix bug where the link/button is unclickable on mobile
- 467a8ff3: Select: fix bug where quick sliding would not set the values to min/max
- 1afcc4b2: Select: add label el store
- 60067d43: Select: fix value controlled usage not setting valueLabel
- 548258cd: Select: rename label to valueLabel
- f94c61ec: Combobox: include for attribute in label
- 714d8e18: fix: tooltip behaviour
- 75ba9c3b: fix: tooltip pointerover now only works with mouse inputs
- 61123724: tooltip: change defaults; improve behaviour consistency
- 7a8c0f05: Tooltip: Change default options; Add trigger/content gap handling; Behaviour changes
- d055b2a5: [Tooltip] Fix a11y attributes & behavior
- c5945220: [Avatar] Fixes bug where the fallback is hidden
- a71ac941: fix: dialog focus-trap
- 2f803ea8: [Combobox]
- Fix Open/Close Flickering
- Returns a
label
element builder
- fix: avatar fallback overriding styles
- 2d1936b0: feat: tooltip touch support
- 902cb5dc: refactor: Internal type-safety & performance changes
- 6f620f0a: fix: clicks misfiring
- 9c81f47e: refactor: rename createToasts to createToaster
- 0f100296: [Checkbox] Unsub checkbox click event
- afa02ae9: use nanonid/non-secure to support more environments
- ef32b32a: [New Builder] Toast
- f25ed135: [Dialog]: Dialog no longer closes on right-click
- 3c7725c3: [Tabs] Force focus on click for buttons in safari
- 55815f04: Slider: invert vertical direction
- 7639d712: Tooltip: prevent focus on mousedown
- b7cfbf13: Select: add a11y roles
- f1e7c64c: Slider: metaKeys to jump to values
- 7d7b18e8: refactor: improved accordion types
- 893535af: [Accordion]
- Add missing aria attributes
- Add
heading
builder to apply aria attributes to non-heading elements used as headings
- c987225b: [Combobox]
- Fix a bug where tabbing from would open it
- Close the menu when tab/shift+tab is pressed
- de855112: Fix: Type issue with
melt
attribute on certain elements
- 151fcc35: [Multiple] Fix radio focus & other left click issues
- b731d118: fix: builders not exposing actions
- 00043ed4: Fixed the
melt
attribute's documentation
- 434cc977: feat: Adds the PP
- 053ea4d5: [Select] Support Page Up and Page Down keyboard navigation. [Combobox] Support Page Up and Page Down keyboard navigation.
- 94861927: [Menus]
- Fix lag between submenus and menubar menus
- Fix the non-chromium browser issue where
data-highlight
would persist after the menu closes and reopens.
- 87612adb: feat: allow focus trap disabling popover
- 1386ff64: feat: popover controlled usage
- ad43dedd: [Menus] fix: dropdown submenu not closing
- 8be65692: [Refactor] Args -> Props
- 476abfc: feat(dialog): support nested dialogs
- 9a28950: fix(combobox): input blur strange behaviour
- 7accc8b: fix(slider): disabled slider no longer prevents scroll
- 7accc8b: refactor(combobox): improve combobox reset behaviour
- 1966f82: fix(slider): only left-click triggers slider
- 8f98478: [Dropdown Menu] Fix dropdown trigger tabindex issue
- bc8a6da: fix collapsible disabled attribute
- 8df24e5: refactor: disable middle & right clicks on Tabs and Radio Group
- 9f78da5: [Menus]: Close Menus on Tab press within submenus
- deb46a9: fix(collapsible): disabled state
- 5c80008: [Menus] Fix submenu typeahead logic
- 4170fc5: Fix tag-input focus
- 0c7008c: fix incomplete builders
- 068b84a: add action to function builders return
- 2fda798: feat: pin-input builder
- dbadcbe: export return types for all builders
- 439ab89: Add Combobox builder
- f54f4a5: label as const
- d11eaab: tags input: edit support
- 973672e: export builder types
- ec1abfe: Use builder wrapper
- 973672e: export data-melt-[part] on builders
- 1266ef6: New Feature: Menubar
- 100eb14: [New Builder] Hover Card
- d108259: fix(toggle-group): focus selected first
-
d031b34: fix/refactor [toolbar]
createToolbarGroup
is no longer a separate import, it is returned from thecreateToolbar
builder function. This is not only a cleaner approach, but also enables us to scope the context of the groups to a given toolbar.<script lang="ts"> import { createToolbar, - createToolbarGroup } from '@melt-ui/svelte'; import { Bold, Italic, Strikethrough, AlignLeft, AlignCenter, AlignRight } from 'icons'; const { root, options, button, link, separator } = createToolbar(); const { root: fontGroup, item: fontItem } = createToolbarGroup({ - toolbarOptions: options, type: 'multiple', }); const { root: alignGroup, item: alignItem } = createToolbarGroup( - { toolbarOptions: options } ); </script>
-
b7c9930: feat: Context Menu
-
d01a759: Select improvements:
- Improved Typeahead support for repeated characters to cycle through elements with that same character.
- Shared typeahead with DropdownMenu & Select
- Added createGroup builder returned from createSelect to assist with creating accessible option groups.
- Updated preview/example
- Add loop option to loop through items
- fbb67de: Rework tags-input
- 379e413: [Dropdown/Context Menus] Update tab & scroll behaviors
- 45ac2b1: [Toggle Group]: Fix tab behavior
- 18c36cb: fix[select]: tab navigation
- 690ad4d: feat: tags input
- 0aa94da: feat: Dropdown Menu
- ae6ecfe: Feat: Avatar builder
- 0dd1ab0: feat: Separator builder
- 2a88d9d: Feat: Label builder
- 7a6e9b4: fix isSelected fn
- 03d1cde: revert id change back to nanoid
- 86a9b3a: feat(select): allow disabling individual options
- 09bb891: refactor: use action builders
- 4a5b1a1: fix(select): changing select value store now automatically changes select label store
- 0b4fe38: feat(toggle): allow disabled state to be changed
- dc17ef5: feat(select): option to set default label; rename selected to value & selectedText to label
- a5d6d37: fix: pagination edge cases
- dc17ef5: fix(select): disabled select trigger no longer opens menu
- 7b07c53: fix: focus trap not working in certain components
- 3df8740: expose options store in tabs
- fb9e489: fix(select): selectedText not being set onMount
- 3df8740: refactor: improve dir detection
- 4d3ab1d: feat: support RTL directions
- 517b1c1: fix: slider not working properly with low values
- 5ff87f6: fix: focusTrap not unsubbing
- bc51681: fix: Adjusts
typeVerisons
map to fix incorrect auto-imported path
- 1cf6fb8: fix toolbar exports
- c0616cc: remove onChange from collapsible
- 600a530: fix slider dragging screen on mobile
- 55754c1: refactor(select): label attr & unknown value
- cefa91e: fix(select): prevent focus on mousedown
- d3aeed2: add toolbar
- eb2afe5: fix slider intercepting document clicks
- 897a45d: feat: add slider
- 9c960cb: refactor: update selectedText to support numbers
- ad4436b: feat: export input el from select refactor: change pagination default perPage to 1
- 2d224d1: fix(slider): correct slider value return; steps functionality on mouse drag
- f63cf06: fix: export pagination
- 6a370c6: fix dialog scroll lock
- 63d6c02: add selected arg to select; add number support to select
- 63d6c02: improve select focus management
- 12c9700: fix: prevent default pagination keydown handler
- 4c481ee: feat: pagination
- c824aa4: improve scroll lock
- f9ec447: add tooltip
- 62f7413: dialog improvements
- 4e27f95: close tooltip on pointer down functionality
- f7dc717: change select trigger to be single derived
- 6f98aa5: add dialog
- fc18981: add select features (typeahead) & refactor internals
- 0f1a1f6: Select: add isSelected and options to returned object; Add HOME and END kbd listeners
- cb1b21c: Adjust browser detection function
- 444f570: feat: popover
- 6fd8efe: update accordion return
- 7971876: use popper action on select
- 1ba6b49: add radio group
- 5c4ed8c: add progress
- 2377592: add switch
- b685910: add toggle group
- c4583cb: add toggle builder
- 2d34b85: Chore: add builder docs