UNPKG

@ionic/core

Version:
26 lines (21 loc) • 774 B
/*! * (C) Ionic http://ionicframework.com - MIT License */ 'use strict'; var index = require('./index-BiQyIvoc.js'); var theme = require('./theme-Bw0rpaNN.js'); var ionicGlobal = require('./ionic-global-48ceLiJ6.js'); const textCss = () => `:host(.ion-color){color:var(--ion-color-base)}`; const Text = class { constructor(hostRef) { index.registerInstance(this, hostRef); } render() { const mode = ionicGlobal.getIonMode(this); return (index.h(index.Host, { key: 'b6f604df1b7aa5705a5b9a458e669a6a921c02a1', class: theme.createColorClasses(this.color, { [mode]: true, }) }, index.h("slot", { key: '055d07b024a6554dfcf959fc8ed7b405e2730af2' }))); } }; Text.style = textCss(); exports.ion_text = Text;