UNPKG

@kelvininc/ui-components

Version:
38 lines (33 loc) 1.96 kB
import { p as proxyCustomElement, H, h, e as Host } from './p-D6GMjtmE.js'; const stateIndicatorCss = "@property --rotation{syntax:\"<angle>\";initial-value:0deg;inherits:false}@keyframes rotate-border{to{--rotation:360deg}}.state-indicator{display:flex;align-items:baseline}.state-indicator .color{width:8px;height:8px;border-radius:50%;margin-right:var(--kv-spacing-2x, 8px)}.state-indicator .text{font-family:var(--kv-primary-font, \"proxima-nova\", sans-serif, \"Arial\");font-size:12px;font-weight:400;font-stretch:normal;font-style:normal;line-height:18px;letter-spacing:normal;text-transform:none;color:var(--kv-text, #fff)}"; const KvStateIndicator$1 = /*@__PURE__*/ proxyCustomElement(class KvStateIndicator extends H { constructor() { super(); this.__registerHost(); this.__attachShadow(); } render() { return (h(Host, { key: 'a84d4e18ecf8605091329e89461cea33fd36c1a1' }, h("div", { key: '3482e9e5dae2321aed7f09d672e2f2f05069bed1', class: "state-indicator" }, this.color && h("div", { key: 'a04a4aa6bb8f4b4fd1d86703220c0d7475681969', class: "color", style: { background: this.color } }), h("div", { key: '653794833d49a3d41242d3c711f70477d65d03b9', class: "text" }, this.text)))); } static get style() { return stateIndicatorCss; } }, [1, "kv-state-indicator", { "color": [513], "text": [513] }]); function defineCustomElement$1() { if (typeof customElements === "undefined") { return; } const components = ["kv-state-indicator"]; components.forEach(tagName => { switch (tagName) { case "kv-state-indicator": if (!customElements.get(tagName)) { customElements.define(tagName, KvStateIndicator$1); } break; } }); } defineCustomElement$1(); const KvStateIndicator = KvStateIndicator$1; const defineCustomElement = defineCustomElement$1; export { KvStateIndicator, defineCustomElement };