@colisweb/rescript-toolkit 2.65.3 → 2.65.4
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,13 +36,13 @@ let show = (~title, ~content=?, ~closable=true, ~variant, ~timeout=5000, ()) =>
|
|
|
36
36
|
let id: id = Js.Math.random()->Js.Float.toString->Obj.magic
|
|
37
37
|
store.dispatch(
|
|
38
38
|
Show({
|
|
39
|
-
id
|
|
39
|
+
id,
|
|
40
40
|
isVisible: true,
|
|
41
|
-
title
|
|
42
|
-
content
|
|
43
|
-
closable
|
|
44
|
-
variant
|
|
45
|
-
timeout
|
|
41
|
+
title,
|
|
42
|
+
content,
|
|
43
|
+
closable,
|
|
44
|
+
variant,
|
|
45
|
+
timeout,
|
|
46
46
|
}),
|
|
47
47
|
)
|
|
48
48
|
}
|
|
@@ -74,7 +74,7 @@ module Item = {
|
|
|
74
74
|
<div
|
|
75
75
|
style={ReactDOM.Style.make(~pointerEvents="all", ())}
|
|
76
76
|
className={cx([
|
|
77
|
-
"rounded shadow transition duration-500 ease-in-out mt-3 p-3 pl-3 pr-10 transform",
|
|
77
|
+
"rounded shadow transition duration-500 ease-in-out mt-3 p-3 pl-3 pr-10 transform cw-snackbar",
|
|
78
78
|
mounted ? "-translate-y-14" : "!opacity-0",
|
|
79
79
|
isVisible ? "opacity-100" : "opacity-0 translate-x-[200px]",
|
|
80
80
|
{
|
|
@@ -112,7 +112,7 @@ module Item = {
|
|
|
112
112
|
<div>
|
|
113
113
|
<p
|
|
114
114
|
className={cx([
|
|
115
|
-
"text-lg",
|
|
115
|
+
"text-lg cw-snackbar-title",
|
|
116
116
|
switch variant {
|
|
117
117
|
| #success => "text-neutral-700"
|
|
118
118
|
| #warning => "text-warning-700"
|