diff --git a/docs/package.json b/docs/package.json index 2fc3de29e..aeabed5f0 100644 --- a/docs/package.json +++ b/docs/package.json @@ -21,9 +21,9 @@ "@date-io/hijri": "^2.6.0", "@date-io/jalaali": "^2.6.0", "@mapbox/rehype-prism": "^0.4.0", - "@material-ui/core": "^4.11.0", - "@material-ui/icons": "^4.9.1", - "@material-ui/lab": "^4.0.0-alpha.54", + "@material-ui/core": "^5.0.0-alpha.5", + "@material-ui/icons": "^5.0.0-alpha.4", + "@material-ui/lab": "^5.0.0-alpha.5", "@material-ui/pickers": "^4.0.0-alpha.1", "@now/node": "^1.7.3", "@types/fuzzy-search": "^2.1.0", diff --git a/docs/pages/_error.tsx b/docs/pages/_error.tsx index cdbf81aeb..20320aeb5 100644 --- a/docs/pages/_error.tsx +++ b/docs/pages/_error.tsx @@ -23,9 +23,9 @@ class Error extends React.Component<{ statusCode: number }> { const { statusCode } = this.props; return ( - + - + 0.33 ? 'sad' : 'shocked'} /> diff --git a/docs/pages/api/props.tsx b/docs/pages/api/props.tsx index 3a6eb1035..3c8ade85b 100644 --- a/docs/pages/api/props.tsx +++ b/docs/pages/api/props.tsx @@ -29,13 +29,13 @@ const Docs: React.FC = ({ router }) => { return ( - +

{title}

{description}

- + diff --git a/docs/pages/guides/FormikOurValidation.example.tsx b/docs/pages/guides/FormikOurValidation.example.tsx index 89424a41e..d7043753e 100644 --- a/docs/pages/guides/FormikOurValidation.example.tsx +++ b/docs/pages/guides/FormikOurValidation.example.tsx @@ -93,7 +93,7 @@ export default function FormikExample() { {({ values, errors }) => (
- + ( - + diff --git a/docs/pages/index/Landing.tsx b/docs/pages/index/Landing.tsx index da2d53e70..073d07b68 100644 --- a/docs/pages/index/Landing.tsx +++ b/docs/pages/index/Landing.tsx @@ -106,8 +106,8 @@ function Landing() { description="Accessible, customizable, delightful date & time pickers for @material-ui/core" /> - - + +
@@ -139,7 +139,7 @@ function Landing() { - + DatePicker - + TimePicker - + ): Eleme export const FakeTransitionComponent = React.forwardRef( function FakeTransitionComponent({ children }, ref) { - return
{children}
; + // set tabIndex in case it is used as a child of + return ( +
+ {children} +
+ ); } ); diff --git a/lib/src/_shared/ArrowSwitcher.tsx b/lib/src/_shared/ArrowSwitcher.tsx index a38378532..1d336d561 100644 --- a/lib/src/_shared/ArrowSwitcher.tsx +++ b/lib/src/_shared/ArrowSwitcher.tsx @@ -62,7 +62,7 @@ export const useStyles = makeStyles( { name: 'MuiPickersArrowSwitcher' } ); -const PureArrowSwitcher: React.FC = (props) => { +const PureArrowSwitcher = React.forwardRef((props, ref) => { const { className, isLeftDisabled, @@ -85,7 +85,7 @@ const PureArrowSwitcher: React.FC = (props) => { const isRtl = theme.direction === 'rtl'; return ( -
+
= (props) => {
); -}; +}); PureArrowSwitcher.displayName = 'ArrowSwitcher'; diff --git a/lib/src/_shared/PickerToolbar.tsx b/lib/src/_shared/PickerToolbar.tsx index c3a2f8dff..db0290078 100644 --- a/lib/src/_shared/PickerToolbar.tsx +++ b/lib/src/_shared/PickerToolbar.tsx @@ -85,7 +85,7 @@ const PickerToolbar: React.SFC = ({