UNPKG

@retailmenot/anchor

Version:

A React UI Library by RetailMeNot

34 lines 1.24 kB
var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; // REACT import * as React from 'react'; // VENDOR import classNames from 'classnames'; import styled from '@xstyled/styled-components'; const gutterSizes = { none: '', small: '0.75rem', medium: '1rem', large: '1.5rem', }; const StyledCard = styled('div') ` box-sizing: border-box; position: relative; display: block; padding: ${({ gutter = 'medium' }) => gutterSizes[gutter]}; font-family: base; `; export const CardContent = (_a) => { var { className, children } = _a, props = __rest(_a, ["className", "children"]); return (React.createElement(StyledCard, Object.assign({ className: classNames('anchor-card-content', className) }, props), children)); }; //# sourceMappingURL=CardContent.component.js.map