├── .editorconfig ├── .eslintignore ├── .eslintrc ├── .gitignore ├── .npmignore ├── .prettierignore ├── .prettierrc ├── .storybook ├── components │ ├── Block.js │ ├── Code.js │ ├── MobileBreakpoint.js │ ├── Result.js │ └── index.js ├── config.js └── stories │ └── index.js ├── .yarnclean ├── README.md ├── babel.config.js ├── logo.png ├── package.json ├── rollup.config.js ├── src ├── SizesContext.js ├── SizesProvider.js ├── createSizedComponent.js ├── index.js ├── presets.js ├── utils │ ├── getDisplayName.js │ ├── getWindowSizes.js │ └── shallowDiff.js └── withSizes.js └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | es 4 | lib 5 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | es 2 | dist 3 | node_modules 4 | lib 5 | .DS_Store 6 | *.log 7 | .vscode 8 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/.npmignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | package.json 2 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/.prettierrc -------------------------------------------------------------------------------- /.storybook/components/Block.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/.storybook/components/Block.js -------------------------------------------------------------------------------- /.storybook/components/Code.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/.storybook/components/Code.js -------------------------------------------------------------------------------- /.storybook/components/MobileBreakpoint.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/.storybook/components/MobileBreakpoint.js -------------------------------------------------------------------------------- /.storybook/components/Result.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/.storybook/components/Result.js -------------------------------------------------------------------------------- /.storybook/components/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/.storybook/components/index.js -------------------------------------------------------------------------------- /.storybook/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/.storybook/config.js -------------------------------------------------------------------------------- /.storybook/stories/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/.storybook/stories/index.js -------------------------------------------------------------------------------- /.yarnclean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/.yarnclean -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/README.md -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/babel.config.js -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/logo.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/package.json -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/rollup.config.js -------------------------------------------------------------------------------- /src/SizesContext.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/src/SizesContext.js -------------------------------------------------------------------------------- /src/SizesProvider.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/src/SizesProvider.js -------------------------------------------------------------------------------- /src/createSizedComponent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/src/createSizedComponent.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/src/index.js -------------------------------------------------------------------------------- /src/presets.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/src/presets.js -------------------------------------------------------------------------------- /src/utils/getDisplayName.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/src/utils/getDisplayName.js -------------------------------------------------------------------------------- /src/utils/getWindowSizes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/src/utils/getWindowSizes.js -------------------------------------------------------------------------------- /src/utils/shallowDiff.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/src/utils/shallowDiff.js -------------------------------------------------------------------------------- /src/withSizes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/src/withSizes.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renatorib/react-sizes/HEAD/yarn.lock --------------------------------------------------------------------------------