@schema-engine/forms-radiant 0.0.0-stage → 0.5.0

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 (573) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +74 -2
  3. package/dist/adapters/index.d.ts +2 -0
  4. package/dist/adapters/index.js +19 -0
  5. package/dist/adapters/index.js.map +7 -0
  6. package/dist/adapters/radiant/controller/form-controller.d.ts +62 -0
  7. package/dist/adapters/radiant/controller/form-controller.js +8 -0
  8. package/dist/adapters/radiant/controller/form-controller.js.map +7 -0
  9. package/dist/adapters/radiant/controller/form-engine-controller.d.ts +13 -0
  10. package/dist/adapters/radiant/controller/form-engine-controller.js +10 -0
  11. package/dist/adapters/radiant/controller/form-engine-controller.js.map +7 -0
  12. package/dist/adapters/radiant/controller/index.d.ts +2 -0
  13. package/dist/adapters/radiant/controller/index.js +16 -0
  14. package/dist/adapters/radiant/controller/index.js.map +7 -0
  15. package/dist/adapters/radiant/index.d.ts +1 -0
  16. package/dist/adapters/radiant/index.js +17 -0
  17. package/dist/adapters/radiant/index.js.map +7 -0
  18. package/dist/adapters/radiant/rui-form-shell.d.ts +19 -0
  19. package/dist/adapters/radiant/rui-form-shell.js +9 -0
  20. package/dist/adapters/radiant/rui-form-shell.js.map +7 -0
  21. package/dist/adapters/types.d.ts +11 -0
  22. package/dist/adapters/types.js +1 -0
  23. package/dist/adapters/types.js.map +7 -0
  24. package/dist/chunk-27TSETGJ.js +58 -0
  25. package/dist/chunk-27TSETGJ.js.map +7 -0
  26. package/dist/chunk-2PYB72CX.js +0 -0
  27. package/dist/chunk-2PYB72CX.js.map +7 -0
  28. package/dist/chunk-362U4YBN.js +0 -0
  29. package/dist/chunk-362U4YBN.js.map +7 -0
  30. package/dist/chunk-3BGAFK3V.js +18 -0
  31. package/dist/chunk-3BGAFK3V.js.map +7 -0
  32. package/dist/chunk-4JYXJYVD.js +50 -0
  33. package/dist/chunk-4JYXJYVD.js.map +7 -0
  34. package/dist/chunk-4K2WI4QW.js +52 -0
  35. package/dist/chunk-4K2WI4QW.js.map +7 -0
  36. package/dist/chunk-4LAZI7C4.js +26 -0
  37. package/dist/chunk-4LAZI7C4.js.map +7 -0
  38. package/dist/chunk-5XIIWHVW.js +27 -0
  39. package/dist/chunk-5XIIWHVW.js.map +7 -0
  40. package/dist/chunk-63WXFVJ4.js +64 -0
  41. package/dist/chunk-63WXFVJ4.js.map +7 -0
  42. package/dist/chunk-643DH3YN.js +13 -0
  43. package/dist/chunk-643DH3YN.js.map +7 -0
  44. package/dist/chunk-6BONJDNL.js +26 -0
  45. package/dist/chunk-6BONJDNL.js.map +7 -0
  46. package/dist/chunk-6YYC6GI7.js +294 -0
  47. package/dist/chunk-6YYC6GI7.js.map +7 -0
  48. package/dist/chunk-7GOBAL4G.js +0 -0
  49. package/dist/chunk-7GOBAL4G.js.map +7 -0
  50. package/dist/chunk-7VW5FEGO.js +112 -0
  51. package/dist/chunk-7VW5FEGO.js.map +7 -0
  52. package/dist/chunk-A5MWHHAZ.js +18 -0
  53. package/dist/chunk-A5MWHHAZ.js.map +7 -0
  54. package/dist/chunk-ALED4QSO.js +35 -0
  55. package/dist/chunk-ALED4QSO.js.map +7 -0
  56. package/dist/chunk-BB36KW6N.js +34 -0
  57. package/dist/chunk-BB36KW6N.js.map +7 -0
  58. package/dist/chunk-BFY4LHEG.js +25 -0
  59. package/dist/chunk-BFY4LHEG.js.map +7 -0
  60. package/dist/chunk-BI2IVSXH.js +37 -0
  61. package/dist/chunk-BI2IVSXH.js.map +7 -0
  62. package/dist/chunk-BNT4RRD6.js +138 -0
  63. package/dist/chunk-BNT4RRD6.js.map +7 -0
  64. package/dist/chunk-C27EGCLO.js +80 -0
  65. package/dist/chunk-C27EGCLO.js.map +7 -0
  66. package/dist/chunk-CIKIFVWO.js +108 -0
  67. package/dist/chunk-CIKIFVWO.js.map +7 -0
  68. package/dist/chunk-CJYPRHUB.js +49 -0
  69. package/dist/chunk-CJYPRHUB.js.map +7 -0
  70. package/dist/chunk-CQG7AUEG.js +11 -0
  71. package/dist/chunk-CQG7AUEG.js.map +7 -0
  72. package/dist/chunk-CRAGTCCF.js +0 -0
  73. package/dist/chunk-CRAGTCCF.js.map +7 -0
  74. package/dist/chunk-DOK7KJEJ.js +69 -0
  75. package/dist/chunk-DOK7KJEJ.js.map +7 -0
  76. package/dist/chunk-EF2CVOUK.js +23 -0
  77. package/dist/chunk-EF2CVOUK.js.map +7 -0
  78. package/dist/chunk-EOGEJI3D.js +13 -0
  79. package/dist/chunk-EOGEJI3D.js.map +7 -0
  80. package/dist/chunk-F57ZZSP4.js +26 -0
  81. package/dist/chunk-F57ZZSP4.js.map +7 -0
  82. package/dist/chunk-F5DXZJMH.js +37 -0
  83. package/dist/chunk-F5DXZJMH.js.map +7 -0
  84. package/dist/chunk-FMA2OC5V.js +29 -0
  85. package/dist/chunk-FMA2OC5V.js.map +7 -0
  86. package/dist/chunk-FREP6CYY.js +81 -0
  87. package/dist/chunk-FREP6CYY.js.map +7 -0
  88. package/dist/chunk-FWGGDZGI.js +26 -0
  89. package/dist/chunk-FWGGDZGI.js.map +7 -0
  90. package/dist/chunk-G2GVYPBS.js +100 -0
  91. package/dist/chunk-G2GVYPBS.js.map +7 -0
  92. package/dist/chunk-G4M6646U.js +11 -0
  93. package/dist/chunk-G4M6646U.js.map +7 -0
  94. package/dist/chunk-G6IJ5JRQ.js +26 -0
  95. package/dist/chunk-G6IJ5JRQ.js.map +7 -0
  96. package/dist/chunk-GB4ETJCS.js +9 -0
  97. package/dist/chunk-GB4ETJCS.js.map +7 -0
  98. package/dist/chunk-GGYVU5PD.js +142 -0
  99. package/dist/chunk-GGYVU5PD.js.map +7 -0
  100. package/dist/chunk-GI7QPTA6.js +26 -0
  101. package/dist/chunk-GI7QPTA6.js.map +7 -0
  102. package/dist/chunk-GME6PPB2.js +26 -0
  103. package/dist/chunk-GME6PPB2.js.map +7 -0
  104. package/dist/chunk-GRYYXYUC.js +7 -0
  105. package/dist/chunk-GRYYXYUC.js.map +7 -0
  106. package/dist/chunk-GUCH7BGJ.js +26 -0
  107. package/dist/chunk-GUCH7BGJ.js.map +7 -0
  108. package/dist/chunk-GWVIHO3R.js +7 -0
  109. package/dist/chunk-GWVIHO3R.js.map +7 -0
  110. package/dist/chunk-HIDI5WS7.js +17 -0
  111. package/dist/chunk-HIDI5WS7.js.map +7 -0
  112. package/dist/chunk-HLWV3EKQ.js +62 -0
  113. package/dist/chunk-HLWV3EKQ.js.map +7 -0
  114. package/dist/chunk-HXWAAIA4.js +58 -0
  115. package/dist/chunk-HXWAAIA4.js.map +7 -0
  116. package/dist/chunk-HYMMEGK3.js +12 -0
  117. package/dist/chunk-HYMMEGK3.js.map +7 -0
  118. package/dist/chunk-IGV5F6AC.js +26 -0
  119. package/dist/chunk-IGV5F6AC.js.map +7 -0
  120. package/dist/chunk-IWA6ES3O.js +26 -0
  121. package/dist/chunk-IWA6ES3O.js.map +7 -0
  122. package/dist/chunk-JGMWBGY2.js +126 -0
  123. package/dist/chunk-JGMWBGY2.js.map +7 -0
  124. package/dist/chunk-K7MOCD53.js +402 -0
  125. package/dist/chunk-K7MOCD53.js.map +7 -0
  126. package/dist/chunk-KEA2XEQI.js +154 -0
  127. package/dist/chunk-KEA2XEQI.js.map +7 -0
  128. package/dist/chunk-KHIVOTMG.js +281 -0
  129. package/dist/chunk-KHIVOTMG.js.map +7 -0
  130. package/dist/chunk-L3LBJQYB.js +0 -0
  131. package/dist/chunk-L3LBJQYB.js.map +7 -0
  132. package/dist/chunk-LEMSXM37.js +49 -0
  133. package/dist/chunk-LEMSXM37.js.map +7 -0
  134. package/dist/chunk-LZJ3UDK7.js +23 -0
  135. package/dist/chunk-LZJ3UDK7.js.map +7 -0
  136. package/dist/chunk-LZNPJGFX.js +91 -0
  137. package/dist/chunk-LZNPJGFX.js.map +7 -0
  138. package/dist/chunk-M7TZPONS.js +57 -0
  139. package/dist/chunk-M7TZPONS.js.map +7 -0
  140. package/dist/chunk-MIAUDZGK.js +244 -0
  141. package/dist/chunk-MIAUDZGK.js.map +7 -0
  142. package/dist/chunk-MJOW3X36.js +33 -0
  143. package/dist/chunk-MJOW3X36.js.map +7 -0
  144. package/dist/chunk-MYFG673N.js +21 -0
  145. package/dist/chunk-MYFG673N.js.map +7 -0
  146. package/dist/chunk-NHZSKPKZ.js +21 -0
  147. package/dist/chunk-NHZSKPKZ.js.map +7 -0
  148. package/dist/chunk-NP7HH6IT.js +20 -0
  149. package/dist/chunk-NP7HH6IT.js.map +7 -0
  150. package/dist/chunk-NVIRGEQU.js +25 -0
  151. package/dist/chunk-NVIRGEQU.js.map +7 -0
  152. package/dist/chunk-OCKLBWOI.js +180 -0
  153. package/dist/chunk-OCKLBWOI.js.map +7 -0
  154. package/dist/chunk-PD3G4JDD.js +24 -0
  155. package/dist/chunk-PD3G4JDD.js.map +7 -0
  156. package/dist/chunk-PDYPUAZ5.js +45 -0
  157. package/dist/chunk-PDYPUAZ5.js.map +7 -0
  158. package/dist/chunk-PFJRNIDY.js +242 -0
  159. package/dist/chunk-PFJRNIDY.js.map +7 -0
  160. package/dist/chunk-PJ7NMKHV.js +59 -0
  161. package/dist/chunk-PJ7NMKHV.js.map +7 -0
  162. package/dist/chunk-PPL3NENE.js +26 -0
  163. package/dist/chunk-PPL3NENE.js.map +7 -0
  164. package/dist/chunk-QPLWIKBU.js +117 -0
  165. package/dist/chunk-QPLWIKBU.js.map +7 -0
  166. package/dist/chunk-QVX4Q6AT.js +26 -0
  167. package/dist/chunk-QVX4Q6AT.js.map +7 -0
  168. package/dist/chunk-REDMBMJ5.js +137 -0
  169. package/dist/chunk-REDMBMJ5.js.map +7 -0
  170. package/dist/chunk-RLDRCHT4.js +24 -0
  171. package/dist/chunk-RLDRCHT4.js.map +7 -0
  172. package/dist/chunk-RP4PAGBV.js +25 -0
  173. package/dist/chunk-RP4PAGBV.js.map +7 -0
  174. package/dist/chunk-RRBVMVHP.js +51 -0
  175. package/dist/chunk-RRBVMVHP.js.map +7 -0
  176. package/dist/chunk-RY2I6GBB.js +79 -0
  177. package/dist/chunk-RY2I6GBB.js.map +7 -0
  178. package/dist/chunk-S5VUGF7M.js +17 -0
  179. package/dist/chunk-S5VUGF7M.js.map +7 -0
  180. package/dist/chunk-SEOQGZ53.js +0 -0
  181. package/dist/chunk-SEOQGZ53.js.map +7 -0
  182. package/dist/chunk-SJ44RSNG.js +35 -0
  183. package/dist/chunk-SJ44RSNG.js.map +7 -0
  184. package/dist/chunk-SJ62JN3K.js +116 -0
  185. package/dist/chunk-SJ62JN3K.js.map +7 -0
  186. package/dist/chunk-SLV6UP6W.js +380 -0
  187. package/dist/chunk-SLV6UP6W.js.map +7 -0
  188. package/dist/chunk-SN7RRH7N.js +104 -0
  189. package/dist/chunk-SN7RRH7N.js.map +7 -0
  190. package/dist/chunk-T5UN2BZP.js +20 -0
  191. package/dist/chunk-T5UN2BZP.js.map +7 -0
  192. package/dist/chunk-TDJF3RSM.js +106 -0
  193. package/dist/chunk-TDJF3RSM.js.map +7 -0
  194. package/dist/chunk-TM2P4ICL.js +61 -0
  195. package/dist/chunk-TM2P4ICL.js.map +7 -0
  196. package/dist/chunk-TRU673W5.js +56 -0
  197. package/dist/chunk-TRU673W5.js.map +7 -0
  198. package/dist/chunk-TTTD6WXJ.js +26 -0
  199. package/dist/chunk-TTTD6WXJ.js.map +7 -0
  200. package/dist/chunk-TXOSFNQT.js +35 -0
  201. package/dist/chunk-TXOSFNQT.js.map +7 -0
  202. package/dist/chunk-U2Z4AIO2.js +99 -0
  203. package/dist/chunk-U2Z4AIO2.js.map +7 -0
  204. package/dist/chunk-UAJQCYDA.js +149 -0
  205. package/dist/chunk-UAJQCYDA.js.map +7 -0
  206. package/dist/chunk-UYNK56NL.js +22 -0
  207. package/dist/chunk-UYNK56NL.js.map +7 -0
  208. package/dist/chunk-VJH7TDR6.js +37 -0
  209. package/dist/chunk-VJH7TDR6.js.map +7 -0
  210. package/dist/chunk-VJN3SBME.js +47 -0
  211. package/dist/chunk-VJN3SBME.js.map +7 -0
  212. package/dist/chunk-VKKA7RZK.js +101 -0
  213. package/dist/chunk-VKKA7RZK.js.map +7 -0
  214. package/dist/chunk-VMCK5D33.js +30 -0
  215. package/dist/chunk-VMCK5D33.js.map +7 -0
  216. package/dist/chunk-VTSS2USV.js +0 -0
  217. package/dist/chunk-VTSS2USV.js.map +7 -0
  218. package/dist/chunk-WBLO2CCZ.js +81 -0
  219. package/dist/chunk-WBLO2CCZ.js.map +7 -0
  220. package/dist/chunk-WNRR7VQX.js +32 -0
  221. package/dist/chunk-WNRR7VQX.js.map +7 -0
  222. package/dist/chunk-WVMXFJZ6.js +25 -0
  223. package/dist/chunk-WVMXFJZ6.js.map +7 -0
  224. package/dist/chunk-WYNF44JO.js +140 -0
  225. package/dist/chunk-WYNF44JO.js.map +7 -0
  226. package/dist/chunk-XBLX66UW.js +31 -0
  227. package/dist/chunk-XBLX66UW.js.map +7 -0
  228. package/dist/chunk-XI2JGRAD.js +0 -0
  229. package/dist/chunk-XI2JGRAD.js.map +7 -0
  230. package/dist/chunk-XYUTMBYZ.js +59 -0
  231. package/dist/chunk-XYUTMBYZ.js.map +7 -0
  232. package/dist/chunk-ZGYRAC4S.js +33 -0
  233. package/dist/chunk-ZGYRAC4S.js.map +7 -0
  234. package/dist/chunk-ZHCQCFRT.js +114 -0
  235. package/dist/chunk-ZHCQCFRT.js.map +7 -0
  236. package/dist/chunk-ZMEOUKRS.js +23 -0
  237. package/dist/chunk-ZMEOUKRS.js.map +7 -0
  238. package/dist/chunk-ZNICU3KW.js +0 -0
  239. package/dist/chunk-ZNICU3KW.js.map +7 -0
  240. package/dist/chunk-ZSYE5AS5.js +30 -0
  241. package/dist/chunk-ZSYE5AS5.js.map +7 -0
  242. package/dist/chunk-ZWVPEYU4.js +0 -0
  243. package/dist/chunk-ZWVPEYU4.js.map +7 -0
  244. package/dist/components/blocks/form-actions.d.ts +25 -0
  245. package/dist/components/blocks/form-actions.js +10 -0
  246. package/dist/components/blocks/form-actions.js.map +7 -0
  247. package/dist/components/blocks/index.d.ts +6 -0
  248. package/dist/components/blocks/index.js +26 -0
  249. package/dist/components/blocks/index.js.map +7 -0
  250. package/dist/components/blocks/minimal-progress.d.ts +25 -0
  251. package/dist/components/blocks/minimal-progress.js +11 -0
  252. package/dist/components/blocks/minimal-progress.js.map +7 -0
  253. package/dist/components/blocks/step-header.d.ts +17 -0
  254. package/dist/components/blocks/step-header.js +11 -0
  255. package/dist/components/blocks/step-header.js.map +7 -0
  256. package/dist/components/blocks/step-indicators.d.ts +26 -0
  257. package/dist/components/blocks/step-indicators.js +11 -0
  258. package/dist/components/blocks/step-indicators.js.map +7 -0
  259. package/dist/components/blocks/wizard-actions.d.ts +30 -0
  260. package/dist/components/blocks/wizard-actions.js +11 -0
  261. package/dist/components/blocks/wizard-actions.js.map +7 -0
  262. package/dist/components/form-debugger/form-debugger.d.ts +29 -0
  263. package/dist/components/form-debugger/form-debugger.js +17 -0
  264. package/dist/components/form-debugger/form-debugger.js.map +7 -0
  265. package/dist/components/form-debugger/index.d.ts +2 -0
  266. package/dist/components/form-debugger/index.js +18 -0
  267. package/dist/components/form-debugger/index.js.map +7 -0
  268. package/dist/components/form-instance.d.ts +34 -0
  269. package/dist/components/form-instance.js +31 -0
  270. package/dist/components/form-instance.js.map +7 -0
  271. package/dist/components/form-instance.script.d.ts +171 -0
  272. package/dist/components/form-instance.script.js +16 -0
  273. package/dist/components/form-instance.script.js.map +7 -0
  274. package/dist/components/form-step.d.ts +48 -0
  275. package/dist/components/form-step.js +10 -0
  276. package/dist/components/form-step.js.map +7 -0
  277. package/dist/components/index.d.ts +7 -0
  278. package/dist/components/index.js +53 -0
  279. package/dist/components/index.js.map +7 -0
  280. package/dist/components/internals/constraint-element.d.ts +31 -0
  281. package/dist/components/internals/constraint-element.js +8 -0
  282. package/dist/components/internals/constraint-element.js.map +7 -0
  283. package/dist/components/internals/element-error.d.ts +9 -0
  284. package/dist/components/internals/element-error.js +7 -0
  285. package/dist/components/internals/element-error.js.map +7 -0
  286. package/dist/components/internals/field-renderer.d.ts +23 -0
  287. package/dist/components/internals/field-renderer.js +20 -0
  288. package/dist/components/internals/field-renderer.js.map +7 -0
  289. package/dist/components/internals/form-elements.d.ts +16 -0
  290. package/dist/components/internals/form-elements.js +18 -0
  291. package/dist/components/internals/form-elements.js.map +7 -0
  292. package/dist/components/internals/form-renderer.d.ts +16 -0
  293. package/dist/components/internals/form-renderer.js +33 -0
  294. package/dist/components/internals/form-renderer.js.map +7 -0
  295. package/dist/components/internals/form-renderer.script.d.ts +103 -0
  296. package/dist/components/internals/form-renderer.script.js +10 -0
  297. package/dist/components/internals/form-renderer.script.js.map +7 -0
  298. package/dist/components/internals/recipe-renderer.d.ts +23 -0
  299. package/dist/components/internals/recipe-renderer.js +22 -0
  300. package/dist/components/internals/recipe-renderer.js.map +7 -0
  301. package/dist/components/internals/render-registered-element.d.ts +24 -0
  302. package/dist/components/internals/render-registered-element.js +11 -0
  303. package/dist/components/internals/render-registered-element.js.map +7 -0
  304. package/dist/components/provider.d.ts +11 -0
  305. package/dist/components/provider.js +7 -0
  306. package/dist/components/provider.js.map +7 -0
  307. package/dist/components/shells/index.d.ts +1 -0
  308. package/dist/components/shells/index.js +18 -0
  309. package/dist/components/shells/index.js.map +7 -0
  310. package/dist/components/shells/shells.d.ts +28 -0
  311. package/dist/components/shells/shells.js +19 -0
  312. package/dist/components/shells/shells.js.map +7 -0
  313. package/dist/contexts/form-engine-owner.d.ts +10 -0
  314. package/dist/contexts/form-engine-owner.js +21 -0
  315. package/dist/contexts/form-engine-owner.js.map +7 -0
  316. package/dist/contexts/form-instance-context.d.ts +38 -0
  317. package/dist/contexts/form-instance-context.js +7 -0
  318. package/dist/contexts/form-instance-context.js.map +7 -0
  319. package/dist/contexts/index.d.ts +2 -0
  320. package/dist/contexts/index.js +11 -0
  321. package/dist/contexts/index.js.map +7 -0
  322. package/dist/contexts/resolve-form-engine.d.ts +20 -0
  323. package/dist/contexts/resolve-form-engine.js +11 -0
  324. package/dist/contexts/resolve-form-engine.js.map +7 -0
  325. package/dist/elements/actions/submit-button.d.ts +2 -0
  326. package/dist/elements/actions/submit-button.js +7 -0
  327. package/dist/elements/actions/submit-button.js.map +7 -0
  328. package/dist/elements/actions/submit-button.registration.d.ts +376 -0
  329. package/dist/elements/actions/submit-button.registration.js +9 -0
  330. package/dist/elements/actions/submit-button.registration.js.map +7 -0
  331. package/dist/elements/actions/submit-button.types.d.ts +382 -0
  332. package/dist/elements/actions/submit-button.types.js +7 -0
  333. package/dist/elements/actions/submit-button.types.js.map +7 -0
  334. package/dist/elements/content/form-submission-alert.d.ts +17 -0
  335. package/dist/elements/content/form-submission-alert.js +13 -0
  336. package/dist/elements/content/form-submission-alert.js.map +7 -0
  337. package/dist/elements/content/form-submission-alert.registration.d.ts +504 -0
  338. package/dist/elements/content/form-submission-alert.registration.js +13 -0
  339. package/dist/elements/content/form-submission-alert.registration.js.map +7 -0
  340. package/dist/elements/content/form-submission-alert.types.d.ts +402 -0
  341. package/dist/elements/content/form-submission-alert.types.js +9 -0
  342. package/dist/elements/content/form-submission-alert.types.js.map +7 -0
  343. package/dist/elements/field-group.d.ts +47 -0
  344. package/dist/elements/field-group.js +15 -0
  345. package/dist/elements/field-group.js.map +7 -0
  346. package/dist/elements/form-field.d.ts +57 -0
  347. package/dist/elements/form-field.js +14 -0
  348. package/dist/elements/form-field.js.map +7 -0
  349. package/dist/elements/inputs/form-array-elements.d.ts +97 -0
  350. package/dist/elements/inputs/form-array-elements.js +23 -0
  351. package/dist/elements/inputs/form-array-elements.js.map +7 -0
  352. package/dist/elements/inputs/form-array-elements.registration.d.ts +385 -0
  353. package/dist/elements/inputs/form-array-elements.registration.js +23 -0
  354. package/dist/elements/inputs/form-array-elements.registration.js.map +7 -0
  355. package/dist/elements/inputs/form-array-elements.types.d.ts +398 -0
  356. package/dist/elements/inputs/form-array-elements.types.js +7 -0
  357. package/dist/elements/inputs/form-array-elements.types.js.map +7 -0
  358. package/dist/elements/inputs/form-checkbox-group.d.ts +21 -0
  359. package/dist/elements/inputs/form-checkbox-group.js +21 -0
  360. package/dist/elements/inputs/form-checkbox-group.js.map +7 -0
  361. package/dist/elements/inputs/form-checkbox-group.registration.d.ts +506 -0
  362. package/dist/elements/inputs/form-checkbox-group.registration.js +21 -0
  363. package/dist/elements/inputs/form-checkbox-group.registration.js.map +7 -0
  364. package/dist/elements/inputs/form-checkbox-group.types.d.ts +410 -0
  365. package/dist/elements/inputs/form-checkbox-group.types.js +13 -0
  366. package/dist/elements/inputs/form-checkbox-group.types.js.map +7 -0
  367. package/dist/elements/inputs/form-checkbox.d.ts +3 -0
  368. package/dist/elements/inputs/form-checkbox.js +15 -0
  369. package/dist/elements/inputs/form-checkbox.js.map +7 -0
  370. package/dist/elements/inputs/form-checkbox.registration.d.ts +497 -0
  371. package/dist/elements/inputs/form-checkbox.registration.js +17 -0
  372. package/dist/elements/inputs/form-checkbox.registration.js.map +7 -0
  373. package/dist/elements/inputs/form-checkbox.types.d.ts +392 -0
  374. package/dist/elements/inputs/form-checkbox.types.js +11 -0
  375. package/dist/elements/inputs/form-checkbox.types.js.map +7 -0
  376. package/dist/elements/inputs/form-combobox.d.ts +22 -0
  377. package/dist/elements/inputs/form-combobox.js +21 -0
  378. package/dist/elements/inputs/form-combobox.js.map +7 -0
  379. package/dist/elements/inputs/form-combobox.registration.d.ts +505 -0
  380. package/dist/elements/inputs/form-combobox.registration.js +21 -0
  381. package/dist/elements/inputs/form-combobox.registration.js.map +7 -0
  382. package/dist/elements/inputs/form-combobox.types.d.ts +406 -0
  383. package/dist/elements/inputs/form-combobox.types.js +13 -0
  384. package/dist/elements/inputs/form-combobox.types.js.map +7 -0
  385. package/dist/elements/inputs/form-drop-zone.d.ts +29 -0
  386. package/dist/elements/inputs/form-drop-zone.js +19 -0
  387. package/dist/elements/inputs/form-drop-zone.js.map +7 -0
  388. package/dist/elements/inputs/form-drop-zone.registration.d.ts +497 -0
  389. package/dist/elements/inputs/form-drop-zone.registration.js +19 -0
  390. package/dist/elements/inputs/form-drop-zone.registration.js.map +7 -0
  391. package/dist/elements/inputs/form-drop-zone.types.d.ts +393 -0
  392. package/dist/elements/inputs/form-drop-zone.types.js +13 -0
  393. package/dist/elements/inputs/form-drop-zone.types.js.map +7 -0
  394. package/dist/elements/inputs/form-fieldset.d.ts +13 -0
  395. package/dist/elements/inputs/form-fieldset.js +19 -0
  396. package/dist/elements/inputs/form-fieldset.js.map +7 -0
  397. package/dist/elements/inputs/form-fieldset.registration.d.ts +380 -0
  398. package/dist/elements/inputs/form-fieldset.registration.js +21 -0
  399. package/dist/elements/inputs/form-fieldset.registration.js.map +7 -0
  400. package/dist/elements/inputs/form-fieldset.types.d.ts +388 -0
  401. package/dist/elements/inputs/form-fieldset.types.js +7 -0
  402. package/dist/elements/inputs/form-fieldset.types.js.map +7 -0
  403. package/dist/elements/inputs/form-input-otp.d.ts +36 -0
  404. package/dist/elements/inputs/form-input-otp.js +19 -0
  405. package/dist/elements/inputs/form-input-otp.js.map +7 -0
  406. package/dist/elements/inputs/form-input-otp.registration.d.ts +734 -0
  407. package/dist/elements/inputs/form-input-otp.registration.js +19 -0
  408. package/dist/elements/inputs/form-input-otp.registration.js.map +7 -0
  409. package/dist/elements/inputs/form-input-otp.types.d.ts +633 -0
  410. package/dist/elements/inputs/form-input-otp.types.js +11 -0
  411. package/dist/elements/inputs/form-input-otp.types.js.map +7 -0
  412. package/dist/elements/inputs/form-input.d.ts +2 -0
  413. package/dist/elements/inputs/form-input.js +15 -0
  414. package/dist/elements/inputs/form-input.js.map +7 -0
  415. package/dist/elements/inputs/form-input.registration.d.ts +516 -0
  416. package/dist/elements/inputs/form-input.registration.js +17 -0
  417. package/dist/elements/inputs/form-input.registration.js.map +7 -0
  418. package/dist/elements/inputs/form-input.types.d.ts +429 -0
  419. package/dist/elements/inputs/form-input.types.js +13 -0
  420. package/dist/elements/inputs/form-input.types.js.map +7 -0
  421. package/dist/elements/inputs/form-masked-input.d.ts +53 -0
  422. package/dist/elements/inputs/form-masked-input.js +20 -0
  423. package/dist/elements/inputs/form-masked-input.js.map +7 -0
  424. package/dist/elements/inputs/form-masked-input.registration.d.ts +516 -0
  425. package/dist/elements/inputs/form-masked-input.registration.js +20 -0
  426. package/dist/elements/inputs/form-masked-input.registration.js.map +7 -0
  427. package/dist/elements/inputs/form-masked-input.types.d.ts +420 -0
  428. package/dist/elements/inputs/form-masked-input.types.js +13 -0
  429. package/dist/elements/inputs/form-masked-input.types.js.map +7 -0
  430. package/dist/elements/inputs/form-number.d.ts +2 -0
  431. package/dist/elements/inputs/form-number.js +15 -0
  432. package/dist/elements/inputs/form-number.js.map +7 -0
  433. package/dist/elements/inputs/form-number.registration.d.ts +510 -0
  434. package/dist/elements/inputs/form-number.registration.js +17 -0
  435. package/dist/elements/inputs/form-number.registration.js.map +7 -0
  436. package/dist/elements/inputs/form-number.types.d.ts +414 -0
  437. package/dist/elements/inputs/form-number.types.js +11 -0
  438. package/dist/elements/inputs/form-number.types.js.map +7 -0
  439. package/dist/elements/inputs/form-phone-input.d.ts +51 -0
  440. package/dist/elements/inputs/form-phone-input.js +20 -0
  441. package/dist/elements/inputs/form-phone-input.js.map +7 -0
  442. package/dist/elements/inputs/form-phone-input.registration.d.ts +495 -0
  443. package/dist/elements/inputs/form-phone-input.registration.js +24 -0
  444. package/dist/elements/inputs/form-phone-input.registration.js.map +7 -0
  445. package/dist/elements/inputs/form-phone-input.types.d.ts +389 -0
  446. package/dist/elements/inputs/form-phone-input.types.js +13 -0
  447. package/dist/elements/inputs/form-phone-input.types.js.map +7 -0
  448. package/dist/elements/inputs/form-radio.d.ts +20 -0
  449. package/dist/elements/inputs/form-radio.js +21 -0
  450. package/dist/elements/inputs/form-radio.js.map +7 -0
  451. package/dist/elements/inputs/form-radio.registration.d.ts +506 -0
  452. package/dist/elements/inputs/form-radio.registration.js +21 -0
  453. package/dist/elements/inputs/form-radio.registration.js.map +7 -0
  454. package/dist/elements/inputs/form-radio.types.d.ts +410 -0
  455. package/dist/elements/inputs/form-radio.types.js +13 -0
  456. package/dist/elements/inputs/form-radio.types.js.map +7 -0
  457. package/dist/elements/inputs/form-select.d.ts +21 -0
  458. package/dist/elements/inputs/form-select.js +21 -0
  459. package/dist/elements/inputs/form-select.js.map +7 -0
  460. package/dist/elements/inputs/form-select.registration.d.ts +507 -0
  461. package/dist/elements/inputs/form-select.registration.js +21 -0
  462. package/dist/elements/inputs/form-select.registration.js.map +7 -0
  463. package/dist/elements/inputs/form-select.types.d.ts +408 -0
  464. package/dist/elements/inputs/form-select.types.js +13 -0
  465. package/dist/elements/inputs/form-select.types.js.map +7 -0
  466. package/dist/elements/inputs/form-slider.d.ts +24 -0
  467. package/dist/elements/inputs/form-slider.js +19 -0
  468. package/dist/elements/inputs/form-slider.js.map +7 -0
  469. package/dist/elements/inputs/form-slider.registration.d.ts +502 -0
  470. package/dist/elements/inputs/form-slider.registration.js +19 -0
  471. package/dist/elements/inputs/form-slider.registration.js.map +7 -0
  472. package/dist/elements/inputs/form-slider.types.d.ts +400 -0
  473. package/dist/elements/inputs/form-slider.types.js +11 -0
  474. package/dist/elements/inputs/form-slider.types.js.map +7 -0
  475. package/dist/elements/inputs/form-switch.d.ts +2 -0
  476. package/dist/elements/inputs/form-switch.js +15 -0
  477. package/dist/elements/inputs/form-switch.js.map +7 -0
  478. package/dist/elements/inputs/form-switch.registration.d.ts +497 -0
  479. package/dist/elements/inputs/form-switch.registration.js +17 -0
  480. package/dist/elements/inputs/form-switch.registration.js.map +7 -0
  481. package/dist/elements/inputs/form-switch.types.d.ts +396 -0
  482. package/dist/elements/inputs/form-switch.types.js +11 -0
  483. package/dist/elements/inputs/form-switch.types.js.map +7 -0
  484. package/dist/elements/inputs/form-textarea.d.ts +2 -0
  485. package/dist/elements/inputs/form-textarea.js +15 -0
  486. package/dist/elements/inputs/form-textarea.js.map +7 -0
  487. package/dist/elements/inputs/form-textarea.registration.d.ts +507 -0
  488. package/dist/elements/inputs/form-textarea.registration.js +17 -0
  489. package/dist/elements/inputs/form-textarea.registration.js.map +7 -0
  490. package/dist/elements/inputs/form-textarea.types.d.ts +410 -0
  491. package/dist/elements/inputs/form-textarea.types.js +13 -0
  492. package/dist/elements/inputs/form-textarea.types.js.map +7 -0
  493. package/dist/hooks/bind-field.d.ts +1 -0
  494. package/dist/hooks/bind-field.js +7 -0
  495. package/dist/hooks/bind-field.js.map +7 -0
  496. package/dist/hooks/grid-styles.d.ts +32 -0
  497. package/dist/hooks/grid-styles.js +12 -0
  498. package/dist/hooks/grid-styles.js.map +7 -0
  499. package/dist/hooks/index.d.ts +2 -0
  500. package/dist/hooks/index.js +16 -0
  501. package/dist/hooks/index.js.map +7 -0
  502. package/dist/index.css +1088 -0
  503. package/dist/index.css.map +7 -0
  504. package/dist/index.d.ts +11 -0
  505. package/dist/index.js +174 -0
  506. package/dist/index.js.map +7 -0
  507. package/dist/lib/choice-host.d.ts +18 -0
  508. package/dist/lib/choice-host.js +10 -0
  509. package/dist/lib/choice-host.js.map +7 -0
  510. package/dist/lib/choice-value.d.ts +27 -0
  511. package/dist/lib/choice-value.js +13 -0
  512. package/dist/lib/choice-value.js.map +7 -0
  513. package/dist/lib/control-host.d.ts +85 -0
  514. package/dist/lib/control-host.js +10 -0
  515. package/dist/lib/control-host.js.map +7 -0
  516. package/dist/lib/csrf-field.d.ts +11 -0
  517. package/dist/lib/csrf-field.js +7 -0
  518. package/dist/lib/csrf-field.js.map +7 -0
  519. package/dist/lib/field-control.d.ts +13 -0
  520. package/dist/lib/field-control.js +9 -0
  521. package/dist/lib/field-control.js.map +7 -0
  522. package/dist/lib/field-rules.d.ts +25 -0
  523. package/dist/lib/field-rules.js +9 -0
  524. package/dist/lib/field-rules.js.map +7 -0
  525. package/dist/lib/instance-callbacks.d.ts +22 -0
  526. package/dist/lib/instance-callbacks.js +9 -0
  527. package/dist/lib/instance-callbacks.js.map +7 -0
  528. package/dist/lib/instance-view.d.ts +37 -0
  529. package/dist/lib/instance-view.js +15 -0
  530. package/dist/lib/instance-view.js.map +7 -0
  531. package/dist/lib/logger.d.ts +2 -0
  532. package/dist/lib/logger.js +7 -0
  533. package/dist/lib/logger.js.map +7 -0
  534. package/dist/lib/mask-options.d.ts +28 -0
  535. package/dist/lib/mask-options.js +17 -0
  536. package/dist/lib/mask-options.js.map +7 -0
  537. package/dist/lib/native-form-data.d.ts +23 -0
  538. package/dist/lib/native-form-data.js +9 -0
  539. package/dist/lib/native-form-data.js.map +7 -0
  540. package/dist/lib/participation-snapshot.d.ts +26 -0
  541. package/dist/lib/participation-snapshot.js +9 -0
  542. package/dist/lib/participation-snapshot.js.map +7 -0
  543. package/dist/lib/phone-number.d.ts +28 -0
  544. package/dist/lib/phone-number.js +25 -0
  545. package/dist/lib/phone-number.js.map +7 -0
  546. package/dist/lib/phone-validation.d.ts +2 -0
  547. package/dist/lib/phone-validation.js +8 -0
  548. package/dist/lib/phone-validation.js.map +7 -0
  549. package/dist/lib/rui-form-utils.d.ts +1 -0
  550. package/dist/lib/rui-form-utils.js +20 -0
  551. package/dist/lib/rui-form-utils.js.map +7 -0
  552. package/dist/primitives.d.ts +5 -0
  553. package/dist/primitives.js +23 -0
  554. package/dist/primitives.js.map +7 -0
  555. package/dist/recipes/bind-recipes.d.ts +1829 -0
  556. package/dist/recipes/index.d.ts +6 -0
  557. package/dist/recipes/types.d.ts +34 -0
  558. package/dist/registrations/elements.d.ts +19 -0
  559. package/dist/registrations/elements.js +133 -0
  560. package/dist/registrations/elements.js.map +7 -0
  561. package/dist/registrations/index.d.ts +46 -0
  562. package/dist/registrations/index.js +137 -0
  563. package/dist/registrations/index.js.map +7 -0
  564. package/dist/registries/builder-registry.d.ts +1822 -0
  565. package/dist/registries/builder-registry.js +17 -0
  566. package/dist/registries/builder-registry.js.map +7 -0
  567. package/dist/registries/index.d.ts +1 -0
  568. package/dist/registries/index.js +18 -0
  569. package/dist/registries/index.js.map +7 -0
  570. package/package.json +124 -3
  571. package/skill/SKILL.md +79 -0
  572. package/skill/reference/forms-radiant-widgets.md +243 -0
  573. package/skill/reference/forms-radiant.md +72 -0
@@ -0,0 +1,17 @@
1
+ import {
2
+ createRadiantFormEngine
3
+ } from "../chunk-ZHCQCFRT.js";
4
+ import "../chunk-ZNICU3KW.js";
5
+ import "../chunk-U2Z4AIO2.js";
6
+ import "../chunk-PDYPUAZ5.js";
7
+ import "../chunk-FREP6CYY.js";
8
+ import "../chunk-RY2I6GBB.js";
9
+ import "../chunk-QPLWIKBU.js";
10
+ import "../chunk-362U4YBN.js";
11
+ import "../chunk-KEA2XEQI.js";
12
+ import "../chunk-4JYXJYVD.js";
13
+ import "../chunk-GB4ETJCS.js";
14
+ import "../chunk-TRU673W5.js";
15
+ export {
16
+ createRadiantFormEngine
17
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1 @@
1
+ export { createRadiantFormEngine } from './builder-registry.js';
@@ -0,0 +1,18 @@
1
+ import "../chunk-ZWVPEYU4.js";
2
+ import {
3
+ createRadiantFormEngine
4
+ } from "../chunk-ZHCQCFRT.js";
5
+ import "../chunk-ZNICU3KW.js";
6
+ import "../chunk-U2Z4AIO2.js";
7
+ import "../chunk-PDYPUAZ5.js";
8
+ import "../chunk-FREP6CYY.js";
9
+ import "../chunk-RY2I6GBB.js";
10
+ import "../chunk-QPLWIKBU.js";
11
+ import "../chunk-362U4YBN.js";
12
+ import "../chunk-KEA2XEQI.js";
13
+ import "../chunk-4JYXJYVD.js";
14
+ import "../chunk-GB4ETJCS.js";
15
+ import "../chunk-TRU673W5.js";
16
+ export {
17
+ createRadiantFormEngine
18
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
package/package.json CHANGED
@@ -1,6 +1,127 @@
1
1
  {
2
2
  "name": "@schema-engine/forms-radiant",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "type": "module",
4
+ "version": "0.5.0",
5
+ "description": "The Radiant renderer for Schema Engine forms, with 18 ready elements built on Radiant UI",
6
+ "keywords": [
7
+ "schema-engine",
8
+ "forms",
9
+ "radiant",
10
+ "ecopages",
11
+ "web-components"
12
+ ],
13
+ "author": "Andrea Zanenghi",
14
+ "license": "MIT",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/schema-engine/schema-engine.git",
18
+ "directory": "packages/forms-radiant"
19
+ },
20
+ "engines": {
21
+ "node": "^24.22.0 || >=26.0.0"
22
+ },
23
+ "homepage": "https://schema-engine.com/docs/forms-radiant/overview",
24
+ "publishConfig": {
25
+ "access": "public"
26
+ },
27
+ "sideEffects": [
28
+ "**/*.css",
29
+ "./dist/**/*.js"
30
+ ],
31
+ "main": "dist/index.js",
32
+ "module": "dist/index.js",
33
+ "types": "dist/index.d.ts",
34
+ "style": "dist/index.css",
35
+ "files": [
36
+ "/dist/*",
37
+ "/skill"
38
+ ],
39
+ "peerDependencies": {
40
+ "@ecopages/jsx": ">=0.12.0",
41
+ "@ecopages/radiant": ">=0.12.0",
42
+ "@ecopages/radiant-ui": ">=0.6.1",
43
+ "@ecopages/signals": ">=0.12.0",
44
+ "typescript": "^5.4",
45
+ "zod": "^4.0.17",
46
+ "@schema-engine/forms": "^0.5.0",
47
+ "@schema-engine/layout": "^0.5.0"
48
+ },
49
+ "devDependencies": {
50
+ "@babel/core": "^7.28.0",
51
+ "@babel/plugin-proposal-decorators": "^7.28.0",
52
+ "@babel/plugin-syntax-typescript": "^7.28.0",
53
+ "@babel/plugin-transform-class-properties": "^7.28.0",
54
+ "@ecopages/jsx": "0.12.0",
55
+ "@ecopages/radiant": "0.12.0",
56
+ "@ecopages/radiant-ui": "0.6.1",
57
+ "@ecopages/signals": "0.12.0",
58
+ "@ecopages/storybook-radiant-vite": "0.2.3",
59
+ "@ecopages/vite-plugin-radiant": "0.2.3",
60
+ "@rolldown/plugin-babel": "^0.2.1",
61
+ "@storybook/addon-a11y": "^10.5.10",
62
+ "@storybook/addon-docs": "^10.5.2",
63
+ "@storybook/addon-vitest": "^10.5.2",
64
+ "@testing-library/dom": "^10.4.1",
65
+ "@testing-library/jest-dom": "^6.9.1",
66
+ "@testing-library/user-event": "^14.6.6",
67
+ "@vitest/browser": "^4.0.13",
68
+ "@vitest/browser-playwright": "^4.0.13",
69
+ "esbuild": "^0.27.0",
70
+ "nitro": "^3.0.260311-beta",
71
+ "playwright": "^1.61.1",
72
+ "storybook": "^10.5.2",
73
+ "tsc-alias": "^1.8.16",
74
+ "typescript": "^5.9.3",
75
+ "vite": "^8.0.0",
76
+ "vitest": "^4.0.13",
77
+ "zod": "^4.0.17",
78
+ "@schema-engine/layout": "^0.5.0",
79
+ "@schema-engine/scripts": "^0.0.0",
80
+ "@schema-engine/forms": "^0.5.0"
81
+ },
82
+ "dependencies": {
83
+ "@ecopages/logger": "^0.2.3",
84
+ "country-flag-icons": "^1.6.20",
85
+ "imask": "^7.6.1",
86
+ "libphonenumber-js": "^1.13.12",
87
+ "@schema-engine/actions": "^0.5.0"
88
+ },
89
+ "exports": {
90
+ "./package.json": {
91
+ "import": "./package.json"
92
+ },
93
+ ".": {
94
+ "types": "./dist/index.d.ts",
95
+ "import": "./dist/index.js"
96
+ },
97
+ "./index.css": "./dist/index.css",
98
+ "./primitives": {
99
+ "types": "./dist/primitives.d.ts",
100
+ "import": "./dist/primitives.js"
101
+ },
102
+ "./registrations": {
103
+ "types": "./dist/registrations/elements.d.ts",
104
+ "import": "./dist/registrations/elements.js"
105
+ },
106
+ "./hooks": {
107
+ "types": "./dist/hooks/index.d.ts",
108
+ "import": "./dist/hooks/index.js"
109
+ },
110
+ "./contexts": {
111
+ "types": "./dist/contexts/index.d.ts",
112
+ "import": "./dist/contexts/index.js"
113
+ }
114
+ },
115
+ "scripts": {
116
+ "build:lib": "pnpm clean && pnpm build:files && pnpm build:types",
117
+ "build:files": "node ./build.ts",
118
+ "build:types": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json -f",
119
+ "watch:lib": "node ./build.ts --watch",
120
+ "clean": "rm -rf ./dist",
121
+ "test:all": "vitest run --project unit --project browser",
122
+ "storybook": "storybook dev -p 6007 --no-open",
123
+ "build-storybook": "storybook build -o ./storybook-static",
124
+ "check-types": "tsc --noEmit && tsc --noEmit -p tsconfig.test-types.json",
125
+ "test:storybook": "vitest run --project storybook"
126
+ }
6
127
  }
package/skill/SKILL.md ADDED
@@ -0,0 +1,79 @@
1
+ ---
2
+ name: schema-engine
3
+ description: |
4
+ Schema Engine is a common language for declarative interfaces: registrations
5
+ keyed by `$type`, actions that run in sequences, documents that are plain
6
+ data, and rendering from that data. Forms is its first domain. Use this
7
+ skill when an agent is asked to build, configure, validate, submit or extend
8
+ anything with @schema-engine/registry, @schema-engine/actions,
9
+ @schema-engine/layout, @schema-engine/forms, @schema-engine/forms-react or
10
+ @schema-engine/forms-radiant, or to write a form widget for React or Radiant.
11
+ ---
12
+
13
+ # Schema Engine
14
+
15
+ Schema Engine is one grammar for interfaces that are described as data. A team registers the pieces (elements, actions, rules, appearance axes) under a `$type`, and a document, plain JSON or YAML, names them. The engine checks the document against the registrations and the renderer draws what passed. Forms is the first domain: a framework-free engine owns validation, state and submission, and a renderer (React or Radiant) only draws the fields and bridges the user's controls into that state.
16
+
17
+ This file is the router. It defines the concepts once; the references assume them and never repeat them. Read a reference only when the task needs it.
18
+
19
+ ## Core concepts
20
+
21
+ - **registration**: `{ $type, schema, metadata, ... }`, where `$type` is the stable key, `schema` is any Standard Schema that describes its config, and `metadata` names it. Elements, recipes, actions, validation rules and appearance axes are all registrations.
22
+ - **registry**: a read-only registry, `createRegistry(kind, registrations)` from `@schema-engine/registry`, built once from a list. The last registration of a `$type` wins without a warning, which is how you replace a built-in.
23
+ - **document**: serializable data whose every node names a registration by `$type`. It is checked against the registrations at the boundary, so what is rendered or run has passed its schema.
24
+ - **action**: a registration with `execute` that runs on a trigger. Actions run as a sequence, an inner array is a parallel group, and a failure that sets `shouldContinue: false` stops what follows and cancels the group's siblings through their `signal`.
25
+
26
+ ## Forms concepts
27
+
28
+ - **config**: a form is plain data, a `FormConfig` of steps holding elements, each with a `$type`, a `name`, `rules` and `constraints`. `engine.defineForm()` (typed, in TypeScript) or `engine.validateForm(unknown)` (portable JSON) checks it against the engine's registrations and returns a frozen `NormalizedFormConfig` that the engine owns.
29
+ - **container**: the form's state, a `FormStateContainer` from `@schema-engine/forms/state-container`. It owns the nested values, errors, warnings, touched and dirty marks, field-array row ids and the validation in flight. Paths are dotted (`contacts.1.email`) and `FORM_ROOT` is the form itself. Every change is a command (`setValue`, `blur`, `reportNative`, `validate`, `submit`, `reset`, `fieldArray`), and every read is a pure selector over an immutable snapshot.
30
+ - **runtime**: `createFormRuntime` is the lifecycle every renderer shares. It builds the container and owns the submission, the wizard steps and their navigation, `form_mount` and `form_change`, and every action dispatch. A renderer supplies only what an element can do, such as focus.
31
+ - **issues and the formatter**: the engine reports what is wrong as an issue (`type`, `source`, `ruleId`, `params`, `message`) and never makes up text. `formatIssue`, a function of the application, turns an issue into the words shown, and falls back to the issue's own `message`.
32
+
33
+ Outcomes use one vocabulary: a check or a submission ends `passed`, `invalid` or `overtaken`. `overtaken` means an edit or a reset outran the check, so there is no verdict and nothing to show.
34
+
35
+ ## Packages
36
+
37
+ | Package | Role |
38
+ | ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- |
39
+ | `@schema-engine/registry` | The registration contract and read-only registries every package builds on, and `/yaml` for documents authored as YAML. Ships this router |
40
+ | `@schema-engine/actions` | Actions: `parseActions`, and a dispatcher that runs a sequence with parallel groups, cancellation and results |
41
+ | `@schema-engine/layout` | Domain-neutral grid, appearance axes, layout themes and the recipe protocol |
42
+ | `@schema-engine/forms` | The forms engine: config, validation, constraints, the container, the runtime |
43
+ | `@schema-engine/forms-react` | React renderer: `FormRenderer` and the hooks. You write the widgets; ready-made ones come from the optional shadcn registry |
44
+ | `@schema-engine/forms-radiant` | Radiant renderer: `se-form-instance`, `FormController`, widgets and recipes in the package |
45
+
46
+ A symbol has one import path. `@schema-engine/forms` has these entries: `.` (the engine, the runtime and the types), `/state-container` (the container and its selectors), `/csrf`, `/server-errors`, `/recipes`, `/recipes/built-in`, `/browser` (browser-side actions such as auto-save), `/testing` (conformance suites; they need vitest) and `/agent-tool` (experimental).
47
+
48
+ ## To do X, read Y
49
+
50
+ Each package ships this router as its own `skill/SKILL.md` and its references in its `skill/reference/` folder, so a reference is `node_modules/@schema-engine/<package>/skill/reference/<file>`, and any installed package has the router. Read the rows of the packages the project depends on and skip the others: a package that is not installed has no file. The deployed site serves the latest version of the router and of every reference at `/skill/`, with the references flat at `/skill/reference/<file>`.
51
+
52
+ | To do | Package | Reference |
53
+ | ---------------------------------------------------------------------------- | ------------------------------ | ------------------------------------ |
54
+ | Register something, build a registry, or read a YAML document | `@schema-engine/registry` | `reference/registry.md` |
55
+ | Parse, dispatch or cancel actions outside a form | `@schema-engine/actions` | `reference/actions.md` |
56
+ | Build a grid, an appearance axis or a layout theme | `@schema-engine/layout` | `reference/layout.md` |
57
+ | Create an engine, author a config, use the container or the runtime directly | `@schema-engine/forms` | `reference/forms.md` |
58
+ | Add a rule, explain a validation result, or translate messages | `@schema-engine/forms` | `reference/forms-validation.md` |
59
+ | Handle submit, server errors, CSRF or wizard steps | `@schema-engine/forms` | `reference/forms-submission.md` |
60
+ | Run code on a form event, or define a form action | `@schema-engine/forms` | `reference/forms-actions.md` |
61
+ | Render a form in React, or use its hooks | `@schema-engine/forms-react` | `reference/forms-react.md` |
62
+ | Write or change a React field widget, and test it | `@schema-engine/forms-react` | `reference/forms-react-widgets.md` |
63
+ | Render a form in Radiant, or reach the container from an element | `@schema-engine/forms-radiant` | `reference/forms-radiant.md` |
64
+ | Write or change a Radiant field widget, and test it | `@schema-engine/forms-radiant` | `reference/forms-radiant-widgets.md` |
65
+
66
+ ## Documentation map
67
+
68
+ The full documentation is at `/docs` on the deployed site. The LLM-exported corpus is `/llms.txt` (index) and `/docs-llm/<section>/<slug>.md` (page bodies).
69
+
70
+ | Section | Path prefix |
71
+ | ------------------------------ | ---------------------------------- |
72
+ | Schema Engine | `/docs/schema-engine/introduction` |
73
+ | `@schema-engine/registry` | `/docs/registry/overview` |
74
+ | `@schema-engine/actions` | `/docs/actions/overview` |
75
+ | `@schema-engine/forms` | `/docs/forms/overview` |
76
+ | `@schema-engine/forms-react` | `/docs/forms-react/overview` |
77
+ | `@schema-engine/forms-radiant` | `/docs/forms-radiant/overview` |
78
+ | `@schema-engine/layout` | `/docs/layout/overview` |
79
+ | Examples | `/docs/examples/overview` |
@@ -0,0 +1,243 @@
1
+ # Writing a Radiant widget
2
+
3
+ Task: add or change a field widget for the Radiant renderer, and test it. A widget is the render function of an element registration; the engine owns the state, so a widget only draws the field and the container hands the user's changes back. Registering it (`defineInput`) is in `forms.md`; the config shape and the container are there too.
4
+
5
+ A Radiant widget is a function component. It renders a `FormField` (the `se-field` host) around its label, its control and a `RuiFieldError`, and the control sits inside the field. The field finds its control by the `data-rui-control` marker on a native input (Radiant UI's inputs carry it) or by the tag of a custom host registered with `registerFieldControl`; it reads the control's value, writes the form's value back into it, and paints the label, error and ARIA state. The widget holds no state of its own.
6
+
7
+ ```tsx title="radiant/text-field.tsx"
8
+ import * as z from 'zod/mini';
9
+ import { RuiFieldError } from '@ecopages/radiant-ui/field';
10
+ import { RuiInput } from '@ecopages/radiant-ui/input';
11
+ import { RuiLabel } from '@ecopages/radiant-ui/label';
12
+ import { defineInput, BaseFieldSchema } from '@schema-engine/forms';
13
+ import { FormField } from '@schema-engine/forms-radiant/primitives';
14
+
15
+ const TextFieldSchema = z.extend(BaseFieldSchema, {
16
+ $type: z.literal('text'),
17
+ inputType: z._default(z.enum(['text', 'email']), 'text'),
18
+ });
19
+
20
+ function TextField(config: z.output<typeof TextFieldSchema>) {
21
+ return (
22
+ <FormField name={config.name}>
23
+ <RuiLabel htmlFor={config.id}>{config.label}</RuiLabel>
24
+ <RuiInput id={config.id} name={config.name} type={config.inputType} />
25
+ <RuiFieldError />
26
+ </FormField>
27
+ );
28
+ }
29
+
30
+ export const textFieldRegistration = defineInput({
31
+ $type: 'text',
32
+ schema: TextFieldSchema,
33
+ metadata: { name: 'Text', category: 'input' },
34
+ value: () => z.string(),
35
+ render: TextField,
36
+ });
37
+ ```
38
+
39
+ ## A custom host
40
+
41
+ A control that is not a native input is a custom host. It is a custom element registered with `registerFieldControl(tagName, { read, write, submission })` from `@ecopages/radiant-ui/form`: `read` returns the host's value, `write` sets it. When the user changes the value the host updates `value` first and then dispatches a bubbling, composed `input` event and, for a final change, a `change` event. A host must call `announceControlConnect(this)` when it connects, so a field that registered earlier seeds it with the value the form holds and reads its validity. Read and write the form from inside an element with a `FormController` (`forms-radiant.md`).
42
+
43
+ ```tsx title="radiant/stars-field.tsx"
44
+ import * as z from 'zod/mini';
45
+ import { customElement, prop } from '@ecopages/radiant';
46
+ import { FormAssociatedElement, type FormValue } from '@ecopages/radiant/form-associated-element';
47
+ import type { JSX_PROPS, JsxRenderable } from '@ecopages/jsx';
48
+ import { RuiFieldError } from '@ecopages/radiant-ui/field';
49
+ import { announceControlConnect, registerFieldControl } from '@ecopages/radiant-ui/form';
50
+ import { RuiLabel } from '@ecopages/radiant-ui/label';
51
+ import { defineInput, BaseFieldSchema } from '@schema-engine/forms';
52
+ import { FormField } from '@schema-engine/forms-radiant/primitives';
53
+
54
+ @customElement('example-stars')
55
+ export class ExampleStars extends FormAssociatedElement {
56
+ declare readonly [JSX_PROPS]?: Partial<Pick<ExampleStars, 'name' | 'value' | 'max'>>;
57
+
58
+ @prop({ type: Number, defaultValue: 0 }) value = 0;
59
+ @prop({ type: Number, defaultValue: 5 }) max = 5;
60
+
61
+ protected override formValue(): FormValue {
62
+ return String(this.value);
63
+ }
64
+
65
+ protected override restoreFormState(state: FormValue): void {
66
+ this.value = Number(state) || 0;
67
+ }
68
+
69
+ protected override onConnected(): void {
70
+ super.onConnected();
71
+ announceControlConnect(this);
72
+ }
73
+
74
+ private choose(value: number): void {
75
+ this.value = value;
76
+ this.dispatchEvent(new InputEvent('input', { bubbles: true, composed: true }));
77
+ this.dispatchEvent(new Event('change', { bubbles: true }));
78
+ }
79
+
80
+ override render(): JsxRenderable {
81
+ return (
82
+ <fieldset>
83
+ {Array.from({ length: this.max }, (_, index) => (
84
+ <button
85
+ type="button"
86
+ aria-pressed={this.value === index + 1}
87
+ aria-label={`${index + 1} stars`}
88
+ on:click={() => this.choose(index + 1)}
89
+ />
90
+ ))}
91
+ </fieldset>
92
+ );
93
+ }
94
+ }
95
+
96
+ registerFieldControl('example-stars', {
97
+ read: (host) => (host as ExampleStars).value,
98
+ write: (host, value) => {
99
+ (host as ExampleStars).value = Number(value) || 0;
100
+ },
101
+ submission: 'none',
102
+ });
103
+
104
+ const StarsFieldSchema = z.extend(BaseFieldSchema, {
105
+ $type: z.literal('stars'),
106
+ max: z._default(z.number().check(z.int(), z.positive()), 5),
107
+ });
108
+
109
+ function StarsField(config: z.output<typeof StarsFieldSchema>) {
110
+ return (
111
+ <FormField name={config.name}>
112
+ <RuiLabel htmlFor={config.id}>{config.label}</RuiLabel>
113
+ <ExampleStars name={config.name} max={config.max} />
114
+ <RuiFieldError />
115
+ </FormField>
116
+ );
117
+ }
118
+
119
+ export const starsFieldRegistration = defineInput({
120
+ $type: 'stars',
121
+ schema: StarsFieldSchema,
122
+ metadata: { name: 'Stars', category: 'input' },
123
+ value: (config) => z.number().check(z.int(), z.gte(1), z.lte(config.max)),
124
+ render: StarsField,
125
+ });
126
+ ```
127
+
128
+ ## Native facts
129
+
130
+ What a control says about its own value reaches the container as a native fact, and it counts in `validate` and `checkValidity`. A native `input`, `select` or `textarea` contributes one by default: Radiant UI's `rui-form` reports its `validity` for the controls inside its fields. A form-associated custom host (`FormAssociatedElement`) reports its own `validity`, so it contributes a fact only when it sets invalidity: the stars host is form-associated and stays valid because it never sets any. `registerFieldControl` can silence a host that does with `validity: () => undefined`. A fact follows the form's validation timing, and the rule's error wins the display when both fail.
131
+
132
+ ## Registering the widget
133
+
134
+ Register the widget with `defineInput` (`forms.md`) and pass it to the engine. A Radiant engine is `createRadiantFormEngine`, which is `createFormEngine` with the Radiant recipes bound; the packaged widgets are `schemaFormRegistrations` (`forms-radiant.md`).
135
+
136
+ ```ts title="radiant/engine.ts"
137
+ import { createRadiantFormEngine } from '@schema-engine/forms-radiant';
138
+ import { starsFieldRegistration } from './stars-field';
139
+ import { textFieldRegistration } from './text-field';
140
+
141
+ export const engine = createRadiantFormEngine({ elements: [textFieldRegistration, starsFieldRegistration] });
142
+ ```
143
+
144
+ Replacing a packaged widget is the same registration under the same `$type`, listed after it: the last one wins.
145
+
146
+ ## Testing a widget
147
+
148
+ Test a widget in a browser project, through the real renderer and the form's own container read through a `FormController`, not a copy of them. A widget test covers: `reset` and `setValue` write back into the control, the error is shown and announced (`aria-invalid`, `aria-describedby`), a native control's fact blocks the check, and a custom host takes its value from the form and gives its changes back.
149
+
150
+ ```ts title="radiant/text-field.browser.test.ts"
151
+ import { createRoot } from '@ecopages/jsx/client';
152
+ import { afterEach, expect, test } from 'vitest';
153
+ import { userEvent } from 'vitest/browser';
154
+ import { FormRenderer } from '@schema-engine/forms-radiant';
155
+ import { containerOf } from './controller';
156
+ import { engine } from './engine';
157
+
158
+ const profile = engine.defineForm({
159
+ id: 'profile',
160
+ steps: [
161
+ {
162
+ id: 'main',
163
+ title: 'Profile',
164
+ elements: [
165
+ {
166
+ $type: 'text',
167
+ id: 'email',
168
+ name: 'email',
169
+ label: 'Email',
170
+ inputType: 'email',
171
+ rules: [{ $type: 'required', message: 'Email is required' }],
172
+ },
173
+ { $type: 'stars', id: 'stars', name: 'stars', label: 'Stars' },
174
+ ],
175
+ },
176
+ ],
177
+ });
178
+
179
+ afterEach(() => document.body.replaceChildren());
180
+
181
+ async function mount() {
182
+ const host = document.createElement('div');
183
+ document.body.append(host);
184
+ createRoot(host).render(FormRenderer({ engine, config: profile }));
185
+ await expect.poll(() => host.querySelector('rui-form')).toBeTruthy();
186
+ const ruiForm = host.querySelector<HTMLElement>('rui-form')!;
187
+ await expect.poll(() => containerOf(ruiForm)).toBeTruthy();
188
+ return {
189
+ container: containerOf(ruiForm)!,
190
+ input: host.querySelector<HTMLInputElement>('input[name="email"]')!,
191
+ star: (count: number) => host.querySelector<HTMLElement>(`[aria-label="${count} stars"]`)!,
192
+ };
193
+ }
194
+
195
+ test('typing reaches the form, and reset and setValue in code write back into the control', async () => {
196
+ const { container, input } = await mount();
197
+
198
+ await userEvent.fill(input, 'ada@example.com');
199
+ expect(container.getValue('email')).toBe('ada@example.com');
200
+
201
+ container.reset();
202
+ await expect.poll(() => input.value).toBe('');
203
+ container.setValue('email', 'code@example.com');
204
+ await expect.poll(() => input.value).toBe('code@example.com');
205
+ });
206
+
207
+ test('the error is shown and announced on the control', async () => {
208
+ const { container, input } = await mount();
209
+
210
+ expect(await container.validate()).toEqual({ outcome: 'invalid' });
211
+
212
+ await expect.poll(() => input.getAttribute('aria-invalid')).toBe('true');
213
+ const describedBy = input.getAttribute('aria-describedby');
214
+ expect(document.getElementById(describedBy!)).toHaveTextContent('Email is required');
215
+ });
216
+
217
+ test('a native control reports what the browser says about its value', async () => {
218
+ const { container, input } = await mount();
219
+
220
+ await userEvent.fill(input, 'not an email');
221
+ await container.validate(['email']);
222
+
223
+ expect(container.getSnapshot().errors.email?.all).toContainEqual(
224
+ expect.objectContaining({ type: 'typeMismatch', source: 'native' }),
225
+ );
226
+ });
227
+
228
+ test('a custom host takes its value from the form and gives its changes back', async () => {
229
+ const { container, star } = await mount();
230
+
231
+ container.setValue('stars', 3);
232
+ await expect.poll(() => star(3).getAttribute('aria-pressed')).toBe('true');
233
+
234
+ await userEvent.click(star(5));
235
+ expect(container.getValue('stars')).toBe(5);
236
+ await expect.poll(() => star(5).getAttribute('aria-pressed')).toBe('true');
237
+
238
+ container.reset();
239
+ await expect.poll(() => star(5).getAttribute('aria-pressed')).toBe('false');
240
+ });
241
+ ```
242
+
243
+ Save your copy as `text-field.browser.test.ts`.
@@ -0,0 +1,72 @@
1
+ # @schema-engine/forms-radiant
2
+
3
+ The Radiant renderer. Widgets and recipes ship in the package (no copy step), and the elements are Radiant UI custom elements.
4
+
5
+ ## Setup
6
+
7
+ Install the peers (`@schema-engine/forms`, `@schema-engine/layout`, `@ecopages/radiant-ui`, `@ecopages/radiant`, `@ecopages/jsx`, `@ecopages/signals`, `zod`) and import one Radiant UI theme, its stylesheet and the package's once in the global stylesheet: `@ecopages/radiant-ui/themes/default`, `@ecopages/radiant-ui/styles.css` and `@schema-engine/forms-radiant/index.css`. `createRadiantFormEngine` is `createFormEngine` with the Radiant recipes bound, and the packaged widgets are `schemaFormRegistrations`.
8
+
9
+ ```ts title="radiant/app-engine.ts"
10
+ import { createRadiantFormEngine, schemaFormRegistrations } from '@schema-engine/forms-radiant';
11
+
12
+ export const engine = createRadiantFormEngine({ elements: schemaFormRegistrations });
13
+ ```
14
+
15
+ `FormRenderer({ engine, config, onSubmit })` renders the form, and the same config as React works. Its other props are `onChange`, `onAction`, `onActionResults(results, trigger)` (as in React; the same results reach the bubbling `se-action-results` event), `navigate(url)` (where a submit action's `redirectUrl` takes the page, `location.assign` by default) and `formatIssue`. Rendered on the server, the engine is not serialized into the markup, so the app assigns it to each `se-form-renderer`, before or after the renderer upgrades, and the hosts below follow it when it arrives or changes. A client-side router that swaps in a parsed page does not upgrade it first: bind in the router's `eco:before-swap` event, on `event.detail.newDocument`.
16
+
17
+ ```ts title="radiant/bind-engine.ts"
18
+ import type { FormRendererElement } from '@schema-engine/forms-radiant';
19
+ import { engine } from './app-engine';
20
+
21
+ export function bindEngine(root: ParentNode): void {
22
+ for (const renderer of root.querySelectorAll<FormRendererElement>('se-form-renderer')) {
23
+ renderer.engine = engine;
24
+ }
25
+ }
26
+ ```
27
+
28
+ A test of the binding builds the element and checks the renderer holds the engine:
29
+
30
+ ```ts title="radiant/bind-engine.browser.test.ts"
31
+ import { expect, test } from 'vitest';
32
+ import { engine } from './app-engine';
33
+ import { bindEngine } from './bind-engine';
34
+
35
+ test('the packaged engine registers the default widgets, and an app binds it to every renderer', () => {
36
+ expect(engine.getElement('input')?.$type).toBe('input');
37
+
38
+ const renderer = document.createElement('se-form-renderer');
39
+ document.body.append(renderer);
40
+ bindEngine(document);
41
+
42
+ expect((renderer as unknown as { engine: unknown }).engine).toBe(engine);
43
+ });
44
+ ```
45
+
46
+ Save your copy as `bind-engine.browser.test.ts`.
47
+
48
+ ## What the elements do
49
+
50
+ - `se-form-instance` creates the form's runtime and container from the normalized config, the engine and the defaults, mounts the runtime on connect and unmounts it on disconnect. A new config, engine or `defaultValues` is a new container; moving the instance keeps it. It keeps only what an element can do: focus, syncing the controls, the native submit with its CSRF field and the `se-action-*` events.
51
+ - `rui-form` is the control bridge. The instance hands it the container with `connect`; it sends each control's value and native validity into the container through `setValue`, `blur` and `reportNative`, presents the container's errors and warnings, and owns the submit event and `FormData`. Controls inside a `rui-field` dispatch native `input` and `change` events, which the bridge reads.
52
+ - `se-field` (`FormField`) is the field host: it follows the container's `disabled` and `required` for its path.
53
+
54
+ There is no global active form and no hooks: an element reads the form it belongs to with a `FormController`.
55
+
56
+ ## FormController
57
+
58
+ `new FormController(host)` resolves the nearest `se-form-instance` around a host element on each use, so it is safe across a config change. `container` is the form's `FormStateContainer`, `undefined` until the instance has one; every command and read goes through it. `select(selector)` returns a signal over a pure selector of the snapshot, and `formatIssue(issue, { path })` is the text the form shows for an issue.
59
+
60
+ ```ts title="radiant/controller.ts"
61
+ import { FormController } from '@schema-engine/forms-radiant';
62
+
63
+ export function containerOf(host: HTMLElement) {
64
+ return new FormController(host).container;
65
+ }
66
+ ```
67
+
68
+ Create a signal once, as a field, and read it inside an `effect`; it reads `undefined` while the form has no container. `FormEngineController` does the same for the nearest renderer's engine (`engine`, `ready`, `connect`, `disconnect`).
69
+
70
+ `controller.watchRuntime(callback)` calls back with the runtime of the form the element sits in, now and each time the form replaces it, for `registerFormAgentTool` (`forms.md`).
71
+
72
+ Writing a widget or a custom control host is in `forms-radiant-widgets.md`.