formanitor 0.3.14 → 0.3.15
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 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +5 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -590,8 +590,10 @@ interface SmartFormProps {
|
|
|
590
590
|
/**
|
|
591
591
|
* `four`: left + center + right (default).
|
|
592
592
|
* `three`: left + center only — use when the host renders a sidebar beside the form.
|
|
593
|
+
* `one`: every field stacked full-width in layout order, ignoring `position`
|
|
594
|
+
* and `colSpan` — use when the form itself lives in a narrow panel.
|
|
593
595
|
*/
|
|
594
|
-
columnLayout?: 'four' | 'three';
|
|
596
|
+
columnLayout?: 'four' | 'three' | 'one';
|
|
595
597
|
}
|
|
596
598
|
/**
|
|
597
599
|
* Form view that supports applying AI analysis results after load. Use inside
|
package/dist/index.d.ts
CHANGED
|
@@ -590,8 +590,10 @@ interface SmartFormProps {
|
|
|
590
590
|
/**
|
|
591
591
|
* `four`: left + center + right (default).
|
|
592
592
|
* `three`: left + center only — use when the host renders a sidebar beside the form.
|
|
593
|
+
* `one`: every field stacked full-width in layout order, ignoring `position`
|
|
594
|
+
* and `colSpan` — use when the form itself lives in a narrow panel.
|
|
593
595
|
*/
|
|
594
|
-
columnLayout?: 'four' | 'three';
|
|
596
|
+
columnLayout?: 'four' | 'three' | 'one';
|
|
595
597
|
}
|
|
596
598
|
/**
|
|
597
599
|
* Form view that supports applying AI analysis results after load. Use inside
|
package/dist/index.mjs
CHANGED
|
@@ -3405,6 +3405,11 @@ var SmartForm = ({
|
|
|
3405
3405
|
}
|
|
3406
3406
|
});
|
|
3407
3407
|
const centerCardClass = uiSkin === "v2" ? "rounded-2xl border border-border/60 bg-white p-4 shadow-sm gap-3" : void 0;
|
|
3408
|
+
if (columnLayout === "one") {
|
|
3409
|
+
return /* @__PURE__ */ jsx(AISuggestionsProvider, { value: aiSuggestions, children: /* @__PURE__ */ jsx("div", { className: cn("flex w-full flex-col gap-2", centerCardClass), children: fieldIds.map(
|
|
3410
|
+
(fieldId) => store.getFieldDef(fieldId) ? /* @__PURE__ */ jsx(FieldRenderer, { fieldId }, fieldId) : null
|
|
3411
|
+
) }) });
|
|
3412
|
+
}
|
|
3408
3413
|
const leftFields = /* @__PURE__ */ jsx(
|
|
3409
3414
|
"div",
|
|
3410
3415
|
{
|