Skip to content

Latest commit

 

History

History
1690 lines (911 loc) · 46 KB

CHANGELOG.md

File metadata and controls

1690 lines (911 loc) · 46 KB

@melt-ui/svelte

0.81.0

Minor Changes

  • Mount each floating element into their own portal by default now that stack handling has been improved (#1103)

  • Support all of Floating UI's FlipOptions at positioning.flip (#1203)

Patch Changes

0.80.0

Minor Changes

  • feat(slider): add onValueCommitted callback (#1212)

  • fix: add data-state to select & combobox (closes #1199) (#1200)

  • chore: change peer deps to support svelte 5 (#1207)

0.79.1

Patch Changes

  • Fix: checkbox hiddenInput not calling change events (caae3c01)

0.79.0

Minor Changes

  • Add support for sibling portals (closes #1077, #1153) (#1080)

Patch Changes

  • Fixed a bug where a floating element would not close on outside interaction that opens a new floating element. (closes #1167) (#1080)

0.78.0

Minor Changes

  • Fixed escape keydown behavior by using stacks to correctly handle nested floating elements (#1142)

  • Changed closeOnEscape builder prop to escapeBehavior to provide even further fine-grained control over escape behavior in builders (closes #1142) (#1142)

Patch Changes

  • fix: Modal elements allow others to close again (closes #1177) (7ebc8202)

  • Fixed bug where tooltip would close while the pointer is still inside trigger (closes #886) (#1158)

  • fix: pagination pages when count = 0 (883b1598)

0.77.0

Minor Changes

  • Added new preventTextSelectionOverflow prop to builders to prevent text selection overflowing the floating element. (closes #1168) (#1170)

Patch Changes

  • add as const return to more element builders (Date Field "segment", Menubar "menubar", Scroll Area) (#1172)

  • chore: internal popover refactors (#1055)

  • slider: add disable swapping option to avoid sorting of values array (#1124)

  • chore: refactor menu internals (#1056)

  • Refactor context menu internals (#1054)

0.76.3

Patch Changes

  • fix(link preview): Fixed bug where content shows up at top left of the page after remounting trigger (fixes #1060) (#1053)

  • Fixed bug where focus trap would deactivate on an intercepted outside interaction (closes #1134) (#1135)

  • Fixed bug where focus trap would deactivate on escape that was intercepted (closes #1132) (#1133)

  • Enhanced type accuracy by implementing as const for builder props, ensuring more precise type inference. (#1015)

  • fix data-state consistency to be based on $open and avoid overriding floating-ui styles #1041 (#1042)

  • Fix link preview: reset activeTrigger on trigger unmount (#1129)

  • Fixed a bug where manually closing a dialog or popover would not restore focus to the trigger (closes #1109) (#1110)

  • Refactor focus trap internals (#1136)

  • Fixed bug where outside interactions could not be intercepted (closes #917) (#1114)

0.76.2

Patch Changes

  • Fixed a bug on touch devices where an outside interaction leaked click events to other dom elements (closes #1115) (#1118)

0.76.1

Patch Changes

  • Fixed bug where focus trap deactivates in dialog and popover when clicking outside provided closeOnOutsideClick: false (closes #1084) (#1094)

  • Combobox: menu no longer closes when composing (Closes: #1106) (#1107)

  • Fixed bug where focus trap deactivates in dialog and popover when pressing escape provided closeOnEscape: false (closes #1091) (#1095)

  • Fixed memory leak caused by race conditions for various components (closes #1086) (#1087)

  • performance: avoid effect multiple runs (#1089)

  • Listbox: correct arrowSize JSDoc defaultValue (#1050)

  • Popover: fixed a bug that has the potential to introduce a memory leak via the overlay (#1112)

0.76.0

Minor Changes

  • fix: datepicker not syncing with calendar + add defaults from calendar to datepicker (#1076)

Patch Changes

  • Fix incorrect arrow position for Tooltip, Popover, Listbox, Link Preview provided forceVisible: false (closes #1048) (#1049)

  • fix: months not updating when changing options (#1070)

  • Floating: data-side & data-align for floating content (#1082)

  • fix: months not updating when changing options (range calendar) (#1072)

0.75.3

Patch Changes

  • fix(Tooltip, Link Preview, Menu, Popover, Listbox) fixed bug where content jumps to top left of page during external unmounting when using out transition on the content and else if block to render the content (closes #1058, #1039) (#1059)

  • Portalled Elements: fixed a bug where clicking inside a nested 'portalled' element would cause the parent to close (#1066)

0.75.2

Patch Changes

  • Scroll Area: fixed bug with type: 'hover' scrollbars always showing on hover even if content not overflowing (#1046)

  • Scroll Area: fixed bug with scrollbarX styles (#1046)

0.75.1

Patch Changes

  • Scroll Area: export types (#1044)

0.75.0

Minor Changes

  • Popover: add optional overlay element builder for simplified modal behavior (part of #1018) (#1025)

  • Menus: add overlay element (#1035)

  • New Builder: Scroll Area (#908)

Patch Changes

  • Range Calendar/Picker: fixed bug preventing a range with the same start and end date (Closes #898) (#1037)

  • Tooltip: fixed bug where tooltip content style gets reset when forceVisible is true and $open gets updated #1010 (#1011)

  • Calendars: ensure dates use the same calendar as the reference value (#1026)

0.74.4

Patch Changes

  • Listbox: fixed bug preventing programmatic opening (Closes #1014) (#1020)

  • fix(Calendar/Range Calendar): use 'button' for button elements' type (#1003)

  • fixed issues with portals and outside interactions (Closes #992) (#1018)

  • Listbox: fixed bug causing multiple change function curr and next always being equal (Closes #1019) (#1021)

  • Fixed bug where on outside interaction in several components (popover, menu, link preview, tooltip, listbox), on component unmount, the content jumps during out transition if content was mounted in an else if block (closes #1005) (#1006)

0.74.3

Patch Changes

  • Revert regressions caused by PRs #977 and #995 (#1016)

  • Toolbar: set correct tabindex for buttons and links (#1004)

0.74.2

Patch Changes

  • Fix custom portal issues (#995)

  • Dialog: fixed interact outside pointerup/mouseup issue where the dialog would close if you clicked and dragged outside of the dialog before releasing the press (Closes: #750) (#994)

  • Toggle Group: fixed bug where single groups wouldn't focus (Closes #810) (#990)

0.74.1

Patch Changes

  • Date Picker/Date Range Picker: disable trigger when picker is disabled (Closes #815) (#989)

  • Toast: return close element type attribute type as "button" instead of string (#993)

  • ToggleGroup: Fixes curr & next always bbeing the same value (#983)

0.74.0

Minor Changes

  • Dialog: change data-state conditions (0c7bf6df)

Patch Changes

0.73.0

Minor Changes

  • Add element type & emptyMeltElement (closes #855) (#966)

0.72.0

Minor Changes

  • Hidden Input: Dispatch change events (closes #690) (#962)

Patch Changes

  • Standardize hidden inputs (closes #249) (#962)

0.71.3

Patch Changes

  • Tooltip: fixed a bug where the content would remain open when scrolling outside (Closed: #945) (#955)

0.71.2

Patch Changes

  • fix: improve dialog outside clicks/interactions (#883)

  • Menus: fix performance issues when many menus are used on the same page (closes: #919) (#923)

  • Update internal import references to be compatible with ESM (#910)

0.71.1

Patch Changes

  • fix: type of type in tabs builder (#937)

0.71.0

Minor Changes

  • Internal: withGet helper, increasing performance (51ce34d5)

Patch Changes

  • Table of Contents: fix smooth scroll and scroll offset (fixes #920) (#860)

  • Select: add type="button" to listbox trigger (closes: #710) (#900)

  • Slider: Fix thumbs Array Type (#911)

  • Date/Range Field: fix: bug preventing 00 as value for minute and second segments (closes: #854) (#893)

0.70.0

Minor Changes

  • Slider: Refactor thumb and tick (#849)

  • Combobox: add group and groupLabel elements (closes: #831) (#891)

0.69.0

Minor Changes

  • Feature: createSync utility (f018010f)

0.68.0

Minor Changes

  • Menubar: Add preventScroll prop. Removes it from the returned createMenu builders (closes #821) (#882)

Patch Changes

  • Radio Group: fix keyboard navigation when disabled (closes #820) (#884)

  • fix: missing tooltip data-attrs (#889)

  • DateField & DateRangeField: add readonlySegments prop (#846)

  • chore: upgrade nanoid to v5 (#851)

  • Fix(calendar): extraDays array should add days starting from 1 (#869)

  • fix(menu): focus on the trigger when rootActiveTrigger is defined (#871)

  • Progress: allow null value for indeterminate state (#870)

0.67.0

Minor Changes

  • feat: expose onOutsideClick handler (#863)

0.66.4

Patch Changes

  • Toast: return aria-live type as 'assertive' | 'polite' (#859)

  • Tags Input: Fix addOnPaste (closes #830) (#847)

  • escape-keydown: remove capture listener (fixes #842) (#845)

  • Combobox: change default Value props type (835c285a)

0.66.3

Patch Changes

  • Menu: fix default active subtrigger (84270042)

0.66.2

Patch Changes

  • Datepicker: fix types (closes #838) (#839)

  • Collapsible: remove leftover log (31119cce)

  • Types: fix wrong builder return type for functions (#844)

0.66.1

Patch Changes

  • Menu: Fix open.set not opening menu (fixes #813) (26e41134)

  • Slider: remove aria-disabled from root (#825)

  • Select & Combobox: Fix focus preventing parents to close on escape (fixes #739) (c401f6ff)

0.66.0

Minor Changes

  • Slider: RTL support (#791)

Patch Changes

  • Checkbox: add disabled prop to button that wraps input (#819)

0.65.2

Patch Changes

  • 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)

0.65.1

Patch Changes

  • Select & Combobox: Fix removeScroll bugs (closes #733 & #808) (#809)

0.65.0

Minor Changes

  • Menu: closeOnItemClick prop (ff6169ef)

0.64.5

Patch Changes

  • enhancement: return startValue & endValue from range calendar (#801)

0.64.4

Patch Changes

  • Calendar/Range Calendar: apply data-selected attribute to outside-month days if selected (#799)

0.64.3

Patch Changes

  • Dropdown Menu, Context Menu, Menubar: export the createMenuCheckboxItem return type (#796)

0.64.2

Patch Changes

  • 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)

0.64.1

Patch Changes

  • fix: bug with range calendar onValueChange (#792)

0.64.0

Minor Changes

    • Calendars & Date Pickers: rename daysOfWeek to weekdays and add weekdayFormat prop (closes #782) (#784)

Patch Changes

  • Calendar: Fix bug where keyboard navigation would allow navigating to disabled months (closes #745) (#748)

  • fix: ids prop is not Partial (#757)

  • fix: bug causing custom ids to not always be applied (#786)

  • Date Picker & Date Range Picker: Fix weekdayFormat option reactivity (#785)

0.63.1

Patch Changes

  • Calendars: remove unnecessary cell attributes in favor of melt attribute (#778)

  • Dialog: remove aria-controls and add aria-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)

0.63.0

Minor Changes

  • Slider: Add data-value attribute to thumb and tick (60312ee9)

Patch Changes

  • Popover: Fix trigger not toggling the open state (closes #763) (#765)

  • Fix: aria-disabled attr types (closes #764) (#766)

0.62.1

Patch Changes

0.62.0

Minor Changes

  • TOC: Add hash to URl when clicking item (closes #592) (7d6f4e84)

Patch Changes

  • Slider: fix leaks (1b74c44e)

  • Slider: improve onChange handling (closes #521) (1b74c44e)

0.61.3

Patch Changes

  • Dialog: closes #452 (f2e4fdbf)

  • Slider: improve scroll handling (closes #74) (6a23b0a1)

  • Popover: fix page jump in Safari (closes #198) (5e30e42f)

0.61.2

Patch Changes

  • 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)

0.61.1

Patch Changes

  • Fix: Days of week not updating with locale (#722)

0.61.0

Minor Changes

    • 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

0.60.2

Patch Changes

  • Fix: Menubar Menu bring your own id (#716)

0.60.1

Patch Changes

  • Fix: Dialog layout shift when using svelte transitions (#706)

0.60.0

Minor Changes

0.59.1

Patch Changes

  • Fix: prevent safari from minimizing when esc on dialogs (#705)

  • fix: context menu id issues (#707)

0.59.0

Minor Changes

0.58.2

Patch Changes

  • fix: timing issue with handleFocus (#693)

0.58.1

Patch Changes

  • Slider: fix overstep (#659)

  • Slider: fix precision issues (cbe8c3a4)

0.58.0

Minor Changes

  • Feat: ability to override internal ids via a prop (#683)

0.57.3

Patch Changes

  • Dialog: improve trigger focus' (257deb36)

0.57.2

Patch Changes

  • Menu: add controlled submenu props (#676) Listbox: Respect closeOnEscape

0.57.1

Patch Changes

  • Menus: Return Ids (#674)

0.57.0

Minor Changes

  • Combobox & Select: highlightOnHover option (#671)

0.56.0

Minor Changes

  • Add openFocus & closeFocus props for controlled focus (#663)

0.55.4

Patch Changes

  • 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 attribute depending on type of toggle group (#645)

0.55.3

Patch Changes

  • Combobox: allow contenteditable (#633)

0.55.2

Patch Changes

  • Dialog: Fix touch event passing through overlay (9bf81b3b)

0.55.1

Patch Changes

  • The melt action now throws a helpful error if it's used without our preprocessor (#616)

0.55.0

Minor Changes

  • Select: use listbox builder (#613)

  • Combobox: Use listbox builder (#613)

  • Add new internal builder listbox (#613)

0.54.1

Patch Changes

  • Combobox: fix highlightedItem behaviour (36d7526c)

0.54.0

Minor Changes

  • Combobox: add hiddenInput element; refactor behaviours (a73b82c6)

Patch Changes

  • Select: rename input to hiddenInput (4c53736c)

0.53.0

Minor Changes

  • Feat: Allow opting-out of floating UI (1614f12c)

0.52.0

Minor Changes

  • return an ids object from builders which contains the ids Melt applies to certain elements internally (#591)

Patch Changes

  • 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)

0.51.1

Patch Changes

  • Select: Fix defaultSelected clash when multiple is true (d0a1d4c8)

  • Combobox: Fix defaultSelected clash when multiple is true (633bacf0)

0.51.0

Minor Changes

  • Tooltip: Add group prop (#575)

Patch Changes

  • 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)

0.50.1

Patch Changes

  • Select: Fix selected prop type (#539)

  • Pin Input: bind $valueStr store to hiddenInput of pin-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)

0.50.0

Minor Changes

  • Combobox: Add multiple option (#533)

  • Slider: add ticks (#534)

Patch Changes

  • Select: fix deep equality on isSelected (ad02e18f)

0.49.1

Patch Changes

  • ca04a433: Combobox: Pressing enter no longer submits form

0.49.0

Minor Changes

  • 4da1aa73: Combobox: Refactor API, allowing for a more general use case.
    • Discarded isEmpty, filterFunction & debounce.
    • Added touchedInput state

0.48.0

Minor Changes

  • 82d37a43: Tooltip: Add disableHoverableContent prop

Patch Changes

  • c472cf1d: chore(package.json): add 'repository' property to package.json
  • 244aae3f: refactor: ensure type safety for disabled & data-disabled props

0.47.6

Patch Changes

  • f30c4d17: improve accordion types

0.47.5

Patch Changes

  • 952396b2: Tree: remove stopPropagation

0.47.4

Patch Changes

  • da5eed08: Tree: improve arrow key performance

0.47.3

Patch Changes

  • bb3349ec: Tree: fix initial tabindex

0.47.2

Patch Changes

  • e5f48244: Tree: refactor tabindex behaviour

0.47.1

Patch Changes

  • 1e3bb94d: Tree: fix arrow key nav

0.47.0

Minor Changes

  • ae88900e: Tree: invert logic from collapsed to expanded

Patch Changes

  • 4dcacd19: Tree: mark args as optional

0.46.0

Minor Changes

  • 38fd632f: Tree: remove value prop

0.45.1

Patch Changes

  • e8ca932a: Refactor: remove leftover logs

0.45.0

Minor Changes

  • 5ef61385: Tree: remove label

0.44.0

Minor Changes

  • 2c07edcb: ✨ [New builder] Tree View

0.43.0

Minor Changes

  • 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

Patch Changes

  • 9e15ccd4: Select: fix isSelected function for single option.
  • 4991c06d: - Improve handling of custom labels/IDs for select & combo

0.42.0

Minor Changes

  • 4aa5ee70: Toasts: updateToast helper fn && null closeDelay option

Patch Changes

  • 113776fa: internal refactors
  • a53aa213: Fix: bug preventing menubar triggers from toggling

0.41.3

Patch Changes

  • 5d41f209: Popover: fix edge-case where multiple menus were appearing on click

0.41.2

Patch Changes

  • d92db5aa: fix derivedWithUnsubscribe not properly unsubscribing

0.41.1

Patch Changes

  • 37afdfc8: set package json entry point

0.41.0

Minor Changes

  • e6fbcbce: Combobox: change inputValue to Writable

Patch Changes

  • f74ec13d: fix context-menu and menubar typeahead

0.40.0

Minor Changes

  • 0528b0e1: Dropdown Menu: Add option to enable or disable typeahead

0.39.5

Patch Changes

  • 6f2063e6: fix slider overrideable

0.39.4

Patch Changes

  • 2c9ef167: fix: Combobox isSelected function

0.39.3

Patch Changes

  • 350246dd: Fix: Bug where selecitng an item in a Select would close it's parent popover or dialog

0.39.2

Patch Changes

  • aae6d6e2: Expose isInputValid, addTag, etc to helpers in tags-input

0.39.1

Patch Changes

  • ff0e0316: Select: fix isSelected

0.39.0

Minor Changes

  • d15008fd: Combobox: combine value and label into single selected state
  • 85254927: Select: combine value and label into single selected state

Patch Changes

  • b3637384: fix tooltip timers

0.38.1

Patch Changes

  • 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 and remove functions

0.38.0

Minor Changes

  • eedcbb92: Change radio-group item-inputs to single hidden-input

Patch Changes

  • 0de31f18: remove slider default aria lavel
  • 7f4aa574: fix dialog content click closing
  • eedcbb92: Fix required attribute in radio-group

0.37.6

Patch Changes

  • f56e9309: fix(#419) preserve body padding in removeScroll
  • 8355263b: fix: bug where dialog would call handleClose twice on click outside events

0.37.5

Patch Changes

  • 8a6cdd76: fix accordion defaultValue

0.37.4

Patch Changes

  • 41db52bf: fix missing tabindex on radio-group
  • afe293bd: fix popover click outside & nested popovers

0.37.3

Patch Changes

  • 2579257b: fix combobox arrow keys

0.37.2

Patch Changes

  • b10b2906: refactor menubar internals

0.37.1

Patch Changes

  • c560cd5b: [Menubar] Hotfix: menubar race conditions

0.37.0

Minor Changes

  • 77a39a59: fix pin input controlled value
  • 908f68ef: Rename Hover Card to Link Preview

Patch Changes

  • 4d9212fc: Keep Select menu open on select when multiple prop is true
  • abcae57d: fix: context menu not closing when clicking on svg element
  • 698a22d6: fix combobox controlled reset

0.36.0

Minor Changes

  • 886ea40b: improve event canceling; replace e.detail.cancel() with e.preventDefault()

0.35.1

Patch Changes

  • 7ab57673: fix accordion defaultValue

0.35.0

Minor Changes

  • a5270d8d: Combobox: refactor API to be more declarative

Patch Changes

  • 9fe1832f: Select: improve valueLabel behaviour

0.34.6

Patch Changes

  • 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

0.34.5

Patch Changes

  • 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

0.34.4

Patch Changes

  • c0c66f0d: [Types] Expose ComponentEvent types

0.34.3

Patch Changes

  • adcf8853: Improved pin-input backspace behaviour

0.34.2

Patch Changes

  • b3756704: remove TOC logs
  • dbf938bd: change checkbox default value

0.34.1

Patch Changes

  • 8a673d15: remove preventDefault from radio button item

0.34.0

Minor Changes

  • 822a0a55: Add TOC

Patch Changes

  • e46d57c8: feature: Add trim option to input-tags

0.33.1

Patch Changes

  • 7fd917c1: change tabs autoSet behaviour
  • 2ca365c0: - Add group and groupLabel elements to the Menu builders

0.33.0

Minor Changes

  • 5ba01f80: feat: Added support for NodeNext and Bundler for tsconfig.json's moduleResolution config option

0.32.2

Patch Changes

  • fbfef15b: Slider: defaultValue no longer required
  • 8cc15888: refactor: standardize portal prop

0.32.1

Patch Changes

  • 270c98e5: fix: outside click not being allowed on dialog

0.32.0

Minor Changes

  • b1bfc1a3: - Toast
    • Change pointerenter behaviour from reset timer to pause timer
    • Add getPercentage function to calculate percentage of time remaining

Patch Changes

  • 6e4b44e7: refactor: menu types

0.31.3

Patch Changes

  • 2e29832f: [Combobox] Fix type generation issue

0.31.2

Patch Changes

  • 14bbbef4: Fix portalling issues

0.31.1

Patch Changes

  • f5bd0768: fix various slider bugs
  • 21d19c31: [Dialog] fix: no longer require trigger to open dialog
  • b2d33548: refactor: internal menu types

0.31.0

Minor Changes

  • cba5bb7c: convert controllable returned states from readables to writables
  • 714f4b3c: Combobox: add controlled support

0.30.1

Patch Changes

  • 98e05474: fix: Select & Menu keydowns leaking

0.30.0

Minor Changes

  • 8218662d: [Select]: Add multiple prop

Patch Changes

  • c2bca81c: [Slider] - Fix vertical slider arrow behavior
  • 3b86f0eb: change accordion type prop to multiple

0.29.0 - The Big Bad

Release Notes

Minor Changes

  • f44c54eb: Dialog: Add portalled element

Patch Changes

  • d2d7c98f: Fix: vertical slider inversion

0.28.0

Minor Changes

  • 8400a4e5: Replaced the melt attribute for the use: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

0.28.0-next.0

Minor Changes

  • 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

0.27.3

Patch Changes

  • a3781f7c: fix: Remove @melt-ui/svelte alias, add text transform

0.27.2

Patch Changes

  • 6f521b22: [Hover Card]
    • Fix bug where the link/button is unclickable on mobile

0.27.1

Patch Changes

  • 467a8ff3: Select: fix bug where quick sliding would not set the values to min/max

0.27.0

Minor Changes

  • 1afcc4b2: Select: add label el store

Patch Changes

  • 60067d43: Select: fix value controlled usage not setting valueLabel
  • 548258cd: Select: rename label to valueLabel
  • f94c61ec: Combobox: include for attribute in label

0.26.3

Patch Changes

  • 714d8e18: fix: tooltip behaviour

0.26.2

Patch Changes

  • 75ba9c3b: fix: tooltip pointerover now only works with mouse inputs

0.26.1

Patch Changes

  • 61123724: tooltip: change defaults; improve behaviour consistency

0.26.0

Minor Changes

  • 7a8c0f05: Tooltip: Change default options; Add trigger/content gap handling; Behaviour changes

Patch 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

0.25.1

Patch Changes

  • fix: avatar fallback overriding styles

0.25.0

Minor Changes

  • 2d1936b0: feat: tooltip touch support

Patch Changes

  • 902cb5dc: refactor: Internal type-safety & performance changes
  • 6f620f0a: fix: clicks misfiring
  • 9c81f47e: refactor: rename createToasts to createToaster

0.24.1

Patch Changes

  • 0f100296: [Checkbox] Unsub checkbox click event
  • afa02ae9: use nanonid/non-secure to support more environments

0.24.0

Minor Changes

  • ef32b32a: [New Builder] Toast

Patch Changes

  • f25ed135: [Dialog]: Dialog no longer closes on right-click

0.23.2

Patch Changes

  • 3c7725c3: [Tabs] Force focus on click for buttons in safari

0.23.1

Patch Changes

  • 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

0.23.0

Minor Changes

  • 893535af: [Accordion]
    • Add missing aria attributes
    • Add heading builder to apply aria attributes to non-heading elements used as headings

Patch Changes

  • 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

0.22.2

Patch Changes

  • 151fcc35: [Multiple] Fix radio focus & other left click issues
  • b731d118: fix: builders not exposing actions

0.22.1

Patch Changes

  • 00043ed4: Fixed the melt attribute's documentation

0.22.0

Minor Changes

  • 434cc977: feat: Adds the PP

0.21.0

Minor Changes

  • 053ea4d5: [Select] Support Page Up and Page Down keyboard navigation. [Combobox] Support Page Up and Page Down keyboard navigation.

Patch Changes

  • 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.

0.20.0

Minor Changes

  • 87612adb: feat: allow focus trap disabling popover

0.19.1

Patch Changes

  • 1386ff64: feat: popover controlled usage
  • ad43dedd: [Menus] fix: dropdown submenu not closing
  • 8be65692: [Refactor] Args -> Props

0.19.0

Minor Changes

  • 476abfc: feat(dialog): support nested dialogs

0.18.4

Patch Changes

  • 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

0.18.3

Patch Changes

  • 9f78da5: [Menus]: Close Menus on Tab press within submenus
  • deb46a9: fix(collapsible): disabled state
  • 5c80008: [Menus] Fix submenu typeahead logic

0.18.2

Patch Changes

  • 4170fc5: Fix tag-input focus
  • 0c7008c: fix incomplete builders

0.18.1

Patch Changes

  • 068b84a: add action to function builders return

0.18.0

Minor Changes

  • 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

Patch Changes

  • 973672e: export builder types
  • ec1abfe: Use builder wrapper
  • 973672e: export data-melt-[part] on builders

0.17.0

Minor Changes

  • 1266ef6: New Feature: Menubar
  • 100eb14: [New Builder] Hover Card

Patch Changes

  • d108259: fix(toggle-group): focus selected first

0.16.0

Minor Changes

  • d031b34: fix/refactor [toolbar]

    BREAKING CHANGE:

    createToolbarGroup is no longer a separate import, it is returned from the createToolbar 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

Patch Changes

  • fbb67de: Rework tags-input
  • 379e413: [Dropdown/Context Menus] Update tab & scroll behaviors
  • 45ac2b1: [Toggle Group]: Fix tab behavior
  • 18c36cb: fix[select]: tab navigation

0.15.0

Minor Changes

  • 690ad4d: feat: tags input
  • 0aa94da: feat: Dropdown Menu

0.14.0

Minor Changes

  • ae6ecfe: Feat: Avatar builder
  • 0dd1ab0: feat: Separator builder
  • 2a88d9d: Feat: Label builder

0.13.1

Patch Changes

  • 7a6e9b4: fix isSelected fn
  • 03d1cde: revert id change back to nanoid

0.13.0

Minor Changes

  • 86a9b3a: feat(select): allow disabling individual options
  • 09bb891: refactor: use action builders

Patch Changes

  • 4a5b1a1: fix(select): changing select value store now automatically changes select label store
  • 0b4fe38: feat(toggle): allow disabled state to be changed

0.12.0

Minor Changes

  • dc17ef5: feat(select): option to set default label; rename selected to value & selectedText to label

Patch Changes

  • a5d6d37: fix: pagination edge cases
  • dc17ef5: fix(select): disabled select trigger no longer opens menu

0.11.1

Patch Changes

  • 7b07c53: fix: focus trap not working in certain components

0.11.0

Minor Changes

  • 3df8740: expose options store in tabs

Patch Changes

  • fb9e489: fix(select): selectedText not being set onMount
  • 3df8740: refactor: improve dir detection
  • 4d3ab1d: feat: support RTL directions

0.10.3

Patch Changes

  • 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

0.10.2

Patch Changes

  • 1cf6fb8: fix toolbar exports

0.10.1

Patch Changes

  • 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

0.10.0

Minor Changes

  • d3aeed2: add toolbar

Patch Changes

  • eb2afe5: fix slider intercepting document clicks

0.9.0

Minor Changes

  • 897a45d: feat: add slider

Patch Changes

  • 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

0.8.3

Patch Changes

  • f63cf06: fix: export pagination

0.8.2

Patch Changes

  • 6a370c6: fix dialog scroll lock
  • 63d6c02: add selected arg to select; add number support to select
  • 63d6c02: improve select focus management

0.8.1

Patch Changes

  • 12c9700: fix: prevent default pagination keydown handler

0.8.0

Minor Changes

  • 4c481ee: feat: pagination

0.7.1

Patch Changes

  • c824aa4: improve scroll lock

0.7.0

Minor Changes

  • f9ec447: add tooltip

Patch Changes

  • 62f7413: dialog improvements
  • 4e27f95: close tooltip on pointer down functionality

0.6.0

Minor Changes

  • f7dc717: change select trigger to be single derived
  • 6f98aa5: add dialog

0.5.0

Minor Changes

  • fc18981: add select features (typeahead) & refactor internals
  • 0f1a1f6: Select: add isSelected and options to returned object; Add HOME and END kbd listeners

Patch Changes

  • cb1b21c: Adjust browser detection function

0.4.0

Minor Changes

  • 444f570: feat: popover
  • 6fd8efe: update accordion return

Patch Changes

  • 7971876: use popper action on select

0.3.0

Minor Changes

  • 1ba6b49: add radio group
  • 5c4ed8c: add progress

0.2.0

Minor Changes

  • 2377592: add switch
  • b685910: add toggle group

0.1.0

Minor Changes

  • c4583cb: add toggle builder

0.0.2

Patch Changes

  • 2d34b85: Chore: add builder docs