gov-gui
Version:
Gov UI Component Library Demo ready Build
31 lines (27 loc) • 1.03 kB
JavaScript
import { r as registerInstance, h } from './index-6e6d5b7d.js';
import { f as format } from './utils-11fcde98.js';
import { g as getGlobalPropsClasses } from './global-styles-helper-eea949ad.js';
const myComponentCss = ":host{display:block}";
const MyComponentStyle0 = myComponentCss;
const MyComponent = class {
constructor(hostRef) {
registerInstance(this, hostRef);
this.allClasses = '';
}
componentWillLoad() {
this.allClasses = getGlobalPropsClasses({
classes: this.classes,
variant: this.variant,
size: this.size
});
}
getText() {
return format(this.first, this.middle, this.last);
}
render() {
return h("div", { key: '64e7b0bf819d5a5a77b4f3298b37d1d4dbea683a', class: `h1 ${this.allClasses}`, style: Object.assign({}, this.styles) }, "Hello, World! I'm ", this.getText());
}
};
MyComponent.style = MyComponentStyle0;
export { MyComponent as my_component };
//# sourceMappingURL=my-component.entry.js.map