You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BREAKING CHANGE: The propTypes property is no longer available on the BEM object. You can import it directly from bemmed/proptypes in order to keep the bundle size as small as possible.
Refactored BEM.propType into a BEM.propTypes object with multiple propTypes functions.
The propTypes all have a isRequired property to ensure the prop has a value.
BEM.propTypes.bem: New propType to check for BEM instances.
BEM.propTypes.className: PropType to check if a prop is a valid className (including BEM objects). This was the original BEM.propType which is still present but deprecated.
BEM.propTypes.element: PropType to check if a prop can be used as a value for BEM.element().
BEM.propTypes.modifier: PropType to check if a prop can be used as a value for BEM.modifier().
Deprecations
BEM.propType is deprecated in favor of BEM.propTypes.className.
The BEMTypes export is also deprecated. It wasn't documented so doubt anyone uses it anyway.