@ionic/react 8.8.19-dev.11787001349.1d67ef19 → 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.
@@ -1,20 +1,13 @@
1
1
  import type { ModalOptions } from '@ionic/core/components';
2
- import type { ComponentType } from 'react';
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 functional component
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: JSX.Element, componentProps?: any): UseIonModalResult;
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 { ComponentType } from 'react';
2
+ import type { ReactComponentOrElement } from '../models/ReactComponentOrElement';
3
3
  import type { HookOverlayOptions } from './HookOverlayOptions';
4
4
  /**
5
- * A hook for presenting/dismissing an IonPopover component
6
- * @param component The component that the popover will show. Can be a React Component or a functional component
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: JSX.Element, componentProps?: any): UseIonPopoverResult;
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
  /**
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.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.11787001349.1d67ef19",
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": "*"