Skip to main content
react-md
react-md - States - Changelog

Change Log

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/states

5.1.3 (2022-05-07)

Documentation

  • fix typos throughout codebase (725d1a2)

Other Internal Changes

  • typos: fix additional typos throughout repo (ef20132)

5.1.2 (2022-04-02)

Note: Version bump only for package @react-md/states

5.1.0 (2022-03-18)

Other Internal Changes

  • run lint-scripts --fix for consistent-type-imports (42d839d)

5.0.0 (2022-01-31)

Note: Version bump only for package @react-md/states

4.0.3 (2021-12-31)

Other Internal Changes

  • Updated all packages' peerDependenciesMeta (60fcd71), closes #1319

4.0.1 (2021-11-27)

Other Internal Changes

  • Updated imports to use import type when possible (ba96bb6)

4.0.0 (2021-11-24)

Features

  • Update to use new JSX Transform and latest eslint (8111cd3)
  • @react-md/transition: No longer use findDOMNode for transitions (cb952da)

Other Internal Changes

  • always skip lib check (229cef1)
  • react-md: Remove prop-types package and usage (2637a6f)
  • stylelint: Updated to use stylelint (22d1598)

Breaking Changes

  • 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)

Bug Fixes

  • typescript: updated all array types to be readonly (8f71bcb)

Other Internal Changes

  • ran yarn format to include new files (48d3d7f)

3.0.1 (2021-08-15)

Bug Fixes

  • Updated peerDependencies to fix yarn berry peer requirements (250efcd), closes #1224

3.0.0 (2021-08-13)

Note: Version bump only for package @react-md/states

2.9.1 (2021-07-27)

Other Internal Changes

  • 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/states

2.8.5 (2021-07-03)

Note: Version bump only for package @react-md/states

2.8.4 (2021-06-10)

Other Internal Changes

  • ran prettier after upgrading to v2.3.0 (3ce236a)

2.8.3 (2021-05-18)

Bug Fixes

  • @react-md/states: Added missing classnames dependency (a7a2012), closes #1155

Documentation

  • react-md.dev: updated tsdoc to work with typedoc (cf54c35)

2.8.2 (2021-04-23)

Note: Version bump only for package @react-md/states

2.8.0 (2021-04-22)

Other Internal Changes

  • tsconfig: separate tsconfig by package instead of a single root (b278230)

2.7.1 (2021-03-23)

Other Internal Changes

  • ts: stopped using FC type (c5daa47)

2.7.0 (2021-02-28)

Documentation

  • tsdoc: fixed remaining tsdoc syntax warnings (946f4dd)
  • tsdoc: fixed some tsdoc annotations and styling (0449b86)

Other Internal Changes

  • updated test coverage to not include conditional component PropTypes (24e5df1)

2.6.0 (2021-02-13)

Note: Version bump only for package @react-md/states

2.5.5 (2021-01-30)

Note: Version bump only for package @react-md/states

2.5.4 (2021-01-27)

Note: Version bump only for package @react-md/states

2.5.0 (2020-12-15)

Note: Version bump only for package @react-md/states

2.4.2 (2020-10-23)

Note: Version bump only for package @react-md/states

2.4.1 (2020-10-17)

Note: Version bump only for package @react-md/states

2.4.0 (2020-10-17)

Bug Fixes

Features

2.3.1 (2020-09-15)

Note: Version bump only for package @react-md/states

2.3.0 (2020-09-10)

Bug Fixes

2.2.2 (2020-09-02)

Note: Version bump only for package @react-md/states

2.2.1 (2020-09-02)

Note: Version bump only for package @react-md/states

2.1.2 (2020-08-01)

Note: Version bump only for package @react-md/states

2.1.1 (2020-07-21)

Note: Version bump only for package @react-md/states

2.1.0 (2020-07-12)

Note: Version bump only for package @react-md/states

2.0.2 (2020-06-30)

Bug Fixes

  • LICENSE: Removed the time range from license since it was incorrect (50c9021)
  • Added sideEffects field to package.json (31820b9)
  • sideEffects formatting (78a7b6b)

v2.0.1

No changes.

v2.0.0

This package is kind of new for the v2 release but the closest thing within v1 is the injectInk and "ink" effects. The ink effect has been renamed to a ripple effect and there are some other additional goodies included now.

This release has one of the most exciting new features that has been requested a lot by designers: focus states are only applied when the user is interacting with a keyboard. If you are unfamiliar with this, clicking a focusable element in the DOM actually triggers a focus event on that element as well. This means that any :focus styles will be applied which is usually not what we want.

The v2 release has introduced three interaction modes to help prevent this sort of thing where styles can be added only for touch, mouse, or keyboard. Super exciting stuff; I know.

New Features / Behavior

  • the material design ripple effect can now be disabled with React context
  • added a new optional "pressed" state that can be used instead of ripples for a simpler interaction state when being clicked/touched
  • able to apply styles based on the current user interaction mode with simple mixins
  • adds a custom focus box shadow while interacting in keyboard mode to improve the visibility of the current focused item (can be opted-out, but not recommended for accessibility)

Breaking Changes

  • injectInk higher order component no longer exists with no alternative
  • the material design ripple has no "pulsing" effect anymore (this was defaulted to false in v1 anyways)
New SCSS Variables, Functions, and Mixins
  • $rmd-states-use-ripple: true !default - boolean if the ripple effect should be used when a user clicks or touches an interactable element such as buttons
  • $rmd-states-use-pressed-states-fallback: true !default - Boolean if the small amount of styles for the background color changes for the "pressed" states should also be included if not using the ripple effect
  • $rmd-states-use-focus-shadow: true !default - Boolean if the blue focus shadow should be used while an element is focused in keyboard mode
  • $rmd-states-focus-shadow-width: 0.125rem !default - The width for the focus box-shadow
  • $rmd-states-focus-shadow-color: $rmd-blue-500 !default - The color for the focus box-shadow
  • $rmd-states-light-theme-background-color: $rmd-black-base !default - the base background color to use in the light theme for applying different states to elements
  • $rmd-states-focus-shadow: inset 0 0 0 $rmd-states-focus-shadow-width $rmd-states-focus-shadow-color !default - The focus box-shadow used
  • $rmd-states-light-theme-hover-color: rgba($rmd-states-light-theme-background-color, 0.08) !default - The hover color for light themed background
  • $rmd-states-light-theme-focus-color: rgba($rmd-states-light-theme-background-color, 0.24) !default - The focus color for light themed background
  • $rmd-states-light-theme-pressed-color: rgba( $rmd-states-light-theme-background-color, 0.32) !default - The selected color to use for light themed background
  • $rmd-states-light-theme-selected-color: rgba( $rmd-states-light-theme-background-color, 0.16) !default - The selected color to use for light themed background
  • $rmd-states-light-theme-ripple-background-color: rgba($rmd-black-base, 0.08) !default - The ripple's background color when using the light theme
  • $rmd-states-dark-theme-background-color: $rmd-black-base !default - the base background color to use in the dark theme for applying different states to elements
  • $rmd-states-dark-theme-hover-color: rgba($rmd-states-dark-theme-background-color, 0.04) !default - The hover color to use for dark themed backgrounds
  • $rmd-states-dark-theme-focus-color: rgba($rmd-states-dark-theme-background-color, 0.12) !default - The focus color to use for dark themed backgrounds
  • $rmd-states-dark-theme-pressed-color: rgba($rmd-states-dark-theme-background-color, 0.16) !default - The pressed color to use for dark themed backgrounds
  • $rmd-states-dark-theme-selected-color: rgba($rmd-states-dark-theme-background-color, 0.12) !default - The selected color to use for dark themed backgrounds
  • $rmd-states-dark-theme-ripple-background-color: rgba($rmd-black-base, 0.08) !default - The ripple's background color when using the dark theme
  • @function rmd-states-theme - gets one of the theme values and validates that the theme name is valid
  • @function rmd-states-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-states-theme - applies one of the theme values to a css property as a css variable
  • @mixin rmd-states-theme-update-var - updates one of the theme values as a css variable
  • @mixin rmd-states-surface-base - base styles to add interaction states to a new component
  • @mixin rmd-states-pressed-styles - applies styles only when the component has the pressed class name
  • @mixin rmd-states-focus-shadow - applies the new focus box-shadow to an element
  • @mixin rmd-states-surface - the new main mixin that will apply all the interaction states to a new component
Renamed SCSS Variables, Functions, and Mixins
  • renamed $md-ink-enter-transition-time to $rmd-states-ripple-transform-duration
  • renamed $md-ink-leave-transition-time to $rmd-states-ripple-opacity-duration
Removed SCSS Variables and Mixins
  • removed $md-ink-pulse-time, $md-ink-expanded-scale, and $md-ink-border-radius since it's no longer configurable
  • removed @mixin react-md-theme-inks since it is now done with the new theming API and mixins