Releases: braposo/react-responsive-picture
Releases · braposo/react-responsive-picture
v3.2.2
v3.2.1
v3.2.0
v3.1.1
v3.1.0
- Adds propType warning if
altprop isn't defined (#24 @CloudPower97) - Defines
sourcesprop structure (#24 @CloudPower97)
v3.0.0
Breaking changes:
- Removes
cssprop fromPictureandpictureCSSprop fromFullsizePicturecomponent. Styling is now done exclusively throughclassNameprop. classNameprop inFullsizePictureis assigned to the innerPicturecomponent to keep API consistency between components. It was previously calledpictureClassName.- New
wrapperClassNameprop to style wrapper component inFullsizePicture. It was previously calledclassName FullsizePicturedefault behaviour now mimicsbackground-size: coverbehaviour for full-width images
Other changes:
- Update to README and CONTRIBUTING docs
- Adds examples to be used in Codesandbox
- Removes
glamorousand addscxsfor styling - Updates all dependencies to latest versions
v2.1.0
v2.0.0
- Converts components to use
glamorous - Accepts any valid prop for
PictureandFullsizePicturecomponents (you can definealttags for example) - Breaking: Uses
cssprop to override styles usingglamorous, which can now accept objects, arrays and strings for styling. Previousstyleprop is now only for simple inline styles, like any other basic React component. - Breaking: Renames
imageClassNameandimageStyletopictureCSSso it's semantically more accurate and avoid confusion