UNPKG

1.22 kBJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, '__esModule', { value: true });
4
5const index = require('./index-849db034.js');
6
7const 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 #3273dc;box-shadow:0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0 0 1px #3273dc}a.box:active{-webkit-box-shadow:inset 0 1px 2px rgba(10, 10, 10, 0.2), 0 0 0 1px #3273dc;box-shadow:inset 0 1px 2px rgba(10, 10, 10, 0.2), 0 0 0 1px #3273dc}";
8
9class Box {
10 constructor(hostRef) {
11 index.registerInstance(this, hostRef);
12 /**
13 * CSS classes
14 */
15 this.class = '';
16 }
17 render() {
18 return (index.h(index.Host, null, index.h("div", { class: {
19 box: true,
20 [this.class]: Boolean(this.class),
21 } }, index.h("slot", null))));
22 }
23}
24Box.style = boxCss;
25
26exports.bm_box = Box;