UNPKG

@ionic/core

Version:
24 lines (20 loc) • 776 B
/*! * (C) Ionic http://ionicframework.com - MIT License */ import { r as registerInstance, h, f as Host } from './index-BpRUsN_W.js'; import { c as createColorClasses } from './theme-byZM6qHV.js'; import { b as getIonMode } from './ionic-global-Cep6oYzK.js'; const textCss = () => `:host(.ion-color){color:var(--ion-color-base)}`; const Text = class { constructor(hostRef) { registerInstance(this, hostRef); } render() { const mode = getIonMode(this); return (h(Host, { key: 'b6f604df1b7aa5705a5b9a458e669a6a921c02a1', class: createColorClasses(this.color, { [mode]: true, }) }, h("slot", { key: '055d07b024a6554dfcf959fc8ed7b405e2730af2' }))); } }; Text.style = textCss(); export { Text as ion_text };