@marianmeres/stuic 1.107.0 → 1.108.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.
|
@@ -81,6 +81,7 @@ export let forceAsHtml = void 0;
|
|
|
81
81
|
export let defaultIcons = acpDefaultIcons;
|
|
82
82
|
export let classes = {};
|
|
83
83
|
export let classesByVariant = {};
|
|
84
|
+
export let backdropFadeIn = true;
|
|
84
85
|
$:
|
|
85
86
|
dialog = $acp[0];
|
|
86
87
|
let _dialogEl;
|
|
@@ -154,7 +155,7 @@ $:
|
|
|
154
155
|
data-acp-type={dialog?.type}
|
|
155
156
|
data-acp-variant={dialog?.variant}
|
|
156
157
|
data-acp-is-pending={isPending}
|
|
157
|
-
class=
|
|
158
|
+
class={`bg-transparent w-full focus-within:outline-0 focus-within:ring-0 ${backdropFadeIn && 'backdrop-fade-in-normal'}`}
|
|
158
159
|
tabindex="-1"
|
|
159
160
|
>
|
|
160
161
|
{#if dialog}
|
|
@@ -359,4 +360,17 @@ $:
|
|
|
359
360
|
}
|
|
360
361
|
.rotating-cw {
|
|
361
362
|
animation: rotating-cw 0.6s linear infinite;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
dialog.backdrop-fade-in-normal[open]::backdrop {
|
|
366
|
+
animation: fade 0.15s ease-out;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
@keyframes fade {
|
|
370
|
+
from {
|
|
371
|
+
opacity: 0;
|
|
372
|
+
}
|
|
373
|
+
to {
|
|
374
|
+
opacity: 1;
|
|
375
|
+
}
|
|
362
376
|
}</style>
|
|
@@ -85,6 +85,7 @@ declare const __propDef: {
|
|
|
85
85
|
defaultIcons?: Partial<AlertConfirmPromptIcons> | undefined;
|
|
86
86
|
classes?: Partial<AlertConfirmPromptKnownClasses> | undefined;
|
|
87
87
|
classesByVariant?: Partial<Record<AlertConfirmPromptVariant, Partial<AlertConfirmPromptKnownClasses>>> | undefined;
|
|
88
|
+
backdropFadeIn?: boolean | undefined;
|
|
88
89
|
};
|
|
89
90
|
events: {
|
|
90
91
|
[evt: string]: CustomEvent<any>;
|