@ionic/react 8.3.2 → 8.3.3-dev.11728518847.1ef16a63
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.
|
@@ -17,11 +17,11 @@ interface Props extends LocalJSX.IonTabs {
|
|
|
17
17
|
export declare const IonTabs: {
|
|
18
18
|
new (props: Props): {
|
|
19
19
|
context: React.ContextType<typeof NavContext>;
|
|
20
|
-
routerOutletRef: React.Ref<HTMLIonRouterOutletElement>;
|
|
21
20
|
selectTabHandler?: (tag: string) => boolean;
|
|
22
21
|
tabBarRef: React.RefObject<any>;
|
|
23
22
|
ionTabContextState: IonTabsContextState;
|
|
24
23
|
componentDidMount(): void;
|
|
24
|
+
renderTabsInner(children: React.ReactNode, outlet: React.ReactElement<{}> | undefined): React.JSX.Element;
|
|
25
25
|
render(): React.JSX.Element;
|
|
26
26
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Props>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
27
27
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
@@ -2,5 +2,19 @@ import React from 'react';
|
|
|
2
2
|
export interface IonTabsContextState {
|
|
3
3
|
activeTab: string | undefined;
|
|
4
4
|
selectTab: (tab: string) => boolean;
|
|
5
|
+
hasRouterOutlet: boolean;
|
|
6
|
+
tabBarProps: TabBarProps;
|
|
5
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* Tab bar can be used as a standalone component,
|
|
10
|
+
* so the props can not be passed directly to the
|
|
11
|
+
* tab bar component. Instead, props will be
|
|
12
|
+
* passed through the context.
|
|
13
|
+
*/
|
|
14
|
+
type TabBarProps = {
|
|
15
|
+
ref: React.RefObject<any>;
|
|
16
|
+
onIonTabsWillChange?: (e: CustomEvent) => void;
|
|
17
|
+
onIonTabsDidChange?: (e: CustomEvent) => void;
|
|
18
|
+
};
|
|
6
19
|
export declare const IonTabsContext: React.Context<IonTabsContextState>;
|
|
20
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ionic/react",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.3-dev.11728518847.1ef16a63",
|
|
4
4
|
"description": "React specific wrapper for @ionic/core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ionic",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"css/"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@ionic/core": "8.3.
|
|
42
|
+
"@ionic/core": "8.3.3-dev.11728518847.1ef16a63",
|
|
43
43
|
"ionicons": "^7.0.0",
|
|
44
44
|
"tslib": "*"
|
|
45
45
|
},
|