web-atoms-core
Version:
58 lines • 2.4 kB
JavaScript
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define(["require", "exports", "../../core/Colors", "./AtomStyle"], factory);
}
})(function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Colors_1 = require("../../core/Colors");
var AtomStyle_1 = require("./AtomStyle");
var AtomNotificationStyle = /** @class */ (function (_super) {
__extends(AtomNotificationStyle, _super);
function AtomNotificationStyle() {
return _super !== null && _super.apply(this, arguments) || this;
}
Object.defineProperty(AtomNotificationStyle.prototype, "root", {
get: function () {
return {
padding: "5px",
borderRadius: "5px",
border: "solid 1px lightgray",
fontFamily: "Verdana, Geneva, sans-serif",
fontSize: "16px",
subclasses: {
".error": {
borderColor: Colors_1.default.red,
color: Colors_1.default.red,
},
".warning": {
backgroundColor: Colors_1.default.lightYellow
}
}
};
},
enumerable: true,
configurable: true
});
return AtomNotificationStyle;
}(AtomStyle_1.AtomStyle));
exports.default = AtomNotificationStyle;
});
//# sourceMappingURL=AtomNotificationStyle.js.map