@gf-ui/components
Version:
48 lines (43 loc) • 2.31 kB
JavaScript
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
import { I as Icons } from './index2.js';
const svgData = {"name":"svg","type":"element","value":"","attributes":{"class":"icon","viewBox":"0 0 1024 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg"},"children":[{"name":"path","type":"element","value":"","attributes":{"fill":"currentColor","d":"M853.333333 448v341.333333a64 64 0 0 1-64 64H234.666667a64 64 0 0 1-64-64V448h682.666666z m-448 192h-106.666666v64h106.666666v-64z m160 0h-106.666666v64h106.666666v-64z m160 0h-106.666666v64h106.666666v-64z m-320-128h-106.666666v64h106.666666v-64z m160 0h-106.666666v64h106.666666v-64z m160 0h-106.666666v64h106.666666v-64zM234.666667 213.333333h64v106.666667h138.666666v-106.666667H597.333333v106.666667h138.666667v-106.666667H789.333333a64 64 0 0 1 64 64v106.666667H170.666667v-106.666667a64 64 0 0 1 64-64z m463.061333-42.666666v106.666666h-64V170.666667h64zM396.544 170.666667v106.666666h-64V170.666667h64z"},"children":[]}],"_name":"calendar-fill","_isColor":false};
const GfIconcalendarFill = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
constructor() {
super();
this.__registerHost();
this.size = 30;
this.styles = {};
this.color = "#606266";
this.rotate = 0;
this.spin = false;
this.opacity = 1;
}
render() {
const { size, styles, color, rotate, spin, opacity } = this;
const hostStyles = { width: size + 'px', height: size + 'px' };
return (h(Host, { style: hostStyles }, h(Icons, Object.assign({}, { svgData, size, styles, color, rotate, spin, opacity }))));
}
}, [0, "gf-icon-calendar-fill", {
"size": [8],
"styles": [16],
"color": [1],
"rotate": [2],
"spin": [4],
"opacity": [8]
}]);
function defineCustomElement$1() {
if (typeof customElements === "undefined") {
return;
}
const components = ["gf-icon-calendar-fill"];
components.forEach(tagName => { switch (tagName) {
case "gf-icon-calendar-fill":
if (!customElements.get(tagName)) {
customElements.define(tagName, GfIconcalendarFill);
}
break;
} });
}
const GfIconCalendarFill = GfIconcalendarFill;
const defineCustomElement = defineCustomElement$1;
export { GfIconCalendarFill, defineCustomElement };