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/avatar
5.1.3 (2022-05-07)
- typos: fix additional typos throughout repo (ef20132)
5.1.2 (2022-04-02)
Note: Version bump only for package @react-md/avatar
5.1.0 (2022-03-18)
- run lint-scripts --fix for consistent-type-imports (42d839d)
5.0.0 (2022-01-31)
Note: Version bump only for package @react-md/avatar
4.0.3 (2021-12-31)
4.0.1 (2021-11-27)
Note: Version bump only for package @react-md/avatar
4.0.0 (2021-11-24)
- Update to use new JSX Transform and latest
eslint
(8111cd3)
- 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.0 (2021-08-13)
Note: Version bump only for package @react-md/avatar
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/avatar
2.8.4 (2021-06-10)
Note: Version bump only for package @react-md/avatar
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/avatar
2.8.0 (2021-04-22)
- tsconfig: separate tsconfig by package instead of a single root (b278230)
2.7.1 (2021-03-23)
Note: Version bump only for package @react-md/avatar
2.7.0 (2021-02-28)
- tsdoc: fixed remaining tsdoc syntax warnings (946f4dd)
- tsdoc: fixed some tsdoc annotations and styling (0449b86)
- tsdoc: updated @since annotations (c62027e)
- updated test coverage to not include conditional component PropTypes (24e5df1)
2.6.0 (2021-02-13)
Note: Version bump only for package @react-md/avatar
2.5.5 (2021-01-30)
Note: Version bump only for package @react-md/avatar
2.5.4 (2021-01-27)
Note: Version bump only for package @react-md/avatar
2.5.0 (2020-12-15)
Note: Version bump only for package @react-md/avatar
2.4.2 (2020-10-23)
Note: Version bump only for package @react-md/avatar
2.4.1 (2020-10-17)
Note: Version bump only for package @react-md/avatar
2.4.0 (2020-10-17)
- @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/avatar
2.3.0 (2020-09-10)
Note: Version bump only for package @react-md/avatar
2.2.2 (2020-09-02)
Note: Version bump only for package @react-md/avatar
2.2.1 (2020-09-02)
Note: Version bump only for package @react-md/avatar
2.2.0 (2020-08-11)
- @react-md/avatar: Added ability to pass props to
<img>
(11848ee), closes #908
2.1.2 (2020-08-01)
Note: Version bump only for package @react-md/avatar
2.1.1 (2020-07-21)
Note: Version bump only for package @react-md/avatar
2.1.0 (2020-07-12)
Note: Version bump only for package @react-md/avatar
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.
The avatar component should be fairly similar to the v1 version except for a few behavior changes.
- the
Avatar
is now rendered as a<span>
instead of a<div>
- the
ref
is correctly forwarded to the<span>
element - the
children
no longer needs to be wrapped in an additional<div>
for styling - the
alt
tag will be defaulted to the empty string if thesrc
tag is provided for convenience
- no longer supports and
icon
prop since icons should just be rendered as thechildren
for theAvatar
- no longer supports the
random
andsuffixes
props since it did not work for SSR - the
suffix
prop was renamed tocolor
- the
iconSized
prop was removed since the new CSS variable theming API should be used instead - the
contentStyle
andcontentClassName
props were removed since they are no longer required
$rmd-avatar-colors
- a map of all the colors to generate by default that have been updated to support minimal contrast ratio accessibility checks.$rmd-avatar-font-size: 1.5rem !default
- the font size to apply to avatars when displaying text$rmd-avatar-line-height: rmd-typography-value(subtitle-1, line-height) !default
- the line-height to apply to avatars when displaying text@function rmd-avatar-theme
- gets one of the theme values and validates that the theme name is valid@function rmd-avatar-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-avatar-theme
- applies one of the theme values to a css property as a css variable@mixin rmd-avatar-theme-update-var
- updates one of the theme values as a css variable
- renamed
$md-avatar-default-background
to$rmd-avatar-background-color
- renamed
$md-avatar-default-color
to$rmd-avatar-color
- renamed
$md-avatar-border-color
to$rmd-avatar-border-color
and changed the default value fromnull
torgba(if(rmd-theme-tone($rmd-theme-background) == light, $rmd-black-base, $rmd-white-base), 0.12)
- renamed
$md-avatar-size
to$rmd-avatar-size
and changed the default value from40px
to2.5rem
$md-avatar-icon-sized
was removed since it is no longer required- removed
$md-avatar-include-suffixes
and$md-avatar-colors
since the colors are now handled by the$rmd-avatar-colors
variable - removed
react-md-theme-avatars
andreact-md-theme-vatar
since they are no longer required - removed
react-md-avatar-media
since avatars no longer automatically updated based on media queries and instead are updated through CSS Variables