UNPKG

1.04 kBJavaScriptView Raw
1/*!
2 * (C) Ionic http://ionicframework.com - MIT License
3 */
4import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
5import { b as getIonMode } from './ionic-global.js';
6
7const rowCss = ":host{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}";
8
9const Row = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
10 constructor() {
11 super();
12 this.__registerHost();
13 this.__attachShadow();
14 }
15 render() {
16 return (h(Host, { class: getIonMode(this) }, h("slot", null)));
17 }
18 static get style() { return rowCss; }
19}, [1, "ion-row"]);
20function defineCustomElement$1() {
21 if (typeof customElements === "undefined") {
22 return;
23 }
24 const components = ["ion-row"];
25 components.forEach(tagName => { switch (tagName) {
26 case "ion-row":
27 if (!customElements.get(tagName)) {
28 customElements.define(tagName, Row);
29 }
30 break;
31 } });
32}
33
34const IonRow = Row;
35const defineCustomElement = defineCustomElement$1;
36
37export { IonRow, defineCustomElement };