Skip to content
Snippets Groups Projects
Commit 452dc918 authored by 2SC1815J's avatar 2SC1815J
Browse files

Merge commit 'c862d2c1' into annotation-on-video

parents 0e28ec3b c862d2c1
Branches
Tags
No related merge requests found
...@@ -42,8 +42,10 @@ describe('WindowTopMenu', () => { ...@@ -42,8 +42,10 @@ describe('WindowTopMenu', () => {
expect(wrapper.find(Menu).first().props().anchorEl).toBe(null); expect(wrapper.find(Menu).first().props().anchorEl).toBe(null);
expect(wrapper.find(Menu).first().props().open).toBe(false); expect(wrapper.find(Menu).first().props().open).toBe(false);
expect(wrapper.find(Menu).first().props().onClose).toBe(handleClose); expect(wrapper.find(Menu).first().props().onClose).toBe(handleClose);
expect(wrapper.find(Menu).first().props().onEntering).toBe(toggleDraggingEnabled); expect(wrapper.find(Menu).first().props().TransitionProps.onEntering)
expect(wrapper.find(Menu).first().props().onExit).toBe(toggleDraggingEnabled); .toBe(toggleDraggingEnabled);
expect(wrapper.find(Menu).first().props().TransitionProps.onExit)
.toBe(toggleDraggingEnabled);
}); });
it('passses correct props to <Menu/> when achor element given', () => { it('passses correct props to <Menu/> when achor element given', () => {
...@@ -54,7 +56,9 @@ describe('WindowTopMenu', () => { ...@@ -54,7 +56,9 @@ describe('WindowTopMenu', () => {
expect(wrapper.find(Menu).first().props().anchorEl).toBe(anchorEl); expect(wrapper.find(Menu).first().props().anchorEl).toBe(anchorEl);
expect(wrapper.find(Menu).first().props().open).toBe(true); expect(wrapper.find(Menu).first().props().open).toBe(true);
expect(wrapper.find(Menu).first().props().onClose).toBe(handleClose); expect(wrapper.find(Menu).first().props().onClose).toBe(handleClose);
expect(wrapper.find(Menu).first().props().onEntering).toBe(toggleDraggingEnabled); expect(wrapper.find(Menu).first().props().TransitionProps.onEntering)
expect(wrapper.find(Menu).first().props().onExit).toBe(toggleDraggingEnabled); .toBe(toggleDraggingEnabled);
expect(wrapper.find(Menu).first().props().TransitionProps.onExit)
.toBe(toggleDraggingEnabled);
}); });
}); });
...@@ -65,7 +65,7 @@ describe('WorkspaceAddButton', () => { ...@@ -65,7 +65,7 @@ describe('WorkspaceAddButton', () => {
const wrapper = createWrapper({ useExtendedFab: false }); const wrapper = createWrapper({ useExtendedFab: false });
expect(extendedWrapper.find(Fab).props().variant).toBe('extended'); expect(extendedWrapper.find(Fab).props().variant).toBe('extended');
expect(wrapper.find(Fab).props().variant).toEqual('round'); expect(wrapper.find(Fab).props().variant).toEqual('circular');
}); });
}); });
}); });
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
], ],
"repository": "https://github.com/ProjectMirador/mirador", "repository": "https://github.com/ProjectMirador/mirador",
"dependencies": { "dependencies": {
"@material-ui/core": "^4.11.0", "@material-ui/core": "^4.12.3",
"@material-ui/icons": "^4.9.1", "@material-ui/icons": "^4.9.1",
"@material-ui/lab": "^4.0.0-alpha.53", "@material-ui/lab": "^4.0.0-alpha.53",
"@researchgate/react-intersection-observer": "^1.0.0", "@researchgate/react-intersection-observer": "^1.0.0",
......
...@@ -4,7 +4,7 @@ import Fullscreen from 'react-full-screen'; ...@@ -4,7 +4,7 @@ import Fullscreen from 'react-full-screen';
import { I18nextProvider } from 'react-i18next'; import { I18nextProvider } from 'react-i18next';
import { LiveAnnouncer } from 'react-aria-live'; import { LiveAnnouncer } from 'react-aria-live';
import { import {
ThemeProvider, StylesProvider, createMuiTheme, jssPreset, createGenerateClassName, ThemeProvider, StylesProvider, createTheme, jssPreset, createGenerateClassName,
} from '@material-ui/core/styles'; } from '@material-ui/core/styles';
import { DndContext, DndProvider } from 'react-dnd'; import { DndContext, DndProvider } from 'react-dnd';
import MultiBackend from 'react-dnd-multi-backend'; import MultiBackend from 'react-dnd-multi-backend';
...@@ -100,7 +100,7 @@ export class AppProviders extends Component { ...@@ -100,7 +100,7 @@ export class AppProviders extends Component {
<I18nextProvider i18n={this.i18n}> <I18nextProvider i18n={this.i18n}>
<LiveAnnouncer> <LiveAnnouncer>
<ThemeProvider <ThemeProvider
theme={createMuiTheme(theme)} theme={createTheme(theme)}
> >
<StylesProvider <StylesProvider
jss={create({ plugins: [...jssPreset().plugins, rtl()] })} jss={create({ plugins: [...jssPreset().plugins, rtl()] })}
......
...@@ -23,7 +23,7 @@ export class ManifestListItemError extends Component { ...@@ -23,7 +23,7 @@ export class ManifestListItemError extends Component {
<Grid container> <Grid container>
<Grid container item xs={12} sm={6}> <Grid container item xs={12} sm={6}>
<Grid item xs={4} sm={3}> <Grid item xs={4} sm={3}>
<Grid container justify="center"> <Grid container justifyContent="center">
<ErrorIcon className={classes.errorIcon} /> <ErrorIcon className={classes.errorIcon} />
</Grid> </Grid>
</Grid> </Grid>
...@@ -35,7 +35,7 @@ export class ManifestListItemError extends Component { ...@@ -35,7 +35,7 @@ export class ManifestListItemError extends Component {
</Grid> </Grid>
<Grid container> <Grid container>
<Grid container item xs={12} sm={6} justify="flex-end"> <Grid container item xs={12} sm={6} justifyContent="flex-end">
<Grid item> <Grid item>
<Button onClick={() => { onDismissClick(manifestId); }}> <Button onClick={() => { onDismissClick(manifestId); }}>
{t('dismiss')} {t('dismiss')}
......
...@@ -30,7 +30,7 @@ export class SelectCollection extends Component { ...@@ -30,7 +30,7 @@ export class SelectCollection extends Component {
t, t,
} = this.props; } = this.props;
return ( return (
<Grid container justify="center" alignItems="center"> <Grid container justifyContent="center" alignItems="center">
<Grid container direction="column" alignItems="center"> <Grid container direction="column" alignItems="center">
<Typography variant="h4" paragraph> <Typography variant="h4" paragraph>
<em> <em>
......
...@@ -54,7 +54,9 @@ export class WindowList extends Component { ...@@ -54,7 +54,9 @@ export class WindowList extends Component {
anchorEl={anchorEl} anchorEl={anchorEl}
open={Boolean(anchorEl)} open={Boolean(anchorEl)}
onClose={handleClose} onClose={handleClose}
onEntering={WindowList.focus2ndListIitem} TransitionProps={{
onEntering: WindowList.focus2ndListIitem,
}}
> >
<ListSubheader role="presentation" selected={false} disabled tabIndex="-1"> <ListSubheader role="presentation" selected={false} disabled tabIndex="-1">
{t('openWindows')} {t('openWindows')}
......
...@@ -47,8 +47,10 @@ export class WindowTopMenu extends Component { ...@@ -47,8 +47,10 @@ export class WindowTopMenu extends Component {
getContentAnchorEl={null} getContentAnchorEl={null}
open={Boolean(anchorEl)} open={Boolean(anchorEl)}
onClose={handleClose} onClose={handleClose}
onEntering={toggleDraggingEnabled} TransitionProps={{
onExit={toggleDraggingEnabled} onEntering: toggleDraggingEnabled,
onExit: toggleDraggingEnabled,
}}
orientation="horizontal" orientation="horizontal"
> >
<WindowViewSettings windowId={windowId} handleClose={handleClose} /> <WindowViewSettings windowId={windowId} handleClose={handleClose} />
......
...@@ -30,7 +30,7 @@ export class WorkspaceAddButton extends Component { ...@@ -30,7 +30,7 @@ export class WorkspaceAddButton extends Component {
} }
className={classes.fab} className={classes.fab}
classes={{ primary: classes.fabPrimary, secondary: classes.fabSecondary }} classes={{ primary: classes.fabPrimary, secondary: classes.fabSecondary }}
variant={useExtendedFab ? 'extended' : 'round'} variant={useExtendedFab ? 'extended' : 'circular'}
onClick={() => { setWorkspaceAddVisibility(!isWorkspaceAddVisible); }} onClick={() => { setWorkspaceAddVisibility(!isWorkspaceAddVisible); }}
> >
{ {
......
...@@ -2,7 +2,7 @@ import { compose } from 'redux'; ...@@ -2,7 +2,7 @@ import { compose } from 'redux';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { withTranslation } from 'react-i18next'; import { withTranslation } from 'react-i18next';
import { withStyles } from '@material-ui/core/styles'; import { withStyles } from '@material-ui/core/styles';
import { fade } from '@material-ui/core/styles/colorManipulator'; import { alpha } from '@material-ui/core/styles/colorManipulator';
import { withPlugins } from '../extend/withPlugins'; import { withPlugins } from '../extend/withPlugins';
import { SidebarIndexTableOfContents } from '../components/SidebarIndexTableOfContents'; import { SidebarIndexTableOfContents } from '../components/SidebarIndexTableOfContents';
import { import {
...@@ -65,7 +65,7 @@ const styles = theme => ({ ...@@ -65,7 +65,7 @@ const styles = theme => ({
}, },
}, },
visibleNode: { visibleNode: {
backgroundColor: fade(theme.palette.highlights.primary, 0.35), backgroundColor: alpha(theme.palette.highlights.primary, 0.35),
display: 'inline', display: 'inline',
}, },
}); });
......
import { compose } from 'redux'; import { compose } from 'redux';
import { withTranslation } from 'react-i18next'; import { withTranslation } from 'react-i18next';
import { withStyles } from '@material-ui/core/styles'; import { withStyles } from '@material-ui/core/styles';
import { fade } from '@material-ui/core/styles/colorManipulator'; import { alpha } from '@material-ui/core/styles/colorManipulator';
import { withPlugins } from '../extend/withPlugins'; import { withPlugins } from '../extend/withPlugins';
import { WindowAuthenticationBar } from '../components/WindowAuthenticationBar'; import { WindowAuthenticationBar } from '../components/WindowAuthenticationBar';
...@@ -13,7 +13,7 @@ import { WindowAuthenticationBar } from '../components/WindowAuthenticationBar'; ...@@ -13,7 +13,7 @@ import { WindowAuthenticationBar } from '../components/WindowAuthenticationBar';
const styles = theme => ({ const styles = theme => ({
buttonInvert: { buttonInvert: {
'&:hover': { '&:hover': {
backgroundColor: fade( backgroundColor: alpha(
theme.palette.secondary.contrastText, 1 - theme.palette.action.hoverOpacity, theme.palette.secondary.contrastText, 1 - theme.palette.action.hoverOpacity,
), ),
}, },
......
...@@ -2,7 +2,7 @@ import { connect } from 'react-redux'; ...@@ -2,7 +2,7 @@ import { connect } from 'react-redux';
import { compose } from 'redux'; import { compose } from 'redux';
import { withSize } from 'react-sizeme'; import { withSize } from 'react-sizeme';
import { withStyles } from '@material-ui/core'; import { withStyles } from '@material-ui/core';
import { fade } from '@material-ui/core/styles/colorManipulator'; import { alpha } from '@material-ui/core/styles/colorManipulator';
import { withPlugins } from '../extend/withPlugins'; import { withPlugins } from '../extend/withPlugins';
import { getWorkspace } from '../state/selectors'; import { getWorkspace } from '../state/selectors';
import { WindowCanvasNavigationControls } from '../components/WindowCanvasNavigationControls'; import { WindowCanvasNavigationControls } from '../components/WindowCanvasNavigationControls';
...@@ -28,7 +28,7 @@ const styles = theme => ({ ...@@ -28,7 +28,7 @@ const styles = theme => ({
flexDirection: 'column', flexDirection: 'column',
}, },
controls: { controls: {
backgroundColor: fade(theme.palette.background.paper, 0.5), backgroundColor: alpha(theme.palette.background.paper, 0.5),
bottom: 0, bottom: 0,
position: 'absolute', position: 'absolute',
width: '100%', width: '100%',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment