Comparing version 1.0.0 to 1.0.1
@@ -639,4 +639,3 @@ 'use strict'; | ||
var isHovered = _this2.state.focusedOptionIndex === index; | ||
var option = _react2['default'].addons.cloneWithProps(entry, { | ||
var option = _react2['default'].cloneElement(entry, { | ||
_isHovered: isHovered | ||
@@ -717,3 +716,4 @@ }); | ||
filterFunc: filterFunc, | ||
tabIndex: 0 | ||
tabIndex: 0, | ||
children: [] | ||
}, | ||
@@ -727,3 +727,2 @@ enumerable: true | ||
exports['default'] = ComboBox; | ||
module.exports = exports['default']; | ||
//TODO: get rid of cloneWithProps | ||
module.exports = exports['default']; |
@@ -713,3 +713,3 @@ 'use strict'; | ||
if (selectedEntry) { | ||
selectedOptionOrPlaceholder = _react2['default'].addons.cloneWithProps(selectedEntry, { | ||
selectedOptionOrPlaceholder = _react2['default'].cloneElement(selectedEntry, { | ||
_isDisplayedAsSelected: true | ||
@@ -728,3 +728,3 @@ }); | ||
if (this.props.disabled) { | ||
selectedOptionOrPlaceholder = _react2['default'].addons.cloneWithProps(selectedOptionOrPlaceholder, { | ||
selectedOptionOrPlaceholder = _react2['default'].cloneElement(selectedOptionOrPlaceholder, { | ||
_isDisabled: true | ||
@@ -793,3 +793,3 @@ }); | ||
var isHovered = entry.props.value === _this.state.focusedOptionValue; | ||
var option = _react2['default'].addons.cloneWithProps(entry, { | ||
var option = _react2['default'].cloneElement(entry, { | ||
_isHovered: isHovered | ||
@@ -796,0 +796,0 @@ }); |
{ | ||
"name": "belle", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Configurable React Components with great UX", | ||
@@ -21,3 +21,4 @@ "author": { | ||
"widget", | ||
"javascript" | ||
"javascript", | ||
"react-component" | ||
], | ||
@@ -24,0 +25,0 @@ "peerDependencies": { |
@@ -7,2 +7,4 @@ # Belle | ||
![belle-overview](https://cloud.githubusercontent.com/assets/223045/8707250/f77634f8-2b34-11e5-92d1-f0b0fe44ade9.png) | ||
## Getting Started | ||
@@ -151,5 +153,8 @@ | ||
## Discussion or need help? | ||
Join us at the **#belle** channel of the [Reactiflux](http://reactiflux.com/) Slack community or our [Gitter room](https://gitter.im/nikgraf/belle). | ||
## Future Plans | ||
- Make sure components don't break when rendered by the backend | ||
- Components to add: Dateformatter, Datepicker, Tooltip, Popover, Modal, Navigation Menu, NumberInput, EmailInput, Anchor, DropZone | ||
@@ -161,2 +166,8 @@ | ||
Thanks to [https://github.com/andreypopp](Andrey Popp) & [https://github.com/eugene1g](Eugene) for their inspiring work on [https://github.com/andreypopp/react-textarea-autosize](React TextArea Autosize) which kind of ignited the idea of Belle. | ||
Thanks to Christian Steiner from [http://www.cropd.at/](cropd.at) for creating the logo and helping out with the design. | ||
Special thanks to [https://github.com/jpuri](Jyoti Puri) for the tremendous amount of work she put into this endeavor. | ||
## License | ||
@@ -163,0 +174,0 @@ |
935414
212
176