30 lines
1.2 KiB
JavaScript
Executable file
30 lines
1.2 KiB
JavaScript
Executable file
import { attachShadow, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
import { b as getIonMode } from './ionic-global.js';
|
|
import { c as createColorClasses } from './theme.js';
|
|
|
|
const noteIosCss = ":host{color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-350, #a6a6a6)}";
|
|
|
|
const noteMdCss = ":host{color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-600, #666666);font-size:14px}";
|
|
|
|
const Note = class extends HTMLElement {
|
|
constructor() {
|
|
super();
|
|
this.__registerHost();
|
|
attachShadow(this);
|
|
}
|
|
render() {
|
|
const mode = getIonMode(this);
|
|
return (h(Host, { class: createColorClasses(this.color, {
|
|
[mode]: true,
|
|
}) }, h("slot", null)));
|
|
}
|
|
static get style() { return {
|
|
ios: noteIosCss,
|
|
md: noteMdCss
|
|
}; }
|
|
};
|
|
|
|
const IonNote = /*@__PURE__*/proxyCustomElement(Note, [33,"ion-note",{"color":[513]}]);
|
|
|
|
export { IonNote };
|