UNPKG

@dotconnor/grommet

Version:

focus on the essential experience

32 lines (26 loc) 1.01 kB
import styled from 'styled-components'; import { genericStyles } from '../../utils'; import { defaultProps } from '../../default-props'; var fillStyle = function fillStyle(fillProp) { if (fillProp === 'horizontal') { return "\n width: 100%;\n height: unset;\n "; } if (fillProp === 'vertical') { return "\n width: unset;\n height: 100%;\n "; } if (fillProp) { return "\n width: 100%;\n height: 100%;\n "; } return ''; }; // undefined fillProp has width for backwards compatibility var StyledWorldMap = styled.svg.withConfig({ displayName: "StyledWorldMap", componentId: "had4c3-0" })(["", " ", " ", ";"], genericStyles, function (props) { return props.fillProp !== undefined ? fillStyle(props.fillProp) : 'width: 100%;'; }, function (props) { return props.theme.worldMap && props.theme.worldMap.extend; }); StyledWorldMap.defaultProps = {}; Object.setPrototypeOf(StyledWorldMap.defaultProps, defaultProps); export { StyledWorldMap };