Skip to content

Commit

Permalink
Fix TrapFocus import with @material-ui/core v4.10.1 (#1857)
Browse files Browse the repository at this point in the history
* Update to mui-core 4.10

* Remove yan.lock deduplicates

* Update peer dependency

* Upgrade jss as well
  • Loading branch information
dmtrKovalenko committed Jun 4, 2020
1 parent fb9ca87 commit 155de8b
Show file tree
Hide file tree
Showing 5 changed files with 182 additions and 1,260 deletions.
24 changes: 12 additions & 12 deletions lib/.size-snapshot.json
@@ -1,26 +1,26 @@
{
"material-ui-pickers.esm.js": {
"bundled": 199504,
"minified": 106764,
"gzipped": 27595,
"bundled": 202452,
"minified": 105599,
"gzipped": 27253,
"treeshaked": {
"rollup": {
"code": 86504,
"import_statements": 2171
"code": 85727,
"import_statements": 2123
},
"webpack": {
"code": 96151
"code": 95328
}
}
},
"material-ui-pickers.umd.js": {
"bundled": 315142,
"minified": 121700,
"gzipped": 34668
"bundled": 319695,
"minified": 121258,
"gzipped": 34341
},
"material-ui-pickers.umd.min.js": {
"bundled": 270203,
"minified": 111866,
"gzipped": 31847
"bundled": 274755,
"minified": 111430,
"gzipped": 31546
}
}
2 changes: 1 addition & 1 deletion lib/package.json
Expand Up @@ -32,7 +32,7 @@
"email": "dmtr.kovalenko@outlook.com"
},
"peerDependencies": {
"@material-ui/core": "^4.9.14",
"@material-ui/core": "^4.10.1",
"@material-ui/lab": "^4.0.0-alpha.54",
"@types/react": "^16.8.6",
"react": "^16.8.4",
Expand Down
2 changes: 1 addition & 1 deletion lib/rollup.config.js
Expand Up @@ -36,7 +36,7 @@ const globals = {
'@material-ui/core/Toolbar': 'material-ui.Toolbar',
'@material-ui/core/Typography': 'material-ui.Typography',
'@material-ui/core/useMediaQuery': 'material-ui.useMediaQuery',
'@material-ui/core/Modal/TrapFocus': 'material-ui.TrapFocus',
'@material-ui/core/Unstable_TrapFocus': 'material-ui.Unstable_TrapFocus',
'@material-ui/core/Grow': 'material-ui.Grow',
'@material-ui/core/Popper': 'material-ui.Popper',
};
Expand Down
3 changes: 1 addition & 2 deletions lib/src/wrappers/DesktopPopperWrapper.tsx
Expand Up @@ -2,8 +2,7 @@ import * as React from 'react';
import clsx from 'clsx';
import Grow from '@material-ui/core/Grow';
import Paper from '@material-ui/core/Paper';
// @ts-ignore TODO make definitions
import TrapFocus from '@material-ui/core/Modal/TrapFocus';
import TrapFocus from '@material-ui/core/Unstable_TrapFocus';
import Popper, { PopperProps } from '@material-ui/core/Popper';
import { WrapperProps } from './Wrapper';
import { StaticWrapperProps } from './StaticWrapper';
Expand Down

1 comment on commit 155de8b

@vercel
Copy link

@vercel vercel bot commented on 155de8b Jun 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.