@farmzone/fz-react-ui 0.0.9 → 0.0.10
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 +2 -7
- 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 +2 -7
- 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
|
}
|
|
@@ -8918,8 +8914,7 @@ 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 })
|