formanitor 0.3.1 → 0.3.2

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.
Files changed (229) hide show
  1. package/dist/{AddInvestigationWidget-UVBIDCO5.cjs → AddInvestigationWidget-YEE4HN43.cjs} +5 -5
  2. package/dist/{AddInvestigationWidget-UVBIDCO5.cjs.map → AddInvestigationWidget-YEE4HN43.cjs.map} +1 -1
  3. package/dist/{AddInvestigationWidget-3JVMAGK5.mjs → AddInvestigationWidget-ZRQREWJL.mjs} +4 -4
  4. package/dist/{AddInvestigationWidget-3JVMAGK5.mjs.map → AddInvestigationWidget-ZRQREWJL.mjs.map} +1 -1
  5. package/dist/{AddMedicationWidget-QOD2WKMV.mjs → AddMedicationWidget-NFXLKEDQ.mjs} +4 -4
  6. package/dist/{AddMedicationWidget-QOD2WKMV.mjs.map → AddMedicationWidget-NFXLKEDQ.mjs.map} +1 -1
  7. package/dist/{AddMedicationWidget-TOOIG54A.cjs → AddMedicationWidget-YOAB2BA4.cjs} +6 -6
  8. package/dist/{AddMedicationWidget-TOOIG54A.cjs.map → AddMedicationWidget-YOAB2BA4.cjs.map} +1 -1
  9. package/dist/{AddProcedureWidget-CLJRBNLT.cjs → AddProcedureWidget-BLS45UG6.cjs} +5 -5
  10. package/dist/{AddProcedureWidget-CLJRBNLT.cjs.map → AddProcedureWidget-BLS45UG6.cjs.map} +1 -1
  11. package/dist/{AddProcedureWidget-A4Y2FHNT.mjs → AddProcedureWidget-EY4QYWDC.mjs} +4 -4
  12. package/dist/{AddProcedureWidget-A4Y2FHNT.mjs.map → AddProcedureWidget-EY4QYWDC.mjs.map} +1 -1
  13. package/dist/BpeChartWidget-6UWIG2J4.mjs +7 -0
  14. package/dist/{BpeChartWidget-B7BFJ5A4.mjs.map → BpeChartWidget-6UWIG2J4.mjs.map} +1 -1
  15. package/dist/BpeChartWidget-JWLCYHYC.cjs +28 -0
  16. package/dist/{BpeChartWidget-S4TBCHLG.cjs.map → BpeChartWidget-JWLCYHYC.cjs.map} +1 -1
  17. package/dist/{DateTimeWidget-VFDBBVF3.cjs → DateTimeWidget-ETVCTMVP.cjs} +17 -17
  18. package/dist/DateTimeWidget-ETVCTMVP.cjs.map +1 -0
  19. package/dist/{DateTimeWidget-IQHMJ532.mjs → DateTimeWidget-FOUCIJUC.mjs} +13 -13
  20. package/dist/DateTimeWidget-FOUCIJUC.mjs.map +1 -0
  21. package/dist/{DateWidget-R6O7VJ7Q.mjs → DateWidget-NQYCJGXI.mjs} +11 -11
  22. package/dist/DateWidget-NQYCJGXI.mjs.map +1 -0
  23. package/dist/{DateWidget-SOTV22JG.cjs → DateWidget-YWYGPCI6.cjs} +15 -15
  24. package/dist/DateWidget-YWYGPCI6.cjs.map +1 -0
  25. package/dist/{DentalChartWidget-HATNS7S4.mjs → DentalChartWidget-XQ5MZ6WL.mjs} +4 -4
  26. package/dist/{DentalChartWidget-7IUS4ILM.cjs.map → DentalChartWidget-XQ5MZ6WL.mjs.map} +1 -1
  27. package/dist/DentalChartWidget-YLHB7BZ2.cjs +21 -0
  28. package/dist/{DentalChartWidget-HATNS7S4.mjs.map → DentalChartWidget-YLHB7BZ2.cjs.map} +1 -1
  29. package/dist/{DiagnosisTextareaWidget-5WPMAL7G.cjs → DiagnosisTextareaWidget-5AEAFSDF.cjs} +11 -11
  30. package/dist/{DiagnosisTextareaWidget-5WPMAL7G.cjs.map → DiagnosisTextareaWidget-5AEAFSDF.cjs.map} +1 -1
  31. package/dist/{DiagnosisTextareaWidget-SDLYFESX.mjs → DiagnosisTextareaWidget-UA6WT2SU.mjs} +4 -4
  32. package/dist/{DiagnosisTextareaWidget-SDLYFESX.mjs.map → DiagnosisTextareaWidget-UA6WT2SU.mjs.map} +1 -1
  33. package/dist/{DischargeMedicationOrdersWidget-QTRVJA3R.mjs → DischargeMedicationOrdersWidget-R32PLNJQ.mjs} +3 -3
  34. package/dist/{DischargeMedicationOrdersWidget-QTRVJA3R.mjs.map → DischargeMedicationOrdersWidget-R32PLNJQ.mjs.map} +1 -1
  35. package/dist/{DischargeMedicationOrdersWidget-KIMLUY5U.cjs → DischargeMedicationOrdersWidget-UAELMUWN.cjs} +9 -9
  36. package/dist/{DischargeMedicationOrdersWidget-KIMLUY5U.cjs.map → DischargeMedicationOrdersWidget-UAELMUWN.cjs.map} +1 -1
  37. package/dist/{EditableTable-DXYU5ICL.mjs → EditableTable-6C5VTXGR.mjs} +6 -6
  38. package/dist/{EditableTable-DXYU5ICL.mjs.map → EditableTable-6C5VTXGR.mjs.map} +1 -1
  39. package/dist/{EditableTable-FZIIXV4W.cjs → EditableTable-RRVC6Z7B.cjs} +9 -9
  40. package/dist/{EditableTable-FZIIXV4W.cjs.map → EditableTable-RRVC6Z7B.cjs.map} +1 -1
  41. package/dist/{ExtraOralExamWidget-Z5DEA32Y.mjs → ExtraOralExamWidget-GI2M3FML.mjs} +5 -5
  42. package/dist/{ExtraOralExamWidget-Z5DEA32Y.mjs.map → ExtraOralExamWidget-GI2M3FML.mjs.map} +1 -1
  43. package/dist/{ExtraOralExamWidget-5OC7CBOR.cjs → ExtraOralExamWidget-HX7F4UUE.cjs} +32 -32
  44. package/dist/{ExtraOralExamWidget-5OC7CBOR.cjs.map → ExtraOralExamWidget-HX7F4UUE.cjs.map} +1 -1
  45. package/dist/{FollowupWidget-WYCILM6O.cjs → FollowupWidget-B7DPJSLE.cjs} +11 -11
  46. package/dist/{FollowupWidget-WYCILM6O.cjs.map → FollowupWidget-B7DPJSLE.cjs.map} +1 -1
  47. package/dist/{FollowupWidget-SV7MH72X.mjs → FollowupWidget-ETNVVL7N.mjs} +4 -4
  48. package/dist/{FollowupWidget-SV7MH72X.mjs.map → FollowupWidget-ETNVVL7N.mjs.map} +1 -1
  49. package/dist/{GsExaminationWidget-7QAVGNAI.mjs → GsExaminationWidget-F3NZFS3M.mjs} +6 -6
  50. package/dist/{GsExaminationWidget-7QAVGNAI.mjs.map → GsExaminationWidget-F3NZFS3M.mjs.map} +1 -1
  51. package/dist/{GsExaminationWidget-JCEWSQBI.cjs → GsExaminationWidget-KYVHXOJV.cjs} +22 -22
  52. package/dist/{GsExaminationWidget-JCEWSQBI.cjs.map → GsExaminationWidget-KYVHXOJV.cjs.map} +1 -1
  53. package/dist/{GsGradingWidget-4RLGJ7SP.cjs → GsGradingWidget-H3JSWVSR.cjs} +8 -8
  54. package/dist/{GsGradingWidget-4RLGJ7SP.cjs.map → GsGradingWidget-H3JSWVSR.cjs.map} +1 -1
  55. package/dist/{GsGradingWidget-GLYECIGQ.mjs → GsGradingWidget-VS7WSQWO.mjs} +4 -4
  56. package/dist/{GsGradingWidget-GLYECIGQ.mjs.map → GsGradingWidget-VS7WSQWO.mjs.map} +1 -1
  57. package/dist/{GsSmartHistoryWidget-3ZUK2FQT.cjs → GsSmartHistoryWidget-57ENMC42.cjs} +18 -18
  58. package/dist/{GsSmartHistoryWidget-3ZUK2FQT.cjs.map → GsSmartHistoryWidget-57ENMC42.cjs.map} +1 -1
  59. package/dist/{GsSmartHistoryWidget-UYZIQZZI.mjs → GsSmartHistoryWidget-FRYTPGWQ.mjs} +5 -5
  60. package/dist/{GsSmartHistoryWidget-UYZIQZZI.mjs.map → GsSmartHistoryWidget-FRYTPGWQ.mjs.map} +1 -1
  61. package/dist/{HiddenVitalsWidget-RQGDAULQ.cjs → HiddenVitalsWidget-4XKC6BRD.cjs} +10 -10
  62. package/dist/{HiddenVitalsWidget-RQGDAULQ.cjs.map → HiddenVitalsWidget-4XKC6BRD.cjs.map} +1 -1
  63. package/dist/{HiddenVitalsWidget-LWL3IZ5T.mjs → HiddenVitalsWidget-CD2CLME3.mjs} +4 -4
  64. package/dist/{HiddenVitalsWidget-LWL3IZ5T.mjs.map → HiddenVitalsWidget-CD2CLME3.mjs.map} +1 -1
  65. package/dist/{MarMedicationOrdersWidget-DLZMSTRK.mjs → MarMedicationOrdersWidget-THIG7ZTU.mjs} +3 -3
  66. package/dist/{MarMedicationOrdersWidget-DLZMSTRK.mjs.map → MarMedicationOrdersWidget-THIG7ZTU.mjs.map} +1 -1
  67. package/dist/{MarMedicationOrdersWidget-SWHWIQHS.cjs → MarMedicationOrdersWidget-YPIGKEWQ.cjs} +10 -10
  68. package/dist/{MarMedicationOrdersWidget-SWHWIQHS.cjs.map → MarMedicationOrdersWidget-YPIGKEWQ.cjs.map} +1 -1
  69. package/dist/{OBGExaminationWidget-BIFU3AJC.mjs → OBGExaminationWidget-2P3L2IVG.mjs} +5 -5
  70. package/dist/{OBGExaminationWidget-BIFU3AJC.mjs.map → OBGExaminationWidget-2P3L2IVG.mjs.map} +1 -1
  71. package/dist/{OBGExaminationWidget-BUBJA5I4.cjs → OBGExaminationWidget-ONGE675M.cjs} +10 -10
  72. package/dist/{OBGExaminationWidget-BUBJA5I4.cjs.map → OBGExaminationWidget-ONGE675M.cjs.map} +1 -1
  73. package/dist/{OBGPathwayWidget-NTOJWS6R.mjs → OBGPathwayWidget-DOLXMQEA.mjs} +6 -6
  74. package/dist/{OBGPathwayWidget-NTOJWS6R.mjs.map → OBGPathwayWidget-DOLXMQEA.mjs.map} +1 -1
  75. package/dist/{OBGPathwayWidget-VQIQDQUN.cjs → OBGPathwayWidget-P3K2E725.cjs} +70 -70
  76. package/dist/{OBGPathwayWidget-VQIQDQUN.cjs.map → OBGPathwayWidget-P3K2E725.cjs.map} +1 -1
  77. package/dist/{ObstetricHistoryWidget-HFMRYBPN.cjs → ObstetricHistoryWidget-23UP4GCV.cjs} +63 -63
  78. package/dist/{ObstetricHistoryWidget-HFMRYBPN.cjs.map → ObstetricHistoryWidget-23UP4GCV.cjs.map} +1 -1
  79. package/dist/{ObstetricHistoryWidget-X35CIOLJ.mjs → ObstetricHistoryWidget-OXIAY43S.mjs} +5 -5
  80. package/dist/{ObstetricHistoryWidget-X35CIOLJ.mjs.map → ObstetricHistoryWidget-OXIAY43S.mjs.map} +1 -1
  81. package/dist/{OphthalDiagnosisWidget-LTT7UYR7.mjs → OphthalDiagnosisWidget-J3ROUEVA.mjs} +3 -3
  82. package/dist/{OphthalDiagnosisWidget-LTT7UYR7.mjs.map → OphthalDiagnosisWidget-J3ROUEVA.mjs.map} +1 -1
  83. package/dist/{OphthalDiagnosisWidget-AC6VS6NZ.cjs → OphthalDiagnosisWidget-QFCTOTJN.cjs} +5 -5
  84. package/dist/{OphthalDiagnosisWidget-AC6VS6NZ.cjs.map → OphthalDiagnosisWidget-QFCTOTJN.cjs.map} +1 -1
  85. package/dist/{OphthalmologyWidget-4N4FGQ6S.mjs → OphthalmologyWidget-BBAIZ7UJ.mjs} +4 -4
  86. package/dist/{OphthalmologyWidget-4N4FGQ6S.mjs.map → OphthalmologyWidget-BBAIZ7UJ.mjs.map} +1 -1
  87. package/dist/{OphthalmologyWidget-2QPJARW4.cjs → OphthalmologyWidget-R3ONGQP2.cjs} +49 -49
  88. package/dist/{OphthalmologyWidget-2QPJARW4.cjs.map → OphthalmologyWidget-R3ONGQP2.cjs.map} +1 -1
  89. package/dist/{OrthopedicExamWidget-5Q2ZYTJ4.mjs → OrthopedicExamWidget-HDMCDTBJ.mjs} +4 -4
  90. package/dist/{OrthopedicExamWidget-5Q2ZYTJ4.mjs.map → OrthopedicExamWidget-HDMCDTBJ.mjs.map} +1 -1
  91. package/dist/{OrthopedicExamWidget-DGFHD62A.cjs → OrthopedicExamWidget-RUD4W6RQ.cjs} +8 -8
  92. package/dist/{OrthopedicExamWidget-DGFHD62A.cjs.map → OrthopedicExamWidget-RUD4W6RQ.cjs.map} +1 -1
  93. package/dist/{PainScaleFlagsWidget-RTMWXGC3.cjs → PainScaleFlagsWidget-FVJE7MWM.cjs} +19 -19
  94. package/dist/{PainScaleFlagsWidget-RTMWXGC3.cjs.map → PainScaleFlagsWidget-FVJE7MWM.cjs.map} +1 -1
  95. package/dist/{PainScaleFlagsWidget-W425KKII.mjs → PainScaleFlagsWidget-KMRDQICW.mjs} +5 -5
  96. package/dist/{PainScaleFlagsWidget-W425KKII.mjs.map → PainScaleFlagsWidget-KMRDQICW.mjs.map} +1 -1
  97. package/dist/{PregnancyStatusWidget-PQIZNCLI.mjs → PregnancyStatusWidget-GJAKMJZG.mjs} +4 -4
  98. package/dist/{PregnancyStatusWidget-PQIZNCLI.mjs.map → PregnancyStatusWidget-GJAKMJZG.mjs.map} +1 -1
  99. package/dist/{PregnancyStatusWidget-3CQACVD6.cjs → PregnancyStatusWidget-RETHNTVY.cjs} +7 -7
  100. package/dist/{PregnancyStatusWidget-3CQACVD6.cjs.map → PregnancyStatusWidget-RETHNTVY.cjs.map} +1 -1
  101. package/dist/{ReferralWidget-YWCVFAW5.mjs → ReferralWidget-FAC2ZKVC.mjs} +4 -4
  102. package/dist/{ReferralWidget-YWCVFAW5.mjs.map → ReferralWidget-FAC2ZKVC.mjs.map} +1 -1
  103. package/dist/{ReferralWidget-I3VQJDCC.cjs → ReferralWidget-ZVXS2HK3.cjs} +14 -14
  104. package/dist/{ReferralWidget-I3VQJDCC.cjs.map → ReferralWidget-ZVXS2HK3.cjs.map} +1 -1
  105. package/dist/{RichTextWidget-MSQ5ERT7.mjs → RichTextWidget-5O3PVED2.mjs} +4 -4
  106. package/dist/{RichTextWidget-JI73IEMG.cjs.map → RichTextWidget-5O3PVED2.mjs.map} +1 -1
  107. package/dist/{RichTextWidget-JI73IEMG.cjs → RichTextWidget-LX7MQSIH.cjs} +5 -5
  108. package/dist/{RichTextWidget-MSQ5ERT7.mjs.map → RichTextWidget-LX7MQSIH.cjs.map} +1 -1
  109. package/dist/SmartTextarea-OTOE5ZCD.cjs +19 -0
  110. package/dist/{SmartTextarea-LAFNRYOZ.mjs.map → SmartTextarea-OTOE5ZCD.cjs.map} +1 -1
  111. package/dist/SmartTextarea-TJRVT2HG.mjs +10 -0
  112. package/dist/{SmartTextarea-PXS6H2FW.cjs.map → SmartTextarea-TJRVT2HG.mjs.map} +1 -1
  113. package/dist/{SuggestionTextareaWidget-MZPEPOMB.cjs → SuggestionTextareaWidget-F6Q44JP6.cjs} +18 -18
  114. package/dist/{SuggestionTextareaWidget-MZPEPOMB.cjs.map → SuggestionTextareaWidget-F6Q44JP6.cjs.map} +1 -1
  115. package/dist/{SuggestionTextareaWidget-5AHOVNMO.mjs → SuggestionTextareaWidget-JP4YUTFQ.mjs} +7 -7
  116. package/dist/{SuggestionTextareaWidget-5AHOVNMO.mjs.map → SuggestionTextareaWidget-JP4YUTFQ.mjs.map} +1 -1
  117. package/dist/{TreatmentPlanWidget-F32JLSTY.mjs → TreatmentPlanWidget-2UUEOUY5.mjs} +6 -6
  118. package/dist/{TreatmentPlanWidget-F32JLSTY.mjs.map → TreatmentPlanWidget-2UUEOUY5.mjs.map} +1 -1
  119. package/dist/{TreatmentPlanWidget-ZMPM3ABN.cjs → TreatmentPlanWidget-MRK4OKK2.cjs} +17 -17
  120. package/dist/{TreatmentPlanWidget-ZMPM3ABN.cjs.map → TreatmentPlanWidget-MRK4OKK2.cjs.map} +1 -1
  121. package/dist/{UrologyExaminationWidget-TFQJUT3V.mjs → UrologyExaminationWidget-U3Y5W6RF.mjs} +6 -6
  122. package/dist/{UrologyExaminationWidget-TFQJUT3V.mjs.map → UrologyExaminationWidget-U3Y5W6RF.mjs.map} +1 -1
  123. package/dist/{UrologyExaminationWidget-A62NNCR4.cjs → UrologyExaminationWidget-XWT5LU26.cjs} +15 -15
  124. package/dist/{UrologyExaminationWidget-A62NNCR4.cjs.map → UrologyExaminationWidget-XWT5LU26.cjs.map} +1 -1
  125. package/dist/{UrologyPathwayWidget-742GAKAE.cjs → UrologyPathwayWidget-7T2JQ6CE.cjs} +9 -9
  126. package/dist/{UrologyPathwayWidget-742GAKAE.cjs.map → UrologyPathwayWidget-7T2JQ6CE.cjs.map} +1 -1
  127. package/dist/{UrologyPathwayWidget-OQE5DMYD.mjs → UrologyPathwayWidget-XEGOTKNR.mjs} +4 -4
  128. package/dist/{UrologyPathwayWidget-OQE5DMYD.mjs.map → UrologyPathwayWidget-XEGOTKNR.mjs.map} +1 -1
  129. package/dist/{UrologySmartHistoryWidget-IZ6TJXX4.cjs → UrologySmartHistoryWidget-LGXETZCH.cjs} +46 -46
  130. package/dist/{UrologySmartHistoryWidget-IZ6TJXX4.cjs.map → UrologySmartHistoryWidget-LGXETZCH.cjs.map} +1 -1
  131. package/dist/{UrologySmartHistoryWidget-JLW65L4U.mjs → UrologySmartHistoryWidget-ZG55G7LQ.mjs} +6 -6
  132. package/dist/{UrologySmartHistoryWidget-JLW65L4U.mjs.map → UrologySmartHistoryWidget-ZG55G7LQ.mjs.map} +1 -1
  133. package/dist/{VitalsWidget-KXT37GFZ.mjs → VitalsWidget-IV7OEJXE.mjs} +6 -3
  134. package/dist/VitalsWidget-IV7OEJXE.mjs.map +1 -0
  135. package/dist/{VitalsWidget-KEITVQJK.cjs → VitalsWidget-VYTA3HQR.cjs} +6 -3
  136. package/dist/VitalsWidget-VYTA3HQR.cjs.map +1 -0
  137. package/dist/{chunk-Q5AHXZOG.mjs → chunk-2Z42BRXP.mjs} +3 -3
  138. package/dist/{chunk-Q5AHXZOG.mjs.map → chunk-2Z42BRXP.mjs.map} +1 -1
  139. package/dist/{chunk-M6WRA4QO.cjs → chunk-3C5563NR.cjs} +4 -4
  140. package/dist/{chunk-M6WRA4QO.cjs.map → chunk-3C5563NR.cjs.map} +1 -1
  141. package/dist/{chunk-44CQ55WF.mjs → chunk-4UCFIJ5O.mjs} +20 -21
  142. package/dist/chunk-4UCFIJ5O.mjs.map +1 -0
  143. package/dist/{chunk-4BAKQIPJ.mjs → chunk-5DN3WWVH.mjs} +6 -3
  144. package/dist/chunk-5DN3WWVH.mjs.map +1 -0
  145. package/dist/{chunk-TSNDO4FA.mjs → chunk-5X4TFYYR.mjs} +7 -7
  146. package/dist/chunk-5X4TFYYR.mjs.map +1 -0
  147. package/dist/chunk-6RYCIEWM.cjs +101 -0
  148. package/dist/chunk-6RYCIEWM.cjs.map +1 -0
  149. package/dist/{chunk-B2NX2T3W.mjs → chunk-AJBSCNHT.mjs} +3 -3
  150. package/dist/{chunk-B2NX2T3W.mjs.map → chunk-AJBSCNHT.mjs.map} +1 -1
  151. package/dist/{chunk-HXY3IX3G.cjs → chunk-B33VWX7M.cjs} +7 -7
  152. package/dist/{chunk-HXY3IX3G.cjs.map → chunk-B33VWX7M.cjs.map} +1 -1
  153. package/dist/{chunk-VNFBUAZD.mjs → chunk-BGHIYCQZ.mjs} +3 -3
  154. package/dist/{chunk-VNFBUAZD.mjs.map → chunk-BGHIYCQZ.mjs.map} +1 -1
  155. package/dist/{chunk-AZHTIUOL.mjs → chunk-DQLJP74G.mjs} +3 -3
  156. package/dist/chunk-DQLJP74G.mjs.map +1 -0
  157. package/dist/{chunk-HUHSLO32.mjs → chunk-IDLMTXJM.mjs} +3 -3
  158. package/dist/{chunk-HUHSLO32.mjs.map → chunk-IDLMTXJM.mjs.map} +1 -1
  159. package/dist/{chunk-JM7WNDNT.mjs → chunk-J3OU22NY.mjs} +3 -3
  160. package/dist/{chunk-JM7WNDNT.mjs.map → chunk-J3OU22NY.mjs.map} +1 -1
  161. package/dist/{chunk-T2KWNIVJ.mjs → chunk-K32OZSSE.mjs} +3 -3
  162. package/dist/{chunk-T2KWNIVJ.mjs.map → chunk-K32OZSSE.mjs.map} +1 -1
  163. package/dist/{chunk-EMBJD34I.cjs → chunk-L5KNF4KU.cjs} +7 -7
  164. package/dist/{chunk-EMBJD34I.cjs.map → chunk-L5KNF4KU.cjs.map} +1 -1
  165. package/dist/{chunk-NR5FWQGD.cjs → chunk-MID4R5KL.cjs} +13 -13
  166. package/dist/chunk-MID4R5KL.cjs.map +1 -0
  167. package/dist/{chunk-SCQEGT3U.mjs → chunk-NFWXZZQU.mjs} +3 -3
  168. package/dist/{chunk-SCQEGT3U.mjs.map → chunk-NFWXZZQU.mjs.map} +1 -1
  169. package/dist/{chunk-6BXOMMQV.cjs → chunk-QIWN4RLJ.cjs} +32 -33
  170. package/dist/chunk-QIWN4RLJ.cjs.map +1 -0
  171. package/dist/{chunk-F3JCPW4I.cjs → chunk-RKSWLHJN.cjs} +10 -10
  172. package/dist/chunk-RKSWLHJN.cjs.map +1 -0
  173. package/dist/{chunk-PHADAQSH.cjs → chunk-S4NL7U74.cjs} +6 -3
  174. package/dist/chunk-S4NL7U74.cjs.map +1 -0
  175. package/dist/{chunk-2OMQV2ZB.mjs → chunk-SHU36LJQ.mjs} +4 -4
  176. package/dist/{chunk-2OMQV2ZB.mjs.map → chunk-SHU36LJQ.mjs.map} +1 -1
  177. package/dist/chunk-SRFFWUCH.mjs +92 -0
  178. package/dist/chunk-SRFFWUCH.mjs.map +1 -0
  179. package/dist/{chunk-A5PIFXZD.mjs → chunk-V3LYDF47.mjs} +6 -6
  180. package/dist/chunk-V3LYDF47.mjs.map +1 -0
  181. package/dist/{chunk-TJHG5WHX.cjs → chunk-V7US2ZTL.cjs} +3 -3
  182. package/dist/{chunk-TJHG5WHX.cjs.map → chunk-V7US2ZTL.cjs.map} +1 -1
  183. package/dist/{chunk-UGVCT3NE.cjs → chunk-VKBASIIY.cjs} +4 -4
  184. package/dist/{chunk-UGVCT3NE.cjs.map → chunk-VKBASIIY.cjs.map} +1 -1
  185. package/dist/{chunk-7OQFO6TM.cjs → chunk-VNU7XT3L.cjs} +6 -6
  186. package/dist/{chunk-7OQFO6TM.cjs.map → chunk-VNU7XT3L.cjs.map} +1 -1
  187. package/dist/{chunk-HACDOG3K.cjs → chunk-X24Y7Z22.cjs} +4 -4
  188. package/dist/{chunk-HACDOG3K.cjs.map → chunk-X24Y7Z22.cjs.map} +1 -1
  189. package/dist/{chunk-4KSZUIJE.cjs → chunk-ZLKZZTJI.cjs} +3 -3
  190. package/dist/chunk-ZLKZZTJI.cjs.map +1 -0
  191. package/dist/{chunk-BKBPNWSD.cjs → chunk-ZUO5FFJK.cjs} +4 -4
  192. package/dist/{chunk-BKBPNWSD.cjs.map → chunk-ZUO5FFJK.cjs.map} +1 -1
  193. package/dist/index.cjs +916 -422
  194. package/dist/index.cjs.map +1 -1
  195. package/dist/index.d.cts +213 -10
  196. package/dist/index.d.ts +213 -10
  197. package/dist/index.mjs +746 -259
  198. package/dist/index.mjs.map +1 -1
  199. package/dist/rich-text.cjs +3 -3
  200. package/dist/rich-text.mjs +2 -2
  201. package/dist/smart.cjs +5 -5
  202. package/dist/smart.mjs +3 -3
  203. package/package.json +1 -1
  204. package/src/styles/index.css +80 -1
  205. package/dist/BpeChartWidget-B7BFJ5A4.mjs +0 -7
  206. package/dist/BpeChartWidget-S4TBCHLG.cjs +0 -28
  207. package/dist/DateTimeWidget-IQHMJ532.mjs.map +0 -1
  208. package/dist/DateTimeWidget-VFDBBVF3.cjs.map +0 -1
  209. package/dist/DateWidget-R6O7VJ7Q.mjs.map +0 -1
  210. package/dist/DateWidget-SOTV22JG.cjs.map +0 -1
  211. package/dist/DentalChartWidget-7IUS4ILM.cjs +0 -21
  212. package/dist/SmartTextarea-LAFNRYOZ.mjs +0 -10
  213. package/dist/SmartTextarea-PXS6H2FW.cjs +0 -19
  214. package/dist/VitalsWidget-KEITVQJK.cjs.map +0 -1
  215. package/dist/VitalsWidget-KXT37GFZ.mjs.map +0 -1
  216. package/dist/chunk-44CQ55WF.mjs.map +0 -1
  217. package/dist/chunk-4BAKQIPJ.mjs.map +0 -1
  218. package/dist/chunk-4KSZUIJE.cjs.map +0 -1
  219. package/dist/chunk-5E3APMY6.cjs +0 -54
  220. package/dist/chunk-5E3APMY6.cjs.map +0 -1
  221. package/dist/chunk-6BXOMMQV.cjs.map +0 -1
  222. package/dist/chunk-A5PIFXZD.mjs.map +0 -1
  223. package/dist/chunk-AZHTIUOL.mjs.map +0 -1
  224. package/dist/chunk-F3JCPW4I.cjs.map +0 -1
  225. package/dist/chunk-NR5FWQGD.cjs.map +0 -1
  226. package/dist/chunk-PHADAQSH.cjs.map +0 -1
  227. package/dist/chunk-TSNDO4FA.mjs.map +0 -1
  228. package/dist/chunk-WYVXXEZI.mjs +0 -46
  229. package/dist/chunk-WYVXXEZI.mjs.map +0 -1
package/dist/index.d.cts CHANGED
@@ -346,19 +346,145 @@ declare function useField(fieldId: string): {
346
346
  loading?: boolean;
347
347
  };
348
348
 
349
- declare const DynamicForm: React.FC;
349
+ interface SectionNavItem {
350
+ /** DOM id of the section element this entry jumps to. */
351
+ id: string;
352
+ title: string;
353
+ /** Fields in this section currently showing a validation error. */
354
+ errorCount: number;
355
+ }
356
+ /**
357
+ * Per-element class overrides, mirroring `FieldStyleClassNames` for fields.
358
+ *
359
+ * Each value is merged *after* the defaults through `cn` (clsx +
360
+ * tailwind-merge), so a conflicting utility replaces the default rather than
361
+ * fighting it — `item: "text-base"` genuinely overrides the built-in `text-sm`.
362
+ * Colours are already semantic tokens, so overriding `--muted`, `--destructive`
363
+ * or `--foreground` restyles the nav without touching these at all.
364
+ */
365
+ interface SectionNavClassNames {
366
+ /** The `<ol>` holding the entries. */
367
+ list?: string;
368
+ /** Every entry link. */
369
+ item?: string;
370
+ /** Added to the entry for the section currently in view. */
371
+ itemActive?: string;
372
+ /** The error-count badge on an entry. */
373
+ badge?: string;
374
+ /** Side only — the "Sections" heading row above the list. */
375
+ header?: string;
376
+ /** Side only — the collapse / expand button. */
377
+ toggle?: string;
378
+ }
379
+ interface SectionNavProps {
380
+ items: SectionNavItem[];
381
+ position: "top" | "side";
382
+ /** Side only — renders a toggle that folds the rail away. */
383
+ collapsible?: boolean;
384
+ defaultCollapsed?: boolean;
385
+ /** Show the per-section error count. Default true. */
386
+ showStatus?: boolean;
387
+ /** Class for the nav root (and for the collapsed toggle's wrapper). */
388
+ className?: string;
389
+ classNames?: SectionNavClassNames;
390
+ }
391
+ /** Scroll-margin so a jumped-to section clears the sticky header. */
392
+ declare const SECTION_SCROLL_MARGIN = "scroll-mt-24";
393
+ /**
394
+ * In-page navigation for a form's sections: jump links plus a scroll-spy
395
+ * highlight, and an optional per-section error count.
396
+ *
397
+ * Unlike an accordion this hides no content — every section stays in the DOM,
398
+ * so find-in-page and printing keep working, and a validation error can never
399
+ * be sitting inside a collapsed panel.
400
+ */
401
+ declare const SectionNav: React.FC<SectionNavProps>;
402
+
403
+ /**
404
+ * How a form's sections are presented.
405
+ *
406
+ * - `accordion` — bordered collapsible cards. Compact, but a collapsed panel is
407
+ * `display: none`, so its content does not print, is invisible to
408
+ * find-in-page, and can hide a validation error.
409
+ * - `plain` — a flat vertical stack. Nothing hidden, no orientation aid.
410
+ * - `nav` — flat like `plain`, plus in-page section navigation. Best for long,
411
+ * multi-section forms and for anything that has to be read or printed whole.
412
+ */
413
+ type FormSectionMode = "accordion" | "plain" | "nav";
414
+ interface FormNavConfig {
415
+ /** `side` renders a sticky rail beside the form; `top` a sticky strip above it. Default `side`. */
416
+ position?: "top" | "side";
417
+ /** Side only — renders a toggle that folds the rail away. Ignored when `position` is `top`. */
418
+ collapsible?: boolean;
419
+ /** Side + collapsible only — start folded. Default false. */
420
+ defaultCollapsed?: boolean;
421
+ /** Show a per-section count of fields needing attention. Default true. */
422
+ showStatus?: boolean;
423
+ /** Class for the nav root element. */
424
+ className?: string;
425
+ /**
426
+ * Per-element class overrides for the nav. Merged after the defaults through
427
+ * tailwind-merge, so a conflicting utility replaces rather than fights it.
428
+ * For colours, prefer overriding the CSS tokens (`--muted`, `--destructive`,
429
+ * `--foreground`) — the nav uses them throughout and will follow your theme.
430
+ */
431
+ classNames?: SectionNavClassNames;
432
+ }
433
+ interface FormLayoutProps {
434
+ /** Render `schema.title` as the page heading. */
435
+ showTitle?: boolean;
436
+ sectionMode?: FormSectionMode;
437
+ /** `plain`/`nav` only — show the section title above its fields. Default true. */
438
+ showSectionTitles?: boolean;
439
+ /** Only read when `sectionMode` is `nav`. */
440
+ nav?: FormNavConfig;
441
+ className?: string;
442
+ }
443
+ /**
444
+ * Shared renderer behind {@link DynamicForm} and {@link DynamicFormV2}. Keeping
445
+ * the traversal in one place is what lets `nav` mode exist without either
446
+ * component growing a second copy of it — and the `accordion` branch is the
447
+ * original markup, untouched.
448
+ */
449
+ declare const FormLayout: React.FC<FormLayoutProps>;
350
450
 
351
- type DynamicFormV2SectionMode = "accordion" | "plain";
451
+ interface DynamicFormProps {
452
+ /**
453
+ * Section presentation. Defaults to `accordion`, which is the historical
454
+ * behaviour — omitting this prop renders exactly what it always has.
455
+ *
456
+ * Use `nav` for long forms (and anything that must be read or printed in
457
+ * full): sections stay flat and expanded, with in-page navigation beside or
458
+ * above them.
459
+ */
460
+ sectionMode?: FormSectionMode;
461
+ /** Only read when `sectionMode` is `nav`. See {@link FormNavConfig}. */
462
+ nav?: FormNavConfig;
463
+ /** `plain`/`nav` only — show the section title above its fields. Default true. */
464
+ showSectionTitles?: boolean;
465
+ className?: string;
466
+ }
467
+ /**
468
+ * Default form view. Renders `schema.title` as the page heading and each
469
+ * section as a collapsible card unless `sectionMode` says otherwise.
470
+ */
471
+ declare const DynamicForm: React.FC<DynamicFormProps>;
472
+
473
+ /** @deprecated Prefer {@link FormSectionMode}; kept so existing imports resolve. */
474
+ type DynamicFormV2SectionMode = FormSectionMode;
352
475
  interface DynamicFormV2Props {
353
476
  /** When true, renders `schema.title` as the page heading. Default true. */
354
477
  showTitle?: boolean;
355
478
  /**
356
479
  * `accordion` — bordered collapsible sections (same as DynamicForm).
357
480
  * `plain` — simple vertical stack, no card/accordion chrome.
481
+ * `nav` — `plain` plus in-page section navigation.
358
482
  */
359
- sectionMode?: DynamicFormV2SectionMode;
360
- /** In `plain` mode, show the section title above fields. Default true. Ignored for accordion. */
483
+ sectionMode?: FormSectionMode;
484
+ /** In `plain`/`nav` mode, show the section title above fields. Default true. Ignored for accordion. */
361
485
  showSectionTitles?: boolean;
486
+ /** Only read when `sectionMode` is `nav`. See {@link FormNavConfig}. */
487
+ nav?: FormNavConfig;
362
488
  className?: string;
363
489
  }
364
490
  /**
@@ -410,15 +536,92 @@ interface SmartFormProps {
410
536
  */
411
537
  declare const SmartForm: React.FC<SmartFormProps>;
412
538
 
539
+ /**
540
+ * A class value accepted by the field style helpers. Mirrors what `cn` (clsx +
541
+ * tailwind-merge) already tolerates at runtime, so `showError && "…"` can be
542
+ * passed directly instead of being pre-wrapped in its own `cn()` call.
543
+ */
544
+ type FieldClassValue = string | false | null | undefined;
545
+ /**
546
+ * Canonical default class strings for field presentation.
547
+ *
548
+ * Each value is the *dominant* string already in use across the core widgets,
549
+ * so adopting a constant is a no-op at render time. Because these are shared,
550
+ * editing a value here changes every core widget at once — treat any edit as a
551
+ * deliberate, breaking visual change rather than a tidy-up.
552
+ *
553
+ * Colours go through the semantic tokens defined in `src/styles/index.css`
554
+ * rather than raw palette classes, which is what allows a consumer to restyle
555
+ * the whole library by overriding a CSS variable. In the default light theme
556
+ * `--destructive` resolves to exactly `red-500`, so the token indirection is
557
+ * visually identical to the literals it replaces.
558
+ */
559
+ declare const fieldClass: {
560
+ /** Label + control column spacing. The default for a simple field. */
561
+ readonly wrapper: "space-y-2";
562
+ /** Wrapper for fields that stack sub-blocks (tables, repeatable rows). */
563
+ readonly wrapperStacked: "space-y-4";
564
+ /** Bordered container around a list of checkbox/multiselect options. */
565
+ readonly optionListBox: "border rounded-md p-3 space-y-2";
566
+ /**
567
+ * Validation message shown beneath a control.
568
+ *
569
+ * `fmn-enter` is a plain CSS class shipped in `formanitor/styles.css` (not a
570
+ * Tailwind utility), so the fade-in works without any consumer build config.
571
+ * It self-disables under `prefers-reduced-motion`.
572
+ */
573
+ readonly error: "text-xs text-destructive fmn-enter";
574
+ /** Error state applied to a control that owns its own border. */
575
+ readonly controlError: "border-destructive";
576
+ /**
577
+ * Error state for controls whose border belongs to a child element (slider
578
+ * track, rich-text shell), where a ring reads correctly but a border does not.
579
+ */
580
+ readonly controlErrorRing: "ring-1 ring-destructive";
581
+ /**
582
+ * Error recolour for a *group* label (checkbox/radio sets).
583
+ *
584
+ * Deliberately NOT `text-destructive`: this is `red-600`, a different shade
585
+ * from the `red-500` used for error text. Kept verbatim so centralising it
586
+ * changes nothing on screen. Unifying the two is a separate visual decision.
587
+ */
588
+ readonly labelError: "text-red-600";
589
+ /** Soft-locked control: visible but inert. */
590
+ readonly disabled: "opacity-50 pointer-events-none";
591
+ /** Helper text beneath a label. */
592
+ readonly description: "text-xs text-muted-foreground";
593
+ /** The `*` marking a required field. */
594
+ readonly requiredIndicator: "text-destructive";
595
+ /**
596
+ * The focus ring used by the shadcn `Input`, extracted so hand-rolled and
597
+ * headless controls can match it instead of inventing their own.
598
+ */
599
+ readonly focusRing: "ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2";
600
+ };
413
601
  declare function isLabelVisible(fieldDef: Pick<BaseFieldDef, "style">): boolean;
414
602
  declare function FieldRequiredIndicator({ fieldDef, }: {
415
603
  fieldDef: Pick<BaseFieldDef, "required" | "style">;
416
604
  }): react_jsx_runtime.JSX.Element | null;
417
- declare function fieldWrapperClass(fieldDef: Pick<BaseFieldDef, "style">, ...defaults: (string | undefined)[]): string;
418
- declare function fieldLabelClass(fieldDef: Pick<BaseFieldDef, "style">, ...defaults: (string | undefined)[]): string;
419
- declare function fieldControlClass(fieldDef: Pick<BaseFieldDef, "style">, ...defaults: (string | undefined)[]): string;
420
- declare function fieldDescriptionClass(fieldDef: Pick<BaseFieldDef, "style">, ...defaults: (string | undefined)[]): string;
421
- declare function fieldErrorClass(fieldDef: Pick<BaseFieldDef, "style">, ...defaults: (string | undefined)[]): string;
605
+ declare function fieldWrapperClass(fieldDef: Pick<BaseFieldDef, "style">, ...defaults: FieldClassValue[]): string;
606
+ declare function fieldLabelClass(fieldDef: Pick<BaseFieldDef, "style">, ...defaults: FieldClassValue[]): string;
607
+ /**
608
+ * Separates a control's *baseline appearance* from its *current state*.
609
+ *
610
+ * `fullControl` means "discard our styling and use mine", which must not also
611
+ * discard the error outline — a consumer restyling an input should never be
612
+ * able to silently suppress a validation signal. Splitting the two channels
613
+ * lets `defaults` be dropped while `state` always survives.
614
+ */
615
+ interface FieldControlClassOptions {
616
+ /** Baseline appearance. Skipped entirely when `style.fullControl` is set. */
617
+ defaults?: FieldClassValue[];
618
+ /** State-driven classes (error, disabled). Always applied, and applied last. */
619
+ state?: FieldClassValue[];
620
+ }
621
+ declare function fieldControlClass(fieldDef: Pick<BaseFieldDef, "style">, ...defaults: FieldClassValue[]): string;
622
+ declare function fieldControlClass(fieldDef: Pick<BaseFieldDef, "style">, options: FieldControlClassOptions): string;
623
+ declare function fieldDescriptionClass(fieldDef: Pick<BaseFieldDef, "style">, ...defaults: FieldClassValue[]): string;
624
+ declare function fieldErrorClass(fieldDef: Pick<BaseFieldDef, "style">, ...defaults: FieldClassValue[]): string;
422
625
 
423
626
  interface FieldRendererProps {
424
627
  fieldId: string;
@@ -811,4 +1014,4 @@ declare function BpeChartReadOnly({ data: rawData, label, className, }: {
811
1014
  className?: string;
812
1015
  }): react_jsx_runtime.JSX.Element;
813
1016
 
814
- export { type AIDifferentialDiagnosisItem, AddInvestigationField, type AddInvestigationFieldProps, AddMedicationField, type AddMedicationFieldProps, AddProcedureField, type AddProcedureFieldProps, BPE_SCORES, BaseFieldDef, type BpeChartData, BpeChartReadOnly, type BpeScore, type CampBookingConfig, CampBookingPersistenceProvider, type CreateUploadHandlerOptions, type CustomProcedure, CONDITION_CONFIG as DENTAL_CONDITION_CONFIG, QUADRANTS as DENTAL_QUADRANTS, DentalChartData, DentalChartReadOnly, DiagnosticPackage, DifferentialDiagnosis, type DifferentialDiagnosisItem, type DifferentialDiagnosisProps, DoctorFrequentItems, DynamicForm, DynamicFormV2, type DynamicFormV2Props, type DynamicFormV2SectionMode, EMAIL_REGEX, FieldDef, type FieldHandler, type FieldHandlersMap, FieldRenderer, FieldRequiredIndicator, FormControls, type FormControlsProps, FormDef, FormFileUploadWidget, FormProvider, FormState, FormStore, FormValues, ImageUploadWidget, type Investigation, InvestigationFrequentItem, type InvestigationSearchResult, MAR_MEDICATION_ORDERS_META_KEY, type MasterProcedure, MediaUploadWidget, type Medication, MedicationFrequentItem, MedicationPackage, type MedicationSearchResult, MultiStepForm, type MultiStepFormProps, type PresignedUploadResponse, type Procedure, ProcedureFrequentItem, type ProcedureSearchResult, ReadOnlyForm, ReadOnlyImageUpload, ReadOnlyMediaUpload, ReadOnlySignature, Rule, type RuleResult, SEXTANTS, type SextantKey, SignatureUploadWidget, SmartForm, type SmartFormProps, type StoreAuthConfig, type StoreCampsConfig, type StoreConfig, type SubmissionData, ToothCondition, Upload, type UploadProps, WorkflowTransition, createUploadHandler, evaluateRules, fieldControlClass, fieldDescriptionClass, fieldErrorClass, fieldLabelClass, fieldMetaRequestsMarMedicationOrdersButton, fieldWrapperClass, isLabelVisible, normalizeDentalChart, toothLabel, useField, useFieldHandlers, useForm, useFormStore, useFrequentItems, useMedicationPackages, usePackages, validateField, validateForm };
1017
+ export { type AIDifferentialDiagnosisItem, AddInvestigationField, type AddInvestigationFieldProps, AddMedicationField, type AddMedicationFieldProps, AddProcedureField, type AddProcedureFieldProps, BPE_SCORES, BaseFieldDef, type BpeChartData, BpeChartReadOnly, type BpeScore, type CampBookingConfig, CampBookingPersistenceProvider, type CreateUploadHandlerOptions, type CustomProcedure, CONDITION_CONFIG as DENTAL_CONDITION_CONFIG, QUADRANTS as DENTAL_QUADRANTS, DentalChartData, DentalChartReadOnly, DiagnosticPackage, DifferentialDiagnosis, type DifferentialDiagnosisItem, type DifferentialDiagnosisProps, DoctorFrequentItems, DynamicForm, type DynamicFormProps, DynamicFormV2, type DynamicFormV2Props, type DynamicFormV2SectionMode, EMAIL_REGEX, type FieldClassValue, type FieldControlClassOptions, FieldDef, type FieldHandler, type FieldHandlersMap, FieldRenderer, FieldRequiredIndicator, FormControls, type FormControlsProps, FormDef, FormFileUploadWidget, FormLayout, type FormLayoutProps, type FormNavConfig, FormProvider, type FormSectionMode, FormState, FormStore, FormValues, ImageUploadWidget, type Investigation, InvestigationFrequentItem, type InvestigationSearchResult, MAR_MEDICATION_ORDERS_META_KEY, type MasterProcedure, MediaUploadWidget, type Medication, MedicationFrequentItem, MedicationPackage, type MedicationSearchResult, MultiStepForm, type MultiStepFormProps, type PresignedUploadResponse, type Procedure, ProcedureFrequentItem, type ProcedureSearchResult, ReadOnlyForm, ReadOnlyImageUpload, ReadOnlyMediaUpload, ReadOnlySignature, Rule, type RuleResult, SECTION_SCROLL_MARGIN, SEXTANTS, SectionNav, type SectionNavClassNames, type SectionNavItem, type SectionNavProps, type SextantKey, SignatureUploadWidget, SmartForm, type SmartFormProps, type StoreAuthConfig, type StoreCampsConfig, type StoreConfig, type SubmissionData, ToothCondition, Upload, type UploadProps, WorkflowTransition, createUploadHandler, evaluateRules, fieldClass, fieldControlClass, fieldDescriptionClass, fieldErrorClass, fieldLabelClass, fieldMetaRequestsMarMedicationOrdersButton, fieldWrapperClass, isLabelVisible, normalizeDentalChart, toothLabel, useField, useFieldHandlers, useForm, useFormStore, useFrequentItems, useMedicationPackages, usePackages, validateField, validateForm };
package/dist/index.d.ts CHANGED
@@ -346,19 +346,145 @@ declare function useField(fieldId: string): {
346
346
  loading?: boolean;
347
347
  };
348
348
 
349
- declare const DynamicForm: React.FC;
349
+ interface SectionNavItem {
350
+ /** DOM id of the section element this entry jumps to. */
351
+ id: string;
352
+ title: string;
353
+ /** Fields in this section currently showing a validation error. */
354
+ errorCount: number;
355
+ }
356
+ /**
357
+ * Per-element class overrides, mirroring `FieldStyleClassNames` for fields.
358
+ *
359
+ * Each value is merged *after* the defaults through `cn` (clsx +
360
+ * tailwind-merge), so a conflicting utility replaces the default rather than
361
+ * fighting it — `item: "text-base"` genuinely overrides the built-in `text-sm`.
362
+ * Colours are already semantic tokens, so overriding `--muted`, `--destructive`
363
+ * or `--foreground` restyles the nav without touching these at all.
364
+ */
365
+ interface SectionNavClassNames {
366
+ /** The `<ol>` holding the entries. */
367
+ list?: string;
368
+ /** Every entry link. */
369
+ item?: string;
370
+ /** Added to the entry for the section currently in view. */
371
+ itemActive?: string;
372
+ /** The error-count badge on an entry. */
373
+ badge?: string;
374
+ /** Side only — the "Sections" heading row above the list. */
375
+ header?: string;
376
+ /** Side only — the collapse / expand button. */
377
+ toggle?: string;
378
+ }
379
+ interface SectionNavProps {
380
+ items: SectionNavItem[];
381
+ position: "top" | "side";
382
+ /** Side only — renders a toggle that folds the rail away. */
383
+ collapsible?: boolean;
384
+ defaultCollapsed?: boolean;
385
+ /** Show the per-section error count. Default true. */
386
+ showStatus?: boolean;
387
+ /** Class for the nav root (and for the collapsed toggle's wrapper). */
388
+ className?: string;
389
+ classNames?: SectionNavClassNames;
390
+ }
391
+ /** Scroll-margin so a jumped-to section clears the sticky header. */
392
+ declare const SECTION_SCROLL_MARGIN = "scroll-mt-24";
393
+ /**
394
+ * In-page navigation for a form's sections: jump links plus a scroll-spy
395
+ * highlight, and an optional per-section error count.
396
+ *
397
+ * Unlike an accordion this hides no content — every section stays in the DOM,
398
+ * so find-in-page and printing keep working, and a validation error can never
399
+ * be sitting inside a collapsed panel.
400
+ */
401
+ declare const SectionNav: React.FC<SectionNavProps>;
402
+
403
+ /**
404
+ * How a form's sections are presented.
405
+ *
406
+ * - `accordion` — bordered collapsible cards. Compact, but a collapsed panel is
407
+ * `display: none`, so its content does not print, is invisible to
408
+ * find-in-page, and can hide a validation error.
409
+ * - `plain` — a flat vertical stack. Nothing hidden, no orientation aid.
410
+ * - `nav` — flat like `plain`, plus in-page section navigation. Best for long,
411
+ * multi-section forms and for anything that has to be read or printed whole.
412
+ */
413
+ type FormSectionMode = "accordion" | "plain" | "nav";
414
+ interface FormNavConfig {
415
+ /** `side` renders a sticky rail beside the form; `top` a sticky strip above it. Default `side`. */
416
+ position?: "top" | "side";
417
+ /** Side only — renders a toggle that folds the rail away. Ignored when `position` is `top`. */
418
+ collapsible?: boolean;
419
+ /** Side + collapsible only — start folded. Default false. */
420
+ defaultCollapsed?: boolean;
421
+ /** Show a per-section count of fields needing attention. Default true. */
422
+ showStatus?: boolean;
423
+ /** Class for the nav root element. */
424
+ className?: string;
425
+ /**
426
+ * Per-element class overrides for the nav. Merged after the defaults through
427
+ * tailwind-merge, so a conflicting utility replaces rather than fights it.
428
+ * For colours, prefer overriding the CSS tokens (`--muted`, `--destructive`,
429
+ * `--foreground`) — the nav uses them throughout and will follow your theme.
430
+ */
431
+ classNames?: SectionNavClassNames;
432
+ }
433
+ interface FormLayoutProps {
434
+ /** Render `schema.title` as the page heading. */
435
+ showTitle?: boolean;
436
+ sectionMode?: FormSectionMode;
437
+ /** `plain`/`nav` only — show the section title above its fields. Default true. */
438
+ showSectionTitles?: boolean;
439
+ /** Only read when `sectionMode` is `nav`. */
440
+ nav?: FormNavConfig;
441
+ className?: string;
442
+ }
443
+ /**
444
+ * Shared renderer behind {@link DynamicForm} and {@link DynamicFormV2}. Keeping
445
+ * the traversal in one place is what lets `nav` mode exist without either
446
+ * component growing a second copy of it — and the `accordion` branch is the
447
+ * original markup, untouched.
448
+ */
449
+ declare const FormLayout: React.FC<FormLayoutProps>;
350
450
 
351
- type DynamicFormV2SectionMode = "accordion" | "plain";
451
+ interface DynamicFormProps {
452
+ /**
453
+ * Section presentation. Defaults to `accordion`, which is the historical
454
+ * behaviour — omitting this prop renders exactly what it always has.
455
+ *
456
+ * Use `nav` for long forms (and anything that must be read or printed in
457
+ * full): sections stay flat and expanded, with in-page navigation beside or
458
+ * above them.
459
+ */
460
+ sectionMode?: FormSectionMode;
461
+ /** Only read when `sectionMode` is `nav`. See {@link FormNavConfig}. */
462
+ nav?: FormNavConfig;
463
+ /** `plain`/`nav` only — show the section title above its fields. Default true. */
464
+ showSectionTitles?: boolean;
465
+ className?: string;
466
+ }
467
+ /**
468
+ * Default form view. Renders `schema.title` as the page heading and each
469
+ * section as a collapsible card unless `sectionMode` says otherwise.
470
+ */
471
+ declare const DynamicForm: React.FC<DynamicFormProps>;
472
+
473
+ /** @deprecated Prefer {@link FormSectionMode}; kept so existing imports resolve. */
474
+ type DynamicFormV2SectionMode = FormSectionMode;
352
475
  interface DynamicFormV2Props {
353
476
  /** When true, renders `schema.title` as the page heading. Default true. */
354
477
  showTitle?: boolean;
355
478
  /**
356
479
  * `accordion` — bordered collapsible sections (same as DynamicForm).
357
480
  * `plain` — simple vertical stack, no card/accordion chrome.
481
+ * `nav` — `plain` plus in-page section navigation.
358
482
  */
359
- sectionMode?: DynamicFormV2SectionMode;
360
- /** In `plain` mode, show the section title above fields. Default true. Ignored for accordion. */
483
+ sectionMode?: FormSectionMode;
484
+ /** In `plain`/`nav` mode, show the section title above fields. Default true. Ignored for accordion. */
361
485
  showSectionTitles?: boolean;
486
+ /** Only read when `sectionMode` is `nav`. See {@link FormNavConfig}. */
487
+ nav?: FormNavConfig;
362
488
  className?: string;
363
489
  }
364
490
  /**
@@ -410,15 +536,92 @@ interface SmartFormProps {
410
536
  */
411
537
  declare const SmartForm: React.FC<SmartFormProps>;
412
538
 
539
+ /**
540
+ * A class value accepted by the field style helpers. Mirrors what `cn` (clsx +
541
+ * tailwind-merge) already tolerates at runtime, so `showError && "…"` can be
542
+ * passed directly instead of being pre-wrapped in its own `cn()` call.
543
+ */
544
+ type FieldClassValue = string | false | null | undefined;
545
+ /**
546
+ * Canonical default class strings for field presentation.
547
+ *
548
+ * Each value is the *dominant* string already in use across the core widgets,
549
+ * so adopting a constant is a no-op at render time. Because these are shared,
550
+ * editing a value here changes every core widget at once — treat any edit as a
551
+ * deliberate, breaking visual change rather than a tidy-up.
552
+ *
553
+ * Colours go through the semantic tokens defined in `src/styles/index.css`
554
+ * rather than raw palette classes, which is what allows a consumer to restyle
555
+ * the whole library by overriding a CSS variable. In the default light theme
556
+ * `--destructive` resolves to exactly `red-500`, so the token indirection is
557
+ * visually identical to the literals it replaces.
558
+ */
559
+ declare const fieldClass: {
560
+ /** Label + control column spacing. The default for a simple field. */
561
+ readonly wrapper: "space-y-2";
562
+ /** Wrapper for fields that stack sub-blocks (tables, repeatable rows). */
563
+ readonly wrapperStacked: "space-y-4";
564
+ /** Bordered container around a list of checkbox/multiselect options. */
565
+ readonly optionListBox: "border rounded-md p-3 space-y-2";
566
+ /**
567
+ * Validation message shown beneath a control.
568
+ *
569
+ * `fmn-enter` is a plain CSS class shipped in `formanitor/styles.css` (not a
570
+ * Tailwind utility), so the fade-in works without any consumer build config.
571
+ * It self-disables under `prefers-reduced-motion`.
572
+ */
573
+ readonly error: "text-xs text-destructive fmn-enter";
574
+ /** Error state applied to a control that owns its own border. */
575
+ readonly controlError: "border-destructive";
576
+ /**
577
+ * Error state for controls whose border belongs to a child element (slider
578
+ * track, rich-text shell), where a ring reads correctly but a border does not.
579
+ */
580
+ readonly controlErrorRing: "ring-1 ring-destructive";
581
+ /**
582
+ * Error recolour for a *group* label (checkbox/radio sets).
583
+ *
584
+ * Deliberately NOT `text-destructive`: this is `red-600`, a different shade
585
+ * from the `red-500` used for error text. Kept verbatim so centralising it
586
+ * changes nothing on screen. Unifying the two is a separate visual decision.
587
+ */
588
+ readonly labelError: "text-red-600";
589
+ /** Soft-locked control: visible but inert. */
590
+ readonly disabled: "opacity-50 pointer-events-none";
591
+ /** Helper text beneath a label. */
592
+ readonly description: "text-xs text-muted-foreground";
593
+ /** The `*` marking a required field. */
594
+ readonly requiredIndicator: "text-destructive";
595
+ /**
596
+ * The focus ring used by the shadcn `Input`, extracted so hand-rolled and
597
+ * headless controls can match it instead of inventing their own.
598
+ */
599
+ readonly focusRing: "ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2";
600
+ };
413
601
  declare function isLabelVisible(fieldDef: Pick<BaseFieldDef, "style">): boolean;
414
602
  declare function FieldRequiredIndicator({ fieldDef, }: {
415
603
  fieldDef: Pick<BaseFieldDef, "required" | "style">;
416
604
  }): react_jsx_runtime.JSX.Element | null;
417
- declare function fieldWrapperClass(fieldDef: Pick<BaseFieldDef, "style">, ...defaults: (string | undefined)[]): string;
418
- declare function fieldLabelClass(fieldDef: Pick<BaseFieldDef, "style">, ...defaults: (string | undefined)[]): string;
419
- declare function fieldControlClass(fieldDef: Pick<BaseFieldDef, "style">, ...defaults: (string | undefined)[]): string;
420
- declare function fieldDescriptionClass(fieldDef: Pick<BaseFieldDef, "style">, ...defaults: (string | undefined)[]): string;
421
- declare function fieldErrorClass(fieldDef: Pick<BaseFieldDef, "style">, ...defaults: (string | undefined)[]): string;
605
+ declare function fieldWrapperClass(fieldDef: Pick<BaseFieldDef, "style">, ...defaults: FieldClassValue[]): string;
606
+ declare function fieldLabelClass(fieldDef: Pick<BaseFieldDef, "style">, ...defaults: FieldClassValue[]): string;
607
+ /**
608
+ * Separates a control's *baseline appearance* from its *current state*.
609
+ *
610
+ * `fullControl` means "discard our styling and use mine", which must not also
611
+ * discard the error outline — a consumer restyling an input should never be
612
+ * able to silently suppress a validation signal. Splitting the two channels
613
+ * lets `defaults` be dropped while `state` always survives.
614
+ */
615
+ interface FieldControlClassOptions {
616
+ /** Baseline appearance. Skipped entirely when `style.fullControl` is set. */
617
+ defaults?: FieldClassValue[];
618
+ /** State-driven classes (error, disabled). Always applied, and applied last. */
619
+ state?: FieldClassValue[];
620
+ }
621
+ declare function fieldControlClass(fieldDef: Pick<BaseFieldDef, "style">, ...defaults: FieldClassValue[]): string;
622
+ declare function fieldControlClass(fieldDef: Pick<BaseFieldDef, "style">, options: FieldControlClassOptions): string;
623
+ declare function fieldDescriptionClass(fieldDef: Pick<BaseFieldDef, "style">, ...defaults: FieldClassValue[]): string;
624
+ declare function fieldErrorClass(fieldDef: Pick<BaseFieldDef, "style">, ...defaults: FieldClassValue[]): string;
422
625
 
423
626
  interface FieldRendererProps {
424
627
  fieldId: string;
@@ -811,4 +1014,4 @@ declare function BpeChartReadOnly({ data: rawData, label, className, }: {
811
1014
  className?: string;
812
1015
  }): react_jsx_runtime.JSX.Element;
813
1016
 
814
- export { type AIDifferentialDiagnosisItem, AddInvestigationField, type AddInvestigationFieldProps, AddMedicationField, type AddMedicationFieldProps, AddProcedureField, type AddProcedureFieldProps, BPE_SCORES, BaseFieldDef, type BpeChartData, BpeChartReadOnly, type BpeScore, type CampBookingConfig, CampBookingPersistenceProvider, type CreateUploadHandlerOptions, type CustomProcedure, CONDITION_CONFIG as DENTAL_CONDITION_CONFIG, QUADRANTS as DENTAL_QUADRANTS, DentalChartData, DentalChartReadOnly, DiagnosticPackage, DifferentialDiagnosis, type DifferentialDiagnosisItem, type DifferentialDiagnosisProps, DoctorFrequentItems, DynamicForm, DynamicFormV2, type DynamicFormV2Props, type DynamicFormV2SectionMode, EMAIL_REGEX, FieldDef, type FieldHandler, type FieldHandlersMap, FieldRenderer, FieldRequiredIndicator, FormControls, type FormControlsProps, FormDef, FormFileUploadWidget, FormProvider, FormState, FormStore, FormValues, ImageUploadWidget, type Investigation, InvestigationFrequentItem, type InvestigationSearchResult, MAR_MEDICATION_ORDERS_META_KEY, type MasterProcedure, MediaUploadWidget, type Medication, MedicationFrequentItem, MedicationPackage, type MedicationSearchResult, MultiStepForm, type MultiStepFormProps, type PresignedUploadResponse, type Procedure, ProcedureFrequentItem, type ProcedureSearchResult, ReadOnlyForm, ReadOnlyImageUpload, ReadOnlyMediaUpload, ReadOnlySignature, Rule, type RuleResult, SEXTANTS, type SextantKey, SignatureUploadWidget, SmartForm, type SmartFormProps, type StoreAuthConfig, type StoreCampsConfig, type StoreConfig, type SubmissionData, ToothCondition, Upload, type UploadProps, WorkflowTransition, createUploadHandler, evaluateRules, fieldControlClass, fieldDescriptionClass, fieldErrorClass, fieldLabelClass, fieldMetaRequestsMarMedicationOrdersButton, fieldWrapperClass, isLabelVisible, normalizeDentalChart, toothLabel, useField, useFieldHandlers, useForm, useFormStore, useFrequentItems, useMedicationPackages, usePackages, validateField, validateForm };
1017
+ export { type AIDifferentialDiagnosisItem, AddInvestigationField, type AddInvestigationFieldProps, AddMedicationField, type AddMedicationFieldProps, AddProcedureField, type AddProcedureFieldProps, BPE_SCORES, BaseFieldDef, type BpeChartData, BpeChartReadOnly, type BpeScore, type CampBookingConfig, CampBookingPersistenceProvider, type CreateUploadHandlerOptions, type CustomProcedure, CONDITION_CONFIG as DENTAL_CONDITION_CONFIG, QUADRANTS as DENTAL_QUADRANTS, DentalChartData, DentalChartReadOnly, DiagnosticPackage, DifferentialDiagnosis, type DifferentialDiagnosisItem, type DifferentialDiagnosisProps, DoctorFrequentItems, DynamicForm, type DynamicFormProps, DynamicFormV2, type DynamicFormV2Props, type DynamicFormV2SectionMode, EMAIL_REGEX, type FieldClassValue, type FieldControlClassOptions, FieldDef, type FieldHandler, type FieldHandlersMap, FieldRenderer, FieldRequiredIndicator, FormControls, type FormControlsProps, FormDef, FormFileUploadWidget, FormLayout, type FormLayoutProps, type FormNavConfig, FormProvider, type FormSectionMode, FormState, FormStore, FormValues, ImageUploadWidget, type Investigation, InvestigationFrequentItem, type InvestigationSearchResult, MAR_MEDICATION_ORDERS_META_KEY, type MasterProcedure, MediaUploadWidget, type Medication, MedicationFrequentItem, MedicationPackage, type MedicationSearchResult, MultiStepForm, type MultiStepFormProps, type PresignedUploadResponse, type Procedure, ProcedureFrequentItem, type ProcedureSearchResult, ReadOnlyForm, ReadOnlyImageUpload, ReadOnlyMediaUpload, ReadOnlySignature, Rule, type RuleResult, SECTION_SCROLL_MARGIN, SEXTANTS, SectionNav, type SectionNavClassNames, type SectionNavItem, type SectionNavProps, type SextantKey, SignatureUploadWidget, SmartForm, type SmartFormProps, type StoreAuthConfig, type StoreCampsConfig, type StoreConfig, type SubmissionData, ToothCondition, Upload, type UploadProps, WorkflowTransition, createUploadHandler, evaluateRules, fieldClass, fieldControlClass, fieldDescriptionClass, fieldErrorClass, fieldLabelClass, fieldMetaRequestsMarMedicationOrdersButton, fieldWrapperClass, isLabelVisible, normalizeDentalChart, toothLabel, useField, useFieldHandlers, useForm, useFormStore, useFrequentItems, useMedicationPackages, usePackages, validateField, validateForm };