@ionic/react 7.5.3-dev.11698858201.14165f23 → 7.5.3-dev.11699994454.1cbf1283
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 +2443 -8
- package/dist/index.js.map +1 -7
- package/dist/types/components/CreateAnimation.d.ts +71 -0
- package/dist/types/components/IonActionSheet.d.ts +3 -0
- package/dist/types/components/IonAlert.d.ts +3 -0
- package/dist/types/components/IonApp.d.ts +41 -0
- package/dist/types/components/IonIcon.d.ts +16 -0
- package/dist/types/components/IonLoading.d.ts +3 -0
- package/dist/types/components/IonModal.d.ts +3 -0
- package/dist/types/components/IonOverlayManager.d.ts +15 -0
- package/dist/types/components/IonPage.d.ts +3 -0
- package/dist/types/components/IonPicker.d.ts +3 -0
- package/dist/types/components/IonPopover.d.ts +3 -0
- package/dist/types/components/IonRedirect.d.ts +16 -0
- package/dist/types/components/IonRoute.d.ts +17 -0
- package/dist/types/components/IonRouterContext.d.ts +42 -0
- package/dist/types/components/IonRouterOutlet.d.ts +8 -0
- package/dist/types/components/IonToast.d.ts +3 -0
- package/dist/types/components/IonicReactProps.d.ts +6 -0
- package/dist/types/components/__tests__/utils.spec.d.ts +1 -0
- package/dist/types/components/createControllerComponent.d.ts +19 -0
- package/dist/types/components/createInlineOverlayComponent.d.ts +2 -0
- package/dist/types/components/createOverlayComponent.d.ts +20 -0
- package/dist/types/components/createRoutingComponent.d.ts +2 -0
- package/dist/types/components/hrefprops.d.ts +9 -0
- package/dist/types/components/index.d.ts +35 -0
- package/dist/types/components/inner-proxies.d.ts +14 -0
- package/dist/types/components/navigation/IonBackButton.d.ts +68 -0
- package/dist/types/components/navigation/IonNav.d.ts +5 -0
- package/dist/types/components/navigation/IonTabBar.d.ts +15 -0
- package/dist/types/components/navigation/IonTabButton.d.ts +40 -0
- package/dist/types/components/navigation/IonTabs.d.ts +49 -0
- package/dist/types/components/navigation/IonTabsContext.d.ts +6 -0
- package/dist/types/components/proxies.d.ts +66 -0
- package/dist/types/components/react-component-lib/createComponent.d.ts +10 -0
- package/dist/types/components/react-component-lib/createOverlayComponent.d.ts +21 -0
- package/dist/types/components/react-component-lib/index.d.ts +2 -0
- package/dist/types/components/react-component-lib/interfaces.d.ts +29 -0
- package/dist/types/components/react-component-lib/utils/attachProps.d.ts +16 -0
- package/dist/types/components/react-component-lib/utils/case.d.ts +2 -0
- package/dist/types/components/react-component-lib/utils/dev.d.ts +2 -0
- package/dist/types/components/react-component-lib/utils/index.d.ts +10 -0
- package/dist/types/components/routing-proxies.d.ts +44 -0
- package/dist/types/components/utils/detachProps.d.ts +8 -0
- package/dist/types/components/utils/index.d.ts +8 -0
- package/dist/types/components/utils/ionRenderToString.d.ts +2 -0
- package/dist/types/contexts/IonContext.d.ts +7 -0
- package/dist/types/contexts/IonLifeCycleContext.d.ts +72 -0
- package/dist/types/contexts/NavContext.d.ts +17 -0
- package/dist/types/framework-delegate.d.ts +2 -0
- package/dist/types/hooks/HookOverlayOptions.d.ts +7 -0
- package/dist/types/hooks/__tests__/hooks.spec.d.ts +0 -0
- package/dist/types/hooks/useController.d.ts +12 -0
- package/dist/types/hooks/useIonActionSheet.d.ts +26 -0
- package/dist/types/hooks/useIonAlert.d.ts +26 -0
- package/dist/types/hooks/useIonLoading.d.ts +27 -0
- package/dist/types/hooks/useIonModal.d.ts +17 -0
- package/dist/types/hooks/useIonPicker.d.ts +26 -0
- package/dist/types/hooks/useIonPopover.d.ts +17 -0
- package/dist/types/hooks/useIonToast.d.ts +26 -0
- package/dist/types/hooks/useOverlay.d.ts +13 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/lifecycle/IonLifeCycleHOC.d.ts +31 -0
- package/dist/types/lifecycle/hooks.d.ts +5 -0
- package/dist/types/lifecycle/index.d.ts +2 -0
- package/dist/types/models/ReactComponentOrElement.d.ts +2 -0
- package/dist/types/models/RouteAction.d.ts +1 -0
- package/dist/types/models/RouteInfo.d.ts +19 -0
- package/dist/types/models/RouterDirection.d.ts +1 -0
- package/dist/types/models/RouterOptions.d.ts +10 -0
- package/dist/types/models/index.d.ts +5 -0
- package/dist/types/routing/LocationHistory.d.ts +20 -0
- package/dist/types/routing/NavManager.d.ts +38 -0
- package/dist/types/routing/OutletPageManager.d.ts +26 -0
- package/dist/types/routing/PageManager.d.ts +25 -0
- package/dist/types/routing/RouteManagerContext.d.ts +16 -0
- package/dist/types/routing/StackContext.d.ts +7 -0
- package/dist/types/routing/ViewItem.d.ts +12 -0
- package/dist/types/routing/ViewLifeCycleManager.d.ts +42 -0
- package/dist/types/routing/ViewStacks.d.ts +19 -0
- package/dist/types/routing/__tests__/LocationHistory.spec.d.ts +1 -0
- package/dist/types/routing/index.d.ts +7 -0
- package/dist/types/utils/HTMLElementSSR.d.ts +4 -0
- package/dist/types/utils/generateId.d.ts +1 -0
- package/package.json +12 -5
- package/dist/components/CreateAnimation.js +0 -107
- package/dist/components/CreateAnimation.js.map +0 -7
- package/dist/components/IonActionSheet.js +0 -8
- package/dist/components/IonActionSheet.js.map +0 -7
- package/dist/components/IonAlert.js +0 -8
- package/dist/components/IonAlert.js.map +0 -7
- package/dist/components/IonApp.js +0 -42
- package/dist/components/IonApp.js.map +0 -7
- package/dist/components/IonIcon.js +0 -39
- package/dist/components/IonIcon.js.map +0 -7
- package/dist/components/IonLoading.js +0 -8
- package/dist/components/IonLoading.js.map +0 -7
- package/dist/components/IonModal.js +0 -9
- package/dist/components/IonModal.js.map +0 -7
- package/dist/components/IonOverlayManager.js +0 -29
- package/dist/components/IonOverlayManager.js.map +0 -7
- package/dist/components/IonPage.js +0 -31
- package/dist/components/IonPage.js.map +0 -7
- package/dist/components/IonPicker.js +0 -8
- package/dist/components/IonPicker.js.map +0 -7
- package/dist/components/IonPopover.js +0 -8
- package/dist/components/IonPopover.js.map +0 -7
- package/dist/components/IonRedirect.js +0 -19
- package/dist/components/IonRedirect.js.map +0 -7
- package/dist/components/IonRoute.js +0 -17
- package/dist/components/IonRoute.js.map +0 -7
- package/dist/components/IonRouterContext.js +0 -32
- package/dist/components/IonRouterContext.js.map +0 -7
- package/dist/components/IonRouterOutlet.js +0 -24
- package/dist/components/IonRouterOutlet.js.map +0 -7
- package/dist/components/IonToast.js +0 -8
- package/dist/components/IonToast.js.map +0 -7
- package/dist/components/IonicReactProps.js +0 -2
- package/dist/components/IonicReactProps.js.map +0 -7
- package/dist/components/__tests__/utils.spec.js +0 -50
- package/dist/components/__tests__/utils.spec.js.map +0 -7
- package/dist/components/createControllerComponent.js +0 -80
- package/dist/components/createControllerComponent.js.map +0 -7
- package/dist/components/createInlineOverlayComponent.js +0 -114
- package/dist/components/createInlineOverlayComponent.js.map +0 -7
- package/dist/components/createOverlayComponent.js +0 -88
- package/dist/components/createOverlayComponent.js.map +0 -7
- package/dist/components/createRoutingComponent.js +0 -79
- package/dist/components/createRoutingComponent.js.map +0 -7
- package/dist/components/hrefprops.js +0 -2
- package/dist/components/hrefprops.js.map +0 -7
- package/dist/components/index.js +0 -126
- package/dist/components/index.js.map +0 -7
- package/dist/components/inner-proxies.js +0 -30
- package/dist/components/inner-proxies.js.map +0 -7
- package/dist/components/navigation/IonBackButton.js +0 -31
- package/dist/components/navigation/IonBackButton.js.map +0 -7
- package/dist/components/navigation/IonNav.js +0 -21
- package/dist/components/navigation/IonNav.js.map +0 -7
- package/dist/components/navigation/IonTabBar.js +0 -173
- package/dist/components/navigation/IonTabBar.js.map +0 -7
- package/dist/components/navigation/IonTabButton.js +0 -30
- package/dist/components/navigation/IonTabButton.js.map +0 -7
- package/dist/components/navigation/IonTabs.js +0 -103
- package/dist/components/navigation/IonTabs.js.map +0 -7
- package/dist/components/navigation/IonTabsContext.js +0 -7
- package/dist/components/navigation/IonTabsContext.js.map +0 -7
- package/dist/components/proxies.js +0 -131
- package/dist/components/proxies.js.map +0 -7
- package/dist/components/react-component-lib/createComponent.js +0 -58
- package/dist/components/react-component-lib/createComponent.js.map +0 -7
- package/dist/components/react-component-lib/createOverlayComponent.js +0 -86
- package/dist/components/react-component-lib/createOverlayComponent.js.map +0 -7
- package/dist/components/react-component-lib/index.js +0 -4
- package/dist/components/react-component-lib/index.js.map +0 -7
- package/dist/components/react-component-lib/interfaces.js +0 -2
- package/dist/components/react-component-lib/interfaces.js.map +0 -7
- package/dist/components/react-component-lib/utils/attachProps.js +0 -92
- package/dist/components/react-component-lib/utils/attachProps.js.map +0 -7
- package/dist/components/react-component-lib/utils/case.js +0 -4
- package/dist/components/react-component-lib/utils/case.js.map +0 -7
- package/dist/components/react-component-lib/utils/dev.js +0 -14
- package/dist/components/react-component-lib/utils/dev.js.map +0 -7
- package/dist/components/react-component-lib/utils/index.js +0 -31
- package/dist/components/react-component-lib/utils/index.js.map +0 -7
- package/dist/components/routing-proxies.js +0 -29
- package/dist/components/routing-proxies.js.map +0 -7
- package/dist/components/utils/detachProps.js +0 -24
- package/dist/components/utils/detachProps.js.map +0 -7
- package/dist/components/utils/index.js +0 -26
- package/dist/components/utils/index.js.map +0 -7
- package/dist/components/utils/ionRenderToString.js +0 -36
- package/dist/components/utils/ionRenderToString.js.map +0 -7
- package/dist/contexts/IonContext.js +0 -11
- package/dist/contexts/IonContext.js.map +0 -7
- package/dist/contexts/IonLifeCycleContext.js +0 -185
- package/dist/contexts/IonLifeCycleContext.js.map +0 -7
- package/dist/contexts/NavContext.js +0 -36
- package/dist/contexts/NavContext.js.map +0 -7
- package/dist/framework-delegate.js +0 -30
- package/dist/framework-delegate.js.map +0 -7
- package/dist/hooks/HookOverlayOptions.js +0 -2
- package/dist/hooks/HookOverlayOptions.js.map +0 -7
- package/dist/hooks/__tests__/hooks.spec.js +0 -6
- package/dist/hooks/__tests__/hooks.spec.js.map +0 -7
- package/dist/hooks/useController.js +0 -45
- package/dist/hooks/useController.js.map +0 -7
- package/dist/hooks/useIonActionSheet.js +0 -27
- package/dist/hooks/useIonActionSheet.js.map +0 -7
- package/dist/hooks/useIonAlert.js +0 -23
- package/dist/hooks/useIonAlert.js.map +0 -7
- package/dist/hooks/useIonLoading.js +0 -28
- package/dist/hooks/useIonLoading.js.map +0 -7
- package/dist/hooks/useIonModal.js +0 -22
- package/dist/hooks/useIonModal.js.map +0 -7
- package/dist/hooks/useIonPicker.js +0 -27
- package/dist/hooks/useIonPicker.js.map +0 -7
- package/dist/hooks/useIonPopover.js +0 -22
- package/dist/hooks/useIonPopover.js.map +0 -7
- package/dist/hooks/useIonToast.js +0 -23
- package/dist/hooks/useIonToast.js.map +0 -7
- package/dist/hooks/useOverlay.js +0 -67
- package/dist/hooks/useOverlay.js.map +0 -7
- package/dist/lifecycle/IonLifeCycleHOC.js +0 -41
- package/dist/lifecycle/IonLifeCycleHOC.js.map +0 -7
- package/dist/lifecycle/hooks.js +0 -52
- package/dist/lifecycle/hooks.js.map +0 -7
- package/dist/lifecycle/index.js +0 -4
- package/dist/lifecycle/index.js.map +0 -7
- package/dist/models/ReactComponentOrElement.js +0 -2
- package/dist/models/ReactComponentOrElement.js.map +0 -7
- package/dist/models/RouteAction.js +0 -2
- package/dist/models/RouteAction.js.map +0 -7
- package/dist/models/RouteInfo.js +0 -2
- package/dist/models/RouteInfo.js.map +0 -7
- package/dist/models/RouterDirection.js +0 -2
- package/dist/models/RouterDirection.js.map +0 -7
- package/dist/models/RouterOptions.js +0 -2
- package/dist/models/RouterOptions.js.map +0 -7
- package/dist/models/index.js +0 -7
- package/dist/models/index.js.map +0 -7
- package/dist/routing/LocationHistory.js +0 -140
- package/dist/routing/LocationHistory.js.map +0 -7
- package/dist/routing/NavManager.js +0 -76
- package/dist/routing/NavManager.js.map +0 -7
- package/dist/routing/OutletPageManager.js +0 -69
- package/dist/routing/OutletPageManager.js.map +0 -7
- package/dist/routing/PageManager.js +0 -60
- package/dist/routing/PageManager.js.map +0 -7
- package/dist/routing/RouteManagerContext.js +0 -15
- package/dist/routing/RouteManagerContext.js.map +0 -7
- package/dist/routing/StackContext.js +0 -7
- package/dist/routing/StackContext.js.map +0 -7
- package/dist/routing/ViewItem.js +0 -2
- package/dist/routing/ViewItem.js.map +0 -7
- package/dist/routing/ViewLifeCycleManager.js +0 -36
- package/dist/routing/ViewLifeCycleManager.js.map +0 -7
- package/dist/routing/ViewStacks.js +0 -49
- package/dist/routing/ViewStacks.js.map +0 -7
- package/dist/routing/__tests__/LocationHistory.spec.js +0 -185
- package/dist/routing/__tests__/LocationHistory.spec.js.map +0 -7
- package/dist/routing/index.js +0 -9
- package/dist/routing/index.js.map +0 -7
- package/dist/utils/HTMLElementSSR.js +0 -4
- package/dist/utils/HTMLElementSSR.js.map +0 -7
- package/dist/utils/generateId.js +0 -8
- package/dist/utils/generateId.js.map +0 -7
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { JSX } from '@ionic/core/components';
|
|
3
|
+
export declare const IonAccordion: import("react").ForwardRefExoticComponent<JSX.IonAccordion & Omit<import("react").HTMLAttributes<HTMLIonAccordionElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonAccordionElement>>;
|
|
4
|
+
export declare const IonAccordionGroup: import("react").ForwardRefExoticComponent<JSX.IonAccordionGroup & Omit<import("react").HTMLAttributes<HTMLIonAccordionGroupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonAccordionGroupElement>>;
|
|
5
|
+
export declare const IonAvatar: import("react").ForwardRefExoticComponent<JSX.IonAvatar & Omit<import("react").HTMLAttributes<HTMLIonAvatarElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonAvatarElement>>;
|
|
6
|
+
export declare const IonBackdrop: import("react").ForwardRefExoticComponent<JSX.IonBackdrop & Omit<import("react").HTMLAttributes<HTMLIonBackdropElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonBackdropElement>>;
|
|
7
|
+
export declare const IonBadge: import("react").ForwardRefExoticComponent<JSX.IonBadge & Omit<import("react").HTMLAttributes<HTMLIonBadgeElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonBadgeElement>>;
|
|
8
|
+
export declare const IonBreadcrumbs: import("react").ForwardRefExoticComponent<JSX.IonBreadcrumbs & Omit<import("react").HTMLAttributes<HTMLIonBreadcrumbsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonBreadcrumbsElement>>;
|
|
9
|
+
export declare const IonButtons: import("react").ForwardRefExoticComponent<JSX.IonButtons & Omit<import("react").HTMLAttributes<HTMLIonButtonsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonButtonsElement>>;
|
|
10
|
+
export declare const IonCardContent: import("react").ForwardRefExoticComponent<JSX.IonCardContent & Omit<import("react").HTMLAttributes<HTMLIonCardContentElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonCardContentElement>>;
|
|
11
|
+
export declare const IonCardHeader: import("react").ForwardRefExoticComponent<JSX.IonCardHeader & Omit<import("react").HTMLAttributes<HTMLIonCardHeaderElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonCardHeaderElement>>;
|
|
12
|
+
export declare const IonCardSubtitle: import("react").ForwardRefExoticComponent<JSX.IonCardSubtitle & Omit<import("react").HTMLAttributes<HTMLIonCardSubtitleElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonCardSubtitleElement>>;
|
|
13
|
+
export declare const IonCardTitle: import("react").ForwardRefExoticComponent<JSX.IonCardTitle & Omit<import("react").HTMLAttributes<HTMLIonCardTitleElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonCardTitleElement>>;
|
|
14
|
+
export declare const IonCheckbox: import("react").ForwardRefExoticComponent<JSX.IonCheckbox & Omit<import("react").HTMLAttributes<HTMLIonCheckboxElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonCheckboxElement>>;
|
|
15
|
+
export declare const IonChip: import("react").ForwardRefExoticComponent<JSX.IonChip & Omit<import("react").HTMLAttributes<HTMLIonChipElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonChipElement>>;
|
|
16
|
+
export declare const IonCol: import("react").ForwardRefExoticComponent<JSX.IonCol & Omit<import("react").HTMLAttributes<HTMLIonColElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonColElement>>;
|
|
17
|
+
export declare const IonContent: import("react").ForwardRefExoticComponent<JSX.IonContent & Omit<import("react").HTMLAttributes<HTMLIonContentElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonContentElement>>;
|
|
18
|
+
export declare const IonDatetime: import("react").ForwardRefExoticComponent<JSX.IonDatetime & Omit<import("react").HTMLAttributes<HTMLIonDatetimeElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonDatetimeElement>>;
|
|
19
|
+
export declare const IonDatetimeButton: import("react").ForwardRefExoticComponent<JSX.IonDatetimeButton & Omit<import("react").HTMLAttributes<HTMLIonDatetimeButtonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonDatetimeButtonElement>>;
|
|
20
|
+
export declare const IonFab: import("react").ForwardRefExoticComponent<JSX.IonFab & Omit<import("react").HTMLAttributes<HTMLIonFabElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonFabElement>>;
|
|
21
|
+
export declare const IonFabList: import("react").ForwardRefExoticComponent<JSX.IonFabList & Omit<import("react").HTMLAttributes<HTMLIonFabListElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonFabListElement>>;
|
|
22
|
+
export declare const IonFooter: import("react").ForwardRefExoticComponent<JSX.IonFooter & Omit<import("react").HTMLAttributes<HTMLIonFooterElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonFooterElement>>;
|
|
23
|
+
export declare const IonGrid: import("react").ForwardRefExoticComponent<JSX.IonGrid & Omit<import("react").HTMLAttributes<HTMLIonGridElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonGridElement>>;
|
|
24
|
+
export declare const IonHeader: import("react").ForwardRefExoticComponent<JSX.IonHeader & Omit<import("react").HTMLAttributes<HTMLIonHeaderElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonHeaderElement>>;
|
|
25
|
+
export declare const IonImg: import("react").ForwardRefExoticComponent<JSX.IonImg & Omit<import("react").HTMLAttributes<HTMLIonImgElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonImgElement>>;
|
|
26
|
+
export declare const IonInfiniteScroll: import("react").ForwardRefExoticComponent<JSX.IonInfiniteScroll & Omit<import("react").HTMLAttributes<HTMLIonInfiniteScrollElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonInfiniteScrollElement>>;
|
|
27
|
+
export declare const IonInfiniteScrollContent: import("react").ForwardRefExoticComponent<JSX.IonInfiniteScrollContent & Omit<import("react").HTMLAttributes<HTMLIonInfiniteScrollContentElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonInfiniteScrollContentElement>>;
|
|
28
|
+
export declare const IonInput: import("react").ForwardRefExoticComponent<JSX.IonInput & Omit<import("react").HTMLAttributes<HTMLIonInputElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonInputElement>>;
|
|
29
|
+
export declare const IonItemDivider: import("react").ForwardRefExoticComponent<JSX.IonItemDivider & Omit<import("react").HTMLAttributes<HTMLIonItemDividerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonItemDividerElement>>;
|
|
30
|
+
export declare const IonItemGroup: import("react").ForwardRefExoticComponent<JSX.IonItemGroup & Omit<import("react").HTMLAttributes<HTMLIonItemGroupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonItemGroupElement>>;
|
|
31
|
+
export declare const IonItemOptions: import("react").ForwardRefExoticComponent<JSX.IonItemOptions & Omit<import("react").HTMLAttributes<HTMLIonItemOptionsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonItemOptionsElement>>;
|
|
32
|
+
export declare const IonItemSliding: import("react").ForwardRefExoticComponent<JSX.IonItemSliding & Omit<import("react").HTMLAttributes<HTMLIonItemSlidingElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonItemSlidingElement>>;
|
|
33
|
+
export declare const IonLabel: import("react").ForwardRefExoticComponent<JSX.IonLabel & Omit<import("react").HTMLAttributes<HTMLIonLabelElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonLabelElement>>;
|
|
34
|
+
export declare const IonList: import("react").ForwardRefExoticComponent<JSX.IonList & Omit<import("react").HTMLAttributes<HTMLIonListElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonListElement>>;
|
|
35
|
+
export declare const IonListHeader: import("react").ForwardRefExoticComponent<JSX.IonListHeader & Omit<import("react").HTMLAttributes<HTMLIonListHeaderElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonListHeaderElement>>;
|
|
36
|
+
export declare const IonMenu: import("react").ForwardRefExoticComponent<JSX.IonMenu & Omit<import("react").HTMLAttributes<HTMLIonMenuElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonMenuElement>>;
|
|
37
|
+
export declare const IonMenuButton: import("react").ForwardRefExoticComponent<JSX.IonMenuButton & Omit<import("react").HTMLAttributes<HTMLIonMenuButtonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonMenuButtonElement>>;
|
|
38
|
+
export declare const IonMenuToggle: import("react").ForwardRefExoticComponent<JSX.IonMenuToggle & Omit<import("react").HTMLAttributes<HTMLIonMenuToggleElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonMenuToggleElement>>;
|
|
39
|
+
export declare const IonNav: import("react").ForwardRefExoticComponent<JSX.IonNav & Omit<import("react").HTMLAttributes<HTMLIonNavElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonNavElement>>;
|
|
40
|
+
export declare const IonNavLink: import("react").ForwardRefExoticComponent<JSX.IonNavLink & Omit<import("react").HTMLAttributes<HTMLIonNavLinkElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonNavLinkElement>>;
|
|
41
|
+
export declare const IonNote: import("react").ForwardRefExoticComponent<JSX.IonNote & Omit<import("react").HTMLAttributes<HTMLIonNoteElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonNoteElement>>;
|
|
42
|
+
export declare const IonProgressBar: import("react").ForwardRefExoticComponent<JSX.IonProgressBar & Omit<import("react").HTMLAttributes<HTMLIonProgressBarElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonProgressBarElement>>;
|
|
43
|
+
export declare const IonRadio: import("react").ForwardRefExoticComponent<JSX.IonRadio & Omit<import("react").HTMLAttributes<HTMLIonRadioElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonRadioElement>>;
|
|
44
|
+
export declare const IonRadioGroup: import("react").ForwardRefExoticComponent<JSX.IonRadioGroup & Omit<import("react").HTMLAttributes<HTMLIonRadioGroupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonRadioGroupElement>>;
|
|
45
|
+
export declare const IonRange: import("react").ForwardRefExoticComponent<JSX.IonRange & Omit<import("react").HTMLAttributes<HTMLIonRangeElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonRangeElement>>;
|
|
46
|
+
export declare const IonRefresher: import("react").ForwardRefExoticComponent<JSX.IonRefresher & Omit<import("react").HTMLAttributes<HTMLIonRefresherElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonRefresherElement>>;
|
|
47
|
+
export declare const IonRefresherContent: import("react").ForwardRefExoticComponent<JSX.IonRefresherContent & Omit<import("react").HTMLAttributes<HTMLIonRefresherContentElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonRefresherContentElement>>;
|
|
48
|
+
export declare const IonReorder: import("react").ForwardRefExoticComponent<JSX.IonReorder & Omit<import("react").HTMLAttributes<HTMLIonReorderElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonReorderElement>>;
|
|
49
|
+
export declare const IonReorderGroup: import("react").ForwardRefExoticComponent<JSX.IonReorderGroup & Omit<import("react").HTMLAttributes<HTMLIonReorderGroupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonReorderGroupElement>>;
|
|
50
|
+
export declare const IonRippleEffect: import("react").ForwardRefExoticComponent<JSX.IonRippleEffect & Omit<import("react").HTMLAttributes<HTMLIonRippleEffectElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonRippleEffectElement>>;
|
|
51
|
+
export declare const IonRow: import("react").ForwardRefExoticComponent<JSX.IonRow & Omit<import("react").HTMLAttributes<HTMLIonRowElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonRowElement>>;
|
|
52
|
+
export declare const IonSearchbar: import("react").ForwardRefExoticComponent<JSX.IonSearchbar & Omit<import("react").HTMLAttributes<HTMLIonSearchbarElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonSearchbarElement>>;
|
|
53
|
+
export declare const IonSegment: import("react").ForwardRefExoticComponent<JSX.IonSegment & Omit<import("react").HTMLAttributes<HTMLIonSegmentElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonSegmentElement>>;
|
|
54
|
+
export declare const IonSegmentButton: import("react").ForwardRefExoticComponent<JSX.IonSegmentButton & Omit<import("react").HTMLAttributes<HTMLIonSegmentButtonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonSegmentButtonElement>>;
|
|
55
|
+
export declare const IonSelect: import("react").ForwardRefExoticComponent<JSX.IonSelect & Omit<import("react").HTMLAttributes<HTMLIonSelectElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonSelectElement>>;
|
|
56
|
+
export declare const IonSelectOption: import("react").ForwardRefExoticComponent<JSX.IonSelectOption & Omit<import("react").HTMLAttributes<HTMLIonSelectOptionElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonSelectOptionElement>>;
|
|
57
|
+
export declare const IonSkeletonText: import("react").ForwardRefExoticComponent<JSX.IonSkeletonText & Omit<import("react").HTMLAttributes<HTMLIonSkeletonTextElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonSkeletonTextElement>>;
|
|
58
|
+
export declare const IonSpinner: import("react").ForwardRefExoticComponent<JSX.IonSpinner & Omit<import("react").HTMLAttributes<HTMLIonSpinnerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonSpinnerElement>>;
|
|
59
|
+
export declare const IonSplitPane: import("react").ForwardRefExoticComponent<JSX.IonSplitPane & Omit<import("react").HTMLAttributes<HTMLIonSplitPaneElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonSplitPaneElement>>;
|
|
60
|
+
export declare const IonTab: import("react").ForwardRefExoticComponent<JSX.IonTab & Omit<import("react").HTMLAttributes<HTMLIonTabElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonTabElement>>;
|
|
61
|
+
export declare const IonText: import("react").ForwardRefExoticComponent<JSX.IonText & Omit<import("react").HTMLAttributes<HTMLIonTextElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonTextElement>>;
|
|
62
|
+
export declare const IonTextarea: import("react").ForwardRefExoticComponent<JSX.IonTextarea & Omit<import("react").HTMLAttributes<HTMLIonTextareaElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonTextareaElement>>;
|
|
63
|
+
export declare const IonThumbnail: import("react").ForwardRefExoticComponent<JSX.IonThumbnail & Omit<import("react").HTMLAttributes<HTMLIonThumbnailElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonThumbnailElement>>;
|
|
64
|
+
export declare const IonTitle: import("react").ForwardRefExoticComponent<JSX.IonTitle & Omit<import("react").HTMLAttributes<HTMLIonTitleElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonTitleElement>>;
|
|
65
|
+
export declare const IonToggle: import("react").ForwardRefExoticComponent<JSX.IonToggle & Omit<import("react").HTMLAttributes<HTMLIonToggleElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonToggleElement>>;
|
|
66
|
+
export declare const IonToolbar: import("react").ForwardRefExoticComponent<JSX.IonToolbar & Omit<import("react").HTMLAttributes<HTMLIonToolbarElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonToolbarElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface HTMLStencilElement extends HTMLElement {
|
|
3
|
+
componentOnReady(): Promise<this>;
|
|
4
|
+
}
|
|
5
|
+
interface StencilReactInternalProps<ElementType> extends React.HTMLAttributes<ElementType> {
|
|
6
|
+
forwardedRef: React.RefObject<ElementType>;
|
|
7
|
+
ref?: React.Ref<any>;
|
|
8
|
+
}
|
|
9
|
+
export declare const createReactComponent: <PropType, ElementType extends HTMLStencilElement, ContextStateType = {}, ExpandedPropsTypes = {}>(tagName: string, ReactComponentContext?: React.Context<ContextStateType> | undefined, manipulatePropsFunction?: ((originalProps: StencilReactInternalProps<ElementType>, propsToPass: any) => ExpandedPropsTypes) | undefined, defineCustomElement?: () => void) => React.ForwardRefExoticComponent<React.PropsWithoutRef<PropType & Omit<React.HTMLAttributes<ElementType>, "style"> & import("./interfaces").StyleReactProps> & React.RefAttributes<ElementType>>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { OverlayEventDetail } from './interfaces';
|
|
3
|
+
import { StencilReactForwardedRef } from './utils';
|
|
4
|
+
interface OverlayElement extends HTMLElement {
|
|
5
|
+
present: () => Promise<void>;
|
|
6
|
+
dismiss: (data?: any, role?: string | undefined) => Promise<boolean>;
|
|
7
|
+
}
|
|
8
|
+
export interface ReactOverlayProps {
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
onDidDismiss?: (event: CustomEvent<OverlayEventDetail>) => void;
|
|
12
|
+
onDidPresent?: (event: CustomEvent<OverlayEventDetail>) => void;
|
|
13
|
+
onWillDismiss?: (event: CustomEvent<OverlayEventDetail>) => void;
|
|
14
|
+
onWillPresent?: (event: CustomEvent<OverlayEventDetail>) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const createOverlayComponent: <OverlayComponent extends object, OverlayType extends OverlayElement>(tagName: string, controller: {
|
|
17
|
+
create: (options: any) => Promise<OverlayType>;
|
|
18
|
+
}, customElement?: any) => React.ForwardRefExoticComponent<React.PropsWithoutRef<OverlayComponent & ReactOverlayProps & {
|
|
19
|
+
forwardedRef?: StencilReactForwardedRef<OverlayType> | undefined;
|
|
20
|
+
}> & React.RefAttributes<OverlayType>>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface EventEmitter<T = any> {
|
|
2
|
+
emit: (data?: T) => CustomEvent<T>;
|
|
3
|
+
}
|
|
4
|
+
export interface StyleReactProps {
|
|
5
|
+
class?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface OverlayEventDetail<T = any> {
|
|
12
|
+
data?: T;
|
|
13
|
+
role?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface OverlayInterface {
|
|
16
|
+
el: HTMLElement;
|
|
17
|
+
animated: boolean;
|
|
18
|
+
keyboardClose: boolean;
|
|
19
|
+
overlayIndex: number;
|
|
20
|
+
presented: boolean;
|
|
21
|
+
enterAnimation?: any;
|
|
22
|
+
leaveAnimation?: any;
|
|
23
|
+
didPresent: EventEmitter<void>;
|
|
24
|
+
willPresent: EventEmitter<void>;
|
|
25
|
+
willDismiss: EventEmitter<OverlayEventDetail>;
|
|
26
|
+
didDismiss: EventEmitter<OverlayEventDetail>;
|
|
27
|
+
present(): Promise<void>;
|
|
28
|
+
dismiss(data?: any, role?: string): Promise<boolean>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const attachProps: (node: HTMLElement, newProps: any, oldProps?: any) => void;
|
|
2
|
+
export declare const getClassName: (classList: DOMTokenList, newProps: any, oldProps: any) => string;
|
|
3
|
+
/**
|
|
4
|
+
* Transforms a React event name to a browser event name.
|
|
5
|
+
*/
|
|
6
|
+
export declare const transformReactEventName: (eventNameSuffix: string) => string;
|
|
7
|
+
/**
|
|
8
|
+
* Checks if an event is supported in the current execution environment.
|
|
9
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
10
|
+
*/
|
|
11
|
+
export declare const isCoveredByReact: (eventNameSuffix: string) => boolean;
|
|
12
|
+
export declare const syncEvent: (node: Element & {
|
|
13
|
+
__events?: {
|
|
14
|
+
[key: string]: ((e: Event) => any) | undefined;
|
|
15
|
+
} | undefined;
|
|
16
|
+
}, eventName: string, newEventHandler?: ((e: Event) => any) | undefined) => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StyleReactProps } from '../interfaces';
|
|
3
|
+
export type StencilReactExternalProps<PropType, ElementType> = PropType & Omit<React.HTMLAttributes<ElementType>, 'style'> & StyleReactProps;
|
|
4
|
+
export type StencilReactForwardedRef<T> = ((instance: T | null) => void) | React.MutableRefObject<T | null> | null;
|
|
5
|
+
export declare const setRef: (ref: StencilReactForwardedRef<any> | React.Ref<any> | undefined, value: any) => void;
|
|
6
|
+
export declare const mergeRefs: (...refs: (StencilReactForwardedRef<any> | React.Ref<any> | undefined)[]) => React.RefCallback<any>;
|
|
7
|
+
export declare const createForwardRef: <PropType, ElementType>(ReactComponent: any, displayName: string) => React.ForwardRefExoticComponent<React.PropsWithoutRef<PropType & Omit<React.HTMLAttributes<ElementType>, "style"> & StyleReactProps> & React.RefAttributes<ElementType>>;
|
|
8
|
+
export declare const defineCustomElement: (tagName: string, customElement: any) => void;
|
|
9
|
+
export * from './attachProps';
|
|
10
|
+
export * from './case';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { JSX } from '@ionic/core/components';
|
|
3
|
+
export declare const IonRouterLink: import("react").ForwardRefExoticComponent<Omit<JSX.IonRouterLink, "routerDirection"> & {
|
|
4
|
+
routerLink?: string | undefined;
|
|
5
|
+
routerDirection?: import("..").RouterDirection | undefined;
|
|
6
|
+
routerOptions?: import("..").RouterOptions | undefined;
|
|
7
|
+
routerAnimation?: import("@ionic/core/components").AnimationBuilder | undefined;
|
|
8
|
+
} & Omit<import("react").HTMLAttributes<HTMLIonRouterLinkElement>, "style"> & import("./IonicReactProps").IonicReactProps & import("react").RefAttributes<HTMLIonRouterLinkElement>>;
|
|
9
|
+
export declare const IonButton: import("react").ForwardRefExoticComponent<Omit<JSX.IonButton, "routerDirection"> & {
|
|
10
|
+
routerLink?: string | undefined;
|
|
11
|
+
routerDirection?: import("..").RouterDirection | undefined;
|
|
12
|
+
routerOptions?: import("..").RouterOptions | undefined;
|
|
13
|
+
routerAnimation?: import("@ionic/core/components").AnimationBuilder | undefined;
|
|
14
|
+
} & Omit<import("react").HTMLAttributes<HTMLIonButtonElement>, "style"> & import("./IonicReactProps").IonicReactProps & import("react").RefAttributes<HTMLIonButtonElement>>;
|
|
15
|
+
export declare const IonCard: import("react").ForwardRefExoticComponent<Omit<JSX.IonCard, "routerDirection"> & {
|
|
16
|
+
routerLink?: string | undefined;
|
|
17
|
+
routerDirection?: import("..").RouterDirection | undefined;
|
|
18
|
+
routerOptions?: import("..").RouterOptions | undefined;
|
|
19
|
+
routerAnimation?: import("@ionic/core/components").AnimationBuilder | undefined;
|
|
20
|
+
} & Omit<import("react").HTMLAttributes<HTMLIonCardElement>, "style"> & import("./IonicReactProps").IonicReactProps & import("react").RefAttributes<HTMLIonCardElement>>;
|
|
21
|
+
export declare const IonFabButton: import("react").ForwardRefExoticComponent<Omit<JSX.IonFabButton, "routerDirection"> & {
|
|
22
|
+
routerLink?: string | undefined;
|
|
23
|
+
routerDirection?: import("..").RouterDirection | undefined;
|
|
24
|
+
routerOptions?: import("..").RouterOptions | undefined;
|
|
25
|
+
routerAnimation?: import("@ionic/core/components").AnimationBuilder | undefined;
|
|
26
|
+
} & Omit<import("react").HTMLAttributes<HTMLIonFabButtonElement>, "style"> & import("./IonicReactProps").IonicReactProps & import("react").RefAttributes<HTMLIonFabButtonElement>>;
|
|
27
|
+
export declare const IonItem: import("react").ForwardRefExoticComponent<Omit<JSX.IonItem, "routerDirection"> & {
|
|
28
|
+
routerLink?: string | undefined;
|
|
29
|
+
routerDirection?: import("..").RouterDirection | undefined;
|
|
30
|
+
routerOptions?: import("..").RouterOptions | undefined;
|
|
31
|
+
routerAnimation?: import("@ionic/core/components").AnimationBuilder | undefined;
|
|
32
|
+
} & Omit<import("react").HTMLAttributes<HTMLIonItemElement>, "style"> & import("./IonicReactProps").IonicReactProps & import("react").RefAttributes<HTMLIonItemElement>>;
|
|
33
|
+
export declare const IonItemOption: import("react").ForwardRefExoticComponent<Omit<JSX.IonItemOption, "routerDirection"> & {
|
|
34
|
+
routerLink?: string | undefined;
|
|
35
|
+
routerDirection?: import("..").RouterDirection | undefined;
|
|
36
|
+
routerOptions?: import("..").RouterOptions | undefined;
|
|
37
|
+
routerAnimation?: import("@ionic/core/components").AnimationBuilder | undefined;
|
|
38
|
+
} & Omit<import("react").HTMLAttributes<HTMLIonItemOptionElement>, "style"> & import("./IonicReactProps").IonicReactProps & import("react").RefAttributes<HTMLIonItemOptionElement>>;
|
|
39
|
+
export declare const IonBreadcrumb: import("react").ForwardRefExoticComponent<Omit<JSX.IonBreadcrumb, "routerDirection"> & {
|
|
40
|
+
routerLink?: string | undefined;
|
|
41
|
+
routerDirection?: import("..").RouterDirection | undefined;
|
|
42
|
+
routerOptions?: import("..").RouterOptions | undefined;
|
|
43
|
+
routerAnimation?: import("@ionic/core/components").AnimationBuilder | undefined;
|
|
44
|
+
} & Omit<import("react").HTMLAttributes<HTMLIonBreadcrumbElement>, "style"> & import("./IonicReactProps").IonicReactProps & import("react").RefAttributes<HTMLIonBreadcrumbElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The @stencil/react-output-target will bind event listeners for any
|
|
3
|
+
* attached props that use the `on` prefix. This function will remove
|
|
4
|
+
* those event listeners when the component is unmounted.
|
|
5
|
+
*
|
|
6
|
+
* This prevents memory leaks and React state updates on unmounted components.
|
|
7
|
+
*/
|
|
8
|
+
export declare const detachProps: (node: HTMLElement, props: any) => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Config as CoreConfig, Platforms } from '@ionic/core/components';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { IonicReactProps } from '../IonicReactProps';
|
|
4
|
+
export type IonicReactExternalProps<PropType, ElementType> = PropType & Omit<React.HTMLAttributes<ElementType>, 'style'> & IonicReactProps;
|
|
5
|
+
export declare const createForwardRef: <PropType, ElementType>(ReactComponent: any, displayName: string) => React.ForwardRefExoticComponent<React.PropsWithoutRef<PropType & Omit<React.HTMLAttributes<ElementType>, "style"> & IonicReactProps> & React.RefAttributes<ElementType>>;
|
|
6
|
+
export declare const isPlatform: (platform: Platforms) => boolean;
|
|
7
|
+
export declare const getPlatforms: () => ("hybrid" | "ios" | "ipad" | "iphone" | "android" | "phablet" | "tablet" | "cordova" | "capacitor" | "electron" | "pwa" | "mobile" | "mobileweb" | "desktop")[];
|
|
8
|
+
export declare const getConfig: () => CoreConfig | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ReactComponentOrElement } from '../models';
|
|
3
|
+
export interface IonContextInterface {
|
|
4
|
+
addOverlay: (id: string, overlay: ReactComponentOrElement, containerElement: HTMLDivElement) => void;
|
|
5
|
+
removeOverlay: (id: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const IonContext: React.Context<IonContextInterface>;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IonLifeCycleContextInterface {
|
|
3
|
+
onIonViewWillEnter: (callback: () => void) => void;
|
|
4
|
+
ionViewWillEnter: () => void;
|
|
5
|
+
onIonViewDidEnter: (callback: () => void) => void;
|
|
6
|
+
ionViewDidEnter: () => void;
|
|
7
|
+
onIonViewWillLeave: (callback: () => void) => void;
|
|
8
|
+
ionViewWillLeave: () => void;
|
|
9
|
+
onIonViewDidLeave: (callback: () => void) => void;
|
|
10
|
+
ionViewDidLeave: () => void;
|
|
11
|
+
cleanupIonViewWillEnter: (callback: () => void) => void;
|
|
12
|
+
cleanupIonViewDidEnter: (callback: () => void) => void;
|
|
13
|
+
cleanupIonViewWillLeave: (callback: () => void) => void;
|
|
14
|
+
cleanupIonViewDidLeave: (callback: () => void) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const IonLifeCycleContext: React.Context<IonLifeCycleContextInterface>;
|
|
17
|
+
export interface LifeCycleCallback {
|
|
18
|
+
(): void | (() => void | undefined);
|
|
19
|
+
id?: number;
|
|
20
|
+
}
|
|
21
|
+
export interface LifeCycleDestructor {
|
|
22
|
+
id: number;
|
|
23
|
+
destructor: ReturnType<LifeCycleCallback>;
|
|
24
|
+
}
|
|
25
|
+
export declare const DefaultIonLifeCycleContext: {
|
|
26
|
+
new (): {
|
|
27
|
+
ionViewWillEnterCallbacks: LifeCycleCallback[];
|
|
28
|
+
ionViewDidEnterCallbacks: LifeCycleCallback[];
|
|
29
|
+
ionViewWillLeaveCallbacks: LifeCycleCallback[];
|
|
30
|
+
ionViewDidLeaveCallbacks: LifeCycleCallback[];
|
|
31
|
+
componentCanBeDestroyedCallback?: (() => void) | undefined;
|
|
32
|
+
ionViewWillEnterDestructorCallbacks: LifeCycleDestructor[];
|
|
33
|
+
ionViewDidEnterDestructorCallbacks: LifeCycleDestructor[];
|
|
34
|
+
ionViewWillLeaveDestructorCallbacks: LifeCycleDestructor[];
|
|
35
|
+
ionViewDidLeaveDestructorCallbacks: LifeCycleDestructor[];
|
|
36
|
+
onIonViewWillEnter(callback: LifeCycleCallback): void;
|
|
37
|
+
teardownCallback(callback: LifeCycleCallback, callbacks: any[]): void;
|
|
38
|
+
/**
|
|
39
|
+
* Tears down the user-provided ionViewWillEnter lifecycle callback.
|
|
40
|
+
* This is the same behavior as React's useEffect hook. The callback
|
|
41
|
+
* is invoked when the component is unmounted.
|
|
42
|
+
*/
|
|
43
|
+
cleanupIonViewWillEnter(callback: LifeCycleCallback): void;
|
|
44
|
+
/**
|
|
45
|
+
* Tears down the user-provided ionViewDidEnter lifecycle callback.
|
|
46
|
+
* This is the same behavior as React's useEffect hook. The callback
|
|
47
|
+
* is invoked when the component is unmounted.
|
|
48
|
+
*/
|
|
49
|
+
cleanupIonViewDidEnter(callback: LifeCycleCallback): void;
|
|
50
|
+
/**
|
|
51
|
+
* Tears down the user-provided ionViewWillLeave lifecycle callback.
|
|
52
|
+
* This is the same behavior as React's useEffect hook. The callback
|
|
53
|
+
* is invoked when the component is unmounted.
|
|
54
|
+
*/
|
|
55
|
+
cleanupIonViewWillLeave(callback: LifeCycleCallback): void;
|
|
56
|
+
/**
|
|
57
|
+
* Tears down the user-provided ionViewDidLeave lifecycle callback.
|
|
58
|
+
* This is the same behavior as React's useEffect hook. The callback
|
|
59
|
+
* is invoked when the component is unmounted.
|
|
60
|
+
*/
|
|
61
|
+
cleanupIonViewDidLeave(callback: LifeCycleCallback): void;
|
|
62
|
+
ionViewWillEnter(): void;
|
|
63
|
+
onIonViewDidEnter(callback: LifeCycleCallback): void;
|
|
64
|
+
ionViewDidEnter(): void;
|
|
65
|
+
onIonViewWillLeave(callback: LifeCycleCallback): void;
|
|
66
|
+
ionViewWillLeave(): void;
|
|
67
|
+
onIonViewDidLeave(callback: LifeCycleCallback): void;
|
|
68
|
+
ionViewDidLeave(): void;
|
|
69
|
+
onComponentCanBeDestroyed(callback: () => void): void;
|
|
70
|
+
componentCanBeDestroyed(): void;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AnimationBuilder, RouterDirection } from '@ionic/core/components';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { RouteInfo } from '../models';
|
|
4
|
+
export interface NavContextState {
|
|
5
|
+
getIonRoute: () => any;
|
|
6
|
+
getIonRedirect: () => any;
|
|
7
|
+
getPageManager: () => any;
|
|
8
|
+
getStackManager: () => any;
|
|
9
|
+
goBack: (route?: string | RouteInfo, animationBuilder?: AnimationBuilder) => void;
|
|
10
|
+
navigate: (path: string, direction?: RouterDirection | 'none', ionRouteAction?: 'push' | 'replace' | 'pop', animationBuilder?: AnimationBuilder, options?: any, tab?: string) => void;
|
|
11
|
+
hasIonicRouter: () => boolean;
|
|
12
|
+
routeInfo?: RouteInfo;
|
|
13
|
+
setCurrentTab: (tab: string, routeInfo: RouteInfo) => void;
|
|
14
|
+
changeTab: (tab: string, path: string, routeOptions?: any) => void;
|
|
15
|
+
resetTab: (tab: string, originalHref: string, originalRouteOptions?: any) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const NavContext: React.Context<NavContextState>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { OverlayEventDetail } from '@ionic/core/components';
|
|
2
|
+
export interface HookOverlayOptions {
|
|
3
|
+
onDidDismiss?: (event: CustomEvent<OverlayEventDetail>) => void;
|
|
4
|
+
onDidPresent?: (event: CustomEvent<OverlayEventDetail>) => void;
|
|
5
|
+
onWillDismiss?: (event: CustomEvent<OverlayEventDetail>) => void;
|
|
6
|
+
onWillPresent?: (event: CustomEvent<OverlayEventDetail>) => void;
|
|
7
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { HookOverlayOptions } from './HookOverlayOptions';
|
|
2
|
+
interface OverlayBase extends HTMLElement {
|
|
3
|
+
present: () => Promise<void>;
|
|
4
|
+
dismiss: (data?: any, role?: string | undefined) => Promise<boolean>;
|
|
5
|
+
}
|
|
6
|
+
export declare function useController<OptionsType, OverlayType extends OverlayBase>(displayName: string, controller: {
|
|
7
|
+
create: (options: OptionsType) => Promise<OverlayType>;
|
|
8
|
+
}, defineCustomElement: () => void): {
|
|
9
|
+
present: (options: OptionsType & HookOverlayOptions) => Promise<void>;
|
|
10
|
+
dismiss: () => Promise<void>;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ActionSheetButton, ActionSheetOptions } from '@ionic/core/components';
|
|
2
|
+
import type { HookOverlayOptions } from './HookOverlayOptions';
|
|
3
|
+
/**
|
|
4
|
+
* A hook for presenting/dismissing an IonActionSheet component
|
|
5
|
+
* @returns Returns the present and dismiss methods in an array
|
|
6
|
+
*/
|
|
7
|
+
export declare function useIonActionSheet(): UseIonActionSheetResult;
|
|
8
|
+
export type UseIonActionSheetResult = [
|
|
9
|
+
{
|
|
10
|
+
/**
|
|
11
|
+
* Presents the action sheet
|
|
12
|
+
* @param buttons An array of buttons for the action sheet
|
|
13
|
+
* @param header Optional - Title for the action sheet
|
|
14
|
+
*/
|
|
15
|
+
(buttons: ActionSheetButton[], header?: string | undefined): Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Presents the action sheet
|
|
18
|
+
* @param options The options to pass to the IonActionSheet
|
|
19
|
+
*/
|
|
20
|
+
(options: ActionSheetOptions & HookOverlayOptions): Promise<void>;
|
|
21
|
+
},
|
|
22
|
+
/**
|
|
23
|
+
* Dismisses the action sheet
|
|
24
|
+
*/
|
|
25
|
+
() => Promise<void>
|
|
26
|
+
];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { AlertButton, AlertOptions } from '@ionic/core/components';
|
|
2
|
+
import type { HookOverlayOptions } from './HookOverlayOptions';
|
|
3
|
+
/**
|
|
4
|
+
* A hook for presenting/dismissing an IonAlert component
|
|
5
|
+
* @returns Returns the present and dismiss methods in an array
|
|
6
|
+
*/
|
|
7
|
+
export declare function useIonAlert(): UseIonAlertResult;
|
|
8
|
+
export type UseIonAlertResult = [
|
|
9
|
+
{
|
|
10
|
+
/**
|
|
11
|
+
* Presents the alert
|
|
12
|
+
* @param message The main message to be displayed in the alert
|
|
13
|
+
* @param buttons Optional - Array of buttons to be added to the alert
|
|
14
|
+
*/
|
|
15
|
+
(message: string, buttons?: AlertButton[]): Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Presents the alert
|
|
18
|
+
* @param options The options to pass to the IonAlert
|
|
19
|
+
*/
|
|
20
|
+
(options: AlertOptions & HookOverlayOptions): Promise<void>;
|
|
21
|
+
},
|
|
22
|
+
/**
|
|
23
|
+
* Dismisses the alert
|
|
24
|
+
*/
|
|
25
|
+
() => Promise<void>
|
|
26
|
+
];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { LoadingOptions, SpinnerTypes } from '@ionic/core/components';
|
|
2
|
+
import type { HookOverlayOptions } from './HookOverlayOptions';
|
|
3
|
+
/**
|
|
4
|
+
* A hook for presenting/dismissing an IonLoading component
|
|
5
|
+
* @returns Returns the present and dismiss methods in an array
|
|
6
|
+
*/
|
|
7
|
+
export declare function useIonLoading(): UseIonLoadingResult;
|
|
8
|
+
export type UseIonLoadingResult = [
|
|
9
|
+
{
|
|
10
|
+
/**
|
|
11
|
+
* Presents the loading indicator
|
|
12
|
+
* @param message Optional - Text content to display in the loading indicator, defaults to blank string
|
|
13
|
+
* @param duration Optional - Number of milliseconds to wait before dismissing the loading indicator
|
|
14
|
+
* @param spinner Optional - The name of the spinner to display, defaults to "lines"
|
|
15
|
+
*/
|
|
16
|
+
(message?: string, duration?: number, spinner?: SpinnerTypes): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Presents the loading indicator
|
|
19
|
+
* @param options The options to pass to the IonLoading
|
|
20
|
+
*/
|
|
21
|
+
(options: LoadingOptions & HookOverlayOptions): Promise<void>;
|
|
22
|
+
},
|
|
23
|
+
/**
|
|
24
|
+
* Dismisses the loading indicator
|
|
25
|
+
*/
|
|
26
|
+
() => Promise<void>
|
|
27
|
+
];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ModalOptions } from '@ionic/core/components';
|
|
2
|
+
import type { ReactComponentOrElement } from '../models/ReactComponentOrElement';
|
|
3
|
+
import type { HookOverlayOptions } from './HookOverlayOptions';
|
|
4
|
+
/**
|
|
5
|
+
* A hook for presenting/dismissing an IonModal component
|
|
6
|
+
* @param component The component that the modal will show. Can be a React Component, a functional component, or a JSX Element
|
|
7
|
+
* @param componentProps The props that will be passed to the component, if required
|
|
8
|
+
* @returns Returns the present and dismiss methods in an array
|
|
9
|
+
*/
|
|
10
|
+
export declare function useIonModal(component: ReactComponentOrElement, componentProps?: any): UseIonModalResult;
|
|
11
|
+
export type UseIonModalResult = [
|
|
12
|
+
(options?: Omit<ModalOptions, 'component' | 'componentProps'> & HookOverlayOptions) => void,
|
|
13
|
+
/**
|
|
14
|
+
* Dismisses the modal
|
|
15
|
+
*/
|
|
16
|
+
(data?: any, role?: string) => void
|
|
17
|
+
];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { PickerButton, PickerColumn, PickerOptions } from '@ionic/core/components';
|
|
2
|
+
import type { HookOverlayOptions } from './HookOverlayOptions';
|
|
3
|
+
/**
|
|
4
|
+
* A hook for presenting/dismissing an IonPicker component
|
|
5
|
+
* @returns Returns the present and dismiss methods in an array
|
|
6
|
+
*/
|
|
7
|
+
export declare function useIonPicker(): UseIonPickerResult;
|
|
8
|
+
export type UseIonPickerResult = [
|
|
9
|
+
{
|
|
10
|
+
/**
|
|
11
|
+
* Presents the picker
|
|
12
|
+
* @param columns Array of columns to be displayed in the picker.
|
|
13
|
+
* @param buttons Optional - Array of buttons to be displayed at the top of the picker.
|
|
14
|
+
*/
|
|
15
|
+
(columns: PickerColumn[], buttons?: PickerButton[]): Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Presents the picker
|
|
18
|
+
* @param options The options to pass to the IonPicker
|
|
19
|
+
*/
|
|
20
|
+
(options: PickerOptions & HookOverlayOptions): Promise<void>;
|
|
21
|
+
},
|
|
22
|
+
/**
|
|
23
|
+
* Dismisses the picker
|
|
24
|
+
*/
|
|
25
|
+
() => Promise<void>
|
|
26
|
+
];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { PopoverOptions } from '@ionic/core/components';
|
|
2
|
+
import type { ReactComponentOrElement } from '../models/ReactComponentOrElement';
|
|
3
|
+
import type { HookOverlayOptions } from './HookOverlayOptions';
|
|
4
|
+
/**
|
|
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
|
|
7
|
+
* @param componentProps The props that will be passed to the component, if required
|
|
8
|
+
* @returns Returns the present and dismiss methods in an array
|
|
9
|
+
*/
|
|
10
|
+
export declare function useIonPopover(component: ReactComponentOrElement, componentProps?: any): UseIonPopoverResult;
|
|
11
|
+
export type UseIonPopoverResult = [
|
|
12
|
+
(options?: Omit<PopoverOptions, 'component' | 'componentProps'> & HookOverlayOptions) => void,
|
|
13
|
+
/**
|
|
14
|
+
* Dismisses the popover
|
|
15
|
+
*/
|
|
16
|
+
(data?: any, role?: string) => void
|
|
17
|
+
];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ToastOptions } from '@ionic/core/components';
|
|
2
|
+
import type { HookOverlayOptions } from './HookOverlayOptions';
|
|
3
|
+
/**
|
|
4
|
+
* A hook for presenting/dismissing an IonToast component
|
|
5
|
+
* @returns Returns the present and dismiss methods in an array
|
|
6
|
+
*/
|
|
7
|
+
export declare function useIonToast(): UseIonToastResult;
|
|
8
|
+
export type UseIonToastResult = [
|
|
9
|
+
{
|
|
10
|
+
/**
|
|
11
|
+
* Presents the toast
|
|
12
|
+
* @param message Message to be shown in the toast.
|
|
13
|
+
* @param duration Optional - How many milliseconds to wait before hiding the toast. By default, it will show until dismissToast() is called.
|
|
14
|
+
*/
|
|
15
|
+
(message: string, duration?: number): Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Presents the Toast
|
|
18
|
+
* @param options The options to pass to the IonToast.
|
|
19
|
+
*/
|
|
20
|
+
(options: ToastOptions & HookOverlayOptions): Promise<void>;
|
|
21
|
+
},
|
|
22
|
+
/**
|
|
23
|
+
* Dismisses the toast
|
|
24
|
+
*/
|
|
25
|
+
() => Promise<void>
|
|
26
|
+
];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactComponentOrElement } from '../models/ReactComponentOrElement';
|
|
2
|
+
import type { HookOverlayOptions } from './HookOverlayOptions';
|
|
3
|
+
interface OverlayBase extends HTMLElement {
|
|
4
|
+
present: () => Promise<void>;
|
|
5
|
+
dismiss: (data?: any, role?: string | undefined) => Promise<boolean>;
|
|
6
|
+
}
|
|
7
|
+
export declare function useOverlay<OptionsType, OverlayType extends OverlayBase>(displayName: string, controller: {
|
|
8
|
+
create: (options: OptionsType) => Promise<OverlayType>;
|
|
9
|
+
}, defineCustomElement: () => void, component: ReactComponentOrElement, componentProps?: any): {
|
|
10
|
+
present: (options: OptionsType & HookOverlayOptions) => Promise<void>;
|
|
11
|
+
dismiss: (data?: any, role?: string) => Promise<void>;
|
|
12
|
+
};
|
|
13
|
+
export {};
|