Container.tsx 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. import { Box, IconButton, styled } from "@mui/material";
  2. export const VerticallyCentered = styled(Box)`
  3. flex: 1;
  4. display: flex;
  5. align-items: center;
  6. justify-content: center;
  7. flex-direction: column;
  8. text-align: center;
  9. overflow: auto;
  10. `;
  11. export const Row = styled("div")`
  12. min-height: 32px;
  13. display: flex;
  14. align-items: center;
  15. margin-bottom: ${({ theme }) => theme.spacing(2)};
  16. flex: 1;
  17. `;
  18. export const Value = styled("div")<{ width?: string }>`
  19. display: flex;
  20. justify-content: flex-start;
  21. align-items: center;
  22. width: ${(props) => props.width ?? "30%"};
  23. `;
  24. export const FlexWrapper = styled(Box)`
  25. display: flex;
  26. width: 100%;
  27. align-items: center;
  28. `;
  29. export const FreeFlowText = styled("div")`
  30. word-break: break-word;
  31. min-width: 30%;
  32. text-align: left;
  33. `;
  34. export const SpaceBetweenFlex = styled(FlexWrapper)`
  35. justify-content: space-between;
  36. `;
  37. export const CenteredFlex = styled(FlexWrapper)`
  38. justify-content: center;
  39. `;
  40. export const FluidContainer = styled(FlexWrapper)`
  41. flex: 1;
  42. `;
  43. export const Overlay = styled(Box)`
  44. position: absolute;
  45. width: 100%;
  46. height: 100%;
  47. top: 0;
  48. left: 0;
  49. `;
  50. export const IconButtonWithBG = styled(IconButton)(({ theme }) => ({
  51. backgroundColor: theme.colors.fill.faint,
  52. }));
  53. export const HorizontalFlex = styled(Box)({
  54. display: "flex",
  55. });
  56. export const VerticalFlex = styled(HorizontalFlex)({
  57. flexDirection: "column",
  58. });
  59. export const VerticallyCenteredFlex = styled(HorizontalFlex)({
  60. alignItems: "center",
  61. display: "flex",
  62. });