ion-text.entry.js 867 B

1234567891011121314151617181920212223242526
  1. /*!
  2. * (C) Ionic http://ionicframework.com - MIT License
  3. */
  4. import { r as registerInstance, h, e as Host } from './index-527b9e34.js';
  5. import { c as createColorClasses } from './theme-01f3f29c.js';
  6. import { b as getIonMode } from './ionic-global-b26f573e.js';
  7. import './index-cfd9c1f2.js';
  8. const textCss = ":host(.ion-color){color:var(--ion-color-base)}";
  9. const IonTextStyle0 = textCss;
  10. const Text = class {
  11. constructor(hostRef) {
  12. registerInstance(this, hostRef);
  13. this.color = undefined;
  14. }
  15. render() {
  16. const mode = getIonMode(this);
  17. return (h(Host, { key: '0c2546ea3f24b0a6bfd606199441d0a4edfa4ca1', class: createColorClasses(this.color, {
  18. [mode]: true,
  19. }) }, h("slot", { key: 'b7623ccb06f9461090a1f33e9f85886c7a4d5eff' })));
  20. }
  21. };
  22. Text.style = IonTextStyle0;
  23. export { Text as ion_text };