@bulmil/core
Version:

39 lines (34 loc) • 1.29 kB
JavaScript
/*!
* Bulmil - MIT License
*/
import { HTMLElement, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
const boxCss = ".box:not(:last-child){margin-bottom:1.5rem}.box{background-color:white;border-radius:6px;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{box-shadow:0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0 0 1px #5851ff}a.box:active{box-shadow:inset 0 1px 2px rgba(10, 10, 10, 0.2), 0 0 0 1px #5851ff}";
let Box = class extends HTMLElement {
constructor() {
super();
this.__registerHost();
}
render() {
return (h(Host, null, h("div", { class: {
box: true,
} }, h("slot", null))));
}
static get style() { return boxCss; }
};
Box = /*@__PURE__*/ proxyCustomElement(Box, [4, "bm-box"]);
function defineCustomElement$1() {
if (typeof customElements === "undefined") {
return;
}
const components = ["bm-box"];
components.forEach(tagName => { switch (tagName) {
case "bm-box":
if (!customElements.get(tagName)) {
customElements.define(tagName, Box);
}
break;
} });
}
const BmBox = Box;
const defineCustomElement = defineCustomElement$1;
export { BmBox, defineCustomElement };