UNPKG

645 BJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, '__esModule', { value: true });
4
5const index = require('./index-a0a08b2a.js');
6const ionicGlobal = require('./ionic-global-06f21c1a.js');
7const theme = require('./theme-30b7a575.js');
8
9const textCss = ":host(.ion-color){color:var(--ion-color-base)}";
10
11const Text = class {
12 constructor(hostRef) {
13 index.registerInstance(this, hostRef);
14 }
15 render() {
16 const mode = ionicGlobal.getIonMode(this);
17 return (index.h(index.Host, { class: theme.createColorClasses(this.color, {
18 [mode]: true,
19 }) }, index.h("slot", null)));
20 }
21};
22Text.style = textCss;
23
24exports.ion_text = Text;