@colisweb/rescript-toolkit 5.0.3 → 5.0.5
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
package/src/mock/MockOverlay.res
CHANGED
|
@@ -35,7 +35,7 @@ let make = (~worker: Msw.worker, ~workerOptions: Msw.startOptions={}, ~className
|
|
|
35
35
|
<React.Suspense fallback={<Toolkit__Ui_SpinnerFullScreen />}>
|
|
36
36
|
<label
|
|
37
37
|
className={cx([
|
|
38
|
-
"fixed top-2 left-1/2 flex flex-row gap-2 items-center justify-center z-50",
|
|
38
|
+
"fixed top-2 left-1/2 flex flex-row gap-2 items-center justify-center z-50 print:hidden",
|
|
39
39
|
mockEnabled
|
|
40
40
|
? "bg-success-100 border-success-400 text-success-700"
|
|
41
41
|
: "bg-neutral-100 p-1 border rounded-lg cursor-pointer",
|
|
@@ -187,7 +187,7 @@ module App = {
|
|
|
187
187
|
<main
|
|
188
188
|
className={cx([
|
|
189
189
|
className,
|
|
190
|
-
"flex-initial w-full transition-all duration-300 ease-in-out mt-16 z-20",
|
|
190
|
+
"flex-initial w-full transition-all duration-300 ease-in-out mt-16 z-20 print:mt-0 print:!pl-0",
|
|
191
191
|
isNavOpen ? "navOpen lg:pl-64" : "lg:pl-16",
|
|
192
192
|
])}>
|
|
193
193
|
children
|
|
@@ -32,11 +32,15 @@ let make = (
|
|
|
32
32
|
~isInvalid=?,
|
|
33
33
|
~className="",
|
|
34
34
|
) => {
|
|
35
|
+
let textareaRef = React.useRef(Js.Nullable.null)
|
|
36
|
+
|
|
35
37
|
let onChange = event => {
|
|
36
38
|
onChange->Option.map(onChange => onChange(event))->ignore
|
|
39
|
+
textareaRef.current->Js.Nullable.toOption->Option.forEach(autoExpand)
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
<textarea
|
|
43
|
+
ref={ReactDOM.Ref.domRef(textareaRef)}
|
|
40
44
|
style={ReactDOM.Style.make(
|
|
41
45
|
~height="auto",
|
|
42
46
|
~minHeight="38px",
|