UNPKG

prisme-components-react

Version:

React components for the Prisme Design System

43 lines (36 loc) 1.04 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _styledComponents = _interopRequireDefault(require("styled-components")); var _theme = _interopRequireDefault(require("../../theme")); var _Box = _interopRequireDefault(require("../Box/Box")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var boxShadow = function boxShadow(props) { var boxShadows = { sm: { 'box-shadow': props.theme.boxShadows[0] }, md: { 'box-shadow': props.theme.boxShadows[1] }, lg: { 'box-shadow': props.theme.boxShadows[2] }, xl: { 'box-shadow': props.theme.boxShadows[3] } }; return boxShadows[props.bs]; }; var Card = (0, _styledComponents["default"])(_Box["default"]).withConfig({ displayName: "Card", componentId: "ky49er-0" })(["", ""], boxShadow); Card.defaultProps = { theme: _theme["default"] }; Card.displayName = 'Card'; var _default = Card; exports["default"] = _default;