@club-employes/utopia 4.53.0 → 4.55.0
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { nextTick, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, PublicProps } from 'vue';
|
|
2
|
-
import { ModalProps, ModalChangeReason, ModalSize, ModalAnimation, ModalPosition } from './types';
|
|
2
|
+
import { ModalProps, ModalChangeReason, ModalSize, ModalAnimation, ModalPosition, ModalMobileBehavior } from './types';
|
|
3
3
|
import { ButtonProps } from '../../..';
|
|
4
4
|
import { OnCleanup } from '@vue/reactivity';
|
|
5
5
|
declare function __VLS_template(): {
|
|
@@ -105,6 +105,7 @@ declare const __VLS_component: DefineComponent<ModalProps, {}, {}, {}, {}, Compo
|
|
|
105
105
|
showFooter: boolean;
|
|
106
106
|
focusTrap: boolean;
|
|
107
107
|
blurBackdrop: boolean;
|
|
108
|
+
mobileBehavior: ModalMobileBehavior;
|
|
108
109
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
109
110
|
panelRef: HTMLDivElement;
|
|
110
111
|
closeButtonRef: ({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type ModalSize = 'sm' | 'md' | 'lg' | 'full';
|
|
2
2
|
export type ModalPosition = 'center' | 'top' | 'bottom' | 'left' | 'right' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
|
|
3
3
|
export type ModalAnimation = 'slide-top' | 'slide-horizontal' | 'slide-horizontal-left' | 'slide-bottom';
|
|
4
|
+
export type ModalMobileBehavior = 'bottom-sheet' | 'center';
|
|
4
5
|
export type ModalChangeReason = 'open' | 'close' | 'overlay' | 'escape' | 'close-button';
|
|
5
6
|
export interface ModalProps {
|
|
6
7
|
open?: boolean;
|
|
@@ -16,6 +17,8 @@ export interface ModalProps {
|
|
|
16
17
|
focusTrap?: boolean;
|
|
17
18
|
blurBackdrop?: boolean;
|
|
18
19
|
animation?: ModalAnimation;
|
|
20
|
+
/** Comportement sur mobile : 'bottom-sheet' (par défaut) ou 'center' */
|
|
21
|
+
mobileBehavior?: ModalMobileBehavior;
|
|
19
22
|
onOpenChange?: (open: boolean, reason: ModalChangeReason) => void;
|
|
20
23
|
}
|
|
21
24
|
export interface ModalOpenChangePayload {
|
package/dist/icons-list.json
CHANGED