DocSpace-client/packages/asc-web-components/combobox/styled-combobox.js
2021-02-24 20:11:23 +03:00

28 lines
789 B
JavaScript

import styled from "styled-components";
import Base from "@appserver/components/themes/base";
const StyledComboBox = styled.div`
width: ${(props) =>
(props.scaled && "100%") ||
(props.size === "base" && props.theme.comboBox.width.base) ||
(props.size === "middle" && props.theme.comboBox.width.middle) ||
(props.size === "big" && props.theme.comboBox.width.big) ||
(props.size === "huge" && props.theme.comboBox.width.huge) ||
(props.size === "content" && "fit-content")};
position: relative;
outline: 0;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
.dropdown-container {
padding: ${(props) =>
props.advancedOptions && props.theme.comboBox.padding};
}
`;
StyledComboBox.defaultProps = {
theme: Base,
};
export default StyledComboBox;