@ionic/react 8.2.8-dev.11723747334.19c4ecce → 8.2.8-dev.11724095971.1e1b89ef
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +11 -33
- package/dist/index.js.map +1 -1
- package/dist/types/components/inner-proxies.d.ts +0 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -40,7 +40,7 @@ import { defineCustomElement as defineCustomElement$y } from '@ionic/core/compon
|
|
|
40
40
|
import { defineCustomElement as defineCustomElement$z } from '@ionic/core/components/ion-menu.js';
|
|
41
41
|
import { defineCustomElement as defineCustomElement$A } from '@ionic/core/components/ion-menu-button.js';
|
|
42
42
|
import { defineCustomElement as defineCustomElement$B } from '@ionic/core/components/ion-menu-toggle.js';
|
|
43
|
-
import { defineCustomElement as defineCustomElement$
|
|
43
|
+
import { defineCustomElement as defineCustomElement$1h } from '@ionic/core/components/ion-nav.js';
|
|
44
44
|
import { defineCustomElement as defineCustomElement$C } from '@ionic/core/components/ion-nav-link.js';
|
|
45
45
|
import { defineCustomElement as defineCustomElement$D } from '@ionic/core/components/ion-note.js';
|
|
46
46
|
import { defineCustomElement as defineCustomElement$E } from '@ionic/core/components/ion-picker.js';
|
|
@@ -85,12 +85,11 @@ import { defineCustomElement as defineCustomElement$17 } from '@ionic/core/compo
|
|
|
85
85
|
import { defineCustomElement as defineCustomElement$18 } from '@ionic/core/components/ion-action-sheet.js';
|
|
86
86
|
import { defineCustomElement as defineCustomElement$19 } from '@ionic/core/components/ion-modal.js';
|
|
87
87
|
import { defineCustomElement as defineCustomElement$1a } from '@ionic/core/components/ion-popover.js';
|
|
88
|
-
import { defineCustomElement as defineCustomElement$
|
|
89
|
-
import { defineCustomElement as defineCustomElement$
|
|
88
|
+
import { defineCustomElement as defineCustomElement$1g } from '@ionic/core/components/ion-app.js';
|
|
89
|
+
import { defineCustomElement as defineCustomElement$1f } from '@ionic/core/components/ion-back-button.js';
|
|
90
90
|
import { defineCustomElement as defineCustomElement$1c } from '@ionic/core/components/ion-router-outlet.js';
|
|
91
91
|
import { defineCustomElement as defineCustomElement$1b } from '@ionic/core/components/ion-tab-bar.js';
|
|
92
92
|
import { defineCustomElement as defineCustomElement$1e } from '@ionic/core/components/ion-tab-button.js';
|
|
93
|
-
import { defineCustomElement as defineCustomElement$1f } from '@ionic/core/components/ion-tabs.js';
|
|
94
93
|
import { defineCustomElement as defineCustomElement$1d } from 'ionicons/components/ion-icon.js';
|
|
95
94
|
|
|
96
95
|
const IonLifeCycleContext = /*@__PURE__*/ React.createContext({
|
|
@@ -1075,10 +1074,9 @@ const IonOverlayManager = ({ onAddOverlay, onRemoveOverlay }) => {
|
|
|
1075
1074
|
|
|
1076
1075
|
const IonTabButtonInner = /*@__PURE__*/ createReactComponent('ion-tab-button', undefined, undefined, defineCustomElement$1e);
|
|
1077
1076
|
const IonTabBarInner = /*@__PURE__*/ createReactComponent('ion-tab-bar', undefined, undefined, defineCustomElement$1b);
|
|
1078
|
-
const
|
|
1079
|
-
const IonBackButtonInner = /*@__PURE__*/ createReactComponent('ion-back-button', undefined, undefined, defineCustomElement$1g);
|
|
1077
|
+
const IonBackButtonInner = /*@__PURE__*/ createReactComponent('ion-back-button', undefined, undefined, defineCustomElement$1f);
|
|
1080
1078
|
const IonRouterOutletInner = /*@__PURE__*/ createReactComponent('ion-router-outlet', undefined, undefined, defineCustomElement$1c);
|
|
1081
|
-
const IonAppInner = /*@__PURE__*/ createReactComponent('ion-app', undefined, undefined, defineCustomElement$
|
|
1079
|
+
const IonAppInner = /*@__PURE__*/ createReactComponent('ion-app', undefined, undefined, defineCustomElement$1g);
|
|
1082
1080
|
// ionicons
|
|
1083
1081
|
const IonIconInner = /*@__PURE__*/ createReactComponent('ion-icon', undefined, undefined, defineCustomElement$1d);
|
|
1084
1082
|
|
|
@@ -1241,7 +1239,7 @@ const ReactDelegate = (addView, removeView) => {
|
|
|
1241
1239
|
};
|
|
1242
1240
|
};
|
|
1243
1241
|
|
|
1244
|
-
const IonNavInner = createReactComponent('ion-nav', undefined, undefined, defineCustomElement$
|
|
1242
|
+
const IonNavInner = createReactComponent('ion-nav', undefined, undefined, defineCustomElement$1h);
|
|
1245
1243
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1246
1244
|
const IonNavInternal = (_a) => {
|
|
1247
1245
|
var { children, forwardedRef } = _a, restOfProps = __rest(_a, ["children", "forwardedRef"]);
|
|
@@ -1612,7 +1610,6 @@ const IonTabs = /*@__PURE__*/ (() => class extends React.Component {
|
|
|
1612
1610
|
render() {
|
|
1613
1611
|
let outlet;
|
|
1614
1612
|
let tabBar;
|
|
1615
|
-
let hasIonTab = false;
|
|
1616
1613
|
const _a = this.props, { className, onIonTabsDidChange, onIonTabsWillChange } = _a, props = __rest(_a, ["className", "onIonTabsDidChange", "onIonTabsWillChange"]);
|
|
1617
1614
|
const children = typeof this.props.children === 'function'
|
|
1618
1615
|
? this.props.children(this.ionTabContextState)
|
|
@@ -1628,13 +1625,6 @@ const IonTabs = /*@__PURE__*/ (() => class extends React.Component {
|
|
|
1628
1625
|
else if (child.type === Fragment && child.props.children[0].type === IonRouterOutlet) {
|
|
1629
1626
|
outlet = child.props.children[0];
|
|
1630
1627
|
}
|
|
1631
|
-
else if (child.type === IonTab) {
|
|
1632
|
-
/**
|
|
1633
|
-
* This indicates that IonTabs will be using a basic tab-based navigation
|
|
1634
|
-
* without the history stack or URL updates associated with the router.
|
|
1635
|
-
*/
|
|
1636
|
-
hasIonTab = true;
|
|
1637
|
-
}
|
|
1638
1628
|
let childProps = {
|
|
1639
1629
|
ref: this.tabBarRef,
|
|
1640
1630
|
};
|
|
@@ -1659,29 +1649,17 @@ const IonTabs = /*@__PURE__*/ (() => class extends React.Component {
|
|
|
1659
1649
|
tabBar = React.cloneElement(child.props.children[1], childProps);
|
|
1660
1650
|
}
|
|
1661
1651
|
});
|
|
1662
|
-
if (!outlet
|
|
1652
|
+
if (!outlet) {
|
|
1663
1653
|
throw new Error('IonTabs must contain an IonRouterOutlet');
|
|
1664
1654
|
}
|
|
1665
|
-
if (outlet && hasIonTab) {
|
|
1666
|
-
throw new Error('IonTabs cannot contain an IonRouterOutlet and an IonTab at the same time');
|
|
1667
|
-
}
|
|
1668
1655
|
if (!tabBar) {
|
|
1669
1656
|
throw new Error('IonTabs needs a IonTabBar');
|
|
1670
1657
|
}
|
|
1671
|
-
if (hasIonTab) {
|
|
1672
|
-
return React.createElement(IonTabsInner, Object.assign({}, this.props));
|
|
1673
|
-
}
|
|
1674
1658
|
return (React.createElement(IonTabsContext.Provider, { value: this.ionTabContextState }, this.context.hasIonicRouter() ? (React.createElement(PageManager, Object.assign({ className: className ? `${className}` : '', routeInfo: this.context.routeInfo }, props),
|
|
1675
|
-
React.createElement(
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
* the context and the overridden methods.
|
|
1680
|
-
*/
|
|
1681
|
-
return tabBar;
|
|
1682
|
-
}
|
|
1683
|
-
return child;
|
|
1684
|
-
})))) : (React.createElement("div", Object.assign({ className: className ? `${className}` : 'ion-tabs' }, props, { style: hostStyles }),
|
|
1659
|
+
React.createElement("ion-tabs", { className: "ion-tabs", style: hostStyles },
|
|
1660
|
+
tabBar.props.slot === 'top' ? tabBar : null,
|
|
1661
|
+
React.createElement("div", { style: tabsInner, className: "tabs-inner" }, outlet),
|
|
1662
|
+
tabBar.props.slot === 'bottom' ? tabBar : null))) : (React.createElement("div", Object.assign({ className: className ? `${className}` : 'ion-tabs' }, props, { style: hostStyles }),
|
|
1685
1663
|
tabBar.props.slot === 'top' ? tabBar : null,
|
|
1686
1664
|
React.createElement("div", { style: tabsInner, className: "tabs-inner" }, outlet),
|
|
1687
1665
|
tabBar.props.slot === 'bottom' ? tabBar : null))));
|