Skip to content

Commit

Permalink
Merge pull request #3142 from alitaheri/critical-bug-fix-0.14.4
Browse files Browse the repository at this point in the history
Critical bug fix 0.14.4
  • Loading branch information
Hai Nguyen committed Feb 3, 2016
2 parents 720151f + 0163cf4 commit 2e4888a
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 60 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
## HEAD

## 0.14.4
###### _Feb 03, 2016_

##### General
- [CRITICAL] Fixed a regression that completely disabled the auto-prefixer (#3142)
- [Docs] Contributing guide (#3075)
- [Docs] Added a `Related Projects` section (#3102)
- [Examples] General updates (#3078)

##### Component Fixes / Enhancements
- [Tabs] Removed the calc style property (#3058)
- [Tabs] Added icon and text (#3042)
- [Tabs] Use `FlatButtons` for tabs (#3051)
- [AutoComplete] Fixed regression of undefined muiTheme (#3069)
- [List] Auto-expand SelectableList (#3039)
- [DatePicker] Added `disabled` property (#3060)
- [Buttons] Fixed the vertical alignment issue (#3100)

## 0.14.3
###### _Jan 26, 2016_

Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "material-ui-docs",
"version": "0.14.3",
"version": "0.14.4",
"description": "Documentation site for material-ui",
"repository": {
"type": "git",
Expand Down

This file was deleted.

10 changes: 0 additions & 10 deletions docs/src/app/components/pages/components/TimePicker/Page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,11 @@ import TimePickerExampleSimple from './ExampleSimple';
import timePickerExampleSimpleCode from '!raw!./ExampleSimple';
import TimePickerExampleComplex from './ExampleComplex';
import timePickerExampleComplexCode from '!raw!./ExampleComplex';
import TimePickerExampleInternational from './ExampleInternational';
import timePickerExampleInternationalCode from '!raw!./ExampleInternational';

const descriptions = {
simple: 'Time Picker supports 12 hour and 24 hour formats. In 12 hour format the AM and PM indicators toggle the ' +
'selected time period.',
controlled: '`TimePicker` can be used as a controlled component.',
localised: 'The buttons can be localised using the `wordings` property.',
};

const TimePickersPage = () => (
Expand All @@ -36,13 +33,6 @@ const TimePickersPage = () => (
>
<TimePickerExampleComplex />
</CodeExample>
<CodeExample
title="Localised example"
description={descriptions.localised}
code={timePickerExampleInternationalCode}
>
<TimePickerExampleInternational />
</CodeExample>
<PropTypeDescription code={timePickerCode} />
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions examples/browserify-gulp-example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "material-ui-example-browserify",
"version": "0.14.3",
"version": "0.14.4",
"description": "Sample project that uses material-ui",
"repository": {
"type": "git",
Expand All @@ -26,7 +26,7 @@
"watchify": "^3.6.1"
},
"dependencies": {
"material-ui": "^0.14.3",
"material-ui": "^0.14.4",
"react": "^0.14.0",
"react-dom": "^0.14.0",
"react-tap-event-plugin": "^0.2.1"
Expand Down
4 changes: 2 additions & 2 deletions examples/webpack-example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "material-ui-example-webpack",
"version": "0.14.3",
"version": "0.14.4",
"description": "Sample project that uses material-ui",
"repository": {
"type": "git",
Expand Down Expand Up @@ -28,7 +28,7 @@
"webpack-dev-server": "^1.14.0"
},
"dependencies": {
"material-ui": "^0.14.3",
"material-ui": "^0.14.4",
"react": "^0.14.3",
"react-dom": "^0.14.3",
"react-tap-event-plugin": "^0.2.1"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "material-ui",
"author": "Call-em-all Engineering Team",
"version": "0.14.3",
"version": "0.14.4",
"description": "Material Design UI components built with React",
"main": "./lib",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/styles/auto-prefix.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default {
userAgent: userAgent,
});

return prefixer.prefix;
return (style) => prefixer.prefix(style);
}
},

Expand Down
30 changes: 7 additions & 23 deletions src/time-picker/time-picker-dialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const TimePickerDialog = React.createClass({
onAccept: React.PropTypes.func,
onDismiss: React.PropTypes.func,
onShow: React.PropTypes.func,
wordings: React.PropTypes.object,
},

contextTypes: {
Expand All @@ -30,15 +29,6 @@ const TimePickerDialog = React.createClass({

mixins: [StylePropable, WindowListenable],

getDefaultProps() {
return {
wordings: {
ok: 'OK',
cancel: 'Cancel',
},
};
},

getInitialState() {
return {
open: false,
Expand Down Expand Up @@ -104,7 +94,6 @@ const TimePickerDialog = React.createClass({
onAccept,
format,
autoOk,
wordings,
...other,
} = this.props;

Expand All @@ -124,23 +113,18 @@ const TimePickerDialog = React.createClass({
let actions = [
<FlatButton
key={0}
label={wordings.cancel}
label="Cancel"
secondary={true}
onTouchTap={this.dismiss}
/>,
<FlatButton
key={1}
label="OK"
secondary={true}
onTouchTap={this._handleOKTouchTap}
/>,
];

if (!autoOk) {
actions.push(
<FlatButton
key={1}
label={wordings.ok}
secondary={true}
onTouchTap={this._handleOKTouchTap}
/>
);
}

const onClockChangeMinutes = (autoOk === true ? this._handleOKTouchTap : undefined);

return (
Expand Down
7 changes: 0 additions & 7 deletions src/time-picker/time-picker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ const TimePicker = React.createClass({
* Override the inline-styles of TimePicker's TextField element.
*/
textFieldStyle: React.PropTypes.object,

/**
* Wordings used inside the button of the dialog.
*/
wordings: React.PropTypes.object,
},

contextTypes: {
Expand Down Expand Up @@ -193,7 +188,6 @@ const TimePicker = React.createClass({
onShow,
onDismiss,
style,
wordings,
textFieldStyle,
...other,
} = this.props;
Expand All @@ -217,7 +211,6 @@ const TimePicker = React.createClass({
onShow={onShow}
onDismiss={onDismiss}
format={format}
wordings={wordings}
autoOk={autoOk}
/>
</div>
Expand Down

0 comments on commit 2e4888a

Please sign in to comment.