UNPKG

@activecollab/components

Version:

ActiveCollab Components

45 lines (44 loc) 3.39 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StyledToastMessageText = exports.StyledToastMessage = exports.StyledCloseSmallIcon = void 0; var _styledComponents = _interopRequireWildcard(require("styled-components")); var _BoxSizingStyle = require("../BoxSizingStyle"); var _FontStyle = require("../FontStyle"); var _Icons = require("../Icons"); function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } var StyledToastMessage = exports.StyledToastMessage = _styledComponents.default.div.withConfig({ displayName: "Styles__StyledToastMessage", componentId: "sc-7wr5ky-0" })(["display:flex;flex-direction:row;align-items:center;height:36px;width:fit-content;max-width:100%;padding:10px 8px 10px 16px;border-radius:18px;", " ", " ", " ", " ", " ", ""], _FontStyle.FontStyle, _BoxSizingStyle.BoxSizingStyle, function (props) { return props.$type === "error" && (0, _styledComponents.css)(["background-color:#f1a5a5;", ""], props.$dropShadow && (0, _styledComponents.css)(["box-shadow:0px 7px 12px -4px rgba(234,179,179,0.7);"])); }, function (props) { return props.$type === "success" && (0, _styledComponents.css)(["background-color:#afdfdb;", ""], props.$dropShadow && (0, _styledComponents.css)(["box-shadow:0px 7px 12px -4px rgba(182,218,215,0.7);"])); }, function (props) { return props.$type === "general" && (0, _styledComponents.css)(["background-color:#bddff6;", ""], props.$dropShadow && (0, _styledComponents.css)(["box-shadow:0px 7px 12px -4px rgba(166,199,220,0.7);"])); }, function (props) { return props.$type === "warning" && (0, _styledComponents.css)(["background-color:#ffffd1;", ""], props.$dropShadow && (0, _styledComponents.css)(["box-shadow:0px 7px 12px -4px rgba(242,242,208,0.7);"])); }); var StyledToastMessageText = exports.StyledToastMessageText = _styledComponents.default.div.withConfig({ displayName: "Styles__StyledToastMessageText", componentId: "sc-7wr5ky-1" })(["", " ", " ", " ", " color:rgba(48,48,55,0.65);"], { "fontSize": "0.75rem" }, { "fontWeight": "700" }, { "overflow": "hidden", "textOverflow": "ellipsis", "whiteSpace": "nowrap" }, { "marginRight": "0.5rem" }); var StyledCloseSmallIcon = exports.StyledCloseSmallIcon = (0, _styledComponents.default)(_Icons.CloseSmallIcon).withConfig({ displayName: "Styles__StyledCloseSmallIcon", componentId: "sc-7wr5ky-2" })(["fill:rgba(48,48,55,0.3);flex-shrink:0;cursor:pointer;&:hover{fill:rgba(48,48,55,0.65);}"]); StyledToastMessage.displayName = "StyledToastMessage"; StyledCloseSmallIcon.displayName = "StyledCloseSmallIcon"; //# sourceMappingURL=Styles.js.map