-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1370 from syucream/fix/mui-v6
Upgrade to MUI v6
- Loading branch information
Showing
39 changed files
with
4,143 additions
and
4,091 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
import { TableCell } from "@mui/material"; | ||
import { TableCell, TableCellProps } from "@mui/material"; | ||
import { styled } from "@mui/material/styles"; | ||
import { SxProps, Theme } from "@mui/system"; | ||
import React from "react"; | ||
|
||
export const AironeTableHeadCell = styled(TableCell)(({}) => ({ | ||
color: "#FFFFFF", | ||
})); | ||
type StyledTableCellProps = TableCellProps & { | ||
sx?: SxProps<Theme>; | ||
}; | ||
|
||
export const AironeTableHeadCell: React.ComponentType<StyledTableCellProps> = | ||
styled(TableCell)<StyledTableCellProps>({ | ||
color: "#FFFFFF", | ||
}) as React.ComponentType<StyledTableCellProps>; |
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 |
---|---|---|
@@ -1,6 +1,13 @@ | ||
import { TableRow } from "@mui/material"; | ||
import { TableRow, TableRowProps } from "@mui/material"; | ||
import { styled } from "@mui/material/styles"; | ||
import { SxProps, Theme } from "@mui/system"; | ||
import React from "react"; | ||
|
||
export const AironeTableHeadRow = styled(TableRow)(({}) => ({ | ||
backgroundColor: "#455A64", | ||
})); | ||
type StyledTableRowProps = TableRowProps & { | ||
sx?: SxProps<Theme>; | ||
}; | ||
|
||
export const AironeTableHeadRow: React.ComponentType<StyledTableRowProps> = | ||
styled(TableRow)<StyledTableRowProps>({ | ||
backgroundColor: "#455A64", | ||
}) as React.ComponentType<StyledTableRowProps>; |
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 |
---|---|---|
@@ -1,18 +1,32 @@ | ||
import { Box } from "@mui/material"; | ||
import { Box, BoxProps } from "@mui/material"; | ||
import { styled } from "@mui/material/styles"; | ||
import { SxProps, Theme } from "@mui/system"; | ||
import React from "react"; | ||
|
||
export const FlexBox = styled(Box)(({}) => ({ | ||
type StyledBoxProps = BoxProps & { | ||
sx?: SxProps<Theme>; | ||
}; | ||
|
||
export const FlexBox: React.ComponentType<StyledBoxProps> = styled( | ||
Box | ||
)<StyledBoxProps>({ | ||
display: "flex", | ||
})); | ||
}) as React.ComponentType<StyledBoxProps>; | ||
|
||
export const BetweenAlignedBox = styled(FlexBox)(({}) => ({ | ||
export const BetweenAlignedBox: React.ComponentType<StyledBoxProps> = styled( | ||
FlexBox | ||
)<StyledBoxProps>({ | ||
justifyContent: "space-between", | ||
})); | ||
}) as React.ComponentType<StyledBoxProps>; | ||
|
||
export const RightAlignedBox = styled(FlexBox)(({}) => ({ | ||
export const RightAlignedBox: React.ComponentType<StyledBoxProps> = styled( | ||
FlexBox | ||
)<StyledBoxProps>({ | ||
justifyContent: "end", | ||
})); | ||
}) as React.ComponentType<StyledBoxProps>; | ||
|
||
export const CenterAlignedBox = styled(FlexBox)(({}) => ({ | ||
export const CenterAlignedBox: React.ComponentType<StyledBoxProps> = styled( | ||
FlexBox | ||
)<StyledBoxProps>({ | ||
justifyContent: "center", | ||
})); | ||
}) as React.ComponentType<StyledBoxProps>; |
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 |
---|---|---|
@@ -1,17 +1,37 @@ | ||
import { TableCell, TableRow } from "@mui/material"; | ||
import { | ||
TableCell, | ||
TableRow, | ||
TableCellProps, | ||
TableRowProps, | ||
} from "@mui/material"; | ||
import { styled } from "@mui/material/styles"; | ||
import { SxProps, Theme } from "@mui/system"; | ||
import React from "react"; | ||
|
||
export const HeaderTableRow = styled(TableRow)(({}) => ({ | ||
type StyledTableRowProps = TableRowProps & { | ||
sx?: SxProps<Theme>; | ||
}; | ||
|
||
type StyledTableCellProps = TableCellProps & { | ||
sx?: SxProps<Theme>; | ||
}; | ||
|
||
export const HeaderTableRow: React.ComponentType<StyledTableRowProps> = styled( | ||
TableRow | ||
)<StyledTableRowProps>({ | ||
backgroundColor: "#455A64", | ||
})); | ||
}) as React.ComponentType<StyledTableRowProps>; | ||
|
||
export const HeaderTableCell = styled(TableCell)(({}) => ({ | ||
color: "#FFFFFF", | ||
boxSizing: "border-box", | ||
})); | ||
export const HeaderTableCell: React.ComponentType<StyledTableCellProps> = | ||
styled(TableCell)<StyledTableCellProps>({ | ||
color: "#FFFFFF", | ||
boxSizing: "border-box", | ||
}) as React.ComponentType<StyledTableCellProps>; | ||
|
||
export const StyledTableRow = styled(TableRow)(({}) => ({ | ||
export const StyledTableRow: React.ComponentType<StyledTableRowProps> = styled( | ||
TableRow | ||
)<StyledTableRowProps>({ | ||
"& td": { | ||
padding: "8px", | ||
}, | ||
})); | ||
}) as React.ComponentType<StyledTableRowProps>; |
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
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
Oops, something went wrong.