react-autowhatever
Advanced tools
Comparing version 5.0.0 to 5.1.0
@@ -45,2 +45,5 @@ 'use strict'; | ||
var emptyObject = {}; | ||
var defaultRenderItemsContainer = function defaultRenderItemsContainer(props) { | ||
return _react2.default.createElement('div', props); | ||
}; | ||
var defaultTheme = { | ||
@@ -318,2 +321,3 @@ container: 'react-autowhatever__container', | ||
var multiSection = _props4.multiSection; | ||
var renderItemsContainer = _props4.renderItemsContainer; | ||
var focusedSectionIndex = _props4.focusedSectionIndex; | ||
@@ -346,2 +350,5 @@ var focusedItemIndex = _props4.focusedItemIndex; | ||
}); | ||
var itemsContainer = renderItemsContainer(_extends({}, itemsContainerProps, { | ||
children: renderedItems | ||
})); | ||
@@ -352,7 +359,3 @@ return _react2.default.createElement( | ||
_react2.default.createElement('input', inputProps), | ||
_react2.default.createElement( | ||
'div', | ||
itemsContainerProps, | ||
renderedItems | ||
) | ||
itemsContainer | ||
); | ||
@@ -369,2 +372,3 @@ } | ||
items: _react.PropTypes.array.isRequired, // Array of items or sections to render. | ||
renderItemsContainer: _react.PropTypes.func, // Renders the items container. | ||
renderItem: _react.PropTypes.func, // This function renders a single item. | ||
@@ -385,2 +389,3 @@ renderItemData: _react.PropTypes.object, // Arbitrary data that will be passed to renderItem() | ||
multiSection: false, | ||
renderItemsContainer: defaultRenderItemsContainer, | ||
shouldRenderSection: alwaysTrue, | ||
@@ -387,0 +392,0 @@ renderItem: function renderItem() { |
{ | ||
"name": "react-autowhatever", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "Accessible rendering layer for Autosuggest and Autocomplete components", | ||
@@ -58,2 +58,3 @@ "main": "dist/Autowhatever.js", | ||
"react-hot-loader": "^1.3.0", | ||
"react-isolated-scroll": "^0.1.0", | ||
"react-redux": "^4.4.5", | ||
@@ -60,0 +61,0 @@ "redux": "^3.5.2", |
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
36299
652
33