ion-text.cjs.entry.js 937 B

123456789101112131415161718192021222324252627282930
  1. /*!
  2. * (C) Ionic http://ionicframework.com - MIT License
  3. */
  4. 'use strict';
  5. Object.defineProperty(exports, '__esModule', { value: true });
  6. const index = require('./index-2e236a04.js');
  7. const theme = require('./theme-d1c573d2.js');
  8. const ionicGlobal = require('./ionic-global-6dea5a96.js');
  9. require('./index-cc858e97.js');
  10. const textCss = ":host(.ion-color){color:var(--ion-color-base)}";
  11. const IonTextStyle0 = textCss;
  12. const Text = class {
  13. constructor(hostRef) {
  14. index.registerInstance(this, hostRef);
  15. this.color = undefined;
  16. }
  17. render() {
  18. const mode = ionicGlobal.getIonMode(this);
  19. return (index.h(index.Host, { key: '0c2546ea3f24b0a6bfd606199441d0a4edfa4ca1', class: theme.createColorClasses(this.color, {
  20. [mode]: true,
  21. }) }, index.h("slot", { key: 'b7623ccb06f9461090a1f33e9f85886c7a4d5eff' })));
  22. }
  23. };
  24. Text.style = IonTextStyle0;
  25. exports.ion_text = Text;