Importing PropTypes from prop-types rather than react (#1413)
parent
e572dd7a96
commit
ae09770cd4
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import cn from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { APP_BAR } from '../identifiers';
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* eslint-disable */
|
||||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import ReactDOM from 'react-dom';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
|
@ -21,14 +22,14 @@ const factory = (Chip, Input) => {
|
|||
className: PropTypes.string,
|
||||
direction: PropTypes.oneOf(['auto', 'up', 'down']),
|
||||
disabled: PropTypes.bool,
|
||||
error: React.PropTypes.oneOfType([
|
||||
React.PropTypes.string,
|
||||
React.PropTypes.node,
|
||||
error: PropTypes.oneOfType([
|
||||
PropTypes.string,
|
||||
PropTypes.node,
|
||||
]),
|
||||
keepFocusOnChange: PropTypes.bool,
|
||||
label: React.PropTypes.oneOfType([
|
||||
React.PropTypes.string,
|
||||
React.PropTypes.node,
|
||||
label: PropTypes.oneOfType([
|
||||
PropTypes.string,
|
||||
PropTypes.node,
|
||||
]),
|
||||
multiple: PropTypes.bool,
|
||||
onBlur: PropTypes.func,
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { AVATAR } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { BUTTON } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { BUTTON } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { BUTTON } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { themr } from 'react-css-themr';
|
||||
import classnames from 'classnames';
|
||||
import { CARD } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { themr } from 'react-css-themr';
|
||||
import classnames from 'classnames';
|
||||
import { CARD } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { themr } from 'react-css-themr';
|
||||
import classnames from 'classnames';
|
||||
import { CARD } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { themr } from 'react-css-themr';
|
||||
import classnames from 'classnames';
|
||||
import { CARD } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { CARD } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import styleShape from 'react-style-proptype';
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import styleShape from 'react-style-proptype';
|
||||
import { themr } from 'react-css-themr';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { CHIP } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import CssTransitionGroup from 'react-addons-css-transition-group';
|
||||
import { range, getAnimationModule } from '../utils/utils';
|
||||
import time from '../utils/time';
|
||||
|
@ -9,19 +10,19 @@ const DIRECTION_STEPS = { left: -1, right: 1 };
|
|||
const factory = (IconButton) => {
|
||||
class Calendar extends Component {
|
||||
static propTypes = {
|
||||
disabledDates: React.PropTypes.arrayOf(PropTypes.instanceOf(Date)),
|
||||
disabledDates: PropTypes.arrayOf(PropTypes.instanceOf(Date)),
|
||||
display: PropTypes.oneOf(['months', 'years']),
|
||||
enabledDates: React.PropTypes.arrayOf(PropTypes.instanceOf(Date)),
|
||||
enabledDates: PropTypes.arrayOf(PropTypes.instanceOf(Date)),
|
||||
handleSelect: PropTypes.func,
|
||||
locale: React.PropTypes.oneOfType([
|
||||
React.PropTypes.string,
|
||||
React.PropTypes.object,
|
||||
locale: PropTypes.oneOfType([
|
||||
PropTypes.string,
|
||||
PropTypes.object,
|
||||
]),
|
||||
maxDate: PropTypes.instanceOf(Date),
|
||||
minDate: PropTypes.instanceOf(Date),
|
||||
onChange: PropTypes.func,
|
||||
selectedDate: PropTypes.instanceOf(Date),
|
||||
sundayFirstDayOfWeek: React.PropTypes.bool,
|
||||
sundayFirstDayOfWeek: PropTypes.bool,
|
||||
theme: PropTypes.shape({
|
||||
active: PropTypes.string,
|
||||
calendar: PropTypes.string,
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import time from '../utils/time';
|
||||
|
||||
|
|
|
@ -1,21 +1,22 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { range } from '../utils/utils';
|
||||
import time from '../utils/time';
|
||||
import CalendarDay from './CalendarDay';
|
||||
|
||||
class Month extends Component {
|
||||
static propTypes = {
|
||||
disabledDates: React.PropTypes.arrayOf(PropTypes.instanceOf(Date)),
|
||||
enabledDates: React.PropTypes.arrayOf(PropTypes.instanceOf(Date)),
|
||||
locale: React.PropTypes.oneOfType([
|
||||
React.PropTypes.string,
|
||||
React.PropTypes.object,
|
||||
disabledDates: PropTypes.arrayOf(PropTypes.instanceOf(Date)),
|
||||
enabledDates: PropTypes.arrayOf(PropTypes.instanceOf(Date)),
|
||||
locale: PropTypes.oneOfType([
|
||||
PropTypes.string,
|
||||
PropTypes.object,
|
||||
]),
|
||||
maxDate: PropTypes.instanceOf(Date),
|
||||
minDate: PropTypes.instanceOf(Date),
|
||||
onDayClick: PropTypes.func,
|
||||
selectedDate: PropTypes.instanceOf(Date),
|
||||
sundayFirstDayOfWeek: React.PropTypes.bool,
|
||||
sundayFirstDayOfWeek: PropTypes.bool,
|
||||
theme: PropTypes.shape({
|
||||
days: PropTypes.string,
|
||||
month: PropTypes.string,
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { DATE_PICKER } from '../identifiers';
|
||||
|
@ -18,8 +19,8 @@ const factory = (Input, DatePickerDialog) => {
|
|||
autoOk: PropTypes.bool,
|
||||
cancelLabel: PropTypes.string,
|
||||
className: PropTypes.string,
|
||||
disabledDates: React.PropTypes.arrayOf(PropTypes.instanceOf(Date)),
|
||||
enabledDates: React.PropTypes.arrayOf(PropTypes.instanceOf(Date)),
|
||||
disabledDates: PropTypes.arrayOf(PropTypes.instanceOf(Date)),
|
||||
enabledDates: PropTypes.arrayOf(PropTypes.instanceOf(Date)),
|
||||
error: PropTypes.string,
|
||||
icon: PropTypes.oneOfType([
|
||||
PropTypes.string,
|
||||
|
@ -28,9 +29,9 @@ const factory = (Input, DatePickerDialog) => {
|
|||
inputClassName: PropTypes.string,
|
||||
inputFormat: PropTypes.func,
|
||||
label: PropTypes.string,
|
||||
locale: React.PropTypes.oneOfType([
|
||||
React.PropTypes.string,
|
||||
React.PropTypes.object,
|
||||
locale: PropTypes.oneOfType([
|
||||
PropTypes.string,
|
||||
PropTypes.object,
|
||||
]),
|
||||
maxDate: PropTypes.instanceOf(Date),
|
||||
minDate: PropTypes.instanceOf(Date),
|
||||
|
@ -43,7 +44,7 @@ const factory = (Input, DatePickerDialog) => {
|
|||
onKeyPress: PropTypes.func,
|
||||
onOverlayClick: PropTypes.func,
|
||||
readonly: PropTypes.bool,
|
||||
sundayFirstDayOfWeek: React.PropTypes.bool,
|
||||
sundayFirstDayOfWeek: PropTypes.bool,
|
||||
theme: PropTypes.shape({
|
||||
container: PropTypes.string,
|
||||
input: PropTypes.string,
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import time from '../utils/time';
|
||||
|
||||
|
@ -9,11 +10,11 @@ const factory = (Dialog, Calendar) => {
|
|||
autoOk: PropTypes.bool,
|
||||
cancelLabel: PropTypes.string,
|
||||
className: PropTypes.string,
|
||||
disabledDates: React.PropTypes.arrayOf(PropTypes.instanceOf(Date)),
|
||||
enabledDates: React.PropTypes.arrayOf(PropTypes.instanceOf(Date)),
|
||||
locale: React.PropTypes.oneOfType([
|
||||
React.PropTypes.string,
|
||||
React.PropTypes.object,
|
||||
disabledDates: PropTypes.arrayOf(PropTypes.instanceOf(Date)),
|
||||
enabledDates: PropTypes.arrayOf(PropTypes.instanceOf(Date)),
|
||||
locale: PropTypes.oneOfType([
|
||||
PropTypes.string,
|
||||
PropTypes.object,
|
||||
]),
|
||||
maxDate: PropTypes.instanceOf(Date),
|
||||
minDate: PropTypes.instanceOf(Date),
|
||||
|
@ -23,7 +24,7 @@ const factory = (Dialog, Calendar) => {
|
|||
onEscKeyDown: PropTypes.func,
|
||||
onOverlayClick: PropTypes.func,
|
||||
onSelect: PropTypes.func,
|
||||
sundayFirstDayOfWeek: React.PropTypes.bool,
|
||||
sundayFirstDayOfWeek: PropTypes.bool,
|
||||
theme: PropTypes.shape({
|
||||
button: PropTypes.string,
|
||||
calendarWrapper: PropTypes.string,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* eslint-disable jsx-a11y/aria-role */
|
||||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { themr } from 'react-css-themr';
|
||||
import classnames from 'classnames';
|
||||
import { DIALOG } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { themr } from 'react-css-themr';
|
||||
import classnames from 'classnames';
|
||||
import Portal from '../hoc/Portal';
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* eslint-disable */
|
||||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import ReactDOM from 'react-dom';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
|
||||
const FontIcon = ({ alt, children, className, theme, value, ...other}) => ( // eslint-disable-line
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
const ActivableRendererFactory = (options = { delay: 500 }) =>
|
||||
ActivableComponent => class ActivableRenderer extends Component {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import ReactDOM from 'react-dom';
|
||||
|
||||
class Portal extends Component {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { INPUT } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { cloneElement, Component, PropTypes } from 'react';
|
||||
import React, { cloneElement, Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { getViewport } from '../utils/utils';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import InjectDrawer from '../drawer/Drawer';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import cn from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { LAYOUT } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import InjectDrawer from '../drawer/Drawer';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { LINK } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { LIST } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { LIST } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { LIST } from '../identifiers';
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { LIST } from '../identifiers';
|
||||
import InjectListItemContent from './ListItemContent';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { LIST } from '../identifiers';
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { LIST } from '../identifiers';
|
||||
import InjectListItemAction from './ListItemAction';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { LIST } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { LIST } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { LIST } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { LIST } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { MENU } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import ReactDOM from 'react-dom';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { MENU } from '../identifiers';
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { MENU } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { NAVIGATION } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { OVERLAY } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { PROGRESS_BAR } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
const factory = (ripple) => {
|
||||
const Radio = ({ checked, onMouseDown, theme, ...other }) => (
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { RADIO } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { RADIO } from '../identifiers';
|
||||
import InjectRadioButton from './RadioButton';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import ReactDOM from 'react-dom';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import ReactDOM from 'react-dom';
|
||||
import classnames from 'classnames';
|
||||
import styleShape from 'react-style-proptype';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { SNACKBAR } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { SWITCH } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
const factory = (ripple) => {
|
||||
const Thumb = ({ onMouseDown, theme, ...other }) => (
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes, Component, cloneElement } from 'react';
|
||||
import React, { Component, cloneElement } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import filterReactChildren from '../utils/filter-react-children';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { TABLE } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes, cloneElement } from 'react';
|
||||
import React, { Component, cloneElement } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { TABLE } from '../identifiers';
|
||||
import InjectCheckbox from '../checkbox/Checkbox';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { cloneElement, Component, PropTypes } from 'react';
|
||||
import React, { cloneElement, Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { TABLE } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { FontIcon } from '../font_icon';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { TABS } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { TABS } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import CssTransitionGroup from 'react-addons-css-transition-group';
|
||||
import { getAnimationModule } from '../utils/utils';
|
||||
import time from '../utils/time';
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* eslint-disable no-mixed-operators */
|
||||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
|
||||
class Face extends Component {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { angle360FromPositions } from '../utils/utils';
|
||||
import events from '../utils/events';
|
||||
import prefixer from '../utils/prefixer';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { range } from '../utils/utils';
|
||||
import Hand from './ClockHand';
|
||||
import Face from './ClockFace';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { range } from '../utils/utils';
|
||||
import Hand from './ClockHand';
|
||||
import Face from './ClockFace';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import { TIME_PICKER } from '../identifiers';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import cn from 'classnames';
|
||||
import time from '../utils/time';
|
||||
import Clock from './Clock';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { themr } from 'react-css-themr';
|
||||
import Portal from '../hoc/Portal';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { AppBar } from 'react-toolbox';
|
||||
import { Link } from 'react-router';
|
||||
import Logo from '../logo';
|
||||
|
@ -20,7 +21,7 @@ const MainAppBar = (props) => {
|
|||
};
|
||||
|
||||
MainAppBar.propTypes = {
|
||||
className: React.PropTypes.string
|
||||
className: PropTypes.string
|
||||
};
|
||||
|
||||
MainAppBar.defaultProps = {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import CodeMirror from 'codemirror';
|
||||
import style from './style.css';
|
||||
import 'codemirror/lib/codemirror.css';
|
||||
|
@ -7,13 +8,13 @@ import './one-dark.css';
|
|||
|
||||
class Editor extends React.Component {
|
||||
static propTypes = {
|
||||
className: React.PropTypes.string,
|
||||
codeText: React.PropTypes.string,
|
||||
lineNumbers: React.PropTypes.bool,
|
||||
onChange: React.PropTypes.func,
|
||||
readOnly: React.PropTypes.bool,
|
||||
tabSize: React.PropTypes.number,
|
||||
theme: React.PropTypes.string
|
||||
className: PropTypes.string,
|
||||
codeText: PropTypes.string,
|
||||
lineNumbers: PropTypes.bool,
|
||||
onChange: PropTypes.func,
|
||||
readOnly: PropTypes.bool,
|
||||
tabSize: PropTypes.number,
|
||||
theme: PropTypes.string
|
||||
};
|
||||
|
||||
static defaultProps = {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { List, ListItem } from 'react-toolbox';
|
||||
import classnames from 'classnames';
|
||||
import components from '../modules/components';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import Editor from '../../../editor';
|
||||
import Preview from '../../../preview';
|
||||
import codeText from '../modules/examples/example.txt';
|
||||
|
@ -6,7 +7,7 @@ import style from './playground.css';
|
|||
|
||||
class Playground extends React.Component {
|
||||
static propTypes = {
|
||||
className: React.PropTypes.string
|
||||
className: PropTypes.string
|
||||
};
|
||||
|
||||
state = {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { Button } from 'react-toolbox';
|
||||
import Appbar from '../../../components/appbar';
|
||||
|
@ -21,13 +22,13 @@ const LoadExampleButton = props => (
|
|||
);
|
||||
|
||||
LoadExampleButton.propTypes = {
|
||||
onClick: React.PropTypes.func
|
||||
onClick: PropTypes.func
|
||||
};
|
||||
|
||||
class Main extends React.Component {
|
||||
static propTypes = {
|
||||
onClick: React.PropTypes.func,
|
||||
params: React.PropTypes.object
|
||||
onClick: PropTypes.func,
|
||||
params: PropTypes.object
|
||||
};
|
||||
|
||||
state = {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import style from './style.css';
|
||||
|
||||
const Logo = (props) => {
|
||||
|
@ -16,7 +17,7 @@ const Logo = (props) => {
|
|||
};
|
||||
|
||||
Logo.propTypes = {
|
||||
className: React.PropTypes.string
|
||||
className: PropTypes.string
|
||||
};
|
||||
|
||||
export default Logo;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import 'highlight.js/styles/github-gist';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import style from './style.css';
|
||||
|
||||
const Markdown = (props) => {
|
||||
|
@ -14,8 +15,8 @@ const Markdown = (props) => {
|
|||
};
|
||||
|
||||
Markdown.propTypes = {
|
||||
className: React.PropTypes.string,
|
||||
markdown: React.PropTypes.string.isRequired
|
||||
className: PropTypes.string,
|
||||
markdown: PropTypes.string.isRequired
|
||||
};
|
||||
|
||||
Markdown.defaultProps = {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Link } from 'react-router';
|
||||
|
||||
const Navigation = props => (
|
||||
|
@ -12,8 +13,8 @@ const Navigation = props => (
|
|||
);
|
||||
|
||||
Navigation.propTypes = {
|
||||
activeClassName: React.PropTypes.string,
|
||||
className: React.PropTypes.string
|
||||
activeClassName: PropTypes.string,
|
||||
className: PropTypes.string
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* eslint-disable no-eval*/
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { transform } from 'babel-standalone';
|
||||
import * as ReactToolbox from 'react-toolbox';
|
||||
|
@ -9,9 +10,9 @@ const ERROR_TIMEOUT = 500;
|
|||
|
||||
const Preview = React.createClass({
|
||||
propTypes: {
|
||||
className: React.PropTypes.string,
|
||||
code: React.PropTypes.string.isRequired,
|
||||
scope: React.PropTypes.object
|
||||
className: PropTypes.string,
|
||||
code: PropTypes.string.isRequired,
|
||||
scope: PropTypes.object
|
||||
},
|
||||
|
||||
getDefaultProps () {
|
||||
|
|
|
@ -76,6 +76,7 @@
|
|||
"postcss-mixins": "^5.4.0",
|
||||
"postcss-reporter": "^3.0.0",
|
||||
"pre-commit": "^1.2.2",
|
||||
"prop-types": "^15.5.7",
|
||||
"react": "^15.4.2",
|
||||
"react-addons-test-utils": "^15.4.2",
|
||||
"react-dom": "^15.4.2",
|
||||
|
@ -133,6 +134,7 @@
|
|||
},
|
||||
"peerDependencies": {
|
||||
"classnames": "^2.2.0",
|
||||
"prop-types": "^15.5.7",
|
||||
"react": "^0.14 || ~15.4.0",
|
||||
"react-addons-css-transition-group": "^0.14.0 || ~15.4.0",
|
||||
"react-dom": "^0.14.0 || ~15.4.0"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import Button from '../../components/button';
|
||||
import Dialog from '../../components/dialog';
|
||||
import Dropdown from '../../components/dropdown';
|
||||
|
|
|
@ -5734,6 +5734,12 @@ promise@^7.1.1:
|
|||
dependencies:
|
||||
asap "~2.0.3"
|
||||
|
||||
prop-types@^15.5.7:
|
||||
version "15.5.7"
|
||||
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.7.tgz#231c4f29cdd82e355011d4889386ca9059544dd1"
|
||||
dependencies:
|
||||
fbjs "^0.8.9"
|
||||
|
||||
proxy-addr@~1.1.3:
|
||||
version "1.1.3"
|
||||
resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-1.1.3.tgz#dc97502f5722e888467b3fa2297a7b1ff47df074"
|
||||
|
|
Loading…
Reference in New Issue