├── .babelrc ├── .eslintignore ├── .eslintrc ├── .flowconfig ├── .gitignore ├── .npmignore ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── flow-typed └── npm │ ├── @lttb │ └── eslint-config-default_vx.x.x.js │ ├── babel-cli_vx.x.x.js │ ├── babel-core_vx.x.x.js │ ├── babel-eslint_vx.x.x.js │ ├── babel-plugin-transform-class-properties_vx.x.x.js │ ├── babel-plugin-transform-es2015-modules-commonjs_vx.x.x.js │ ├── babel-plugin-transform-object-rest-spread_vx.x.x.js │ ├── babel-preset-react_vx.x.x.js │ ├── common-tags_vx.x.x.js │ ├── enzyme-adapter-react-16_vx.x.x.js │ ├── enzyme_v3.x.x.js │ ├── enzyme_vx.x.x.js │ ├── eslint-config-airbnb_vx.x.x.js │ ├── eslint-config-jss_vx.x.x.js │ ├── eslint-plugin-import_vx.x.x.js │ ├── eslint-plugin-jsx-a11y_vx.x.x.js │ ├── eslint-plugin-react_vx.x.x.js │ ├── eslint_vx.x.x.js │ ├── flow-bin_v0.x.x.js │ ├── flow-typed_vx.x.x.js │ ├── is-observable_vx.x.x.js │ ├── is-react-prop_vx.x.x.js │ ├── jest_v18.x.x.js │ ├── jss-preset-default_vx.x.x.js │ ├── jss_vx.x.x.js │ ├── prop-types_vx.x.x.js │ ├── react-jss_vx.x.x.js │ ├── react-test-renderer_vx.x.x.js │ ├── recompose_vx.x.x.js │ ├── theming_vx.x.x.js │ └── zen-observable_vx.x.x.js ├── package.json ├── src ├── createStyled.js ├── index.js ├── injectStyled.js ├── styled.js ├── tests │ ├── .eslintrc │ ├── App.jsx │ ├── __snapshots__ │ │ ├── functional.spec.jsx.snap │ │ └── index.spec.jsx.snap │ ├── functional.spec.jsx │ ├── index.spec.jsx │ ├── utils.spec.js │ └── utils │ │ └── index.js ├── types │ └── index.js └── utils │ ├── composeClasses.js │ ├── filterProps.js │ ├── generateTagName.js │ └── getSeparatedStyles.js └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | presets: [ 3 | 'es2015', 4 | 'react', 5 | ], 6 | plugins: [ 7 | 'transform-flow-strip-types', 8 | 'transform-class-properties', 9 | ['transform-object-rest-spread', { useBuiltIns: true }], 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | flow-typed/npm 2 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | extends: 'jss' 2 | parser: babel-eslint 3 | 4 | env: 5 | jest: true 6 | 7 | globals: 8 | ReactClass: true 9 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | .*/node_modules/.* 3 | /coverage/ 4 | /examples/ 5 | 6 | /lib/ 7 | 8 | [libs] 9 | node_modules/jss/flow-typed 10 | 11 | [options] 12 | all=true 13 | suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe 14 | suppress_comment= \\(.\\|\n\\)*\\$FlowIgnore 15 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | npm-debug.log 2 | 3 | node_modules 4 | lib 5 | coverage 6 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | yarn.lock 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | dist: trusty 2 | language: node_js 3 | node_js: 4 | - 7 5 | 6 | cache: yarn 7 | 8 | script: 9 | - yarn --version 10 | - npm run flow 11 | - npm run lint 12 | - npm run test:coverage && npm run coveralls 13 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | ## [v2.2.3](https://github.com/cssinjs/styled-jss/tree/v2.2.3) (2018-05-15) 4 | 5 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v2.2.2...v2.2.3) 6 | 7 | **Fixed bugs:** 8 | 9 | - Bug: Nested composition causes invalid tag to be rendered [\#67](https://github.com/cssinjs/styled-jss/issues/67) 10 | 11 | **Merged pull requests:** 12 | 13 | - fix for issue \#67 [\#68](https://github.com/cssinjs/styled-jss/pull/68) ([aloker](https://github.com/aloker)) 14 | 15 | ## [v2.2.2](https://github.com/cssinjs/styled-jss/tree/v2.2.2) (2018-03-02) 16 | 17 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v2.2.1...v2.2.2) 18 | 19 | **Merged pull requests:** 20 | 21 | - Fix function values in composition [\#64](https://github.com/cssinjs/styled-jss/pull/64) ([lttb](https://github.com/lttb)) 22 | 23 | ## [v2.2.1](https://github.com/cssinjs/styled-jss/tree/v2.2.1) (2018-03-02) 24 | 25 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v2.2.0...v2.2.1) 26 | 27 | **Merged pull requests:** 28 | 29 | - Add ThemeProvider, fix Readme [\#63](https://github.com/cssinjs/styled-jss/pull/63) ([lttb](https://github.com/lttb)) 30 | 31 | ## [v2.2.0](https://github.com/cssinjs/styled-jss/tree/v2.2.0) (2018-03-02) 32 | 33 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v2.2.0-0...v2.2.0) 34 | 35 | **Implemented enhancements:** 36 | 37 | - Set styled object as a whole based on props [\#41](https://github.com/cssinjs/styled-jss/issues/41) 38 | 39 | ## [v2.2.0-0](https://github.com/cssinjs/styled-jss/tree/v2.2.0-0) (2018-03-02) 40 | 41 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v2.1.2...v2.2.0-0) 42 | 43 | **Closed issues:** 44 | 45 | - Integrate ThemeProvider [\#20](https://github.com/cssinjs/styled-jss/issues/20) 46 | - What about dynamic themes? [\#16](https://github.com/cssinjs/styled-jss/issues/16) 47 | 48 | **Merged pull requests:** 49 | 50 | - Update jss v9.3.1 [\#59](https://github.com/cssinjs/styled-jss/pull/59) ([lttb](https://github.com/lttb)) 51 | - Support Theming [\#35](https://github.com/cssinjs/styled-jss/pull/35) ([lttb](https://github.com/lttb)) 52 | 53 | ## [v2.1.2](https://github.com/cssinjs/styled-jss/tree/v2.1.2) (2017-11-13) 54 | 55 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v2.1.1...v2.1.2) 56 | 57 | **Fixed bugs:** 58 | 59 | - Higher order component name [\#50](https://github.com/cssinjs/styled-jss/issues/50) 60 | 61 | **Merged pull requests:** 62 | 63 | - Fix \#50, escape Components name [\#58](https://github.com/cssinjs/styled-jss/pull/58) ([lttb](https://github.com/lttb)) 64 | 65 | ## [v2.1.1](https://github.com/cssinjs/styled-jss/tree/v2.1.1) (2017-11-12) 66 | 67 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v2.1.0...v2.1.1) 68 | 69 | **Closed issues:** 70 | 71 | - Add plugins without re-exporting styled [\#56](https://github.com/cssinjs/styled-jss/issues/56) 72 | 73 | **Merged pull requests:** 74 | 75 | - Resolve \#56, provide jss instance via styled [\#57](https://github.com/cssinjs/styled-jss/pull/57) ([lttb](https://github.com/lttb)) 76 | 77 | ## [v2.1.0](https://github.com/cssinjs/styled-jss/tree/v2.1.0) (2017-10-24) 78 | 79 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v2.0.2...v2.1.0) 80 | 81 | **Fixed bugs:** 82 | 83 | - Support Observables from JSS9 [\#53](https://github.com/cssinjs/styled-jss/issues/53) 84 | 85 | **Closed issues:** 86 | 87 | - Border property [\#52](https://github.com/cssinjs/styled-jss/issues/52) 88 | 89 | **Merged pull requests:** 90 | 91 | - Support observables [\#55](https://github.com/cssinjs/styled-jss/pull/55) ([lttb](https://github.com/lttb)) 92 | 93 | ## [v2.0.2](https://github.com/cssinjs/styled-jss/tree/v2.0.2) (2017-10-13) 94 | 95 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v2.0.1...v2.0.2) 96 | 97 | **Fixed bugs:** 98 | 99 | - Props not passed [\#47](https://github.com/cssinjs/styled-jss/issues/47) 100 | 101 | **Merged pull requests:** 102 | 103 | - Pass props to composed React Components [\#48](https://github.com/cssinjs/styled-jss/pull/48) ([lttb](https://github.com/lttb)) 104 | 105 | ## [v2.0.1](https://github.com/cssinjs/styled-jss/tree/v2.0.1) (2017-10-13) 106 | 107 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v2.0.0...v2.0.1) 108 | 109 | **Merged pull requests:** 110 | 111 | - Fix React Component classes [\#46](https://github.com/cssinjs/styled-jss/pull/46) ([lttb](https://github.com/lttb)) 112 | 113 | ## [v2.0.0](https://github.com/cssinjs/styled-jss/tree/v2.0.0) (2017-10-13) 114 | 115 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v1.2.0...v2.0.0) 116 | 117 | **Implemented enhancements:** 118 | 119 | - Components selectors [\#40](https://github.com/cssinjs/styled-jss/issues/40) 120 | - Compose React Components with styled-jss [\#39](https://github.com/cssinjs/styled-jss/issues/39) 121 | 122 | **Closed issues:** 123 | 124 | - React 16 compatibility [\#42](https://github.com/cssinjs/styled-jss/issues/42) 125 | - Update to the latest jss and preset [\#38](https://github.com/cssinjs/styled-jss/issues/38) 126 | - Styled-jss component not passing props down [\#37](https://github.com/cssinjs/styled-jss/issues/37) 127 | - Setting default values for prop types [\#36](https://github.com/cssinjs/styled-jss/issues/36) 128 | - SC v2 [\#32](https://github.com/cssinjs/styled-jss/issues/32) 129 | 130 | **Merged pull requests:** 131 | 132 | - Resolve \#39, support React Components composing [\#45](https://github.com/cssinjs/styled-jss/pull/45) ([lttb](https://github.com/lttb)) 133 | - Component Selectors [\#44](https://github.com/cssinjs/styled-jss/pull/44) ([lttb](https://github.com/lttb)) 134 | - Support React 16 [\#43](https://github.com/cssinjs/styled-jss/pull/43) ([lttb](https://github.com/lttb)) 135 | - Typo [\#34](https://github.com/cssinjs/styled-jss/pull/34) ([matteofigus](https://github.com/matteofigus)) 136 | 137 | ## [v1.2.0](https://github.com/cssinjs/styled-jss/tree/v1.2.0) (2017-06-28) 138 | 139 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v1.1.3...v1.2.0) 140 | 141 | **Merged pull requests:** 142 | 143 | - Fixed issue for dynamic props update [\#28](https://github.com/cssinjs/styled-jss/pull/28) ([wellguimaraes](https://github.com/wellguimaraes)) 144 | 145 | ## [v1.1.3](https://github.com/cssinjs/styled-jss/tree/v1.1.3) (2017-06-02) 146 | 147 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v1.1.2...v1.1.3) 148 | 149 | **Closed issues:** 150 | 151 | - react-jss vs styled-jss recommendations [\#31](https://github.com/cssinjs/styled-jss/issues/31) 152 | 153 | **Merged pull requests:** 154 | 155 | - Fix lint task for .jsx [\#30](https://github.com/cssinjs/styled-jss/pull/30) ([lttb](https://github.com/lttb)) 156 | - Update Travis config [\#29](https://github.com/cssinjs/styled-jss/pull/29) ([lttb](https://github.com/lttb)) 157 | 158 | ## [v1.1.2](https://github.com/cssinjs/styled-jss/tree/v1.1.2) (2017-05-28) 159 | 160 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v1.1.1...v1.1.2) 161 | 162 | **Fixed bugs:** 163 | 164 | - Props don't work with component remount [\#26](https://github.com/cssinjs/styled-jss/issues/26) 165 | 166 | **Merged pull requests:** 167 | 168 | - Fix \#26 [\#27](https://github.com/cssinjs/styled-jss/pull/27) ([lttb](https://github.com/lttb)) 169 | 170 | ## [v1.1.1](https://github.com/cssinjs/styled-jss/tree/v1.1.1) (2017-05-28) 171 | 172 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v1.1.0...v1.1.1) 173 | 174 | ## [v1.1.0](https://github.com/cssinjs/styled-jss/tree/v1.1.0) (2017-05-28) 175 | 176 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v1.0.1...v1.1.0) 177 | 178 | **Fixed bugs:** 179 | 180 | - Function don't work with nested rules [\#23](https://github.com/cssinjs/styled-jss/issues/23) 181 | - Get rid from dynamicStyleSheet, fix nested dynamic rules [\#24](https://github.com/cssinjs/styled-jss/pull/24) ([lttb](https://github.com/lttb)) 182 | 183 | ## [v1.0.1](https://github.com/cssinjs/styled-jss/tree/v1.0.1) (2017-05-18) 184 | 185 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v1.0.0...v1.0.1) 186 | 187 | **Closed issues:** 188 | 189 | - Extend doesn't seem to work [\#21](https://github.com/cssinjs/styled-jss/issues/21) 190 | 191 | ## [v1.0.0](https://github.com/cssinjs/styled-jss/tree/v1.0.0) (2017-05-09) 192 | 193 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v0.6.3...v1.0.0) 194 | 195 | **Implemented enhancements:** 196 | 197 | - Currying interface [\#18](https://github.com/cssinjs/styled-jss/issues/18) 198 | 199 | **Merged pull requests:** 200 | 201 | - Implement currying interface, resolve \#18 [\#19](https://github.com/cssinjs/styled-jss/pull/19) ([lttb](https://github.com/lttb)) 202 | 203 | ## [v0.6.3](https://github.com/cssinjs/styled-jss/tree/v0.6.3) (2017-04-30) 204 | 205 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v0.6.2...v0.6.3) 206 | 207 | **Implemented enhancements:** 208 | 209 | - Use Component instead of PureComponent for StyledElement [\#15](https://github.com/cssinjs/styled-jss/pull/15) ([lttb](https://github.com/lttb)) 210 | 211 | ## [v0.6.2](https://github.com/cssinjs/styled-jss/tree/v0.6.2) (2017-04-30) 212 | 213 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v0.6.1...v0.6.2) 214 | 215 | **Merged pull requests:** 216 | 217 | - Rewrite filterProps and createStyled, fix tests [\#14](https://github.com/cssinjs/styled-jss/pull/14) ([lttb](https://github.com/lttb)) 218 | 219 | ## [v0.6.1](https://github.com/cssinjs/styled-jss/tree/v0.6.1) (2017-04-26) 220 | 221 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v0.6.0...v0.6.1) 222 | 223 | **Implemented enhancements:** 224 | 225 | - babel-plugin-styled-jss [\#5](https://github.com/cssinjs/styled-jss/issues/5) 226 | 227 | **Merged pull requests:** 228 | 229 | - Fix peerDependencies [\#13](https://github.com/cssinjs/styled-jss/pull/13) ([lttb](https://github.com/lttb)) 230 | 231 | ## [v0.6.0](https://github.com/cssinjs/styled-jss/tree/v0.6.0) (2017-04-26) 232 | 233 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v0.5.2...v0.6.0) 234 | 235 | **Implemented enhancements:** 236 | 237 | - Code Style: express acronyms in capital space [\#8](https://github.com/cssinjs/styled-jss/issues/8) 238 | - Improve mount performance [\#12](https://github.com/cssinjs/styled-jss/pull/12) ([lttb](https://github.com/lttb)) 239 | 240 | ## [v0.5.2](https://github.com/cssinjs/styled-jss/tree/v0.5.2) (2017-04-25) 241 | 242 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v0.5.1...v0.5.2) 243 | 244 | **Merged pull requests:** 245 | 246 | - update is-react-prop version [\#11](https://github.com/cssinjs/styled-jss/pull/11) ([tuchk4](https://github.com/tuchk4)) 247 | 248 | ## [v0.5.1](https://github.com/cssinjs/styled-jss/tree/v0.5.1) (2017-04-24) 249 | 250 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v0.5.0...v0.5.1) 251 | 252 | **Merged pull requests:** 253 | 254 | - Add Travis CI and update build [\#10](https://github.com/cssinjs/styled-jss/pull/10) ([lttb](https://github.com/lttb)) 255 | 256 | ## [v0.5.0](https://github.com/cssinjs/styled-jss/tree/v0.5.0) (2017-04-24) 257 | 258 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v0.4.0...v0.5.0) 259 | 260 | **Implemented enhancements:** 261 | 262 | - Implement injectStyled [\#4](https://github.com/cssinjs/styled-jss/issues/4) 263 | - Implement injectStyled [\#6](https://github.com/cssinjs/styled-jss/pull/6) ([lttb](https://github.com/lttb)) 264 | 265 | ## [v0.4.0](https://github.com/cssinjs/styled-jss/tree/v0.4.0) (2017-04-23) 266 | 267 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v0.3.1...v0.4.0) 268 | 269 | ## [v0.3.1](https://github.com/cssinjs/styled-jss/tree/v0.3.1) (2017-04-22) 270 | 271 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/v0.3.0...v0.3.1) 272 | 273 | ## [v0.3.0](https://github.com/cssinjs/styled-jss/tree/v0.3.0) (2017-04-21) 274 | 275 | [Full Changelog](https://github.com/cssinjs/styled-jss/compare/224e64a6c59ff9454436b90f109db33953a87263...v0.3.0) 276 | 277 | **Merged pull requests:** 278 | 279 | - Update docs, remove createStyledCreator [\#2](https://github.com/cssinjs/styled-jss/pull/2) ([lttb](https://github.com/lttb)) 280 | - Create JSS-styled prototype [\#1](https://github.com/cssinjs/styled-jss/pull/1) ([lttb](https://github.com/lttb)) 281 | 282 | 283 | 284 | \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)* -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Artur Kenzhaev 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | styled-jss 3 | 4 | 5 | # Styled Components on top of JSS 6 | 7 | [![Travis branch](https://img.shields.io/travis/cssinjs/styled-jss/master.svg?style=flat)](https://travis-ci.org/cssinjs/styled-jss) 8 | [![Coverage Status branch](https://img.shields.io/coveralls/cssinjs/styled-jss/master.svg?style=flat)](https://img.shields.io/coveralls/cssinjs/styled-jss/master.svg?branch=master) 9 | [![npm version](https://img.shields.io/npm/v/styled-jss.svg?style=flat)](https://www.npmjs.com/package/styled-jss) 10 | [![npm license](https://img.shields.io/npm/l/styled-jss.svg?style=flat)](https://www.npmjs.com/package/styled-jss) 11 | 12 | Styled-JSS implements a styled-primitives interface on top of [JSS](https://github.com/cssinjs/jss). Its API is similar to styled-components but thanks to the JSS core, it supports all features and plugins JSS does. For e.g. you can use full [JSON Syntax](https://github.com/cssinjs/jss/blob/master/docs/json-api.md) inside. 13 | 14 | Try it out on [playground](https://codesandbox.io/s/xl89zx8zz4). 15 | 16 | ## Default styled function 17 | 18 | ```js 19 | import styled from 'styled-jss' 20 | 21 | const Button = styled('button')({ 22 | fontSize: 12, 23 | color: (props) => props.theme.textColor 24 | }) 25 | 26 | // You can also use curried interface this way. 27 | const div = styled('div') 28 | 29 | const Container = div({ 30 | padding: 20 31 | }) 32 | 33 | // Composition. 34 | const PrimaryButton = styled(Button)({ 35 | color: 'red' 36 | }) 37 | 38 | // Composition with unstyled React Components too. 39 | const Button = styled(UnstyledButton)({ 40 | color: 'blue' 41 | }) 42 | 43 | // Component Selectors. 44 | const ButtonContainer = styled(Container)({ 45 | [`& ${PrimaryButton}`]: { 46 | color: 'green' 47 | } 48 | }) 49 | ``` 50 | 51 | ## Theming 52 | 53 | `styled-jss` has out of the box support for theme customization with the unified [theming](https://github.com/cssinjs/theming) package. 54 | 55 | ```js 56 | import styled, {ThemeProvider} from 'styled-jss' 57 | 58 | const Button = styled('button')(({margin, theme}) => ({ 59 | margin, 60 | color: theme.color, 61 | backgroundColor: theme.backgroundColor, 62 | })) 63 | 64 | const themes = { 65 | light: { 66 | color: 'black', 67 | backgroundColor: 'yellow', 68 | }, 69 | } 70 | 71 | const App = () => ( 72 | 73 | 74 | 75 | ) 76 | 77 | export default App 78 | ``` 79 | 80 | ## Composable styles 81 | 82 | Example on the [CodeSandbox](https://codesandbox.io/s/y0162p38lv) 83 | 84 | You can compose your style-objects and style-functions. 85 | 86 | Let's say this is our **mods.js**: 87 | 88 | ```js 89 | export const theme = ({ theme }) => ({ 90 | color: theme.colors.primary, 91 | backgroundColor: theme.colors.secondary, 92 | }) 93 | 94 | export const font = ({ bold }) => ({ 95 | font: { 96 | weight: bold ? 'bold' : 'normal', 97 | family: 'Arial', 98 | }, 99 | }) 100 | 101 | export const size = ({ size = 'm' }) => ({ 102 | s: { 103 | fontSize: 12, 104 | lineHeight: 1.2, 105 | }, 106 | m: { 107 | fontSize: 16, 108 | lineHeight: 1.5 109 | } 110 | })[size] 111 | 112 | export const rounded = ({ rounded }) => rounded && { borderRadius: 5 } 113 | ``` 114 | 115 | Now we can mix them to our **Button** Component: 116 | 117 | ```js 118 | import styled from 'styled-jss' 119 | import {theme, font, size, rounded} from 'mods' 120 | 121 | const Button = styled('button')( 122 | { 123 | border: 0, 124 | padding: [5, 10], 125 | display: 'inline-block', 126 | }, 127 | theme, 128 | font, 129 | size, 130 | rounded, 131 | ) 132 | 133 | export default Button 134 | ``` 135 | 136 | And Usage: 137 | 138 | ```js 139 | import {ThemeProvider} from 'styled-jss' 140 | import Button from './components/Button' 141 | 142 | const theme = { 143 | dark: { 144 | colors: { 145 | primary: 'white', 146 | secondary: 'purple' 147 | } 148 | } 149 | } 150 | 151 | export default () => ( 152 | 153 | 154 | 155 | 156 | 157 | 158 | ) 159 | ``` 160 | 161 | ## Base Style Sheet 162 | 163 | Using base Style Sheet we can reuse classes in the render function and inside of a styled component. 164 | 165 | ```js 166 | import { Styled, injectStyled } from 'styled-jss' 167 | 168 | // Base styles, like a regular jss object. 169 | const styled = Styled({ 170 | root: { 171 | margin: 10, 172 | '& $baseButton': { 173 | fontSize: 16 174 | } 175 | }, 176 | baseButton: { 177 | padding: 10, 178 | '& + &': { 179 | marginLeft: 10 180 | } 181 | } 182 | }) 183 | 184 | const NormalButton = styled('button')({ 185 | composes: '$baseButton', 186 | border: [1, 'solid', 'grey'], 187 | color: 'black' 188 | }) 189 | 190 | // Composition - same way. 191 | const PrimaryButton = styled(NormalButton)({ 192 | color: 'red' 193 | }) 194 | 195 | // One can use classes AND styled primitives. 196 | const MyComponent = ({classes}) => ( 197 |
198 | normal button 199 | primary button 200 |
201 | ) 202 | 203 | const MyStyledComponent = injectStyled(styled)(MyComponent) 204 | ``` 205 | 206 | ## Custom JSS setup 207 | 208 | Styled-JSS uses [jss-preset-default](https://github.com/cssinjs/jss/tree/master/packages/jss-preset-default) by default. You can require `createStyled` function and provide your custom JSS instance. 209 | 210 | ```js 211 | import { create as createJss } from 'jss' 212 | import vendorPrefixer from 'jss-vendor-prefixer' 213 | import createStyled from 'styled-jss/createStyled' 214 | 215 | const jss = createJss() 216 | jss.use(vendorPrefixer()) 217 | 218 | // Create a custom Styled function, that allows to set BaseStyles. 219 | export const Styled = createStyled(jss) 220 | 221 | // Create a custom styled function that allows to create styled components. 222 | const styled = Styled() 223 | 224 | export default styled 225 | ``` 226 | 227 | ## Install 228 | 229 | ```sh 230 | npm install --save styled-jss 231 | ``` 232 | 233 | Install peer dependencies `react` and `react-dom` in your project. 234 | 235 | ## License 236 | 237 | MIT 238 | -------------------------------------------------------------------------------- /flow-typed/npm/@lttb/eslint-config-default_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 247bd0f0fb67c476dd58bf82ba5163ed 2 | // flow-typed version: <>/@lttb/eslint-config-default_vgithub:lttb/configs#js/flow_v0.44.2 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@lttb/eslint-config-default' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@lttb/eslint-config-default' { 17 | declare module.exports: any; 18 | } 19 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-cli_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 45660148c1072407a12908e4a58550b5 2 | // flow-typed version: <>/babel-cli_v^6.26.0/flow_v0.56.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-cli' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'babel-cli' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'babel-cli/bin/babel-doctor' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'babel-cli/bin/babel-external-helpers' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'babel-cli/bin/babel-node' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'babel-cli/bin/babel' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'babel-cli/lib/_babel-node' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'babel-cli/lib/babel-external-helpers' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'babel-cli/lib/babel-node' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'babel-cli/lib/babel/dir' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'babel-cli/lib/babel/file' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'babel-cli/lib/babel/index' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'babel-cli/lib/babel/util' { 66 | declare module.exports: any; 67 | } 68 | 69 | // Filename aliases 70 | declare module 'babel-cli/bin/babel-doctor.js' { 71 | declare module.exports: $Exports<'babel-cli/bin/babel-doctor'>; 72 | } 73 | declare module 'babel-cli/bin/babel-external-helpers.js' { 74 | declare module.exports: $Exports<'babel-cli/bin/babel-external-helpers'>; 75 | } 76 | declare module 'babel-cli/bin/babel-node.js' { 77 | declare module.exports: $Exports<'babel-cli/bin/babel-node'>; 78 | } 79 | declare module 'babel-cli/bin/babel.js' { 80 | declare module.exports: $Exports<'babel-cli/bin/babel'>; 81 | } 82 | declare module 'babel-cli/index' { 83 | declare module.exports: $Exports<'babel-cli'>; 84 | } 85 | declare module 'babel-cli/index.js' { 86 | declare module.exports: $Exports<'babel-cli'>; 87 | } 88 | declare module 'babel-cli/lib/_babel-node.js' { 89 | declare module.exports: $Exports<'babel-cli/lib/_babel-node'>; 90 | } 91 | declare module 'babel-cli/lib/babel-external-helpers.js' { 92 | declare module.exports: $Exports<'babel-cli/lib/babel-external-helpers'>; 93 | } 94 | declare module 'babel-cli/lib/babel-node.js' { 95 | declare module.exports: $Exports<'babel-cli/lib/babel-node'>; 96 | } 97 | declare module 'babel-cli/lib/babel/dir.js' { 98 | declare module.exports: $Exports<'babel-cli/lib/babel/dir'>; 99 | } 100 | declare module 'babel-cli/lib/babel/file.js' { 101 | declare module.exports: $Exports<'babel-cli/lib/babel/file'>; 102 | } 103 | declare module 'babel-cli/lib/babel/index.js' { 104 | declare module.exports: $Exports<'babel-cli/lib/babel/index'>; 105 | } 106 | declare module 'babel-cli/lib/babel/util.js' { 107 | declare module.exports: $Exports<'babel-cli/lib/babel/util'>; 108 | } 109 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-core_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: e170ae7946934c3818270e0627bf3a9d 2 | // flow-typed version: <>/babel-core_v^6.26.0/flow_v0.56.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-core' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'babel-core' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'babel-core/lib/api/browser' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'babel-core/lib/api/node' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'babel-core/lib/helpers/get-possible-plugin-names' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'babel-core/lib/helpers/get-possible-preset-names' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'babel-core/lib/helpers/merge' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'babel-core/lib/helpers/normalize-ast' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'babel-core/lib/helpers/resolve-from-possible-names' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'babel-core/lib/helpers/resolve-plugin' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'babel-core/lib/helpers/resolve-preset' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'babel-core/lib/helpers/resolve' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'babel-core/lib/store' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'babel-core/lib/tools/build-external-helpers' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'babel-core/lib/transformation/file/index' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'babel-core/lib/transformation/file/logger' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'babel-core/lib/transformation/file/metadata' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'babel-core/lib/transformation/file/options/build-config-chain' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module 'babel-core/lib/transformation/file/options/config' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module 'babel-core/lib/transformation/file/options/index' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module 'babel-core/lib/transformation/file/options/option-manager' { 98 | declare module.exports: any; 99 | } 100 | 101 | declare module 'babel-core/lib/transformation/file/options/parsers' { 102 | declare module.exports: any; 103 | } 104 | 105 | declare module 'babel-core/lib/transformation/file/options/removed' { 106 | declare module.exports: any; 107 | } 108 | 109 | declare module 'babel-core/lib/transformation/internal-plugins/block-hoist' { 110 | declare module.exports: any; 111 | } 112 | 113 | declare module 'babel-core/lib/transformation/internal-plugins/shadow-functions' { 114 | declare module.exports: any; 115 | } 116 | 117 | declare module 'babel-core/lib/transformation/pipeline' { 118 | declare module.exports: any; 119 | } 120 | 121 | declare module 'babel-core/lib/transformation/plugin-pass' { 122 | declare module.exports: any; 123 | } 124 | 125 | declare module 'babel-core/lib/transformation/plugin' { 126 | declare module.exports: any; 127 | } 128 | 129 | declare module 'babel-core/lib/util' { 130 | declare module.exports: any; 131 | } 132 | 133 | declare module 'babel-core/register' { 134 | declare module.exports: any; 135 | } 136 | 137 | // Filename aliases 138 | declare module 'babel-core/index' { 139 | declare module.exports: $Exports<'babel-core'>; 140 | } 141 | declare module 'babel-core/index.js' { 142 | declare module.exports: $Exports<'babel-core'>; 143 | } 144 | declare module 'babel-core/lib/api/browser.js' { 145 | declare module.exports: $Exports<'babel-core/lib/api/browser'>; 146 | } 147 | declare module 'babel-core/lib/api/node.js' { 148 | declare module.exports: $Exports<'babel-core/lib/api/node'>; 149 | } 150 | declare module 'babel-core/lib/helpers/get-possible-plugin-names.js' { 151 | declare module.exports: $Exports<'babel-core/lib/helpers/get-possible-plugin-names'>; 152 | } 153 | declare module 'babel-core/lib/helpers/get-possible-preset-names.js' { 154 | declare module.exports: $Exports<'babel-core/lib/helpers/get-possible-preset-names'>; 155 | } 156 | declare module 'babel-core/lib/helpers/merge.js' { 157 | declare module.exports: $Exports<'babel-core/lib/helpers/merge'>; 158 | } 159 | declare module 'babel-core/lib/helpers/normalize-ast.js' { 160 | declare module.exports: $Exports<'babel-core/lib/helpers/normalize-ast'>; 161 | } 162 | declare module 'babel-core/lib/helpers/resolve-from-possible-names.js' { 163 | declare module.exports: $Exports<'babel-core/lib/helpers/resolve-from-possible-names'>; 164 | } 165 | declare module 'babel-core/lib/helpers/resolve-plugin.js' { 166 | declare module.exports: $Exports<'babel-core/lib/helpers/resolve-plugin'>; 167 | } 168 | declare module 'babel-core/lib/helpers/resolve-preset.js' { 169 | declare module.exports: $Exports<'babel-core/lib/helpers/resolve-preset'>; 170 | } 171 | declare module 'babel-core/lib/helpers/resolve.js' { 172 | declare module.exports: $Exports<'babel-core/lib/helpers/resolve'>; 173 | } 174 | declare module 'babel-core/lib/store.js' { 175 | declare module.exports: $Exports<'babel-core/lib/store'>; 176 | } 177 | declare module 'babel-core/lib/tools/build-external-helpers.js' { 178 | declare module.exports: $Exports<'babel-core/lib/tools/build-external-helpers'>; 179 | } 180 | declare module 'babel-core/lib/transformation/file/index.js' { 181 | declare module.exports: $Exports<'babel-core/lib/transformation/file/index'>; 182 | } 183 | declare module 'babel-core/lib/transformation/file/logger.js' { 184 | declare module.exports: $Exports<'babel-core/lib/transformation/file/logger'>; 185 | } 186 | declare module 'babel-core/lib/transformation/file/metadata.js' { 187 | declare module.exports: $Exports<'babel-core/lib/transformation/file/metadata'>; 188 | } 189 | declare module 'babel-core/lib/transformation/file/options/build-config-chain.js' { 190 | declare module.exports: $Exports<'babel-core/lib/transformation/file/options/build-config-chain'>; 191 | } 192 | declare module 'babel-core/lib/transformation/file/options/config.js' { 193 | declare module.exports: $Exports<'babel-core/lib/transformation/file/options/config'>; 194 | } 195 | declare module 'babel-core/lib/transformation/file/options/index.js' { 196 | declare module.exports: $Exports<'babel-core/lib/transformation/file/options/index'>; 197 | } 198 | declare module 'babel-core/lib/transformation/file/options/option-manager.js' { 199 | declare module.exports: $Exports<'babel-core/lib/transformation/file/options/option-manager'>; 200 | } 201 | declare module 'babel-core/lib/transformation/file/options/parsers.js' { 202 | declare module.exports: $Exports<'babel-core/lib/transformation/file/options/parsers'>; 203 | } 204 | declare module 'babel-core/lib/transformation/file/options/removed.js' { 205 | declare module.exports: $Exports<'babel-core/lib/transformation/file/options/removed'>; 206 | } 207 | declare module 'babel-core/lib/transformation/internal-plugins/block-hoist.js' { 208 | declare module.exports: $Exports<'babel-core/lib/transformation/internal-plugins/block-hoist'>; 209 | } 210 | declare module 'babel-core/lib/transformation/internal-plugins/shadow-functions.js' { 211 | declare module.exports: $Exports<'babel-core/lib/transformation/internal-plugins/shadow-functions'>; 212 | } 213 | declare module 'babel-core/lib/transformation/pipeline.js' { 214 | declare module.exports: $Exports<'babel-core/lib/transformation/pipeline'>; 215 | } 216 | declare module 'babel-core/lib/transformation/plugin-pass.js' { 217 | declare module.exports: $Exports<'babel-core/lib/transformation/plugin-pass'>; 218 | } 219 | declare module 'babel-core/lib/transformation/plugin.js' { 220 | declare module.exports: $Exports<'babel-core/lib/transformation/plugin'>; 221 | } 222 | declare module 'babel-core/lib/util.js' { 223 | declare module.exports: $Exports<'babel-core/lib/util'>; 224 | } 225 | declare module 'babel-core/register.js' { 226 | declare module.exports: $Exports<'babel-core/register'>; 227 | } 228 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-eslint_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 65c9f1430648fbaf06abeea3169ff3da 2 | // flow-typed version: <>/babel-eslint_v^8.0.1/flow_v0.56.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-eslint' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'babel-eslint' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'babel-eslint/babylon-to-espree/attachComments' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'babel-eslint/babylon-to-espree/convertComments' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'babel-eslint/babylon-to-espree/convertTemplateType' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'babel-eslint/babylon-to-espree/index' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'babel-eslint/babylon-to-espree/toAST' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'babel-eslint/babylon-to-espree/toToken' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'babel-eslint/babylon-to-espree/toTokens' { 50 | declare module.exports: any; 51 | } 52 | 53 | // Filename aliases 54 | declare module 'babel-eslint/babylon-to-espree/attachComments.js' { 55 | declare module.exports: $Exports<'babel-eslint/babylon-to-espree/attachComments'>; 56 | } 57 | declare module 'babel-eslint/babylon-to-espree/convertComments.js' { 58 | declare module.exports: $Exports<'babel-eslint/babylon-to-espree/convertComments'>; 59 | } 60 | declare module 'babel-eslint/babylon-to-espree/convertTemplateType.js' { 61 | declare module.exports: $Exports<'babel-eslint/babylon-to-espree/convertTemplateType'>; 62 | } 63 | declare module 'babel-eslint/babylon-to-espree/index.js' { 64 | declare module.exports: $Exports<'babel-eslint/babylon-to-espree/index'>; 65 | } 66 | declare module 'babel-eslint/babylon-to-espree/toAST.js' { 67 | declare module.exports: $Exports<'babel-eslint/babylon-to-espree/toAST'>; 68 | } 69 | declare module 'babel-eslint/babylon-to-espree/toToken.js' { 70 | declare module.exports: $Exports<'babel-eslint/babylon-to-espree/toToken'>; 71 | } 72 | declare module 'babel-eslint/babylon-to-espree/toTokens.js' { 73 | declare module.exports: $Exports<'babel-eslint/babylon-to-espree/toTokens'>; 74 | } 75 | declare module 'babel-eslint/index' { 76 | declare module.exports: $Exports<'babel-eslint'>; 77 | } 78 | declare module 'babel-eslint/index.js' { 79 | declare module.exports: $Exports<'babel-eslint'>; 80 | } 81 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-plugin-transform-class-properties_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: cf3bc0356d67782191b2b36d97d81970 2 | // flow-typed version: <>/babel-plugin-transform-class-properties_v^6.23.0/flow_v0.56.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-plugin-transform-class-properties' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'babel-plugin-transform-class-properties' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'babel-plugin-transform-class-properties/lib/index' { 26 | declare module.exports: any; 27 | } 28 | 29 | // Filename aliases 30 | declare module 'babel-plugin-transform-class-properties/lib/index.js' { 31 | declare module.exports: $Exports<'babel-plugin-transform-class-properties/lib/index'>; 32 | } 33 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-plugin-transform-es2015-modules-commonjs_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 778c89c5b09912aa4329fa2cf6c1a6c6 2 | // flow-typed version: <>/babel-plugin-transform-es2015-modules-commonjs_v^6.23.0/flow_v0.44.2 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-plugin-transform-es2015-modules-commonjs' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'babel-plugin-transform-es2015-modules-commonjs' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'babel-plugin-transform-es2015-modules-commonjs/lib/index' { 26 | declare module.exports: any; 27 | } 28 | 29 | // Filename aliases 30 | declare module 'babel-plugin-transform-es2015-modules-commonjs/lib/index.js' { 31 | declare module.exports: $Exports<'babel-plugin-transform-es2015-modules-commonjs/lib/index'>; 32 | } 33 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-plugin-transform-object-rest-spread_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: c79ae7b10f85a37814a90523174e0236 2 | // flow-typed version: <>/babel-plugin-transform-object-rest-spread_v^6.26.0/flow_v0.56.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-plugin-transform-object-rest-spread' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'babel-plugin-transform-object-rest-spread' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'babel-plugin-transform-object-rest-spread/lib/index' { 26 | declare module.exports: any; 27 | } 28 | 29 | // Filename aliases 30 | declare module 'babel-plugin-transform-object-rest-spread/lib/index.js' { 31 | declare module.exports: $Exports<'babel-plugin-transform-object-rest-spread/lib/index'>; 32 | } 33 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-preset-react_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: bff1985ae6b9c7e669a20f154f7e94dd 2 | // flow-typed version: <>/babel-preset-react_v^6.23.0/flow_v0.56.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-preset-react' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'babel-preset-react' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'babel-preset-react/lib/index' { 26 | declare module.exports: any; 27 | } 28 | 29 | // Filename aliases 30 | declare module 'babel-preset-react/lib/index.js' { 31 | declare module.exports: $Exports<'babel-preset-react/lib/index'>; 32 | } 33 | -------------------------------------------------------------------------------- /flow-typed/npm/enzyme-adapter-react-16_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: d04faa5466057868764e4f44d922918e 2 | // flow-typed version: <>/enzyme-adapter-react-16_v^1.0.1/flow_v0.56.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'enzyme-adapter-react-16' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'enzyme-adapter-react-16' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'enzyme-adapter-react-16/build/findCurrentFiberUsingSlowPath' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'enzyme-adapter-react-16/build/index' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'enzyme-adapter-react-16/build/ReactSixteenAdapter' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'enzyme-adapter-react-16/src/findCurrentFiberUsingSlowPath' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'enzyme-adapter-react-16/src/index' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'enzyme-adapter-react-16/src/ReactSixteenAdapter' { 46 | declare module.exports: any; 47 | } 48 | 49 | // Filename aliases 50 | declare module 'enzyme-adapter-react-16/build/findCurrentFiberUsingSlowPath.js' { 51 | declare module.exports: $Exports<'enzyme-adapter-react-16/build/findCurrentFiberUsingSlowPath'>; 52 | } 53 | declare module 'enzyme-adapter-react-16/build/index.js' { 54 | declare module.exports: $Exports<'enzyme-adapter-react-16/build/index'>; 55 | } 56 | declare module 'enzyme-adapter-react-16/build/ReactSixteenAdapter.js' { 57 | declare module.exports: $Exports<'enzyme-adapter-react-16/build/ReactSixteenAdapter'>; 58 | } 59 | declare module 'enzyme-adapter-react-16/src/findCurrentFiberUsingSlowPath.js' { 60 | declare module.exports: $Exports<'enzyme-adapter-react-16/src/findCurrentFiberUsingSlowPath'>; 61 | } 62 | declare module 'enzyme-adapter-react-16/src/index.js' { 63 | declare module.exports: $Exports<'enzyme-adapter-react-16/src/index'>; 64 | } 65 | declare module 'enzyme-adapter-react-16/src/ReactSixteenAdapter.js' { 66 | declare module.exports: $Exports<'enzyme-adapter-react-16/src/ReactSixteenAdapter'>; 67 | } 68 | -------------------------------------------------------------------------------- /flow-typed/npm/enzyme_v3.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: a18e8395a43c22fe55906624f2a7ddb9 2 | // flow-typed version: e351e417db/enzyme_v3.x.x/flow_>=v0.53.x 3 | 4 | import * as React from "react"; 5 | 6 | declare module "enzyme" { 7 | declare type PredicateFunction = ( 8 | wrapper: T, 9 | index: number 10 | ) => boolean; 11 | declare type NodeOrNodes = React.Node | Array; 12 | declare type EnzymeSelector = string | Class> | Object; 13 | 14 | // CheerioWrapper is a type alias for an actual cheerio instance 15 | // TODO: Reference correct type from cheerio's type declarations 16 | declare type CheerioWrapper = any; 17 | 18 | declare class Wrapper { 19 | find(selector: EnzymeSelector): this, 20 | findWhere(predicate: PredicateFunction): this, 21 | filter(selector: EnzymeSelector): this, 22 | filterWhere(predicate: PredicateFunction): this, 23 | contains(nodeOrNodes: NodeOrNodes): boolean, 24 | containsMatchingElement(node: React.Node): boolean, 25 | containsAllMatchingElements(nodes: NodeOrNodes): boolean, 26 | containsAnyMatchingElements(nodes: NodeOrNodes): boolean, 27 | dive(option?: { context?: Object }): this, 28 | exists(): boolean, 29 | matchesElement(node: React.Node): boolean, 30 | hasClass(className: string): boolean, 31 | is(selector: EnzymeSelector): boolean, 32 | isEmpty(): boolean, 33 | not(selector: EnzymeSelector): this, 34 | children(selector?: EnzymeSelector): this, 35 | childAt(index: number): this, 36 | parents(selector?: EnzymeSelector): this, 37 | parent(): this, 38 | closest(selector: EnzymeSelector): this, 39 | render(): CheerioWrapper, 40 | unmount(): this, 41 | text(): string, 42 | html(): string, 43 | get(index: number): React.Node, 44 | getNodes(): Array, 45 | getDOMNode(): HTMLElement | HTMLInputElement, 46 | at(index: number): this, 47 | first(): this, 48 | last(): this, 49 | state(key?: string): any, 50 | context(key?: string): any, 51 | props(): Object, 52 | prop(key: string): any, 53 | key(): string, 54 | simulate(event: string, ...args: Array): this, 55 | setState(state: {}, callback?: Function): this, 56 | setProps(props: {}): this, 57 | setContext(context: Object): this, 58 | instance(): React.Component<*, *>, 59 | update(): this, 60 | debug(): string, 61 | type(): string | Function | null, 62 | name(): string, 63 | forEach(fn: (node: this, index: number) => mixed): this, 64 | map(fn: (node: this, index: number) => T): Array, 65 | reduce( 66 | fn: (value: T, node: this, index: number) => T, 67 | initialValue?: T 68 | ): Array, 69 | reduceRight( 70 | fn: (value: T, node: this, index: number) => T, 71 | initialValue?: T 72 | ): Array, 73 | some(selector: EnzymeSelector): boolean, 74 | someWhere(predicate: PredicateFunction): boolean, 75 | every(selector: EnzymeSelector): boolean, 76 | everyWhere(predicate: PredicateFunction): boolean, 77 | length: number 78 | } 79 | 80 | declare class ReactWrapper extends Wrapper { 81 | constructor(nodes: NodeOrNodes, root: any, options?: ?Object): ReactWrapper, 82 | mount(): this, 83 | ref(refName: string): this, 84 | detach(): void 85 | } 86 | 87 | declare class ShallowWrapper extends Wrapper { 88 | constructor( 89 | nodes: NodeOrNodes, 90 | root: any, 91 | options?: ?Object 92 | ): ShallowWrapper, 93 | equals(node: React.Node): boolean, 94 | shallow(options?: { context?: Object }): ShallowWrapper 95 | } 96 | 97 | declare function shallow( 98 | node: React.Node, 99 | options?: { context?: Object, disableLifecycleMethods?: boolean } 100 | ): ShallowWrapper; 101 | declare function mount( 102 | node: React.Node, 103 | options?: { 104 | context?: Object, 105 | attachTo?: HTMLElement, 106 | childContextTypes?: Object 107 | } 108 | ): ReactWrapper; 109 | declare function render( 110 | node: React.Node, 111 | options?: { context?: Object } 112 | ): CheerioWrapper; 113 | 114 | declare module.exports: { 115 | configure(options: { 116 | Adapter?: any, 117 | disableLifecycleMethods?: boolean 118 | }): void, 119 | render: typeof render, 120 | mount: typeof mount, 121 | shallow: typeof shallow, 122 | ShallowWrapper: typeof ShallowWrapper, 123 | ReactWrapper: typeof ReactWrapper 124 | }; 125 | } 126 | -------------------------------------------------------------------------------- /flow-typed/npm/enzyme_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 73f80e6959ae24525007e9f8829f4f9d 2 | // flow-typed version: <>/enzyme_v2.8.2/flow_v0.44.2 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'enzyme' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'enzyme' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'enzyme/build/ComplexSelector' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'enzyme/build/Debug' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'enzyme/build/index' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'enzyme/build/mount' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'enzyme/build/MountedTraversal' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'enzyme/build/react-compat' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'enzyme/build/ReactWrapper' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'enzyme/build/ReactWrapperComponent' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'enzyme/build/render' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'enzyme/build/shallow' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'enzyme/build/ShallowTraversal' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'enzyme/build/ShallowWrapper' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'enzyme/build/Utils' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'enzyme/build/version' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'enzyme/karma.conf' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'enzyme/mount' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module 'enzyme/ReactWrapper' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module 'enzyme/render' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module 'enzyme/shallow' { 98 | declare module.exports: any; 99 | } 100 | 101 | declare module 'enzyme/ShallowWrapper' { 102 | declare module.exports: any; 103 | } 104 | 105 | declare module 'enzyme/src/ComplexSelector' { 106 | declare module.exports: any; 107 | } 108 | 109 | declare module 'enzyme/src/Debug' { 110 | declare module.exports: any; 111 | } 112 | 113 | declare module 'enzyme/src/index' { 114 | declare module.exports: any; 115 | } 116 | 117 | declare module 'enzyme/src/mount' { 118 | declare module.exports: any; 119 | } 120 | 121 | declare module 'enzyme/src/MountedTraversal' { 122 | declare module.exports: any; 123 | } 124 | 125 | declare module 'enzyme/src/react-compat' { 126 | declare module.exports: any; 127 | } 128 | 129 | declare module 'enzyme/src/ReactWrapper' { 130 | declare module.exports: any; 131 | } 132 | 133 | declare module 'enzyme/src/ReactWrapperComponent' { 134 | declare module.exports: any; 135 | } 136 | 137 | declare module 'enzyme/src/render' { 138 | declare module.exports: any; 139 | } 140 | 141 | declare module 'enzyme/src/shallow' { 142 | declare module.exports: any; 143 | } 144 | 145 | declare module 'enzyme/src/ShallowTraversal' { 146 | declare module.exports: any; 147 | } 148 | 149 | declare module 'enzyme/src/ShallowWrapper' { 150 | declare module.exports: any; 151 | } 152 | 153 | declare module 'enzyme/src/Utils' { 154 | declare module.exports: any; 155 | } 156 | 157 | declare module 'enzyme/src/version' { 158 | declare module.exports: any; 159 | } 160 | 161 | declare module 'enzyme/test/_helpers/index' { 162 | declare module.exports: any; 163 | } 164 | 165 | declare module 'enzyme/test/_helpers/react-compat' { 166 | declare module.exports: any; 167 | } 168 | 169 | declare module 'enzyme/test/ComplexSelector-spec' { 170 | declare module.exports: any; 171 | } 172 | 173 | declare module 'enzyme/test/Debug-spec' { 174 | declare module.exports: any; 175 | } 176 | 177 | declare module 'enzyme/test/ReactWrapper-spec' { 178 | declare module.exports: any; 179 | } 180 | 181 | declare module 'enzyme/test/ShallowTraversal-spec' { 182 | declare module.exports: any; 183 | } 184 | 185 | declare module 'enzyme/test/ShallowWrapper-spec' { 186 | declare module.exports: any; 187 | } 188 | 189 | declare module 'enzyme/test/staticRender-spec' { 190 | declare module.exports: any; 191 | } 192 | 193 | declare module 'enzyme/test/Utils-spec' { 194 | declare module.exports: any; 195 | } 196 | 197 | declare module 'enzyme/withDom' { 198 | declare module.exports: any; 199 | } 200 | 201 | // Filename aliases 202 | declare module 'enzyme/build/ComplexSelector.js' { 203 | declare module.exports: $Exports<'enzyme/build/ComplexSelector'>; 204 | } 205 | declare module 'enzyme/build/Debug.js' { 206 | declare module.exports: $Exports<'enzyme/build/Debug'>; 207 | } 208 | declare module 'enzyme/build/index.js' { 209 | declare module.exports: $Exports<'enzyme/build/index'>; 210 | } 211 | declare module 'enzyme/build/mount.js' { 212 | declare module.exports: $Exports<'enzyme/build/mount'>; 213 | } 214 | declare module 'enzyme/build/MountedTraversal.js' { 215 | declare module.exports: $Exports<'enzyme/build/MountedTraversal'>; 216 | } 217 | declare module 'enzyme/build/react-compat.js' { 218 | declare module.exports: $Exports<'enzyme/build/react-compat'>; 219 | } 220 | declare module 'enzyme/build/ReactWrapper.js' { 221 | declare module.exports: $Exports<'enzyme/build/ReactWrapper'>; 222 | } 223 | declare module 'enzyme/build/ReactWrapperComponent.js' { 224 | declare module.exports: $Exports<'enzyme/build/ReactWrapperComponent'>; 225 | } 226 | declare module 'enzyme/build/render.js' { 227 | declare module.exports: $Exports<'enzyme/build/render'>; 228 | } 229 | declare module 'enzyme/build/shallow.js' { 230 | declare module.exports: $Exports<'enzyme/build/shallow'>; 231 | } 232 | declare module 'enzyme/build/ShallowTraversal.js' { 233 | declare module.exports: $Exports<'enzyme/build/ShallowTraversal'>; 234 | } 235 | declare module 'enzyme/build/ShallowWrapper.js' { 236 | declare module.exports: $Exports<'enzyme/build/ShallowWrapper'>; 237 | } 238 | declare module 'enzyme/build/Utils.js' { 239 | declare module.exports: $Exports<'enzyme/build/Utils'>; 240 | } 241 | declare module 'enzyme/build/version.js' { 242 | declare module.exports: $Exports<'enzyme/build/version'>; 243 | } 244 | declare module 'enzyme/karma.conf.js' { 245 | declare module.exports: $Exports<'enzyme/karma.conf'>; 246 | } 247 | declare module 'enzyme/mount.js' { 248 | declare module.exports: $Exports<'enzyme/mount'>; 249 | } 250 | declare module 'enzyme/ReactWrapper.js' { 251 | declare module.exports: $Exports<'enzyme/ReactWrapper'>; 252 | } 253 | declare module 'enzyme/render.js' { 254 | declare module.exports: $Exports<'enzyme/render'>; 255 | } 256 | declare module 'enzyme/shallow.js' { 257 | declare module.exports: $Exports<'enzyme/shallow'>; 258 | } 259 | declare module 'enzyme/ShallowWrapper.js' { 260 | declare module.exports: $Exports<'enzyme/ShallowWrapper'>; 261 | } 262 | declare module 'enzyme/src/ComplexSelector.js' { 263 | declare module.exports: $Exports<'enzyme/src/ComplexSelector'>; 264 | } 265 | declare module 'enzyme/src/Debug.js' { 266 | declare module.exports: $Exports<'enzyme/src/Debug'>; 267 | } 268 | declare module 'enzyme/src/index.js' { 269 | declare module.exports: $Exports<'enzyme/src/index'>; 270 | } 271 | declare module 'enzyme/src/mount.js' { 272 | declare module.exports: $Exports<'enzyme/src/mount'>; 273 | } 274 | declare module 'enzyme/src/MountedTraversal.js' { 275 | declare module.exports: $Exports<'enzyme/src/MountedTraversal'>; 276 | } 277 | declare module 'enzyme/src/react-compat.js' { 278 | declare module.exports: $Exports<'enzyme/src/react-compat'>; 279 | } 280 | declare module 'enzyme/src/ReactWrapper.jsx' { 281 | declare module.exports: $Exports<'enzyme/src/ReactWrapper'>; 282 | } 283 | declare module 'enzyme/src/ReactWrapperComponent.jsx' { 284 | declare module.exports: $Exports<'enzyme/src/ReactWrapperComponent'>; 285 | } 286 | declare module 'enzyme/src/render.jsx' { 287 | declare module.exports: $Exports<'enzyme/src/render'>; 288 | } 289 | declare module 'enzyme/src/shallow.js' { 290 | declare module.exports: $Exports<'enzyme/src/shallow'>; 291 | } 292 | declare module 'enzyme/src/ShallowTraversal.js' { 293 | declare module.exports: $Exports<'enzyme/src/ShallowTraversal'>; 294 | } 295 | declare module 'enzyme/src/ShallowWrapper.js' { 296 | declare module.exports: $Exports<'enzyme/src/ShallowWrapper'>; 297 | } 298 | declare module 'enzyme/src/Utils.js' { 299 | declare module.exports: $Exports<'enzyme/src/Utils'>; 300 | } 301 | declare module 'enzyme/src/version.js' { 302 | declare module.exports: $Exports<'enzyme/src/version'>; 303 | } 304 | declare module 'enzyme/test/_helpers/index.jsx' { 305 | declare module.exports: $Exports<'enzyme/test/_helpers/index'>; 306 | } 307 | declare module 'enzyme/test/_helpers/react-compat.js' { 308 | declare module.exports: $Exports<'enzyme/test/_helpers/react-compat'>; 309 | } 310 | declare module 'enzyme/test/ComplexSelector-spec.jsx' { 311 | declare module.exports: $Exports<'enzyme/test/ComplexSelector-spec'>; 312 | } 313 | declare module 'enzyme/test/Debug-spec.jsx' { 314 | declare module.exports: $Exports<'enzyme/test/Debug-spec'>; 315 | } 316 | declare module 'enzyme/test/ReactWrapper-spec.jsx' { 317 | declare module.exports: $Exports<'enzyme/test/ReactWrapper-spec'>; 318 | } 319 | declare module 'enzyme/test/ShallowTraversal-spec.jsx' { 320 | declare module.exports: $Exports<'enzyme/test/ShallowTraversal-spec'>; 321 | } 322 | declare module 'enzyme/test/ShallowWrapper-spec.jsx' { 323 | declare module.exports: $Exports<'enzyme/test/ShallowWrapper-spec'>; 324 | } 325 | declare module 'enzyme/test/staticRender-spec.jsx' { 326 | declare module.exports: $Exports<'enzyme/test/staticRender-spec'>; 327 | } 328 | declare module 'enzyme/test/Utils-spec.jsx' { 329 | declare module.exports: $Exports<'enzyme/test/Utils-spec'>; 330 | } 331 | declare module 'enzyme/withDom.js' { 332 | declare module.exports: $Exports<'enzyme/withDom'>; 333 | } 334 | -------------------------------------------------------------------------------- /flow-typed/npm/eslint-config-airbnb_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 5f7491279c78c925f139ed87b321b884 2 | // flow-typed version: <>/eslint-config-airbnb_v^14.1.0/flow_v0.56.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'eslint-config-airbnb' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'eslint-config-airbnb' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'eslint-config-airbnb/base' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'eslint-config-airbnb/legacy' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'eslint-config-airbnb/rules/react-a11y' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'eslint-config-airbnb/rules/react' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'eslint-config-airbnb/test/test-base' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'eslint-config-airbnb/test/test-react-order' { 46 | declare module.exports: any; 47 | } 48 | 49 | // Filename aliases 50 | declare module 'eslint-config-airbnb/base.js' { 51 | declare module.exports: $Exports<'eslint-config-airbnb/base'>; 52 | } 53 | declare module 'eslint-config-airbnb/index' { 54 | declare module.exports: $Exports<'eslint-config-airbnb'>; 55 | } 56 | declare module 'eslint-config-airbnb/index.js' { 57 | declare module.exports: $Exports<'eslint-config-airbnb'>; 58 | } 59 | declare module 'eslint-config-airbnb/legacy.js' { 60 | declare module.exports: $Exports<'eslint-config-airbnb/legacy'>; 61 | } 62 | declare module 'eslint-config-airbnb/rules/react-a11y.js' { 63 | declare module.exports: $Exports<'eslint-config-airbnb/rules/react-a11y'>; 64 | } 65 | declare module 'eslint-config-airbnb/rules/react.js' { 66 | declare module.exports: $Exports<'eslint-config-airbnb/rules/react'>; 67 | } 68 | declare module 'eslint-config-airbnb/test/test-base.js' { 69 | declare module.exports: $Exports<'eslint-config-airbnb/test/test-base'>; 70 | } 71 | declare module 'eslint-config-airbnb/test/test-react-order.js' { 72 | declare module.exports: $Exports<'eslint-config-airbnb/test/test-react-order'>; 73 | } 74 | -------------------------------------------------------------------------------- /flow-typed/npm/eslint-config-jss_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 34140f16a8448b221b96e19e3b4a468d 2 | // flow-typed version: <>/eslint-config-jss_v^3.0.0/flow_v0.56.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'eslint-config-jss' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'eslint-config-jss' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | 26 | 27 | // Filename aliases 28 | declare module 'eslint-config-jss/index' { 29 | declare module.exports: $Exports<'eslint-config-jss'>; 30 | } 31 | declare module 'eslint-config-jss/index.js' { 32 | declare module.exports: $Exports<'eslint-config-jss'>; 33 | } 34 | -------------------------------------------------------------------------------- /flow-typed/npm/eslint-plugin-import_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 75472699afd70d75a4cb1e39aa19a66f 2 | // flow-typed version: <>/eslint-plugin-import_v^2.2.0/flow_v0.56.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'eslint-plugin-import' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'eslint-plugin-import' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'eslint-plugin-import/config/electron' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'eslint-plugin-import/config/errors' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'eslint-plugin-import/config/react-native' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'eslint-plugin-import/config/react' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'eslint-plugin-import/config/recommended' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'eslint-plugin-import/config/stage-0' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'eslint-plugin-import/config/warnings' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'eslint-plugin-import/lib/core/importType' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'eslint-plugin-import/lib/core/staticRequire' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'eslint-plugin-import/lib/ExportMap' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'eslint-plugin-import/lib/importDeclaration' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'eslint-plugin-import/lib/index' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'eslint-plugin-import/lib/rules/default' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'eslint-plugin-import/lib/rules/export' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'eslint-plugin-import/lib/rules/extensions' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'eslint-plugin-import/lib/rules/first' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module 'eslint-plugin-import/lib/rules/imports-first' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module 'eslint-plugin-import/lib/rules/max-dependencies' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module 'eslint-plugin-import/lib/rules/named' { 98 | declare module.exports: any; 99 | } 100 | 101 | declare module 'eslint-plugin-import/lib/rules/namespace' { 102 | declare module.exports: any; 103 | } 104 | 105 | declare module 'eslint-plugin-import/lib/rules/newline-after-import' { 106 | declare module.exports: any; 107 | } 108 | 109 | declare module 'eslint-plugin-import/lib/rules/no-absolute-path' { 110 | declare module.exports: any; 111 | } 112 | 113 | declare module 'eslint-plugin-import/lib/rules/no-amd' { 114 | declare module.exports: any; 115 | } 116 | 117 | declare module 'eslint-plugin-import/lib/rules/no-commonjs' { 118 | declare module.exports: any; 119 | } 120 | 121 | declare module 'eslint-plugin-import/lib/rules/no-deprecated' { 122 | declare module.exports: any; 123 | } 124 | 125 | declare module 'eslint-plugin-import/lib/rules/no-duplicates' { 126 | declare module.exports: any; 127 | } 128 | 129 | declare module 'eslint-plugin-import/lib/rules/no-dynamic-require' { 130 | declare module.exports: any; 131 | } 132 | 133 | declare module 'eslint-plugin-import/lib/rules/no-extraneous-dependencies' { 134 | declare module.exports: any; 135 | } 136 | 137 | declare module 'eslint-plugin-import/lib/rules/no-internal-modules' { 138 | declare module.exports: any; 139 | } 140 | 141 | declare module 'eslint-plugin-import/lib/rules/no-mutable-exports' { 142 | declare module.exports: any; 143 | } 144 | 145 | declare module 'eslint-plugin-import/lib/rules/no-named-as-default-member' { 146 | declare module.exports: any; 147 | } 148 | 149 | declare module 'eslint-plugin-import/lib/rules/no-named-as-default' { 150 | declare module.exports: any; 151 | } 152 | 153 | declare module 'eslint-plugin-import/lib/rules/no-named-default' { 154 | declare module.exports: any; 155 | } 156 | 157 | declare module 'eslint-plugin-import/lib/rules/no-namespace' { 158 | declare module.exports: any; 159 | } 160 | 161 | declare module 'eslint-plugin-import/lib/rules/no-nodejs-modules' { 162 | declare module.exports: any; 163 | } 164 | 165 | declare module 'eslint-plugin-import/lib/rules/no-restricted-paths' { 166 | declare module.exports: any; 167 | } 168 | 169 | declare module 'eslint-plugin-import/lib/rules/no-unassigned-import' { 170 | declare module.exports: any; 171 | } 172 | 173 | declare module 'eslint-plugin-import/lib/rules/no-unresolved' { 174 | declare module.exports: any; 175 | } 176 | 177 | declare module 'eslint-plugin-import/lib/rules/no-webpack-loader-syntax' { 178 | declare module.exports: any; 179 | } 180 | 181 | declare module 'eslint-plugin-import/lib/rules/order' { 182 | declare module.exports: any; 183 | } 184 | 185 | declare module 'eslint-plugin-import/lib/rules/prefer-default-export' { 186 | declare module.exports: any; 187 | } 188 | 189 | declare module 'eslint-plugin-import/lib/rules/unambiguous' { 190 | declare module.exports: any; 191 | } 192 | 193 | declare module 'eslint-plugin-import/memo-parser/index' { 194 | declare module.exports: any; 195 | } 196 | 197 | // Filename aliases 198 | declare module 'eslint-plugin-import/config/electron.js' { 199 | declare module.exports: $Exports<'eslint-plugin-import/config/electron'>; 200 | } 201 | declare module 'eslint-plugin-import/config/errors.js' { 202 | declare module.exports: $Exports<'eslint-plugin-import/config/errors'>; 203 | } 204 | declare module 'eslint-plugin-import/config/react-native.js' { 205 | declare module.exports: $Exports<'eslint-plugin-import/config/react-native'>; 206 | } 207 | declare module 'eslint-plugin-import/config/react.js' { 208 | declare module.exports: $Exports<'eslint-plugin-import/config/react'>; 209 | } 210 | declare module 'eslint-plugin-import/config/recommended.js' { 211 | declare module.exports: $Exports<'eslint-plugin-import/config/recommended'>; 212 | } 213 | declare module 'eslint-plugin-import/config/stage-0.js' { 214 | declare module.exports: $Exports<'eslint-plugin-import/config/stage-0'>; 215 | } 216 | declare module 'eslint-plugin-import/config/warnings.js' { 217 | declare module.exports: $Exports<'eslint-plugin-import/config/warnings'>; 218 | } 219 | declare module 'eslint-plugin-import/lib/core/importType.js' { 220 | declare module.exports: $Exports<'eslint-plugin-import/lib/core/importType'>; 221 | } 222 | declare module 'eslint-plugin-import/lib/core/staticRequire.js' { 223 | declare module.exports: $Exports<'eslint-plugin-import/lib/core/staticRequire'>; 224 | } 225 | declare module 'eslint-plugin-import/lib/ExportMap.js' { 226 | declare module.exports: $Exports<'eslint-plugin-import/lib/ExportMap'>; 227 | } 228 | declare module 'eslint-plugin-import/lib/importDeclaration.js' { 229 | declare module.exports: $Exports<'eslint-plugin-import/lib/importDeclaration'>; 230 | } 231 | declare module 'eslint-plugin-import/lib/index.js' { 232 | declare module.exports: $Exports<'eslint-plugin-import/lib/index'>; 233 | } 234 | declare module 'eslint-plugin-import/lib/rules/default.js' { 235 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/default'>; 236 | } 237 | declare module 'eslint-plugin-import/lib/rules/export.js' { 238 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/export'>; 239 | } 240 | declare module 'eslint-plugin-import/lib/rules/extensions.js' { 241 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/extensions'>; 242 | } 243 | declare module 'eslint-plugin-import/lib/rules/first.js' { 244 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/first'>; 245 | } 246 | declare module 'eslint-plugin-import/lib/rules/imports-first.js' { 247 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/imports-first'>; 248 | } 249 | declare module 'eslint-plugin-import/lib/rules/max-dependencies.js' { 250 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/max-dependencies'>; 251 | } 252 | declare module 'eslint-plugin-import/lib/rules/named.js' { 253 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/named'>; 254 | } 255 | declare module 'eslint-plugin-import/lib/rules/namespace.js' { 256 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/namespace'>; 257 | } 258 | declare module 'eslint-plugin-import/lib/rules/newline-after-import.js' { 259 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/newline-after-import'>; 260 | } 261 | declare module 'eslint-plugin-import/lib/rules/no-absolute-path.js' { 262 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-absolute-path'>; 263 | } 264 | declare module 'eslint-plugin-import/lib/rules/no-amd.js' { 265 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-amd'>; 266 | } 267 | declare module 'eslint-plugin-import/lib/rules/no-commonjs.js' { 268 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-commonjs'>; 269 | } 270 | declare module 'eslint-plugin-import/lib/rules/no-deprecated.js' { 271 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-deprecated'>; 272 | } 273 | declare module 'eslint-plugin-import/lib/rules/no-duplicates.js' { 274 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-duplicates'>; 275 | } 276 | declare module 'eslint-plugin-import/lib/rules/no-dynamic-require.js' { 277 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-dynamic-require'>; 278 | } 279 | declare module 'eslint-plugin-import/lib/rules/no-extraneous-dependencies.js' { 280 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-extraneous-dependencies'>; 281 | } 282 | declare module 'eslint-plugin-import/lib/rules/no-internal-modules.js' { 283 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-internal-modules'>; 284 | } 285 | declare module 'eslint-plugin-import/lib/rules/no-mutable-exports.js' { 286 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-mutable-exports'>; 287 | } 288 | declare module 'eslint-plugin-import/lib/rules/no-named-as-default-member.js' { 289 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-named-as-default-member'>; 290 | } 291 | declare module 'eslint-plugin-import/lib/rules/no-named-as-default.js' { 292 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-named-as-default'>; 293 | } 294 | declare module 'eslint-plugin-import/lib/rules/no-named-default.js' { 295 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-named-default'>; 296 | } 297 | declare module 'eslint-plugin-import/lib/rules/no-namespace.js' { 298 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-namespace'>; 299 | } 300 | declare module 'eslint-plugin-import/lib/rules/no-nodejs-modules.js' { 301 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-nodejs-modules'>; 302 | } 303 | declare module 'eslint-plugin-import/lib/rules/no-restricted-paths.js' { 304 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-restricted-paths'>; 305 | } 306 | declare module 'eslint-plugin-import/lib/rules/no-unassigned-import.js' { 307 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-unassigned-import'>; 308 | } 309 | declare module 'eslint-plugin-import/lib/rules/no-unresolved.js' { 310 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-unresolved'>; 311 | } 312 | declare module 'eslint-plugin-import/lib/rules/no-webpack-loader-syntax.js' { 313 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-webpack-loader-syntax'>; 314 | } 315 | declare module 'eslint-plugin-import/lib/rules/order.js' { 316 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/order'>; 317 | } 318 | declare module 'eslint-plugin-import/lib/rules/prefer-default-export.js' { 319 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/prefer-default-export'>; 320 | } 321 | declare module 'eslint-plugin-import/lib/rules/unambiguous.js' { 322 | declare module.exports: $Exports<'eslint-plugin-import/lib/rules/unambiguous'>; 323 | } 324 | declare module 'eslint-plugin-import/memo-parser/index.js' { 325 | declare module.exports: $Exports<'eslint-plugin-import/memo-parser/index'>; 326 | } 327 | -------------------------------------------------------------------------------- /flow-typed/npm/eslint-plugin-react_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: cd8ef439afbad07a53be0281acf2ea41 2 | // flow-typed version: <>/eslint-plugin-react_v^6.10.3/flow_v0.56.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'eslint-plugin-react' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'eslint-plugin-react' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'eslint-plugin-react/lib/rules/display-name' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'eslint-plugin-react/lib/rules/forbid-component-props' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'eslint-plugin-react/lib/rules/forbid-elements' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'eslint-plugin-react/lib/rules/forbid-foreign-prop-types' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'eslint-plugin-react/lib/rules/forbid-prop-types' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'eslint-plugin-react/lib/rules/jsx-boolean-value' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'eslint-plugin-react/lib/rules/jsx-closing-bracket-location' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'eslint-plugin-react/lib/rules/jsx-curly-spacing' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'eslint-plugin-react/lib/rules/jsx-equals-spacing' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'eslint-plugin-react/lib/rules/jsx-filename-extension' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'eslint-plugin-react/lib/rules/jsx-first-prop-new-line' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'eslint-plugin-react/lib/rules/jsx-handler-names' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'eslint-plugin-react/lib/rules/jsx-indent-props' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'eslint-plugin-react/lib/rules/jsx-indent' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'eslint-plugin-react/lib/rules/jsx-key' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'eslint-plugin-react/lib/rules/jsx-max-props-per-line' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module 'eslint-plugin-react/lib/rules/jsx-no-bind' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module 'eslint-plugin-react/lib/rules/jsx-no-comment-textnodes' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module 'eslint-plugin-react/lib/rules/jsx-no-duplicate-props' { 98 | declare module.exports: any; 99 | } 100 | 101 | declare module 'eslint-plugin-react/lib/rules/jsx-no-literals' { 102 | declare module.exports: any; 103 | } 104 | 105 | declare module 'eslint-plugin-react/lib/rules/jsx-no-target-blank' { 106 | declare module.exports: any; 107 | } 108 | 109 | declare module 'eslint-plugin-react/lib/rules/jsx-no-undef' { 110 | declare module.exports: any; 111 | } 112 | 113 | declare module 'eslint-plugin-react/lib/rules/jsx-pascal-case' { 114 | declare module.exports: any; 115 | } 116 | 117 | declare module 'eslint-plugin-react/lib/rules/jsx-sort-props' { 118 | declare module.exports: any; 119 | } 120 | 121 | declare module 'eslint-plugin-react/lib/rules/jsx-space-before-closing' { 122 | declare module.exports: any; 123 | } 124 | 125 | declare module 'eslint-plugin-react/lib/rules/jsx-tag-spacing' { 126 | declare module.exports: any; 127 | } 128 | 129 | declare module 'eslint-plugin-react/lib/rules/jsx-uses-react' { 130 | declare module.exports: any; 131 | } 132 | 133 | declare module 'eslint-plugin-react/lib/rules/jsx-uses-vars' { 134 | declare module.exports: any; 135 | } 136 | 137 | declare module 'eslint-plugin-react/lib/rules/jsx-wrap-multilines' { 138 | declare module.exports: any; 139 | } 140 | 141 | declare module 'eslint-plugin-react/lib/rules/no-array-index-key' { 142 | declare module.exports: any; 143 | } 144 | 145 | declare module 'eslint-plugin-react/lib/rules/no-children-prop' { 146 | declare module.exports: any; 147 | } 148 | 149 | declare module 'eslint-plugin-react/lib/rules/no-comment-textnodes' { 150 | declare module.exports: any; 151 | } 152 | 153 | declare module 'eslint-plugin-react/lib/rules/no-danger-with-children' { 154 | declare module.exports: any; 155 | } 156 | 157 | declare module 'eslint-plugin-react/lib/rules/no-danger' { 158 | declare module.exports: any; 159 | } 160 | 161 | declare module 'eslint-plugin-react/lib/rules/no-deprecated' { 162 | declare module.exports: any; 163 | } 164 | 165 | declare module 'eslint-plugin-react/lib/rules/no-did-mount-set-state' { 166 | declare module.exports: any; 167 | } 168 | 169 | declare module 'eslint-plugin-react/lib/rules/no-did-update-set-state' { 170 | declare module.exports: any; 171 | } 172 | 173 | declare module 'eslint-plugin-react/lib/rules/no-direct-mutation-state' { 174 | declare module.exports: any; 175 | } 176 | 177 | declare module 'eslint-plugin-react/lib/rules/no-find-dom-node' { 178 | declare module.exports: any; 179 | } 180 | 181 | declare module 'eslint-plugin-react/lib/rules/no-is-mounted' { 182 | declare module.exports: any; 183 | } 184 | 185 | declare module 'eslint-plugin-react/lib/rules/no-multi-comp' { 186 | declare module.exports: any; 187 | } 188 | 189 | declare module 'eslint-plugin-react/lib/rules/no-render-return-value' { 190 | declare module.exports: any; 191 | } 192 | 193 | declare module 'eslint-plugin-react/lib/rules/no-set-state' { 194 | declare module.exports: any; 195 | } 196 | 197 | declare module 'eslint-plugin-react/lib/rules/no-string-refs' { 198 | declare module.exports: any; 199 | } 200 | 201 | declare module 'eslint-plugin-react/lib/rules/no-unescaped-entities' { 202 | declare module.exports: any; 203 | } 204 | 205 | declare module 'eslint-plugin-react/lib/rules/no-unknown-property' { 206 | declare module.exports: any; 207 | } 208 | 209 | declare module 'eslint-plugin-react/lib/rules/no-unused-prop-types' { 210 | declare module.exports: any; 211 | } 212 | 213 | declare module 'eslint-plugin-react/lib/rules/prefer-es6-class' { 214 | declare module.exports: any; 215 | } 216 | 217 | declare module 'eslint-plugin-react/lib/rules/prefer-stateless-function' { 218 | declare module.exports: any; 219 | } 220 | 221 | declare module 'eslint-plugin-react/lib/rules/prop-types' { 222 | declare module.exports: any; 223 | } 224 | 225 | declare module 'eslint-plugin-react/lib/rules/react-in-jsx-scope' { 226 | declare module.exports: any; 227 | } 228 | 229 | declare module 'eslint-plugin-react/lib/rules/require-default-props' { 230 | declare module.exports: any; 231 | } 232 | 233 | declare module 'eslint-plugin-react/lib/rules/require-extension' { 234 | declare module.exports: any; 235 | } 236 | 237 | declare module 'eslint-plugin-react/lib/rules/require-optimization' { 238 | declare module.exports: any; 239 | } 240 | 241 | declare module 'eslint-plugin-react/lib/rules/require-render-return' { 242 | declare module.exports: any; 243 | } 244 | 245 | declare module 'eslint-plugin-react/lib/rules/self-closing-comp' { 246 | declare module.exports: any; 247 | } 248 | 249 | declare module 'eslint-plugin-react/lib/rules/sort-comp' { 250 | declare module.exports: any; 251 | } 252 | 253 | declare module 'eslint-plugin-react/lib/rules/sort-prop-types' { 254 | declare module.exports: any; 255 | } 256 | 257 | declare module 'eslint-plugin-react/lib/rules/style-prop-object' { 258 | declare module.exports: any; 259 | } 260 | 261 | declare module 'eslint-plugin-react/lib/rules/void-dom-elements-no-children' { 262 | declare module.exports: any; 263 | } 264 | 265 | declare module 'eslint-plugin-react/lib/rules/wrap-multilines' { 266 | declare module.exports: any; 267 | } 268 | 269 | declare module 'eslint-plugin-react/lib/util/annotations' { 270 | declare module.exports: any; 271 | } 272 | 273 | declare module 'eslint-plugin-react/lib/util/Components' { 274 | declare module.exports: any; 275 | } 276 | 277 | declare module 'eslint-plugin-react/lib/util/getTokenBeforeClosingBracket' { 278 | declare module.exports: any; 279 | } 280 | 281 | declare module 'eslint-plugin-react/lib/util/pragma' { 282 | declare module.exports: any; 283 | } 284 | 285 | declare module 'eslint-plugin-react/lib/util/variable' { 286 | declare module.exports: any; 287 | } 288 | 289 | declare module 'eslint-plugin-react/lib/util/version' { 290 | declare module.exports: any; 291 | } 292 | 293 | // Filename aliases 294 | declare module 'eslint-plugin-react/index' { 295 | declare module.exports: $Exports<'eslint-plugin-react'>; 296 | } 297 | declare module 'eslint-plugin-react/index.js' { 298 | declare module.exports: $Exports<'eslint-plugin-react'>; 299 | } 300 | declare module 'eslint-plugin-react/lib/rules/display-name.js' { 301 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/display-name'>; 302 | } 303 | declare module 'eslint-plugin-react/lib/rules/forbid-component-props.js' { 304 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/forbid-component-props'>; 305 | } 306 | declare module 'eslint-plugin-react/lib/rules/forbid-elements.js' { 307 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/forbid-elements'>; 308 | } 309 | declare module 'eslint-plugin-react/lib/rules/forbid-foreign-prop-types.js' { 310 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/forbid-foreign-prop-types'>; 311 | } 312 | declare module 'eslint-plugin-react/lib/rules/forbid-prop-types.js' { 313 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/forbid-prop-types'>; 314 | } 315 | declare module 'eslint-plugin-react/lib/rules/jsx-boolean-value.js' { 316 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-boolean-value'>; 317 | } 318 | declare module 'eslint-plugin-react/lib/rules/jsx-closing-bracket-location.js' { 319 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-closing-bracket-location'>; 320 | } 321 | declare module 'eslint-plugin-react/lib/rules/jsx-curly-spacing.js' { 322 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-curly-spacing'>; 323 | } 324 | declare module 'eslint-plugin-react/lib/rules/jsx-equals-spacing.js' { 325 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-equals-spacing'>; 326 | } 327 | declare module 'eslint-plugin-react/lib/rules/jsx-filename-extension.js' { 328 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-filename-extension'>; 329 | } 330 | declare module 'eslint-plugin-react/lib/rules/jsx-first-prop-new-line.js' { 331 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-first-prop-new-line'>; 332 | } 333 | declare module 'eslint-plugin-react/lib/rules/jsx-handler-names.js' { 334 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-handler-names'>; 335 | } 336 | declare module 'eslint-plugin-react/lib/rules/jsx-indent-props.js' { 337 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-indent-props'>; 338 | } 339 | declare module 'eslint-plugin-react/lib/rules/jsx-indent.js' { 340 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-indent'>; 341 | } 342 | declare module 'eslint-plugin-react/lib/rules/jsx-key.js' { 343 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-key'>; 344 | } 345 | declare module 'eslint-plugin-react/lib/rules/jsx-max-props-per-line.js' { 346 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-max-props-per-line'>; 347 | } 348 | declare module 'eslint-plugin-react/lib/rules/jsx-no-bind.js' { 349 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-no-bind'>; 350 | } 351 | declare module 'eslint-plugin-react/lib/rules/jsx-no-comment-textnodes.js' { 352 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-no-comment-textnodes'>; 353 | } 354 | declare module 'eslint-plugin-react/lib/rules/jsx-no-duplicate-props.js' { 355 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-no-duplicate-props'>; 356 | } 357 | declare module 'eslint-plugin-react/lib/rules/jsx-no-literals.js' { 358 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-no-literals'>; 359 | } 360 | declare module 'eslint-plugin-react/lib/rules/jsx-no-target-blank.js' { 361 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-no-target-blank'>; 362 | } 363 | declare module 'eslint-plugin-react/lib/rules/jsx-no-undef.js' { 364 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-no-undef'>; 365 | } 366 | declare module 'eslint-plugin-react/lib/rules/jsx-pascal-case.js' { 367 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-pascal-case'>; 368 | } 369 | declare module 'eslint-plugin-react/lib/rules/jsx-sort-props.js' { 370 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-sort-props'>; 371 | } 372 | declare module 'eslint-plugin-react/lib/rules/jsx-space-before-closing.js' { 373 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-space-before-closing'>; 374 | } 375 | declare module 'eslint-plugin-react/lib/rules/jsx-tag-spacing.js' { 376 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-tag-spacing'>; 377 | } 378 | declare module 'eslint-plugin-react/lib/rules/jsx-uses-react.js' { 379 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-uses-react'>; 380 | } 381 | declare module 'eslint-plugin-react/lib/rules/jsx-uses-vars.js' { 382 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-uses-vars'>; 383 | } 384 | declare module 'eslint-plugin-react/lib/rules/jsx-wrap-multilines.js' { 385 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-wrap-multilines'>; 386 | } 387 | declare module 'eslint-plugin-react/lib/rules/no-array-index-key.js' { 388 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-array-index-key'>; 389 | } 390 | declare module 'eslint-plugin-react/lib/rules/no-children-prop.js' { 391 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-children-prop'>; 392 | } 393 | declare module 'eslint-plugin-react/lib/rules/no-comment-textnodes.js' { 394 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-comment-textnodes'>; 395 | } 396 | declare module 'eslint-plugin-react/lib/rules/no-danger-with-children.js' { 397 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-danger-with-children'>; 398 | } 399 | declare module 'eslint-plugin-react/lib/rules/no-danger.js' { 400 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-danger'>; 401 | } 402 | declare module 'eslint-plugin-react/lib/rules/no-deprecated.js' { 403 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-deprecated'>; 404 | } 405 | declare module 'eslint-plugin-react/lib/rules/no-did-mount-set-state.js' { 406 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-did-mount-set-state'>; 407 | } 408 | declare module 'eslint-plugin-react/lib/rules/no-did-update-set-state.js' { 409 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-did-update-set-state'>; 410 | } 411 | declare module 'eslint-plugin-react/lib/rules/no-direct-mutation-state.js' { 412 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-direct-mutation-state'>; 413 | } 414 | declare module 'eslint-plugin-react/lib/rules/no-find-dom-node.js' { 415 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-find-dom-node'>; 416 | } 417 | declare module 'eslint-plugin-react/lib/rules/no-is-mounted.js' { 418 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-is-mounted'>; 419 | } 420 | declare module 'eslint-plugin-react/lib/rules/no-multi-comp.js' { 421 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-multi-comp'>; 422 | } 423 | declare module 'eslint-plugin-react/lib/rules/no-render-return-value.js' { 424 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-render-return-value'>; 425 | } 426 | declare module 'eslint-plugin-react/lib/rules/no-set-state.js' { 427 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-set-state'>; 428 | } 429 | declare module 'eslint-plugin-react/lib/rules/no-string-refs.js' { 430 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-string-refs'>; 431 | } 432 | declare module 'eslint-plugin-react/lib/rules/no-unescaped-entities.js' { 433 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-unescaped-entities'>; 434 | } 435 | declare module 'eslint-plugin-react/lib/rules/no-unknown-property.js' { 436 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-unknown-property'>; 437 | } 438 | declare module 'eslint-plugin-react/lib/rules/no-unused-prop-types.js' { 439 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-unused-prop-types'>; 440 | } 441 | declare module 'eslint-plugin-react/lib/rules/prefer-es6-class.js' { 442 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/prefer-es6-class'>; 443 | } 444 | declare module 'eslint-plugin-react/lib/rules/prefer-stateless-function.js' { 445 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/prefer-stateless-function'>; 446 | } 447 | declare module 'eslint-plugin-react/lib/rules/prop-types.js' { 448 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/prop-types'>; 449 | } 450 | declare module 'eslint-plugin-react/lib/rules/react-in-jsx-scope.js' { 451 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/react-in-jsx-scope'>; 452 | } 453 | declare module 'eslint-plugin-react/lib/rules/require-default-props.js' { 454 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/require-default-props'>; 455 | } 456 | declare module 'eslint-plugin-react/lib/rules/require-extension.js' { 457 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/require-extension'>; 458 | } 459 | declare module 'eslint-plugin-react/lib/rules/require-optimization.js' { 460 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/require-optimization'>; 461 | } 462 | declare module 'eslint-plugin-react/lib/rules/require-render-return.js' { 463 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/require-render-return'>; 464 | } 465 | declare module 'eslint-plugin-react/lib/rules/self-closing-comp.js' { 466 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/self-closing-comp'>; 467 | } 468 | declare module 'eslint-plugin-react/lib/rules/sort-comp.js' { 469 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/sort-comp'>; 470 | } 471 | declare module 'eslint-plugin-react/lib/rules/sort-prop-types.js' { 472 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/sort-prop-types'>; 473 | } 474 | declare module 'eslint-plugin-react/lib/rules/style-prop-object.js' { 475 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/style-prop-object'>; 476 | } 477 | declare module 'eslint-plugin-react/lib/rules/void-dom-elements-no-children.js' { 478 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/void-dom-elements-no-children'>; 479 | } 480 | declare module 'eslint-plugin-react/lib/rules/wrap-multilines.js' { 481 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/wrap-multilines'>; 482 | } 483 | declare module 'eslint-plugin-react/lib/util/annotations.js' { 484 | declare module.exports: $Exports<'eslint-plugin-react/lib/util/annotations'>; 485 | } 486 | declare module 'eslint-plugin-react/lib/util/Components.js' { 487 | declare module.exports: $Exports<'eslint-plugin-react/lib/util/Components'>; 488 | } 489 | declare module 'eslint-plugin-react/lib/util/getTokenBeforeClosingBracket.js' { 490 | declare module.exports: $Exports<'eslint-plugin-react/lib/util/getTokenBeforeClosingBracket'>; 491 | } 492 | declare module 'eslint-plugin-react/lib/util/pragma.js' { 493 | declare module.exports: $Exports<'eslint-plugin-react/lib/util/pragma'>; 494 | } 495 | declare module 'eslint-plugin-react/lib/util/variable.js' { 496 | declare module.exports: $Exports<'eslint-plugin-react/lib/util/variable'>; 497 | } 498 | declare module 'eslint-plugin-react/lib/util/version.js' { 499 | declare module.exports: $Exports<'eslint-plugin-react/lib/util/version'>; 500 | } 501 | -------------------------------------------------------------------------------- /flow-typed/npm/flow-bin_v0.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 6a5610678d4b01e13bbfbbc62bdaf583 2 | // flow-typed version: 3817bc6980/flow-bin_v0.x.x/flow_>=v0.25.x 3 | 4 | declare module "flow-bin" { 5 | declare module.exports: string; 6 | } 7 | -------------------------------------------------------------------------------- /flow-typed/npm/flow-typed_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: f4359697c58d7bb0ae0d7ffa9f6921ba 2 | // flow-typed version: <>/flow-typed_v^2.1.5/flow_v0.56.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'flow-typed' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'flow-typed' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'flow-typed/dist/cli' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'flow-typed/dist/commands/create-stub' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'flow-typed/dist/commands/install' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'flow-typed/dist/commands/runTests' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'flow-typed/dist/commands/search' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'flow-typed/dist/commands/update-cache' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'flow-typed/dist/commands/update' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'flow-typed/dist/commands/validateDefs' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'flow-typed/dist/commands/version' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'flow-typed/dist/lib/cacheRepoUtils' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'flow-typed/dist/lib/codeSign' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'flow-typed/dist/lib/fileUtils' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'flow-typed/dist/lib/flowProjectUtils' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'flow-typed/dist/lib/flowVersion' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'flow-typed/dist/lib/git' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'flow-typed/dist/lib/github' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module 'flow-typed/dist/lib/isInFlowTypedRepo' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module 'flow-typed/dist/lib/libDefs' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module 'flow-typed/dist/lib/node' { 98 | declare module.exports: any; 99 | } 100 | 101 | declare module 'flow-typed/dist/lib/npm/npmLibDefs' { 102 | declare module.exports: any; 103 | } 104 | 105 | declare module 'flow-typed/dist/lib/npm/npmProjectUtils' { 106 | declare module.exports: any; 107 | } 108 | 109 | declare module 'flow-typed/dist/lib/semver' { 110 | declare module.exports: any; 111 | } 112 | 113 | declare module 'flow-typed/dist/lib/stubUtils' { 114 | declare module.exports: any; 115 | } 116 | 117 | declare module 'flow-typed/dist/lib/validationErrors' { 118 | declare module.exports: any; 119 | } 120 | 121 | // Filename aliases 122 | declare module 'flow-typed/dist/cli.js' { 123 | declare module.exports: $Exports<'flow-typed/dist/cli'>; 124 | } 125 | declare module 'flow-typed/dist/commands/create-stub.js' { 126 | declare module.exports: $Exports<'flow-typed/dist/commands/create-stub'>; 127 | } 128 | declare module 'flow-typed/dist/commands/install.js' { 129 | declare module.exports: $Exports<'flow-typed/dist/commands/install'>; 130 | } 131 | declare module 'flow-typed/dist/commands/runTests.js' { 132 | declare module.exports: $Exports<'flow-typed/dist/commands/runTests'>; 133 | } 134 | declare module 'flow-typed/dist/commands/search.js' { 135 | declare module.exports: $Exports<'flow-typed/dist/commands/search'>; 136 | } 137 | declare module 'flow-typed/dist/commands/update-cache.js' { 138 | declare module.exports: $Exports<'flow-typed/dist/commands/update-cache'>; 139 | } 140 | declare module 'flow-typed/dist/commands/update.js' { 141 | declare module.exports: $Exports<'flow-typed/dist/commands/update'>; 142 | } 143 | declare module 'flow-typed/dist/commands/validateDefs.js' { 144 | declare module.exports: $Exports<'flow-typed/dist/commands/validateDefs'>; 145 | } 146 | declare module 'flow-typed/dist/commands/version.js' { 147 | declare module.exports: $Exports<'flow-typed/dist/commands/version'>; 148 | } 149 | declare module 'flow-typed/dist/lib/cacheRepoUtils.js' { 150 | declare module.exports: $Exports<'flow-typed/dist/lib/cacheRepoUtils'>; 151 | } 152 | declare module 'flow-typed/dist/lib/codeSign.js' { 153 | declare module.exports: $Exports<'flow-typed/dist/lib/codeSign'>; 154 | } 155 | declare module 'flow-typed/dist/lib/fileUtils.js' { 156 | declare module.exports: $Exports<'flow-typed/dist/lib/fileUtils'>; 157 | } 158 | declare module 'flow-typed/dist/lib/flowProjectUtils.js' { 159 | declare module.exports: $Exports<'flow-typed/dist/lib/flowProjectUtils'>; 160 | } 161 | declare module 'flow-typed/dist/lib/flowVersion.js' { 162 | declare module.exports: $Exports<'flow-typed/dist/lib/flowVersion'>; 163 | } 164 | declare module 'flow-typed/dist/lib/git.js' { 165 | declare module.exports: $Exports<'flow-typed/dist/lib/git'>; 166 | } 167 | declare module 'flow-typed/dist/lib/github.js' { 168 | declare module.exports: $Exports<'flow-typed/dist/lib/github'>; 169 | } 170 | declare module 'flow-typed/dist/lib/isInFlowTypedRepo.js' { 171 | declare module.exports: $Exports<'flow-typed/dist/lib/isInFlowTypedRepo'>; 172 | } 173 | declare module 'flow-typed/dist/lib/libDefs.js' { 174 | declare module.exports: $Exports<'flow-typed/dist/lib/libDefs'>; 175 | } 176 | declare module 'flow-typed/dist/lib/node.js' { 177 | declare module.exports: $Exports<'flow-typed/dist/lib/node'>; 178 | } 179 | declare module 'flow-typed/dist/lib/npm/npmLibDefs.js' { 180 | declare module.exports: $Exports<'flow-typed/dist/lib/npm/npmLibDefs'>; 181 | } 182 | declare module 'flow-typed/dist/lib/npm/npmProjectUtils.js' { 183 | declare module.exports: $Exports<'flow-typed/dist/lib/npm/npmProjectUtils'>; 184 | } 185 | declare module 'flow-typed/dist/lib/semver.js' { 186 | declare module.exports: $Exports<'flow-typed/dist/lib/semver'>; 187 | } 188 | declare module 'flow-typed/dist/lib/stubUtils.js' { 189 | declare module.exports: $Exports<'flow-typed/dist/lib/stubUtils'>; 190 | } 191 | declare module 'flow-typed/dist/lib/validationErrors.js' { 192 | declare module.exports: $Exports<'flow-typed/dist/lib/validationErrors'>; 193 | } 194 | -------------------------------------------------------------------------------- /flow-typed/npm/is-observable_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 37f538fa8c521a30928b16dd91508c7b 2 | // flow-typed version: <>/is-observable_v^0.2.0/flow_v0.56.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'is-observable' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'is-observable' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | 26 | 27 | // Filename aliases 28 | declare module 'is-observable/index' { 29 | declare module.exports: $Exports<'is-observable'>; 30 | } 31 | declare module 'is-observable/index.js' { 32 | declare module.exports: $Exports<'is-observable'>; 33 | } 34 | -------------------------------------------------------------------------------- /flow-typed/npm/is-react-prop_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 2ad391ffa9b414bdcc1249c381b115c7 2 | // flow-typed version: <>/is-react-prop_v1.0.0-beta.4/flow_v0.56.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'is-react-prop' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'is-react-prop' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'is-react-prop/checkAttr' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'is-react-prop/client/checkAttr' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'is-react-prop/client/createDomElem' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'is-react-prop/client/domElements' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'is-react-prop/client/index' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'is-react-prop/client/reactProps' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'is-react-prop/client/whitelists/events' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'is-react-prop/client/whitelists/html' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'is-react-prop/client/whitelists/index' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'is-react-prop/client/whitelists/react' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'is-react-prop/client/whitelists/schema' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'is-react-prop/client/whitelists/svg' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'is-react-prop/common/isCustomProp' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'is-react-prop/server/checkAttr' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'is-react-prop/server/htmlAttributes' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'is-react-prop/server/index' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module 'is-react-prop/server/reactProps' { 90 | declare module.exports: any; 91 | } 92 | 93 | // Filename aliases 94 | declare module 'is-react-prop/checkAttr.js' { 95 | declare module.exports: $Exports<'is-react-prop/checkAttr'>; 96 | } 97 | declare module 'is-react-prop/client/checkAttr.js' { 98 | declare module.exports: $Exports<'is-react-prop/client/checkAttr'>; 99 | } 100 | declare module 'is-react-prop/client/createDomElem.js' { 101 | declare module.exports: $Exports<'is-react-prop/client/createDomElem'>; 102 | } 103 | declare module 'is-react-prop/client/domElements.js' { 104 | declare module.exports: $Exports<'is-react-prop/client/domElements'>; 105 | } 106 | declare module 'is-react-prop/client/index.js' { 107 | declare module.exports: $Exports<'is-react-prop/client/index'>; 108 | } 109 | declare module 'is-react-prop/client/reactProps.js' { 110 | declare module.exports: $Exports<'is-react-prop/client/reactProps'>; 111 | } 112 | declare module 'is-react-prop/client/whitelists/events.js' { 113 | declare module.exports: $Exports<'is-react-prop/client/whitelists/events'>; 114 | } 115 | declare module 'is-react-prop/client/whitelists/html.js' { 116 | declare module.exports: $Exports<'is-react-prop/client/whitelists/html'>; 117 | } 118 | declare module 'is-react-prop/client/whitelists/index.js' { 119 | declare module.exports: $Exports<'is-react-prop/client/whitelists/index'>; 120 | } 121 | declare module 'is-react-prop/client/whitelists/react.js' { 122 | declare module.exports: $Exports<'is-react-prop/client/whitelists/react'>; 123 | } 124 | declare module 'is-react-prop/client/whitelists/schema.js' { 125 | declare module.exports: $Exports<'is-react-prop/client/whitelists/schema'>; 126 | } 127 | declare module 'is-react-prop/client/whitelists/svg.js' { 128 | declare module.exports: $Exports<'is-react-prop/client/whitelists/svg'>; 129 | } 130 | declare module 'is-react-prop/common/isCustomProp.js' { 131 | declare module.exports: $Exports<'is-react-prop/common/isCustomProp'>; 132 | } 133 | declare module 'is-react-prop/index' { 134 | declare module.exports: $Exports<'is-react-prop'>; 135 | } 136 | declare module 'is-react-prop/index.js' { 137 | declare module.exports: $Exports<'is-react-prop'>; 138 | } 139 | declare module 'is-react-prop/server/checkAttr.js' { 140 | declare module.exports: $Exports<'is-react-prop/server/checkAttr'>; 141 | } 142 | declare module 'is-react-prop/server/htmlAttributes.js' { 143 | declare module.exports: $Exports<'is-react-prop/server/htmlAttributes'>; 144 | } 145 | declare module 'is-react-prop/server/index.js' { 146 | declare module.exports: $Exports<'is-react-prop/server/index'>; 147 | } 148 | declare module 'is-react-prop/server/reactProps.js' { 149 | declare module.exports: $Exports<'is-react-prop/server/reactProps'>; 150 | } 151 | -------------------------------------------------------------------------------- /flow-typed/npm/jest_v18.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 032214c577f085159829eeae40c41e6a 2 | // flow-typed version: 7dc2a8971e/jest_v18.x.x/flow_>=v0.33.x 3 | 4 | type JestMockFn = { 5 | (...args: Array): any, 6 | /** 7 | * An object for introspecting mock calls 8 | */ 9 | mock: { 10 | /** 11 | * An array that represents all calls that have been made into this mock 12 | * function. Each call is represented by an array of arguments that were 13 | * passed during the call. 14 | */ 15 | calls: Array>, 16 | /** 17 | * An array that contains all the object instances that have been 18 | * instantiated from this mock function. 19 | */ 20 | instances: mixed, 21 | }, 22 | /** 23 | * Resets all information stored in the mockFn.mock.calls and 24 | * mockFn.mock.instances arrays. Often this is useful when you want to clean 25 | * up a mock's usage data between two assertions. 26 | */ 27 | mockClear(): Function, 28 | /** 29 | * Resets all information stored in the mock. This is useful when you want to 30 | * completely restore a mock back to its initial state. 31 | */ 32 | mockReset(): Function, 33 | /** 34 | * Accepts a function that should be used as the implementation of the mock. 35 | * The mock itself will still record all calls that go into and instances 36 | * that come from itself -- the only difference is that the implementation 37 | * will also be executed when the mock is called. 38 | */ 39 | mockImplementation(fn: Function): JestMockFn, 40 | /** 41 | * Accepts a function that will be used as an implementation of the mock for 42 | * one call to the mocked function. Can be chained so that multiple function 43 | * calls produce different results. 44 | */ 45 | mockImplementationOnce(fn: Function): JestMockFn, 46 | /** 47 | * Just a simple sugar function for returning `this` 48 | */ 49 | mockReturnThis(): void, 50 | /** 51 | * Deprecated: use jest.fn(() => value) instead 52 | */ 53 | mockReturnValue(value: any): JestMockFn, 54 | /** 55 | * Sugar for only returning a value once inside your mock 56 | */ 57 | mockReturnValueOnce(value: any): JestMockFn, 58 | } 59 | 60 | type JestAsymmetricEqualityType = { 61 | /** 62 | * A custom Jasmine equality tester 63 | */ 64 | asymmetricMatch(value: mixed): boolean, 65 | } 66 | 67 | type JestCallsType = { 68 | allArgs(): mixed, 69 | all(): mixed, 70 | any(): boolean, 71 | count(): number, 72 | first(): mixed, 73 | mostRecent(): mixed, 74 | reset(): void, 75 | } 76 | 77 | type JestClockType = { 78 | install(): void, 79 | mockDate(date: Date): void, 80 | tick(): void, 81 | uninstall(): void, 82 | } 83 | 84 | type JestMatcherResult = { 85 | message?: string | ()=>string, 86 | pass: boolean, 87 | } 88 | 89 | type JestMatcher = (actual: any, expected: any) => JestMatcherResult; 90 | 91 | type JestExpectType = { 92 | not: JestExpectType, 93 | /** 94 | * If you have a mock function, you can use .lastCalledWith to test what 95 | * arguments it was last called with. 96 | */ 97 | lastCalledWith(...args: Array): void, 98 | /** 99 | * toBe just checks that a value is what you expect. It uses === to check 100 | * strict equality. 101 | */ 102 | toBe(value: any): void, 103 | /** 104 | * Use .toHaveBeenCalled to ensure that a mock function got called. 105 | */ 106 | toBeCalled(): void, 107 | /** 108 | * Use .toBeCalledWith to ensure that a mock function was called with 109 | * specific arguments. 110 | */ 111 | toBeCalledWith(...args: Array): void, 112 | /** 113 | * Using exact equality with floating point numbers is a bad idea. Rounding 114 | * means that intuitive things fail. 115 | */ 116 | toBeCloseTo(num: number, delta: any): void, 117 | /** 118 | * Use .toBeDefined to check that a variable is not undefined. 119 | */ 120 | toBeDefined(): void, 121 | /** 122 | * Use .toBeFalsy when you don't care what a value is, you just want to 123 | * ensure a value is false in a boolean context. 124 | */ 125 | toBeFalsy(): void, 126 | /** 127 | * To compare floating point numbers, you can use toBeGreaterThan. 128 | */ 129 | toBeGreaterThan(number: number): void, 130 | /** 131 | * To compare floating point numbers, you can use toBeGreaterThanOrEqual. 132 | */ 133 | toBeGreaterThanOrEqual(number: number): void, 134 | /** 135 | * To compare floating point numbers, you can use toBeLessThan. 136 | */ 137 | toBeLessThan(number: number): void, 138 | /** 139 | * To compare floating point numbers, you can use toBeLessThanOrEqual. 140 | */ 141 | toBeLessThanOrEqual(number: number): void, 142 | /** 143 | * Use .toBeInstanceOf(Class) to check that an object is an instance of a 144 | * class. 145 | */ 146 | toBeInstanceOf(cls: Class<*>): void, 147 | /** 148 | * .toBeNull() is the same as .toBe(null) but the error messages are a bit 149 | * nicer. 150 | */ 151 | toBeNull(): void, 152 | /** 153 | * Use .toBeTruthy when you don't care what a value is, you just want to 154 | * ensure a value is true in a boolean context. 155 | */ 156 | toBeTruthy(): void, 157 | /** 158 | * Use .toBeUndefined to check that a variable is undefined. 159 | */ 160 | toBeUndefined(): void, 161 | /** 162 | * Use .toContain when you want to check that an item is in a list. For 163 | * testing the items in the list, this uses ===, a strict equality check. 164 | */ 165 | toContain(item: any): void, 166 | /** 167 | * Use .toContainEqual when you want to check that an item is in a list. For 168 | * testing the items in the list, this matcher recursively checks the 169 | * equality of all fields, rather than checking for object identity. 170 | */ 171 | toContainEqual(item: any): void, 172 | /** 173 | * Use .toEqual when you want to check that two objects have the same value. 174 | * This matcher recursively checks the equality of all fields, rather than 175 | * checking for object identity. 176 | */ 177 | toEqual(value: any): void, 178 | /** 179 | * Use .toHaveBeenCalled to ensure that a mock function got called. 180 | */ 181 | toHaveBeenCalled(): void, 182 | /** 183 | * Use .toHaveBeenCalledTimes to ensure that a mock function got called exact 184 | * number of times. 185 | */ 186 | toHaveBeenCalledTimes(number: number): void, 187 | /** 188 | * Use .toHaveBeenCalledWith to ensure that a mock function was called with 189 | * specific arguments. 190 | */ 191 | toHaveBeenCalledWith(...args: Array): void, 192 | /** 193 | * Check that an object has a .length property and it is set to a certain 194 | * numeric value. 195 | */ 196 | toHaveLength(number: number): void, 197 | /** 198 | * 199 | */ 200 | toHaveProperty(propPath: string, value?: any): void, 201 | /** 202 | * Use .toMatch to check that a string matches a regular expression. 203 | */ 204 | toMatch(regexp: RegExp): void, 205 | /** 206 | * Use .toMatchObject to check that a javascript object matches a subset of the properties of an object. 207 | */ 208 | toMatchObject(object: Object): void, 209 | /** 210 | * This ensures that a React component matches the most recent snapshot. 211 | */ 212 | toMatchSnapshot(name?: string): void, 213 | /** 214 | * Use .toThrow to test that a function throws when it is called. 215 | */ 216 | toThrow(message?: string | Error): void, 217 | /** 218 | * Use .toThrowError to test that a function throws a specific error when it 219 | * is called. The argument can be a string for the error message, a class for 220 | * the error, or a regex that should match the error. 221 | */ 222 | toThrowError(message?: string | Error | RegExp): void, 223 | /** 224 | * Use .toThrowErrorMatchingSnapshot to test that a function throws a error 225 | * matching the most recent snapshot when it is called. 226 | */ 227 | toThrowErrorMatchingSnapshot(): void, 228 | } 229 | 230 | type JestObjectType = { 231 | /** 232 | * Disables automatic mocking in the module loader. 233 | * 234 | * After this method is called, all `require()`s will return the real 235 | * versions of each module (rather than a mocked version). 236 | */ 237 | disableAutomock(): JestObjectType, 238 | /** 239 | * An un-hoisted version of disableAutomock 240 | */ 241 | autoMockOff(): JestObjectType, 242 | /** 243 | * Enables automatic mocking in the module loader. 244 | */ 245 | enableAutomock(): JestObjectType, 246 | /** 247 | * An un-hoisted version of enableAutomock 248 | */ 249 | autoMockOn(): JestObjectType, 250 | /** 251 | * Resets the state of all mocks. Equivalent to calling .mockReset() on every 252 | * mocked function. 253 | */ 254 | resetAllMocks(): JestObjectType, 255 | /** 256 | * Removes any pending timers from the timer system. 257 | */ 258 | clearAllTimers(): void, 259 | /** 260 | * The same as `mock` but not moved to the top of the expectation by 261 | * babel-jest. 262 | */ 263 | doMock(moduleName: string, moduleFactory?: any): JestObjectType, 264 | /** 265 | * The same as `unmock` but not moved to the top of the expectation by 266 | * babel-jest. 267 | */ 268 | dontMock(moduleName: string): JestObjectType, 269 | /** 270 | * Returns a new, unused mock function. Optionally takes a mock 271 | * implementation. 272 | */ 273 | fn(implementation?: Function): JestMockFn, 274 | /** 275 | * Determines if the given function is a mocked function. 276 | */ 277 | isMockFunction(fn: Function): boolean, 278 | /** 279 | * Given the name of a module, use the automatic mocking system to generate a 280 | * mocked version of the module for you. 281 | */ 282 | genMockFromModule(moduleName: string): any, 283 | /** 284 | * Mocks a module with an auto-mocked version when it is being required. 285 | * 286 | * The second argument can be used to specify an explicit module factory that 287 | * is being run instead of using Jest's automocking feature. 288 | * 289 | * The third argument can be used to create virtual mocks -- mocks of modules 290 | * that don't exist anywhere in the system. 291 | */ 292 | mock(moduleName: string, moduleFactory?: any): JestObjectType, 293 | /** 294 | * Resets the module registry - the cache of all required modules. This is 295 | * useful to isolate modules where local state might conflict between tests. 296 | */ 297 | resetModules(): JestObjectType, 298 | /** 299 | * Exhausts the micro-task queue (usually interfaced in node via 300 | * process.nextTick). 301 | */ 302 | runAllTicks(): void, 303 | /** 304 | * Exhausts the macro-task queue (i.e., all tasks queued by setTimeout(), 305 | * setInterval(), and setImmediate()). 306 | */ 307 | runAllTimers(): void, 308 | /** 309 | * Exhausts all tasks queued by setImmediate(). 310 | */ 311 | runAllImmediates(): void, 312 | /** 313 | * Executes only the macro task queue (i.e. all tasks queued by setTimeout() 314 | * or setInterval() and setImmediate()). 315 | */ 316 | runTimersToTime(msToRun: number): void, 317 | /** 318 | * Executes only the macro-tasks that are currently pending (i.e., only the 319 | * tasks that have been queued by setTimeout() or setInterval() up to this 320 | * point) 321 | */ 322 | runOnlyPendingTimers(): void, 323 | /** 324 | * Explicitly supplies the mock object that the module system should return 325 | * for the specified module. Note: It is recommended to use jest.mock() 326 | * instead. 327 | */ 328 | setMock(moduleName: string, moduleExports: any): JestObjectType, 329 | /** 330 | * Indicates that the module system should never return a mocked version of 331 | * the specified module from require() (e.g. that it should always return the 332 | * real module). 333 | */ 334 | unmock(moduleName: string): JestObjectType, 335 | /** 336 | * Instructs Jest to use fake versions of the standard timer functions 337 | * (setTimeout, setInterval, clearTimeout, clearInterval, nextTick, 338 | * setImmediate and clearImmediate). 339 | */ 340 | useFakeTimers(): JestObjectType, 341 | /** 342 | * Instructs Jest to use the real versions of the standard timer functions. 343 | */ 344 | useRealTimers(): JestObjectType, 345 | } 346 | 347 | type JestSpyType = { 348 | calls: JestCallsType, 349 | } 350 | 351 | /** Runs this function after every test inside this context */ 352 | declare function afterEach(fn: Function): void; 353 | /** Runs this function before every test inside this context */ 354 | declare function beforeEach(fn: Function): void; 355 | /** Runs this function after all tests have finished inside this context */ 356 | declare function afterAll(fn: Function): void; 357 | /** Runs this function before any tests have started inside this context */ 358 | declare function beforeAll(fn: Function): void; 359 | /** A context for grouping tests together */ 360 | declare function describe(name: string, fn: Function): void; 361 | 362 | /** An individual test unit */ 363 | declare var it: { 364 | /** 365 | * An individual test unit 366 | * 367 | * @param {string} Name of Test 368 | * @param {Function} Test 369 | */ 370 | (name: string, fn?: Function): ?Promise, 371 | /** 372 | * Only run this test 373 | * 374 | * @param {string} Name of Test 375 | * @param {Function} Test 376 | */ 377 | only(name: string, fn?: Function): ?Promise, 378 | /** 379 | * Skip running this test 380 | * 381 | * @param {string} Name of Test 382 | * @param {Function} Test 383 | */ 384 | skip(name: string, fn?: Function): ?Promise, 385 | /** 386 | * Run the test concurrently 387 | * 388 | * @param {string} Name of Test 389 | * @param {Function} Test 390 | */ 391 | concurrent(name: string, fn?: Function): ?Promise, 392 | }; 393 | declare function fit(name: string, fn: Function): ?Promise; 394 | /** An individual test unit */ 395 | declare var test: typeof it; 396 | /** A disabled group of tests */ 397 | declare var xdescribe: typeof describe; 398 | /** A focused group of tests */ 399 | declare var fdescribe: typeof describe; 400 | /** A disabled individual test */ 401 | declare var xit: typeof it; 402 | /** A disabled individual test */ 403 | declare var xtest: typeof it; 404 | 405 | /** The expect function is used every time you want to test a value */ 406 | declare var expect: { 407 | /** The object that you want to make assertions against */ 408 | (value: any): JestExpectType, 409 | /** Add additional Jasmine matchers to Jest's roster */ 410 | extend(matchers: {[name:string]: JestMatcher}): void, 411 | assertions(expectedAssertions: number): void, 412 | any(value: mixed): JestAsymmetricEqualityType, 413 | anything(): void, 414 | arrayContaining(value: Array): void, 415 | objectContaining(value: Object): void, 416 | stringMatching(value: string | RegExp): void, 417 | }; 418 | 419 | // TODO handle return type 420 | // http://jasmine.github.io/2.4/introduction.html#section-Spies 421 | declare function spyOn(value: mixed, method: string): Object; 422 | 423 | /** Holds all functions related to manipulating test runner */ 424 | declare var jest: JestObjectType 425 | 426 | /** 427 | * The global Jamine object, this is generally not exposed as the public API, 428 | * using features inside here could break in later versions of Jest. 429 | */ 430 | declare var jasmine: { 431 | DEFAULT_TIMEOUT_INTERVAL: number, 432 | any(value: mixed): JestAsymmetricEqualityType, 433 | anything(): void, 434 | arrayContaining(value: Array): void, 435 | clock(): JestClockType, 436 | createSpy(name: string): JestSpyType, 437 | createSpyObj(baseName: string, methodNames: Array): {[methodName: string]: JestSpyType}, 438 | objectContaining(value: Object): void, 439 | stringMatching(value: string): void, 440 | } 441 | -------------------------------------------------------------------------------- /flow-typed/npm/jss-preset-default_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: d802715bad60306334f6654afd9ac46d 2 | // flow-typed version: <>/jss-preset-default_v^4.0.0/flow_v0.56.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'jss-preset-default' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'jss-preset-default' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'jss-preset-default/dist/jss-preset-default' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'jss-preset-default/dist/jss-preset-default.min' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'jss-preset-default/lib/index' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'jss-preset-default/webpack.config' { 38 | declare module.exports: any; 39 | } 40 | 41 | // Filename aliases 42 | declare module 'jss-preset-default/dist/jss-preset-default.js' { 43 | declare module.exports: $Exports<'jss-preset-default/dist/jss-preset-default'>; 44 | } 45 | declare module 'jss-preset-default/dist/jss-preset-default.min.js' { 46 | declare module.exports: $Exports<'jss-preset-default/dist/jss-preset-default.min'>; 47 | } 48 | declare module 'jss-preset-default/lib/index.js' { 49 | declare module.exports: $Exports<'jss-preset-default/lib/index'>; 50 | } 51 | declare module 'jss-preset-default/webpack.config.js' { 52 | declare module.exports: $Exports<'jss-preset-default/webpack.config'>; 53 | } 54 | -------------------------------------------------------------------------------- /flow-typed/npm/jss_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: c3ac7f7e97abbc1d8925d58d3d6a3e08 2 | // flow-typed version: <>/jss_v9.0.0/flow_v0.56.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'jss' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'jss' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'jss/dist/jss' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'jss/dist/jss.min' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'jss/flow-typed/cssom' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'jss/lib/index' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'jss/lib/Jss' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'jss/lib/plugins/observables' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'jss/lib/plugins/rules' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'jss/lib/PluginsRegistry' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'jss/lib/renderers/DomRenderer' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'jss/lib/renderers/VirtualRenderer' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'jss/lib/RuleList' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'jss/lib/rules/ConditionalRule' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'jss/lib/rules/FontFaceRule' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'jss/lib/rules/KeyframesRule' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'jss/lib/rules/SimpleRule' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'jss/lib/rules/StyleRule' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module 'jss/lib/rules/ViewportRule' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module 'jss/lib/sheets' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module 'jss/lib/SheetsManager' { 98 | declare module.exports: any; 99 | } 100 | 101 | declare module 'jss/lib/SheetsRegistry' { 102 | declare module.exports: any; 103 | } 104 | 105 | declare module 'jss/lib/StyleSheet' { 106 | declare module.exports: any; 107 | } 108 | 109 | declare module 'jss/lib/types' { 110 | declare module.exports: any; 111 | } 112 | 113 | declare module 'jss/lib/utils/cloneStyle' { 114 | declare module.exports: any; 115 | } 116 | 117 | declare module 'jss/lib/utils/createGenerateClassName' { 118 | declare module.exports: any; 119 | } 120 | 121 | declare module 'jss/lib/utils/createRule' { 122 | declare module.exports: any; 123 | } 124 | 125 | declare module 'jss/lib/utils/findClassNames' { 126 | declare module.exports: any; 127 | } 128 | 129 | declare module 'jss/lib/utils/getDynamicStyles' { 130 | declare module.exports: any; 131 | } 132 | 133 | declare module 'jss/lib/utils/isDynamicValue' { 134 | declare module.exports: any; 135 | } 136 | 137 | declare module 'jss/lib/utils/linkRule' { 138 | declare module.exports: any; 139 | } 140 | 141 | declare module 'jss/lib/utils/toCss' { 142 | declare module.exports: any; 143 | } 144 | 145 | declare module 'jss/lib/utils/toCssValue' { 146 | declare module.exports: any; 147 | } 148 | 149 | declare module 'jss/lib/utils/updateStyle' { 150 | declare module.exports: any; 151 | } 152 | 153 | // Filename aliases 154 | declare module 'jss/dist/jss.js' { 155 | declare module.exports: $Exports<'jss/dist/jss'>; 156 | } 157 | declare module 'jss/dist/jss.min.js' { 158 | declare module.exports: $Exports<'jss/dist/jss.min'>; 159 | } 160 | declare module 'jss/flow-typed/cssom.js' { 161 | declare module.exports: $Exports<'jss/flow-typed/cssom'>; 162 | } 163 | declare module 'jss/lib/index.js' { 164 | declare module.exports: $Exports<'jss/lib/index'>; 165 | } 166 | declare module 'jss/lib/Jss.js' { 167 | declare module.exports: $Exports<'jss/lib/Jss'>; 168 | } 169 | declare module 'jss/lib/plugins/observables.js' { 170 | declare module.exports: $Exports<'jss/lib/plugins/observables'>; 171 | } 172 | declare module 'jss/lib/plugins/rules.js' { 173 | declare module.exports: $Exports<'jss/lib/plugins/rules'>; 174 | } 175 | declare module 'jss/lib/PluginsRegistry.js' { 176 | declare module.exports: $Exports<'jss/lib/PluginsRegistry'>; 177 | } 178 | declare module 'jss/lib/renderers/DomRenderer.js' { 179 | declare module.exports: $Exports<'jss/lib/renderers/DomRenderer'>; 180 | } 181 | declare module 'jss/lib/renderers/VirtualRenderer.js' { 182 | declare module.exports: $Exports<'jss/lib/renderers/VirtualRenderer'>; 183 | } 184 | declare module 'jss/lib/RuleList.js' { 185 | declare module.exports: $Exports<'jss/lib/RuleList'>; 186 | } 187 | declare module 'jss/lib/rules/ConditionalRule.js' { 188 | declare module.exports: $Exports<'jss/lib/rules/ConditionalRule'>; 189 | } 190 | declare module 'jss/lib/rules/FontFaceRule.js' { 191 | declare module.exports: $Exports<'jss/lib/rules/FontFaceRule'>; 192 | } 193 | declare module 'jss/lib/rules/KeyframesRule.js' { 194 | declare module.exports: $Exports<'jss/lib/rules/KeyframesRule'>; 195 | } 196 | declare module 'jss/lib/rules/SimpleRule.js' { 197 | declare module.exports: $Exports<'jss/lib/rules/SimpleRule'>; 198 | } 199 | declare module 'jss/lib/rules/StyleRule.js' { 200 | declare module.exports: $Exports<'jss/lib/rules/StyleRule'>; 201 | } 202 | declare module 'jss/lib/rules/ViewportRule.js' { 203 | declare module.exports: $Exports<'jss/lib/rules/ViewportRule'>; 204 | } 205 | declare module 'jss/lib/sheets.js' { 206 | declare module.exports: $Exports<'jss/lib/sheets'>; 207 | } 208 | declare module 'jss/lib/SheetsManager.js' { 209 | declare module.exports: $Exports<'jss/lib/SheetsManager'>; 210 | } 211 | declare module 'jss/lib/SheetsRegistry.js' { 212 | declare module.exports: $Exports<'jss/lib/SheetsRegistry'>; 213 | } 214 | declare module 'jss/lib/StyleSheet.js' { 215 | declare module.exports: $Exports<'jss/lib/StyleSheet'>; 216 | } 217 | declare module 'jss/lib/types.js' { 218 | declare module.exports: $Exports<'jss/lib/types'>; 219 | } 220 | declare module 'jss/lib/utils/cloneStyle.js' { 221 | declare module.exports: $Exports<'jss/lib/utils/cloneStyle'>; 222 | } 223 | declare module 'jss/lib/utils/createGenerateClassName.js' { 224 | declare module.exports: $Exports<'jss/lib/utils/createGenerateClassName'>; 225 | } 226 | declare module 'jss/lib/utils/createRule.js' { 227 | declare module.exports: $Exports<'jss/lib/utils/createRule'>; 228 | } 229 | declare module 'jss/lib/utils/findClassNames.js' { 230 | declare module.exports: $Exports<'jss/lib/utils/findClassNames'>; 231 | } 232 | declare module 'jss/lib/utils/getDynamicStyles.js' { 233 | declare module.exports: $Exports<'jss/lib/utils/getDynamicStyles'>; 234 | } 235 | declare module 'jss/lib/utils/isDynamicValue.js' { 236 | declare module.exports: $Exports<'jss/lib/utils/isDynamicValue'>; 237 | } 238 | declare module 'jss/lib/utils/linkRule.js' { 239 | declare module.exports: $Exports<'jss/lib/utils/linkRule'>; 240 | } 241 | declare module 'jss/lib/utils/toCss.js' { 242 | declare module.exports: $Exports<'jss/lib/utils/toCss'>; 243 | } 244 | declare module 'jss/lib/utils/toCssValue.js' { 245 | declare module.exports: $Exports<'jss/lib/utils/toCssValue'>; 246 | } 247 | declare module 'jss/lib/utils/updateStyle.js' { 248 | declare module.exports: $Exports<'jss/lib/utils/updateStyle'>; 249 | } 250 | -------------------------------------------------------------------------------- /flow-typed/npm/prop-types_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 15f1dbaabcfdc41488335743c4ebcc75 2 | // flow-typed version: <>/prop-types_v15.5.10/flow_v0.44.2 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'prop-types' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'prop-types' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'prop-types/checkPropTypes' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'prop-types/factory' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'prop-types/factoryWithThrowingShims' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'prop-types/factoryWithTypeCheckers' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'prop-types/lib/ReactPropTypesSecret' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'prop-types/prop-types' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'prop-types/prop-types.min' { 50 | declare module.exports: any; 51 | } 52 | 53 | // Filename aliases 54 | declare module 'prop-types/checkPropTypes.js' { 55 | declare module.exports: $Exports<'prop-types/checkPropTypes'>; 56 | } 57 | declare module 'prop-types/factory.js' { 58 | declare module.exports: $Exports<'prop-types/factory'>; 59 | } 60 | declare module 'prop-types/factoryWithThrowingShims.js' { 61 | declare module.exports: $Exports<'prop-types/factoryWithThrowingShims'>; 62 | } 63 | declare module 'prop-types/factoryWithTypeCheckers.js' { 64 | declare module.exports: $Exports<'prop-types/factoryWithTypeCheckers'>; 65 | } 66 | declare module 'prop-types/index' { 67 | declare module.exports: $Exports<'prop-types'>; 68 | } 69 | declare module 'prop-types/index.js' { 70 | declare module.exports: $Exports<'prop-types'>; 71 | } 72 | declare module 'prop-types/lib/ReactPropTypesSecret.js' { 73 | declare module.exports: $Exports<'prop-types/lib/ReactPropTypesSecret'>; 74 | } 75 | declare module 'prop-types/prop-types.js' { 76 | declare module.exports: $Exports<'prop-types/prop-types'>; 77 | } 78 | declare module 'prop-types/prop-types.min.js' { 79 | declare module.exports: $Exports<'prop-types/prop-types.min'>; 80 | } 81 | -------------------------------------------------------------------------------- /flow-typed/npm/react-jss_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 98a0b6bfa7b2e67c15bc6bd65d60bbc9 2 | // flow-typed version: <>/react-jss_v^6.1.1/flow_v0.44.2 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'react-jss' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'react-jss' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'react-jss/dist/react-jss' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'react-jss/dist/react-jss.min' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'react-jss/karma.conf' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'react-jss/lib/compose' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'react-jss/lib/createHoc' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'react-jss/lib/createInjectSheet' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'react-jss/lib/getDisplayName' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'react-jss/lib/index' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'react-jss/lib/index.test' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'react-jss/lib/jss' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'react-jss/lib/SheetsRegistryProvider' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'react-jss/tests.webpack' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'react-jss/tests/compose' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'react-jss/tests/createHoc' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'react-jss/tests/createInjectSheet' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'react-jss/tests/getDisplayName' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module 'react-jss/tests/index' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module 'react-jss/tests/index.test' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module 'react-jss/tests/jss' { 98 | declare module.exports: any; 99 | } 100 | 101 | declare module 'react-jss/tests/SheetsRegistryProvider' { 102 | declare module.exports: any; 103 | } 104 | 105 | declare module 'react-jss/webpack.config' { 106 | declare module.exports: any; 107 | } 108 | 109 | // Filename aliases 110 | declare module 'react-jss/dist/react-jss.js' { 111 | declare module.exports: $Exports<'react-jss/dist/react-jss'>; 112 | } 113 | declare module 'react-jss/dist/react-jss.min.js' { 114 | declare module.exports: $Exports<'react-jss/dist/react-jss.min'>; 115 | } 116 | declare module 'react-jss/karma.conf.js' { 117 | declare module.exports: $Exports<'react-jss/karma.conf'>; 118 | } 119 | declare module 'react-jss/lib/compose.js' { 120 | declare module.exports: $Exports<'react-jss/lib/compose'>; 121 | } 122 | declare module 'react-jss/lib/createHoc.js' { 123 | declare module.exports: $Exports<'react-jss/lib/createHoc'>; 124 | } 125 | declare module 'react-jss/lib/createInjectSheet.js' { 126 | declare module.exports: $Exports<'react-jss/lib/createInjectSheet'>; 127 | } 128 | declare module 'react-jss/lib/getDisplayName.js' { 129 | declare module.exports: $Exports<'react-jss/lib/getDisplayName'>; 130 | } 131 | declare module 'react-jss/lib/index.js' { 132 | declare module.exports: $Exports<'react-jss/lib/index'>; 133 | } 134 | declare module 'react-jss/lib/index.test.js' { 135 | declare module.exports: $Exports<'react-jss/lib/index.test'>; 136 | } 137 | declare module 'react-jss/lib/jss.js' { 138 | declare module.exports: $Exports<'react-jss/lib/jss'>; 139 | } 140 | declare module 'react-jss/lib/SheetsRegistryProvider.js' { 141 | declare module.exports: $Exports<'react-jss/lib/SheetsRegistryProvider'>; 142 | } 143 | declare module 'react-jss/tests.webpack.js' { 144 | declare module.exports: $Exports<'react-jss/tests.webpack'>; 145 | } 146 | declare module 'react-jss/tests/compose.js' { 147 | declare module.exports: $Exports<'react-jss/tests/compose'>; 148 | } 149 | declare module 'react-jss/tests/createHoc.js' { 150 | declare module.exports: $Exports<'react-jss/tests/createHoc'>; 151 | } 152 | declare module 'react-jss/tests/createInjectSheet.js' { 153 | declare module.exports: $Exports<'react-jss/tests/createInjectSheet'>; 154 | } 155 | declare module 'react-jss/tests/getDisplayName.js' { 156 | declare module.exports: $Exports<'react-jss/tests/getDisplayName'>; 157 | } 158 | declare module 'react-jss/tests/index.js' { 159 | declare module.exports: $Exports<'react-jss/tests/index'>; 160 | } 161 | declare module 'react-jss/tests/index.test.js' { 162 | declare module.exports: $Exports<'react-jss/tests/index.test'>; 163 | } 164 | declare module 'react-jss/tests/jss.js' { 165 | declare module.exports: $Exports<'react-jss/tests/jss'>; 166 | } 167 | declare module 'react-jss/tests/SheetsRegistryProvider.js' { 168 | declare module.exports: $Exports<'react-jss/tests/SheetsRegistryProvider'>; 169 | } 170 | declare module 'react-jss/webpack.config.js' { 171 | declare module.exports: $Exports<'react-jss/webpack.config'>; 172 | } 173 | -------------------------------------------------------------------------------- /flow-typed/npm/react-test-renderer_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 177e8ef319c0edd5707fc96e0be67152 2 | // flow-typed version: <>/react-test-renderer_v^16.0.0/flow_v0.56.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'react-test-renderer' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'react-test-renderer' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'react-test-renderer/cjs/react-test-renderer-shallow.development' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'react-test-renderer/cjs/react-test-renderer.development' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'react-test-renderer/shallow' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'react-test-renderer/stack' { 38 | declare module.exports: any; 39 | } 40 | 41 | // Filename aliases 42 | declare module 'react-test-renderer/cjs/react-test-renderer-shallow.development.js' { 43 | declare module.exports: $Exports<'react-test-renderer/cjs/react-test-renderer-shallow.development'>; 44 | } 45 | declare module 'react-test-renderer/cjs/react-test-renderer.development.js' { 46 | declare module.exports: $Exports<'react-test-renderer/cjs/react-test-renderer.development'>; 47 | } 48 | declare module 'react-test-renderer/index' { 49 | declare module.exports: $Exports<'react-test-renderer'>; 50 | } 51 | declare module 'react-test-renderer/index.js' { 52 | declare module.exports: $Exports<'react-test-renderer'>; 53 | } 54 | declare module 'react-test-renderer/shallow.js' { 55 | declare module.exports: $Exports<'react-test-renderer/shallow'>; 56 | } 57 | declare module 'react-test-renderer/stack.js' { 58 | declare module.exports: $Exports<'react-test-renderer/stack'>; 59 | } 60 | -------------------------------------------------------------------------------- /flow-typed/npm/recompose_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 8854e2feb1e34cfca60f352b02f49d23 2 | // flow-typed version: <>/recompose_v^0.23.1/flow_v0.44.2 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'recompose' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'recompose' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'recompose/baconObservableConfig' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'recompose/branch' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'recompose/build/Recompose' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'recompose/build/Recompose.min' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'recompose/componentFromProp' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'recompose/componentFromStream' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'recompose/compose' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'recompose/createEagerElement' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'recompose/createEagerFactory' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'recompose/createEventHandler' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'recompose/createHelper' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'recompose/createSink' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'recompose/defaultProps' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'recompose/es/Recompose' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'recompose/flattenProp' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'recompose/flydObservableConfig' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module 'recompose/getContext' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module 'recompose/getDisplayName' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module 'recompose/hoistStatics' { 98 | declare module.exports: any; 99 | } 100 | 101 | declare module 'recompose/isClassComponent' { 102 | declare module.exports: any; 103 | } 104 | 105 | declare module 'recompose/isReferentiallyTransparentFunctionComponent' { 106 | declare module.exports: any; 107 | } 108 | 109 | declare module 'recompose/kefirObservableConfig' { 110 | declare module.exports: any; 111 | } 112 | 113 | declare module 'recompose/lifecycle' { 114 | declare module.exports: any; 115 | } 116 | 117 | declare module 'recompose/mapProps' { 118 | declare module.exports: any; 119 | } 120 | 121 | declare module 'recompose/mapPropsStream' { 122 | declare module.exports: any; 123 | } 124 | 125 | declare module 'recompose/mostObservableConfig' { 126 | declare module.exports: any; 127 | } 128 | 129 | declare module 'recompose/nest' { 130 | declare module.exports: any; 131 | } 132 | 133 | declare module 'recompose/onlyUpdateForKeys' { 134 | declare module.exports: any; 135 | } 136 | 137 | declare module 'recompose/onlyUpdateForPropTypes' { 138 | declare module.exports: any; 139 | } 140 | 141 | declare module 'recompose/pure' { 142 | declare module.exports: any; 143 | } 144 | 145 | declare module 'recompose/renameProp' { 146 | declare module.exports: any; 147 | } 148 | 149 | declare module 'recompose/renameProps' { 150 | declare module.exports: any; 151 | } 152 | 153 | declare module 'recompose/renderComponent' { 154 | declare module.exports: any; 155 | } 156 | 157 | declare module 'recompose/renderNothing' { 158 | declare module.exports: any; 159 | } 160 | 161 | declare module 'recompose/rxjs4ObservableConfig' { 162 | declare module.exports: any; 163 | } 164 | 165 | declare module 'recompose/rxjsObservableConfig' { 166 | declare module.exports: any; 167 | } 168 | 169 | declare module 'recompose/setDisplayName' { 170 | declare module.exports: any; 171 | } 172 | 173 | declare module 'recompose/setObservableConfig' { 174 | declare module.exports: any; 175 | } 176 | 177 | declare module 'recompose/setPropTypes' { 178 | declare module.exports: any; 179 | } 180 | 181 | declare module 'recompose/setStatic' { 182 | declare module.exports: any; 183 | } 184 | 185 | declare module 'recompose/shallowEqual' { 186 | declare module.exports: any; 187 | } 188 | 189 | declare module 'recompose/shouldUpdate' { 190 | declare module.exports: any; 191 | } 192 | 193 | declare module 'recompose/toClass' { 194 | declare module.exports: any; 195 | } 196 | 197 | declare module 'recompose/utils/createEagerElementUtil' { 198 | declare module.exports: any; 199 | } 200 | 201 | declare module 'recompose/utils/omit' { 202 | declare module.exports: any; 203 | } 204 | 205 | declare module 'recompose/utils/pick' { 206 | declare module.exports: any; 207 | } 208 | 209 | declare module 'recompose/withContext' { 210 | declare module.exports: any; 211 | } 212 | 213 | declare module 'recompose/withHandlers' { 214 | declare module.exports: any; 215 | } 216 | 217 | declare module 'recompose/withProps' { 218 | declare module.exports: any; 219 | } 220 | 221 | declare module 'recompose/withPropsOnChange' { 222 | declare module.exports: any; 223 | } 224 | 225 | declare module 'recompose/withReducer' { 226 | declare module.exports: any; 227 | } 228 | 229 | declare module 'recompose/withState' { 230 | declare module.exports: any; 231 | } 232 | 233 | declare module 'recompose/wrapDisplayName' { 234 | declare module.exports: any; 235 | } 236 | 237 | declare module 'recompose/xstreamObservableConfig' { 238 | declare module.exports: any; 239 | } 240 | 241 | // Filename aliases 242 | declare module 'recompose/baconObservableConfig.js' { 243 | declare module.exports: $Exports<'recompose/baconObservableConfig'>; 244 | } 245 | declare module 'recompose/branch.js' { 246 | declare module.exports: $Exports<'recompose/branch'>; 247 | } 248 | declare module 'recompose/build/Recompose.js' { 249 | declare module.exports: $Exports<'recompose/build/Recompose'>; 250 | } 251 | declare module 'recompose/build/Recompose.min.js' { 252 | declare module.exports: $Exports<'recompose/build/Recompose.min'>; 253 | } 254 | declare module 'recompose/componentFromProp.js' { 255 | declare module.exports: $Exports<'recompose/componentFromProp'>; 256 | } 257 | declare module 'recompose/componentFromStream.js' { 258 | declare module.exports: $Exports<'recompose/componentFromStream'>; 259 | } 260 | declare module 'recompose/compose.js' { 261 | declare module.exports: $Exports<'recompose/compose'>; 262 | } 263 | declare module 'recompose/createEagerElement.js' { 264 | declare module.exports: $Exports<'recompose/createEagerElement'>; 265 | } 266 | declare module 'recompose/createEagerFactory.js' { 267 | declare module.exports: $Exports<'recompose/createEagerFactory'>; 268 | } 269 | declare module 'recompose/createEventHandler.js' { 270 | declare module.exports: $Exports<'recompose/createEventHandler'>; 271 | } 272 | declare module 'recompose/createHelper.js' { 273 | declare module.exports: $Exports<'recompose/createHelper'>; 274 | } 275 | declare module 'recompose/createSink.js' { 276 | declare module.exports: $Exports<'recompose/createSink'>; 277 | } 278 | declare module 'recompose/defaultProps.js' { 279 | declare module.exports: $Exports<'recompose/defaultProps'>; 280 | } 281 | declare module 'recompose/es/Recompose.js' { 282 | declare module.exports: $Exports<'recompose/es/Recompose'>; 283 | } 284 | declare module 'recompose/flattenProp.js' { 285 | declare module.exports: $Exports<'recompose/flattenProp'>; 286 | } 287 | declare module 'recompose/flydObservableConfig.js' { 288 | declare module.exports: $Exports<'recompose/flydObservableConfig'>; 289 | } 290 | declare module 'recompose/getContext.js' { 291 | declare module.exports: $Exports<'recompose/getContext'>; 292 | } 293 | declare module 'recompose/getDisplayName.js' { 294 | declare module.exports: $Exports<'recompose/getDisplayName'>; 295 | } 296 | declare module 'recompose/hoistStatics.js' { 297 | declare module.exports: $Exports<'recompose/hoistStatics'>; 298 | } 299 | declare module 'recompose/index' { 300 | declare module.exports: $Exports<'recompose'>; 301 | } 302 | declare module 'recompose/index.js' { 303 | declare module.exports: $Exports<'recompose'>; 304 | } 305 | declare module 'recompose/isClassComponent.js' { 306 | declare module.exports: $Exports<'recompose/isClassComponent'>; 307 | } 308 | declare module 'recompose/isReferentiallyTransparentFunctionComponent.js' { 309 | declare module.exports: $Exports<'recompose/isReferentiallyTransparentFunctionComponent'>; 310 | } 311 | declare module 'recompose/kefirObservableConfig.js' { 312 | declare module.exports: $Exports<'recompose/kefirObservableConfig'>; 313 | } 314 | declare module 'recompose/lifecycle.js' { 315 | declare module.exports: $Exports<'recompose/lifecycle'>; 316 | } 317 | declare module 'recompose/mapProps.js' { 318 | declare module.exports: $Exports<'recompose/mapProps'>; 319 | } 320 | declare module 'recompose/mapPropsStream.js' { 321 | declare module.exports: $Exports<'recompose/mapPropsStream'>; 322 | } 323 | declare module 'recompose/mostObservableConfig.js' { 324 | declare module.exports: $Exports<'recompose/mostObservableConfig'>; 325 | } 326 | declare module 'recompose/nest.js' { 327 | declare module.exports: $Exports<'recompose/nest'>; 328 | } 329 | declare module 'recompose/onlyUpdateForKeys.js' { 330 | declare module.exports: $Exports<'recompose/onlyUpdateForKeys'>; 331 | } 332 | declare module 'recompose/onlyUpdateForPropTypes.js' { 333 | declare module.exports: $Exports<'recompose/onlyUpdateForPropTypes'>; 334 | } 335 | declare module 'recompose/pure.js' { 336 | declare module.exports: $Exports<'recompose/pure'>; 337 | } 338 | declare module 'recompose/renameProp.js' { 339 | declare module.exports: $Exports<'recompose/renameProp'>; 340 | } 341 | declare module 'recompose/renameProps.js' { 342 | declare module.exports: $Exports<'recompose/renameProps'>; 343 | } 344 | declare module 'recompose/renderComponent.js' { 345 | declare module.exports: $Exports<'recompose/renderComponent'>; 346 | } 347 | declare module 'recompose/renderNothing.js' { 348 | declare module.exports: $Exports<'recompose/renderNothing'>; 349 | } 350 | declare module 'recompose/rxjs4ObservableConfig.js' { 351 | declare module.exports: $Exports<'recompose/rxjs4ObservableConfig'>; 352 | } 353 | declare module 'recompose/rxjsObservableConfig.js' { 354 | declare module.exports: $Exports<'recompose/rxjsObservableConfig'>; 355 | } 356 | declare module 'recompose/setDisplayName.js' { 357 | declare module.exports: $Exports<'recompose/setDisplayName'>; 358 | } 359 | declare module 'recompose/setObservableConfig.js' { 360 | declare module.exports: $Exports<'recompose/setObservableConfig'>; 361 | } 362 | declare module 'recompose/setPropTypes.js' { 363 | declare module.exports: $Exports<'recompose/setPropTypes'>; 364 | } 365 | declare module 'recompose/setStatic.js' { 366 | declare module.exports: $Exports<'recompose/setStatic'>; 367 | } 368 | declare module 'recompose/shallowEqual.js' { 369 | declare module.exports: $Exports<'recompose/shallowEqual'>; 370 | } 371 | declare module 'recompose/shouldUpdate.js' { 372 | declare module.exports: $Exports<'recompose/shouldUpdate'>; 373 | } 374 | declare module 'recompose/toClass.js' { 375 | declare module.exports: $Exports<'recompose/toClass'>; 376 | } 377 | declare module 'recompose/utils/createEagerElementUtil.js' { 378 | declare module.exports: $Exports<'recompose/utils/createEagerElementUtil'>; 379 | } 380 | declare module 'recompose/utils/omit.js' { 381 | declare module.exports: $Exports<'recompose/utils/omit'>; 382 | } 383 | declare module 'recompose/utils/pick.js' { 384 | declare module.exports: $Exports<'recompose/utils/pick'>; 385 | } 386 | declare module 'recompose/withContext.js' { 387 | declare module.exports: $Exports<'recompose/withContext'>; 388 | } 389 | declare module 'recompose/withHandlers.js' { 390 | declare module.exports: $Exports<'recompose/withHandlers'>; 391 | } 392 | declare module 'recompose/withProps.js' { 393 | declare module.exports: $Exports<'recompose/withProps'>; 394 | } 395 | declare module 'recompose/withPropsOnChange.js' { 396 | declare module.exports: $Exports<'recompose/withPropsOnChange'>; 397 | } 398 | declare module 'recompose/withReducer.js' { 399 | declare module.exports: $Exports<'recompose/withReducer'>; 400 | } 401 | declare module 'recompose/withState.js' { 402 | declare module.exports: $Exports<'recompose/withState'>; 403 | } 404 | declare module 'recompose/wrapDisplayName.js' { 405 | declare module.exports: $Exports<'recompose/wrapDisplayName'>; 406 | } 407 | declare module 'recompose/xstreamObservableConfig.js' { 408 | declare module.exports: $Exports<'recompose/xstreamObservableConfig'>; 409 | } 410 | -------------------------------------------------------------------------------- /flow-typed/npm/theming_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 0b2dbbd7a0e7a4a61efa8f5cb564e5d5 2 | // flow-typed version: <>/theming_v1.1.0/flow_v0.44.2 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'theming' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'theming' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'theming/dist/cjs/channel' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'theming/dist/cjs/create-theme-listener' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'theming/dist/cjs/create-theme-provider' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'theming/dist/cjs/create-with-theme' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'theming/dist/cjs/index' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'theming/dist/esm/channel' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'theming/dist/esm/create-theme-listener' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'theming/dist/esm/create-theme-provider' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'theming/dist/esm/create-with-theme' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'theming/dist/esm/index' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'theming/src/channel' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'theming/src/create-theme-listener' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'theming/src/create-theme-listener.test' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'theming/src/create-theme-provider' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'theming/src/create-theme-provider.test' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'theming/src/create-with-theme' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module 'theming/src/create-with-theme.test' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module 'theming/src/index' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module 'theming/src/index.test' { 98 | declare module.exports: any; 99 | } 100 | 101 | declare module 'theming/src/test-helpers' { 102 | declare module.exports: any; 103 | } 104 | 105 | // Filename aliases 106 | declare module 'theming/dist/cjs/channel.js' { 107 | declare module.exports: $Exports<'theming/dist/cjs/channel'>; 108 | } 109 | declare module 'theming/dist/cjs/create-theme-listener.js' { 110 | declare module.exports: $Exports<'theming/dist/cjs/create-theme-listener'>; 111 | } 112 | declare module 'theming/dist/cjs/create-theme-provider.js' { 113 | declare module.exports: $Exports<'theming/dist/cjs/create-theme-provider'>; 114 | } 115 | declare module 'theming/dist/cjs/create-with-theme.js' { 116 | declare module.exports: $Exports<'theming/dist/cjs/create-with-theme'>; 117 | } 118 | declare module 'theming/dist/cjs/index.js' { 119 | declare module.exports: $Exports<'theming/dist/cjs/index'>; 120 | } 121 | declare module 'theming/dist/esm/channel.js' { 122 | declare module.exports: $Exports<'theming/dist/esm/channel'>; 123 | } 124 | declare module 'theming/dist/esm/create-theme-listener.js' { 125 | declare module.exports: $Exports<'theming/dist/esm/create-theme-listener'>; 126 | } 127 | declare module 'theming/dist/esm/create-theme-provider.js' { 128 | declare module.exports: $Exports<'theming/dist/esm/create-theme-provider'>; 129 | } 130 | declare module 'theming/dist/esm/create-with-theme.js' { 131 | declare module.exports: $Exports<'theming/dist/esm/create-with-theme'>; 132 | } 133 | declare module 'theming/dist/esm/index.js' { 134 | declare module.exports: $Exports<'theming/dist/esm/index'>; 135 | } 136 | declare module 'theming/src/channel.js' { 137 | declare module.exports: $Exports<'theming/src/channel'>; 138 | } 139 | declare module 'theming/src/create-theme-listener.js' { 140 | declare module.exports: $Exports<'theming/src/create-theme-listener'>; 141 | } 142 | declare module 'theming/src/create-theme-listener.test.js' { 143 | declare module.exports: $Exports<'theming/src/create-theme-listener.test'>; 144 | } 145 | declare module 'theming/src/create-theme-provider.js' { 146 | declare module.exports: $Exports<'theming/src/create-theme-provider'>; 147 | } 148 | declare module 'theming/src/create-theme-provider.test.js' { 149 | declare module.exports: $Exports<'theming/src/create-theme-provider.test'>; 150 | } 151 | declare module 'theming/src/create-with-theme.js' { 152 | declare module.exports: $Exports<'theming/src/create-with-theme'>; 153 | } 154 | declare module 'theming/src/create-with-theme.test.js' { 155 | declare module.exports: $Exports<'theming/src/create-with-theme.test'>; 156 | } 157 | declare module 'theming/src/index.js' { 158 | declare module.exports: $Exports<'theming/src/index'>; 159 | } 160 | declare module 'theming/src/index.test.js' { 161 | declare module.exports: $Exports<'theming/src/index.test'>; 162 | } 163 | declare module 'theming/src/test-helpers.js' { 164 | declare module.exports: $Exports<'theming/src/test-helpers'>; 165 | } 166 | -------------------------------------------------------------------------------- /flow-typed/npm/zen-observable_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: f25acde0699da70b4176deef047ad679 2 | // flow-typed version: <>/zen-observable_v^0.6.0/flow_v0.56.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'zen-observable' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'zen-observable' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'zen-observable/src/Observable' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'zen-observable/test/default' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'zen-observable/test/filter' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'zen-observable/test/flatMap' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'zen-observable/test/map' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'zen-observable/test/reduce' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'zen-observable/test/species' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'zen-observable/test/symbol' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'zen-observable/util/build' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'zen-observable/zen-observable' { 62 | declare module.exports: any; 63 | } 64 | 65 | // Filename aliases 66 | declare module 'zen-observable/index' { 67 | declare module.exports: $Exports<'zen-observable'>; 68 | } 69 | declare module 'zen-observable/index.js' { 70 | declare module.exports: $Exports<'zen-observable'>; 71 | } 72 | declare module 'zen-observable/src/Observable.js' { 73 | declare module.exports: $Exports<'zen-observable/src/Observable'>; 74 | } 75 | declare module 'zen-observable/test/default.js' { 76 | declare module.exports: $Exports<'zen-observable/test/default'>; 77 | } 78 | declare module 'zen-observable/test/filter.js' { 79 | declare module.exports: $Exports<'zen-observable/test/filter'>; 80 | } 81 | declare module 'zen-observable/test/flatMap.js' { 82 | declare module.exports: $Exports<'zen-observable/test/flatMap'>; 83 | } 84 | declare module 'zen-observable/test/map.js' { 85 | declare module.exports: $Exports<'zen-observable/test/map'>; 86 | } 87 | declare module 'zen-observable/test/reduce.js' { 88 | declare module.exports: $Exports<'zen-observable/test/reduce'>; 89 | } 90 | declare module 'zen-observable/test/species.js' { 91 | declare module.exports: $Exports<'zen-observable/test/species'>; 92 | } 93 | declare module 'zen-observable/test/symbol.js' { 94 | declare module.exports: $Exports<'zen-observable/test/symbol'>; 95 | } 96 | declare module 'zen-observable/util/build.js' { 97 | declare module.exports: $Exports<'zen-observable/util/build'>; 98 | } 99 | declare module 'zen-observable/zen-observable.js' { 100 | declare module.exports: $Exports<'zen-observable/zen-observable'>; 101 | } 102 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "styled-jss", 3 | "version": "2.2.3", 4 | "description": "Styled Components on top of JSS.", 5 | "main": "index.js", 6 | "scripts": { 7 | "clean": "rimraf lib/*", 8 | "lint": "eslint --ext .jsx,.js src", 9 | "lint:staged": "lint-staged", 10 | "flow": "flow check", 11 | "test": "jest", 12 | "test:watch": "npm test -- --watch", 13 | "test:coverage": "npm test -- --coverage", 14 | "coveralls": "cat ./coverage/lcov.info | coveralls", 15 | "prebuild": "npm run clean && npm run flow && npm run lint && npm run test:coverage", 16 | "build": "babel src --out-dir lib --ignore tests", 17 | "postbuild": "npm run flow:csrc && copyfiles -e '**/tests/*' ./*.* LICENSE -a -f lib", 18 | "flow:csrc": "flow-copy-source -i '**/tests/*' src lib", 19 | "flow:typed": "flow-typed install", 20 | "flow:stub": "flow-typed create-stub", 21 | "release": "npm run build && git push --follow-tags && npm publish lib" 22 | }, 23 | "repository": { 24 | "type": "git", 25 | "url": "git+https://github.com/cssinjs/styled-jss.git" 26 | }, 27 | "keywords": [ 28 | "jss", 29 | "styled", 30 | "react", 31 | "styled-components", 32 | "primitives" 33 | ], 34 | "author": "lttb ", 35 | "license": "MIT", 36 | "bugs": { 37 | "url": "https://github.com/cssinjs/styled-jss/issues" 38 | }, 39 | "homepage": "https://github.com/cssinjs/styled-jss#readme", 40 | "dependencies": { 41 | "deep-extend": "^0.5.0", 42 | "is-observable": "^0.2.0", 43 | "is-react-prop": "^1.0.0", 44 | "jss": "^9.8.0", 45 | "jss-preset-default": "^4.3.0", 46 | "theming": "^1.3.0" 47 | }, 48 | "peerDependencies": { 49 | "react": ">=14" 50 | }, 51 | "devDependencies": { 52 | "babel-cli": "^6.26.0", 53 | "babel-core": "^6.26.0", 54 | "babel-eslint": "^8.0.1", 55 | "babel-plugin-transform-class-properties": "^6.23.0", 56 | "babel-plugin-transform-flow-strip-types": "^6.22.0", 57 | "babel-plugin-transform-object-rest-spread": "^6.26.0", 58 | "babel-preset-es2015": "^6.24.1", 59 | "babel-preset-react": "^6.23.0", 60 | "common-tags": "^1.4.0", 61 | "copyfiles": "^1.2.0", 62 | "coveralls": "^3.0.0", 63 | "css.escape": "^1.5.1", 64 | "enzyme": "^3.1.0", 65 | "enzyme-adapter-react-16": "^1.0.1", 66 | "enzyme-to-json": "^3.1.2", 67 | "eslint": "^3.13.0", 68 | "eslint-config-airbnb": "^14.1.0", 69 | "eslint-config-jss": "^3.0.0", 70 | "eslint-plugin-import": "^2.2.0", 71 | "eslint-plugin-jsx-a11y": "^4.0.0", 72 | "eslint-plugin-react": "^6.10.3", 73 | "flow-bin": "^0.56.0", 74 | "flow-copy-source": "^1.2.1", 75 | "flow-typed": "^2.1.5", 76 | "jest": "^21.2.1", 77 | "lint-staged": "^4.2.3", 78 | "pre-commit": "^1.2.2", 79 | "raf": "^3.4.0", 80 | "react": "^16.0.0", 81 | "react-dom": "^16.0.0", 82 | "react-test-renderer": "^16.0.0", 83 | "rimraf": "^2.6.2", 84 | "zen-observable": "^0.6.0" 85 | }, 86 | "lint-staged": { 87 | "*.{js,jsx}": [ 88 | "lint", 89 | "git add", 90 | "npm test -- -b --findRelatedTests" 91 | ] 92 | }, 93 | "pre-commit": [ 94 | "lint:staged" 95 | ], 96 | "jest": { 97 | "rootDir": "src", 98 | "coverageDirectory": "../coverage", 99 | "setupFiles": [ 100 | "raf/polyfill", 101 | "css.escape" 102 | ], 103 | "snapshotSerializers": [ 104 | "enzyme-to-json/serializer" 105 | ] 106 | } 107 | } 108 | -------------------------------------------------------------------------------- /src/createStyled.js: -------------------------------------------------------------------------------- 1 | import styled from './styled' 2 | 3 | import type { 4 | BaseStylesType, 5 | ComponentStyleType, 6 | StyledType, 7 | StyledElementType, 8 | } from './types' 9 | 10 | const createStyled = (jss: Function) => (baseStyles: BaseStylesType = {}): StyledType => { 11 | let sheet 12 | 13 | const mountSheet = () => { 14 | if (!sheet) { 15 | sheet = jss.createStyleSheet(baseStyles, { 16 | link: true, 17 | meta: 'styled-jss', 18 | }).attach() 19 | } 20 | 21 | return sheet 22 | } 23 | 24 | const styledWrapper = element => 25 | (...ownStyle: ComponentStyleType[]): StyledElementType => 26 | styled({element, ownStyle, mountSheet, jss}) 27 | 28 | Object.defineProperty(styledWrapper, 'sheet', ({ 29 | get: () => sheet, 30 | }: Object)) // https://github.com/facebook/flow/issues/285 31 | 32 | return Object.assign(styledWrapper, {jss, mountSheet, styles: baseStyles}) 33 | } 34 | 35 | export default createStyled 36 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import {create as createJss} from 'jss' 2 | import preset from 'jss-preset-default' 3 | 4 | import createStyled from './createStyled' 5 | 6 | const jss: Function = createJss(preset()) 7 | 8 | export {ThemeProvider} from 'theming' 9 | 10 | export const Styled = createStyled(jss) 11 | export default Styled() 12 | 13 | export {default as injectStyled} from './injectStyled' 14 | -------------------------------------------------------------------------------- /src/injectStyled.js: -------------------------------------------------------------------------------- 1 | import {createElement} from 'react' 2 | import type {ComponentType} from 'react' 3 | 4 | import composeClasses from './utils/composeClasses' 5 | import type {StyledType} from './types' 6 | 7 | const injectStyled = (styled: StyledType) => (InnerComponent: ComponentType) => { 8 | const sheet = styled.mountSheet() 9 | 10 | const classes = Object.keys(sheet.classes).reduce((acc, name) => ({ 11 | ...acc, 12 | [name]: composeClasses([sheet.classes[name]]), 13 | }), {}) 14 | 15 | return (props: Object) => createElement(InnerComponent, {classes, ...props}) 16 | } 17 | 18 | export default injectStyled 19 | -------------------------------------------------------------------------------- /src/styled.js: -------------------------------------------------------------------------------- 1 | import {Component, createElement} from 'react' 2 | import {object} from 'prop-types' 3 | import {themeListener, channel} from 'theming' 4 | 5 | import filterProps from './utils/filterProps' 6 | import composeClasses from './utils/composeClasses' 7 | import generateTagName from './utils/generateTagName' 8 | import getSeparatedStyles from './utils/getSeparatedStyles' 9 | 10 | import type { 11 | JssSheet, 12 | TagNameOrStyledElementType, 13 | ComponentStyleType, 14 | StyledElementPropsType 15 | } from './types' 16 | 17 | type Comp = Function & Component<*> 18 | 19 | type StyledArgs = { 20 | element: TagNameOrStyledElementType | Comp, 21 | ownStyle: ComponentStyleType[], 22 | mountSheet: Function, 23 | jss: Function 24 | } 25 | 26 | type StateType = { 27 | theme?: Object 28 | } 29 | 30 | const getElementName = (element: Comp): string => 31 | element.displayName || element.name || 'StyledElement' 32 | 33 | const getParamsByElement = (element) => { 34 | if (typeof element === 'string') return {tagName: element} 35 | if (element.tagName) return element 36 | 37 | return { 38 | tagName: getElementName(element), 39 | reactComponent: element 40 | } 41 | } 42 | 43 | const styled = ({element, ownStyle, mountSheet, jss}: StyledArgs) => { 44 | const { 45 | style = [], 46 | tagName, 47 | reactComponent, 48 | }: { 49 | style?: ComponentStyleType[], 50 | tagName: string, 51 | reactComponent?: typeof element 52 | } = getParamsByElement(element) 53 | 54 | const elementStyle = style.concat(ownStyle) 55 | 56 | const {dynamicStyle, staticStyle} = getSeparatedStyles(...elementStyle) 57 | const staticTagName = staticStyle && generateTagName(tagName) 58 | 59 | const isFunctionStyle = typeof dynamicStyle === 'function' 60 | 61 | const availableDynamicTagNames = [] 62 | const classMap = {} 63 | 64 | let staticClassName 65 | 66 | class StyledElement extends Component { 67 | static tagName: string = tagName 68 | static style: ComponentStyleType[] = elementStyle 69 | 70 | // If the base component is a React component (and thus neither an intrinsic tag or a 71 | // styled element), make sure to keep a reference to the component around. Otherwise deeply 72 | // nested styled elements won't render the base component correctly. 73 | static reactComponent = reactComponent 74 | 75 | static contextTypes = { 76 | [channel]: object 77 | } 78 | 79 | constructor(props: StyledElementPropsType, context: any) { 80 | super(props, context) 81 | 82 | if (!this.dynamicTagName && dynamicStyle) { 83 | this.dynamicTagName = availableDynamicTagNames.pop() || generateTagName(tagName) 84 | } 85 | 86 | this.state = {} 87 | 88 | if (context[channel]) { 89 | this.state.theme = themeListener.initial(context) 90 | } 91 | 92 | this.staticClassName = staticClassName 93 | } 94 | 95 | componentWillMount() { 96 | this.sheet = this.sheet || mountSheet() 97 | const rulesIndex = this.sheet.rules.index 98 | const rulesTotal = rulesIndex.length 99 | 100 | if (staticStyle && !this.sheet.getRule(staticTagName)) { 101 | this.sheet.addRule(staticTagName, staticStyle) 102 | } 103 | 104 | if (!dynamicStyle) return 105 | 106 | if (!this.sheet.getRule(this.dynamicTagName)) { 107 | this.sheet.addRule(this.dynamicTagName, dynamicStyle) 108 | } 109 | 110 | classMap[this.dynamicTagName] = classMap[this.dynamicTagName] || rulesIndex.slice(rulesTotal) 111 | 112 | this.updateSheet(this.props, this.state) 113 | } 114 | 115 | componentDidMount() { 116 | if (this.state.theme) { 117 | this.subscriptionId = themeListener.subscribe(this.context, this.setTheme) 118 | } 119 | } 120 | 121 | componentWillUpdate(nextProps: StyledElementPropsType, nextState: StateType) { 122 | if (dynamicStyle) this.updateSheet(nextProps, nextState) 123 | } 124 | 125 | componentWillUnmount() { 126 | availableDynamicTagNames.push(this.dynamicTagName) 127 | 128 | if (this.subscriptionId) { 129 | themeListener.unsubscribe(this.context, this.subscriptionId) 130 | } 131 | } 132 | 133 | setTheme = (theme: Object) => this.setState({theme}) 134 | 135 | dynamicTagName = '' 136 | sheet: JssSheet 137 | staticClassName = '' 138 | subscriptionId: ?number 139 | 140 | updateSheet(props: StyledElementPropsType, state: StateType) { 141 | let rule 142 | let ruleIndex = 0 143 | 144 | const styleProps = state.theme 145 | ? Object.assign({}, state, props) 146 | : props 147 | 148 | // nested styles become to flatten rules, so we need to update each nested rule 149 | for (ruleIndex; ruleIndex < classMap[this.dynamicTagName].length; ruleIndex++) { 150 | rule = classMap[this.dynamicTagName][ruleIndex] 151 | 152 | if (isFunctionStyle) { 153 | this.sheet.update(rule.key, styleProps) 154 | } 155 | else { 156 | this.sheet.update(rule.key, styleProps) 157 | } 158 | } 159 | } 160 | 161 | render() { 162 | const {children, className, ...attrs} = this.props 163 | 164 | const props = reactComponent ? attrs : filterProps(tagName, attrs) 165 | const tagClass = composeClasses([ 166 | this.staticClassName, 167 | staticTagName && this.sheet.classes[staticTagName], 168 | this.dynamicTagName && this.sheet.classes[this.dynamicTagName], 169 | className 170 | ]) 171 | 172 | return createElement(reactComponent || tagName, {...props, className: tagClass}, children) 173 | } 174 | } 175 | 176 | // $FlowIgnore 177 | StyledElement.valueOf = () => { 178 | if (!staticClassName) { 179 | staticClassName = `${jss.generateClassName({ 180 | key: generateTagName('static') 181 | })}` 182 | } 183 | 184 | return `.${staticClassName}` 185 | } 186 | 187 | // $FlowIgnore 188 | StyledElement.toString = StyledElement.valueOf 189 | 190 | return StyledElement 191 | } 192 | 193 | export default styled 194 | -------------------------------------------------------------------------------- /src/tests/.eslintrc: -------------------------------------------------------------------------------- 1 | rules: 2 | import/no-extraneous-dependencies: 3 | - error 4 | - devDependencies: true 5 | react/require-default-props: off 6 | global-require: off 7 | -------------------------------------------------------------------------------- /src/tests/App.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import type {StyledType} from '../types' 3 | 4 | export default (styled: StyledType) => { 5 | const App = styled('div')({ 6 | margin: 50, 7 | }) 8 | 9 | const Header = styled('header')({ 10 | padding: 10, 11 | }) 12 | 13 | // curried 14 | const section = styled('section') 15 | 16 | const Section = section({ 17 | color: 'red', 18 | }) 19 | 20 | // composition 21 | const AnotherSection = styled(Section)({ 22 | color: 'yellow', 23 | }) 24 | 25 | const Title = styled('h1')({ 26 | color: 'red', 27 | }) 28 | 29 | // function value 30 | const Button = styled('button')({ 31 | margin: ({margin = 0}) => margin, 32 | }) 33 | 34 | return ({margin = 10}: {margin?: number}) => ( 35 | 36 |
37 | Title 38 |
39 | 40 |
41 | 42 | 43 |
44 | 45 | Another section 46 |
47 | ) 48 | } 49 | -------------------------------------------------------------------------------- /src/tests/__snapshots__/functional.spec.jsx.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`functional tests Compose React Components should escape name in dev mode 1`] = ` 4 | ".\\\\(Comp\\\\.name\\\\)-1-id { 5 | color: red; 6 | }" 7 | `; 8 | 9 | exports[`functional tests Compose React Components should pass props 1`] = ` 10 | 11 | 16 | 21 | {"testProp":1,"testProp2":"2","className":"StyledElement-1-id testClassName"} 22 | 23 | 24 | 25 | `; 26 | 27 | exports[`functional tests Compose React Components should pass props 2`] = ` 28 | ".StyledElement-1-id { 29 | padding: 10px; 30 | }" 31 | `; 32 | 33 | exports[`functional tests Compose React Components should use .displayName 1`] = ` 34 | 35 | 38 |

41 | test 42 |

43 |
44 |
45 | `; 46 | 47 | exports[`functional tests Compose React Components should use .displayName 2`] = ` 48 | ".TestDisplayName-1-id { 49 | padding: 10px; 50 | }" 51 | `; 52 | 53 | exports[`functional tests Compose React Components should use .name 1`] = ` 54 | 55 | 58 |

61 | test 62 |

63 |
64 |
65 | `; 66 | 67 | exports[`functional tests Compose React Components should use .name 2`] = ` 68 | ".Test-1-id { 69 | padding: 10px; 70 | }" 71 | `; 72 | 73 | exports[`functional tests Compose React Components should use .name 3`] = ` 74 | 75 | 78 |

81 | test 82 |

83 |
84 |
85 | `; 86 | 87 | exports[`functional tests Compose React Components should use .name 4`] = ` 88 | ".StyledElement-1-id { 89 | padding: 10px; 90 | }" 91 | `; 92 | 93 | exports[`functional tests Observables should use observable value 1`] = ` 94 | ".div-1-id { 95 | padding: 40px; 96 | text-align: center; 97 | } 98 | .div-2-id { 99 | height: 10px; 100 | }" 101 | `; 102 | 103 | exports[`functional tests composable styles should compose all function styles 1`] = ` 104 | ".button-1-id { 105 | color: red; 106 | background-color: green; 107 | margin: 20px; 108 | padding: 20px; 109 | }" 110 | `; 111 | 112 | exports[`functional tests composable styles should compose all function styles 2`] = ` 113 | ".button-1-id { 114 | color: white; 115 | background-color: black; 116 | margin: 20px; 117 | padding: 20px; 118 | }" 119 | `; 120 | 121 | exports[`functional tests composable styles should merge all object styles 1`] = ` 122 | ".button-1-id { 123 | margin: 10px; 124 | padding: 20px; 125 | } 126 | .button-2-id { 127 | color: red; 128 | background-color: green; 129 | }" 130 | `; 131 | 132 | exports[`functional tests composable styles should merge and compose all styles 1`] = ` 133 | ".button-1-id { 134 | margin: 20px; 135 | padding: 20px; 136 | } 137 | .button-2-id { 138 | font-weight: 400; 139 | border-radius: 100%; 140 | color: red; 141 | background-color: green; 142 | }" 143 | `; 144 | 145 | exports[`functional tests composable styles should merge and compose all styles 2`] = ` 146 | ".button-1-id { 147 | margin: 20px; 148 | padding: 20px; 149 | } 150 | .button-2-id { 151 | font-weight: 400; 152 | border-radius: 100%; 153 | color: black; 154 | background-color: white; 155 | font-size: 15px; 156 | }" 157 | `; 158 | 159 | exports[`functional tests should update dynamic props for conditional rules 1`] = ` 160 | ".button-1-id { 161 | padding: 10px; 162 | } 163 | @media screen { 164 | .button-1-id { 165 | } 166 | .button-1-id .button { 167 | margin: 10px; 168 | } 169 | }" 170 | `; 171 | 172 | exports[`functional tests should update dynamic props for conditional rules 2`] = ` 173 | ".button-1-id { 174 | padding: 0; 175 | } 176 | @media screen { 177 | .button-1-id { 178 | } 179 | .button-1-id .button { 180 | margin: 0; 181 | } 182 | }" 183 | `; 184 | 185 | exports[`functional tests should update nested props 1`] = ` 186 | ".button-id { 187 | font-size: 12px; 188 | } 189 | .div-1-id { 190 | padding: 15px; 191 | } 192 | .div-3-id { 193 | } 194 | .div-3-id:hover { 195 | } 196 | .div-3-id:hover .button-id { 197 | color: green; 198 | } 199 | .button-2-id { 200 | } 201 | .div-4-id { 202 | } 203 | .div-4-id:hover { 204 | } 205 | .div-4-id:hover .button-id { 206 | color: red; 207 | }" 208 | `; 209 | 210 | exports[`functional tests should update nested props 2`] = ` 211 | ".button-id { 212 | font-size: 12px; 213 | } 214 | .div-1-id { 215 | padding: 15px; 216 | } 217 | .div-3-id:hover .button-id { 218 | color: red; 219 | } 220 | .div-4-id:hover .button-id { 221 | color: green; 222 | }" 223 | `; 224 | 225 | exports[`functional tests should update props and unmount 1`] = ` 226 | ".div-1-id { 227 | margin: 50px; 228 | } 229 | .header-2-id { 230 | padding: 10px; 231 | } 232 | .h1-5-id { 233 | color: red; 234 | } 235 | .section-3-id { 236 | color: red; 237 | } 238 | .button-6-id { 239 | margin: 0; 240 | } 241 | .button-7-id { 242 | margin: 10px; 243 | } 244 | .section-4-id { 245 | color: yellow; 246 | }" 247 | `; 248 | 249 | exports[`functional tests should update props and unmount 2`] = ` 250 | ".div-1-id { 251 | margin: 50px; 252 | } 253 | .header-2-id { 254 | padding: 10px; 255 | } 256 | .h1-5-id { 257 | color: red; 258 | } 259 | .section-3-id { 260 | color: red; 261 | } 262 | .button-6-id { 263 | margin: 0; 264 | } 265 | .button-7-id { 266 | margin: 20px; 267 | } 268 | .section-4-id { 269 | color: yellow; 270 | }" 271 | `; 272 | 273 | exports[`functional tests should use Styled Component classname in string 1`] = ` 274 | 275 | 276 |
279 | 280 |
283 | name 284 |
285 |
286 | 289 | 293 | 294 |
295 |
296 |
297 | `; 298 | 299 | exports[`functional tests should use Styled Component classname in string 2`] = ` 300 | ".div-4-id { 301 | } 302 | .div-4-id:not(:first-child) .static-2-id { 303 | display: none; 304 | } 305 | .div-4-id:not(:last-child) .static-3-id { 306 | visibility: hidden; 307 | } 308 | .div-4-id .static-2-id { 309 | color: green; 310 | } 311 | .div-1-id { 312 | color: red; 313 | } 314 | .img-5-id { 315 | width: 30px; 316 | }" 317 | `; 318 | 319 | exports[`functional tests should use props on remount 1`] = ` 320 | ".button-1-id { 321 | color: black; 322 | }" 323 | `; 324 | 325 | exports[`functional tests should use props on remount 2`] = ` 326 | ".button-1-id { 327 | color: red; 328 | }" 329 | `; 330 | 331 | exports[`functional tests theming should update theme 1`] = ` 332 | ".button-1-id { 333 | color: green; 334 | background-color: white; 335 | }" 336 | `; 337 | 338 | exports[`functional tests theming should update theme 2`] = ` 339 | ".button-1-id { 340 | color: yellow; 341 | background-color: blue; 342 | }" 343 | `; 344 | 345 | exports[`functional tests theming should work with ThemeProvider 1`] = ` 346 | ".button-1-id { 347 | color: green; 348 | background-color: white; 349 | }" 350 | `; 351 | 352 | exports[`functional tests theming should work with nested ThemeProvider 1`] = ` 353 | ".button-1-id { 354 | color: green; 355 | background-color: white; 356 | } 357 | .button-2-id { 358 | color: blue; 359 | background-color: yellow; 360 | }" 361 | `; 362 | -------------------------------------------------------------------------------- /src/tests/__snapshots__/index.spec.jsx.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`base rendering tests renders correctly App with default Styled 1`] = ` 4 |
7 |
10 |

13 | Title 14 |

15 |
16 |
20 | 25 | 30 |
31 |
34 | Another section 35 |
36 |
37 | `; 38 | 39 | exports[`base rendering tests renders correctly App with default styled 1`] = ` 40 |
43 |
46 |

49 | Title 50 |

51 |
52 |
56 | 61 | 66 |
67 |
70 | Another section 71 |
72 |
73 | `; 74 | 75 | exports[`base rendering tests renders correctly App with injectStyled 1`] = ` 76 |
79 |
82 |
85 |

88 | Title 89 |

90 |
91 |
95 | 100 | 105 |
106 |
109 | Another section 110 |
111 |
112 |
113 | `; 114 | 115 | exports[`base rendering tests renders nested compositions correctly 1`] = ` 116 |
119 | Test 120 |
121 | `; 122 | -------------------------------------------------------------------------------- /src/tests/functional.spec.jsx: -------------------------------------------------------------------------------- 1 | import 'react-dom' 2 | import React from 'react' 3 | import Observable from 'zen-observable' 4 | import Enzyme, {mount} from 'enzyme' 5 | import Adapter from 'enzyme-adapter-react-16' 6 | 7 | import { 8 | getCss, 9 | removeWhitespace 10 | } from './utils' 11 | 12 | import CreateApp from './App' 13 | 14 | Enzyme.configure({adapter: new Adapter()}) 15 | 16 | let Styled 17 | let styled 18 | let ThemeProvider 19 | 20 | const mockNameGenerators = () => { 21 | let styledCounter = 0 22 | 23 | jest.mock('../utils/generateTagName') 24 | jest.mock('jss/lib/utils/createGenerateClassName') 25 | 26 | const generateTagName = require('../utils/generateTagName').default 27 | const createGenerateClassName = require('jss/lib/utils/createGenerateClassName').default 28 | 29 | // $FlowIgnore there is now mockImplementation in declaration 30 | generateTagName.mockImplementation((tagName: string) => `${tagName}-${++styledCounter}`) 31 | createGenerateClassName.mockImplementation(() => rule => `${rule.key}-id`) 32 | } 33 | 34 | const assertSheet = (sheet) => { 35 | expect(sheet.toString()).toMatchSnapshot() 36 | expect(getCss(sheet)).toBe(removeWhitespace(sheet.toString())) 37 | } 38 | 39 | const assertComponent = (Comp) => { 40 | const wrapper = mount() 41 | expect(wrapper).toMatchSnapshot() 42 | wrapper.unmount() 43 | } 44 | 45 | describe('functional tests', () => { 46 | beforeEach(() => { 47 | mockNameGenerators() 48 | 49 | ;({ThemeProvider, Styled} = require('../')) 50 | styled = Styled() 51 | }) 52 | 53 | afterEach(() => { 54 | styled.sheet.detach() 55 | }) 56 | 57 | it('should update props and unmount', () => { 58 | const App = CreateApp(styled) 59 | const wrapper = mount() 60 | const {sheet} = styled 61 | 62 | assertSheet(sheet) 63 | wrapper.setProps({margin: 20}) 64 | assertSheet(sheet) 65 | wrapper.unmount() 66 | }) 67 | 68 | /** 69 | * TODO: we should return this test when an issue with nesting order will be resolved 70 | * @see https://github.com/cssinjs/jss/pull/655 71 | */ 72 | 73 | it.skip('should update nested props', () => { 74 | styled = Styled({ 75 | button: { 76 | fontSize: 12, 77 | }, 78 | }) 79 | 80 | const Div = styled('div')({ 81 | padding: 15, 82 | '&:hover': { 83 | '& $button': { 84 | color: ({primary}) => (primary ? 'red' : 'green'), 85 | }, 86 | }, 87 | }) 88 | 89 | const Button = styled('button')({ 90 | composes: '$button', 91 | }) 92 | 93 | const App = (props: {primary?: boolean}) => ( 94 |
95 |
96 | 97 |
98 |
99 | 100 |
101 |
102 | ) 103 | 104 | const wrapper = mount() 105 | const {sheet} = styled 106 | 107 | assertSheet(sheet) 108 | wrapper.setProps({primary: true}) 109 | assertSheet(sheet) 110 | wrapper.unmount() 111 | }) 112 | 113 | it('should use props on remount', () => { 114 | const Button = styled('button')({ 115 | color: props => (props.primary ? 'red' : 'black') 116 | }) 117 | 118 | const wrapper = mount(