1 | import { r as registerInstance, h } from './index-4879a8e9.js';
|
2 |
|
3 | const notificationCss = ".notification:not(:last-child){margin-bottom:1.5rem}.notification{background-color:whitesmoke;border-radius:4px;position:relative;padding:1.25rem 2.5rem 1.25rem 1.5rem}.notification a:not(.button):not(.dropdown-item){color:currentColor;text-decoration:underline}.notification strong{color:currentColor}.notification code,.notification pre{background:white}.notification pre code{background:transparent}.notification>.delete{right:0.5rem;position:absolute;top:0.5rem}.notification .title,.notification .subtitle,.notification .content{color:currentColor}.notification.is-white{background-color:white;color:#0a0a0a}.notification.is-black{background-color:#0a0a0a;color:white}.notification.is-light{background-color:whitesmoke;color:rgba(0, 0, 0, 0.7)}.notification.is-dark{background-color:#363636;color:#fff}.notification.is-primary{background-color:#5851ff;color:#fff}.notification.is-info{background-color:#3298dc;color:#fff}.notification.is-success{background-color:#48c774;color:#fff}.notification.is-warning{background-color:#ffdd57;color:rgba(0, 0, 0, 0.7)}.notification.is-danger{background-color:#f14668;color:#fff}";
|
4 |
|
5 | class Notification {
|
6 | constructor(hostRef) {
|
7 | registerInstance(this, hostRef);
|
8 | |
9 |
|
10 |
|
11 | this.class = '';
|
12 | |
13 |
|
14 |
|
15 | this.dismissable = true;
|
16 | }
|
17 | render() {
|
18 | return (h("div", { class: {
|
19 | notification: true,
|
20 | [this.color]: Boolean(this.color),
|
21 | [this.class]: Boolean(this.class),
|
22 | } }, this.dismissable && h("button", { class: "delete" }), h("slot", null)));
|
23 | }
|
24 | }
|
25 | Notification.style = notificationCss;
|
26 |
|
27 | export { Notification as bm_notification };
|