UNPKG

1.27 kBJavaScriptView Raw
1import { r as registerInstance, h, H as Host } from './index-c5baf484.js';
2var 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}";
3var Box = /** @class */ (function () {
4 function Box(hostRef) {
5 registerInstance(this, hostRef);
6 /**
7 * CSS classes
8 */
9 this.class = '';
10 }
11 Box.prototype.render = function () {
12 var _a;
13 return (h(Host, null, h("div", { class: (_a = {
14 box: true
15 },
16 _a[this.class] = Boolean(this.class),
17 _a) }, h("slot", null))));
18 };
19 return Box;
20}());
21Box.style = boxCss;
22export { Box as bm_box };