- Fixed empty rules generated when dynamic styles are used (#267)
- Added
disableStylesGeneration
prop to the provider (#167)
- Remove
forwardRef
support (#255)
- Added
forwardRef
support. - Updated hoist-non-react-statics to 2.5.0
- Added
innerRef
prop to access the inner element.
- Update package-lock.json
- Allow updating Jss instance of JssProvider
- Update JSS dependency to v9.7.0
- Add docs about fn values and rules
- Add files to package.json
- Fix function rules
- Update default preset to v4.3.0
- Production mode for defaultClassNamePrefix (#191).
- Upgrade theming
- Upgrade to JSS 9.3.2
- Upgrade to JSS 9.
- Support React 16 (#162)
- Fixed manager leaking to next request on SSR (#133).
- Pass component name as a classNamePrefix (#133).
- Added classNamePrefix prop to JssProvider for better multi-tree support (#133).
- Allowed nesting of JssProvider (#157).
- Allow JssProvider rerender when used deep in the tree (#128).
- Added
inject
option toinjectSheet
which allows you to filter props which are going to be passed to the child props (#130). - Removed the
sheet
prop. Now in order to get it back you need to specify the options{inject: ['sheet']}
. Most of the time you should just useprops.classes
, which is provided by default. - Restructured tests (#118)
- Object classes passed by the user via props is now merged with sheet classes and
InnerComponent.defaultProps.classes
(#132)
- Add
generateClassName
prop toJssProvider
in order to support multi-tree apps.
- Added custom
theming
option
- Fix theming with
JssProvider
- Added theming support, introduced
ThemeProvider
andwithTheme
. - Function
injectSheet
now accepts a styles creator function which receives a theme. - Updated to JSS 8
- Class generator counter will reset on every request for dynamic SSR.
- Dynamic styles are now also added to the sheets registry for SSR.
- Fixed classnames generators for dynamic SSR (generating sheets on each request).
- Removed
createInjectSheet
. Use JssProvider to pass ajss
instead. - Renamed
SheetsRegistryProvider
toJssProvider
. - Function
injectSheet
doesn't accept a StyleSheet instance any more. Potential solutions:- Extract common sheet into separate component.
- Mix reusable styles into component styles.
- Reuse a sheet directly, by managing your own sheet and using a
composes
feature.
- Add sheets to the registry when it is a new instance
- Theming -
ThemeProvider
andwithTheme
- Update to JSS 8
- Class generator counter will reset on every request for dynamic SSR.
- Removed
createInjectSheet
. Use JssProvider to pass ajss
instead. - Renamed
SheetsRegistryProvider
toJssProvider
.
- Use prop-types package
- Refactored the structure
- Exposed and documented
StyledComponent.InnerComponent
- Fixed default props not being passed to the function values. (#87)
- Use JSS 7.0
- Don't ignore static rules when function values are used (#82)
- Introduced function values.
- Pass
classes
object over props additionally tosheet
prop.
- Function injectSheet(styleSheet) now accepts StyleSheet instance.
- You can override the sheet property now from the parent component. (#47)
- Fix specificity for the most cases cssinjs/react-jss#61
- Export SheetsRegistryProvider and SheetsRegistry
- Support JSS 6.0
- Upgrade to jss-present-default 0.9.0
- Fixing tests (React regression facebook/react#7803)
- Fix refs inconsistency on hot reloading #18
- Update dependencies
- Tests integration for jss repo
- Make default Jss instance available.
- Default Container component should render children to allow wrapping.
- Maked passing a component optional.
- Fix test runner for jss main repo.
- Added jss and jss-preset-default as a dependency, uses jss-preset-default by default #49.
- Added tests #28.
- Streamlined the api, default export is now a function without overloads, it is
injectSheet(styles, [options])(Component)
, same signature is used by ES7 decorators #37. - Added component name as data-meta attribute to the sheet #22.
- Added a
create()
function to create a newinjectSheet
function which takes ajss
instance. - Updated readme.
- Added lint-staged.