├── .babelrc ├── .eslintignore ├── .eslintrc ├── .flowconfig ├── .gitignore ├── .npmignore ├── .snyk ├── .travis.yml ├── CHANGELOG.md ├── README.md ├── __test__ ├── .eslintrc ├── .mocharc ├── Components │ ├── Body.spec.js │ ├── Header.spec.js │ └── Title.spec.js ├── Table.spec.js └── utils.spec.js ├── docs ├── bundle.js ├── index.html └── style.css ├── example ├── index.jsx └── style.css ├── flow-typed └── npm │ ├── babel-cli_vx.x.x.js │ ├── babel-core_vx.x.x.js │ ├── babel-eslint_vx.x.x.js │ ├── babel-loader_vx.x.x.js │ ├── babel-plugin-transform-runtime_vx.x.x.js │ ├── babel-preset-es2015_vx.x.x.js │ ├── babel-preset-react_vx.x.x.js │ ├── babel-preset-stage-0_vx.x.x.js │ ├── babel-register_vx.x.x.js │ ├── babel-runtime_vx.x.x.js │ ├── chai_v3.5.x.js │ ├── cross-env_vx.x.x.js │ ├── enzyme_v2.3.x.js │ ├── eslint-config-airbnb_vx.x.x.js │ ├── eslint-plugin-flowtype_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 │ ├── html-webpack-plugin_vx.x.x.js │ ├── jsdom-global_vx.x.x.js │ ├── jsdom_vx.x.x.js │ ├── mocha_vx.x.x.js │ ├── react-addons-test-utils_v15.x.x.js │ ├── sinon_vx.x.x.js │ ├── webpack-dev-server_vx.x.x.js │ └── webpack_vx.x.x.js ├── package.json ├── src ├── Components │ ├── Body.jsx │ ├── Header.jsx │ ├── Titles.jsx │ └── types.js ├── Table-Pagination.jsx ├── Table.jsx ├── helpers.js ├── index.js └── types.js ├── templates └── index.ejs ├── webpack.config.js ├── webpack.prov.config.js └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | "react", 4 | "es2015", 5 | "stage-0" 6 | ], 7 | "env": { 8 | "test": { 9 | "plugins": [ 10 | [ 11 | "transform-runtime", 12 | { 13 | "extends": true 14 | } 15 | ] 16 | ] 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | .gitignore 2 | dist 3 | lib 4 | docs 5 | node_modules 6 | flow-typed 7 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "airbnb", 4 | "plugin:flowtype/recommended" 5 | ], 6 | "env": { 7 | "browser": true 8 | }, 9 | "parser": "babel-eslint", 10 | "rules": { 11 | "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }], 12 | "react/jsx-curly-spacing": [2, "always"], 13 | "jsx-a11y/no-static-element-interactions": "off", 14 | "no-plusplus": "off", 15 | "react/sort-comp": [1, { "order": [ 16 | "type-annotations", 17 | "static-methods", 18 | "lifecycle", 19 | "everything-else", 20 | "render" 21 | ]}], 22 | "flowtype/space-before-type-colon": [1, "never"] 23 | }, 24 | "plugins": [ 25 | "flowtype" 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/addhome2001/react-pagination-table/9291027feac7629f6e5bc22373d0f83e18879a0a/.flowconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Numerous always-ignore extensions 2 | *.csv 3 | *.dat 4 | *.diff 5 | *.err 6 | *.gz 7 | *.log 8 | *.orig 9 | *.out 10 | *.pid 11 | *.rar 12 | *.rej 13 | *.seed 14 | *.swo 15 | *.swp 16 | *.vi 17 | *.yo-rc.json 18 | *.zip 19 | *~ 20 | .ruby-version 21 | lib-cov 22 | npm-debug.log 23 | 24 | # Always-ignore dirs 25 | /bower_components/ 26 | /node_modules/ 27 | /temp/ 28 | /tmp/ 29 | /vendor/ 30 | /dir/ 31 | /lib/ 32 | _gh_pages 33 | 34 | # OS or Editor folders 35 | *.esproj 36 | *.komodoproject 37 | .komodotools 38 | *.sublime-* 39 | ._* 40 | .cache 41 | .DS_Store 42 | .idea 43 | .project 44 | .settings 45 | .tmproj 46 | nbproject 47 | Thumbs.db 48 | 49 | # grunt-html-validation 50 | validation-status.json 51 | validation-report.json 52 | 53 | # misc 54 | TODO.md -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | __test__ 2 | docs 3 | example 4 | flow-typed 5 | src 6 | templates 7 | 8 | .babelrc 9 | .eslintignore 10 | .eslintrc 11 | .flowconfig 12 | .travis.yml 13 | 14 | CHANGELOG.md 15 | README.md 16 | 17 | webpack.config.js 18 | webpack.prov.config.js 19 | yarn.lock -------------------------------------------------------------------------------- /.snyk: -------------------------------------------------------------------------------- 1 | # Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. 2 | version: v1.7.1 3 | ignore: {} 4 | # patches apply the minimum changes required to fix a vulnerability 5 | patch: 6 | 'npm:debug:20170905': 7 | - react-pagination-status > webpack-dev-server > serve-index > debug: 8 | patched: '2017-09-27T22:50:05.112Z' 9 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "6" 4 | - "7" 5 | script: 6 | - npm run all 7 | - npm run validate 8 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | Every release, along with the migration instructions, is documented on the Github [Releases](https://github.com/addhome2001/react-pagination-status/releases) page. 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # react-pagination-table 2 | 3 | [![Build Status](https://travis-ci.org/addhome2001/react-pagination-table.svg?branch=master)](https://travis-ci.org/addhome2001/react-pagination-table) 4 | 5 | [![Known Vulnerabilities](https://snyk.io/test/github/addhome2001/react-pagination-table/badge.svg)](https://snyk.io/test/github/addhome2001/react-pagination-table) 6 | 7 | > Table components for React with pagination 8 | 9 | ## Install 10 | ``` 11 | npm install --save react-pagination-table 12 | ``` 13 | 14 | ## Migration 15 | After the version `2.x`, the behavior of the `className` and `paginationClassName` props will be a little different. For a better way to architect your CSS, the className of the specific components will be more maintainable. 16 | 17 | > The [example](https://github.com/addhome2001/react-pagination-table/blob/master/example) or the [className](https://github.com/addhome2001/react-pagination-table#classname) section will be helpful to you. 18 | 19 | 20 | ## Usage 21 | 22 | >The module contains `two` components, includes ___TableSimple___、___TablePagination___ 23 | 24 | ### [Demo](https://addhome2001.github.io/react-pagination-table/) 25 | 26 | There is a data set. 27 | 28 | ````javascript 29 | 30 | const data = [ 31 | { size: ["L", "M"], phone: 1234567, gender: "Male", age: 20, name:"Ben" }, 32 | { size: ["L", "M", "XL"], phone: 1234567, gender: "Female", age: 22, name:"Ken" }, 33 | { size: ["L", "S"], phone: 1234567, gender: "Female", age: 23, name:"Jay" }, 34 | { size: ["M", "S"], phone: 1234567, gender: "Male", age: 26, name:"Chip" }, 35 | { size: ["XL", "XS"], phone: 1234567, gender: "Male", age: 23, name:"Lee" }, 36 | { size: ["L", "M", "S", "XS"], phone: 1234567, gender: "Female", age: 30, name:"Frank" }, 37 | { size: ["S", "L"], phone: 1234567, gender: "Male", age: 23, name:"CoCo" }, 38 | { size: ["L", "M", "S"], phone: 1234567, gender: "Female", age: 20, name:"Fake" }, 39 | { size: ["XS", "L"], phone: 1234567, gender: "Male", age: 26, name:"Dump" }, 40 | { size: ["L", "M", "S"], phone: 1234567, gender: "Female", age: 27, name:"Ocean" }, 41 | { size: ["S", "XL"], phone: 1234567, gender: "Male", age: 20, name:"Polo" }, 42 | { size: ["M", "XL"], phone: 1234567, gender: "Female", age: 21, name:"Queen" }, 43 | { size: ["L", "M"], phone: 1234567, gender: "Female", age: 20, name:"Bump" }, 44 | { size: ["L", "M", "S", "XL"], phone: 1234567, gender: "Male", age: 22, name:"Judy" }, 45 | { size: ["XL", "M"], phone: 1234567, gender: "Female", age: 24, name:"Ryan" }, 46 | { size: ["L", "S"], phone: 1234567, gender: "Female", age: 25, name:"Flow" }, 47 | { size: ["S", "M"], phone: 1234567, gender: "Female", age: 31, name:"Ray" }, 48 | { size: ["L", "M", "XS"], phone: 1234567, gender: "Male", age: 23, name:"Yen" }, 49 | { size: ["XL", "M", "S"], phone: 1234567, gender: "Male", age: 21, name:"Gray" }, 50 | { size: ["L", "M", "S"], phone: 1234567, gender: "Female", age: 22, name:"Tom" } 51 | ]; 52 | ```` 53 | 54 | ___TableSimple___ 55 | 56 | >Simple table component. 57 | 58 | ````javascript 59 | import { render } from 'react-dom'; 60 | import React from 'react'; 61 | import { TableSimple } from 'react-pagination-table'; 62 | 63 | //Table header 64 | const Header = ["Name", "Age", "Size", "Phone", "Gender" ]; 65 | 66 | const App = ({Header, data}) => 67 |
68 | 77 |
78 | 79 | ```` 80 | 81 | 82 | ___TablePagination___ 83 | 84 | >Simple table with pagination. 85 | 86 | ````javascript 87 | import { render } from 'react-dom'; 88 | import React from 'react'; 89 | import { TablePagination } from 'react-pagination-table'; 90 | 91 | const Header = ["Name", "Age", "Size", "Phone", "Gender" ]; 92 | 93 | const App = ({Header, data}) => 94 |
95 | 105 |
106 | 107 | ```` 108 | 109 | ## className 110 | The `react-pagination-table`(**className**) and `pagination-status`(**paginationClassName**) is the default className and **prefix**. You can pass custom name by the `className` and `paginationClassName` props. 111 | 112 | > In addition, setting the specific components to the differences styles and status by these **class** 113 | >- {**className**} the wrapper of the Component 114 | >- {**className**}__title 115 | >- {**className**}__sub-title 116 | >- {**className**}__header 117 | >- {**className**}__table(the `` tag) 118 | >- {**paginationClassName**} the wrapper of the Pagination 119 | >- {**paginationClassName**}__item(the `
  • ` tags) 120 | >- {**paginationClassName**}__btn(the page button) 121 | >- {**paginationClassName**}__btn--active(the activated page button) 122 | >- {**paginationClassName**}__btn--disable 123 | 124 | ## API 125 | 126 | ### ___TableSimple___ 127 | 128 | | Props | Description | Type | Default | 129 | |------------------|------------------------------------|---------------|--------------------------| 130 | | title | the title at left | String | `empty` | 131 | | subTitle | the subTitle at right | String | `empty` | 132 | | data | the items you want to render | Array | isRequired | 133 | | columns | the order of columns | String | isRequired | 134 | | headers | table's header | Array | isRequired | 135 | | arrayOption | `property`: specific which property is array.
    `index`: the index of the array, can be a ___number___ or ___all___
    `plus`: add character between items | Array[] | `empty` | 136 | | className | the TableSimple className | String | react-pagination-table | 137 | 138 | ### ___TablePagination___ 139 | 140 | >In addition to the above... 141 | 142 | | Props | Description | Type | Default | 143 | |------------------|------------------------------------|---------------|--------------------------| 144 | | totalCount | the length of the items | Number | isRequired | 145 | | perPageItemCount | the numbers of the items on per page | Number | isRequired | 146 | | nextPageText | the text of `nextPage` button | String | 下一頁 | 147 | | prePageText | the text of `previousPage` button | String | 上一頁 | 148 | | paginationClassName | the pagination className | String | pagination-status | 149 | | partialPageCount | the numbers of the page buttons | Number | 5 | 150 | 151 | ## Example 152 | ``` 153 | npm start 154 | ``` 155 | 156 | By default, the example is on the `8000` port after run the command above. Then you can access `localhost:8000` to see the demo. 157 | 158 | ## Test 159 | ``` 160 | npm test 161 | ``` 162 | 163 | ### Other useful component 164 | [react-pagination-status](https://www.npmjs.com/package/react-pagination-status) 165 | 166 | LICENSE 167 | ======= 168 | 169 | MIT 170 | -------------------------------------------------------------------------------- /__test__/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "mocha": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /__test__/.mocharc: -------------------------------------------------------------------------------- 1 | --compilers js:babel-core/register 2 | --require jsdom-global/register 3 | --reporter nyan 4 | --recursive 5 | -------------------------------------------------------------------------------- /__test__/Components/Body.spec.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { shallow } from 'enzyme'; 3 | import { expect } from 'chai'; 4 | 5 | import Body from '../../src/Components/Body'; 6 | 7 | const defaultProps = {}; 8 | 9 | const shallowComponent = (props = defaultProps) => 10 | shallow(
    { Body(props) }
    ); 11 | 12 | describe('Test Components -> Body', () => { 13 | it('transfer all properties', () => { 14 | const data = [ 15 | { name: 'Ben', age: 20, size: ['M', 'L'] }, 16 | { name: 'Ken', age: 20, size: ['S', 'L'] }, 17 | { name: 'Jay', age: 20, size: ['M'] }, 18 | ]; 19 | const wrapper = shallowComponent({ arrayOption: ['size'], columns: 'name.age.size', data }); 20 | const findTd = index => wrapper.find('tr').at(index); 21 | expect(findTd(0).children().map(n => n.text())).to.eql(['Ben', '20', 'ML']); 22 | expect(findTd(1).children().map(n => n.text())).to.eql(['Ken', '20', 'SL']); 23 | expect(findTd(2).children().map(n => n.text())).to.eql(['Jay', '20', 'M']); 24 | }); 25 | 26 | it('arrayOption dose not exist ', () => { 27 | const data = [ 28 | { name: 'Ben', age: 20, size: ['M', 'L'] }, 29 | { name: 'Ken', age: 20, size: ['S', 'L'] }, 30 | { name: 'Jay', age: 20, size: ['M'] }, 31 | ]; 32 | const wrapper = shallowComponent({ columns: 'name.age.size', data }); 33 | const findTd = index => wrapper.find('tr').at(index); 34 | expect(findTd(0).children().map(n => n.text())).to.eql(['Ben', '20', 'ML']); 35 | expect(findTd(1).children().map(n => n.text())).to.eql(['Ken', '20', 'SL']); 36 | expect(findTd(2).children().map(n => n.text())).to.eql(['Jay', '20', 'M']); 37 | }); 38 | }); 39 | -------------------------------------------------------------------------------- /__test__/Components/Header.spec.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { shallow } from 'enzyme'; 3 | import { expect } from 'chai'; 4 | 5 | import Header from '../../src/Components/Header'; 6 | 7 | const defaultProps = {}; 8 | 9 | const shallowComponent = (props = defaultProps) => 10 | shallow(
    { Header(props) }
    ); 11 | 12 | describe('Test Components -> Header', () => { 13 | it('convert all properties', () => { 14 | const headers = ['Name', 'Age', 'Address']; 15 | const wrapper = shallowComponent({ headers }); 16 | expect(wrapper.find('th').at(0).text()).to.equal('Name'); 17 | expect(wrapper.find('th').at(1).text()).to.equal('Age'); 18 | expect(wrapper.find('th').at(2).text()).to.equal('Address'); 19 | }); 20 | 21 | it('headers dose\'t exist', () => { 22 | const wrapper = shallowComponent(); 23 | expect(wrapper.find('thead').length).is.equal(0); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /__test__/Components/Title.spec.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { shallow } from 'enzyme'; 3 | import { expect } from 'chai'; 4 | 5 | import Titles from '../../src/Components/Titles'; 6 | 7 | const defaultProps = {}; 8 | 9 | const shallowComponent = (props = defaultProps) => 10 | shallow(
    { Titles(props) }
    ); 11 | 12 | describe('Test Components -> Title', () => { 13 | it('render both title and subTitle', () => { 14 | const wrapper = shallowComponent({ title: 'title', subTitle: 'subTitle' }); 15 | expect(wrapper.find('h4').length).to.equal(2); 16 | expect(wrapper.find('h4').map(n => n.text())).to.eql(['title', 'subTitle']); 17 | }); 18 | 19 | it('only render title', () => { 20 | const wrapper = shallowComponent({ title: 'title' }); 21 | expect(wrapper.find('h4').length).to.equal(1); 22 | expect(wrapper.find('h4').map(n => n.text())).to.eql(['title']); 23 | }); 24 | 25 | it('title and subTitle dose not exist', () => { 26 | const wrapper = shallowComponent({ title: {}, subTitle: [] }); 27 | expect(wrapper.find('h4').length).to.equal(0); 28 | }); 29 | }); 30 | -------------------------------------------------------------------------------- /__test__/Table.spec.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { shallow, mount, configure } from 'enzyme'; 3 | import Adapter from 'enzyme-adapter-react-16'; 4 | import { expect } from 'chai'; 5 | 6 | import DataTable from '../src/Table-Pagination'; 7 | 8 | configure({ adapter: new Adapter() }); 9 | 10 | const defaultData = [ 11 | { name: 'Ben', age: 20, id: 0, phone: ['IPhone6', 'IPhone4'] }, 12 | { name: 'Ken', age: 21, id: 1, phone: ['IPhone7', 'IPhone3'] }, 13 | { name: 'Ran', age: 22, id: 2, phone: ['Desire 820', 'Note 7'] }, 14 | { name: 'Judy', age: 23, id: 3, phone: ['IPhone2', 'ONE', 'J7'] }, 15 | { name: 'Raf', age: 24, id: 4, phone: ['IPhone5'] }, 16 | { name: 'Bin', age: 25, id: 5, phone: ['HTC10', 'Note 7'] }, 17 | { name: 'Echo', age: 26, id: 6, phone: ['Desire 820', 'J7'] }, 18 | ]; 19 | 20 | const defaultTable = { 21 | columns: 'name.age.id', 22 | headers: ['Name', 'Age', 'ID'], 23 | }; 24 | 25 | const paginationOption = { 26 | perPageItemCount: 2, 27 | totalCount: defaultData.length, 28 | }; 29 | 30 | const arrayOption = { 31 | arrayOption: [['phone', 'all', ' ']], 32 | columns: 'name.age.id.phone', 33 | headers: ['Name', 'Age', 'ID', 'Phone'], 34 | }; 35 | 36 | const shallowComponent = props => 37 | shallow(); 38 | 39 | const mountComponent = props => 40 | mount(); 41 | 42 | describe('Test Table', () => { 43 | it('correct props', () => { 44 | const wrapper = shallowComponent(defaultTable); 45 | const props = wrapper.instance().props; 46 | expect(props).eql({ 47 | columns: 'name.age.id.phone', 48 | headers: ['Name', 'Age', 'ID', 'Phone'], 49 | arrayOption: [['phone', 'all', ' ']], 50 | perPageItemCount: 2, 51 | partialPageCount: 5, 52 | totalCount: 7, 53 | data: [ 54 | { name: 'Ben', age: 20, id: 0, phone: ['IPhone6', 'IPhone4'] }, 55 | { name: 'Ken', age: 21, id: 1, phone: ['IPhone7', 'IPhone3'] }, 56 | { name: 'Ran', age: 22, id: 2, phone: ['Desire 820', 'Note 7'] }, 57 | { name: 'Judy', age: 23, id: 3, phone: ['IPhone2', 'ONE', 'J7'] }, 58 | { name: 'Raf', age: 24, id: 4, phone: ['IPhone5'] }, 59 | { name: 'Bin', age: 25, id: 5, phone: ['HTC10', 'Note 7'] }, 60 | { name: 'Echo', age: 26, id: 6, phone: ['Desire 820', 'J7'] }, 61 | ], 62 | title: '', 63 | subTitle: '', 64 | className: 'react-pagination-table', 65 | nextPageText: 'Next', 66 | prePageText: 'Prev', 67 | paginationClassName: 'pagination-status', 68 | }); 69 | }); 70 | 71 | it('information(prePageText, nextPageText)', () => { 72 | const wrapper = mountComponent(Object.assign(defaultTable, { 73 | nextPageText: 'Next', 74 | prePageText: 'Prev', 75 | })); 76 | const Pagination = wrapper.find('Pagination'); 77 | 78 | expect(Pagination.prop('nextPageText')).to.equal('Next'); 79 | expect(Pagination.prop('prePageText')).to.equal('Prev'); 80 | expect(Pagination.find('.pagination-status__btn').first().text()).to.equal('Prev'); 81 | expect(Pagination.find('.pagination-status__btn').last().text()).to.equal('Next'); 82 | }); 83 | 84 | it('information(title, subTitle, header)', () => { 85 | const wrapper = shallowComponent(Object.assign(defaultTable, { 86 | title: 'Test Title', 87 | subTitle: 'Test subTitle', 88 | })); 89 | const headers = wrapper.find('Header').prop('headers'); 90 | 91 | expect(headers).to.eql(defaultTable.headers); 92 | expect(wrapper.find('h4').at(0).text()).to.equal('Test Title'); 93 | expect(wrapper.find('h4').at(1).text()).to.equal('Test subTitle'); 94 | }); 95 | 96 | describe('Test defaultTable', () => { 97 | const wrapper = shallowComponent(defaultTable); 98 | 99 | it('without Pagination', () => { 100 | expect(wrapper.find('Pagination')).to.have.length(0); 101 | }); 102 | 103 | it('render all data', () => { 104 | const tdData = wrapper.find('tbody tr').at(0).children('td').map(node => node.text()); 105 | 106 | expect(wrapper.find('tbody tr')).to.have.length(defaultData.length); 107 | expect(tdData).to.eql(['Ben', '20', '0']); 108 | }); 109 | }); 110 | 111 | describe('Test arrayOption', () => { 112 | const wrapper = shallowComponent(Object.assign(defaultTable, arrayOption)); 113 | 114 | it('information(header)', () => { 115 | const headers = wrapper.find('Header').prop('headers'); 116 | expect(headers).to.eql(arrayOption.headers); 117 | }); 118 | 119 | it('with arrayOption', () => { 120 | expect(wrapper.find('tbody tr').at(0).find('td').last() 121 | .text()).to.equal('IPhone6 IPhone4'); 122 | expect(wrapper.find('tbody tr').at(1).find('td').last() 123 | .text()).to.equal('IPhone7 IPhone3'); 124 | expect(wrapper.find('tbody tr').at(3).find('td').last() 125 | .text()).to.equal('IPhone2 ONE J7'); 126 | expect(wrapper.find('tbody tr').at(4).find('td').last() 127 | .text()).to.equal('IPhone5'); 128 | expect(wrapper.find('tbody tr').at(5).find('td').last() 129 | .text()).to.equal('HTC10 Note 7'); 130 | expect(wrapper.find('tbody tr').at(6).find('td').last() 131 | .text()).to.equal('Desire 820 J7'); 132 | 133 | wrapper.setProps({ arrayOption: [['phone', '0', ' ']] }); 134 | expect(wrapper.find('tbody tr').at(2).find('td').last() 135 | .text()).to.equal('Desire 820'); 136 | expect(wrapper.find('tbody tr').at(3).find('td').last() 137 | .text()).to.equal('IPhone2'); 138 | expect(wrapper.find('tbody tr').at(4).find('td').last() 139 | .text()).to.equal('IPhone5'); 140 | }); 141 | }); 142 | 143 | describe('Test paginationTable', () => { 144 | const wrapper = shallowComponent(Object.assign(defaultTable, paginationOption)); 145 | 146 | it('with paginationTable', () => { 147 | expect(wrapper.find('.clearfix').children()).to.have.length(1); 148 | }); 149 | 150 | it('modified activePage', () => { 151 | expect(wrapper.find('tbody td').at(0).text()).to.equal('Ben'); 152 | wrapper.setState({ activePage: 2 }); 153 | expect(wrapper.find('tbody td').at(0).text()).to.equal('Raf'); 154 | wrapper.setState({ activePage: 3 }); 155 | expect(wrapper.find('tbody td').at(0).text()).to.equal('Echo'); 156 | wrapper.setState({ activePage: 4 }); 157 | expect(wrapper.find('tbody td').at(0).text()).to.equal('Ben'); 158 | }); 159 | }); 160 | }); 161 | -------------------------------------------------------------------------------- /__test__/utils.spec.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable no-unused-expressions */ 2 | import { expect } from 'chai'; 3 | import handleArrayOption from '../src/helpers'; 4 | 5 | describe('Test Utils', () => { 6 | describe('handleArrayOption', () => { 7 | it('correct property', () => { 8 | const handler = handleArrayOption.apply(null, ['size', 'all', ' ']); 9 | expect(handler({ size: ['M', 'L', 'S'], age: 20 })).eql('M L S'); 10 | }); 11 | 12 | it('specify property', () => { 13 | const handler = handleArrayOption.apply(null, ['size', 1, ' ']); 14 | expect(handler({ size: ['M', 'L', 'S'], age: 20 })).eql('L'); 15 | }); 16 | 17 | it('dose\t provide index and plus', () => { 18 | const handler = handleArrayOption.apply(null, ['size']); 19 | expect(handler({ size: ['M', 'L', 'S'], age: 20 })).eql('MLS'); 20 | }); 21 | 22 | it('property dose not exist', () => { 23 | const handler = handleArrayOption.apply(null, ['address']); 24 | expect(handler({ size: ['M', 'L', 'S'], age: 20 })).eql(''); 25 | }); 26 | 27 | it('property is undefined', () => { 28 | const handler = handleArrayOption.apply(null); 29 | expect(handler).to.be.false; 30 | }); 31 | }); 32 | }); 33 | -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 | React Pagaination Table
    -------------------------------------------------------------------------------- /docs/style.css: -------------------------------------------------------------------------------- 1 | .react-pagination-table { 2 | position: relative; 3 | border-radius: 3px; 4 | background: #ffffff; 5 | margin-bottom: 20px; 6 | width: 80%; 7 | margin: auto; 8 | } 9 | 10 | .react-pagination-table__sub-title { 11 | float: right; 12 | } 13 | 14 | .react-pagination-table__title, 15 | .react-pagination-table__sub-title { 16 | display: inline-block; 17 | font-size: 18px; 18 | margin: 0; 19 | line-height: 1; 20 | font-weight:100; 21 | padding: 20px 20px 10px; 22 | } 23 | 24 | .react-pagination-table__header { 25 | background: #e8e8e8; 26 | } 27 | 28 | .react-pagination-table__table { 29 | text-align: center; 30 | width: 100%; 31 | max-width: 100%; 32 | margin-bottom: 20px; 33 | border: 1px solid #ddd; 34 | } 35 | 36 | .pagination-status { 37 | display: inline-block; 38 | padding-left: 0; 39 | margin: 20px 0; 40 | } 41 | 42 | .pagination-status__item { 43 | display: inline; 44 | } 45 | 46 | .pagination-status .pagination-status__btn { 47 | position: relative; 48 | float: left; 49 | padding: 6px 12px; 50 | margin-left: -1px; 51 | color: #337ab7; 52 | text-decoration: none; 53 | background-color: #fff; 54 | border: 1px solid #ddd; 55 | } 56 | 57 | .pagination-status .pagination-status__btn:focus { 58 | outline: none; 59 | } 60 | 61 | .pagination-status .pagination-status__btn--active, 62 | .pagination-status .pagination-status__btn:hover { 63 | color: #fff; 64 | background-color: #337ab7; 65 | border-color: #337ab7; 66 | cursor: pointer; 67 | } 68 | 69 | .pagination-status .pagination-status__btn--disable, 70 | .pagination-status .pagination-status__btn--disable:hover { 71 | color: #d0d0d0; 72 | cursor: default; 73 | border-color: #d0d0d0; 74 | background-color: #fff; 75 | } 76 | -------------------------------------------------------------------------------- /example/index.jsx: -------------------------------------------------------------------------------- 1 | import { render } from 'react-dom'; 2 | import React from 'react'; 3 | import PropTypes from 'prop-types'; 4 | import { TableSimple, TablePagination } from '../src'; 5 | 6 | const defaultHeader = ['Name', 'Age', 'Size', 'Phone', 'Gender']; 7 | 8 | const defaultData = [ 9 | { size: ['L', 'M'], phone: 1234567, gender: 'Male', age: 20, name: 'Ben' }, 10 | { size: ['L', 'M', 'XL'], phone: 1234567, gender: 'Female', age: 22, name: 'Ken' }, 11 | { size: ['L', 'S'], phone: 1234567, gender: 'Female', age: 23, name: 'Jay' }, 12 | { size: ['M', 'S'], phone: 1234567, gender: 'Male', age: 26, name: 'Chip' }, 13 | { size: ['XL', 'XS'], phone: 1234567, gender: 'Male', age: 23, name: 'Lee' }, 14 | { size: ['L', 'M', 'S', 'XS'], phone: 1234567, gender: 'Female', age: 30, name: 'Frank' }, 15 | { size: ['S', 'L'], phone: 1234567, gender: 'Male', age: 23, name: 'CoCo' }, 16 | { size: ['L', 'M', 'S'], phone: 1234567, gender: 'Female', age: 20, name: 'Fake' }, 17 | { size: ['XS', 'L'], phone: 1234567, gender: 'Male', age: 26, name: 'Dump' }, 18 | { size: ['L', 'M', 'S'], phone: 1234567, gender: 'Female', age: 27, name: 'Ocean' }, 19 | { size: ['S', 'XL'], phone: 1234567, gender: 'Male', age: 20, name: 'Polo' }, 20 | { size: ['M', 'XL'], phone: 1234567, gender: 'Female', age: 21, name: 'Queen' }, 21 | { size: ['L', 'M'], phone: 1234567, gender: 'Female', age: 20, name: 'Bump' }, 22 | { size: ['L', 'M', 'S', 'XL'], phone: 1234567, gender: 'Male', age: 22, name: 'Judy' }, 23 | { size: ['XL', 'M'], phone: 1234567, gender: 'Female', age: 24, name: 'Ryan' }, 24 | { size: ['L', 'S'], phone: 1234567, gender: 'Female', age: 25, name: 'Flow' }, 25 | { size: ['S', 'M'], phone: 1234567, gender: 'Female', age: 31, name: 'Ray' }, 26 | { size: ['L', 'M', 'XS'], phone: 1234567, gender: 'Male', age: 23, name: 'Yen' }, 27 | { size: ['XL', 'M', 'S'], phone: 1234567, gender: 'Male', age: 21, name: 'Gray' }, 28 | { size: ['L', 'M', 'S'], phone: 1234567, gender: 'Female', age: 22, name: 'Tom' }, 29 | ]; 30 | 31 | const App = ({ Header, data }) => 32 |
    33 | 46 |
    47 | 55 |
    ; 56 | 57 | App.propTypes = { 58 | Header: PropTypes.arrayOf(PropTypes.string).isRequired, 59 | data: PropTypes.arrayOf(PropTypes.object).isRequired, 60 | }; 61 | 62 | render( 63 | , 64 | document.getElementById('container'), 65 | ); 66 | -------------------------------------------------------------------------------- /example/style.css: -------------------------------------------------------------------------------- 1 | .react-pagination-table { 2 | position: relative; 3 | border-radius: 3px; 4 | background: #ffffff; 5 | margin-bottom: 20px; 6 | width: 80%; 7 | margin: auto; 8 | } 9 | 10 | .react-pagination-table__sub-title { 11 | float: right; 12 | } 13 | 14 | .react-pagination-table__title, 15 | .react-pagination-table__sub-title { 16 | display: inline-block; 17 | font-size: 18px; 18 | margin: 0; 19 | line-height: 1; 20 | font-weight:100; 21 | padding: 20px 20px 10px; 22 | } 23 | 24 | .react-pagination-table__header { 25 | background: #e8e8e8; 26 | } 27 | 28 | .react-pagination-table__table { 29 | text-align: center; 30 | width: 100%; 31 | max-width: 100%; 32 | margin-bottom: 20px; 33 | border: 1px solid #ddd; 34 | } 35 | 36 | .pagination-status { 37 | display: inline-block; 38 | padding-left: 0; 39 | margin: 20px 0; 40 | } 41 | 42 | .pagination-status__item { 43 | display: inline; 44 | } 45 | 46 | .pagination-status .pagination-status__btn { 47 | position: relative; 48 | float: left; 49 | padding: 6px 12px; 50 | margin-left: -1px; 51 | color: #337ab7; 52 | text-decoration: none; 53 | background-color: #fff; 54 | border: 1px solid #ddd; 55 | } 56 | 57 | .pagination-status .pagination-status__btn:focus { 58 | outline: none; 59 | } 60 | 61 | .pagination-status .pagination-status__btn--active, 62 | .pagination-status .pagination-status__btn:hover { 63 | color: #fff; 64 | background-color: #337ab7; 65 | border-color: #337ab7; 66 | cursor: pointer; 67 | } 68 | 69 | .pagination-status .pagination-status__btn--disable, 70 | .pagination-status .pagination-status__btn--disable:hover { 71 | color: #d0d0d0; 72 | cursor: default; 73 | border-color: #d0d0d0; 74 | background-color: #fff; 75 | } 76 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-cli_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 6886b9b7b07cc8369a85328c28d39dd7 2 | // flow-typed version: <>/babel-cli_v^6.11.4/flow_v0.41.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: e09789852bd610bfa09ecc15cff24e2e 2 | // flow-typed version: <>/babel-core_v^6.13.2/flow_v0.41.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: 22e5660f6ace1e8a35df70bd5fa9b751 2 | // flow-typed version: <>/babel-eslint_v^7.1.1/flow_v0.41.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/convertTemplateType' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'babel-eslint/babylon-to-espree/index' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'babel-eslint/babylon-to-espree/toAST' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'babel-eslint/babylon-to-espree/toToken' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'babel-eslint/babylon-to-espree/toTokens' { 46 | declare module.exports: any; 47 | } 48 | 49 | // Filename aliases 50 | declare module 'babel-eslint/babylon-to-espree/attachComments.js' { 51 | declare module.exports: $Exports<'babel-eslint/babylon-to-espree/attachComments'>; 52 | } 53 | declare module 'babel-eslint/babylon-to-espree/convertTemplateType.js' { 54 | declare module.exports: $Exports<'babel-eslint/babylon-to-espree/convertTemplateType'>; 55 | } 56 | declare module 'babel-eslint/babylon-to-espree/index.js' { 57 | declare module.exports: $Exports<'babel-eslint/babylon-to-espree/index'>; 58 | } 59 | declare module 'babel-eslint/babylon-to-espree/toAST.js' { 60 | declare module.exports: $Exports<'babel-eslint/babylon-to-espree/toAST'>; 61 | } 62 | declare module 'babel-eslint/babylon-to-espree/toToken.js' { 63 | declare module.exports: $Exports<'babel-eslint/babylon-to-espree/toToken'>; 64 | } 65 | declare module 'babel-eslint/babylon-to-espree/toTokens.js' { 66 | declare module.exports: $Exports<'babel-eslint/babylon-to-espree/toTokens'>; 67 | } 68 | declare module 'babel-eslint/index' { 69 | declare module.exports: $Exports<'babel-eslint'>; 70 | } 71 | declare module 'babel-eslint/index.js' { 72 | declare module.exports: $Exports<'babel-eslint'>; 73 | } 74 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-loader_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: cfe5898ef098c5dd03e2143e049c35a1 2 | // flow-typed version: <>/babel-loader_v^6.2.5/flow_v0.41.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-loader' 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-loader' { 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-loader/lib/fs-cache' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'babel-loader/lib/index' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'babel-loader/lib/resolve-rc' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'babel-loader/lib/utils/exists' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'babel-loader/lib/utils/read' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'babel-loader/lib/utils/relative' { 46 | declare module.exports: any; 47 | } 48 | 49 | // Filename aliases 50 | declare module 'babel-loader/lib/fs-cache.js' { 51 | declare module.exports: $Exports<'babel-loader/lib/fs-cache'>; 52 | } 53 | declare module 'babel-loader/lib/index.js' { 54 | declare module.exports: $Exports<'babel-loader/lib/index'>; 55 | } 56 | declare module 'babel-loader/lib/resolve-rc.js' { 57 | declare module.exports: $Exports<'babel-loader/lib/resolve-rc'>; 58 | } 59 | declare module 'babel-loader/lib/utils/exists.js' { 60 | declare module.exports: $Exports<'babel-loader/lib/utils/exists'>; 61 | } 62 | declare module 'babel-loader/lib/utils/read.js' { 63 | declare module.exports: $Exports<'babel-loader/lib/utils/read'>; 64 | } 65 | declare module 'babel-loader/lib/utils/relative.js' { 66 | declare module.exports: $Exports<'babel-loader/lib/utils/relative'>; 67 | } 68 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-plugin-transform-runtime_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 29264e79d7d2d69d40564cdf45920e95 2 | // flow-typed version: <>/babel-plugin-transform-runtime_v^6.12.0/flow_v0.41.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-plugin-transform-runtime' 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-runtime' { 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-runtime/lib/definitions' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'babel-plugin-transform-runtime/lib/index' { 30 | declare module.exports: any; 31 | } 32 | 33 | // Filename aliases 34 | declare module 'babel-plugin-transform-runtime/lib/definitions.js' { 35 | declare module.exports: $Exports<'babel-plugin-transform-runtime/lib/definitions'>; 36 | } 37 | declare module 'babel-plugin-transform-runtime/lib/index.js' { 38 | declare module.exports: $Exports<'babel-plugin-transform-runtime/lib/index'>; 39 | } 40 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-preset-es2015_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 2885ede7ff8fe4e677c603a45563726c 2 | // flow-typed version: <>/babel-preset-es2015_v^6.13.2/flow_v0.41.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-preset-es2015' 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-es2015' { 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-es2015/lib/index' { 26 | declare module.exports: any; 27 | } 28 | 29 | // Filename aliases 30 | declare module 'babel-preset-es2015/lib/index.js' { 31 | declare module.exports: $Exports<'babel-preset-es2015/lib/index'>; 32 | } 33 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-preset-react_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 67fe77edc773b0e393f9083acb8a1a53 2 | // flow-typed version: <>/babel-preset-react_v^6.11.1/flow_v0.41.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/babel-preset-stage-0_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 873d0466f3c85fd0c6d206e8f78a5a7e 2 | // flow-typed version: <>/babel-preset-stage-0_v^6.5.0/flow_v0.41.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-preset-stage-0' 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-stage-0' { 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-stage-0/lib/index' { 26 | declare module.exports: any; 27 | } 28 | 29 | // Filename aliases 30 | declare module 'babel-preset-stage-0/lib/index.js' { 31 | declare module.exports: $Exports<'babel-preset-stage-0/lib/index'>; 32 | } 33 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-register_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 7fd433795bce26319b2d02979da42374 2 | // flow-typed version: <>/babel-register_v^6.22.0/flow_v0.41.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-register' 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-register' { 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-register/lib/browser' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'babel-register/lib/cache' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'babel-register/lib/node' { 34 | declare module.exports: any; 35 | } 36 | 37 | // Filename aliases 38 | declare module 'babel-register/lib/browser.js' { 39 | declare module.exports: $Exports<'babel-register/lib/browser'>; 40 | } 41 | declare module 'babel-register/lib/cache.js' { 42 | declare module.exports: $Exports<'babel-register/lib/cache'>; 43 | } 44 | declare module 'babel-register/lib/node.js' { 45 | declare module.exports: $Exports<'babel-register/lib/node'>; 46 | } 47 | -------------------------------------------------------------------------------- /flow-typed/npm/chai_v3.5.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 0bb5177083bf69296bdda98e783b4462 2 | // flow-typed version: 3a256f81e9/chai_v3.5.x/flow_>=v0.24.0 3 | 4 | declare module "chai" { 5 | 6 | declare type ExpectChain = { 7 | and: ExpectChain, 8 | at: ExpectChain, 9 | be: ExpectChain, 10 | been: ExpectChain, 11 | have: ExpectChain, 12 | has: ExpectChain, 13 | is: ExpectChain, 14 | of: ExpectChain, 15 | same: ExpectChain, 16 | that: ExpectChain, 17 | to: ExpectChain, 18 | which: ExpectChain, 19 | with: ExpectChain, 20 | 21 | not: ExpectChain, 22 | deep: ExpectChain, 23 | any: ExpectChain, 24 | all: ExpectChain, 25 | 26 | a: ExpectChain & (type: string) => ExpectChain, 27 | an: ExpectChain & (type: string) => ExpectChain, 28 | 29 | include: ExpectChain & (value: mixed) => ExpectChain, 30 | includes: ExpectChain & (value: mixed) => ExpectChain, 31 | contain: ExpectChain & (value: mixed) => ExpectChain, 32 | contains: ExpectChain & (value: mixed) => ExpectChain, 33 | 34 | eql: (value: T) => ExpectChain, 35 | equal: (value: T) => ExpectChain, 36 | equals: (value: T) => ExpectChain, 37 | 38 | above: (value: T & number) => ExpectChain, 39 | least: (value: T & number) => ExpectChain, 40 | below: (value: T & number) => ExpectChain, 41 | most: (value: T & number) => ExpectChain, 42 | within: (start: T & number, finish: T & number) => ExpectChain, 43 | 44 | instanceof: (constructor: mixed) => ExpectChain, 45 | property: ( 46 |

    (name: string, value?: P) => ExpectChain

    47 | & (name: string) => ExpectChain 48 | ), 49 | 50 | length: (value: number) => ExpectChain | ExpectChain, 51 | lengthOf: (value: number) => ExpectChain, 52 | 53 | match: (regex: RegExp) => ExpectChain, 54 | string: (string: string) => ExpectChain, 55 | 56 | key: (key: string) => ExpectChain, 57 | keys: (key: string | Array, ...keys: Array) => ExpectChain, 58 | 59 | throw: (err: Class | Error | RegExp | string, msg?: RegExp | string) => ExpectChain, 60 | 61 | respondTo: (method: string) => ExpectChain, 62 | itself: ExpectChain, 63 | 64 | satisfy: (method: (value: T) => bool) => ExpectChain, 65 | 66 | closeTo: (expected: T & number, delta: number) => ExpectChain, 67 | 68 | members: (set: mixed) => ExpectChain, 69 | oneOf: (list: Array) => ExpectChain, 70 | 71 | change: (obj: mixed, key: string) => ExpectChain, 72 | increase: (obj: mixed, key: string) => ExpectChain, 73 | decrease: (obj: mixed, key: string) => ExpectChain, 74 | 75 | // dirty-chai 76 | ok: () => ExpectChain, 77 | true: () => ExpectChain, 78 | false: () => ExpectChain, 79 | null: () => ExpectChain, 80 | undefined: () => ExpectChain, 81 | exist: () => ExpectChain, 82 | empty: () => ExpectChain, 83 | 84 | // chai-immutable 85 | size: (n: number) => ExpectChain, 86 | 87 | // sinon-chai 88 | called: () => ExpectChain, 89 | callCount: (n: number) => ExpectChain, 90 | calledOnce: () => ExpectChain, 91 | calledBefore: (spy: mixed) => ExpectChain, 92 | calledAfter: (spy: mixed) => ExpectChain, 93 | calledWith: (...args: Array) => ExpectChain, 94 | calledWithMatch: (...args: Array) => ExpectChain, 95 | calledWithExactly: (...args: Array) => ExpectChain, 96 | 97 | // chai-as-promised 98 | eventually: ExpectChain, 99 | resolvedWith: (value: mixed) => Promise & ExpectChain, 100 | resolved: () => Promise & ExpectChain, 101 | rejectedWith: (value: mixed) => Promise & ExpectChain, 102 | rejected: () => Promise & ExpectChain, 103 | notify: (callback: () => mixed) => ExpectChain, 104 | }; 105 | 106 | declare function expect(actual: T): ExpectChain; 107 | 108 | declare function use(plugin: (chai: Object, utils: Object) => void): void; 109 | 110 | declare class assert { 111 | static(expression: mixed, message?: string): void; 112 | static fail(actual: mixed, expected: mixed, message?: string, operator?: string): void; 113 | 114 | static isOk(object: mixed, message?: string): void; 115 | static isNotOk(object: mixed, message?: string): void; 116 | 117 | static equal(actual: mixed, expected: mixed, message?: string): void; 118 | static notEqual(actual: mixed, expected: mixed, message?: string): void; 119 | 120 | static strictEqual(act: mixed, exp: mixed, msg?: string): void; 121 | static notStrictEqual(act: mixed, exp: mixed, msg?: string): void; 122 | 123 | static deepEqual(act: mixed, exp: mixed, msg?: string): void; 124 | static notDeepEqual(act: mixed, exp: mixed, msg?: string): void; 125 | 126 | static isTrue(val: mixed, msg?: string): void; 127 | static isNotTrue(val: mixed, msg?: string): void; 128 | static isFalse(val: mixed, msg?: string): void; 129 | static isNotFalse(val: mixed, msg?: string): void; 130 | 131 | static isNull(val: mixed, msg?: string): void; 132 | static isNotNull(val: mixed, msg?: string): void; 133 | 134 | static isUndefined(val: mixed, msg?: string): void; 135 | static isDefined(val: mixed, msg?: string): void; 136 | 137 | static isNaN(val: mixed, msg?: string): void; 138 | static isNotNaN(val: mixed, msg?: string): void; 139 | 140 | static isAbove(val: number, abv: number, msg?: string): void; 141 | static isBelow(val: number, blw: number, msg?: string): void; 142 | 143 | static isAtMost(val: number, atmst: number, msg?: string): void; 144 | static isAtLeast(val: number, atlst: number, msg?: string): void; 145 | 146 | static isFunction(val: mixed, msg?: string): void; 147 | static isNotFunction(val: mixed, msg?: string): void; 148 | 149 | static isObject(val: mixed, msg?: string): void; 150 | static isNotObject(val: mixed, msg?: string): void; 151 | 152 | static isArray(val: mixed, msg?: string): void; 153 | static isNotArray(val: mixed, msg?: string): void; 154 | 155 | static isString(val: mixed, msg?: string): void; 156 | static isNotString(val: mixed, msg?: string): void; 157 | 158 | static isNumber(val: mixed, msg?: string): void; 159 | static isNotNumber(val: mixed, msg?: string): void; 160 | 161 | static isBoolean(val: mixed, msg?: string): void; 162 | static isNotBoolean(val: mixed, msg?: string): void; 163 | 164 | static typeOf(val: mixed, type: string, msg?: string): void; 165 | static notTypeOf(val: mixed, type: string, msg?: string): void; 166 | 167 | static instanceOf(val: mixed, constructor: Function, msg?: string): void; 168 | static notInstanceOf(val: mixed, constructor: Function, msg?: string): void; 169 | 170 | static include(exp: string, inc: mixed, msg?: string): void; 171 | static include(exp: Array, inc: mixed, msg?: string): void; 172 | 173 | static notInclude(exp: string, inc: mixed, msg?: string): void; 174 | static notInclude(exp: Array, inc: mixed, msg?: string): void; 175 | 176 | static match(exp: mixed, re: RegExp, msg?: string): void; 177 | static notMatch(exp: mixed, re: RegExp, msg?: string): void; 178 | 179 | static property(obj: Object, prop: string, msg?: string): void; 180 | static notProperty(obj: Object, prop: string, msg?: string): void; 181 | static deepProperty(obj: Object, prop: string, msg?: string): void; 182 | static notDeepProperty(obj: Object, prop: string, msg?: string): void; 183 | 184 | static propertyVal(obj: Object, prop: string, val: mixed, msg?: string): void; 185 | static propertyNotVal(obj: Object, prop: string, val: mixed, msg?: string): void; 186 | 187 | static deepPropertyVal(obj: Object, prop: string, val: mixed, msg?: string): void; 188 | static deepPropertyNotVal(obj: Object, prop: string, val: mixed, msg?: string): void; 189 | 190 | static lengthOf(exp: mixed, len: number, msg?: string): void; 191 | } 192 | 193 | declare var config: { 194 | includeStack: boolean, 195 | showDiff: boolean, 196 | truncateThreshold: number 197 | }; 198 | } 199 | -------------------------------------------------------------------------------- /flow-typed/npm/cross-env_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: b8b1f9ad03a564b6e31188666ef291dd 2 | // flow-typed version: <>/cross-env_v^3.1.4/flow_v0.41.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'cross-env' 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 'cross-env' { 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 'cross-env/bin/cross-env' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'cross-env/dist/command' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'cross-env/dist/index' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'cross-env/src/command' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'cross-env/src/command.test' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'cross-env/src/index' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'cross-env/src/index.test' { 50 | declare module.exports: any; 51 | } 52 | 53 | // Filename aliases 54 | declare module 'cross-env/bin/cross-env.js' { 55 | declare module.exports: $Exports<'cross-env/bin/cross-env'>; 56 | } 57 | declare module 'cross-env/dist/command.js' { 58 | declare module.exports: $Exports<'cross-env/dist/command'>; 59 | } 60 | declare module 'cross-env/dist/index.js' { 61 | declare module.exports: $Exports<'cross-env/dist/index'>; 62 | } 63 | declare module 'cross-env/src/command.js' { 64 | declare module.exports: $Exports<'cross-env/src/command'>; 65 | } 66 | declare module 'cross-env/src/command.test.js' { 67 | declare module.exports: $Exports<'cross-env/src/command.test'>; 68 | } 69 | declare module 'cross-env/src/index.js' { 70 | declare module.exports: $Exports<'cross-env/src/index'>; 71 | } 72 | declare module 'cross-env/src/index.test.js' { 73 | declare module.exports: $Exports<'cross-env/src/index.test'>; 74 | } 75 | -------------------------------------------------------------------------------- /flow-typed/npm/enzyme_v2.3.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 473141b7c854ed9ae66b92c537f09107 2 | // flow-typed version: f09afd9fb1/enzyme_v2.3.x/flow_>=v0.28.x 3 | 4 | declare module 'enzyme' { 5 | declare type PredicateFunction = (wrapper: T) => boolean; 6 | declare type NodeOrNodes = React$Element | Array>; 7 | declare type EnzymeSelector = string | ReactClass | Object; 8 | 9 | // CheerioWrapper is a type alias for an actual cheerio instance 10 | // TODO: Reference correct type from cheerio's type declarations 11 | declare type CheerioWrapper = any; 12 | 13 | declare class Wrapper { 14 | find(selector: EnzymeSelector): this; 15 | findWhere(predicate: PredicateFunction): this; 16 | filter(selector: EnzymeSelector): this; 17 | filterWhere(predicate: PredicateFunction): this; 18 | contains(nodeOrNodes: NodeOrNodes): boolean; 19 | containsMatchingElement(node: React$Element): boolean; 20 | containsAllMatchingElements(nodes: NodeOrNodes): boolean; 21 | containsAnyMatchingElements(nodes: NodeOrNodes): boolean; 22 | dive(option?: { context?: Object }): this; 23 | exists(): boolean; 24 | matchesElement(node: React$Element): boolean; 25 | hasClass(className: string): boolean; 26 | is(selector: EnzymeSelector): boolean; 27 | isEmpty(): boolean; 28 | not(selector: EnzymeSelector): boolean; 29 | children(selector?: EnzymeSelector): this; 30 | childAt(index: number): this; 31 | parents(selector?: EnzymeSelector): this; 32 | parent(): this; 33 | closest(selector: EnzymeSelector): this; 34 | render(): CheerioWrapper; 35 | unmount(): this; 36 | text(): string; 37 | html(): string; 38 | get(index: number): React$Element; 39 | at(index: number): this; 40 | first(): this; 41 | last(): this; 42 | state(key?: string): any; 43 | context(key?: string): any; 44 | props(): Object; 45 | prop(key: string): any; 46 | key(): string; 47 | simulate(event: string, ...args: Array): this; 48 | setState(state: Object): this; 49 | setProps(props: Object): this; 50 | setContext(context: Object): this; 51 | instance(): React$Component; 52 | update(): this; 53 | debug(): string; 54 | type(): string | Function | null; 55 | name(): string; 56 | forEach(fn: (node: this) => any): this; 57 | map(fn: (node: this) => T): Array; 58 | reduce(fn: (value: T, node: this, index: number) => T, initialValue?: T): Array; 59 | reduceRight(fn: (value: T, node: this, index: number) => T, initialValue?: T): Array; 60 | some(selector: EnzymeSelector): boolean; 61 | someWhere(predicate: PredicateFunction): boolean; 62 | every(selector: EnzymeSelector): boolean; 63 | everyWhere(predicate: PredicateFunction): boolean; 64 | length: number; 65 | } 66 | 67 | declare export class ReactWrapper extends Wrapper { 68 | mount(): this; 69 | ref(refName: string): this; 70 | detach(): void; 71 | } 72 | 73 | declare export class ShallowWrapper extends Wrapper { 74 | equals(node: React$Element): boolean; 75 | shallow(options?: { context?: Object }): ShallowWrapper; 76 | } 77 | 78 | declare export function shallow(node: React$Element, options?: { context?: Object }): ShallowWrapper; 79 | declare export function mount(node: React$Element, options?: { context?: Object, attachTo?: HTMLElement, childContextTypes?: Object }): ReactWrapper; 80 | declare export function render(node: React$Element, options?: { context?: Object }): CheerioWrapper; 81 | } 82 | -------------------------------------------------------------------------------- /flow-typed/npm/eslint-config-airbnb_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: fbae9fea0591c8c52a4edd226e105741 2 | // flow-typed version: <>/eslint-config-airbnb_v^14.0.0/flow_v0.41.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-plugin-flowtype_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 453e8dbcb9f9e7c5b55f4483eba1a178 2 | // flow-typed version: <>/eslint-plugin-flowtype_v^2.30.3/flow_v0.41.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'eslint-plugin-flowtype' 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-flowtype' { 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-flowtype/bin/readmeAssertions' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'eslint-plugin-flowtype/dist/index' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'eslint-plugin-flowtype/dist/rules/booleanStyle' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'eslint-plugin-flowtype/dist/rules/defineFlowType' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'eslint-plugin-flowtype/dist/rules/delimiterDangle' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'eslint-plugin-flowtype/dist/rules/genericSpacing' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'eslint-plugin-flowtype/dist/rules/noDupeKeys' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'eslint-plugin-flowtype/dist/rules/noPrimitiveConstructorTypes' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'eslint-plugin-flowtype/dist/rules/noWeakTypes' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'eslint-plugin-flowtype/dist/rules/objectTypeDelimiter' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'eslint-plugin-flowtype/dist/rules/requireParameterType' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'eslint-plugin-flowtype/dist/rules/requireReturnType' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'eslint-plugin-flowtype/dist/rules/requireValidFileAnnotation' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'eslint-plugin-flowtype/dist/rules/requireVariableType' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'eslint-plugin-flowtype/dist/rules/semi' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'eslint-plugin-flowtype/dist/rules/sortKeys' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module 'eslint-plugin-flowtype/dist/rules/spaceAfterTypeColon' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module 'eslint-plugin-flowtype/dist/rules/spaceBeforeGenericBracket' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module 'eslint-plugin-flowtype/dist/rules/spaceBeforeTypeColon' { 98 | declare module.exports: any; 99 | } 100 | 101 | declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateFunctions' { 102 | declare module.exports: any; 103 | } 104 | 105 | declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateObjectTypeIndexer' { 106 | declare module.exports: any; 107 | } 108 | 109 | declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateObjectTypeProperty' { 110 | declare module.exports: any; 111 | } 112 | 113 | declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateReturnType' { 114 | declare module.exports: any; 115 | } 116 | 117 | declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateTypeCastExpression' { 118 | declare module.exports: any; 119 | } 120 | 121 | declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateTypical' { 122 | declare module.exports: any; 123 | } 124 | 125 | declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/index' { 126 | declare module.exports: any; 127 | } 128 | 129 | declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/reporter' { 130 | declare module.exports: any; 131 | } 132 | 133 | declare module 'eslint-plugin-flowtype/dist/rules/typeIdMatch' { 134 | declare module.exports: any; 135 | } 136 | 137 | declare module 'eslint-plugin-flowtype/dist/rules/unionIntersectionSpacing' { 138 | declare module.exports: any; 139 | } 140 | 141 | declare module 'eslint-plugin-flowtype/dist/rules/useFlowType' { 142 | declare module.exports: any; 143 | } 144 | 145 | declare module 'eslint-plugin-flowtype/dist/rules/validSyntax' { 146 | declare module.exports: any; 147 | } 148 | 149 | declare module 'eslint-plugin-flowtype/dist/utilities/checkFlowFileAnnotation' { 150 | declare module.exports: any; 151 | } 152 | 153 | declare module 'eslint-plugin-flowtype/dist/utilities/fuzzyStringMatch' { 154 | declare module.exports: any; 155 | } 156 | 157 | declare module 'eslint-plugin-flowtype/dist/utilities/getParameterName' { 158 | declare module.exports: any; 159 | } 160 | 161 | declare module 'eslint-plugin-flowtype/dist/utilities/getTokenAfterParens' { 162 | declare module.exports: any; 163 | } 164 | 165 | declare module 'eslint-plugin-flowtype/dist/utilities/getTokenBeforeParens' { 166 | declare module.exports: any; 167 | } 168 | 169 | declare module 'eslint-plugin-flowtype/dist/utilities/index' { 170 | declare module.exports: any; 171 | } 172 | 173 | declare module 'eslint-plugin-flowtype/dist/utilities/isFlowFile' { 174 | declare module.exports: any; 175 | } 176 | 177 | declare module 'eslint-plugin-flowtype/dist/utilities/isFlowFileAnnotation' { 178 | declare module.exports: any; 179 | } 180 | 181 | declare module 'eslint-plugin-flowtype/dist/utilities/iterateFunctionNodes' { 182 | declare module.exports: any; 183 | } 184 | 185 | declare module 'eslint-plugin-flowtype/dist/utilities/quoteName' { 186 | declare module.exports: any; 187 | } 188 | 189 | declare module 'eslint-plugin-flowtype/dist/utilities/spacingFixers' { 190 | declare module.exports: any; 191 | } 192 | 193 | // Filename aliases 194 | declare module 'eslint-plugin-flowtype/bin/readmeAssertions.js' { 195 | declare module.exports: $Exports<'eslint-plugin-flowtype/bin/readmeAssertions'>; 196 | } 197 | declare module 'eslint-plugin-flowtype/dist/index.js' { 198 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/index'>; 199 | } 200 | declare module 'eslint-plugin-flowtype/dist/rules/booleanStyle.js' { 201 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/booleanStyle'>; 202 | } 203 | declare module 'eslint-plugin-flowtype/dist/rules/defineFlowType.js' { 204 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/defineFlowType'>; 205 | } 206 | declare module 'eslint-plugin-flowtype/dist/rules/delimiterDangle.js' { 207 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/delimiterDangle'>; 208 | } 209 | declare module 'eslint-plugin-flowtype/dist/rules/genericSpacing.js' { 210 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/genericSpacing'>; 211 | } 212 | declare module 'eslint-plugin-flowtype/dist/rules/noDupeKeys.js' { 213 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noDupeKeys'>; 214 | } 215 | declare module 'eslint-plugin-flowtype/dist/rules/noPrimitiveConstructorTypes.js' { 216 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noPrimitiveConstructorTypes'>; 217 | } 218 | declare module 'eslint-plugin-flowtype/dist/rules/noWeakTypes.js' { 219 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noWeakTypes'>; 220 | } 221 | declare module 'eslint-plugin-flowtype/dist/rules/objectTypeDelimiter.js' { 222 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/objectTypeDelimiter'>; 223 | } 224 | declare module 'eslint-plugin-flowtype/dist/rules/requireParameterType.js' { 225 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/requireParameterType'>; 226 | } 227 | declare module 'eslint-plugin-flowtype/dist/rules/requireReturnType.js' { 228 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/requireReturnType'>; 229 | } 230 | declare module 'eslint-plugin-flowtype/dist/rules/requireValidFileAnnotation.js' { 231 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/requireValidFileAnnotation'>; 232 | } 233 | declare module 'eslint-plugin-flowtype/dist/rules/requireVariableType.js' { 234 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/requireVariableType'>; 235 | } 236 | declare module 'eslint-plugin-flowtype/dist/rules/semi.js' { 237 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/semi'>; 238 | } 239 | declare module 'eslint-plugin-flowtype/dist/rules/sortKeys.js' { 240 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/sortKeys'>; 241 | } 242 | declare module 'eslint-plugin-flowtype/dist/rules/spaceAfterTypeColon.js' { 243 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/spaceAfterTypeColon'>; 244 | } 245 | declare module 'eslint-plugin-flowtype/dist/rules/spaceBeforeGenericBracket.js' { 246 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/spaceBeforeGenericBracket'>; 247 | } 248 | declare module 'eslint-plugin-flowtype/dist/rules/spaceBeforeTypeColon.js' { 249 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/spaceBeforeTypeColon'>; 250 | } 251 | declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateFunctions.js' { 252 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateFunctions'>; 253 | } 254 | declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateObjectTypeIndexer.js' { 255 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateObjectTypeIndexer'>; 256 | } 257 | declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateObjectTypeProperty.js' { 258 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateObjectTypeProperty'>; 259 | } 260 | declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateReturnType.js' { 261 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateReturnType'>; 262 | } 263 | declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateTypeCastExpression.js' { 264 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateTypeCastExpression'>; 265 | } 266 | declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateTypical.js' { 267 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/typeColonSpacing/evaluateTypical'>; 268 | } 269 | declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/index.js' { 270 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/typeColonSpacing/index'>; 271 | } 272 | declare module 'eslint-plugin-flowtype/dist/rules/typeColonSpacing/reporter.js' { 273 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/typeColonSpacing/reporter'>; 274 | } 275 | declare module 'eslint-plugin-flowtype/dist/rules/typeIdMatch.js' { 276 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/typeIdMatch'>; 277 | } 278 | declare module 'eslint-plugin-flowtype/dist/rules/unionIntersectionSpacing.js' { 279 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/unionIntersectionSpacing'>; 280 | } 281 | declare module 'eslint-plugin-flowtype/dist/rules/useFlowType.js' { 282 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/useFlowType'>; 283 | } 284 | declare module 'eslint-plugin-flowtype/dist/rules/validSyntax.js' { 285 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/validSyntax'>; 286 | } 287 | declare module 'eslint-plugin-flowtype/dist/utilities/checkFlowFileAnnotation.js' { 288 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/utilities/checkFlowFileAnnotation'>; 289 | } 290 | declare module 'eslint-plugin-flowtype/dist/utilities/fuzzyStringMatch.js' { 291 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/utilities/fuzzyStringMatch'>; 292 | } 293 | declare module 'eslint-plugin-flowtype/dist/utilities/getParameterName.js' { 294 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/utilities/getParameterName'>; 295 | } 296 | declare module 'eslint-plugin-flowtype/dist/utilities/getTokenAfterParens.js' { 297 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/utilities/getTokenAfterParens'>; 298 | } 299 | declare module 'eslint-plugin-flowtype/dist/utilities/getTokenBeforeParens.js' { 300 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/utilities/getTokenBeforeParens'>; 301 | } 302 | declare module 'eslint-plugin-flowtype/dist/utilities/index.js' { 303 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/utilities/index'>; 304 | } 305 | declare module 'eslint-plugin-flowtype/dist/utilities/isFlowFile.js' { 306 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/utilities/isFlowFile'>; 307 | } 308 | declare module 'eslint-plugin-flowtype/dist/utilities/isFlowFileAnnotation.js' { 309 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/utilities/isFlowFileAnnotation'>; 310 | } 311 | declare module 'eslint-plugin-flowtype/dist/utilities/iterateFunctionNodes.js' { 312 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/utilities/iterateFunctionNodes'>; 313 | } 314 | declare module 'eslint-plugin-flowtype/dist/utilities/quoteName.js' { 315 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/utilities/quoteName'>; 316 | } 317 | declare module 'eslint-plugin-flowtype/dist/utilities/spacingFixers.js' { 318 | declare module.exports: $Exports<'eslint-plugin-flowtype/dist/utilities/spacingFixers'>; 319 | } 320 | -------------------------------------------------------------------------------- /flow-typed/npm/eslint-plugin-import_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 4cfe4ed9672a8800e1fb4e3ff3538781 2 | // flow-typed version: <>/eslint-plugin-import_v^2.2.0/flow_v0.41.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-jsx-a11y_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 6316e4ab644d1bccd369503e50c81b9d 2 | // flow-typed version: <>/eslint-plugin-jsx-a11y_v^3.0.2/flow_v0.41.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'eslint-plugin-jsx-a11y' 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-jsx-a11y' { 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-jsx-a11y/__tests__/index-test' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/anchor-has-content-test' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-props-test' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-proptypes-test' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-role-test' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-unsupported-elements-test' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/click-events-have-key-events-test' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/heading-has-content-test' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/href-no-hash-test' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/html-has-lang-test' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/img-has-alt-test' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/img-redundant-alt-test' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/label-has-for-test' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/lang-test' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/mouse-events-have-key-events-test' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-access-key-test' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-marquee-test' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-onchange-test' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-static-element-interactions-test' { 98 | declare module.exports: any; 99 | } 100 | 101 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/onclick-has-focus-test' { 102 | declare module.exports: any; 103 | } 104 | 105 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/onclick-has-role-test' { 106 | declare module.exports: any; 107 | } 108 | 109 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/role-has-required-aria-props-test' { 110 | declare module.exports: any; 111 | } 112 | 113 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/role-supports-aria-props-test' { 114 | declare module.exports: any; 115 | } 116 | 117 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/scope-test' { 118 | declare module.exports: any; 119 | } 120 | 121 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/tabindex-no-positive-test' { 122 | declare module.exports: any; 123 | } 124 | 125 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/getSuggestion-test' { 126 | declare module.exports: any; 127 | } 128 | 129 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/schemas-test' { 130 | declare module.exports: any; 131 | } 132 | 133 | declare module 'eslint-plugin-jsx-a11y/lib/index' { 134 | declare module.exports: any; 135 | } 136 | 137 | declare module 'eslint-plugin-jsx-a11y/lib/rules/anchor-has-content' { 138 | declare module.exports: any; 139 | } 140 | 141 | declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-props' { 142 | declare module.exports: any; 143 | } 144 | 145 | declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-proptypes' { 146 | declare module.exports: any; 147 | } 148 | 149 | declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-role' { 150 | declare module.exports: any; 151 | } 152 | 153 | declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-unsupported-elements' { 154 | declare module.exports: any; 155 | } 156 | 157 | declare module 'eslint-plugin-jsx-a11y/lib/rules/click-events-have-key-events' { 158 | declare module.exports: any; 159 | } 160 | 161 | declare module 'eslint-plugin-jsx-a11y/lib/rules/heading-has-content' { 162 | declare module.exports: any; 163 | } 164 | 165 | declare module 'eslint-plugin-jsx-a11y/lib/rules/href-no-hash' { 166 | declare module.exports: any; 167 | } 168 | 169 | declare module 'eslint-plugin-jsx-a11y/lib/rules/html-has-lang' { 170 | declare module.exports: any; 171 | } 172 | 173 | declare module 'eslint-plugin-jsx-a11y/lib/rules/img-has-alt' { 174 | declare module.exports: any; 175 | } 176 | 177 | declare module 'eslint-plugin-jsx-a11y/lib/rules/img-redundant-alt' { 178 | declare module.exports: any; 179 | } 180 | 181 | declare module 'eslint-plugin-jsx-a11y/lib/rules/label-has-for' { 182 | declare module.exports: any; 183 | } 184 | 185 | declare module 'eslint-plugin-jsx-a11y/lib/rules/lang' { 186 | declare module.exports: any; 187 | } 188 | 189 | declare module 'eslint-plugin-jsx-a11y/lib/rules/mouse-events-have-key-events' { 190 | declare module.exports: any; 191 | } 192 | 193 | declare module 'eslint-plugin-jsx-a11y/lib/rules/no-access-key' { 194 | declare module.exports: any; 195 | } 196 | 197 | declare module 'eslint-plugin-jsx-a11y/lib/rules/no-marquee' { 198 | declare module.exports: any; 199 | } 200 | 201 | declare module 'eslint-plugin-jsx-a11y/lib/rules/no-onchange' { 202 | declare module.exports: any; 203 | } 204 | 205 | declare module 'eslint-plugin-jsx-a11y/lib/rules/no-static-element-interactions' { 206 | declare module.exports: any; 207 | } 208 | 209 | declare module 'eslint-plugin-jsx-a11y/lib/rules/onclick-has-focus' { 210 | declare module.exports: any; 211 | } 212 | 213 | declare module 'eslint-plugin-jsx-a11y/lib/rules/onclick-has-role' { 214 | declare module.exports: any; 215 | } 216 | 217 | declare module 'eslint-plugin-jsx-a11y/lib/rules/role-has-required-aria-props' { 218 | declare module.exports: any; 219 | } 220 | 221 | declare module 'eslint-plugin-jsx-a11y/lib/rules/role-supports-aria-props' { 222 | declare module.exports: any; 223 | } 224 | 225 | declare module 'eslint-plugin-jsx-a11y/lib/rules/scope' { 226 | declare module.exports: any; 227 | } 228 | 229 | declare module 'eslint-plugin-jsx-a11y/lib/rules/tabindex-no-positive' { 230 | declare module.exports: any; 231 | } 232 | 233 | declare module 'eslint-plugin-jsx-a11y/lib/util/getImplicitRole' { 234 | declare module.exports: any; 235 | } 236 | 237 | declare module 'eslint-plugin-jsx-a11y/lib/util/getSuggestion' { 238 | declare module.exports: any; 239 | } 240 | 241 | declare module 'eslint-plugin-jsx-a11y/lib/util/getTabIndex' { 242 | declare module.exports: any; 243 | } 244 | 245 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/a' { 246 | declare module.exports: any; 247 | } 248 | 249 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/area' { 250 | declare module.exports: any; 251 | } 252 | 253 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/article' { 254 | declare module.exports: any; 255 | } 256 | 257 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/aside' { 258 | declare module.exports: any; 259 | } 260 | 261 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/body' { 262 | declare module.exports: any; 263 | } 264 | 265 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/button' { 266 | declare module.exports: any; 267 | } 268 | 269 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/datalist' { 270 | declare module.exports: any; 271 | } 272 | 273 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/details' { 274 | declare module.exports: any; 275 | } 276 | 277 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/dialog' { 278 | declare module.exports: any; 279 | } 280 | 281 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/dl' { 282 | declare module.exports: any; 283 | } 284 | 285 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/form' { 286 | declare module.exports: any; 287 | } 288 | 289 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h1' { 290 | declare module.exports: any; 291 | } 292 | 293 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h2' { 294 | declare module.exports: any; 295 | } 296 | 297 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h3' { 298 | declare module.exports: any; 299 | } 300 | 301 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h4' { 302 | declare module.exports: any; 303 | } 304 | 305 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h5' { 306 | declare module.exports: any; 307 | } 308 | 309 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h6' { 310 | declare module.exports: any; 311 | } 312 | 313 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/hr' { 314 | declare module.exports: any; 315 | } 316 | 317 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/img' { 318 | declare module.exports: any; 319 | } 320 | 321 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/index' { 322 | declare module.exports: any; 323 | } 324 | 325 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/input' { 326 | declare module.exports: any; 327 | } 328 | 329 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/li' { 330 | declare module.exports: any; 331 | } 332 | 333 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/link' { 334 | declare module.exports: any; 335 | } 336 | 337 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/menu' { 338 | declare module.exports: any; 339 | } 340 | 341 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/menuitem' { 342 | declare module.exports: any; 343 | } 344 | 345 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/meter' { 346 | declare module.exports: any; 347 | } 348 | 349 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/nav' { 350 | declare module.exports: any; 351 | } 352 | 353 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/ol' { 354 | declare module.exports: any; 355 | } 356 | 357 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/option' { 358 | declare module.exports: any; 359 | } 360 | 361 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/output' { 362 | declare module.exports: any; 363 | } 364 | 365 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/progress' { 366 | declare module.exports: any; 367 | } 368 | 369 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/section' { 370 | declare module.exports: any; 371 | } 372 | 373 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/select' { 374 | declare module.exports: any; 375 | } 376 | 377 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/tbody' { 378 | declare module.exports: any; 379 | } 380 | 381 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/textarea' { 382 | declare module.exports: any; 383 | } 384 | 385 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/tfoot' { 386 | declare module.exports: any; 387 | } 388 | 389 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/thead' { 390 | declare module.exports: any; 391 | } 392 | 393 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/ul' { 394 | declare module.exports: any; 395 | } 396 | 397 | declare module 'eslint-plugin-jsx-a11y/lib/util/isHiddenFromScreenReader' { 398 | declare module.exports: any; 399 | } 400 | 401 | declare module 'eslint-plugin-jsx-a11y/lib/util/isInteractiveElement' { 402 | declare module.exports: any; 403 | } 404 | 405 | declare module 'eslint-plugin-jsx-a11y/lib/util/schemas' { 406 | declare module.exports: any; 407 | } 408 | 409 | declare module 'eslint-plugin-jsx-a11y/src/index' { 410 | declare module.exports: any; 411 | } 412 | 413 | declare module 'eslint-plugin-jsx-a11y/src/rules/anchor-has-content' { 414 | declare module.exports: any; 415 | } 416 | 417 | declare module 'eslint-plugin-jsx-a11y/src/rules/aria-props' { 418 | declare module.exports: any; 419 | } 420 | 421 | declare module 'eslint-plugin-jsx-a11y/src/rules/aria-proptypes' { 422 | declare module.exports: any; 423 | } 424 | 425 | declare module 'eslint-plugin-jsx-a11y/src/rules/aria-role' { 426 | declare module.exports: any; 427 | } 428 | 429 | declare module 'eslint-plugin-jsx-a11y/src/rules/aria-unsupported-elements' { 430 | declare module.exports: any; 431 | } 432 | 433 | declare module 'eslint-plugin-jsx-a11y/src/rules/click-events-have-key-events' { 434 | declare module.exports: any; 435 | } 436 | 437 | declare module 'eslint-plugin-jsx-a11y/src/rules/heading-has-content' { 438 | declare module.exports: any; 439 | } 440 | 441 | declare module 'eslint-plugin-jsx-a11y/src/rules/href-no-hash' { 442 | declare module.exports: any; 443 | } 444 | 445 | declare module 'eslint-plugin-jsx-a11y/src/rules/html-has-lang' { 446 | declare module.exports: any; 447 | } 448 | 449 | declare module 'eslint-plugin-jsx-a11y/src/rules/img-has-alt' { 450 | declare module.exports: any; 451 | } 452 | 453 | declare module 'eslint-plugin-jsx-a11y/src/rules/img-redundant-alt' { 454 | declare module.exports: any; 455 | } 456 | 457 | declare module 'eslint-plugin-jsx-a11y/src/rules/label-has-for' { 458 | declare module.exports: any; 459 | } 460 | 461 | declare module 'eslint-plugin-jsx-a11y/src/rules/lang' { 462 | declare module.exports: any; 463 | } 464 | 465 | declare module 'eslint-plugin-jsx-a11y/src/rules/mouse-events-have-key-events' { 466 | declare module.exports: any; 467 | } 468 | 469 | declare module 'eslint-plugin-jsx-a11y/src/rules/no-access-key' { 470 | declare module.exports: any; 471 | } 472 | 473 | declare module 'eslint-plugin-jsx-a11y/src/rules/no-marquee' { 474 | declare module.exports: any; 475 | } 476 | 477 | declare module 'eslint-plugin-jsx-a11y/src/rules/no-onchange' { 478 | declare module.exports: any; 479 | } 480 | 481 | declare module 'eslint-plugin-jsx-a11y/src/rules/no-static-element-interactions' { 482 | declare module.exports: any; 483 | } 484 | 485 | declare module 'eslint-plugin-jsx-a11y/src/rules/onclick-has-focus' { 486 | declare module.exports: any; 487 | } 488 | 489 | declare module 'eslint-plugin-jsx-a11y/src/rules/onclick-has-role' { 490 | declare module.exports: any; 491 | } 492 | 493 | declare module 'eslint-plugin-jsx-a11y/src/rules/role-has-required-aria-props' { 494 | declare module.exports: any; 495 | } 496 | 497 | declare module 'eslint-plugin-jsx-a11y/src/rules/role-supports-aria-props' { 498 | declare module.exports: any; 499 | } 500 | 501 | declare module 'eslint-plugin-jsx-a11y/src/rules/scope' { 502 | declare module.exports: any; 503 | } 504 | 505 | declare module 'eslint-plugin-jsx-a11y/src/rules/tabindex-no-positive' { 506 | declare module.exports: any; 507 | } 508 | 509 | declare module 'eslint-plugin-jsx-a11y/src/util/getImplicitRole' { 510 | declare module.exports: any; 511 | } 512 | 513 | declare module 'eslint-plugin-jsx-a11y/src/util/getSuggestion' { 514 | declare module.exports: any; 515 | } 516 | 517 | declare module 'eslint-plugin-jsx-a11y/src/util/getTabIndex' { 518 | declare module.exports: any; 519 | } 520 | 521 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/a' { 522 | declare module.exports: any; 523 | } 524 | 525 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/area' { 526 | declare module.exports: any; 527 | } 528 | 529 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/article' { 530 | declare module.exports: any; 531 | } 532 | 533 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/aside' { 534 | declare module.exports: any; 535 | } 536 | 537 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/body' { 538 | declare module.exports: any; 539 | } 540 | 541 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/button' { 542 | declare module.exports: any; 543 | } 544 | 545 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/datalist' { 546 | declare module.exports: any; 547 | } 548 | 549 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/details' { 550 | declare module.exports: any; 551 | } 552 | 553 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/dialog' { 554 | declare module.exports: any; 555 | } 556 | 557 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/dl' { 558 | declare module.exports: any; 559 | } 560 | 561 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/form' { 562 | declare module.exports: any; 563 | } 564 | 565 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/h1' { 566 | declare module.exports: any; 567 | } 568 | 569 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/h2' { 570 | declare module.exports: any; 571 | } 572 | 573 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/h3' { 574 | declare module.exports: any; 575 | } 576 | 577 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/h4' { 578 | declare module.exports: any; 579 | } 580 | 581 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/h5' { 582 | declare module.exports: any; 583 | } 584 | 585 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/h6' { 586 | declare module.exports: any; 587 | } 588 | 589 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/hr' { 590 | declare module.exports: any; 591 | } 592 | 593 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/img' { 594 | declare module.exports: any; 595 | } 596 | 597 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/index' { 598 | declare module.exports: any; 599 | } 600 | 601 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/input' { 602 | declare module.exports: any; 603 | } 604 | 605 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/li' { 606 | declare module.exports: any; 607 | } 608 | 609 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/link' { 610 | declare module.exports: any; 611 | } 612 | 613 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/menu' { 614 | declare module.exports: any; 615 | } 616 | 617 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/menuitem' { 618 | declare module.exports: any; 619 | } 620 | 621 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/meter' { 622 | declare module.exports: any; 623 | } 624 | 625 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/nav' { 626 | declare module.exports: any; 627 | } 628 | 629 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/ol' { 630 | declare module.exports: any; 631 | } 632 | 633 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/option' { 634 | declare module.exports: any; 635 | } 636 | 637 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/output' { 638 | declare module.exports: any; 639 | } 640 | 641 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/progress' { 642 | declare module.exports: any; 643 | } 644 | 645 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/section' { 646 | declare module.exports: any; 647 | } 648 | 649 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/select' { 650 | declare module.exports: any; 651 | } 652 | 653 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/tbody' { 654 | declare module.exports: any; 655 | } 656 | 657 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/textarea' { 658 | declare module.exports: any; 659 | } 660 | 661 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/tfoot' { 662 | declare module.exports: any; 663 | } 664 | 665 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/thead' { 666 | declare module.exports: any; 667 | } 668 | 669 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/ul' { 670 | declare module.exports: any; 671 | } 672 | 673 | declare module 'eslint-plugin-jsx-a11y/src/util/isHiddenFromScreenReader' { 674 | declare module.exports: any; 675 | } 676 | 677 | declare module 'eslint-plugin-jsx-a11y/src/util/isInteractiveElement' { 678 | declare module.exports: any; 679 | } 680 | 681 | declare module 'eslint-plugin-jsx-a11y/src/util/schemas' { 682 | declare module.exports: any; 683 | } 684 | 685 | // Filename aliases 686 | declare module 'eslint-plugin-jsx-a11y/__tests__/index-test.js' { 687 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/index-test'>; 688 | } 689 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/anchor-has-content-test.js' { 690 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/anchor-has-content-test'>; 691 | } 692 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-props-test.js' { 693 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-props-test'>; 694 | } 695 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-proptypes-test.js' { 696 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-proptypes-test'>; 697 | } 698 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-role-test.js' { 699 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-role-test'>; 700 | } 701 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-unsupported-elements-test.js' { 702 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/aria-unsupported-elements-test'>; 703 | } 704 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/click-events-have-key-events-test.js' { 705 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/click-events-have-key-events-test'>; 706 | } 707 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/heading-has-content-test.js' { 708 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/heading-has-content-test'>; 709 | } 710 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/href-no-hash-test.js' { 711 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/href-no-hash-test'>; 712 | } 713 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/html-has-lang-test.js' { 714 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/html-has-lang-test'>; 715 | } 716 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/img-has-alt-test.js' { 717 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/img-has-alt-test'>; 718 | } 719 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/img-redundant-alt-test.js' { 720 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/img-redundant-alt-test'>; 721 | } 722 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/label-has-for-test.js' { 723 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/label-has-for-test'>; 724 | } 725 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/lang-test.js' { 726 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/lang-test'>; 727 | } 728 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/mouse-events-have-key-events-test.js' { 729 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/mouse-events-have-key-events-test'>; 730 | } 731 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-access-key-test.js' { 732 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-access-key-test'>; 733 | } 734 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-marquee-test.js' { 735 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-marquee-test'>; 736 | } 737 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-onchange-test.js' { 738 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-onchange-test'>; 739 | } 740 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/no-static-element-interactions-test.js' { 741 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/no-static-element-interactions-test'>; 742 | } 743 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/onclick-has-focus-test.js' { 744 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/onclick-has-focus-test'>; 745 | } 746 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/onclick-has-role-test.js' { 747 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/onclick-has-role-test'>; 748 | } 749 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/role-has-required-aria-props-test.js' { 750 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/role-has-required-aria-props-test'>; 751 | } 752 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/role-supports-aria-props-test.js' { 753 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/role-supports-aria-props-test'>; 754 | } 755 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/scope-test.js' { 756 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/scope-test'>; 757 | } 758 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/rules/tabindex-no-positive-test.js' { 759 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/rules/tabindex-no-positive-test'>; 760 | } 761 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/getSuggestion-test.js' { 762 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/getSuggestion-test'>; 763 | } 764 | declare module 'eslint-plugin-jsx-a11y/__tests__/src/util/schemas-test.js' { 765 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/__tests__/src/util/schemas-test'>; 766 | } 767 | declare module 'eslint-plugin-jsx-a11y/lib/index.js' { 768 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/index'>; 769 | } 770 | declare module 'eslint-plugin-jsx-a11y/lib/rules/anchor-has-content.js' { 771 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/anchor-has-content'>; 772 | } 773 | declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-props.js' { 774 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/aria-props'>; 775 | } 776 | declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-proptypes.js' { 777 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/aria-proptypes'>; 778 | } 779 | declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-role.js' { 780 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/aria-role'>; 781 | } 782 | declare module 'eslint-plugin-jsx-a11y/lib/rules/aria-unsupported-elements.js' { 783 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/aria-unsupported-elements'>; 784 | } 785 | declare module 'eslint-plugin-jsx-a11y/lib/rules/click-events-have-key-events.js' { 786 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/click-events-have-key-events'>; 787 | } 788 | declare module 'eslint-plugin-jsx-a11y/lib/rules/heading-has-content.js' { 789 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/heading-has-content'>; 790 | } 791 | declare module 'eslint-plugin-jsx-a11y/lib/rules/href-no-hash.js' { 792 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/href-no-hash'>; 793 | } 794 | declare module 'eslint-plugin-jsx-a11y/lib/rules/html-has-lang.js' { 795 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/html-has-lang'>; 796 | } 797 | declare module 'eslint-plugin-jsx-a11y/lib/rules/img-has-alt.js' { 798 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/img-has-alt'>; 799 | } 800 | declare module 'eslint-plugin-jsx-a11y/lib/rules/img-redundant-alt.js' { 801 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/img-redundant-alt'>; 802 | } 803 | declare module 'eslint-plugin-jsx-a11y/lib/rules/label-has-for.js' { 804 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/label-has-for'>; 805 | } 806 | declare module 'eslint-plugin-jsx-a11y/lib/rules/lang.js' { 807 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/lang'>; 808 | } 809 | declare module 'eslint-plugin-jsx-a11y/lib/rules/mouse-events-have-key-events.js' { 810 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/mouse-events-have-key-events'>; 811 | } 812 | declare module 'eslint-plugin-jsx-a11y/lib/rules/no-access-key.js' { 813 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-access-key'>; 814 | } 815 | declare module 'eslint-plugin-jsx-a11y/lib/rules/no-marquee.js' { 816 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-marquee'>; 817 | } 818 | declare module 'eslint-plugin-jsx-a11y/lib/rules/no-onchange.js' { 819 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-onchange'>; 820 | } 821 | declare module 'eslint-plugin-jsx-a11y/lib/rules/no-static-element-interactions.js' { 822 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/no-static-element-interactions'>; 823 | } 824 | declare module 'eslint-plugin-jsx-a11y/lib/rules/onclick-has-focus.js' { 825 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/onclick-has-focus'>; 826 | } 827 | declare module 'eslint-plugin-jsx-a11y/lib/rules/onclick-has-role.js' { 828 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/onclick-has-role'>; 829 | } 830 | declare module 'eslint-plugin-jsx-a11y/lib/rules/role-has-required-aria-props.js' { 831 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/role-has-required-aria-props'>; 832 | } 833 | declare module 'eslint-plugin-jsx-a11y/lib/rules/role-supports-aria-props.js' { 834 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/role-supports-aria-props'>; 835 | } 836 | declare module 'eslint-plugin-jsx-a11y/lib/rules/scope.js' { 837 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/scope'>; 838 | } 839 | declare module 'eslint-plugin-jsx-a11y/lib/rules/tabindex-no-positive.js' { 840 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/rules/tabindex-no-positive'>; 841 | } 842 | declare module 'eslint-plugin-jsx-a11y/lib/util/getImplicitRole.js' { 843 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/getImplicitRole'>; 844 | } 845 | declare module 'eslint-plugin-jsx-a11y/lib/util/getSuggestion.js' { 846 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/getSuggestion'>; 847 | } 848 | declare module 'eslint-plugin-jsx-a11y/lib/util/getTabIndex.js' { 849 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/getTabIndex'>; 850 | } 851 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/a.js' { 852 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/a'>; 853 | } 854 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/area.js' { 855 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/area'>; 856 | } 857 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/article.js' { 858 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/article'>; 859 | } 860 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/aside.js' { 861 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/aside'>; 862 | } 863 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/body.js' { 864 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/body'>; 865 | } 866 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/button.js' { 867 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/button'>; 868 | } 869 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/datalist.js' { 870 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/datalist'>; 871 | } 872 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/details.js' { 873 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/details'>; 874 | } 875 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/dialog.js' { 876 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/dialog'>; 877 | } 878 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/dl.js' { 879 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/dl'>; 880 | } 881 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/form.js' { 882 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/form'>; 883 | } 884 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h1.js' { 885 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h1'>; 886 | } 887 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h2.js' { 888 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h2'>; 889 | } 890 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h3.js' { 891 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h3'>; 892 | } 893 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h4.js' { 894 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h4'>; 895 | } 896 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h5.js' { 897 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h5'>; 898 | } 899 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h6.js' { 900 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/h6'>; 901 | } 902 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/hr.js' { 903 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/hr'>; 904 | } 905 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/img.js' { 906 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/img'>; 907 | } 908 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/index.js' { 909 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/index'>; 910 | } 911 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/input.js' { 912 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/input'>; 913 | } 914 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/li.js' { 915 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/li'>; 916 | } 917 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/link.js' { 918 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/link'>; 919 | } 920 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/menu.js' { 921 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/menu'>; 922 | } 923 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/menuitem.js' { 924 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/menuitem'>; 925 | } 926 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/meter.js' { 927 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/meter'>; 928 | } 929 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/nav.js' { 930 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/nav'>; 931 | } 932 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/ol.js' { 933 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/ol'>; 934 | } 935 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/option.js' { 936 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/option'>; 937 | } 938 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/output.js' { 939 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/output'>; 940 | } 941 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/progress.js' { 942 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/progress'>; 943 | } 944 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/section.js' { 945 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/section'>; 946 | } 947 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/select.js' { 948 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/select'>; 949 | } 950 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/tbody.js' { 951 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/tbody'>; 952 | } 953 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/textarea.js' { 954 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/textarea'>; 955 | } 956 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/tfoot.js' { 957 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/tfoot'>; 958 | } 959 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/thead.js' { 960 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/thead'>; 961 | } 962 | declare module 'eslint-plugin-jsx-a11y/lib/util/implicitRoles/ul.js' { 963 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/implicitRoles/ul'>; 964 | } 965 | declare module 'eslint-plugin-jsx-a11y/lib/util/isHiddenFromScreenReader.js' { 966 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/isHiddenFromScreenReader'>; 967 | } 968 | declare module 'eslint-plugin-jsx-a11y/lib/util/isInteractiveElement.js' { 969 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/isInteractiveElement'>; 970 | } 971 | declare module 'eslint-plugin-jsx-a11y/lib/util/schemas.js' { 972 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/lib/util/schemas'>; 973 | } 974 | declare module 'eslint-plugin-jsx-a11y/src/index.js' { 975 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/index'>; 976 | } 977 | declare module 'eslint-plugin-jsx-a11y/src/rules/anchor-has-content.js' { 978 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/anchor-has-content'>; 979 | } 980 | declare module 'eslint-plugin-jsx-a11y/src/rules/aria-props.js' { 981 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/aria-props'>; 982 | } 983 | declare module 'eslint-plugin-jsx-a11y/src/rules/aria-proptypes.js' { 984 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/aria-proptypes'>; 985 | } 986 | declare module 'eslint-plugin-jsx-a11y/src/rules/aria-role.js' { 987 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/aria-role'>; 988 | } 989 | declare module 'eslint-plugin-jsx-a11y/src/rules/aria-unsupported-elements.js' { 990 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/aria-unsupported-elements'>; 991 | } 992 | declare module 'eslint-plugin-jsx-a11y/src/rules/click-events-have-key-events.js' { 993 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/click-events-have-key-events'>; 994 | } 995 | declare module 'eslint-plugin-jsx-a11y/src/rules/heading-has-content.js' { 996 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/heading-has-content'>; 997 | } 998 | declare module 'eslint-plugin-jsx-a11y/src/rules/href-no-hash.js' { 999 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/href-no-hash'>; 1000 | } 1001 | declare module 'eslint-plugin-jsx-a11y/src/rules/html-has-lang.js' { 1002 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/html-has-lang'>; 1003 | } 1004 | declare module 'eslint-plugin-jsx-a11y/src/rules/img-has-alt.js' { 1005 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/img-has-alt'>; 1006 | } 1007 | declare module 'eslint-plugin-jsx-a11y/src/rules/img-redundant-alt.js' { 1008 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/img-redundant-alt'>; 1009 | } 1010 | declare module 'eslint-plugin-jsx-a11y/src/rules/label-has-for.js' { 1011 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/label-has-for'>; 1012 | } 1013 | declare module 'eslint-plugin-jsx-a11y/src/rules/lang.js' { 1014 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/lang'>; 1015 | } 1016 | declare module 'eslint-plugin-jsx-a11y/src/rules/mouse-events-have-key-events.js' { 1017 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/mouse-events-have-key-events'>; 1018 | } 1019 | declare module 'eslint-plugin-jsx-a11y/src/rules/no-access-key.js' { 1020 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/no-access-key'>; 1021 | } 1022 | declare module 'eslint-plugin-jsx-a11y/src/rules/no-marquee.js' { 1023 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/no-marquee'>; 1024 | } 1025 | declare module 'eslint-plugin-jsx-a11y/src/rules/no-onchange.js' { 1026 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/no-onchange'>; 1027 | } 1028 | declare module 'eslint-plugin-jsx-a11y/src/rules/no-static-element-interactions.js' { 1029 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/no-static-element-interactions'>; 1030 | } 1031 | declare module 'eslint-plugin-jsx-a11y/src/rules/onclick-has-focus.js' { 1032 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/onclick-has-focus'>; 1033 | } 1034 | declare module 'eslint-plugin-jsx-a11y/src/rules/onclick-has-role.js' { 1035 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/onclick-has-role'>; 1036 | } 1037 | declare module 'eslint-plugin-jsx-a11y/src/rules/role-has-required-aria-props.js' { 1038 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/role-has-required-aria-props'>; 1039 | } 1040 | declare module 'eslint-plugin-jsx-a11y/src/rules/role-supports-aria-props.js' { 1041 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/role-supports-aria-props'>; 1042 | } 1043 | declare module 'eslint-plugin-jsx-a11y/src/rules/scope.js' { 1044 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/scope'>; 1045 | } 1046 | declare module 'eslint-plugin-jsx-a11y/src/rules/tabindex-no-positive.js' { 1047 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/rules/tabindex-no-positive'>; 1048 | } 1049 | declare module 'eslint-plugin-jsx-a11y/src/util/getImplicitRole.js' { 1050 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/getImplicitRole'>; 1051 | } 1052 | declare module 'eslint-plugin-jsx-a11y/src/util/getSuggestion.js' { 1053 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/getSuggestion'>; 1054 | } 1055 | declare module 'eslint-plugin-jsx-a11y/src/util/getTabIndex.js' { 1056 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/getTabIndex'>; 1057 | } 1058 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/a.js' { 1059 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/a'>; 1060 | } 1061 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/area.js' { 1062 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/area'>; 1063 | } 1064 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/article.js' { 1065 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/article'>; 1066 | } 1067 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/aside.js' { 1068 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/aside'>; 1069 | } 1070 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/body.js' { 1071 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/body'>; 1072 | } 1073 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/button.js' { 1074 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/button'>; 1075 | } 1076 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/datalist.js' { 1077 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/datalist'>; 1078 | } 1079 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/details.js' { 1080 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/details'>; 1081 | } 1082 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/dialog.js' { 1083 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/dialog'>; 1084 | } 1085 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/dl.js' { 1086 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/dl'>; 1087 | } 1088 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/form.js' { 1089 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/form'>; 1090 | } 1091 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/h1.js' { 1092 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/h1'>; 1093 | } 1094 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/h2.js' { 1095 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/h2'>; 1096 | } 1097 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/h3.js' { 1098 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/h3'>; 1099 | } 1100 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/h4.js' { 1101 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/h4'>; 1102 | } 1103 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/h5.js' { 1104 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/h5'>; 1105 | } 1106 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/h6.js' { 1107 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/h6'>; 1108 | } 1109 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/hr.js' { 1110 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/hr'>; 1111 | } 1112 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/img.js' { 1113 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/img'>; 1114 | } 1115 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/index.js' { 1116 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/index'>; 1117 | } 1118 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/input.js' { 1119 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/input'>; 1120 | } 1121 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/li.js' { 1122 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/li'>; 1123 | } 1124 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/link.js' { 1125 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/link'>; 1126 | } 1127 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/menu.js' { 1128 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/menu'>; 1129 | } 1130 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/menuitem.js' { 1131 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/menuitem'>; 1132 | } 1133 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/meter.js' { 1134 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/meter'>; 1135 | } 1136 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/nav.js' { 1137 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/nav'>; 1138 | } 1139 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/ol.js' { 1140 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/ol'>; 1141 | } 1142 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/option.js' { 1143 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/option'>; 1144 | } 1145 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/output.js' { 1146 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/output'>; 1147 | } 1148 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/progress.js' { 1149 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/progress'>; 1150 | } 1151 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/section.js' { 1152 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/section'>; 1153 | } 1154 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/select.js' { 1155 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/select'>; 1156 | } 1157 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/tbody.js' { 1158 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/tbody'>; 1159 | } 1160 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/textarea.js' { 1161 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/textarea'>; 1162 | } 1163 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/tfoot.js' { 1164 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/tfoot'>; 1165 | } 1166 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/thead.js' { 1167 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/thead'>; 1168 | } 1169 | declare module 'eslint-plugin-jsx-a11y/src/util/implicitRoles/ul.js' { 1170 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/implicitRoles/ul'>; 1171 | } 1172 | declare module 'eslint-plugin-jsx-a11y/src/util/isHiddenFromScreenReader.js' { 1173 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/isHiddenFromScreenReader'>; 1174 | } 1175 | declare module 'eslint-plugin-jsx-a11y/src/util/isInteractiveElement.js' { 1176 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/isInteractiveElement'>; 1177 | } 1178 | declare module 'eslint-plugin-jsx-a11y/src/util/schemas.js' { 1179 | declare module.exports: $Exports<'eslint-plugin-jsx-a11y/src/util/schemas'>; 1180 | } 1181 | -------------------------------------------------------------------------------- /flow-typed/npm/eslint-plugin-react_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: cb006cd97831514befb4e1501e9c5c3a 2 | // flow-typed version: <>/eslint-plugin-react_v^6.9.0/flow_v0.41.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-prop-types' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'eslint-plugin-react/lib/rules/jsx-boolean-value' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'eslint-plugin-react/lib/rules/jsx-closing-bracket-location' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'eslint-plugin-react/lib/rules/jsx-curly-spacing' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'eslint-plugin-react/lib/rules/jsx-equals-spacing' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'eslint-plugin-react/lib/rules/jsx-filename-extension' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'eslint-plugin-react/lib/rules/jsx-first-prop-new-line' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'eslint-plugin-react/lib/rules/jsx-handler-names' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'eslint-plugin-react/lib/rules/jsx-indent-props' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'eslint-plugin-react/lib/rules/jsx-indent' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'eslint-plugin-react/lib/rules/jsx-key' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'eslint-plugin-react/lib/rules/jsx-max-props-per-line' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'eslint-plugin-react/lib/rules/jsx-no-bind' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'eslint-plugin-react/lib/rules/jsx-no-comment-textnodes' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module 'eslint-plugin-react/lib/rules/jsx-no-duplicate-props' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module 'eslint-plugin-react/lib/rules/jsx-no-literals' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module 'eslint-plugin-react/lib/rules/jsx-no-target-blank' { 98 | declare module.exports: any; 99 | } 100 | 101 | declare module 'eslint-plugin-react/lib/rules/jsx-no-undef' { 102 | declare module.exports: any; 103 | } 104 | 105 | declare module 'eslint-plugin-react/lib/rules/jsx-pascal-case' { 106 | declare module.exports: any; 107 | } 108 | 109 | declare module 'eslint-plugin-react/lib/rules/jsx-sort-props' { 110 | declare module.exports: any; 111 | } 112 | 113 | declare module 'eslint-plugin-react/lib/rules/jsx-space-before-closing' { 114 | declare module.exports: any; 115 | } 116 | 117 | declare module 'eslint-plugin-react/lib/rules/jsx-tag-spacing' { 118 | declare module.exports: any; 119 | } 120 | 121 | declare module 'eslint-plugin-react/lib/rules/jsx-uses-react' { 122 | declare module.exports: any; 123 | } 124 | 125 | declare module 'eslint-plugin-react/lib/rules/jsx-uses-vars' { 126 | declare module.exports: any; 127 | } 128 | 129 | declare module 'eslint-plugin-react/lib/rules/jsx-wrap-multilines' { 130 | declare module.exports: any; 131 | } 132 | 133 | declare module 'eslint-plugin-react/lib/rules/no-array-index-key' { 134 | declare module.exports: any; 135 | } 136 | 137 | declare module 'eslint-plugin-react/lib/rules/no-children-prop' { 138 | declare module.exports: any; 139 | } 140 | 141 | declare module 'eslint-plugin-react/lib/rules/no-comment-textnodes' { 142 | declare module.exports: any; 143 | } 144 | 145 | declare module 'eslint-plugin-react/lib/rules/no-danger-with-children' { 146 | declare module.exports: any; 147 | } 148 | 149 | declare module 'eslint-plugin-react/lib/rules/no-danger' { 150 | declare module.exports: any; 151 | } 152 | 153 | declare module 'eslint-plugin-react/lib/rules/no-deprecated' { 154 | declare module.exports: any; 155 | } 156 | 157 | declare module 'eslint-plugin-react/lib/rules/no-did-mount-set-state' { 158 | declare module.exports: any; 159 | } 160 | 161 | declare module 'eslint-plugin-react/lib/rules/no-did-update-set-state' { 162 | declare module.exports: any; 163 | } 164 | 165 | declare module 'eslint-plugin-react/lib/rules/no-direct-mutation-state' { 166 | declare module.exports: any; 167 | } 168 | 169 | declare module 'eslint-plugin-react/lib/rules/no-find-dom-node' { 170 | declare module.exports: any; 171 | } 172 | 173 | declare module 'eslint-plugin-react/lib/rules/no-is-mounted' { 174 | declare module.exports: any; 175 | } 176 | 177 | declare module 'eslint-plugin-react/lib/rules/no-multi-comp' { 178 | declare module.exports: any; 179 | } 180 | 181 | declare module 'eslint-plugin-react/lib/rules/no-render-return-value' { 182 | declare module.exports: any; 183 | } 184 | 185 | declare module 'eslint-plugin-react/lib/rules/no-set-state' { 186 | declare module.exports: any; 187 | } 188 | 189 | declare module 'eslint-plugin-react/lib/rules/no-string-refs' { 190 | declare module.exports: any; 191 | } 192 | 193 | declare module 'eslint-plugin-react/lib/rules/no-unescaped-entities' { 194 | declare module.exports: any; 195 | } 196 | 197 | declare module 'eslint-plugin-react/lib/rules/no-unknown-property' { 198 | declare module.exports: any; 199 | } 200 | 201 | declare module 'eslint-plugin-react/lib/rules/no-unused-prop-types' { 202 | declare module.exports: any; 203 | } 204 | 205 | declare module 'eslint-plugin-react/lib/rules/prefer-es6-class' { 206 | declare module.exports: any; 207 | } 208 | 209 | declare module 'eslint-plugin-react/lib/rules/prefer-stateless-function' { 210 | declare module.exports: any; 211 | } 212 | 213 | declare module 'eslint-plugin-react/lib/rules/prop-types' { 214 | declare module.exports: any; 215 | } 216 | 217 | declare module 'eslint-plugin-react/lib/rules/react-in-jsx-scope' { 218 | declare module.exports: any; 219 | } 220 | 221 | declare module 'eslint-plugin-react/lib/rules/require-default-props' { 222 | declare module.exports: any; 223 | } 224 | 225 | declare module 'eslint-plugin-react/lib/rules/require-extension' { 226 | declare module.exports: any; 227 | } 228 | 229 | declare module 'eslint-plugin-react/lib/rules/require-optimization' { 230 | declare module.exports: any; 231 | } 232 | 233 | declare module 'eslint-plugin-react/lib/rules/require-render-return' { 234 | declare module.exports: any; 235 | } 236 | 237 | declare module 'eslint-plugin-react/lib/rules/self-closing-comp' { 238 | declare module.exports: any; 239 | } 240 | 241 | declare module 'eslint-plugin-react/lib/rules/sort-comp' { 242 | declare module.exports: any; 243 | } 244 | 245 | declare module 'eslint-plugin-react/lib/rules/sort-prop-types' { 246 | declare module.exports: any; 247 | } 248 | 249 | declare module 'eslint-plugin-react/lib/rules/style-prop-object' { 250 | declare module.exports: any; 251 | } 252 | 253 | declare module 'eslint-plugin-react/lib/rules/wrap-multilines' { 254 | declare module.exports: any; 255 | } 256 | 257 | declare module 'eslint-plugin-react/lib/util/annotations' { 258 | declare module.exports: any; 259 | } 260 | 261 | declare module 'eslint-plugin-react/lib/util/Components' { 262 | declare module.exports: any; 263 | } 264 | 265 | declare module 'eslint-plugin-react/lib/util/getTokenBeforeClosingBracket' { 266 | declare module.exports: any; 267 | } 268 | 269 | declare module 'eslint-plugin-react/lib/util/pragma' { 270 | declare module.exports: any; 271 | } 272 | 273 | declare module 'eslint-plugin-react/lib/util/variable' { 274 | declare module.exports: any; 275 | } 276 | 277 | declare module 'eslint-plugin-react/lib/util/version' { 278 | declare module.exports: any; 279 | } 280 | 281 | // Filename aliases 282 | declare module 'eslint-plugin-react/index' { 283 | declare module.exports: $Exports<'eslint-plugin-react'>; 284 | } 285 | declare module 'eslint-plugin-react/index.js' { 286 | declare module.exports: $Exports<'eslint-plugin-react'>; 287 | } 288 | declare module 'eslint-plugin-react/lib/rules/display-name.js' { 289 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/display-name'>; 290 | } 291 | declare module 'eslint-plugin-react/lib/rules/forbid-component-props.js' { 292 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/forbid-component-props'>; 293 | } 294 | declare module 'eslint-plugin-react/lib/rules/forbid-prop-types.js' { 295 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/forbid-prop-types'>; 296 | } 297 | declare module 'eslint-plugin-react/lib/rules/jsx-boolean-value.js' { 298 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-boolean-value'>; 299 | } 300 | declare module 'eslint-plugin-react/lib/rules/jsx-closing-bracket-location.js' { 301 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-closing-bracket-location'>; 302 | } 303 | declare module 'eslint-plugin-react/lib/rules/jsx-curly-spacing.js' { 304 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-curly-spacing'>; 305 | } 306 | declare module 'eslint-plugin-react/lib/rules/jsx-equals-spacing.js' { 307 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-equals-spacing'>; 308 | } 309 | declare module 'eslint-plugin-react/lib/rules/jsx-filename-extension.js' { 310 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-filename-extension'>; 311 | } 312 | declare module 'eslint-plugin-react/lib/rules/jsx-first-prop-new-line.js' { 313 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-first-prop-new-line'>; 314 | } 315 | declare module 'eslint-plugin-react/lib/rules/jsx-handler-names.js' { 316 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-handler-names'>; 317 | } 318 | declare module 'eslint-plugin-react/lib/rules/jsx-indent-props.js' { 319 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-indent-props'>; 320 | } 321 | declare module 'eslint-plugin-react/lib/rules/jsx-indent.js' { 322 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-indent'>; 323 | } 324 | declare module 'eslint-plugin-react/lib/rules/jsx-key.js' { 325 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-key'>; 326 | } 327 | declare module 'eslint-plugin-react/lib/rules/jsx-max-props-per-line.js' { 328 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-max-props-per-line'>; 329 | } 330 | declare module 'eslint-plugin-react/lib/rules/jsx-no-bind.js' { 331 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-no-bind'>; 332 | } 333 | declare module 'eslint-plugin-react/lib/rules/jsx-no-comment-textnodes.js' { 334 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-no-comment-textnodes'>; 335 | } 336 | declare module 'eslint-plugin-react/lib/rules/jsx-no-duplicate-props.js' { 337 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-no-duplicate-props'>; 338 | } 339 | declare module 'eslint-plugin-react/lib/rules/jsx-no-literals.js' { 340 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-no-literals'>; 341 | } 342 | declare module 'eslint-plugin-react/lib/rules/jsx-no-target-blank.js' { 343 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-no-target-blank'>; 344 | } 345 | declare module 'eslint-plugin-react/lib/rules/jsx-no-undef.js' { 346 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-no-undef'>; 347 | } 348 | declare module 'eslint-plugin-react/lib/rules/jsx-pascal-case.js' { 349 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-pascal-case'>; 350 | } 351 | declare module 'eslint-plugin-react/lib/rules/jsx-sort-props.js' { 352 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-sort-props'>; 353 | } 354 | declare module 'eslint-plugin-react/lib/rules/jsx-space-before-closing.js' { 355 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-space-before-closing'>; 356 | } 357 | declare module 'eslint-plugin-react/lib/rules/jsx-tag-spacing.js' { 358 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-tag-spacing'>; 359 | } 360 | declare module 'eslint-plugin-react/lib/rules/jsx-uses-react.js' { 361 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-uses-react'>; 362 | } 363 | declare module 'eslint-plugin-react/lib/rules/jsx-uses-vars.js' { 364 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-uses-vars'>; 365 | } 366 | declare module 'eslint-plugin-react/lib/rules/jsx-wrap-multilines.js' { 367 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-wrap-multilines'>; 368 | } 369 | declare module 'eslint-plugin-react/lib/rules/no-array-index-key.js' { 370 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-array-index-key'>; 371 | } 372 | declare module 'eslint-plugin-react/lib/rules/no-children-prop.js' { 373 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-children-prop'>; 374 | } 375 | declare module 'eslint-plugin-react/lib/rules/no-comment-textnodes.js' { 376 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-comment-textnodes'>; 377 | } 378 | declare module 'eslint-plugin-react/lib/rules/no-danger-with-children.js' { 379 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-danger-with-children'>; 380 | } 381 | declare module 'eslint-plugin-react/lib/rules/no-danger.js' { 382 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-danger'>; 383 | } 384 | declare module 'eslint-plugin-react/lib/rules/no-deprecated.js' { 385 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-deprecated'>; 386 | } 387 | declare module 'eslint-plugin-react/lib/rules/no-did-mount-set-state.js' { 388 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-did-mount-set-state'>; 389 | } 390 | declare module 'eslint-plugin-react/lib/rules/no-did-update-set-state.js' { 391 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-did-update-set-state'>; 392 | } 393 | declare module 'eslint-plugin-react/lib/rules/no-direct-mutation-state.js' { 394 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-direct-mutation-state'>; 395 | } 396 | declare module 'eslint-plugin-react/lib/rules/no-find-dom-node.js' { 397 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-find-dom-node'>; 398 | } 399 | declare module 'eslint-plugin-react/lib/rules/no-is-mounted.js' { 400 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-is-mounted'>; 401 | } 402 | declare module 'eslint-plugin-react/lib/rules/no-multi-comp.js' { 403 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-multi-comp'>; 404 | } 405 | declare module 'eslint-plugin-react/lib/rules/no-render-return-value.js' { 406 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-render-return-value'>; 407 | } 408 | declare module 'eslint-plugin-react/lib/rules/no-set-state.js' { 409 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-set-state'>; 410 | } 411 | declare module 'eslint-plugin-react/lib/rules/no-string-refs.js' { 412 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-string-refs'>; 413 | } 414 | declare module 'eslint-plugin-react/lib/rules/no-unescaped-entities.js' { 415 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-unescaped-entities'>; 416 | } 417 | declare module 'eslint-plugin-react/lib/rules/no-unknown-property.js' { 418 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-unknown-property'>; 419 | } 420 | declare module 'eslint-plugin-react/lib/rules/no-unused-prop-types.js' { 421 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-unused-prop-types'>; 422 | } 423 | declare module 'eslint-plugin-react/lib/rules/prefer-es6-class.js' { 424 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/prefer-es6-class'>; 425 | } 426 | declare module 'eslint-plugin-react/lib/rules/prefer-stateless-function.js' { 427 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/prefer-stateless-function'>; 428 | } 429 | declare module 'eslint-plugin-react/lib/rules/prop-types.js' { 430 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/prop-types'>; 431 | } 432 | declare module 'eslint-plugin-react/lib/rules/react-in-jsx-scope.js' { 433 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/react-in-jsx-scope'>; 434 | } 435 | declare module 'eslint-plugin-react/lib/rules/require-default-props.js' { 436 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/require-default-props'>; 437 | } 438 | declare module 'eslint-plugin-react/lib/rules/require-extension.js' { 439 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/require-extension'>; 440 | } 441 | declare module 'eslint-plugin-react/lib/rules/require-optimization.js' { 442 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/require-optimization'>; 443 | } 444 | declare module 'eslint-plugin-react/lib/rules/require-render-return.js' { 445 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/require-render-return'>; 446 | } 447 | declare module 'eslint-plugin-react/lib/rules/self-closing-comp.js' { 448 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/self-closing-comp'>; 449 | } 450 | declare module 'eslint-plugin-react/lib/rules/sort-comp.js' { 451 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/sort-comp'>; 452 | } 453 | declare module 'eslint-plugin-react/lib/rules/sort-prop-types.js' { 454 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/sort-prop-types'>; 455 | } 456 | declare module 'eslint-plugin-react/lib/rules/style-prop-object.js' { 457 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/style-prop-object'>; 458 | } 459 | declare module 'eslint-plugin-react/lib/rules/wrap-multilines.js' { 460 | declare module.exports: $Exports<'eslint-plugin-react/lib/rules/wrap-multilines'>; 461 | } 462 | declare module 'eslint-plugin-react/lib/util/annotations.js' { 463 | declare module.exports: $Exports<'eslint-plugin-react/lib/util/annotations'>; 464 | } 465 | declare module 'eslint-plugin-react/lib/util/Components.js' { 466 | declare module.exports: $Exports<'eslint-plugin-react/lib/util/Components'>; 467 | } 468 | declare module 'eslint-plugin-react/lib/util/getTokenBeforeClosingBracket.js' { 469 | declare module.exports: $Exports<'eslint-plugin-react/lib/util/getTokenBeforeClosingBracket'>; 470 | } 471 | declare module 'eslint-plugin-react/lib/util/pragma.js' { 472 | declare module.exports: $Exports<'eslint-plugin-react/lib/util/pragma'>; 473 | } 474 | declare module 'eslint-plugin-react/lib/util/variable.js' { 475 | declare module.exports: $Exports<'eslint-plugin-react/lib/util/variable'>; 476 | } 477 | declare module 'eslint-plugin-react/lib/util/version.js' { 478 | declare module.exports: $Exports<'eslint-plugin-react/lib/util/version'>; 479 | } 480 | -------------------------------------------------------------------------------- /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: 41e211c1b1d03d334affc1eabc95e79b 2 | // flow-typed version: <>/flow-typed_v^2.0.0/flow_v0.41.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/codeSign' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'flow-typed/dist/lib/fileUtils' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'flow-typed/dist/lib/flowProjectUtils' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'flow-typed/dist/lib/git' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'flow-typed/dist/lib/github' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'flow-typed/dist/lib/libDefs' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'flow-typed/dist/lib/node' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module 'flow-typed/dist/lib/npmProjectUtils' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module 'flow-typed/dist/lib/semver' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module 'flow-typed/dist/lib/stubUtils' { 98 | declare module.exports: any; 99 | } 100 | 101 | // Filename aliases 102 | declare module 'flow-typed/dist/cli.js' { 103 | declare module.exports: $Exports<'flow-typed/dist/cli'>; 104 | } 105 | declare module 'flow-typed/dist/commands/create-stub.js' { 106 | declare module.exports: $Exports<'flow-typed/dist/commands/create-stub'>; 107 | } 108 | declare module 'flow-typed/dist/commands/install.js' { 109 | declare module.exports: $Exports<'flow-typed/dist/commands/install'>; 110 | } 111 | declare module 'flow-typed/dist/commands/runTests.js' { 112 | declare module.exports: $Exports<'flow-typed/dist/commands/runTests'>; 113 | } 114 | declare module 'flow-typed/dist/commands/search.js' { 115 | declare module.exports: $Exports<'flow-typed/dist/commands/search'>; 116 | } 117 | declare module 'flow-typed/dist/commands/update-cache.js' { 118 | declare module.exports: $Exports<'flow-typed/dist/commands/update-cache'>; 119 | } 120 | declare module 'flow-typed/dist/commands/update.js' { 121 | declare module.exports: $Exports<'flow-typed/dist/commands/update'>; 122 | } 123 | declare module 'flow-typed/dist/commands/validateDefs.js' { 124 | declare module.exports: $Exports<'flow-typed/dist/commands/validateDefs'>; 125 | } 126 | declare module 'flow-typed/dist/commands/version.js' { 127 | declare module.exports: $Exports<'flow-typed/dist/commands/version'>; 128 | } 129 | declare module 'flow-typed/dist/lib/codeSign.js' { 130 | declare module.exports: $Exports<'flow-typed/dist/lib/codeSign'>; 131 | } 132 | declare module 'flow-typed/dist/lib/fileUtils.js' { 133 | declare module.exports: $Exports<'flow-typed/dist/lib/fileUtils'>; 134 | } 135 | declare module 'flow-typed/dist/lib/flowProjectUtils.js' { 136 | declare module.exports: $Exports<'flow-typed/dist/lib/flowProjectUtils'>; 137 | } 138 | declare module 'flow-typed/dist/lib/git.js' { 139 | declare module.exports: $Exports<'flow-typed/dist/lib/git'>; 140 | } 141 | declare module 'flow-typed/dist/lib/github.js' { 142 | declare module.exports: $Exports<'flow-typed/dist/lib/github'>; 143 | } 144 | declare module 'flow-typed/dist/lib/libDefs.js' { 145 | declare module.exports: $Exports<'flow-typed/dist/lib/libDefs'>; 146 | } 147 | declare module 'flow-typed/dist/lib/node.js' { 148 | declare module.exports: $Exports<'flow-typed/dist/lib/node'>; 149 | } 150 | declare module 'flow-typed/dist/lib/npmProjectUtils.js' { 151 | declare module.exports: $Exports<'flow-typed/dist/lib/npmProjectUtils'>; 152 | } 153 | declare module 'flow-typed/dist/lib/semver.js' { 154 | declare module.exports: $Exports<'flow-typed/dist/lib/semver'>; 155 | } 156 | declare module 'flow-typed/dist/lib/stubUtils.js' { 157 | declare module.exports: $Exports<'flow-typed/dist/lib/stubUtils'>; 158 | } 159 | -------------------------------------------------------------------------------- /flow-typed/npm/html-webpack-plugin_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: eacd3c6e4b0dfcbba2ecf9002206916f 2 | // flow-typed version: <>/html-webpack-plugin_v^2.28.0/flow_v0.41.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'html-webpack-plugin' 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 'html-webpack-plugin' { 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 'html-webpack-plugin/lib/chunksorter' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'html-webpack-plugin/lib/compiler' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'html-webpack-plugin/lib/errors' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'html-webpack-plugin/lib/loader' { 38 | declare module.exports: any; 39 | } 40 | 41 | // Filename aliases 42 | declare module 'html-webpack-plugin/index' { 43 | declare module.exports: $Exports<'html-webpack-plugin'>; 44 | } 45 | declare module 'html-webpack-plugin/index.js' { 46 | declare module.exports: $Exports<'html-webpack-plugin'>; 47 | } 48 | declare module 'html-webpack-plugin/lib/chunksorter.js' { 49 | declare module.exports: $Exports<'html-webpack-plugin/lib/chunksorter'>; 50 | } 51 | declare module 'html-webpack-plugin/lib/compiler.js' { 52 | declare module.exports: $Exports<'html-webpack-plugin/lib/compiler'>; 53 | } 54 | declare module 'html-webpack-plugin/lib/errors.js' { 55 | declare module.exports: $Exports<'html-webpack-plugin/lib/errors'>; 56 | } 57 | declare module 'html-webpack-plugin/lib/loader.js' { 58 | declare module.exports: $Exports<'html-webpack-plugin/lib/loader'>; 59 | } 60 | -------------------------------------------------------------------------------- /flow-typed/npm/jsdom-global_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 4b98bd64d8e7e13759e44e1d337ab94e 2 | // flow-typed version: <>/jsdom-global_v^2.0.0/flow_v0.41.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'jsdom-global' 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 'jsdom-global' { 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 'jsdom-global/browser' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'jsdom-global/keys' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'jsdom-global/register' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'jsdom-global/test' { 38 | declare module.exports: any; 39 | } 40 | 41 | // Filename aliases 42 | declare module 'jsdom-global/browser.js' { 43 | declare module.exports: $Exports<'jsdom-global/browser'>; 44 | } 45 | declare module 'jsdom-global/index' { 46 | declare module.exports: $Exports<'jsdom-global'>; 47 | } 48 | declare module 'jsdom-global/index.js' { 49 | declare module.exports: $Exports<'jsdom-global'>; 50 | } 51 | declare module 'jsdom-global/keys.js' { 52 | declare module.exports: $Exports<'jsdom-global/keys'>; 53 | } 54 | declare module 'jsdom-global/register.js' { 55 | declare module.exports: $Exports<'jsdom-global/register'>; 56 | } 57 | declare module 'jsdom-global/test.js' { 58 | declare module.exports: $Exports<'jsdom-global/test'>; 59 | } 60 | -------------------------------------------------------------------------------- /flow-typed/npm/mocha_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 8f27c921f383d41487ae8b1389bb54fa 2 | // flow-typed version: <>/mocha_v^3.0.2/flow_v0.41.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'mocha' 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 'mocha' { 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 'mocha/bin/options' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'mocha/browser-entry' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'mocha/lib/browser/debug' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'mocha/lib/browser/events' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'mocha/lib/browser/progress' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'mocha/lib/browser/tty' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'mocha/lib/context' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'mocha/lib/hook' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'mocha/lib/interfaces/bdd' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'mocha/lib/interfaces/common' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'mocha/lib/interfaces/exports' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'mocha/lib/interfaces/index' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'mocha/lib/interfaces/qunit' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'mocha/lib/interfaces/tdd' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'mocha/lib/mocha' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'mocha/lib/ms' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module 'mocha/lib/pending' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module 'mocha/lib/reporters/base' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module 'mocha/lib/reporters/doc' { 98 | declare module.exports: any; 99 | } 100 | 101 | declare module 'mocha/lib/reporters/dot' { 102 | declare module.exports: any; 103 | } 104 | 105 | declare module 'mocha/lib/reporters/html' { 106 | declare module.exports: any; 107 | } 108 | 109 | declare module 'mocha/lib/reporters/index' { 110 | declare module.exports: any; 111 | } 112 | 113 | declare module 'mocha/lib/reporters/json-stream' { 114 | declare module.exports: any; 115 | } 116 | 117 | declare module 'mocha/lib/reporters/json' { 118 | declare module.exports: any; 119 | } 120 | 121 | declare module 'mocha/lib/reporters/landing' { 122 | declare module.exports: any; 123 | } 124 | 125 | declare module 'mocha/lib/reporters/list' { 126 | declare module.exports: any; 127 | } 128 | 129 | declare module 'mocha/lib/reporters/markdown' { 130 | declare module.exports: any; 131 | } 132 | 133 | declare module 'mocha/lib/reporters/min' { 134 | declare module.exports: any; 135 | } 136 | 137 | declare module 'mocha/lib/reporters/nyan' { 138 | declare module.exports: any; 139 | } 140 | 141 | declare module 'mocha/lib/reporters/progress' { 142 | declare module.exports: any; 143 | } 144 | 145 | declare module 'mocha/lib/reporters/spec' { 146 | declare module.exports: any; 147 | } 148 | 149 | declare module 'mocha/lib/reporters/tap' { 150 | declare module.exports: any; 151 | } 152 | 153 | declare module 'mocha/lib/reporters/xunit' { 154 | declare module.exports: any; 155 | } 156 | 157 | declare module 'mocha/lib/runnable' { 158 | declare module.exports: any; 159 | } 160 | 161 | declare module 'mocha/lib/runner' { 162 | declare module.exports: any; 163 | } 164 | 165 | declare module 'mocha/lib/suite' { 166 | declare module.exports: any; 167 | } 168 | 169 | declare module 'mocha/lib/test' { 170 | declare module.exports: any; 171 | } 172 | 173 | declare module 'mocha/lib/to-iso-string/index' { 174 | declare module.exports: any; 175 | } 176 | 177 | declare module 'mocha/lib/utils' { 178 | declare module.exports: any; 179 | } 180 | 181 | declare module 'mocha/mocha' { 182 | declare module.exports: any; 183 | } 184 | 185 | // Filename aliases 186 | declare module 'mocha/bin/options.js' { 187 | declare module.exports: $Exports<'mocha/bin/options'>; 188 | } 189 | declare module 'mocha/browser-entry.js' { 190 | declare module.exports: $Exports<'mocha/browser-entry'>; 191 | } 192 | declare module 'mocha/index' { 193 | declare module.exports: $Exports<'mocha'>; 194 | } 195 | declare module 'mocha/index.js' { 196 | declare module.exports: $Exports<'mocha'>; 197 | } 198 | declare module 'mocha/lib/browser/debug.js' { 199 | declare module.exports: $Exports<'mocha/lib/browser/debug'>; 200 | } 201 | declare module 'mocha/lib/browser/events.js' { 202 | declare module.exports: $Exports<'mocha/lib/browser/events'>; 203 | } 204 | declare module 'mocha/lib/browser/progress.js' { 205 | declare module.exports: $Exports<'mocha/lib/browser/progress'>; 206 | } 207 | declare module 'mocha/lib/browser/tty.js' { 208 | declare module.exports: $Exports<'mocha/lib/browser/tty'>; 209 | } 210 | declare module 'mocha/lib/context.js' { 211 | declare module.exports: $Exports<'mocha/lib/context'>; 212 | } 213 | declare module 'mocha/lib/hook.js' { 214 | declare module.exports: $Exports<'mocha/lib/hook'>; 215 | } 216 | declare module 'mocha/lib/interfaces/bdd.js' { 217 | declare module.exports: $Exports<'mocha/lib/interfaces/bdd'>; 218 | } 219 | declare module 'mocha/lib/interfaces/common.js' { 220 | declare module.exports: $Exports<'mocha/lib/interfaces/common'>; 221 | } 222 | declare module 'mocha/lib/interfaces/exports.js' { 223 | declare module.exports: $Exports<'mocha/lib/interfaces/exports'>; 224 | } 225 | declare module 'mocha/lib/interfaces/index.js' { 226 | declare module.exports: $Exports<'mocha/lib/interfaces/index'>; 227 | } 228 | declare module 'mocha/lib/interfaces/qunit.js' { 229 | declare module.exports: $Exports<'mocha/lib/interfaces/qunit'>; 230 | } 231 | declare module 'mocha/lib/interfaces/tdd.js' { 232 | declare module.exports: $Exports<'mocha/lib/interfaces/tdd'>; 233 | } 234 | declare module 'mocha/lib/mocha.js' { 235 | declare module.exports: $Exports<'mocha/lib/mocha'>; 236 | } 237 | declare module 'mocha/lib/ms.js' { 238 | declare module.exports: $Exports<'mocha/lib/ms'>; 239 | } 240 | declare module 'mocha/lib/pending.js' { 241 | declare module.exports: $Exports<'mocha/lib/pending'>; 242 | } 243 | declare module 'mocha/lib/reporters/base.js' { 244 | declare module.exports: $Exports<'mocha/lib/reporters/base'>; 245 | } 246 | declare module 'mocha/lib/reporters/doc.js' { 247 | declare module.exports: $Exports<'mocha/lib/reporters/doc'>; 248 | } 249 | declare module 'mocha/lib/reporters/dot.js' { 250 | declare module.exports: $Exports<'mocha/lib/reporters/dot'>; 251 | } 252 | declare module 'mocha/lib/reporters/html.js' { 253 | declare module.exports: $Exports<'mocha/lib/reporters/html'>; 254 | } 255 | declare module 'mocha/lib/reporters/index.js' { 256 | declare module.exports: $Exports<'mocha/lib/reporters/index'>; 257 | } 258 | declare module 'mocha/lib/reporters/json-stream.js' { 259 | declare module.exports: $Exports<'mocha/lib/reporters/json-stream'>; 260 | } 261 | declare module 'mocha/lib/reporters/json.js' { 262 | declare module.exports: $Exports<'mocha/lib/reporters/json'>; 263 | } 264 | declare module 'mocha/lib/reporters/landing.js' { 265 | declare module.exports: $Exports<'mocha/lib/reporters/landing'>; 266 | } 267 | declare module 'mocha/lib/reporters/list.js' { 268 | declare module.exports: $Exports<'mocha/lib/reporters/list'>; 269 | } 270 | declare module 'mocha/lib/reporters/markdown.js' { 271 | declare module.exports: $Exports<'mocha/lib/reporters/markdown'>; 272 | } 273 | declare module 'mocha/lib/reporters/min.js' { 274 | declare module.exports: $Exports<'mocha/lib/reporters/min'>; 275 | } 276 | declare module 'mocha/lib/reporters/nyan.js' { 277 | declare module.exports: $Exports<'mocha/lib/reporters/nyan'>; 278 | } 279 | declare module 'mocha/lib/reporters/progress.js' { 280 | declare module.exports: $Exports<'mocha/lib/reporters/progress'>; 281 | } 282 | declare module 'mocha/lib/reporters/spec.js' { 283 | declare module.exports: $Exports<'mocha/lib/reporters/spec'>; 284 | } 285 | declare module 'mocha/lib/reporters/tap.js' { 286 | declare module.exports: $Exports<'mocha/lib/reporters/tap'>; 287 | } 288 | declare module 'mocha/lib/reporters/xunit.js' { 289 | declare module.exports: $Exports<'mocha/lib/reporters/xunit'>; 290 | } 291 | declare module 'mocha/lib/runnable.js' { 292 | declare module.exports: $Exports<'mocha/lib/runnable'>; 293 | } 294 | declare module 'mocha/lib/runner.js' { 295 | declare module.exports: $Exports<'mocha/lib/runner'>; 296 | } 297 | declare module 'mocha/lib/suite.js' { 298 | declare module.exports: $Exports<'mocha/lib/suite'>; 299 | } 300 | declare module 'mocha/lib/test.js' { 301 | declare module.exports: $Exports<'mocha/lib/test'>; 302 | } 303 | declare module 'mocha/lib/to-iso-string/index.js' { 304 | declare module.exports: $Exports<'mocha/lib/to-iso-string/index'>; 305 | } 306 | declare module 'mocha/lib/utils.js' { 307 | declare module.exports: $Exports<'mocha/lib/utils'>; 308 | } 309 | declare module 'mocha/mocha.js' { 310 | declare module.exports: $Exports<'mocha/mocha'>; 311 | } 312 | -------------------------------------------------------------------------------- /flow-typed/npm/react-addons-test-utils_v15.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 323fcc1a3353d5f7a36c5f1edcd963ef 2 | // flow-typed version: 41f45a7d8c/react-addons-test-utils_v15.x.x/flow_>=v0.23.x 3 | 4 | declare type ReactAddonTest$FunctionOrComponentClass = React$Component | Function; 5 | declare module 'react-addons-test-utils' { 6 | declare var Simulate: { 7 | [eventName: string]: (element: Element, eventData?: Object) => void; 8 | }; 9 | declare function renderIntoDocument(instance: React$Element): React$Component; 10 | declare function mockComponent(componentClass: ReactAddonTest$FunctionOrComponentClass, mockTagName?: string): Object; 11 | declare function isElement(element: React$Element): boolean; 12 | declare function isElementOfType(element: React$Element, componentClass: ReactAddonTest$FunctionOrComponentClass): boolean; 13 | declare function isDOMComponent(instance: React$Component): boolean; 14 | declare function isCompositeComponent(instance: React$Component): boolean; 15 | declare function isCompositeComponentWithType(instance: React$Component, componentClass: ReactAddonTest$FunctionOrComponentClass): boolean; 16 | declare function findAllInRenderedTree(tree: React$Component, test: (child: React$Component) => boolean): Array>; 17 | declare function scryRenderedDOMComponentsWithClass(tree: React$Component, className: string): Array; 18 | declare function findRenderedDOMComponentWithClass(tree: React$Component, className: string): ?Element; 19 | declare function scryRenderedDOMComponentsWithTag(tree: React$Component, tagName: string): Array; 20 | declare function findRenderedDOMComponentWithTag(tree: React$Component, tagName: string): ?Element; 21 | declare function scryRenderedComponentsWithType(tree: React$Component, componentClass: ReactAddonTest$FunctionOrComponentClass): Array>; 22 | declare function findRenderedComponentWithType(tree: React$Component, componentClass: ReactAddonTest$FunctionOrComponentClass): ?React$Component; 23 | declare class ReactShallowRender { 24 | render(element: React$Element): void; 25 | getRenderOutput(): React$Element; 26 | } 27 | declare function createRenderer(): ReactShallowRender; 28 | } 29 | -------------------------------------------------------------------------------- /flow-typed/npm/sinon_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 2cf41b63da25a8293cb118b7a0d73619 2 | // flow-typed version: <>/sinon_v^1.17.5/flow_v0.41.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'sinon' 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 'sinon' { 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 'sinon/lib/sinon' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'sinon/lib/sinon/assert' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'sinon/lib/sinon/behavior' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'sinon/lib/sinon/call' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'sinon/lib/sinon/collection' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'sinon/lib/sinon/extend' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'sinon/lib/sinon/format' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'sinon/lib/sinon/log_error' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'sinon/lib/sinon/match' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'sinon/lib/sinon/mock' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'sinon/lib/sinon/sandbox' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'sinon/lib/sinon/spy' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'sinon/lib/sinon/stub' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'sinon/lib/sinon/test_case' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'sinon/lib/sinon/test' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'sinon/lib/sinon/times_in_words' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module 'sinon/lib/sinon/typeOf' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module 'sinon/lib/sinon/util/core' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module 'sinon/lib/sinon/util/event' { 98 | declare module.exports: any; 99 | } 100 | 101 | declare module 'sinon/lib/sinon/util/fake_server_with_clock' { 102 | declare module.exports: any; 103 | } 104 | 105 | declare module 'sinon/lib/sinon/util/fake_server' { 106 | declare module.exports: any; 107 | } 108 | 109 | declare module 'sinon/lib/sinon/util/fake_timers' { 110 | declare module.exports: any; 111 | } 112 | 113 | declare module 'sinon/lib/sinon/util/fake_xdomain_request' { 114 | declare module.exports: any; 115 | } 116 | 117 | declare module 'sinon/lib/sinon/util/fake_xml_http_request' { 118 | declare module.exports: any; 119 | } 120 | 121 | declare module 'sinon/lib/sinon/util/timers_ie' { 122 | declare module.exports: any; 123 | } 124 | 125 | declare module 'sinon/lib/sinon/util/xdr_ie' { 126 | declare module.exports: any; 127 | } 128 | 129 | declare module 'sinon/lib/sinon/util/xhr_ie' { 130 | declare module.exports: any; 131 | } 132 | 133 | declare module 'sinon/lib/sinon/walk' { 134 | declare module.exports: any; 135 | } 136 | 137 | declare module 'sinon/pkg/sinon-1.17.7' { 138 | declare module.exports: any; 139 | } 140 | 141 | declare module 'sinon/pkg/sinon-ie-1.17.7' { 142 | declare module.exports: any; 143 | } 144 | 145 | declare module 'sinon/pkg/sinon-ie' { 146 | declare module.exports: any; 147 | } 148 | 149 | declare module 'sinon/pkg/sinon-server-1.17.7' { 150 | declare module.exports: any; 151 | } 152 | 153 | declare module 'sinon/pkg/sinon-server' { 154 | declare module.exports: any; 155 | } 156 | 157 | declare module 'sinon/pkg/sinon' { 158 | declare module.exports: any; 159 | } 160 | 161 | // Filename aliases 162 | declare module 'sinon/lib/sinon.js' { 163 | declare module.exports: $Exports<'sinon/lib/sinon'>; 164 | } 165 | declare module 'sinon/lib/sinon/assert.js' { 166 | declare module.exports: $Exports<'sinon/lib/sinon/assert'>; 167 | } 168 | declare module 'sinon/lib/sinon/behavior.js' { 169 | declare module.exports: $Exports<'sinon/lib/sinon/behavior'>; 170 | } 171 | declare module 'sinon/lib/sinon/call.js' { 172 | declare module.exports: $Exports<'sinon/lib/sinon/call'>; 173 | } 174 | declare module 'sinon/lib/sinon/collection.js' { 175 | declare module.exports: $Exports<'sinon/lib/sinon/collection'>; 176 | } 177 | declare module 'sinon/lib/sinon/extend.js' { 178 | declare module.exports: $Exports<'sinon/lib/sinon/extend'>; 179 | } 180 | declare module 'sinon/lib/sinon/format.js' { 181 | declare module.exports: $Exports<'sinon/lib/sinon/format'>; 182 | } 183 | declare module 'sinon/lib/sinon/log_error.js' { 184 | declare module.exports: $Exports<'sinon/lib/sinon/log_error'>; 185 | } 186 | declare module 'sinon/lib/sinon/match.js' { 187 | declare module.exports: $Exports<'sinon/lib/sinon/match'>; 188 | } 189 | declare module 'sinon/lib/sinon/mock.js' { 190 | declare module.exports: $Exports<'sinon/lib/sinon/mock'>; 191 | } 192 | declare module 'sinon/lib/sinon/sandbox.js' { 193 | declare module.exports: $Exports<'sinon/lib/sinon/sandbox'>; 194 | } 195 | declare module 'sinon/lib/sinon/spy.js' { 196 | declare module.exports: $Exports<'sinon/lib/sinon/spy'>; 197 | } 198 | declare module 'sinon/lib/sinon/stub.js' { 199 | declare module.exports: $Exports<'sinon/lib/sinon/stub'>; 200 | } 201 | declare module 'sinon/lib/sinon/test_case.js' { 202 | declare module.exports: $Exports<'sinon/lib/sinon/test_case'>; 203 | } 204 | declare module 'sinon/lib/sinon/test.js' { 205 | declare module.exports: $Exports<'sinon/lib/sinon/test'>; 206 | } 207 | declare module 'sinon/lib/sinon/times_in_words.js' { 208 | declare module.exports: $Exports<'sinon/lib/sinon/times_in_words'>; 209 | } 210 | declare module 'sinon/lib/sinon/typeOf.js' { 211 | declare module.exports: $Exports<'sinon/lib/sinon/typeOf'>; 212 | } 213 | declare module 'sinon/lib/sinon/util/core.js' { 214 | declare module.exports: $Exports<'sinon/lib/sinon/util/core'>; 215 | } 216 | declare module 'sinon/lib/sinon/util/event.js' { 217 | declare module.exports: $Exports<'sinon/lib/sinon/util/event'>; 218 | } 219 | declare module 'sinon/lib/sinon/util/fake_server_with_clock.js' { 220 | declare module.exports: $Exports<'sinon/lib/sinon/util/fake_server_with_clock'>; 221 | } 222 | declare module 'sinon/lib/sinon/util/fake_server.js' { 223 | declare module.exports: $Exports<'sinon/lib/sinon/util/fake_server'>; 224 | } 225 | declare module 'sinon/lib/sinon/util/fake_timers.js' { 226 | declare module.exports: $Exports<'sinon/lib/sinon/util/fake_timers'>; 227 | } 228 | declare module 'sinon/lib/sinon/util/fake_xdomain_request.js' { 229 | declare module.exports: $Exports<'sinon/lib/sinon/util/fake_xdomain_request'>; 230 | } 231 | declare module 'sinon/lib/sinon/util/fake_xml_http_request.js' { 232 | declare module.exports: $Exports<'sinon/lib/sinon/util/fake_xml_http_request'>; 233 | } 234 | declare module 'sinon/lib/sinon/util/timers_ie.js' { 235 | declare module.exports: $Exports<'sinon/lib/sinon/util/timers_ie'>; 236 | } 237 | declare module 'sinon/lib/sinon/util/xdr_ie.js' { 238 | declare module.exports: $Exports<'sinon/lib/sinon/util/xdr_ie'>; 239 | } 240 | declare module 'sinon/lib/sinon/util/xhr_ie.js' { 241 | declare module.exports: $Exports<'sinon/lib/sinon/util/xhr_ie'>; 242 | } 243 | declare module 'sinon/lib/sinon/walk.js' { 244 | declare module.exports: $Exports<'sinon/lib/sinon/walk'>; 245 | } 246 | declare module 'sinon/pkg/sinon-1.17.7.js' { 247 | declare module.exports: $Exports<'sinon/pkg/sinon-1.17.7'>; 248 | } 249 | declare module 'sinon/pkg/sinon-ie-1.17.7.js' { 250 | declare module.exports: $Exports<'sinon/pkg/sinon-ie-1.17.7'>; 251 | } 252 | declare module 'sinon/pkg/sinon-ie.js' { 253 | declare module.exports: $Exports<'sinon/pkg/sinon-ie'>; 254 | } 255 | declare module 'sinon/pkg/sinon-server-1.17.7.js' { 256 | declare module.exports: $Exports<'sinon/pkg/sinon-server-1.17.7'>; 257 | } 258 | declare module 'sinon/pkg/sinon-server.js' { 259 | declare module.exports: $Exports<'sinon/pkg/sinon-server'>; 260 | } 261 | declare module 'sinon/pkg/sinon.js' { 262 | declare module.exports: $Exports<'sinon/pkg/sinon'>; 263 | } 264 | -------------------------------------------------------------------------------- /flow-typed/npm/webpack-dev-server_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 5ed4694061c6f9a4863eab09b7edfd96 2 | // flow-typed version: <>/webpack-dev-server_v^2.3.0/flow_v0.41.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'webpack-dev-server' 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 'webpack-dev-server' { 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 'webpack-dev-server/bin/webpack-dev-server' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'webpack-dev-server/client/index.bundle' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'webpack-dev-server/client/index' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'webpack-dev-server/client/live.bundle' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'webpack-dev-server/client/live' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'webpack-dev-server/client/overlay' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'webpack-dev-server/client/socket' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'webpack-dev-server/client/sockjs.bundle' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'webpack-dev-server/client/sockjs' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'webpack-dev-server/client/web_modules/jquery/index' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'webpack-dev-server/client/web_modules/jquery/jquery-1.8.1' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'webpack-dev-server/client/webpack.config' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'webpack-dev-server/client/webpack.sockjs.config' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'webpack-dev-server/lib/OptionsValidationError' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'webpack-dev-server/lib/Server' { 82 | declare module.exports: any; 83 | } 84 | 85 | // Filename aliases 86 | declare module 'webpack-dev-server/bin/webpack-dev-server.js' { 87 | declare module.exports: $Exports<'webpack-dev-server/bin/webpack-dev-server'>; 88 | } 89 | declare module 'webpack-dev-server/client/index.bundle.js' { 90 | declare module.exports: $Exports<'webpack-dev-server/client/index.bundle'>; 91 | } 92 | declare module 'webpack-dev-server/client/index.js' { 93 | declare module.exports: $Exports<'webpack-dev-server/client/index'>; 94 | } 95 | declare module 'webpack-dev-server/client/live.bundle.js' { 96 | declare module.exports: $Exports<'webpack-dev-server/client/live.bundle'>; 97 | } 98 | declare module 'webpack-dev-server/client/live.js' { 99 | declare module.exports: $Exports<'webpack-dev-server/client/live'>; 100 | } 101 | declare module 'webpack-dev-server/client/overlay.js' { 102 | declare module.exports: $Exports<'webpack-dev-server/client/overlay'>; 103 | } 104 | declare module 'webpack-dev-server/client/socket.js' { 105 | declare module.exports: $Exports<'webpack-dev-server/client/socket'>; 106 | } 107 | declare module 'webpack-dev-server/client/sockjs.bundle.js' { 108 | declare module.exports: $Exports<'webpack-dev-server/client/sockjs.bundle'>; 109 | } 110 | declare module 'webpack-dev-server/client/sockjs.js' { 111 | declare module.exports: $Exports<'webpack-dev-server/client/sockjs'>; 112 | } 113 | declare module 'webpack-dev-server/client/web_modules/jquery/index.js' { 114 | declare module.exports: $Exports<'webpack-dev-server/client/web_modules/jquery/index'>; 115 | } 116 | declare module 'webpack-dev-server/client/web_modules/jquery/jquery-1.8.1.js' { 117 | declare module.exports: $Exports<'webpack-dev-server/client/web_modules/jquery/jquery-1.8.1'>; 118 | } 119 | declare module 'webpack-dev-server/client/webpack.config.js' { 120 | declare module.exports: $Exports<'webpack-dev-server/client/webpack.config'>; 121 | } 122 | declare module 'webpack-dev-server/client/webpack.sockjs.config.js' { 123 | declare module.exports: $Exports<'webpack-dev-server/client/webpack.sockjs.config'>; 124 | } 125 | declare module 'webpack-dev-server/lib/OptionsValidationError.js' { 126 | declare module.exports: $Exports<'webpack-dev-server/lib/OptionsValidationError'>; 127 | } 128 | declare module 'webpack-dev-server/lib/Server.js' { 129 | declare module.exports: $Exports<'webpack-dev-server/lib/Server'>; 130 | } 131 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-pagination-table", 3 | "version": "2.0.2", 4 | "description": "A table component for React with pagination", 5 | "main": "./lib/index.js", 6 | "scripts": { 7 | "test:watch": "cross-env NODE_ENV=test ./node_modules/.bin/mocha -w --opts __test__/.mocharc __test__/", 8 | "test": "cross-env NODE_ENV=test ./node_modules/.bin/mocha --opts __test__/.mocharc __test__/", 9 | "start": "webpack-dev-server --devtool eval --progress --colors", 10 | "build:demo": "cross-env NODE_ENV=production webpack -p --config ./webpack.prov.config.js", 11 | "flow": "./node_modules/.bin/flow", 12 | "flow:update": "./node_modules/.bin/flow-typed update", 13 | "compile": "babel -d lib/ src/", 14 | "lint": "./node_modules/.bin/eslint .", 15 | "validate": "npm run lint && npm run flow && npm test", 16 | "all": "npm run compile && npm run build:demo", 17 | "snyk-protect": "snyk protect", 18 | "precommit": "npm run validate", 19 | "prepublish": "npm run snyk-protect" 20 | }, 21 | "repository": { 22 | "type": "git", 23 | "url": "git+https://github.com/addhome2001/react-pagination-table.git" 24 | }, 25 | "keywords": [ 26 | "react", 27 | "component", 28 | "pagination", 29 | "status", 30 | "table", 31 | "data" 32 | ], 33 | "author": "addhome2001", 34 | "license": "MIT", 35 | "bugs": { 36 | "url": "https://github.com/addhome2001/react-pagination-table.git/issues" 37 | }, 38 | "homepage": "https://github.com/addhome2001/react-pagination-table.git#readme", 39 | "engines": { 40 | "node": ">=6.2.2" 41 | }, 42 | "dependencies": { 43 | "chai": "^3.5.0", 44 | "enzyme": "^3.3.0", 45 | "enzyme-adapter-react-16": "^1.1.1", 46 | "eslint": "^3.14.1", 47 | "eslint-config-airbnb": "^14.0.0", 48 | "eslint-plugin-flowtype": "^2.30.3", 49 | "eslint-plugin-import": "^2.2.0", 50 | "eslint-plugin-jsx-a11y": "^3.0.2", 51 | "eslint-plugin-react": "^6.9.0", 52 | "flow-bin": "^0.41.0", 53 | "flow-typed": "^2.0.0", 54 | "html-webpack-plugin": "^2.28.0", 55 | "jsdom": "^9.4.2", 56 | "jsdom-global": "^2.0.0", 57 | "prop-types": "^15.5.8", 58 | "react": "^16.2.0", 59 | "react-dom": "^16.2.0", 60 | "react-pagination-status": "^2.0.0", 61 | "sinon": "^1.17.5", 62 | "webpack": "^2.2.1", 63 | "snyk": "^1.41.1" 64 | }, 65 | "devDependencies": { 66 | "babel-cli": "^6.11.4", 67 | "babel-core": "^6.13.2", 68 | "babel-eslint": "^7.1.1", 69 | "babel-loader": "^6.2.5", 70 | "babel-plugin-transform-runtime": "^6.12.0", 71 | "babel-preset-es2015": "^6.13.2", 72 | "babel-preset-react": "^6.11.1", 73 | "babel-preset-stage-0": "^6.5.0", 74 | "babel-register": "^6.22.0", 75 | "babel-runtime": "^6.11.6", 76 | "cross-env": "^3.1.4", 77 | "husky": "^0.14.3", 78 | "mocha": "^3.0.2", 79 | "react-test-renderer": "^16.2.0", 80 | "webpack-dev-server": "^2.3.0" 81 | }, 82 | "snyk": true 83 | } 84 | -------------------------------------------------------------------------------- /src/Components/Body.jsx: -------------------------------------------------------------------------------- 1 | /* eslint-disable react/no-array-index-key */ 2 | 3 | /* @flow */ 4 | import React from 'react'; 5 | import PropTypes from 'prop-types'; 6 | import handleArrayOption from '../helpers'; 7 | 8 | import type { BodyProps } from './types'; 9 | 10 | const Body = ({ 11 | columns, 12 | data, 13 | arrayOption, 14 | }: BodyProps) => { 15 | const columnsArr: string[] = columns.split('.'); 16 | let optionHandlers: ?{ 17 | handlers: (Function | boolean)[], 18 | propNames: string[], 19 | }; 20 | 21 | if (columnsArr.length === 0) { 22 | throw new Error('Can\'t reslove columns'); 23 | } 24 | 25 | if (Array.isArray(arrayOption) && arrayOption.length > 0) { 26 | optionHandlers = arrayOption.reduce((prev, opt) => { 27 | prev.handlers.push(handleArrayOption(...opt)); 28 | prev.propNames.push(opt[0]); 29 | return prev; 30 | }, { handlers: [], propNames: [] }); 31 | } 32 | 33 | return data.map((single, i) => 34 |

  • 35 | { 36 | columnsArr.map((col) => { 37 | let arrPropVal; 38 | 39 | if (optionHandlers) { 40 | const { handlers, propNames } = optionHandlers; 41 | const propNameIndex = propNames.indexOf(col); 42 | const handleOptFunc = propNameIndex >= 0 && handlers[propNameIndex]; 43 | arrPropVal = typeof handleOptFunc === 'function' && handleOptFunc(single); 44 | } 45 | 46 | return ( 47 | 52 | ); 53 | }) 54 | } 55 | , 56 | ); 57 | }; 58 | 59 | Body.propTypes = { 60 | arrayOption: PropTypes.arrayOf( 61 | PropTypes.arrayOf(PropTypes.string), 62 | ), 63 | columns: PropTypes.string.isRequired, 64 | data: PropTypes.arrayOf(PropTypes.object).isRequired, 65 | }; 66 | 67 | export default Body; 68 | -------------------------------------------------------------------------------- /src/Components/Header.jsx: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | import React from 'react'; 3 | import PropTypes from 'prop-types'; 4 | 5 | import type { HeaderProps } from './types'; 6 | 7 | const Header = ({ headers = [], className }: HeaderProps) => { 8 | if (Array.isArray(headers) && headers.length > 0) { 9 | return ( 10 | 11 | 12 | { 13 | headers.map(header => 14 | , 15 | ) 16 | } 17 | 18 | 19 | ); 20 | } 21 | return null; 22 | }; 23 | 24 | Header.propTypes = { 25 | headers: PropTypes.arrayOf(PropTypes.string).isRequired, 26 | className: PropTypes.string.isRequired, 27 | }; 28 | 29 | export default Header; 30 | -------------------------------------------------------------------------------- /src/Components/Titles.jsx: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | import React from 'react'; 3 | import PropTypes from 'prop-types'; 4 | 5 | import type { TitlesProps } from './types'; 6 | 7 | const validate = (val: mixed): boolean => 8 | typeof val === 'string' && val.length > 0; 9 | 10 | const Titles = ({ title, subTitle, className }: TitlesProps) => 11 | [ 12 | validate(title) ?

    { title }

    : null, 13 | validate(subTitle) ?

    { subTitle }

    : null, 14 | ]; 15 | 16 | Titles.propTypes = { 17 | title: PropTypes.string, 18 | subTitle: PropTypes.string, 19 | className: PropTypes.string, 20 | }; 21 | 22 | export default Titles; 23 | -------------------------------------------------------------------------------- /src/Components/types.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | /* Body Component */ 4 | export type BodyProps = { 5 | columns: string, 6 | data: Object[], 7 | arrayOption: ?string[], 8 | } 9 | 10 | /* Title Component */ 11 | export type TitlesProps = { 12 | title: ?string, 13 | subTitle: ?string, 14 | className: string, 15 | } 16 | 17 | /* Header Component */ 18 | export type HeaderProps = { 19 | headers: string[], 20 | className: string, 21 | } 22 | -------------------------------------------------------------------------------- /src/Table-Pagination.jsx: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | import React, { Component } from 'react'; 3 | import PropTypes from 'prop-types'; 4 | import Pagination from 'react-pagination-status'; 5 | import Titles from './Components/Titles'; 6 | import Header from './Components/Header'; 7 | import Body from './Components/Body'; 8 | 9 | import type { TablePaginationProps, TablePaginationDefaultProps, TablePaginationState } from './types'; 10 | 11 | export default class TablePagination extends Component 12 | { 13 | 14 | state: TablePaginationState; 15 | 16 | defaultProps: TablePaginationDefaultProps; 17 | 18 | handleChangePage: (status: number) => void 19 | 20 | static propTypes = { 21 | title: PropTypes.string, 22 | subTitle: PropTypes.string, 23 | data: PropTypes.arrayOf(PropTypes.object).isRequired, 24 | columns: PropTypes.string.isRequired, 25 | headers: PropTypes.arrayOf(PropTypes.string).isRequired, 26 | arrayOption: PropTypes.arrayOf( 27 | PropTypes.arrayOf(PropTypes.string), 28 | ), 29 | nextPageText: PropTypes.string, 30 | prePageText: PropTypes.string, 31 | paginationClassName: PropTypes.string, 32 | className: PropTypes.string, 33 | perPageItemCount: PropTypes.number.isRequired, 34 | partialPageCount: PropTypes.number, 35 | totalCount: PropTypes.number.isRequired, 36 | }; 37 | 38 | static defaultProps = { 39 | title: '', 40 | subTitle: '', 41 | arrayOption: [''], 42 | perPageItemCount: 0, 43 | partialPageCount: 5, 44 | totalCount: 0, 45 | className: 'react-pagination-table', 46 | nextPageText: 'Next', 47 | prePageText: 'Prev', 48 | paginationClassName: 'pagination-status', 49 | }; 50 | 51 | constructor(props: TablePaginationProps) { 52 | super(props); 53 | this.state = { 54 | activePage: 0, 55 | pageCount: Math.ceil(props.totalCount / props.perPageItemCount), 56 | }; 57 | this.handleChangePage = this.handleChangePage.bind(this); 58 | } 59 | 60 | handleChangePage(status: number): void { 61 | this.setState({ 62 | activePage: status, 63 | }); 64 | } 65 | 66 | renderPartialTable(defaultTable: Array>) { 67 | const { perPageItemCount } = this.props; 68 | const { activePage, pageCount } = this.state; 69 | let start; 70 | if (pageCount > activePage) { 71 | start = perPageItemCount * activePage; 72 | } else { 73 | start = perPageItemCount * 0; 74 | } 75 | return defaultTable.slice(start, start + perPageItemCount); 76 | } 77 | 78 | renderTable(isPaginationTable: boolean): Array> { 79 | const { arrayOption = [], columns, data } = this.props; 80 | const defaultTable = Body({ arrayOption, columns, data }); 81 | return isPaginationTable 82 | ? this.renderPartialTable(defaultTable) 83 | : defaultTable; 84 | } 85 | 86 | render() { 87 | const { headers, 88 | perPageItemCount, 89 | partialPageCount, 90 | totalCount, 91 | className, 92 | paginationClassName, 93 | title, 94 | subTitle, 95 | nextPageText, 96 | prePageText } = this.props; 97 | const { pageCount } = this.state; 98 | const isPaginationTable: boolean = pageCount > 1; 99 | const Table: Array> = this.renderTable(isPaginationTable); 100 | 101 | return ( 102 |
    103 | { Titles({ title, subTitle, className }) } 104 |
    48 | { 49 | arrPropVal || single[col] 50 | } 51 |
    { header }
    105 |
    106 |
    107 | { Table } 108 | 109 |
    110 |
    111 | { 112 | isPaginationTable && 113 | 123 | } 124 |
    125 | 126 | ); 127 | } 128 | } 129 | -------------------------------------------------------------------------------- /src/Table.jsx: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | import React, { Component } from 'react'; 3 | import PropTypes from 'prop-types'; 4 | import Titles from './Components/Titles'; 5 | import Header from './Components/Header'; 6 | import Body from './Components/Body'; 7 | 8 | import type { TableProps, TableDefaultProps } from './types'; 9 | 10 | export default class TableSimple extends Component 11 | { 12 | 13 | props: TableProps; 14 | 15 | static propTypes = { 16 | title: PropTypes.string, 17 | subTitle: PropTypes.string, 18 | data: PropTypes.arrayOf(PropTypes.object).isRequired, 19 | columns: PropTypes.string.isRequired, 20 | headers: PropTypes.arrayOf(PropTypes.string).isRequired, 21 | arrayOption: PropTypes.arrayOf( 22 | PropTypes.arrayOf(PropTypes.string), 23 | ), 24 | className: PropTypes.string, 25 | }; 26 | 27 | static defaultProps = { 28 | title: '', 29 | subTitle: '', 30 | arrayOption: [''], 31 | className: 'react-pagination-table', 32 | }; 33 | 34 | render() { 35 | const { 36 | headers, 37 | className, 38 | title, 39 | subTitle, 40 | arrayOption, 41 | columns, 42 | data, 43 | } = this.props; 44 | const Table: Array> = Body({ arrayOption, columns, data }); 45 | const Title: Array | mixed> = Titles({ title, subTitle, className }); 46 | 47 | return ( 48 |
    49 | { Title } 50 | 51 |
    52 |
    53 | { Table } 54 | 55 |
    56 |
    57 | ); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/helpers.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | /** 4 | * get the specify property 5 | * @param {String} [prop=''] [key] 6 | * @param {String|Number} [index='all'] [index] 7 | * @param {String} [plus=''] [plus] 8 | * @return {Function|Boolean} 9 | */ 10 | export default function handleArrayOption( 11 | prop: string, 12 | index?: number | string = 'all', 13 | plus?: string = '', 14 | ): Function | boolean { 15 | if (typeof prop === 'string' && prop.length > 0) { 16 | return (single: Object): string => { 17 | if (!single[prop]) return ''; 18 | if (index === 'all') { 19 | return single[prop].join(plus); 20 | } 21 | return single[prop][index]; 22 | }; 23 | } 24 | return false; 25 | } 26 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | export TableSimple from './Table'; 2 | export TablePagination from './Table-Pagination'; 3 | -------------------------------------------------------------------------------- /src/types.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | /* TablePagination */ 3 | export type TablePaginationProps = { 4 | title: ?string, 5 | subTitle: ?string, 6 | data: Object[], 7 | columns: string, 8 | headers: string[], 9 | arrayOption: ?string[], 10 | nextPageText: ?string, 11 | prePageText: ?string, 12 | paginationClassName: string, 13 | className: string, 14 | perPageItemCount: number, 15 | partialPageCount?: number, 16 | totalCount: number, 17 | } 18 | 19 | export type TablePaginationDefaultProps = { 20 | title: string, 21 | subTitle: string, 22 | arrayOption: string[], 23 | perPageItemCount: number, 24 | partialPageCount: number, 25 | totalCount: number, 26 | className: string, 27 | nextPageText: string, 28 | prePageText: string, 29 | paginationClassName: string, 30 | } 31 | 32 | export type TablePaginationState = { 33 | activePage: number, 34 | pageCount: number, 35 | } 36 | 37 | /* Table */ 38 | export type TableProps = { 39 | title: ?string, 40 | subTitle: ?string, 41 | data: Object[], 42 | columns: string, 43 | headers: string[], 44 | arrayOption: ?string[], 45 | className: string, 46 | } 47 | 48 | export type TableDefaultProps = { 49 | title: string, 50 | subTitle: string, 51 | arrayOption: string[], 52 | className: string, 53 | } 54 | -------------------------------------------------------------------------------- /templates/index.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | <%= htmlWebpackPlugin.options.title %> 9 | 10 | 11 |
    12 | 13 | 14 | -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const webpack = require('webpack'); 3 | const HtmlWebpackPlugin = require('html-webpack-plugin'); 4 | 5 | module.exports = { 6 | entry: { 7 | bundle: [ 8 | 'webpack/hot/dev-server', 9 | './example/index.jsx', 10 | ], 11 | }, 12 | devServer: { 13 | host: '0.0.0.0', 14 | port: 8000, 15 | contentBase: './example', 16 | }, 17 | output: { 18 | path: path.join(__dirname, 'example'), 19 | filename: 'bundle.js', 20 | }, 21 | plugins: [ 22 | new webpack.HotModuleReplacementPlugin(), 23 | new webpack.LoaderOptionsPlugin({ 24 | minimize: false, 25 | debug: true, 26 | }), 27 | new HtmlWebpackPlugin({ 28 | title: 'Example', 29 | filename: 'index.html', 30 | template: 'templates/index.ejs', 31 | }), 32 | ], 33 | resolve: { 34 | extensions: ['.js', '.jsx'], 35 | modules: ['node_modules'], 36 | }, 37 | module: { 38 | rules: [ 39 | { 40 | test: /\.js[x]?$/, 41 | exclude: /(node_modules)/, 42 | use: [ 43 | { 44 | loader: 'babel-loader', 45 | options: { 46 | cacheDirectory: true, 47 | }, 48 | }, 49 | ], 50 | }, 51 | ], 52 | }, 53 | }; 54 | -------------------------------------------------------------------------------- /webpack.prov.config.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const webpack = require('webpack'); 3 | const HtmlWebpackPlugin = require('html-webpack-plugin'); 4 | 5 | module.exports = { 6 | entry: { 7 | bundle: './example/index.jsx', 8 | }, 9 | output: { 10 | path: path.join(__dirname, 'docs'), 11 | filename: 'bundle.js', 12 | }, 13 | plugins: [ 14 | new webpack.NoEmitOnErrorsPlugin(), 15 | new webpack.LoaderOptionsPlugin({ 16 | minimize: true, 17 | debug: false, 18 | }), 19 | new webpack.DefinePlugin({ 20 | 'process.env.NODE_ENV': JSON.stringify('production'), 21 | }), 22 | new HtmlWebpackPlugin({ 23 | title: 'React Pagaination Table', 24 | filename: 'index.html', 25 | template: 'templates/index.ejs', 26 | minify: { 27 | removeComments: true, 28 | collapseWhitespace: true, 29 | }, 30 | }), 31 | new webpack.optimize.UglifyJsPlugin({ 32 | compress: { 33 | warnings: false, 34 | unused: true, 35 | dead_code: true, 36 | }, 37 | output: { 38 | comments: false, 39 | }, 40 | }), 41 | new webpack.optimize.AggressiveMergingPlugin(), 42 | new webpack.optimize.OccurrenceOrderPlugin(), 43 | ], 44 | resolve: { 45 | extensions: ['.js', '.jsx'], 46 | modules: ['node_modules'], 47 | }, 48 | module: { 49 | rules: [ 50 | { 51 | test: /\.js[x]?$/, 52 | exclude: /(node_modules)/, 53 | use: [ 54 | { 55 | loader: 'babel-loader', 56 | options: { 57 | cacheDirectory: true, 58 | }, 59 | }, 60 | ], 61 | }, 62 | ], 63 | }, 64 | }; 65 | --------------------------------------------------------------------------------