@ionic/react 8.8.19-dev.11787007863.1976a30e → 8.8.19-dev.11787076261.138d5922
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 +32 -4
- package/dist/index.js.map +1 -1
- package/dist/types/hooks/useIonModal.d.ts +3 -10
- package/dist/types/hooks/useIonPopover.d.ts +4 -11
- package/dist/types/models/ReactComponentOrElement.d.ts +1 -1
- package/package.json +2 -2
- package/dist/types/hooks/__tests__/overlay-hook-types.spec.d.ts +0 -1
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
import type { ModalOptions } from '@ionic/core/components';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ReactComponentOrElement } from '../models/ReactComponentOrElement';
|
|
3
3
|
import type { HookOverlayOptions } from './HookOverlayOptions';
|
|
4
4
|
/**
|
|
5
5
|
* A hook for presenting/dismissing an IonModal component
|
|
6
|
-
* @param component The component that the modal will show. Can be a React Component or a
|
|
7
|
-
* @param componentProps The props that will be passed to the component. Required when the component declares required props
|
|
8
|
-
* @returns Returns the present and dismiss methods in an array
|
|
9
|
-
*/
|
|
10
|
-
export declare function useIonModal<Props extends object>(...args: {} extends Props ? [component: ComponentType<Props>, componentProps?: NoInfer<Props>] : [component: ComponentType<Props>, componentProps: NoInfer<Props>]): UseIonModalResult;
|
|
11
|
-
/**
|
|
12
|
-
* A hook for presenting/dismissing an IonModal component
|
|
13
|
-
* @param component A JSX Element that the modal will show. Props are already bound to the element, so `componentProps` is not type checked
|
|
6
|
+
* @param component The component that the modal will show. Can be a React Component, a functional component, or a JSX Element
|
|
14
7
|
* @param componentProps The props that will be passed to the component, if required
|
|
15
8
|
* @returns Returns the present and dismiss methods in an array
|
|
16
9
|
*/
|
|
17
|
-
export declare function useIonModal(component:
|
|
10
|
+
export declare function useIonModal(component: ReactComponentOrElement, componentProps?: any): UseIonModalResult;
|
|
18
11
|
export type UseIonModalResult = [
|
|
19
12
|
(options?: Omit<ModalOptions, 'component' | 'componentProps'> & HookOverlayOptions) => void,
|
|
20
13
|
/**
|
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
import type { PopoverOptions } from '@ionic/core/components';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ReactComponentOrElement } from '../models/ReactComponentOrElement';
|
|
3
3
|
import type { HookOverlayOptions } from './HookOverlayOptions';
|
|
4
4
|
/**
|
|
5
|
-
* A hook for presenting/dismissing an
|
|
6
|
-
* @param component The component that the popover will show. Can be a React Component or a
|
|
7
|
-
* @param componentProps The props that will be passed to the component. Required when the component declares required props
|
|
8
|
-
* @returns Returns the present and dismiss methods in an array
|
|
9
|
-
*/
|
|
10
|
-
export declare function useIonPopover<Props extends object>(...args: {} extends Props ? [component: ComponentType<Props>, componentProps?: NoInfer<Props>] : [component: ComponentType<Props>, componentProps: NoInfer<Props>]): UseIonPopoverResult;
|
|
11
|
-
/**
|
|
12
|
-
* A hook for presenting/dismissing an IonPopover component
|
|
13
|
-
* @param component A JSX Element that the popover will show. Props are already bound to the element, so `componentProps` is not type checked
|
|
5
|
+
* A hook for presenting/dismissing an IonPicker component
|
|
6
|
+
* @param component The component that the popover will show. Can be a React Component, a functional component, or a JSX Element
|
|
14
7
|
* @param componentProps The props that will be passed to the component, if required
|
|
15
8
|
* @returns Returns the present and dismiss methods in an array
|
|
16
9
|
*/
|
|
17
|
-
export declare function useIonPopover(component:
|
|
10
|
+
export declare function useIonPopover(component: ReactComponentOrElement, componentProps?: any): UseIonPopoverResult;
|
|
18
11
|
export type UseIonPopoverResult = [
|
|
19
12
|
(options?: Omit<PopoverOptions, 'component' | 'componentProps'> & HookOverlayOptions) => void,
|
|
20
13
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
export type ReactComponentOrElement = React.ComponentClass<any, any> | React.FC<any> |
|
|
2
|
+
export type ReactComponentOrElement = React.ComponentClass<any, any> | React.FC<any> | JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ionic/react",
|
|
3
|
-
"version": "8.8.19-dev.
|
|
3
|
+
"version": "8.8.19-dev.11787076261.138d5922",
|
|
4
4
|
"description": "React specific wrapper for @ionic/core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ionic",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"css/"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@ionic/core": "8.8.19-dev.
|
|
44
|
+
"@ionic/core": "8.8.19-dev.11787076261.138d5922",
|
|
45
45
|
"@stencil/react-output-target": "^1.6.2",
|
|
46
46
|
"ionicons": "^8.0.13",
|
|
47
47
|
"tslib": "*"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|