|
1 | 1 | (function (global, factory) { |
2 | 2 | if (typeof define === "function" && define.amd) { |
3 | | - define(['module', 'react', 'react-dom'], factory); |
| 3 | + define(['module', 'prop-types', 'react', 'react-dom'], factory); |
4 | 4 | } else if (typeof exports !== "undefined") { |
5 | | - factory(module, require('react'), require('react-dom')); |
| 5 | + factory(module, require('prop-types'), require('react'), require('react-dom')); |
6 | 6 | } else { |
7 | 7 | var mod = { |
8 | 8 | exports: {} |
9 | 9 | }; |
10 | | - factory(mod, global.React, global.ReactDOM); |
| 10 | + factory(mod, global.PropTypes, global.React, global.ReactDOM); |
11 | 11 | global.ReactList = mod.exports; |
12 | 12 | } |
13 | | -})(this, function (_module2, _react, _reactDom) { |
| 13 | +})(this, function (_module2, _propTypes, _react, _reactDom) { |
14 | 14 | 'use strict'; |
15 | 15 |
|
16 | 16 | var _module3 = _interopRequireDefault(_module2); |
17 | 17 |
|
| 18 | + var _propTypes2 = _interopRequireDefault(_propTypes); |
| 19 | + |
18 | 20 | var _react2 = _interopRequireDefault(_react); |
19 | 21 |
|
20 | 22 | var _reactDom2 = _interopRequireDefault(_reactDom); |
|
640 | 642 |
|
641 | 643 | return ReactList; |
642 | 644 | }(_react.Component), _class.displayName = 'ReactList', _class.propTypes = { |
643 | | - axis: _react.PropTypes.oneOf(['x', 'y']), |
644 | | - initialIndex: _react.PropTypes.number, |
645 | | - itemRenderer: _react.PropTypes.func, |
646 | | - itemSizeEstimator: _react.PropTypes.func, |
647 | | - itemSizeGetter: _react.PropTypes.func, |
648 | | - itemsRenderer: _react.PropTypes.func, |
649 | | - length: _react.PropTypes.number, |
650 | | - pageSize: _react.PropTypes.number, |
651 | | - scrollParentGetter: _react.PropTypes.func, |
652 | | - threshold: _react.PropTypes.number, |
653 | | - type: _react.PropTypes.oneOf(['simple', 'variable', 'uniform']), |
654 | | - useStaticSize: _react.PropTypes.bool, |
655 | | - useTranslate3d: _react.PropTypes.bool |
| 645 | + axis: _propTypes2.default.oneOf(['x', 'y']), |
| 646 | + initialIndex: _propTypes2.default.number, |
| 647 | + itemRenderer: _propTypes2.default.func, |
| 648 | + itemSizeEstimator: _propTypes2.default.func, |
| 649 | + itemSizeGetter: _propTypes2.default.func, |
| 650 | + itemsRenderer: _propTypes2.default.func, |
| 651 | + length: _propTypes2.default.number, |
| 652 | + pageSize: _propTypes2.default.number, |
| 653 | + scrollParentGetter: _propTypes2.default.func, |
| 654 | + threshold: _propTypes2.default.number, |
| 655 | + type: _propTypes2.default.oneOf(['simple', 'variable', 'uniform']), |
| 656 | + useStaticSize: _propTypes2.default.bool, |
| 657 | + useTranslate3d: _propTypes2.default.bool |
656 | 658 | }, _class.defaultProps = { |
657 | 659 | axis: 'y', |
658 | 660 | itemRenderer: function itemRenderer(index, key) { |
|
0 commit comments