Skip to content

Commit

Permalink
Merge pull request mui#4073 from oliviertassinari/proptypes-remove-sp…
Browse files Browse the repository at this point in the history
…aces

[Core] Remove the blank line between the propTypes definitions
  • Loading branch information
nathanmarks committed Apr 22, 2016
2 parents e655bf9 + 8bdbdc8 commit 12a6d6a
Show file tree
Hide file tree
Showing 70 changed files with 0 additions and 651 deletions.
14 changes: 0 additions & 14 deletions src/AppBar/AppBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,82 +69,68 @@ class AppBar extends Component {
* Can be used to render a tab inside an app bar for instance.
*/
children: PropTypes.node,

/**
* Applied to the app bar's root element.
*/
className: PropTypes.string,

/**
* The classname of the icon on the left of the app bar.
* If you are using a stylesheet for your icons, enter the class name for the icon to be used here.
*/
iconClassNameLeft: PropTypes.string,

/**
* Similiar to the iconClassNameLeft prop except that
* it applies to the icon displayed on the right of the app bar.
*/
iconClassNameRight: PropTypes.string,

/**
* The custom element to be displayed on the left side of the
* app bar such as an SvgIcon.
*/
iconElementLeft: PropTypes.element,

/**
* Similiar to the iconElementLeft prop except that this element is displayed on the right of the app bar.
*/
iconElementRight: PropTypes.element,

/**
* Override the inline-styles of the element displayed on the right side of the app bar.
*/
iconStyleRight: PropTypes.object,

/**
* Callback function for when the left icon is selected via a touch tap.
*
* @param {object} event TouchTap event targeting the left `IconButton`.
*/
onLeftIconButtonTouchTap: PropTypes.func,

/**
* Callback function for when the right icon is selected via a touch tap.
*
* @param {object} event TouchTap event targeting the right `IconButton`.
*/
onRightIconButtonTouchTap: PropTypes.func,

/**
* Callback function for when the title text is selected via a touch tap.
*
* @param {object} event TouchTap event targeting the `title` node.
*/
onTitleTouchTap: PropTypes.func,

/**
* Determines whether or not to display the Menu icon next to the title.
* Setting this prop to false will hide the icon.
*/
showMenuIconButton: PropTypes.bool,

/**
* Override the inline-styles of the root element.
*/
style: PropTypes.object,

/**
* The title to display on the app bar.
*/
title: PropTypes.node,

/**
* Override the inline-styles of the app bar's title element.
*/
titleStyle: PropTypes.object,

/**
* The zDepth of the component.
* The shadow of the app bar is also dependent on this property.
Expand Down
25 changes: 0 additions & 25 deletions src/AutoComplete/AutoComplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,32 +47,26 @@ class AutoComplete extends Component {
* Location of the anchor for the auto complete.
*/
anchorOrigin: propTypes.origin,

/**
* If true, the auto complete is animated as it is toggled.
*/
animated: PropTypes.bool,

/**
* Array of strings or nodes used to populate the list.
*/
dataSource: PropTypes.array.isRequired,

/**
* Disables focus ripple when true.
*/
disableFocusRipple: PropTypes.bool,

/**
* Override style prop for error.
*/
errorStyle: PropTypes.object,

/**
* The error content to display.
*/
errorText: PropTypes.node,

/**
* Callback function used to filter the auto complete.
*
Expand All @@ -81,67 +75,55 @@ class AutoComplete extends Component {
* @returns {boolean} `true` indicates the auto complete list will include `key` when the input is `searchText`.
*/
filter: PropTypes.func,

/**
* The content to use for adding floating label element.
*/
floatingLabelText: PropTypes.node,

/**
* If true, the field receives the property `width: 100%`.
*/
fullWidth: PropTypes.bool,

/**
* The hint content to display.
*/
hintText: PropTypes.node,

/**
* Override style for list.
*/
listStyle: PropTypes.object,

/**
* The max number of search results to be shown.
* By default it shows all the items which matches filter.
*/
maxSearchResults: PropTypes.number,

/**
* Delay for closing time of the menu.
*/
menuCloseDelay: PropTypes.number,

/**
* Props to be passed to menu.
*/
menuProps: PropTypes.object,

/**
* Override style for menu.
*/
menuStyle: PropTypes.object,

/**
* Callback function that is fired when the `TextField` loses focus.
*
* @param {object} event `blur` event targeting the `TextField`.
*/
onBlur: PropTypes.func,

/**
* Callback function that is fired when the `TextField` gains focus.
*
* @param {object} event `focus` event targeting the `TextField`.
*/
onFocus: PropTypes.func,

/**
* Callback function that is fired when the `TextField` receives a keydown event.
*/
onKeyDown: PropTypes.func,

/**
* Callback function that is fired when a list item is selected, or enter is pressed in the `TextField`.
*
Expand All @@ -151,40 +133,33 @@ class AutoComplete extends Component {
* `TextField`.
*/
onNewRequest: PropTypes.func,

/**
* Callback function that is fired when the user updates the `TextField`.
*
* @param {string} searchText The auto-complete's `searchText` value.
* @param {array} dataSource The auto-complete's `dataSource` array.
*/
onUpdateInput: PropTypes.func,

/**
* Auto complete menu is open if true.
*/
open: PropTypes.bool,

/**
* If true, the list item is showed when a focus event triggers.
*/
openOnFocus: PropTypes.bool,

/**
* Text being input to auto complete.
*/
searchText: PropTypes.string,

/**
* Override the inline-styles of the root element.
*/
style: PropTypes.object,

/**
* Origin for location of target.
*/
targetOrigin: propTypes.origin,

/**
* If true, will update when focus event triggers.
*/
Expand Down
7 changes: 0 additions & 7 deletions src/Avatar/Avatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,37 +49,30 @@ class Avatar extends Component {
* The backgroundColor of the avatar. Does not apply to image avatars.
*/
backgroundColor: PropTypes.string,

/**
* Can be used, for instance, to render a letter inside the avatar.
*/
children: PropTypes.node,

/**
* The css class name of the root `div` or `img` element.
*/
className: PropTypes.string,

/**
* The icon or letter's color.
*/
color: PropTypes.string,

/**
* This is the SvgIcon or FontIcon to be used inside the avatar.
*/
icon: PropTypes.element,

/**
* This is the size of the avatar in pixels.
*/
size: PropTypes.number,

/**
* If passed in, this component will render an img element. Otherwise, a div will be rendered.
*/
src: PropTypes.string,

/**
* Override the inline-styles of the root element.
*/
Expand Down
6 changes: 0 additions & 6 deletions src/Badge/Badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,32 +54,26 @@ class Badge extends Component {
* This is the content rendered within the badge.
*/
badgeContent: PropTypes.node.isRequired,

/**
* Override the inline-styles of the badge element.
*/
badgeStyle: PropTypes.object,

/**
* The badge will be added relativelty to this node.
*/
children: PropTypes.node,

/**
* The css class name of the root element.
*/
className: PropTypes.string,

/**
* If true, the badge will use the primary badge colors.
*/
primary: PropTypes.bool,

/**
* If true, the badge will use the secondary badge colors.
*/
secondary: PropTypes.bool,

/**
* Override the inline-styles of the root element.
*/
Expand Down
7 changes: 0 additions & 7 deletions src/Card/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,44 +8,37 @@ class Card extends Component {
* If true, a click on this card component expands the card. Can be set on any child of the `Card` component.
*/
actAsExpander: PropTypes.bool,

/**
* Can be used to render elements inside the Card.
*/
children: PropTypes.node,

/**
* If true, this card component is expandable. Can be set on any child of the `Card` component.
*/
expandable: PropTypes.bool,

/**
* Whether this card is expanded.
* If `true` or `false` the component is controlled.
* if `null` the component is uncontrolled.
*/
expanded: PropTypes.bool,

/**
* Whether this card is initially expanded.
*/
initiallyExpanded: PropTypes.bool,

/**
* Callback function fired when the `expandable` state of the card has changed.
*
* @param {boolean} newExpandedState Represents the new `expanded` state of the card.
*/
onExpandChange: PropTypes.func,

/**
* If true, this card component will include a button to expand the card. `CardTitle`,
* `CardHeader` and `CardActions` implement `showExpandableButton`. Any child component
* of `Card` can implements `showExpandableButton` or forwards the property to a child
* component supporting it.
*/
showExpandableButton: PropTypes.bool,

/**
* Override the inline-styles of the root element.
*/
Expand Down
4 changes: 0 additions & 4 deletions src/Card/CardActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,18 @@ class CardActions extends Component {
* If true, a click on this card component expands the card.
*/
actAsExpander: PropTypes.bool,

/**
* Can be used to render elements inside the Card Action.
*/
children: PropTypes.node,

/**
* If true, this card component is expandable.
*/
expandable: PropTypes.bool,

/**
* If true, this card component will include a button to expand the card.
*/
showExpandableButton: PropTypes.bool,

/**
* Override the inline-styles of the root element.
*/
Expand Down
Loading

0 comments on commit 12a6d6a

Please sign in to comment.