Releases: rgossiaux/svelte-headlessui
v2.0.0
What's Changed
- Remove TestRenderer from Dialog and Disclosure tests by @davepar in #101
- Fix Typo "PopverPanel" in Popover by @safwanolaimat in #144
- Error when styling tabs using Docs example by @VitroidFPV in #100
- Version 2.0 by @rgossiaux in #96
- Breaking: changes component API for
Listbox,Switch, andRadioGroupto usebind: - Breaking: renames the events emitted by
Transition - Now uses
<svelte:element>internally
- Breaking: changes component API for
New Contributors
- @davepar made their first contribution in #101
- @safwanolaimat made their first contribution in #144
- @VitroidFPV made their first contribution in #100
Full Changelog: v1.0.2...v2.0.0
v1.0.2
v1.0.1
v1.0.0
What's Changed
- Improve TypeScript support + JSDoc in #81
- Far smaller bundle sizes (40% ish) by switching away from using individual components for different HTML elements to an if statement, in 8bc5fab
- In a future release this will be replaced with
<svelte:element>
- In a future release this will be replaced with
- Fixed LICENSE formatting in b24ce31
It was high time to release this as 1.0.0 as it already has a lot of adoption and dealing with prelease versions is annoying. Future releases will use proper semantic versioning.
Full Changelog: v1.0.0-beta.12...v1.0.0
v1.0.0-beta.12
Changes
This is a hotfix release to v1.0.0-beta.11
- Fix moving the portal root to the bottom of the page after initial render: 39a8b57
Full Changelog: v1.0.0-beta.11...v1.0.0-beta.12
v1.0.0-beta.11
Changes
- Initial documentation site #61
- Dialog: fix initial focus when rendered as
static01954a0 - Dialog: move portals to the bottom of the body after initial render (primarily affects
staticDialogs in environments like the REPL) fada4f2 - Support
TransitionRootalias forTransition026b187 - Do not add a
static="true"attribute to HTML elements when using thestaticprop 3014990
Full Changelog: v1.0.0-beta.10...v1.0.0-beta.11
v1.0.0-beta.10
Changes
Fixes
- Fix
styleattribute being wiped away incorrectly: 87aadf2 - Fix portals not being cleaned up correctly in some cases: b18fd20
Full Changelog: v1.0.0-beta.9...v1.0.0-beta.10
v1.0.0-beta.9
Changes
New functionality
- Add support for passing a function to the
styleprop, similar toclass: 495fa64
Fixes
- Add/improve slot props with Label and Description components: cdc0d86
- Add typing for dispatched events: bfc6857
Full Changelog: v1.0.0-beta.8...v1.0.0-beta.9
v1.0.0-beta.8
Changes
This is a bugfix release.
- #31: Slot props no longer show as not defined in TypeScript, following a fix to svelte2tsx
- #33: Labels now respect the
asprop, and their props likeclassnow react to changes. - #35: Typeahead now follows WAI-ARIA when typing repeated characters. To be a good citizen, reported this upstream as well: tailwindlabs/headlessui#1046
- #36 and #39: Fixed focus issues in SvelteKit due to the
tabIndex=-1that SvelteKit adds to the document body. - #37: Components now work in environments that do not replace
process.env(by runningfind package/ -type f -exec sed -i '' -e 's/process.env.NODE_ENV/"production"/' {} \;before release)
Full Changelog: v1.0.0-beta.7...v1.0.0-beta.8
v1.0.0-beta.7
Changes
This release exposes the Portal component, following upstream Headless UI, which is used internally for Dialogs. While there is no documentation for it upstream, I'll likely document it here.
This is the last bugfix release planned before 1.0.0, which will include documentation.
- Handle adding items dynamically inside rendered components, for Listbox, Menu, Radio Group, and Tabs: e16e27f
- Upstream handles this for Radio Group but not for the others, though people have filed a bug for Menu: tailwindlabs/headlessui#994
- Menu:
- Add
openslot prop to<Menu>: 809cf84
- Add
- Dialog:
- Add
openslot prop to<DialogDescription>: a9d5765
- Add
- Tabs:
- Add
selectedslot prop to<TabPanel>: e0d64f9
- Add
- RadioGroup:
- Change
activeslot prop from integer to boolean: 72b0b83
- Change
Full Changelog: v1.0.0-beta.6...v1.0.0-beta.7