All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
5.1.6 (2023-12-11)
Note: Version bump only for package @react-md/sheet
5.1.3 (2022-05-07)
Note: Version bump only for package @react-md/sheet
5.1.2 (2022-04-02)
Note: Version bump only for package @react-md/sheet
5.1.1 (2022-04-01)
- @react-md/sheet: Animate correctly in React 18 (ca27b19)
5.1.0 (2022-03-18)
- run lint-scripts --fix for consistent-type-imports (42d839d)
5.0.0 (2022-01-31)
- @react-md/sheet: Move tsdoc around for easier sharing (83fcaac)
4.0.3 (2021-12-31)
4.0.1 (2021-11-27)
- @react-md/sheet: Added fixes required for Concurrent Rendering (75663e4)
4.0.0 (2021-11-24)
- sass: Do not use legacy global functions (6159e16)
- Update to use new JSX Transform and latest
eslint
(8111cd3) - @react-md/transition: No longer use findDOMNode for transitions (cb952da)
- always skip lib check (229cef1)
- react-md: Remove prop-types package and usage (2637a6f)
- stylelint: Updated to use
stylelint
(22d1598)
- Minimum React version is now 16.14 instead of 16.8
- react-md: There will no longer be run-time prop validation with
the
prop-types
package.
3.1.0 (2021-09-10)
- ran
yarn format
to include new files (48d3d7f)
3.0.1 (2021-08-15)
3.0.0 (2021-08-13)
- @react-md/dev-utils: updated
sassdoc
and variables to use everything.scss (a0f0699) - @react-md/dev-utils: updated variables command to work with
sass
(5376be1)
2.9.1 (2021-07-27)
- install: slighly reduce install size by excluding tests in publish (9d01a44)
2.9.0 (2021-07-18)
Note: Version bump only for package @react-md/sheet
2.8.5 (2021-07-03)
Note: Version bump only for package @react-md/sheet
2.8.4 (2021-06-10)
Note: Version bump only for package @react-md/sheet
2.8.3 (2021-05-18)
- react-md.dev: updated tsdoc to work with
typedoc
(cf54c35)
2.8.2 (2021-04-23)
Note: Version bump only for package @react-md/sheet
2.8.0 (2021-04-22)
- tsconfig: separate tsconfig by package instead of a single root (b278230)
2.7.1 (2021-03-23)
- ts: stopped using FC type (c5daa47)
2.7.0 (2021-02-28)
- tsdoc: fixed remaining tsdoc syntax warnings (946f4dd)
- updated test coverage to not include conditional component PropTypes (24e5df1)
2.6.0 (2021-02-13)
Note: Version bump only for package @react-md/sheet
2.5.5 (2021-01-30)
Note: Version bump only for package @react-md/sheet
2.5.4 (2021-01-27)
Note: Version bump only for package @react-md/sheet
2.5.0 (2020-12-15)
Note: Version bump only for package @react-md/sheet
2.4.2 (2020-10-23)
Note: Version bump only for package @react-md/sheet
2.4.1 (2020-10-17)
Note: Version bump only for package @react-md/sheet
2.4.0 (2020-10-17)
- a11y: improved
LabelRequiredForA11y
type definition (b7aa4fa) - @react-md/theme: Better Contrast Colors by Default and dev-utils refactor (#955) (519b128)
2.3.1 (2020-09-15)
Note: Version bump only for package @react-md/sheet
2.3.0 (2020-09-10)
- a11y: improved
LabelRequiredForA11y
type definition (b7aa4fa)
2.2.2 (2020-09-02)
Note: Version bump only for package @react-md/sheet
2.2.1 (2020-09-02)
Note: Version bump only for package @react-md/sheet
2.2.0 (2020-08-11)
Note: Version bump only for package @react-md/sheet
2.1.2 (2020-08-01)
Note: Version bump only for package @react-md/sheet
2.1.1 (2020-07-21)
Note: Version bump only for package @react-md/sheet
2.1.0 (2020-07-12)
2.0.2 (2020-06-30)
- LICENSE: Removed the time range from license since it was incorrect (50c9021)
- Added
sideEffects
field topackage.json
(31820b9) sideEffects
formatting (78a7b6b)
No changes.
This package is the new version of the Drawer
component from v1 that is no
longer really used for layout and app size.
- relies on the
AppSizeListener
from @react-md/utils to determine the app size - fixed the accessibility issues and now handles automatic focus changes when changing visibility
- fixed the accessibility issues and now defaults to being rendered as a
dialog
, but can also be rendered as amenu
ornone
- supports being rendered at the
top
,right
,bottom
, andleft
of the page instead of only right and left - new sizing behavior that can be configured horizontally or vertically
- no longer needs to be unmounted while invisible to create a persistent sheet off-screen
- renders as a
<div>
instead of an<aside>
since that was the wrong element anyways - the width will be the same when rendered to the
left
orright
of the viewport - added the ability to theme the width and height with CSS variables and mixins
- no longer supports the mini variants but will be added in a later release
- no longer has the
getCurrentMedia
andmatchesMedia
static methods - no longer handles controlling the current app size
- no longer renders as the
Paper
component since it was removed and has nozDepth
prop - no longer renders
navItems
$rmd-sheet-z-index: 5
- The z-index for a sheet that appears inline with other content$rmd-sheet-overlay-z-index: $rmd-sheet-raised-z-index - 1 !default
(16
) - The z-index for the sheet's overlay$rmd-sheet-elevation: 2 !default
- The elevation to use for the sheet when rendered inline with other content$rmd-sheet-elevation: 16 !default
- The elevation to use for the sheet when rendered as a temporary element$rmd-sheet-touch-width: calc(100vw - #{$rmd-sheet-touch-margin}) !default
- The width for a sheet on touch devices that should fill up as much space as possible$rmd-sheet-static-width: 16rem !default
- The width for a sheet that does not change size based on content. This is kind of like the new$md-drawer-tablet-width
and$md-drawer-desktop-width
$rmd-sheet-max-height: 100% !default
- the max height for a sheet rendered to the top or bottom of the viewport$rmd-sheet-touchable-max-height: calc(100% - #{$rmd-sheet-touch-margin}) !default
- The max height for a sheet that has a "touchable" area that can be clicked to close$rmd-sheet-recommended-max-height: 50% !default
- The material design recommended max-height for a sheet rendered at the top or bottom of the viewport$rmd-sheet-enabled-positions: top right bottom left !default
- A list of the positions that should generate styles. You can maybe save a few bytes by removing the positions that aren't used in your app$rmd-sheet-scrollable-padding: 3.25rem !default
- The amount of padding tp use before the first tab when thescrollable
prop is enabled on thesheet
component@function rmd-sheet-theme
- gets one of the theme values and validates that the theme name is valid@function rmd-sheet-theme-var
- gets one of the theme values as a css variable with a fallback value and validates that the theme name is valid@mixin rmd-sheet-theme
- applies one of the theme values to a css property as a css variable@mixin rmd-sheet-theme-update-var
- updates one of the theme values as a css variable
- renamed
$md-sheet-z-index
to$rmd-sheet-raised-z-index
and changed the $md-sheet-transition-time
was split into two variables$rmd-sheet-enter-duration
and$rmd-sheet-leave-duration
and changed the default duration from0.3s
to0.2s
and0.15s
- renamed
$md-sheet-mobile-margin
to$rmd-sheet-touch-margin
and changed the default value from56px
to3.5rem
- removed
$md-drawer-mobile-max-width
- removed
$md-drawer-mobile-mini-width
,$md-drawer-desktop-mini-width
,$md-drawer-mobile-mini-item-padding
, and$md-drawer-desktop-mini-item-padding
since mini drawers aren't supported again yet - removed
$md-drawer-desktop-left-max-width
since there is no difference when rendering at the left or right anymore