@react-md/transition
Advanced tools
Changelog
3.0.0 (2021-08-13)
This release should be relatively simple for most consumers of this library since the main breaking change is dropping support for node-sass
and requiring sass
since node sass has been deprecated as well as removing deprecated variables, hooks, and components.
Most users should be able to run the following commands to upgrade to v3.0.0:
npm update react-md
npm uninstall node-sass
npm install sass
Or with yarn
yarn add react-md
yarn remove node-sass
yarn add sass
In addition, there is now partial support for the new Sass module system with the react-md
package which also simplifies the import usage and has a slight build performance improvement for large projects.
To start using the new module system, update all the @import
statements as shown below:
-@import '~@react-md/theme/dist/mixins';
-@import '~@react-md/utils/dist/mixins';
-// other react-md imports
+@use 'react-md' as *;
// No other changes required!
If you override variables within react-md
:
-@import '~@react-md/theme/dist/color-palette';
-$rmd-theme-light: false;
-$rmd-theme-primary: $rmd-purple-500;
-$rmd-theme-secondary: $rmd-pink-a-200;
-
-@import '~react-md/dist/styles';
+@use '@react-md/theme/dist/color-palette' as color;
+@use 'react-md' as * with (
+ $rmd-theme-light: false,
+ $rmd-theme-primary: color.$rmd-theme-purple-500,
+ $rmd-theme-secondary: color.$rmd-theme-pink-a-200,
+);
+
+@include react-md-utils;
Check out the updated customizing your theme documentation, #1214, or 958f34f for more in-depth examples.
$rmd-theme-dark-elevation
now defaults to true
instead of false
node-sass
is no longer supported and users must switch to sass
InteractionModeListener
since it was an alias for UserInteractionModeListener
ResizeObserver
component and useResizeObserverV1
implementationTooltipHoverModeConfig
component$rmd-card-dark-elevation-bordered-background-color
variableTooltipped
componentuseIndeterminateChecked
is now an object of optionssass
since it's deprecated (126fb5a)defaults
to true (b371337)sass
usage with: @use 'react-md';
(787bfb5)@use
(68e8c6b)react-md/dist/_everything.scss
(c7177e6)sassdoc
and variables to use everything.scss (a0f0699)sass
(5376be1)useIndeterminateChecked
(6b7871f)Tooltipped
component (6dca9b1)typedoc
API in navigation tree (c388ba6)@use
imports (958f34f)defaults
(b2269ff)sass
instead of node-sass (d8ddf51)react-md
(c0f25f7)Changelog
2.9.0 (2021-07-18)
This release is focused around the FileInput
component in the @react-md/form
package and implementing a useFileUpload
hook to handle uploading/previewing files in the browser. However, there is a notable change in this release for the form documentation since the demos have been split into the following pages:
FileInput
correctly center the icon when children aren't provided (3a6ab33)useLayoutNavigation
possible perf fix (3d65e4e)FileInput
automatically swaps button type to text if children exist (e5585e1)FormMessageCounter
component added to public API (1508812)useFileUpload
hook to upload files to the browser (efb3f2f), closes #1159useDropzone
hook (bc07a1f)useFileUpload
(49ce4d9)useFileUpload
(8f9002e)eslint
error after updating prettier
(75a9b0f)Select
Options Demo (367cc0d)Changelog
2.8.5 (2021-07-03)
MenuItemCheckbox
added missing indeterminate state (aa2c552), closes #1186useIndeterminateChecked
correctly uses readonly prefix (7f69a71)useIndeterminateChecked
supports MenuItemCheckbox
with new option (9ab67bf)MenuItemCheckbox
, MenuItemRadio
, and MenuItemSwitch
styles on light themes (fc4dcd9)useIndeterminateChecked
(8646c28)Changelog
2.8.4 (2021-06-10)
Switch
components (8c65df6), closes #1175omit
uses readonly prefix for key list (d3e1ee8)next
and build deps to fix font loading issues (e528617)Changelog
2.8.3 (2021-05-18)
useLayoutConfig
(14e6587)Menu
in Dense Mode (abbe9a9)AppBar
mini layouts (84313fc), closes #1101classnames
dependency (a7a2012), closes #1155AppBar
layouts (d217ac1)typedoc
(84739af)react-md
(a69359b)typedoc
(cf54c35)typedoc
source links when deployed through vercel (a4eed1b)useLayoutNavigation
hook example in creating a new app (1cde856)typedoc
WIP (a7d7429)