@colisweb/rescript-toolkit 5.47.0 → 5.47.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
|
@@ -23,10 +23,11 @@ let make = (
|
|
|
23
23
|
<Dialog.Content
|
|
24
24
|
side={Right}
|
|
25
25
|
className={cx([
|
|
26
|
-
"bg-white
|
|
26
|
+
"bg-white shadow-lg w-3/4 xl:w-2/3 2xl:w-1/2 h-full relative data-[state=open]:animate-slideInLeft data-[state=close]:animate-slideOutRight overflow-auto",
|
|
27
27
|
className,
|
|
28
28
|
])}>
|
|
29
|
-
<header
|
|
29
|
+
<header
|
|
30
|
+
className={cx(["flex items-center justify-between gap-4 sticky bg-white top-0 p-4"])}>
|
|
30
31
|
{title->Option.mapWithDefault(React.null, title =>
|
|
31
32
|
<Dialog.Title
|
|
32
33
|
className={cx([
|
|
@@ -46,7 +47,7 @@ let make = (
|
|
|
46
47
|
<ReactIcons.MdClose size=28 />
|
|
47
48
|
</button>
|
|
48
49
|
</header>
|
|
49
|
-
<div className="
|
|
50
|
+
<div className="p-4"> children </div>
|
|
50
51
|
</Dialog.Content>
|
|
51
52
|
</div>
|
|
52
53
|
</Dialog.Portal>
|