Skip to content

Releases: corvudev/corvu

solid-focus-trap@0.1.1

28 Jan 15:30
solid-focus-trap@0.1.1
49a051d
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies:
    • corvu@0.3

corvu@0.3.0

28 Jan 15:29
corvu@0.3.0
49a051d
Compare
Choose a tag to compare

Minor Changes

  • Add closeOnOutsidePointerStrategy to dialog and use corvu-drawer-* data attributes for drawer components - 629871f (@GiyoMoon)

  • Add allowPinchZoom option to dialog primitive - 5deb1c5 (@GiyoMoon)

Patch Changes

Migration Guide

  • Drawer
    • drawer elements now have data-corvu-drawer-* data attributes instead of data-corvu-dialog-*
    • Text selection is now allowed. You have to disable it yourself if you want to change this behavior.
  • Dialog
    • Renamed onOutsidePointerDown to onOutsidePointer
    • The dialog now closes on pointerup as default. You can use the new closeOnOutsidePointerStrategy property to change it back to pointerdown.
    • Pinch zoom is now allowed per default. You can disable it by passing the allowPinchZoom prop.

corvu@0.2.4

19 Jan 13:12
corvu@0.2.4
aeebc04
Compare
Choose a tag to compare

Patch Changes

@corvu/tailwind@0.1.4

19 Jan 13:11
@corvu/tailwind@0.1.3
aeebc04
Compare
Choose a tag to compare

Patch Changes

corvu@0.2.3

17 Jan 08:01
corvu@0.2.3
32a3d59
Compare
Choose a tag to compare

Patch Changes

  • Correctly use requestAnimationFrame to wait for browser repaint - 5704a0b (@GiyoMoon)

corvu@0.2.2

16 Jan 23:46
corvu@0.2.2
967383f
Compare
Choose a tag to compare

Patch Changes

@corvu/tailwind@0.1.2

16 Jan 23:46
@corvu/tailwind@0.1.2
967383f
Compare
Choose a tag to compare

Patch Changes

v0.2.1

12 Jan 11:14
v0.2.1
e40f3cf
Compare
Choose a tag to compare

Patch Changes

  • Refactor preventScroll to require fewer event listeners and make element optional - 503d816 (@GiyoMoon)

v0.2.0

10 Jan 22:41
v0.2.0
fd23319
Compare
Choose a tag to compare

No new UI primitive yet... But a lot of cool improvements!

New features

  • Completely rewritten the createPreventScroll utility, inspired by react-remove-scroll

It works by preventing events that would lead to scrolling. This is really cool because it prevents scrolling * everywhere * outside of your container element. It's also a much more pleasant experience on iOS, where before it would set the body element to fixed in order to disable scroll which leads to weird issues.

  • Drawer: Optimized the handling of scrollable elements. Check out the examples to see for yourself.
  • Drawer: Option to prevent scrolling on specific elements by giving them the data-corvu-no-drag attribute. See the example

Released createPrevenScroll and createFocusTrap in separate packages:

These are just re-exports but I think that these utilities can benefit the whole Solid ecosystem :)

Migration from 0.1 to 0.2:

  • Dialog
    • Root takes two new optional props: hideScrollbar and preventScrollbarShiftMode
    • Root children function and context provide two new attributes: hideScrollbar and preventScrollbarShiftMode
  • Drawer
    • New data attributes on the content for more specific transitions: data-opening, data-closing, data-snapping
    • Root children function and context provides one new attribute: transitionState
    • Removed scrollThreshold from Root props, Root children function and context as this isn't required anymore. The drawer now handles scrolling a lot better!
  • createDisableScroll
    • Renamed to createPreventScroll
    • Completely rewritten, please refer to the Prevent Scroll Docs on how to use it
  • createDisableScroll
    • defaultValue got renamed to initialValue
  • @corvu/tailwind
    • The tailwind plugin supports three new modifiers that are used by the drawer: opening, closing and snapping

v0.1.2

02 Jan 13:20
v0.1.2
e2c11df
Compare
Choose a tag to compare

Patch Changes