formanitor 0.3.13 → 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.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
@@ -10,7 +10,7 @@ import { Checkbox } from './chunk-L3UDG6T3.mjs';
10
10
  import { Slider } from './chunk-SJWKNDI5.mjs';
11
11
  import { AISuggestionsProvider } from './chunk-X4WL56LN.mjs';
12
12
  export { AddMedicationField } from './chunk-X4WL56LN.mjs';
13
- export { AddInvestigationField } from './chunk-7TWSJ75O.mjs';
13
+ export { AddInvestigationField } from './chunk-3JPJ4CAL.mjs';
14
14
  export { AddProcedureField } from './chunk-HSPOCOFQ.mjs';
15
15
  import './chunk-GZPCYSJK.mjs';
16
16
  export { DifferentialDiagnosis } from './chunk-BIG7CFMZ.mjs';
@@ -2660,7 +2660,7 @@ var DateTimeWidget = lazyNamed(() => import('./DateTimeWidget-4OHDJPOX.mjs'), "D
2660
2660
  var EditableTableWidget = lazyNamed(() => import('./EditableTable-BO6TDZB7.mjs'), "EditableTableWidget");
2661
2661
  var AddMedicationWidget = lazyNamed(() => import('./AddMedicationWidget-K77LLYN6.mjs'), "AddMedicationWidget");
2662
2662
  var DischargeMedicationOrdersWidget = lazyNamed(() => import('./DischargeMedicationOrdersWidget-57SYCQIW.mjs'), "DischargeMedicationOrdersWidget");
2663
- var AddInvestigationWidget = lazyNamed(() => import('./AddInvestigationWidget-J3NS2VC3.mjs'), "AddInvestigationWidget");
2663
+ var AddInvestigationWidget = lazyNamed(() => import('./AddInvestigationWidget-GYPBY2I7.mjs'), "AddInvestigationWidget");
2664
2664
  var AddProcedureWidget = lazyNamed(() => import('./AddProcedureWidget-Q3KXGPEO.mjs'), "AddProcedureWidget");
2665
2665
  var DifferentialDiagnosisWidget = lazyNamed(() => import('./DifferentialDiagnosisWidget-5ZOZOZSP.mjs'), "DifferentialDiagnosisWidget");
2666
2666
  var VitalsWidget = lazyNamed(() => import('./VitalsWidget-LCP6UJIK.mjs'), "VitalsWidget");
@@ -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
  {