@ionic/react 8.3.1-dev.11726159792.1a6f49de → 8.3.1-dev.11726165401.13e99534

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 CHANGED
@@ -2143,6 +2143,9 @@ const IonTabs = /*@__PURE__*/ (() => class extends React.Component {
2143
2143
  if (outlet && hasTab) {
2144
2144
  throw new Error('IonTabs cannot contain an IonRouterOutlet and an IonTab at the same time');
2145
2145
  }
2146
+ if (!tabBar) {
2147
+ throw new Error('IonTabs needs a IonTabBar');
2148
+ }
2146
2149
  if (hasTab) {
2147
2150
  return React.createElement(IonTabsInner, Object.assign({}, this.props));
2148
2151
  }
@@ -2184,9 +2187,9 @@ const IonTabs = /*@__PURE__*/ (() => class extends React.Component {
2184
2187
  }
2185
2188
  return child;
2186
2189
  })))) : (React.createElement("div", Object.assign({ className: className ? `${className}` : 'ion-tabs' }, props, { style: hostStyles }),
2187
- (tabBar === null || tabBar === void 0 ? void 0 : tabBar.props.slot) === 'top' ? tabBar : null,
2190
+ tabBar.props.slot === 'top' ? tabBar : null,
2188
2191
  React.createElement("div", { style: tabsInner, className: "tabs-inner" }, outlet),
2189
- (tabBar === null || tabBar === void 0 ? void 0 : tabBar.props.slot) === 'bottom' ? tabBar : null))));
2192
+ tabBar.props.slot === 'bottom' ? tabBar : null))));
2190
2193
  }
2191
2194
  static get contextType() {
2192
2195
  return NavContext;