-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: upgrade material-ui to 4.9.2 #1101
Changes from all commits
ded55a1
67d511f
85187a8
814724f
30ccfd8
ff8305c
662e4ca
ae092a7
40f75e8
dda2e4f
708a1ef
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ exports[`checkbox interaction should render checked checkbox 1`] = ` | |
/> | ||
<div | ||
class="Checkbox-checkedIcon" | ||
font-size="default" | ||
/> | ||
</span> | ||
</span> | ||
|
@@ -64,6 +65,7 @@ exports[`renders default checkbox without label 1`] = ` | |
/> | ||
<div | ||
class="Checkbox-uncheckedIcon" | ||
font-size="default" | ||
/> | ||
</span> | ||
</span> | ||
|
@@ -93,6 +95,7 @@ exports[`renders disabled state 1`] = ` | |
/> | ||
<div | ||
class="Checkbox-uncheckedIcon" | ||
font-size="default" | ||
/> | ||
</span> | ||
</span> | ||
|
@@ -120,6 +123,7 @@ exports[`renders indeterminate state 1`] = ` | |
/> | ||
<div | ||
class="Checkbox-indeterminateIcon" | ||
font-size="default" | ||
/> | ||
</span> | ||
</span> | ||
|
@@ -150,6 +154,7 @@ exports[`should render default checkbox with label 1`] = ` | |
/> | ||
<div | ||
class="Checkbox-uncheckedIcon" | ||
font-size="default" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm, font-size? I've never seen something like this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah, interesting how they use it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's part of MUI upgrade, do you think I should re-check impact on Picasso? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no, don't think so, just interesting 😃 |
||
/> | ||
</span> | ||
</span> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,12 +25,12 @@ exports[`renders Modal 1`] = ` | |
/> | ||
<div | ||
class="MuiDialog-container PicassoModal-container MuiDialog-scrollPaper" | ||
role="document" | ||
role="none presentation" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I like to don't care about such things 👍 thank you MUI 😄 |
||
style="opacity: 1; webkit-transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;" | ||
tabindex="-1" | ||
> | ||
<div | ||
class="MuiPaper-root MuiPaper-elevation2 MuiDialog-paper PicassoModal-paper PicassoModal-medium MuiDialog-paperScrollPaper MuiDialog-paperWidthFalse" | ||
class="MuiPaper-root MuiDialog-paper PicassoModal-paper PicassoModal-medium MuiDialog-paperScrollPaper MuiDialog-paperWidthFalse MuiPaper-elevation2" | ||
role="dialog" | ||
> | ||
<div | ||
|
@@ -118,12 +118,12 @@ exports[`useModals opens and closes modal 1`] = ` | |
/> | ||
<div | ||
class="MuiDialog-container PicassoModal-container MuiDialog-scrollPaper" | ||
role="document" | ||
role="none presentation" | ||
style="opacity: 1; webkit-transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;" | ||
tabindex="-1" | ||
> | ||
<div | ||
class="MuiPaper-root MuiPaper-elevation2 MuiDialog-paper PicassoModal-paper PicassoModal-medium MuiDialog-paperScrollPaper MuiDialog-paperWidthFalse" | ||
class="MuiPaper-root MuiDialog-paper PicassoModal-paper PicassoModal-medium MuiDialog-paperScrollPaper MuiDialog-paperWidthFalse MuiPaper-elevation2" | ||
role="dialog" | ||
> | ||
<p> | ||
|
@@ -223,12 +223,12 @@ exports[`useModals shows multiple modals at the same time 1`] = ` | |
/> | ||
<div | ||
class="MuiDialog-container PicassoModal-container MuiDialog-scrollPaper" | ||
role="document" | ||
role="none presentation" | ||
style="opacity: 1; webkit-transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;" | ||
tabindex="-1" | ||
> | ||
<div | ||
class="MuiPaper-root MuiPaper-elevation2 MuiDialog-paper PicassoModal-paper PicassoModal-medium MuiDialog-paperScrollPaper MuiDialog-paperWidthFalse" | ||
class="MuiPaper-root MuiDialog-paper PicassoModal-paper PicassoModal-medium MuiDialog-paperScrollPaper MuiDialog-paperWidthFalse MuiPaper-elevation2" | ||
role="dialog" | ||
> | ||
<p> | ||
|
@@ -257,12 +257,12 @@ exports[`useModals shows multiple modals at the same time 1`] = ` | |
/> | ||
<div | ||
class="MuiDialog-container PicassoModal-container MuiDialog-scrollPaper" | ||
role="document" | ||
role="none presentation" | ||
style="opacity: 1; webkit-transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;" | ||
tabindex="-1" | ||
> | ||
<div | ||
class="MuiPaper-root MuiPaper-elevation2 MuiDialog-paper PicassoModal-paper PicassoModal-medium MuiDialog-paperScrollPaper MuiDialog-paperWidthFalse" | ||
class="MuiPaper-root MuiDialog-paper PicassoModal-paper PicassoModal-medium MuiDialog-paperScrollPaper MuiDialog-paperWidthFalse MuiPaper-elevation2" | ||
role="dialog" | ||
> | ||
<p> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,9 @@ export default ({ palette, screens }: Theme) => | |
}, | ||
container: {}, | ||
paper: { | ||
maxHeight: 'calc(100% - 6rem)', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 😱 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this change is the scariest for me 😃 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why? It was like that before and they decreased it to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah, ok 😄 it was just missing for me from the style and "bam!" it's here 😁 |
||
maxWidth: 'calc(100% - 6rem)', | ||
|
||
[screens('small')]: { | ||
width: '100vw', | ||
height: '100vh', | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ import cx from 'classnames' | |
import { withStyles } from '@material-ui/core/styles' | ||
import MUIOutlinedInput from '@material-ui/core/OutlinedInput' | ||
import { InputBaseComponentProps } from '@material-ui/core/InputBase' | ||
import { capitalize } from '@material-ui/core/utils/helpers' | ||
import capitalize from '@material-ui/core/utils/capitalize' | ||
import { StandardProps, SizeType, Classes } from '@toptal/picasso-shared' | ||
|
||
import InputAdornment from '../InputAdornment' | ||
|
@@ -29,7 +29,7 @@ export interface Props | |
extends StandardProps, | ||
Omit< | ||
InputHTMLAttributes<HTMLInputElement>, | ||
'value' | 'defaultValue' | 'size' | ||
'value' | 'defaultValue' | 'size' | 'color' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the reason for this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
> { | ||
/** Width of the component */ | ||
width?: 'full' | 'shrink' | 'auto' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did they remove export of this helper from utils?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, seems they export is as named export in utils
https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/utils/index.js#L1
But seems they forgot to update TS file also :(
https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/utils/index.d.ts