mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
chore(): sync with main
This commit is contained in:
@ -1,26 +1,10 @@
|
||||
import {
|
||||
ActionSheetButton as ActionSheetButtonCore,
|
||||
ActionSheetOptions as ActionSheetOptionsCore,
|
||||
JSX
|
||||
} from '@ionic/core/components';
|
||||
import type { JSX } from '@ionic/core/components';
|
||||
import { actionSheetController as actionSheetControllerCore } from '@ionic/core/components';
|
||||
import { defineCustomElement } from '@ionic/core/components/ion-action-sheet.js';
|
||||
|
||||
import { createInlineOverlayComponent } from './createInlineOverlayComponent';
|
||||
|
||||
export interface ActionSheetButton extends Omit<ActionSheetButtonCore, 'icon'> {
|
||||
icon?:
|
||||
| {
|
||||
ios: string;
|
||||
md: string;
|
||||
}
|
||||
| string;
|
||||
}
|
||||
|
||||
export interface ActionSheetOptions extends Omit<ActionSheetOptionsCore, 'buttons'> {
|
||||
buttons?: (ActionSheetButton | string)[];
|
||||
}
|
||||
|
||||
export const IonActionSheet = /*@__PURE__*/ createInlineOverlayComponent<
|
||||
JSX.IonActionSheet,
|
||||
HTMLIonActionSheetElement
|
||||
>('ion-action-sheet', defineCustomElement);
|
||||
export const IonActionSheet = /*@__PURE__*/ createInlineOverlayComponent<JSX.IonActionSheet, HTMLIonActionSheetElement>(
|
||||
'ion-action-sheet',
|
||||
defineCustomElement
|
||||
);
|
||||
|
Reference in New Issue
Block a user