-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: [M3-6263] - MUI v5 Migration - SRC > Features > EntityTrans…
…fers (#9582) * initial migration commit * finished EntityTransfers/ and EntityTransfersCreate/ * Partly done EntityTransfersLanding directory * finished css migration, have not tested yet * Added changeset: MUI v5 Migration - SRC > Features > EntityTransfers * removed test code * testing formating issues * fixed inconsistent styling issues * fixed pr suggestions --------- Co-authored-by: TylerWJ <tylerwjones99@gmail.com>
- Loading branch information
1 parent
63306a3
commit ed32421
Showing
30 changed files
with
862 additions
and
792 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
packages/manager/.changeset/pr-9582-tech-stories-1692726989780.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@linode/manager": Tech Stories | ||
--- | ||
|
||
MUI v5 Migration - SRC > Features > EntityTransfers ([#9582](https://github.com/linode/manager/pull/9582)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...manager/src/features/EntityTransfers/EntityTransfersCreate/EntityTransferCreate.styles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import Grid from '@mui/material/Unstable_Grid2'; | ||
import { styled } from '@mui/material/styles'; | ||
|
||
import { Notice } from 'src/components/Notice/Notice'; | ||
|
||
export const StyledNotice = styled(Notice, { | ||
label: 'StyledNotice', | ||
})(({ theme }) => ({ | ||
[theme.breakpoints.down('lg')]: { | ||
marginLeft: theme.spacing(), | ||
}, | ||
})); | ||
|
||
export const StyledRootGrid = styled(Grid, { | ||
label: 'StyledRootGrid', | ||
})(({ theme }) => ({ | ||
[theme.breakpoints.down('lg')]: { | ||
justifyContent: 'center', | ||
margin: 0, | ||
}, | ||
})); | ||
|
||
export const StyledSidebarGrid = styled(Grid, { | ||
label: 'StyledSidebarGrid', | ||
})(({ theme }) => ({ | ||
[theme.breakpoints.down('lg')]: { | ||
'&.MuiGrid-item': { | ||
paddingLeft: 0, | ||
paddingRight: 0, | ||
}, | ||
padding: `0 ${theme.spacing(1)}`, | ||
}, | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
.../manager/src/features/EntityTransfers/EntityTransfersCreate/TransferCheckoutBar.styles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
import Close from '@mui/icons-material/Close'; | ||
import { styled } from '@mui/material/styles'; | ||
|
||
import { Button } from 'src/components/Button/Button'; | ||
import { Typography } from 'src/components/Typography'; | ||
|
||
export const StyledButton = styled(Button, { | ||
label: 'StyledButton', | ||
})(({ theme }) => ({ | ||
backgroundColor: 'inherit', | ||
border: 'none', | ||
minWidth: 0, | ||
textDecoration: 'none', | ||
[theme.breakpoints.down('md')]: { | ||
visibility: 'visible', | ||
}, | ||
visibility: 'hidden', | ||
})); | ||
|
||
export const StyledSubmitButton = styled(Button, { | ||
label: 'StyledSubmitButton', | ||
})(({ theme }) => ({ | ||
marginLeft: 0, | ||
marginRight: 0, | ||
marginTop: theme.spacing(3), | ||
width: '100%', | ||
})); | ||
|
||
export const StyledClose = styled(Close, { | ||
label: 'StyledClose', | ||
})(({ theme }) => ({ | ||
'& svg': { height: 11, width: 11 }, | ||
color: theme.color.grey1, | ||
})); | ||
|
||
export const StyledTypography = styled(Typography, { | ||
label: 'StyledTypography', | ||
})(({ theme }) => ({ | ||
color: theme.color.green, | ||
fontSize: '1rem', | ||
fontWeight: 'bold', | ||
marginTop: theme.spacing(3), | ||
})); | ||
|
||
export const StyledHeaderTypography = styled(Typography, { | ||
label: 'StyledHeaderTypography', | ||
})(({ theme }) => ({ | ||
color: theme.color.green, | ||
fontSize: '1.25rem', | ||
fontWeight: 'bold', | ||
lineHeight: '1.5rem', | ||
})); | ||
|
||
export const StyledRowDiv = styled('div', { | ||
label: 'StyledRowDiv', | ||
})(({ theme }) => ({ | ||
'&:first-of-type': { | ||
borderTop: `solid 1px ${theme.color.border2}`, | ||
}, | ||
'&:hover > button': { | ||
visibility: 'visible', | ||
}, | ||
alignItems: 'center', | ||
borderBottom: `solid 1px ${theme.color.border2}`, | ||
display: 'flex', | ||
justifyContent: 'space-between', | ||
padding: `2px 0px`, | ||
})); | ||
|
||
export const StyledRowBoxDiv = styled('div', { | ||
label: 'StyledRowBoxDiv', | ||
})(({ theme }) => ({ | ||
marginTop: theme.spacing(3), | ||
maxHeight: '75vh', | ||
overflowY: 'auto', | ||
})); |
Oops, something went wrong.