feat(popover): popover can now be used inline (#23231)

BREAKING CHANGE: Converted `ion-popover` to use the Shadow DOM.
This commit is contained in:
Liam DeBeasi
2021-05-03 12:02:22 -04:00
committed by GitHub
parent 6fcb3a62b1
commit 308fa1c0dd
29 changed files with 826 additions and 170 deletions

View File

@ -1,12 +1,8 @@
import { PopoverOptions, popoverController } from '@ionic/core';
import { JSX } from '@ionic/core';
import { createOverlayComponent } from './createOverlayComponent';
import { createInlineOverlayComponent } from './createInlineOverlayComponent'
export type ReactPopoverOptions = Omit<PopoverOptions, 'component' | 'componentProps'> & {
children: React.ReactNode;
};
export const IonPopover = /*@__PURE__*/ createOverlayComponent<
ReactPopoverOptions,
export const IonPopover = /*@__PURE__*/ createInlineOverlayComponent<
JSX.IonPopover,
HTMLIonPopoverElement
>('IonPopover', popoverController);
>('ion-popover');