Skip to content

Commit ca8e4c6

Browse files
committed
fix few missing propTypes
1 parent d765913 commit ca8e4c6

File tree

12 files changed

+25
-6
lines changed

12 files changed

+25
-6
lines changed

components/app_bar/AppBar.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const factory = (IconButton) => {
2828
flat: PropTypes.string,
2929
leftIcon: PropTypes.string,
3030
rightIcon: PropTypes.string,
31+
scrollHide: PropTypes.string,
3132
title: PropTypes.string
3233
}),
3334
title: PropTypes.string

components/app_bar/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ The `AppBar` component provides properties for the common use cases of `title`,
4141
| `onLeftIconClick` | `Function` | `null` | Called on left icon click event.|
4242
| `rightIcon` | `String|Element` | `null` | Right icon.|
4343
| `onRightIconClick` | `Function` | `null` | Called on right icon click event.|
44+
| `scrollHide` | `Bool` | `false` | Whether AppBar should be hidden during scroll.|
4445

4546
## Theme
4647

components/autocomplete/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ If you want to provide a theme via context, the component key is `RTAutocomplete
4848
| `direction` | `String` | `auto` | Determines the opening direction. It can be `auto`, `top` or `down`. |
4949
| `disabled` | `Bool` | `false` | If true, component will be disabled. |
5050
| `error` | `String` or `Node` | | Sets the error string for the internal input element. |
51+
| `keepFocusOnChange` | `Bool` | `false` | Whether component should keep focus after value change. |
5152
| `label` | `String` or `Node` | | The text string to use for the floating label element. |
5253
| `multiple` | `Bool` | `true` | If true, component can hold multiple values. |
5354
| `onBlur` | `Function` | | Callback function that is fired when component is blurred. |

components/button/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ If you want to provide a theme via context, the component key is `RTButton`.
5454
| `raised` | `Boolean` | `false` | If true, the button will have a raised look. |
5555
| `ripple` | `Boolean` | `true` | If true, component will have a ripple effect on click.|
5656
| `theme` | `Object` | | Theme object will classnames that will be used to style the component.|
57+
| `type` | `String` | `button` | Component root container type.|
5758

5859
By default it will have neutral colors and a flat aspect even though the `flat` property is `false` by default. Also, some properties exclude others, for example a button cannot be `flat` and `raised` at the same time.
5960

components/card/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Used for displaying media such as images or videos on a card. Can also be used w
9090
| `aspectRatio` | `enum`(`'wide'`,`'square'`) | | Forces a 16:9 or 1:1 aspect ratio respectively. Unset, the media area will have a flexible height. |
9191
| `children` | `Any` | | Usually an image/video element or a `<CardTitle>` component. |
9292
| `className` | `String` | | Additional class(es) for custom styling. |
93-
| `color` | `String` | | Sets the background color |
93+
| `color` | `String` | | Sets the background color. |
9494
| `contentOverlay` | `Boolean` | | Creates a dark overlay underneath the child components. |
9595
| `image` | `String`, `Element` | | Can be used instead of children. Accepts an element or a URL string. |
9696

components/checkbox/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ If you want to provide a theme via context, the component key is `RTCheckbox`.
4444
| Name | Type | Default | Description|
4545
|:-----|:-----|:-----|:-----|
4646
| `checked` | `Boolean` | `false` | Value for the checkbox, can be `true` or `false`. |
47+
| `children` | `String`, `Element` or `Array` | | Children to pass through the component. |
4748
| `className` | `String` | `''` | Sets a class to give customized styles to the checkbox field.|
4849
| `disabled` | `Boolean` | `false` | If true, the checkbox shown as disabled and cannot be modified.|
4950
| `label` | `String` of `node` | | Text label to attach next to the checkbox element.|

components/date_picker/readme.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,21 @@ If you want to provide a theme via context, the component key is `RTDatePicker`.
4848
|:-----|:-----|:-----|:-----|
4949
| `active` | `Boolean` | `false` | Allows to control if the picker should be shown from outside. Beware you should update the prop when the Dialog is closed. |
5050
| `autoOk` | `Boolean` | `false` | Automatically selects a date upon clicking on a day. |
51+
| `cancelLabel` | `String` | `'Cancel'` | Label used for cancel button on date picker dialog. |
5152
| `className` | `String` | | This class will be placed at the top of the `DatePickerDialog` component so you can provide custom styles.|
5253
| `disabledDates` | `Array` | | An array of date objects which will be disabled in the calendar. All other dates will be enabled.|
5354
| `enabledDates` | `Array` | | An array of date objects which will be enabled in the calendar. All other dates will be disabled.|
5455
| `inputClassName`| `String` | | This class will be applied to `Input` component of `DatePicker`. |
5556
| `inputFormat` | `Function` | | Function to format the date displayed on the input. |
5657
| `label` | `String` | | The text string to use for the floating label element in the input component.|
57-
| `locale` | `String` or `Object` | `'en'` | Set the locale for the date picker dialog ('de','en','es','af','ar','be','bg','bn','bo','br','bs','ca','gl','eu','pt','it',fr'). Object is supported too (see example above). |
58+
| `locale` | `String` or `Object` | `'en'` | Set the locale for the date picker dialog ('de','no','en','es','af','ar','be','bg','bn','bo','br','bs','ca','gl','eu','pt','it','fr','ru','ua'). Object is supported too (see example above). |
5859
| `maxDate` | `Date` | | Date object with the maximum selectable date. |
5960
| `minDate` | `Date` | | Date object with the minimum selectable date. |
6061
| `onChange` | `Function` | | Callback called when the picker value is changed.|
62+
| `onClick` | `Function` | | Callback fired on Input click.|
63+
| `onDismiss` | `Function` | | Callback fired after dismissing the Dialog.|
6164
| `onEscKeyDown` | `Function` | | Callback called when the ESC key is pressed with the overlay active. |
65+
| `onKeyPress` | `Function` | | Callback invoked on Input key press.
6266
| `onOverlayClick`| `Function` | | Callback to be invoked when the dialog overlay is clicked.|
6367
| `readonly` | `Boolean` | | The input element will be readonly and look like disabled.|
6468
| `sundayFirstDayOfWeek` | `Boolean`| `false` | Set week's first day to Sunday. Default week's first day is Monday ([ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Week_dates)). |

components/layout/NavDrawer.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,14 @@ NavDrawer.propTypes = {
3737
active: PropTypes.string,
3838
drawerContent: PropTypes.string,
3939
lgPermanent: PropTypes.string,
40+
lgTabletPermanent: PropTypes.string,
4041
mdPermanent: PropTypes.string,
4142
navDrawer: PropTypes.string,
4243
pinned: PropTypes.string,
4344
scrim: PropTypes.string,
4445
scrollY: PropTypes.string,
4546
smPermanent: PropTypes.string,
47+
smTabletPermanent: PropTypes.string,
4648
wide: PropTypes.string,
4749
xlPermanent: PropTypes.string,
4850
xxlPermanent: PropTypes.string,

components/list/ListItemContent.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ const factory = (ListItemText) => {
1616
children: PropTypes.any,
1717
legend: PropTypes.string,
1818
theme: PropTypes.shape({
19+
auto: PropTypes.string,
1920
itemContentRoot: PropTypes.string,
20-
large: PropTypes.string
21+
large: PropTypes.string,
22+
normal: PropTypes.string
2123
}),
2224
type: PropTypes.oneOf(types)
2325
};
@@ -34,8 +36,9 @@ const factory = (ListItemText) => {
3436

3537
render () {
3638
const {children, caption, legend, theme} = this.props;
39+
const contentType = this.getType();
3740
const className = classnames(theme.itemContentRoot, {
38-
[theme[this.getType()]]: theme[this.getType()]
41+
[theme[contentType]]: theme[contentType]
3942
});
4043

4144
return (

components/snackbar/Snackbar.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const factory = (Overlay, Button) => {
2424
active: PropTypes.string,
2525
button: PropTypes.string,
2626
cancel: PropTypes.string,
27-
icon: PropTypes.string,
2827
label: PropTypes.string,
2928
snackbar: PropTypes.string,
3029
warning: PropTypes.string

0 commit comments

Comments
 (0)