react-input-completion
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "react-input-completion", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A cross-browser autocomplete component for React", | ||
@@ -23,3 +23,3 @@ "repository": "https://www.github.com/imcnally/react-input-completion", | ||
"license": "ISC", | ||
"peerDependencies": { | ||
"dependencies": { | ||
"react": "^0.14.0", | ||
@@ -29,6 +29,10 @@ "react-dom": "^0.14.0" | ||
"devDependencies": { | ||
"babel": "^5.8.21", | ||
"babel-cli": "^6.1.18", | ||
"babel-core": "^6.1.21", | ||
"babel-jscs": "^2.0.4", | ||
"babel-loader": "^5.3.2", | ||
"babel-loader": "^6.1.0", | ||
"babel-preset-es2015": "^6.1.18", | ||
"babel-preset-react": "^6.1.18", | ||
"css-loader": "^0.16.0", | ||
"es5-shim": "^4.3.1", | ||
"eslint": "^1.2.1", | ||
@@ -39,3 +43,2 @@ "eslint-plugin-react": "^3.2.3", | ||
"karma": "^0.13.3", | ||
"karma-babel-preprocessor": "^5.2.1", | ||
"karma-mocha": "^0.2.0", | ||
@@ -42,0 +45,0 @@ "karma-notify-reporter": "^0.1.1", |
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { | ||
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); | ||
var _react = require('react'); | ||
var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; desc = parent = getter = undefined; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } }; | ||
var _react2 = _interopRequireDefault(_react); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _reactDom = require('react-dom'); | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
var _react = require('react'); | ||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } | ||
var _react2 = _interopRequireDefault(_react); | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } | ||
var _reactDom = require('react-dom'); | ||
var keys = { | ||
@@ -42,5 +42,5 @@ down: 'ArrowDown', | ||
_get(Object.getPrototypeOf(InputCompletion.prototype), 'constructor', this).call(this, props); | ||
var _this3 = _possibleConstructorReturn(this, Object.getPrototypeOf(InputCompletion).call(this, props)); | ||
this.state = { | ||
_this3.state = { | ||
inputWidth: null, // fallback only | ||
@@ -52,2 +52,3 @@ selectedSuggestion: 0, // fallback only | ||
}; | ||
return _this3; | ||
} | ||
@@ -106,3 +107,3 @@ | ||
return _react2['default'].createElement( | ||
return _react2.default.createElement( | ||
'li', | ||
@@ -115,3 +116,3 @@ { 'aria-selected': isSelected, className: className, | ||
return _react2['default'].createElement( | ||
return _react2.default.createElement( | ||
'ul', | ||
@@ -131,6 +132,6 @@ { 'aria-multiselectable': 'false', className: styleClasses.list, role: 'listbox', | ||
var options = this.props.options.map(function (option, index) { | ||
return _react2['default'].createElement('option', { className: styleClasses.option, key: index, value: option }); | ||
return _react2.default.createElement('option', { className: styleClasses.option, key: index, value: option }); | ||
}); | ||
return _react2['default'].createElement( | ||
return _react2.default.createElement( | ||
'datalist', | ||
@@ -234,3 +235,3 @@ { className: styleClasses.list, id: this.props.name }, | ||
value: function render() { | ||
return _react2['default'].createElement( | ||
return _react2.default.createElement( | ||
'section', | ||
@@ -247,3 +248,3 @@ { className: styleClasses.wrapper }, | ||
exports['default'] = InputCompletion; | ||
exports.default = InputCompletion; | ||
@@ -261,2 +262,1 @@ InputCompletion.defaultProps = { | ||
}; | ||
module.exports = exports['default']; |
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
7
12074
24
232
+ Addedreact@^0.14.0
+ Addedreact-dom@^0.14.0