import styled, { css } from "styled-components"; import Base from "../themes/base"; import { AddRoleButton, EveryoneRoleIcon } from "./svg"; const StyledFillingRoleSelector = styled.div` display: flex; flex-direction: column; gap: 4px; `; const StyledRow = styled.div` height: 48px; display: flex; align-items: center; gap: 8px; `; const StyledUserRow = styled.div` height: 48px; display: flex; align-items: center; justify-content: space-between; .content { display: flex; align-items: center; gap: 8px; } .user-with-role { display: flex; } `; const StyledNumber = styled.div` font-weight: 600; font-size: 14px; line-height: 16px; color: #a3a9ae; `; const StyledAvatar = styled.img` height: 32px; width: 32px; border-radius: 50%; `; const StyledAddRoleButton = styled(AddRoleButton)` width: 32px; height: 32px; path { fill: ${(props) => props.color}; } rect { stroke: ${(props) => props.color}; } `; const StyledEveryoneRoleIcon = styled(EveryoneRoleIcon)` width: 32px; height: 32px; `; const StyledRole = styled.div` font-weight: 600; font-size: 14px; line-height: 16px; `; const StyledAssignedRole = styled.div` padding-left: 4px; ${(props) => props.theme.interfaceDirection === "rtl" && css` padding-right: 4px; padding-left: auto; `} color: rgba(170, 170, 170, 1); ::before { content: "("; } ::after { content: ")"; } `; const StyledEveryoneRoleContainer = styled.div` display: flex; flex-direction: column; .title { display: flex; } .role-description { font-weight: 400; font-size: 10px; line-height: 14px; color: #657077; } `; const StyledTooltip = styled.div` background: #f8f7bf; color: #333; border-radius: 6px; font-weight: 400; font-size: 12px; line-height: 16px; padding: 8px 12px; height: 48px; box-sizing: border-box; margin: 8px 0; `; StyledFillingRoleSelector.defaultProps = { theme: Base }; export { StyledFillingRoleSelector, StyledRow, StyledNumber, StyledAddRoleButton, StyledEveryoneRoleIcon, StyledRole, StyledEveryoneRoleContainer, StyledTooltip, StyledAssignedRole, StyledAvatar, StyledUserRow, };