Add IMMERSIVE BackgroundStyle ModalFade

This commit is contained in:
thororen1234 2024-11-08 01:04:10 -05:00
parent eb1a68b66c
commit fc05bccb08

View file

@ -14,7 +14,7 @@ import type { StoreApi, UseBoundStore } from "zustand";
type Modal = {
Layer?: any,
instant?: boolean,
backdropStyle?: "SUBTLE" | "DARK" | "BLUR",
backdropStyle?: "SUBTLE" | "DARK" | "BLUR", "IMMERSIVE",
};
const { useModalContext, useModalsStore } = proxyLazy(() => Forms as any as {
@ -26,8 +26,6 @@ const { useModalContext, useModalsStore } = proxyLazy(() => Forms as any as {
});
const { animated, useSpring, useTransition } = findByPropsLazy("a", "animated", "useTransition");
// This doesn't seem to be necessary
// const { default: AppLayer } = findByPropsLazy("AppLayerContainer", "AppLayerProvider");
const ANIMS = {
SUBTLE: {
@ -42,6 +40,10 @@ const ANIMS = {
off: { opacity: 1, filter: "blur(0px)" },
on: { opacity: 0.7, filter: "blur(8px)" },
},
IMMERSIVE: {
off: { opacity: 1 },
on: { opacity: 0.7 }
}
};
export default definePlugin({