|
1 | 1 | (function (global, factory) {
|
2 | 2 | if (typeof define === "function" && define.amd) {
|
3 |
| - define(['exports', 'react', '../lib/String'], factory); |
| 3 | + define(['exports', 'react', 'prop-types', '../lib/String'], factory); |
4 | 4 | } else if (typeof exports !== "undefined") {
|
5 |
| - factory(exports, require('react'), require('../lib/String')); |
| 5 | + factory(exports, require('react'), require('prop-types'), require('../lib/String')); |
6 | 6 | } else {
|
7 | 7 | var mod = {
|
8 | 8 | exports: {}
|
9 | 9 | };
|
10 |
| - factory(mod.exports, global.react, global.String); |
| 10 | + factory(mod.exports, global.react, global.propTypes, global.String); |
11 | 11 | global.Polygon = mod.exports;
|
12 | 12 | }
|
13 |
| -})(this, function (exports, _react, _String) { |
| 13 | +})(this, function (exports, _react, _propTypes, _String) { |
14 | 14 | 'use strict';
|
15 | 15 |
|
16 | 16 | Object.defineProperty(exports, "__esModule", {
|
|
20 | 20 |
|
21 | 21 | var _react2 = _interopRequireDefault(_react);
|
22 | 22 |
|
| 23 | + var _propTypes2 = _interopRequireDefault(_propTypes); |
| 24 | + |
23 | 25 | function _interopRequireDefault(obj) {
|
24 | 26 | return obj && obj.__esModule ? obj : {
|
25 | 27 | default: obj
|
|
187 | 189 | }(_react2.default.Component);
|
188 | 190 |
|
189 | 191 | Polygon.propTypes = {
|
190 |
| - paths: _react.PropTypes.array, |
191 |
| - strokeColor: _react.PropTypes.string, |
192 |
| - strokeOpacity: _react.PropTypes.number, |
193 |
| - strokeWeight: _react.PropTypes.number, |
194 |
| - fillColor: _react.PropTypes.string, |
195 |
| - fillOpacity: _react.PropTypes.number |
| 192 | + paths: _propTypes2.default.array, |
| 193 | + strokeColor: _propTypes2.default.string, |
| 194 | + strokeOpacity: _propTypes2.default.number, |
| 195 | + strokeWeight: _propTypes2.default.number, |
| 196 | + fillColor: _propTypes2.default.string, |
| 197 | + fillOpacity: _propTypes2.default.number |
196 | 198 | };
|
197 | 199 |
|
198 | 200 | evtNames.forEach(function (e) {
|
199 |
| - return Polygon.propTypes[e] = _react.PropTypes.func; |
| 201 | + return Polygon.propTypes[e] = _propTypes2.default.func; |
200 | 202 | });
|
201 | 203 |
|
202 | 204 | Polygon.defaultProps = {
|
|
0 commit comments