UNPKG

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