- Fix transition bug
- Fix release
- Refactor transitions
- Fix bugs
- Add
show
andhide
to slideover controller for backwards compatibility - Add
hide
to modal controller as an alias forclose
- [Breaking] Slideover's now use
<dialog>
element and no longer inherit from the Dropdown controller Slideovers and modals examples now use CSS Animations to work better with the<dialog>
element since it changes fromdisplay: none
todisplay: block
and that property is currently not transition-able (but will hopefully be in the future). - [Breaking] Revert automatic addition of data-attributes on
dropdown
controller. While it did simplify the HTML, it made it too hard to customize. - Scroll active tab into view is now off by default to prevent messing with page load
- Use
<dialog>
element for modals. This greatly simplifies the HTML and JavaScript required and is much easier to use now that browser support is strong. - Set
aria-selected="true"
on tabs
- Add
toggleInput
to toggle to sync with input checkbox or radio state
- Fix transitions by removing any end classes before beginning.
For example, let's say you have a modal backdrop of
bg-opacity-80
initially and your transition starts withbg-opacity-0
and ends withbg-opacity-80
. Previously, this would start the transition withbg-opacity-80 bg-opacity-0
and not remove the initial class. This would seem to not transition because of CSS ordering wherebg-opacity-80
might always take precedence. By removing the end classes at the beginning of the transition, we can ensure that conflicting classes do not cause problems with the transition. - Unlock browser scroll after modal transitions instead of before. This fixes an issue where the modal gets bumped left during the leave transition.
- Fix modal scroll position when opening
- Only animate toggle when an action happens (not on connect)
- Tabs index now selects panels and no longer requires tabs
- Add closeTarget to Slideover
- [Breaking] Complete refactor to take advantage of new Stimulus features, completely rewrite transitions, and more! 🎉
- [Breaking] The main export is now cjs format and the module export is esm. We've dropped other formats as part of the move to esbuild.
- [Breaking] Use
data-action"controller#method:prevent
to callpreventDefault
where needed. Components will no longer prevent default automatically. - Transitions now follow the TailwindCSS enter/leave pattern. This is based on the el-transition library.
These should be applied to the element that will transition. For example, apply these attributes to the menu element of a Dropdown.
<div class="hidden whatever default styles" data-transition-enter="transition duration-300" data-transition-enter-from="opacity-0" data-transition-enter-to="opacity-100" data-transition-leave="transition duration-300" data-transition-leave-from="opacity-100" data-transition-leave-to="opacity-0" > Content fades opacity over 300ms </div>
- Alert transition classes have been moved to the transition API.
- Autosave now uses
requestSubmit
for submitting the form. - Autosave now has configurable submitDuration, statusDuration, submittingText, successText, and errorText.
- ColorPreview now uses styleValue instead of
data-style
to define which CSS style it applies to (color, backgroundColor, etc). - Dropdown transition classes have been moved to the transition API.
- Modal transition classes have been moved to the transition API.
- Modals now use a backgroundTarget to customize the background.
backdropColorValue
has been removed since this should be specified on your backdrop instead. - Modals now use the
open
value to trigger the opening and closing of the modal. - Popover transition classes have been moved to the transition API.
- Popovers now use
show
andhide
instead ofmouseOver
andmouseOut
. - Slideovers transition classes have been moved to the transition API.
- Tabs now use activeTab and inactiveTab Stimulus classes
- Tabs also store the selected index in the indexValue
- Tabs can be set to update the URL anchor when a tab is selected using
updateAnchorValue
- Toggles now support the transition API.
- Fix undefined scroll position - @PhilippMeissner
- Change package exports - @excid3
- Change Stimulus dependency to
@hotwired/stimulus
- @excid3
- [NEW] Add
dismissAfter
option for Alerts to auto-dismiss - @excid3
- [NEW] Added a color picker preview - @nickjj
- [NEW]
hide
andshow
methods for toggle - @A7madXatab #71
- [FIX] Allow button to be focused and toggle dropdown with space/enter - @drnic #59
- [FIX] Fix pointer events when alerts are visible - @inopinatus
- [FIX] Fix dropdowns open on page load - @julianrubisch
- [NEW] Updated Stimulus JS requirement to 2.0
- [NEW] Test suite has been added
- [FIX] Add default value so enterTimeout & leaveTimeout don't break - @excid3
- [NEW] Add slideover component - @julianrubisch
- [NEW] Add animations for dropdown menu - @julianrubisch
- [NEW] Add active class to dropdown component - @williamkennedy
- [NEW] Add Alert component @esmale
- [NEW] Use
data-id
ontabs.change
element if specified
- [NEW] Use
data-index
ontabs.change
element if specified
- Revert 2.0.4, microbundle's --external option didn't work as expected
- Change to specify external stimulus dependency instead of global since we're using peerDependencies
- [Fix] Build UMD module with access to global Stimulus
- [New] Add option to prevent or allow the default event when using the modal. @brunnogomes
- [Fix] Only set active tab using anchor if anchor is present
- [New] Move Stimulus.js to a peerDependency to reduce bundle size. @adrienpoly
- [New] Automatically select the visible tab based upon the anchor in the URL and the ID on the tabs
- [Fix] Close modal on disconnect. Fixes issues with Turbolinks caching the open modal.
- Initial release