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