-
-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Revert "Revert "Add dynamic rules to static sheet"" This reverts commit 1e35967 * Fix adding dynamic rules to sheet * Fix a few tests * Fix tests * Format code * Add comments * Update changelog * Update size-snapshot * Initial draft * Add missing dependency * Fix some type issues * Rename hook folder to create-use-styles and hoc to with-styles * Unify some files * Fix imports * Fix some flow issues * Update size snapshots * Fix some eslint problems * Update packages/react-jss/src/create-use-styles.js Co-Authored-By: HenriBeck <[email protected]> * Update file names and default exports * Use type instead of interface * Fix linting * Fixed PR comments * Update size snapshots * fix linter, make all file names camel cased * Use state instead of relying on memo * Use is-in-browser package * Fix some type issues and add support for recreating the sheet when the theme changes * upgrade theming * add sheet to the registry when managing sheets, pass a theme when using one * Fixed all tests * Fix linting etc. * Use MIN_SAFE_INTEGER * remove the need for extra eslit rules * Add tests for hooks and fix some issue * Remove check for disableStylesGeneration * more explicit name for the hook * port class name prefix test * reuse tests between hooks and hocs * make dynamicStyles tests use hooks * generate dynamic styles test using HOC * migrate all dynamic styles tests to use createStyledComponent * refactor theming tests * Rewrite to useReducer * Fix JssProvider * port theming tests for hooks * move reducer to the module scope, since it doesn't need to be recreated * reset module Id * rename shallow-equal, add a note * hooks docs * better description * better wording * fix link
- Loading branch information
Showing
35 changed files
with
2,187 additions
and
904 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.