UNPKG

@activecollab/components

Version:

ActiveCollab Components

19 lines (18 loc) 1.55 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StyledEntityCard = void 0; var _styledComponents = _interopRequireWildcard(require("styled-components")); var _Card = require("../Card"); function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); } var StyledEntityCard = exports.StyledEntityCard = (0, _styledComponents.default)(_Card.Card).withConfig({ displayName: "Styles__StyledEntityCard", componentId: "sc-3vmxf-0" })(["padding:12px;line-height:1.375;", " ", ""], function (props) { return props.$renderAs === "list-item" && (0, _styledComponents.css)(["display:grid;grid-auto-flow:column;align-items:center;min-height:48px;margin-bottom:4px;"]); }, function (props) { return props.$renderAs === "grid-item" && (0, _styledComponents.css)(["display:flex;flex-direction:column;height:250px;width:250px;.card-body{flex-grow:1;}"]); }); StyledEntityCard.displayName = "StyledEntityCard"; //# sourceMappingURL=Styles.js.map