@farmzone/fz-react-ui 0.0.9 → 0.0.11
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/dist/index.cjs +5 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -10
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8853,11 +8853,7 @@ function DetailContent(props) {
|
|
|
8853
8853
|
layout = "compact",
|
|
8854
8854
|
className
|
|
8855
8855
|
} = props;
|
|
8856
|
-
const containerClass = cn(
|
|
8857
|
-
"overflow-y-auto",
|
|
8858
|
-
layout === "compact" ? "max-h-[60vh]" : "min-h-0 flex-1",
|
|
8859
|
-
className
|
|
8860
|
-
);
|
|
8856
|
+
const containerClass = layout === "none" ? cn(className) : cn("overflow-y-auto", layout === "compact" ? "max-h-[60vh]" : "min-h-0 flex-1", className);
|
|
8861
8857
|
if (!data) {
|
|
8862
8858
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(containerClass, "flex items-center justify-center p-8"), children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-gray-400", children: "\uB370\uC774\uD130\uB97C \uBD88\uB7EC\uC624\uB294 \uC911..." }) });
|
|
8863
8859
|
}
|
|
@@ -8940,8 +8936,8 @@ function DetailModalFrame(props) {
|
|
|
8940
8936
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-base font-semibold text-gray-900", children: title }),
|
|
8941
8937
|
!isEditMode && canEdit && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "outline", size: "sm", onClick: handleEdit, children: "\uC218\uC815" })
|
|
8942
8938
|
] }),
|
|
8943
|
-
/* @__PURE__ */ jsxRuntime.jsxs(ModalBody, { className: "flex-1 min-h-0 p-0", children: [
|
|
8944
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8939
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ModalBody, { className: "flex-1 min-h-0 overflow-hidden p-0 flex flex-col", children: [
|
|
8940
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 min-h-0 overflow-y-auto", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8945
8941
|
DetailContent,
|
|
8946
8942
|
{
|
|
8947
8943
|
controller,
|
|
@@ -8952,10 +8948,9 @@ function DetailModalFrame(props) {
|
|
|
8952
8948
|
onSave,
|
|
8953
8949
|
renderReadBody,
|
|
8954
8950
|
renderEditBody,
|
|
8955
|
-
layout: "
|
|
8956
|
-
className: "overflow-visible max-h-none"
|
|
8951
|
+
layout: "none"
|
|
8957
8952
|
}
|
|
8958
|
-
),
|
|
8953
|
+
) }),
|
|
8959
8954
|
renderExtraContent?.({ isEditMode })
|
|
8960
8955
|
] }),
|
|
8961
8956
|
/* @__PURE__ */ jsxRuntime.jsx(ModalFooter, { className: "flex justify-end gap-2", children: isEditMode ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|