revert(): revert base components feature (#26692)

The Ionic Framework team would like to re-evaluate our approach to improving customization options when building mobile applications. We are looking at other solutions that a) make customizing an app UI easier and b) are applicable to a broader set of developers.
This commit is contained in:
Liam DeBeasi
2023-01-30 11:52:36 -05:00
committed by GitHub
parent 592a4f1a37
commit b78b454e08
114 changed files with 387 additions and 1587 deletions

View File

@ -1,7 +1,7 @@
import { printIonWarning } from '@utils/logging';
import { config } from '../global/config';
import { getIonBehavior } from '../global/ionic-global';
import { getIonMode } from '../global/ionic-global';
import type {
ActionSheetOptions,
AlertOptions,
@ -421,11 +421,11 @@ export const present = async <OverlayPresentOptions>(
overlay.willPresent.emit();
overlay.willPresentShorthand?.emit();
const platform = getIonBehavior(overlay);
const mode = getIonMode(overlay);
// get the user's animation fn if one was provided
const animationBuilder = overlay.enterAnimation
? overlay.enterAnimation
: config.get(name, platform === 'ios' ? iosEnterAnimation : mdEnterAnimation);
: config.get(name, mode === 'ios' ? iosEnterAnimation : mdEnterAnimation);
const completed = await overlayAnimation(overlay, animationBuilder, overlay.el, opts);
if (completed) {
@ -505,10 +505,10 @@ export const dismiss = async <OverlayDismissOptions>(
overlay.willDismiss.emit({ data, role });
overlay.willDismissShorthand?.emit({ data, role });
const platform = getIonBehavior(overlay);
const mode = getIonMode(overlay);
const animationBuilder = overlay.leaveAnimation
? overlay.leaveAnimation
: config.get(name, platform === 'ios' ? iosLeaveAnimation : mdLeaveAnimation);
: config.get(name, mode === 'ios' ? iosLeaveAnimation : mdLeaveAnimation);
// If dismissed via gesture, no need to play leaving animation again
if (role !== GESTURE) {