123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- /*!
- * (C) Ionic http://ionicframework.com - MIT License
- */
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
- import { c as createColorClasses } from './theme.js';
- import { b as getIonMode } from './ionic-global.js';
- const textCss = ":host(.ion-color){color:var(--ion-color-base)}";
- const IonTextStyle0 = textCss;
- const Text = /*@__PURE__*/ proxyCustomElement(class Text extends HTMLElement {
- constructor() {
- super();
- this.__registerHost();
- this.__attachShadow();
- this.color = undefined;
- }
- render() {
- const mode = getIonMode(this);
- return (h(Host, { key: '0c2546ea3f24b0a6bfd606199441d0a4edfa4ca1', class: createColorClasses(this.color, {
- [mode]: true,
- }) }, h("slot", { key: 'b7623ccb06f9461090a1f33e9f85886c7a4d5eff' })));
- }
- static get style() { return IonTextStyle0; }
- }, [1, "ion-text", {
- "color": [513]
- }]);
- function defineCustomElement$1() {
- if (typeof customElements === "undefined") {
- return;
- }
- const components = ["ion-text"];
- components.forEach(tagName => { switch (tagName) {
- case "ion-text":
- if (!customElements.get(tagName)) {
- customElements.define(tagName, Text);
- }
- break;
- } });
- }
- const IonText = Text;
- const defineCustomElement = defineCustomElement$1;
- export { IonText, defineCustomElement };
|