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.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import { Box, Typography } from "@mui/material";
  2. import styled from "styled-components";
  3. import { PRIMARY_PURPLE_COLOR } from "../../../constants/stylesConstants";
  4. import { Icon } from "../../Icon/Icon";
  5. export const ComponentContainer = styled(Box)`
  6. width: ${props => props.fullWidth ? '100%' : (props.width ? props.width : '250px')};
  7. padding: 8px;
  8. `
  9. export const DropdownTitle = styled(Typography)`
  10. display: flex;
  11. flex: 1;
  12. cursor: pointer;
  13. padding-left: 9px;
  14. font-size: 18px;
  15. font-weight: 100;
  16. padding-bottom: 10px;
  17. `
  18. export const ToggleIconOpened = styled(Icon)`
  19. cursor: pointer;
  20. color: ${PRIMARY_PURPLE_COLOR};
  21. `
  22. export const ToggleIconClosed = styled(Icon)`
  23. cursor: pointer;
  24. color: ${PRIMARY_PURPLE_COLOR};
  25. `
  26. export const DropdownIcon = styled(Icon)`
  27. font-size: 24px !important;
  28. & span {
  29. font-size: 24px;
  30. & svg {
  31. font-size: 24px;
  32. }
  33. }
  34. `
  35. export const ListContainer = styled(Box)`
  36. padding-left: 15px;
  37. display: ${props => props.shouldShow ? "block" : "none"};
  38. `
  39. export const DropdownHeader = styled(Box)`
  40. display: flex;
  41. flex-direction: row;
  42. `