@ionic/react 8.8.19-dev.11787001349.1d67ef19 → 8.8.19-dev.11787007863.1976a30e

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.
@@ -1,5 +1,5 @@
1
1
  import type { ModalOptions } from '@ionic/core/components';
2
- import type { ComponentType } from 'react';
2
+ import type { ComponentType, ReactElement } from 'react';
3
3
  import type { HookOverlayOptions } from './HookOverlayOptions';
4
4
  /**
5
5
  * A hook for presenting/dismissing an IonModal component
@@ -14,7 +14,7 @@ export declare function useIonModal<Props extends object>(...args: {} extends Pr
14
14
  * @param componentProps The props that will be passed to the component, if required
15
15
  * @returns Returns the present and dismiss methods in an array
16
16
  */
17
- export declare function useIonModal(component: JSX.Element, componentProps?: any): UseIonModalResult;
17
+ export declare function useIonModal(component: ReactElement, componentProps?: any): UseIonModalResult;
18
18
  export type UseIonModalResult = [
19
19
  (options?: Omit<ModalOptions, 'component' | 'componentProps'> & HookOverlayOptions) => void,
20
20
  /**
@@ -1,5 +1,5 @@
1
1
  import type { PopoverOptions } from '@ionic/core/components';
2
- import type { ComponentType } from 'react';
2
+ import type { ComponentType, ReactElement } from 'react';
3
3
  import type { HookOverlayOptions } from './HookOverlayOptions';
4
4
  /**
5
5
  * A hook for presenting/dismissing an IonPopover component
@@ -14,7 +14,7 @@ export declare function useIonPopover<Props extends object>(...args: {} extends
14
14
  * @param componentProps The props that will be passed to the component, if required
15
15
  * @returns Returns the present and dismiss methods in an array
16
16
  */
17
- export declare function useIonPopover(component: JSX.Element, componentProps?: any): UseIonPopoverResult;
17
+ export declare function useIonPopover(component: ReactElement, componentProps?: any): UseIonPopoverResult;
18
18
  export type UseIonPopoverResult = [
19
19
  (options?: Omit<PopoverOptions, 'component' | 'componentProps'> & HookOverlayOptions) => void,
20
20
  /**
@@ -1,2 +1,2 @@
1
1
  import type React from 'react';
2
- export type ReactComponentOrElement = React.ComponentClass<any, any> | React.FC<any> | JSX.Element;
2
+ export type ReactComponentOrElement = React.ComponentClass<any, any> | React.FC<any> | React.ReactElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ionic/react",
3
- "version": "8.8.19-dev.11787001349.1d67ef19",
3
+ "version": "8.8.19-dev.11787007863.1976a30e",
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.11787001349.1d67ef19",
44
+ "@ionic/core": "8.8.19-dev.11787007863.1976a30e",
45
45
  "@stencil/react-output-target": "^1.6.2",
46
46
  "ionicons": "^8.0.13",
47
47
  "tslib": "*"