Skip to content

Releases: rgossiaux/svelte-headlessui

v2.0.0

11 Jun 21:56
Compare
Choose a tag to compare

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, and RadioGroup to use bind:
    • Breaking: renames the events emitted by Transition
    • Now uses <svelte:element> internally

New Contributors

Full Changelog: v1.0.2...v2.0.0

v1.0.2

25 May 21:36
Compare
Choose a tag to compare

Changes

  • Fixes TypeScript errors on attributes like sveltekit:prefetch #95

Full Changelog: v1.0.1...v1.0.2

v1.0.1

16 May 20:32
Compare
Choose a tag to compare

What's Changed

  • Fixed an issue where the as prop on buttons breaks SSR: #94

Full Changelog: v1.0.0...v1.0.1

v1.0.0

06 May 19:27
Compare
Choose a tag to compare

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

07 Mar 08:08
Compare
Choose a tag to compare

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

07 Mar 07:43
Compare
Choose a tag to compare

Changes

  • Initial documentation site #61
  • Dialog: fix initial focus when rendered as static 01954a0
  • Dialog: move portals to the bottom of the body after initial render (primarily affects static Dialogs in environments like the REPL) fada4f2
  • Support TransitionRoot alias for Transition 026b187
  • Do not add a static="true" attribute to HTML elements when using the static prop 3014990

Full Changelog: v1.0.0-beta.10...v1.0.0-beta.11

v1.0.0-beta.10

27 Feb 23:29
Compare
Choose a tag to compare

Changes

Fixes

  • Fix style attribute 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

06 Feb 19:21
Compare
Choose a tag to compare

Changes

New functionality

  • Add support for passing a function to the style prop, similar to class: 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

22 Jan 01:24
Compare
Choose a tag to compare

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 as prop, and their props like class now 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=-1 that SvelteKit adds to the document body.
  • #37: Components now work in environments that do not replace process.env (by running find 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

31 Dec 22:04
Compare
Choose a tag to compare

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
  • Menu:
    • Add open slot prop to <Menu>: 809cf84
  • Dialog:
    • Add open slot prop to <DialogDescription>: a9d5765
  • Tabs:
    • Add selected slot prop to <TabPanel>: e0d64f9
  • RadioGroup:
    • Change active slot prop from integer to boolean: 72b0b83

Full Changelog: v1.0.0-beta.6...v1.0.0-beta.7