@mitcsutt/kiln-forms
Version:
Kiln forms: typed React forms on TanStack Form, in component or JSON schema mode, rendered through kiln-ui
38 lines (37 loc) • 1.06 kB
JavaScript
import { FieldViewListBoundary as e } from "../../fields/FieldView/FieldView.js";
import { useId as t } from "react";
import { jsx as n, jsxs as r } from "react/jsx-runtime";
import { Heading as i, Split as a, Stack as o, Text as s } from "@mitcsutt/kiln-ui";
//#region src/components/layouts/FormAside/FormAside.tsx
function c({ title: e, description: c, headingLevel: l = 3, ratio: u = "4/8", collapseBelow: d = "md", children: f }) {
let p = t();
return /* @__PURE__ */ r(a, {
as: "section",
ratio: u,
collapseBelow: d,
gap: 6,
"aria-labelledby": p,
children: [/* @__PURE__ */ r(o, {
gap: 2,
children: [/* @__PURE__ */ n(i, {
level: l,
id: p,
children: e
}), c == null ? null : /* @__PURE__ */ n(s, {
tone: "muted",
children: c
})]
}), /* @__PURE__ */ n(o, {
gap: 5,
role: "group",
"aria-labelledby": p,
children: f
})]
});
}
function l(t) {
return /* @__PURE__ */ n(e, { children: /* @__PURE__ */ n(c, { ...t }) });
}
//#endregion
export { l as FormAside };
//# sourceMappingURL=FormAside.js.map