|
1 | 1 | # Unreleased |
2 | 2 |
|
| 3 | +# 4.0.0 |
| 4 | + |
| 5 | +* [Breaking] Complete refactor to take advantage of new Stimulus features, completely rewrite transitions, and more! 🎉 |
| 6 | +* [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. |
| 7 | +* [Breaking] Use `data-action"controller#method:prevent` to call `preventDefault` where needed. Components will no longer prevent default automatically. |
| 8 | +* Transitions now follow the TailwindCSS enter/leave pattern. This is based on the el-transition library. |
| 9 | + ```html |
| 10 | + <div class="hidden whatever default styles" |
| 11 | + data-transition-enter="transition duration-300" |
| 12 | + data-transition-enter-from="opacity-0" |
| 13 | + data-transition-enter-to="opacity-100" |
| 14 | + data-transition-leave="transition duration-300" |
| 15 | + data-transition-leave-from="opacity-100" |
| 16 | + data-transition-leave-to="opacity-0" |
| 17 | + > |
| 18 | + Content fades opacity over 300ms |
| 19 | + </div> |
| 20 | + ``` |
| 21 | + These should be applied to the element that will transition. For example, apply these attributes to the menu element of a Dropdown. |
| 22 | +* Alert transition classes have been moved to the transition API. |
| 23 | +* Autosave now uses `requestSubmit` for submitting the form. |
| 24 | +* Autosave now has configurable submitDuration, statusDuration, submittingText, successText, and errorText. |
| 25 | +* ColorPreview now uses styleValue instead of `data-style` to define which CSS style it applies to (color, backgroundColor, etc). |
| 26 | +* Dropdown transition classes have been moved to the transition API. |
| 27 | +* Modal transition classes have been moved to the transition API. |
| 28 | +* Modals now use a backgroundTarget to customize the background. `backdropColorValue` has been removed since this should be specified on your backdrop instead. |
| 29 | +* Modals now use the `open` value to trigger the opening and closing of the modal. |
| 30 | +* Popover transition classes have been moved to the transition API. |
| 31 | +* Popovers now use `show` and `hide` instead of `mouseOver` and `mouseOut`. |
| 32 | +* Slideovers transition classes have been moved to the transition API. |
| 33 | +* Tabs now use activeTab and inactiveTab Stimulus classes |
| 34 | +* Tabs also store the selected index in the indexValue |
| 35 | +* Tabs can be set to update the URL anchor when a tab is selected using `updateAnchorValue` |
| 36 | +* Toggles now support the transition API. |
| 37 | + |
3 | 38 | # 3.0.1 |
4 | 39 |
|
5 | 40 | * Fix undefined scroll position - @PhilippMeissner |
|
0 commit comments