belle v2.0.0 Release Notes

Release Date: 2015-11-28 // over 8 years ago
  • ๐Ÿ”„ Changed

    • Require React 0.14.0 #189
    • ๐Ÿšš [Button, Card, Choice, ComboBox, Option, Placeholder, Rating, Select, Separator, TextInput, Toggle] Removed the 'Belle ' prefix from displayName
    • ๐Ÿ‘€ [Button] Prevent sticky hover for touch devices by leveraging mouseEnter & mouseLeave instead of the :hover pseudo class 8f590e2
    • [Toggle] Hide Webkit tap highlight on touch 5faf2c5

    โž• Added

    • [DatePicker] Add DatePicker component
    <DatePicker />
    
    • [Spinner] Add Spinner component
    <Spinner />
    

    ๐Ÿ›  Fixed

    • [Rating] Fix styling the wrapper 82087cb
    • [Select] Fix rendering the selected option with a falsy value e.g. 0 f0e5611
    • [Select] Fix hovering and selecting Options with values of type Number 09c52e3
    <Select>
      <Option value={ 0 }>Zero</Option>
      <Option value={ 1 }>One</Option>
    </Select>
    
    • [ComboBox] Fix hovering and selecting Options with values of type Number 64a2797
    • โšก๏ธ [TextInput] fix calculating the height in case a defaultValue was provided and props were updated f1a9bc2

    โœ‚ Removed

    • ๐Ÿ‘€ [Rating] Removed the resetValue function. Reseting should accomplished by making the Rating a controlled component and passing in the value as undefined. See an example below:
    export default class extends Component {
    
      state = {
        ratingValue: 3
      }
    
      reset() {
        this.setState({ ratingValue: undefined });
      }
    
      render() {
        return (
          <div>
            <button onClick={ ::this.reset() }></button>
            <Rating value={ this.state.ratingValue } />
          </div>
        );
      }
    }