@ionic/core
Version:
Base components for Ionic
50 lines (44 loc) • 1.56 kB
JavaScript
/*!
* (C) Ionic http://ionicframework.com - MIT License
*/
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
import { b as getIonMode } from './ionic-global.js';
const itemGroupIosCss = "ion-item-group{display:block}";
const IonItemGroupIosStyle0 = itemGroupIosCss;
const itemGroupMdCss = "ion-item-group{display:block}";
const IonItemGroupMdStyle0 = itemGroupMdCss;
const ItemGroup = /*@__PURE__*/ proxyCustomElement(class ItemGroup extends HTMLElement {
constructor() {
super();
this.__registerHost();
}
render() {
const mode = getIonMode(this);
return (h(Host, { key: 'de2a969ed0dda880bc560a325848b28d0287fdb9', role: "group", class: {
[mode]: true,
// Used internally for styling
[`item-group-${mode}`]: true,
item: true,
} }));
}
static get style() { return {
ios: IonItemGroupIosStyle0,
md: IonItemGroupMdStyle0
}; }
}, [32, "ion-item-group"]);
function defineCustomElement$1() {
if (typeof customElements === "undefined") {
return;
}
const components = ["ion-item-group"];
components.forEach(tagName => { switch (tagName) {
case "ion-item-group":
if (!customElements.get(tagName)) {
customElements.define(tagName, ItemGroup);
}
break;
} });
}
const IonItemGroup = ItemGroup;
const defineCustomElement = defineCustomElement$1;
export { IonItemGroup, defineCustomElement };