@dotconnor/grommet
Version:
focus on the essential experience
23 lines • 1.01 kB
JavaScript
import styled from 'styled-components';
import { defaultProps } from '../../default-props';
import { Box } from '../Box';
import { Text } from '../Text';
var StyledAvatarText = styled(Text).withConfig({
displayName: "StyledAvatar__StyledAvatarText",
componentId: "sc-1suyamb-0"
})(["", " ", ""], function (props) {
return props.theme.avatar && props.theme.avatar.text && props.theme.avatar.text.fontWeight && "font-weight: " + props.theme.avatar.text.fontWeight + ";";
}, function (props) {
return props.theme.avatar.text && props.theme.avatar.text.extend;
});
StyledAvatarText.defaultProps = {};
Object.setPrototypeOf(StyledAvatarText.defaultProps, defaultProps);
var StyledAvatar = styled(Box).withConfig({
displayName: "StyledAvatar",
componentId: "sc-1suyamb-1"
})(["", ""], function (props) {
return props.theme.avatar && props.theme.avatar.extend;
});
StyledAvatar.defaultProps = {};
Object.setPrototypeOf(StyledAvatar.defaultProps, defaultProps);
export { StyledAvatar, StyledAvatarText };