@ionic/react 8.3.3-nightly.20241016 → 8.3.3
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,18 @@ interface Props extends LocalJSX.IonTabs {
|
|
|
17
17
|
export declare const IonTabs: {
|
|
18
18
|
new (props: Props): {
|
|
19
19
|
context: React.ContextType<typeof NavContext>;
|
|
20
|
+
/**
|
|
21
|
+
* `routerOutletRef` allows users to add a `ref` to `IonRouterOutlet`.
|
|
22
|
+
* Without this, `ref.current` will be `undefined` in the user's app,
|
|
23
|
+
* breaking their ability to access the `IonRouterOutlet` instance.
|
|
24
|
+
* Do not remove this ref.
|
|
25
|
+
*/
|
|
20
26
|
routerOutletRef: React.Ref<HTMLIonRouterOutletElement>;
|
|
21
27
|
selectTabHandler?: (tag: string) => boolean;
|
|
22
28
|
tabBarRef: React.RefObject<any>;
|
|
23
29
|
ionTabContextState: IonTabsContextState;
|
|
24
30
|
componentDidMount(): void;
|
|
31
|
+
renderTabsInner(children: React.ReactNode, outlet: React.ReactElement<{}> | undefined): React.JSX.Element;
|
|
25
32
|
render(): React.JSX.Element;
|
|
26
33
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Props>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
27
34
|
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
|
|
3
|
+
"version": "8.3.3",
|
|
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.3
|
|
42
|
+
"@ionic/core": "8.3.3",
|
|
43
43
|
"ionicons": "^7.0.0",
|
|
44
44
|
"tslib": "*"
|
|
45
45
|
},
|