Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"eslint-plugin-import": "2.18.0",
"eslint-plugin-jsx-a11y": "6.2.1",
"eslint-plugin-loosely-restrict-imports": "^0.1.15",
"eslint-plugin-react": "7.11.1",
"eslint-plugin-react": "7.14.0",
"file-loader": "4.0.0",
"fork-ts-checker-webpack-plugin-alt": "0.4.14",
"fs-extra": "8.0.1",
Expand Down
1 change: 1 addition & 0 deletions src/ActionBar/ActionBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const ActionBar = ({ mobile, width, children, className, ...props }) => {
ActionBar.displayName = 'ActionBar';

ActionBar.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
mobile: PropTypes.bool,
width: PropTypes.string
Expand Down
1 change: 1 addition & 0 deletions src/Alert/Alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Alert.displayName = 'Alert';

Alert.propTypes = {
buttonProps: PropTypes.object,
children: PropTypes.node,
className: PropTypes.string,
dismissible: PropTypes.bool,
link: PropTypes.string,
Expand Down
1 change: 1 addition & 0 deletions src/Badge/Badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const Badge = ({ type, modifier, children, className, ...props }) => {
Badge.displayName = 'Badge';

Badge.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
modifier: PropTypes.oneOf(BADGE_MODIFIERS),
type: PropTypes.oneOf(BADGE_TYPES)
Expand Down
1 change: 1 addition & 0 deletions src/Badge/Counter.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const Counter = ({ localizedText, notification, children, className, ...props })
Counter.displayName = 'Counter';

Counter.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
localizedText: CustomPropTypes.i18n({
counterLabel: PropTypes.string
Expand Down
1 change: 1 addition & 0 deletions src/Badge/Label.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const Label = ({ type, children, className, ...props }) => {
Label.displayName = 'Label';

Label.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
type: PropTypes.oneOf(LABEL_TYPES)
};
Expand Down
1 change: 1 addition & 0 deletions src/Badge/Status.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const Status = ({ type, glyph, children, className, ...props }) => {
Status.displayName = 'Status';

Status.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
glyph: PropTypes.string,
type: PropTypes.oneOf(STATUS_TYPES)
Expand Down
2 changes: 2 additions & 0 deletions src/Breadcrumb/_BreadcrumbItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ const BreadcrumbItem = ({ url, name, className, children, ...props }) => {
BreadcrumbItem.displayName = 'Breadcrumb.Item';

BreadcrumbItem.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
name: PropTypes.string,
url: PropTypes.string
};
Expand Down
1 change: 1 addition & 0 deletions src/Identifier/Identifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Identifier.displayName = 'Identifier';

Identifier.propTypes = {
backgroundImageUrl: PropTypes.string,
children: PropTypes.node,
className: PropTypes.string,
color: CustomPropTypes.range(1, 9),
glyph: PropTypes.string,
Expand Down
1 change: 1 addition & 0 deletions src/Menu/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Menu.displayName = 'Menu';

Menu.propTypes = {
addonBefore: PropTypes.bool,
children: PropTypes.node,
className: PropTypes.string
};

Expand Down
1 change: 1 addition & 0 deletions src/Menu/_MenuGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ MenuGroup.displayName = 'Menu.Group';

MenuGroup.propTypes = {
title: PropTypes.string.isRequired,
children: PropTypes.node,
className: PropTypes.string,
headingLevel: CustomPropTypes.range(2, 6),
titleProps: PropTypes.object
Expand Down
2 changes: 2 additions & 0 deletions src/Menu/_MenuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ MenuItem.displayName = 'Menu.Item';
MenuItem.propTypes = {
addon: PropTypes.string,
addonProps: PropTypes.object,
children: PropTypes.node,
className: PropTypes.string,
isLink: PropTypes.bool,
onclick: PropTypes.func,
separator: PropTypes.bool,
url: PropTypes.string,
urlProps: PropTypes.object
Expand Down
2 changes: 2 additions & 0 deletions src/Modal/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ Modal.propTypes = {
title: PropTypes.string.isRequired,
actions: PropTypes.node,
bodyProps: PropTypes.object,
children: PropTypes.node,
className: PropTypes.string,
closeProps: PropTypes.object,
contentProps: PropTypes.object,
footerProps: PropTypes.object,
Expand Down
1 change: 1 addition & 0 deletions src/Pagination/Pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ Pagination.propTypes = {
onClick: PropTypes.func.isRequired,
className: PropTypes.string,
displayTotal: PropTypes.bool,
displayTotalProps: PropTypes.object,
initialPage: PropTypes.number,
itemsPerPage: PropTypes.number,
linkProps: PropTypes.object,
Expand Down
1 change: 1 addition & 0 deletions src/Panel/Panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const Panel = props => {
Panel.displayName = 'Panel';

Panel.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
colSpan: CustomPropTypes.range(1, 6)
};
Expand Down
1 change: 1 addition & 0 deletions src/Panel/PanelGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const PanelGrid = props => {
PanelGrid.displayName = 'PanelGrid';

PanelGrid.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
cols: CustomPropTypes.range(1, 6),
nogap: PropTypes.bool
Expand Down
1 change: 1 addition & 0 deletions src/Panel/_PanelActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const PanelActions = props => {
PanelActions.displayName = 'Panel.Actions';

PanelActions.propTypes = {
children: PropTypes.node,
className: PropTypes.string
};

Expand Down
1 change: 1 addition & 0 deletions src/Panel/_PanelBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const PanelBody = props => {
PanelBody.displayName = 'Panel.Body';

PanelBody.propTypes = {
children: PropTypes.node,
className: PropTypes.string
};

Expand Down
1 change: 1 addition & 0 deletions src/Panel/_PanelFilters.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const PanelFilters = props => {
PanelFilters.displayName = 'Panel.Filters';

PanelFilters.propTypes = {
children: PropTypes.node,
className: PropTypes.string
};

Expand Down
1 change: 1 addition & 0 deletions src/Panel/_PanelFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const PanelFooter = props => {
PanelFooter.displayName = 'Panel.Footer';

PanelFooter.propTypes = {
children: PropTypes.node,
className: PropTypes.string
};

Expand Down
1 change: 1 addition & 0 deletions src/Panel/_PanelHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const PanelHeader = props => {
PanelHeader.displayName = 'Panel.Header';

PanelHeader.propTypes = {
children: PropTypes.node,
className: PropTypes.string
};

Expand Down
1 change: 1 addition & 0 deletions src/Tabs/TabGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ TabGroup.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
selectedIndex: PropTypes.number,
tabGroupProps: PropTypes.object,
onTabClick: PropTypes.func
};

Expand Down
1 change: 1 addition & 0 deletions src/Tile/Tile.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Tile.displayName = 'Tile';
Tile.propTypes = {
backgroundColor: PropTypes.number,
backgroundImage: PropTypes.string,
children: PropTypes.node,
className: PropTypes.string,
colorAccent: PropTypes.number,
columnSpan: CustomPropTypes.range(1, 6),
Expand Down
2 changes: 2 additions & 0 deletions src/Tile/_TileContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ TileContent.displayName = 'Tile.Content';

TileContent.propTypes = {
title: PropTypes.string.isRequired,
children: PropTypes.node,
className: PropTypes.string,
headingLevel: CustomPropTypes.range(2, 6),
productTile: PropTypes.bool,
titleProps: PropTypes.object
};

Expand Down
2 changes: 1 addition & 1 deletion src/Tile/_TileMedia.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import React from 'react';

const TileMedia = props => {
const { children, className, productTile, ...rest } = props;
const { children, className, ...rest } = props;

const tileMediaClasses = classnames(
'fd-tile__media',
Expand Down
2 changes: 2 additions & 0 deletions src/Tile/__snapshots__/Tile.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ exports[`<Tile /> create tile component 7`] = `
/>
<div
className="fd-tile__media"
productTile={true}
/>
<div
className="fd-product-tile__content"
Expand Down Expand Up @@ -212,6 +213,7 @@ exports[`<Tile /> create tile component 8`] = `
/>
<div
className="fd-tile__media blue"
productTile={true}
/>
<div
className="fd-product-tile__content blue"
Expand Down
3 changes: 2 additions & 1 deletion src/TimePicker/_TimePickerItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ TimePickerItem.propTypes = {
style: PropTypes.string,
updateValue: PropTypes.func,
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
onChange: PropTypes.func
onChange: PropTypes.func,
onClick: PropTypes.func
};

export default TimePickerItem;
1 change: 1 addition & 0 deletions src/Toggle/Toggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Toggle.displayName = 'Toggle';

Toggle.propTypes = {
checked: PropTypes.bool,
children: PropTypes.node,
className: PropTypes.string,
disabled: PropTypes.bool,
id: PropTypes.string,
Expand Down