@ionic/react 8.8.19-dev.11786735826.1fad7c0a → 8.8.19-dev.11787001349.1d67ef19
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
CHANGED
|
@@ -2935,13 +2935,6 @@ function useOverlay(displayName, controller, defineCustomElement, component, com
|
|
|
2935
2935
|
};
|
|
2936
2936
|
}
|
|
2937
2937
|
|
|
2938
|
-
// TODO(FW-2959): types
|
|
2939
|
-
/**
|
|
2940
|
-
* A hook for presenting/dismissing an IonModal component
|
|
2941
|
-
* @param component The component that the modal will show. Can be a React Component, a functional component, or a JSX Element
|
|
2942
|
-
* @param componentProps The props that will be passed to the component, if required
|
|
2943
|
-
* @returns Returns the present and dismiss methods in an array
|
|
2944
|
-
*/
|
|
2945
2938
|
function useIonModal(component, componentProps) {
|
|
2946
2939
|
const controller = useOverlay('IonModal', modalController, defineCustomElement$1c, component, componentProps);
|
|
2947
2940
|
const present = useCallback((options = {}) => {
|
|
@@ -2950,13 +2943,6 @@ function useIonModal(component, componentProps) {
|
|
|
2950
2943
|
return [present, controller.dismiss];
|
|
2951
2944
|
}
|
|
2952
2945
|
|
|
2953
|
-
// TODO(FW-2959): types
|
|
2954
|
-
/**
|
|
2955
|
-
* A hook for presenting/dismissing an IonPicker component
|
|
2956
|
-
* @param component The component that the popover will show. Can be a React Component, a functional component, or a JSX Element
|
|
2957
|
-
* @param componentProps The props that will be passed to the component, if required
|
|
2958
|
-
* @returns Returns the present and dismiss methods in an array
|
|
2959
|
-
*/
|
|
2960
2946
|
function useIonPopover(component, componentProps) {
|
|
2961
2947
|
const controller = useOverlay('IonPopover', popoverController, defineCustomElement$1d, component, componentProps);
|
|
2962
2948
|
const present = useCallback((options = {}) => {
|