Container.tsx 1.6 KB

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