@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.d.cts
CHANGED
|
@@ -1181,7 +1181,7 @@ interface DetailContentProps<T, S extends z.ZodTypeAny = z.ZodTypeAny> {
|
|
|
1181
1181
|
}) => ReactNode;
|
|
1182
1182
|
/** Body 전면 교체 — edit 영역 (RHF methods 포함) */
|
|
1183
1183
|
renderEditBody?: (ctx: DetailEditBodyContext<z.infer<S>, S>) => ReactNode;
|
|
1184
|
-
layout?: "compact" | "full";
|
|
1184
|
+
layout?: "compact" | "full" | "none";
|
|
1185
1185
|
className?: string;
|
|
1186
1186
|
}
|
|
1187
1187
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1181,7 +1181,7 @@ interface DetailContentProps<T, S extends z.ZodTypeAny = z.ZodTypeAny> {
|
|
|
1181
1181
|
}) => ReactNode;
|
|
1182
1182
|
/** Body 전면 교체 — edit 영역 (RHF methods 포함) */
|
|
1183
1183
|
renderEditBody?: (ctx: DetailEditBodyContext<z.infer<S>, S>) => ReactNode;
|
|
1184
|
-
layout?: "compact" | "full";
|
|
1184
|
+
layout?: "compact" | "full" | "none";
|
|
1185
1185
|
className?: string;
|
|
1186
1186
|
}
|
|
1187
1187
|
|
package/dist/index.js
CHANGED
|
@@ -8819,11 +8819,7 @@ function DetailContent(props) {
|
|
|
8819
8819
|
layout = "compact",
|
|
8820
8820
|
className
|
|
8821
8821
|
} = props;
|
|
8822
|
-
const containerClass = cn(
|
|
8823
|
-
"overflow-y-auto",
|
|
8824
|
-
layout === "compact" ? "max-h-[60vh]" : "min-h-0 flex-1",
|
|
8825
|
-
className
|
|
8826
|
-
);
|
|
8822
|
+
const containerClass = layout === "none" ? cn(className) : cn("overflow-y-auto", layout === "compact" ? "max-h-[60vh]" : "min-h-0 flex-1", className);
|
|
8827
8823
|
if (!data) {
|
|
8828
8824
|
return /* @__PURE__ */ jsx("div", { className: cn(containerClass, "flex items-center justify-center p-8"), children: /* @__PURE__ */ jsx("p", { className: "text-sm text-gray-400", children: "\uB370\uC774\uD130\uB97C \uBD88\uB7EC\uC624\uB294 \uC911..." }) });
|
|
8829
8825
|
}
|
|
@@ -8906,8 +8902,8 @@ function DetailModalFrame(props) {
|
|
|
8906
8902
|
/* @__PURE__ */ jsx("span", { className: "text-base font-semibold text-gray-900", children: title }),
|
|
8907
8903
|
!isEditMode && canEdit && /* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", onClick: handleEdit, children: "\uC218\uC815" })
|
|
8908
8904
|
] }),
|
|
8909
|
-
/* @__PURE__ */ jsxs(ModalBody, { className: "flex-1 min-h-0 p-0", children: [
|
|
8910
|
-
/* @__PURE__ */ jsx(
|
|
8905
|
+
/* @__PURE__ */ jsxs(ModalBody, { className: "flex-1 min-h-0 overflow-hidden p-0 flex flex-col", children: [
|
|
8906
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1 min-h-0 overflow-y-auto", children: /* @__PURE__ */ jsx(
|
|
8911
8907
|
DetailContent,
|
|
8912
8908
|
{
|
|
8913
8909
|
controller,
|
|
@@ -8918,10 +8914,9 @@ function DetailModalFrame(props) {
|
|
|
8918
8914
|
onSave,
|
|
8919
8915
|
renderReadBody,
|
|
8920
8916
|
renderEditBody,
|
|
8921
|
-
layout: "
|
|
8922
|
-
className: "overflow-visible max-h-none"
|
|
8917
|
+
layout: "none"
|
|
8923
8918
|
}
|
|
8924
|
-
),
|
|
8919
|
+
) }),
|
|
8925
8920
|
renderExtraContent?.({ isEditMode })
|
|
8926
8921
|
] }),
|
|
8927
8922
|
/* @__PURE__ */ jsx(ModalFooter, { className: "flex justify-end gap-2", children: isEditMode ? /* @__PURE__ */ jsxs(Fragment, { children: [
|