react-ratio
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -1,3 +0,13 @@ | ||
import Ratio from './Ratio'; | ||
'use strict'; | ||
export default Ratio; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _Ratio = require('./Ratio'); | ||
var _Ratio2 = _interopRequireDefault(_Ratio); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports.default = _Ratio2.default; |
@@ -0,1 +1,7 @@ | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
@@ -5,2 +11,14 @@ | ||
exports.omit = omit; | ||
var _react = require('react'); | ||
var _react2 = _interopRequireDefault(_react); | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -12,7 +30,4 @@ | ||
import React, { Component } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
// Omits "keysToOmit" from "object" | ||
export function omit(object, keysToOmit) { | ||
function omit(object, keysToOmit) { | ||
var result = {}; | ||
@@ -75,3 +90,3 @@ | ||
return React.createElement( | ||
return _react2.default.createElement( | ||
Tag, | ||
@@ -82,3 +97,3 @@ _extends({}, omit(this.props, PROPS_TO_OMIT), { | ||
}), | ||
React.createElement( | ||
_react2.default.createElement( | ||
'div', | ||
@@ -91,3 +106,3 @@ { | ||
}, | ||
React.createElement( | ||
_react2.default.createElement( | ||
'div', | ||
@@ -106,15 +121,15 @@ { | ||
return Ratio; | ||
}(Component); | ||
}(_react.Component); | ||
export default Ratio; | ||
exports.default = Ratio; | ||
Ratio.propTypes = { | ||
children: PropTypes.any, | ||
className: PropTypes.string, | ||
contentClassName: PropTypes.string, | ||
ratio: PropTypes.number, | ||
ratioClassName: PropTypes.string, | ||
style: PropTypes.object, | ||
tagName: PropTypes.string | ||
children: _propTypes2.default.any, | ||
className: _propTypes2.default.string, | ||
contentClassName: _propTypes2.default.string, | ||
ratio: _propTypes2.default.number, | ||
ratioClassName: _propTypes2.default.string, | ||
style: _propTypes2.default.object, | ||
tagName: _propTypes2.default.string | ||
}; | ||
@@ -121,0 +136,0 @@ |
{ | ||
"name": "react-ratio", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18188
412