UNPKG

1.79 kBJavaScriptView Raw
1System.register(['./index-1a441b18.system.js'], function (exports) {
2 'use strict';
3 var registerInstance, h, Host;
4 return {
5 setters: [function (module) {
6 registerInstance = module.r;
7 h = module.h;
8 Host = module.H;
9 }],
10 execute: function () {
11 var boxCss = ".box:not(:last-child){margin-bottom:1.5rem}.box{background-color:white;border-radius:6px;-webkit-box-shadow:0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02);box-shadow:0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02);color:#4a4a4a;display:block;padding:1.25rem}a.box:hover,a.box:focus{-webkit-box-shadow:0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0 0 1px #5851ff;box-shadow:0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0 0 1px #5851ff}a.box:active{-webkit-box-shadow:inset 0 1px 2px rgba(10, 10, 10, 0.2), 0 0 0 1px #5851ff;box-shadow:inset 0 1px 2px rgba(10, 10, 10, 0.2), 0 0 0 1px #5851ff}";
12 var Box = /** @class */ (function () {
13 function Box(hostRef) {
14 registerInstance(this, hostRef);
15 /**
16 * CSS classes
17 */
18 this.class = '';
19 }
20 Box.prototype.render = function () {
21 var _a;
22 return (h(Host, null, h("div", { class: (_a = {
23 box: true
24 },
25 _a[this.class] = Boolean(this.class),
26 _a) }, h("slot", null))));
27 };
28 return Box;
29 }());
30 exports('bm_box', Box);
31 Box.style = boxCss;
32 }
33 };
34});