You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DropdownList.styled.js 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import { Box, Typography } from "@mui/material";
  2. import styled from "styled-components";
  3. import selectedTheme from "../../../themes";
  4. import { IconButton } from "../../Buttons/IconButton/IconButton";
  5. export const DropdownListContainer = styled(Box)`
  6. width: ${(props) =>
  7. props.fullWidth ? "100%" : props.width ? props.width : "250px"};
  8. padding: 8px;
  9. `;
  10. export const DropdownTitle = styled(Typography)`
  11. display: flex;
  12. flex: 1;
  13. cursor: pointer;
  14. padding-left: 9px;
  15. font-size: 16px;
  16. font-weight: 400;
  17. padding-bottom: 10px;
  18. padding-top: 5px;
  19. font-family: "Open Sans";
  20. color: ${props => props.textcolor ? props.textcolor : selectedTheme.primaryText};
  21. `;
  22. export const ToggleIconOpened = styled(IconButton)`
  23. cursor: pointer;
  24. color: ${selectedTheme.primaryPurple};
  25. `;
  26. export const ToggleIconClosed = styled(IconButton)`
  27. cursor: pointer;
  28. color: ${selectedTheme.primaryPurple};
  29. `;
  30. export const DropdownIcon = styled(IconButton)`
  31. font-size: 22px !important;
  32. & span {
  33. font-size: 22px;
  34. & svg {
  35. font-size: 22px;
  36. }
  37. }
  38. `;
  39. export const ListContainer = styled(Box)`
  40. padding-left: 15px;
  41. `;
  42. export const DropdownHeader = styled(Box)`
  43. display: flex;
  44. flex-direction: row;
  45. `;
  46. export const DropdownOptions = styled(Box)`
  47. padding-left: 7px;
  48. `;
  49. export const ToggleContainer = styled(Box)`
  50. display: ${(props) => (props.shouldShow ? "block" : "none")};
  51. `;