@manafishrov/ui 1.4.0 → 1.4.1
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.
package/package.json
CHANGED
|
@@ -36,9 +36,7 @@ const ToastIcon: Component<{ type: ToastOptions['type'] }> = (props) => (
|
|
|
36
36
|
const ToastItem: Component<{ toast: Accessor<ToastOptions> }> = (props) => (
|
|
37
37
|
<Toast.Root
|
|
38
38
|
class={cn(
|
|
39
|
-
'group gap-2 px-4 py-3.5 shadow-lg min-w-80 pointer-events-auto relative flex w-full items-center rounded-xl border bg-popover',
|
|
40
|
-
'data-[state=open]:sm:slide-in-from-bottom-full data-[state=open]:animate-in data-[state=open]:slide-in-from-top-full',
|
|
41
|
-
'data-[state=closed]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full',
|
|
39
|
+
'group gap-2 px-4 py-3.5 shadow-lg min-w-80 ease-in-out pointer-events-auto relative flex w-full items-center rounded-xl border bg-popover',
|
|
42
40
|
'border-border text-popover-foreground',
|
|
43
41
|
)}
|
|
44
42
|
>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
z-index: var(--z-index);
|
|
5
5
|
height: var(--height);
|
|
6
6
|
opacity: var(--opacity);
|
|
7
|
-
will-change: translate, opacity, scale
|
|
7
|
+
will-change: translate, opacity, scale;
|
|
8
8
|
transition:
|
|
9
9
|
translate 400ms,
|
|
10
10
|
scale 400ms,
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
height 400ms,
|
|
13
13
|
box-shadow 200ms;
|
|
14
14
|
transition-timing-function: cubic-bezier(0.21, 1.02, 0.73, 1);
|
|
15
|
-
}
|
|
16
15
|
|
|
17
|
-
[data-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
&[data-state='closed'] {
|
|
17
|
+
transition:
|
|
18
|
+
translate 400ms,
|
|
19
|
+
scale 400ms,
|
|
20
|
+
opacity 200ms;
|
|
21
|
+
transition-timing-function: cubic-bezier(0.06, 0.71, 0.55, 1);
|
|
22
|
+
}
|
|
23
23
|
}
|