UNPKG

@activecollab/components

Version:

ActiveCollab Components

44 lines (43 loc) 3.21 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 _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 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