UNPKG

@freshworks/crayons

Version:
54 lines (51 loc) 1.57 kB
import { attachShadow, h, proxyCustomElement } from '@stencil/core/internal/client'; import { d as defineCustomElement$1, a as defineCustomElement$3 } from './icon.js'; import { d as defineCustomElement$2 } from './spinner.js'; let CustomCellUser = class extends HTMLElement { constructor() { super(); this.__registerHost(); attachShadow(this); this.name = ''; this.size = 18; this.color = '#647A8E'; this.library = 'crayons'; this.src = null; } render() { return (h("fw-icon", { name: this.name, size: this.size, color: this.color, library: this.library, src: this.src })); } }; CustomCellUser = /*@__PURE__*/ proxyCustomElement(CustomCellUser, [1, "fw-custom-cell-icon", { "name": [1], "size": [2], "color": [1], "library": [1], "src": [8] }]); function defineCustomElement() { const components = ["fw-custom-cell-icon", "fw-icon", "fw-spinner", "fw-toast-message"]; components.forEach(tagName => { switch (tagName) { case "fw-custom-cell-icon": if (!customElements.get(tagName)) { customElements.define(tagName, CustomCellUser); } break; case "fw-icon": if (!customElements.get(tagName)) { defineCustomElement$3(); } break; case "fw-spinner": if (!customElements.get(tagName)) { defineCustomElement$2(); } break; case "fw-toast-message": if (!customElements.get(tagName)) { defineCustomElement$1(); } break; } }); } export { CustomCellUser as C, defineCustomElement as d };