feat(react): add custom elements bundle (#23896)

This commit is contained in:
Liam DeBeasi
2021-09-13 14:53:28 -04:00
committed by GitHub
parent d1763fc8b5
commit c50d895370
57 changed files with 321 additions and 565 deletions

View File

@ -1,4 +1,4 @@
import { OverlayEventDetail } from '@ionic/core';
import { OverlayEventDetail } from '@ionic/core/components';
export interface HookOverlayOptions {
onDidDismiss?: (event: CustomEvent<OverlayEventDetail>) => void;

View File

@ -1,4 +1,4 @@
import { OverlayEventDetail } from '@ionic/core';
import { OverlayEventDetail } from '@ionic/core/components';
import { useMemo, useRef } from 'react';
import { attachProps } from '../components/react-component-lib/utils';

View File

@ -1,4 +1,4 @@
import { ActionSheetButton, ActionSheetOptions, actionSheetController } from '@ionic/core';
import { ActionSheetButton, ActionSheetOptions, actionSheetController } from '@ionic/core/components';
import { HookOverlayOptions } from './HookOverlayOptions';
import { useController } from './useController';

View File

@ -1,4 +1,4 @@
import { AlertButton, AlertOptions, alertController } from '@ionic/core';
import { AlertButton, AlertOptions, alertController } from '@ionic/core/components';
import { HookOverlayOptions } from './HookOverlayOptions';
import { useController } from './useController';

View File

@ -1,4 +1,4 @@
import { LoadingOptions, SpinnerTypes, loadingController } from '@ionic/core';
import { LoadingOptions, SpinnerTypes, loadingController } from '@ionic/core/components';
import { HookOverlayOptions } from './HookOverlayOptions';
import { useController } from './useController';

View File

@ -1,4 +1,4 @@
import { ModalOptions, modalController } from '@ionic/core';
import { ModalOptions, modalController } from '@ionic/core/components';
import { HookOverlayOptions } from './HookOverlayOptions';
import { ReactComponentOrElement, useOverlay } from './useOverlay';

View File

@ -3,7 +3,7 @@ import {
PickerColumn,
PickerOptions,
pickerController,
} from '@ionic/core';
} from '@ionic/core/components';
import { HookOverlayOptions } from './HookOverlayOptions';
import { useController } from './useController';

View File

@ -1,4 +1,4 @@
import { PopoverOptions, popoverController } from '@ionic/core';
import { PopoverOptions, popoverController } from '@ionic/core/components';
import { HookOverlayOptions } from './HookOverlayOptions';
import { ReactComponentOrElement, useOverlay } from './useOverlay';

View File

@ -1,4 +1,4 @@
import { ToastOptions, toastController } from '@ionic/core';
import { ToastOptions, toastController } from '@ionic/core/components';
import { HookOverlayOptions } from './HookOverlayOptions';
import { useController } from './useController';

View File

@ -1,4 +1,4 @@
import { OverlayEventDetail } from '@ionic/core';
import { OverlayEventDetail } from '@ionic/core/components';
import React, { useEffect, useMemo, useRef, useState } from 'react';
import ReactDOM from 'react-dom';