@fractal-io-technology/spec 0.0.0-stage → 2.2.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 (323) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +165 -2
  3. package/conformance/1.0/action-cases.json +227 -0
  4. package/conformance/1.0/bind-cases.json +768 -0
  5. package/conformance/1.0/cases.json +25139 -0
  6. package/conformance/1.0/layout/01-onboarding-start.json +95 -0
  7. package/conformance/1.0/layout/02-home-discover.json +177 -0
  8. package/conformance/1.0/layout/03-filters.json +186 -0
  9. package/conformance/1.0/layout/README.md +145 -0
  10. package/conformance/1.0/layout/REPORT.md +222 -0
  11. package/conformance/1.0/layout/alert.json +22 -0
  12. package/conformance/1.0/layout/iphone-14-15-pro-107.json +272 -0
  13. package/conformance/1.0/layout/live_status_on_its_way_4.ios.json +100 -0
  14. package/conformance/1.0/layout/lucy-booking-mobile.json +261 -0
  15. package/conformance/1.0/layout/lucy-booking-tablet.json +817 -0
  16. package/conformance/1.0/layout/lucy-booking.json +185 -0
  17. package/conformance/1.0/layout/lucy-header.json +84 -0
  18. package/conformance/1.0/layout/lucy-welcome-pin-mobile.json +31 -0
  19. package/conformance/1.0/layout/lucy-welcome-pin.json +31 -0
  20. package/conformance/1.0/layout/measured/android/01-onboarding-start.json +95 -0
  21. package/conformance/1.0/layout/measured/android/02-home-discover.json +177 -0
  22. package/conformance/1.0/layout/measured/android/03-filters.json +186 -0
  23. package/conformance/1.0/layout/measured/android/alert.json +22 -0
  24. package/conformance/1.0/layout/measured/android/iphone-14-15-pro-107.json +272 -0
  25. package/conformance/1.0/layout/measured/android/live_status_on_its_way_4.ios.json +100 -0
  26. package/conformance/1.0/layout/measured/android/lucy-booking-mobile.json +261 -0
  27. package/conformance/1.0/layout/measured/android/lucy-booking-tablet.json +817 -0
  28. package/conformance/1.0/layout/measured/android/lucy-booking.json +185 -0
  29. package/conformance/1.0/layout/measured/android/lucy-header.json +84 -0
  30. package/conformance/1.0/layout/measured/android/lucy-welcome-pin-mobile.json +31 -0
  31. package/conformance/1.0/layout/measured/android/lucy-welcome-pin.json +31 -0
  32. package/conformance/1.0/layout/measured/android/navigation-bar.json +46 -0
  33. package/conformance/1.0/layout/measured/android/probe-alert-banner-flutter.json +37 -0
  34. package/conformance/1.0/layout/measured/android/probe-alert-banner-regression-flutter.json +51 -0
  35. package/conformance/1.0/layout/measured/android/probe-alert-banner-stack-flutter.json +29 -0
  36. package/conformance/1.0/layout/measured/android/probe-card.json +35 -0
  37. package/conformance/1.0/layout/measured/android/probe-check-box-flutter.json +20 -0
  38. package/conformance/1.0/layout/measured/android/probe-container-height.json +21 -0
  39. package/conformance/1.0/layout/measured/android/probe-divider.json +55 -0
  40. package/conformance/1.0/layout/measured/android/probe-dropdown-menu-flutter.json +24 -0
  41. package/conformance/1.0/layout/measured/android/probe-dropdown-menu-max-lines.json +11 -0
  42. package/conformance/1.0/layout/measured/android/probe-expanded.json +31 -0
  43. package/conformance/1.0/layout/measured/android/probe-failed-decode.json +11 -0
  44. package/conformance/1.0/layout/measured/android/probe-flex.json +43 -0
  45. package/conformance/1.0/layout/measured/android/probe-grid-flutter.json +78 -0
  46. package/conformance/1.0/layout/measured/android/probe-grid.json +29 -0
  47. package/conformance/1.0/layout/measured/android/probe-icon-button-flutter.json +25 -0
  48. package/conformance/1.0/layout/measured/android/probe-icon-flutter.json +19 -0
  49. package/conformance/1.0/layout/measured/android/probe-icon-sizing.json +36 -0
  50. package/conformance/1.0/layout/measured/android/probe-image-flutter.json +24 -0
  51. package/conformance/1.0/layout/measured/android/probe-list-flutter.json +79 -0
  52. package/conformance/1.0/layout/measured/android/probe-list-regression-flutter.json +94 -0
  53. package/conformance/1.0/layout/measured/android/probe-list-row-flutter.json +86 -0
  54. package/conformance/1.0/layout/measured/android/probe-list-styles.json +45 -0
  55. package/conformance/1.0/layout/measured/android/probe-pin-input-parity.json +18 -0
  56. package/conformance/1.0/layout/measured/android/probe-progress-track-flutter.json +41 -0
  57. package/conformance/1.0/layout/measured/android/probe-progress-track-regression-flutter.json +57 -0
  58. package/conformance/1.0/layout/measured/android/probe-row-column.json +84 -0
  59. package/conformance/1.0/layout/measured/android/probe-scroll.json +54 -0
  60. package/conformance/1.0/layout/measured/android/probe-search-flutter.json +22 -0
  61. package/conformance/1.0/layout/measured/android/probe-size-constraints.json +20 -0
  62. package/conformance/1.0/layout/measured/android/probe-spacer.json +43 -0
  63. package/conformance/1.0/layout/measured/android/probe-stat-progress-track.json +14 -0
  64. package/conformance/1.0/layout/measured/android/probe-text-button-flutter.json +27 -0
  65. package/conformance/1.0/layout/measured/android/probe-text-field-flutter.json +28 -0
  66. package/conformance/1.0/layout/measured/android/probe-text.json +30 -0
  67. package/conformance/1.0/layout/measured/android/wallet-home.json +127 -0
  68. package/conformance/1.0/layout/measured/web/01-onboarding-start.json +95 -0
  69. package/conformance/1.0/layout/measured/web/02-home-discover.json +177 -0
  70. package/conformance/1.0/layout/measured/web/03-filters.json +186 -0
  71. package/conformance/1.0/layout/measured/web/alert.json +22 -0
  72. package/conformance/1.0/layout/measured/web/iphone-14-15-pro-107.json +272 -0
  73. package/conformance/1.0/layout/measured/web/live_status_on_its_way_4.ios.json +100 -0
  74. package/conformance/1.0/layout/measured/web/lucy-booking-mobile.json +261 -0
  75. package/conformance/1.0/layout/measured/web/lucy-booking-tablet.json +817 -0
  76. package/conformance/1.0/layout/measured/web/lucy-booking.json +185 -0
  77. package/conformance/1.0/layout/measured/web/lucy-header.json +84 -0
  78. package/conformance/1.0/layout/measured/web/lucy-welcome-pin-mobile.json +31 -0
  79. package/conformance/1.0/layout/measured/web/lucy-welcome-pin.json +31 -0
  80. package/conformance/1.0/layout/measured/web/navigation-bar.json +46 -0
  81. package/conformance/1.0/layout/measured/web/probe-alert-banner-flutter.json +37 -0
  82. package/conformance/1.0/layout/measured/web/probe-alert-banner-regression-flutter.json +51 -0
  83. package/conformance/1.0/layout/measured/web/probe-alert-banner-stack-flutter.json +29 -0
  84. package/conformance/1.0/layout/measured/web/probe-card.json +35 -0
  85. package/conformance/1.0/layout/measured/web/probe-check-box-flutter.json +20 -0
  86. package/conformance/1.0/layout/measured/web/probe-container-height.json +21 -0
  87. package/conformance/1.0/layout/measured/web/probe-divider.json +55 -0
  88. package/conformance/1.0/layout/measured/web/probe-dropdown-menu-flutter.json +24 -0
  89. package/conformance/1.0/layout/measured/web/probe-dropdown-menu-max-lines.json +11 -0
  90. package/conformance/1.0/layout/measured/web/probe-expanded.json +31 -0
  91. package/conformance/1.0/layout/measured/web/probe-failed-decode.json +15 -0
  92. package/conformance/1.0/layout/measured/web/probe-flex.json +43 -0
  93. package/conformance/1.0/layout/measured/web/probe-grid-flutter.json +78 -0
  94. package/conformance/1.0/layout/measured/web/probe-grid.json +29 -0
  95. package/conformance/1.0/layout/measured/web/probe-icon-button-flutter.json +25 -0
  96. package/conformance/1.0/layout/measured/web/probe-icon-flutter.json +19 -0
  97. package/conformance/1.0/layout/measured/web/probe-icon-sizing.json +36 -0
  98. package/conformance/1.0/layout/measured/web/probe-image-flutter.json +24 -0
  99. package/conformance/1.0/layout/measured/web/probe-list-flutter.json +79 -0
  100. package/conformance/1.0/layout/measured/web/probe-list-regression-flutter.json +94 -0
  101. package/conformance/1.0/layout/measured/web/probe-list-row-flutter.json +86 -0
  102. package/conformance/1.0/layout/measured/web/probe-list-styles.json +45 -0
  103. package/conformance/1.0/layout/measured/web/probe-pin-input-parity.json +18 -0
  104. package/conformance/1.0/layout/measured/web/probe-progress-track-flutter.json +41 -0
  105. package/conformance/1.0/layout/measured/web/probe-progress-track-regression-flutter.json +57 -0
  106. package/conformance/1.0/layout/measured/web/probe-row-column.json +84 -0
  107. package/conformance/1.0/layout/measured/web/probe-scroll.json +54 -0
  108. package/conformance/1.0/layout/measured/web/probe-search-flutter.json +22 -0
  109. package/conformance/1.0/layout/measured/web/probe-size-constraints.json +20 -0
  110. package/conformance/1.0/layout/measured/web/probe-spacer.json +43 -0
  111. package/conformance/1.0/layout/measured/web/probe-stat-progress-track.json +14 -0
  112. package/conformance/1.0/layout/measured/web/probe-text-button-flutter.json +27 -0
  113. package/conformance/1.0/layout/measured/web/probe-text-field-flutter.json +28 -0
  114. package/conformance/1.0/layout/measured/web/probe-text.json +30 -0
  115. package/conformance/1.0/layout/measured/web/wallet-home.json +127 -0
  116. package/conformance/1.0/layout/navigation-bar.json +46 -0
  117. package/conformance/1.0/layout/probe-alert-banner-flutter.json +37 -0
  118. package/conformance/1.0/layout/probe-alert-banner-regression-flutter.json +51 -0
  119. package/conformance/1.0/layout/probe-alert-banner-stack-flutter.json +29 -0
  120. package/conformance/1.0/layout/probe-card.json +35 -0
  121. package/conformance/1.0/layout/probe-check-box-flutter.json +20 -0
  122. package/conformance/1.0/layout/probe-container-height.json +21 -0
  123. package/conformance/1.0/layout/probe-divider.json +55 -0
  124. package/conformance/1.0/layout/probe-dropdown-menu-flutter.json +24 -0
  125. package/conformance/1.0/layout/probe-dropdown-menu-max-lines.json +11 -0
  126. package/conformance/1.0/layout/probe-expanded.json +31 -0
  127. package/conformance/1.0/layout/probe-failed-decode.json +13 -0
  128. package/conformance/1.0/layout/probe-flex.json +43 -0
  129. package/conformance/1.0/layout/probe-grid-flutter.json +78 -0
  130. package/conformance/1.0/layout/probe-grid.json +29 -0
  131. package/conformance/1.0/layout/probe-icon-button-flutter.json +25 -0
  132. package/conformance/1.0/layout/probe-icon-flutter.json +19 -0
  133. package/conformance/1.0/layout/probe-icon-sizing.json +36 -0
  134. package/conformance/1.0/layout/probe-image-flutter.json +24 -0
  135. package/conformance/1.0/layout/probe-list-flutter.json +79 -0
  136. package/conformance/1.0/layout/probe-list-regression-flutter.json +94 -0
  137. package/conformance/1.0/layout/probe-list-row-flutter.json +86 -0
  138. package/conformance/1.0/layout/probe-list-styles.json +45 -0
  139. package/conformance/1.0/layout/probe-pin-input-parity.json +18 -0
  140. package/conformance/1.0/layout/probe-progress-track-flutter.json +41 -0
  141. package/conformance/1.0/layout/probe-progress-track-regression-flutter.json +57 -0
  142. package/conformance/1.0/layout/probe-row-column.json +84 -0
  143. package/conformance/1.0/layout/probe-scroll.json +54 -0
  144. package/conformance/1.0/layout/probe-search-flutter.json +22 -0
  145. package/conformance/1.0/layout/probe-size-constraints.json +20 -0
  146. package/conformance/1.0/layout/probe-spacer.json +43 -0
  147. package/conformance/1.0/layout/probe-stat-progress-track.json +14 -0
  148. package/conformance/1.0/layout/probe-text-button-flutter.json +27 -0
  149. package/conformance/1.0/layout/probe-text-field-flutter.json +28 -0
  150. package/conformance/1.0/layout/probe-text.json +30 -0
  151. package/conformance/1.0/layout/probes/probe-alert-banner-flutter.json +296 -0
  152. package/conformance/1.0/layout/probes/probe-alert-banner-regression-flutter.json +1 -0
  153. package/conformance/1.0/layout/probes/probe-alert-banner-stack-flutter.json +219 -0
  154. package/conformance/1.0/layout/probes/probe-card.json +252 -0
  155. package/conformance/1.0/layout/probes/probe-check-box-flutter.json +86 -0
  156. package/conformance/1.0/layout/probes/probe-container-height.json +147 -0
  157. package/conformance/1.0/layout/probes/probe-divider.json +469 -0
  158. package/conformance/1.0/layout/probes/probe-dropdown-menu-flutter.json +293 -0
  159. package/conformance/1.0/layout/probes/probe-dropdown-menu-max-lines.json +54 -0
  160. package/conformance/1.0/layout/probes/probe-expanded.json +208 -0
  161. package/conformance/1.0/layout/probes/probe-failed-decode.json +96 -0
  162. package/conformance/1.0/layout/probes/probe-flex.json +353 -0
  163. package/conformance/1.0/layout/probes/probe-grid-flutter.json +584 -0
  164. package/conformance/1.0/layout/probes/probe-grid.json +209 -0
  165. package/conformance/1.0/layout/probes/probe-icon-button-flutter.json +143 -0
  166. package/conformance/1.0/layout/probes/probe-icon-flutter.json +89 -0
  167. package/conformance/1.0/layout/probes/probe-icon-sizing.json +219 -0
  168. package/conformance/1.0/layout/probes/probe-image-flutter.json +130 -0
  169. package/conformance/1.0/layout/probes/probe-list-flutter.json +732 -0
  170. package/conformance/1.0/layout/probes/probe-list-regression-flutter.json +815 -0
  171. package/conformance/1.0/layout/probes/probe-list-row-flutter.json +734 -0
  172. package/conformance/1.0/layout/probes/probe-list-styles.json +332 -0
  173. package/conformance/1.0/layout/probes/probe-pin-input-parity.json +87 -0
  174. package/conformance/1.0/layout/probes/probe-progress-track-flutter.json +298 -0
  175. package/conformance/1.0/layout/probes/probe-progress-track-regression-flutter.json +525 -0
  176. package/conformance/1.0/layout/probes/probe-row-column.json +784 -0
  177. package/conformance/1.0/layout/probes/probe-scroll.json +378 -0
  178. package/conformance/1.0/layout/probes/probe-search-flutter.json +138 -0
  179. package/conformance/1.0/layout/probes/probe-size-constraints.json +157 -0
  180. package/conformance/1.0/layout/probes/probe-spacer.json +291 -0
  181. package/conformance/1.0/layout/probes/probe-stat-progress-track.json +87 -0
  182. package/conformance/1.0/layout/probes/probe-text-button-flutter.json +163 -0
  183. package/conformance/1.0/layout/probes/probe-text-field-flutter.json +170 -0
  184. package/conformance/1.0/layout/probes/probe-text.json +202 -0
  185. package/conformance/1.0/layout/report/01-onboarding-start.md +49 -0
  186. package/conformance/1.0/layout/report/02-home-discover.md +98 -0
  187. package/conformance/1.0/layout/report/03-filters.md +85 -0
  188. package/conformance/1.0/layout/report/alert.md +27 -0
  189. package/conformance/1.0/layout/report/iphone-14-15-pro-107.md +47 -0
  190. package/conformance/1.0/layout/report/live_status_on_its_way_4.ios.md +60 -0
  191. package/conformance/1.0/layout/report/lucy-booking-mobile.md +81 -0
  192. package/conformance/1.0/layout/report/lucy-booking-tablet.md +279 -0
  193. package/conformance/1.0/layout/report/lucy-booking.md +117 -0
  194. package/conformance/1.0/layout/report/lucy-header.md +64 -0
  195. package/conformance/1.0/layout/report/lucy-welcome-pin-mobile.md +15 -0
  196. package/conformance/1.0/layout/report/lucy-welcome-pin.md +11 -0
  197. package/conformance/1.0/layout/report/navigation-bar.md +23 -0
  198. package/conformance/1.0/layout/report/probe-alert-banner-flutter.md +11 -0
  199. package/conformance/1.0/layout/report/probe-alert-banner-regression-flutter.md +27 -0
  200. package/conformance/1.0/layout/report/probe-alert-banner-stack-flutter.md +11 -0
  201. package/conformance/1.0/layout/report/probe-card.md +11 -0
  202. package/conformance/1.0/layout/report/probe-check-box-flutter.md +17 -0
  203. package/conformance/1.0/layout/report/probe-divider.md +11 -0
  204. package/conformance/1.0/layout/report/probe-dropdown-menu-flutter.md +15 -0
  205. package/conformance/1.0/layout/report/probe-dropdown-menu-max-lines.md +15 -0
  206. package/conformance/1.0/layout/report/probe-flex.md +23 -0
  207. package/conformance/1.0/layout/report/probe-grid-flutter.md +11 -0
  208. package/conformance/1.0/layout/report/probe-icon-button-flutter.md +11 -0
  209. package/conformance/1.0/layout/report/probe-icon-flutter.md +11 -0
  210. package/conformance/1.0/layout/report/probe-image-flutter.md +11 -0
  211. package/conformance/1.0/layout/report/probe-list-flutter.md +11 -0
  212. package/conformance/1.0/layout/report/probe-list-regression-flutter.md +27 -0
  213. package/conformance/1.0/layout/report/probe-list-row-flutter.md +11 -0
  214. package/conformance/1.0/layout/report/probe-pin-input-parity.md +11 -0
  215. package/conformance/1.0/layout/report/probe-progress-track-flutter.md +11 -0
  216. package/conformance/1.0/layout/report/probe-progress-track-regression-flutter.md +20 -0
  217. package/conformance/1.0/layout/report/probe-row-column.md +20 -0
  218. package/conformance/1.0/layout/report/probe-scroll.md +11 -0
  219. package/conformance/1.0/layout/report/probe-search-flutter.md +11 -0
  220. package/conformance/1.0/layout/report/probe-spacer.md +11 -0
  221. package/conformance/1.0/layout/report/probe-text-button-flutter.md +22 -0
  222. package/conformance/1.0/layout/report/probe-text-field-flutter.md +11 -0
  223. package/conformance/1.0/layout/report/probe-text.md +31 -0
  224. package/conformance/1.0/layout/report/wallet-home.md +35 -0
  225. package/conformance/1.0/layout/tolerance.json +12 -0
  226. package/conformance/1.0/layout/wallet-home.json +127 -0
  227. package/conformance/1.0/response-cases.json +228 -0
  228. package/conformance/1.0/screen-cases.json +198 -0
  229. package/conformance/1.0/screens/01-onboarding-start.json +994 -0
  230. package/conformance/1.0/screens/02-home-discover.json +2165 -0
  231. package/conformance/1.0/screens/03-filters.json +2290 -0
  232. package/conformance/1.0/screens/alert.json +231 -0
  233. package/conformance/1.0/screens/iphone-14-15-pro-107.json +3149 -0
  234. package/conformance/1.0/screens/live_status_on_its_way_4.ios.json +1313 -0
  235. package/conformance/1.0/screens/lucy-booking-mobile.json +3063 -0
  236. package/conformance/1.0/screens/lucy-booking-tablet.json +10371 -0
  237. package/conformance/1.0/screens/lucy-booking.json +2130 -0
  238. package/conformance/1.0/screens/lucy-header.json +1201 -0
  239. package/conformance/1.0/screens/lucy-welcome-pin-mobile.json +417 -0
  240. package/conformance/1.0/screens/lucy-welcome-pin.json +409 -0
  241. package/conformance/1.0/screens/navigation-bar.json +542 -0
  242. package/conformance/1.0/screens/wallet-home.json +1585 -0
  243. package/dist/action.d.ts +10616 -0
  244. package/dist/action.d.ts.map +1 -0
  245. package/dist/action.js +92 -0
  246. package/dist/action.js.map +1 -0
  247. package/dist/bind.d.ts +32 -0
  248. package/dist/bind.d.ts.map +1 -0
  249. package/dist/bind.js +102 -0
  250. package/dist/bind.js.map +1 -0
  251. package/dist/block-ref.d.ts +17 -0
  252. package/dist/block-ref.d.ts.map +1 -0
  253. package/dist/block-ref.js +17 -0
  254. package/dist/block-ref.js.map +1 -0
  255. package/dist/block-types.d.ts +26 -0
  256. package/dist/block-types.d.ts.map +1 -0
  257. package/dist/block-types.js +39 -0
  258. package/dist/block-types.js.map +1 -0
  259. package/dist/block.d.ts +20908 -0
  260. package/dist/block.d.ts.map +1 -0
  261. package/dist/block.js +81 -0
  262. package/dist/block.js.map +1 -0
  263. package/dist/blocks/display.d.ts +1915 -0
  264. package/dist/blocks/display.d.ts.map +1 -0
  265. package/dist/blocks/display.js +433 -0
  266. package/dist/blocks/display.js.map +1 -0
  267. package/dist/blocks/input.d.ts +7148 -0
  268. package/dist/blocks/input.d.ts.map +1 -0
  269. package/dist/blocks/input.js +855 -0
  270. package/dist/blocks/input.js.map +1 -0
  271. package/dist/blocks/layout.d.ts +2482 -0
  272. package/dist/blocks/layout.d.ts.map +1 -0
  273. package/dist/blocks/layout.js +266 -0
  274. package/dist/blocks/layout.js.map +1 -0
  275. package/dist/blocks/list.d.ts +980 -0
  276. package/dist/blocks/list.d.ts.map +1 -0
  277. package/dist/blocks/list.js +286 -0
  278. package/dist/blocks/list.js.map +1 -0
  279. package/dist/common.d.ts +958 -0
  280. package/dist/common.d.ts.map +1 -0
  281. package/dist/common.js +108 -0
  282. package/dist/common.js.map +1 -0
  283. package/dist/deprecated.d.ts +11 -0
  284. package/dist/deprecated.d.ts.map +1 -0
  285. package/dist/deprecated.js +26 -0
  286. package/dist/deprecated.js.map +1 -0
  287. package/dist/index.d.ts +20 -0
  288. package/dist/index.d.ts.map +1 -0
  289. package/dist/index.js +15 -0
  290. package/dist/index.js.map +1 -0
  291. package/dist/layout.d.ts +103 -0
  292. package/dist/layout.d.ts.map +1 -0
  293. package/dist/layout.js +113 -0
  294. package/dist/layout.js.map +1 -0
  295. package/dist/properties.d.ts +787 -0
  296. package/dist/properties.d.ts.map +1 -0
  297. package/dist/properties.js +447 -0
  298. package/dist/properties.js.map +1 -0
  299. package/dist/screen.d.ts +10494 -0
  300. package/dist/screen.d.ts.map +1 -0
  301. package/dist/screen.js +32 -0
  302. package/dist/screen.js.map +1 -0
  303. package/package.json +57 -4
  304. package/schema/1.0/action.json +109 -0
  305. package/schema/1.0/block.json +5886 -0
  306. package/schema/1.0/response.json +91 -0
  307. package/schema/1.0/screen.json +22 -0
  308. package/src/README.md +135 -0
  309. package/src/action.ts +119 -0
  310. package/src/bind.ts +114 -0
  311. package/src/block-ref.ts +18 -0
  312. package/src/block-types.ts +55 -0
  313. package/src/block.ts +116 -0
  314. package/src/blocks/display.ts +543 -0
  315. package/src/blocks/input.ts +1031 -0
  316. package/src/blocks/layout.ts +322 -0
  317. package/src/blocks/list.ts +355 -0
  318. package/src/common.ts +133 -0
  319. package/src/deprecated.ts +40 -0
  320. package/src/index.ts +31 -0
  321. package/src/layout.ts +194 -0
  322. package/src/properties.ts +516 -0
  323. package/src/screen.ts +39 -0
@@ -0,0 +1,787 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Reusable property schemas shared by several blocks. Each mirrors a Swift
4
+ * decoder under `fractal_core_blocks-ios/Sources/Properties`, `Sources/Utils`
5
+ * or `Sources/EventManagement`.
6
+ *
7
+ * Conventions (see src/README.md):
8
+ * - JSON keys are the snake_case names from the Swift `CodingKeys`.
9
+ * - `decodeIfPresent` / Swift optionals become `.optional()`; `decode` becomes
10
+ * required.
11
+ * - Swift `Double` is `z.number()`, Swift `Int` is an integer number.
12
+ * - Objects are strict: unknown keys are rejected even though the Swift
13
+ * decoders would ignore them, so that typos never reach a device unnoticed.
14
+ */
15
+ /** Swift `Int`: JSON numbers with a fractional part fail to decode. */
16
+ export declare const intSchema: z.ZodNumber;
17
+ /** Swift: FIOCoreColorProperty (Sources/Properties/FIOCoreColorProperty.swift). */
18
+ export declare const colorSchema: z.ZodObject<{
19
+ color: z.ZodString;
20
+ alpha: z.ZodOptional<z.ZodNumber>;
21
+ }, z.core.$strict>;
22
+ /**
23
+ * The 9-value alignment of the contract: a vertical part (`top`, `center`,
24
+ * `bottom`) and a horizontal part (`start`, `center`, `end`), with `center`
25
+ * alone for the middle. `start` / `end` follow the layout direction.
26
+ *
27
+ * Swift: FIOCoreAlignment (Sources/Properties/FIOCoreAlignment.swift), which
28
+ * also decodes the gradient points and the background image anchor
29
+ * (`unitPointSchema`). Decoding fails for any other string, which drops the
30
+ * whole block.
31
+ */
32
+ export declare const alignmentSchema: z.ZodEnum<{
33
+ top_start: "top_start";
34
+ top_center: "top_center";
35
+ top_end: "top_end";
36
+ center_start: "center_start";
37
+ center: "center";
38
+ center_end: "center_end";
39
+ bottom_start: "bottom_start";
40
+ bottom_center: "bottom_center";
41
+ bottom_end: "bottom_end";
42
+ }>;
43
+ /**
44
+ * Cross-axis alignment of a multi-child stack (`row`, `column`): `start`,
45
+ * `center` or `end` along the axis the stack does not lay out on (vertical for
46
+ * a row, horizontal for a column).
47
+ */
48
+ export declare const crossAxisAlignmentSchema: z.ZodEnum<{
49
+ center: "center";
50
+ start: "start";
51
+ end: "end";
52
+ }>;
53
+ /**
54
+ * Flutter `CrossAxisAlignment` of a `row` / `column` (contract 2.0): the stack enum plus `stretch`
55
+ * (a non-flex child is forced to the maximum cross extent when it is bounded) and `baseline` (row
56
+ * children aligned on their `text_baseline`; in a column it acts as `start`). Row and column only:
57
+ * `grid` and the list family keep `crossAxisAlignmentSchema`. Absent = `center`.
58
+ */
59
+ export declare const flexCrossAxisAlignmentSchema: z.ZodEnum<{
60
+ center: "center";
61
+ start: "start";
62
+ end: "end";
63
+ stretch: "stretch";
64
+ baseline: "baseline";
65
+ }>;
66
+ /**
67
+ * Flutter `MainAxisAlignment`: where a `row` / `column` places its children along the main axis.
68
+ * Negative free space counts as 0; `space_between` with fewer than 2 children is `start`;
69
+ * `space_around` / `space_evenly` with one child is `center`. Absent = `start`.
70
+ */
71
+ export declare const mainAxisAlignmentSchema: z.ZodEnum<{
72
+ center: "center";
73
+ start: "start";
74
+ end: "end";
75
+ space_between: "space_between";
76
+ space_around: "space_around";
77
+ space_evenly: "space_evenly";
78
+ }>;
79
+ /** Flutter `MainAxisSize`: `max` (the default) fills a bounded main axis and hugs an unbounded one; `min` hugs. */
80
+ export declare const mainAxisSizeSchema: z.ZodEnum<{
81
+ max: "max";
82
+ min: "min";
83
+ }>;
84
+ /** Flutter `VerticalDirection`: `down` (the default) lays a column out top to bottom, `up` bottom to top. */
85
+ export declare const verticalDirectionSchema: z.ZodEnum<{
86
+ down: "down";
87
+ up: "up";
88
+ }>;
89
+ /** Flutter `TextBaseline`, used by the `baseline` cross-axis alignment. Absent with `baseline` = `alphabetic`. */
90
+ export declare const textBaselineSchema: z.ZodEnum<{
91
+ alphabetic: "alphabetic";
92
+ ideographic: "ideographic";
93
+ }>;
94
+ /**
95
+ * Flutter `TextAlign` (contract 2.0): `start` (the default) / `end` follow the text direction,
96
+ * `left` / `right` are absolute, `justify` stretches every line but the last to the width.
97
+ * Shared by `text` and `text_field`. Swift: FIOCoreTextAlignment (Sources/Utils/FIOCoreTextAlignment.swift).
98
+ */
99
+ export declare const textAlignmentSchema: z.ZodEnum<{
100
+ center: "center";
101
+ start: "start";
102
+ end: "end";
103
+ left: "left";
104
+ right: "right";
105
+ justify: "justify";
106
+ }>;
107
+ /** Swift: FIOCoreLayoutShape, declared in Sources/Blocks/List/FIOCoreListViewModelBlock.swift. */
108
+ export declare const shapeSchema: z.ZodEnum<{
109
+ circle: "circle";
110
+ rect: "rect";
111
+ capsule: "capsule";
112
+ }>;
113
+ /** Swift: FIOCoreSizeBlock (Sources/Properties/FIOCoreSizeBlock.swift). */
114
+ export declare const sizeSchema: z.ZodObject<{
115
+ height: z.ZodOptional<z.ZodNumber>;
116
+ width: z.ZodOptional<z.ZodNumber>;
117
+ }, z.core.$strict>;
118
+ /**
119
+ * Edge anchors of every padding list: `padding`, `margin`, the text button and
120
+ * list row paddings, and `text_field.decoration.content_padding`. `start` /
121
+ * `end` follow the layout direction (Flutter `EdgeInsetsDirectional`); `left` /
122
+ * `right` are absolute (Flutter `EdgeInsets`); `horizontal` / `vertical` set
123
+ * both edges of an axis (Flutter `EdgeInsets.symmetric`). Resolution is shared
124
+ * by every consumer (Swift: `[FIOCorePaddingBlock].constant(for:)` in
125
+ * Sources/Properties/FIOCorePaddingBlock.swift): for each edge, a specific
126
+ * anchor (`top`, `bottom`, `start`, `end`, `left`, `right`) wins over its axis
127
+ * (`horizontal`, `vertical`), which wins over `"all"`; when a directional and an
128
+ * absolute anchor name the same physical edge (`start` and `left` in a
129
+ * left-to-right layout), they add up, as Flutter's mixed insets do. The first
130
+ * entry of a repeated anchor wins. The native decoders read `anchor` as a free
131
+ * `String` and silently ignore any other value.
132
+ */
133
+ export declare const edgeAnchorSchema: z.ZodEnum<{
134
+ start: "start";
135
+ end: "end";
136
+ left: "left";
137
+ right: "right";
138
+ top: "top";
139
+ bottom: "bottom";
140
+ horizontal: "horizontal";
141
+ vertical: "vertical";
142
+ all: "all";
143
+ }>;
144
+ /**
145
+ * One padding entry (Swift: FIOCorePaddingBlock, Sources/Properties/FIOCorePaddingBlock.swift).
146
+ * A present but empty array reads as no padding (`hasPadding` in
147
+ * Sources/Commons/FIOCoreCommonBlockViewModel.swift requires a non-empty array);
148
+ * an absent key means the same.
149
+ */
150
+ export declare const paddingEntrySchema: z.ZodObject<{
151
+ anchor: z.ZodEnum<{
152
+ start: "start";
153
+ end: "end";
154
+ left: "left";
155
+ right: "right";
156
+ top: "top";
157
+ bottom: "bottom";
158
+ horizontal: "horizontal";
159
+ vertical: "vertical";
160
+ all: "all";
161
+ }>;
162
+ constant: z.ZodNumber;
163
+ }, z.core.$strict>;
164
+ /** Swift: FIOCoreLayoutSizeBlock (Sources/Utils/FIOCoreLayoutSizeBlock.swift). */
165
+ export declare const layoutSizeSchema: z.ZodObject<{
166
+ constant: z.ZodOptional<z.ZodNumber>;
167
+ alignment: z.ZodOptional<z.ZodEnum<{
168
+ top_start: "top_start";
169
+ top_center: "top_center";
170
+ top_end: "top_end";
171
+ center_start: "center_start";
172
+ center: "center";
173
+ center_end: "center_end";
174
+ bottom_start: "bottom_start";
175
+ bottom_center: "bottom_center";
176
+ bottom_end: "bottom_end";
177
+ }>>;
178
+ }, z.core.$strict>;
179
+ /** Swift: FIOCoreLayoutDimensionBlock (Sources/Utils/FIOCoreLayoutDimensionBlock.swift). */
180
+ export declare const layoutDimensionSchema: z.ZodObject<{
181
+ max_width: z.ZodOptional<z.ZodObject<{
182
+ constant: z.ZodOptional<z.ZodNumber>;
183
+ alignment: z.ZodOptional<z.ZodEnum<{
184
+ top_start: "top_start";
185
+ top_center: "top_center";
186
+ top_end: "top_end";
187
+ center_start: "center_start";
188
+ center: "center";
189
+ center_end: "center_end";
190
+ bottom_start: "bottom_start";
191
+ bottom_center: "bottom_center";
192
+ bottom_end: "bottom_end";
193
+ }>>;
194
+ }, z.core.$strict>>;
195
+ max_height: z.ZodOptional<z.ZodObject<{
196
+ constant: z.ZodOptional<z.ZodNumber>;
197
+ alignment: z.ZodOptional<z.ZodEnum<{
198
+ top_start: "top_start";
199
+ top_center: "top_center";
200
+ top_end: "top_end";
201
+ center_start: "center_start";
202
+ center: "center";
203
+ center_end: "center_end";
204
+ bottom_start: "bottom_start";
205
+ bottom_center: "bottom_center";
206
+ bottom_end: "bottom_end";
207
+ }>>;
208
+ }, z.core.$strict>>;
209
+ }, z.core.$strict>;
210
+ /**
211
+ * Points of a gradient (`start`, `end`) and the background image `anchor`:
212
+ * the same 9 values as `alignmentSchema`.
213
+ */
214
+ export declare const unitPointSchema: z.ZodEnum<{
215
+ top_start: "top_start";
216
+ top_center: "top_center";
217
+ top_end: "top_end";
218
+ center_start: "center_start";
219
+ center: "center";
220
+ center_end: "center_end";
221
+ bottom_start: "bottom_start";
222
+ bottom_center: "bottom_center";
223
+ bottom_end: "bottom_end";
224
+ }>;
225
+ /** Swift: FIOCoreGradientStopProperty (Sources/Properties/FIOCoreGradientStopProperty.swift). */
226
+ export declare const gradientStopSchema: z.ZodObject<{
227
+ color: z.ZodObject<{
228
+ color: z.ZodString;
229
+ alpha: z.ZodOptional<z.ZodNumber>;
230
+ }, z.core.$strict>;
231
+ location: z.ZodOptional<z.ZodNumber>;
232
+ }, z.core.$strict>;
233
+ /**
234
+ * Swift: FIOCoreGradientProperty (Sources/Properties/FIOCoreGradientProperty.swift).
235
+ *
236
+ * `stops` is the only way to list the colors. A gradient without any color
237
+ * renders nothing, so the schema requires at least one stop.
238
+ */
239
+ export declare const gradientSchema: z.ZodObject<{
240
+ stops: z.ZodArray<z.ZodObject<{
241
+ color: z.ZodObject<{
242
+ color: z.ZodString;
243
+ alpha: z.ZodOptional<z.ZodNumber>;
244
+ }, z.core.$strict>;
245
+ location: z.ZodOptional<z.ZodNumber>;
246
+ }, z.core.$strict>>;
247
+ start: z.ZodOptional<z.ZodEnum<{
248
+ top_start: "top_start";
249
+ top_center: "top_center";
250
+ top_end: "top_end";
251
+ center_start: "center_start";
252
+ center: "center";
253
+ center_end: "center_end";
254
+ bottom_start: "bottom_start";
255
+ bottom_center: "bottom_center";
256
+ bottom_end: "bottom_end";
257
+ }>>;
258
+ end: z.ZodOptional<z.ZodEnum<{
259
+ top_start: "top_start";
260
+ top_center: "top_center";
261
+ top_end: "top_end";
262
+ center_start: "center_start";
263
+ center: "center";
264
+ center_end: "center_end";
265
+ bottom_start: "bottom_start";
266
+ bottom_center: "bottom_center";
267
+ bottom_end: "bottom_end";
268
+ }>>;
269
+ }, z.core.$strict>;
270
+ /** Swift: FIOCoreAxisPairProperty (Sources/Properties/FIOCoreAxisPairProperty.swift). */
271
+ export declare const axisPairSchema: z.ZodObject<{
272
+ x: z.ZodOptional<z.ZodNumber>;
273
+ y: z.ZodOptional<z.ZodNumber>;
274
+ }, z.core.$strict>;
275
+ /**
276
+ * Swift: FIOCoreBackgroundImageProperty (Sources/Properties/FIOCoreBackgroundImageProperty.swift).
277
+ * `content_mode` is a free `String` in Swift, but only `fill` and `fit` have
278
+ * an effect (`fioCoreAspect` in Sources/Utils/Extensions/View+FIOCoreBackground.swift).
279
+ */
280
+ export declare const backgroundImageSchema: z.ZodObject<{
281
+ image_url: z.ZodOptional<z.ZodString>;
282
+ content_mode: z.ZodOptional<z.ZodEnum<{
283
+ fill: "fill";
284
+ fit: "fit";
285
+ }>>;
286
+ scale: z.ZodOptional<z.ZodObject<{
287
+ x: z.ZodOptional<z.ZodNumber>;
288
+ y: z.ZodOptional<z.ZodNumber>;
289
+ }, z.core.$strict>>;
290
+ offset: z.ZodOptional<z.ZodObject<{
291
+ x: z.ZodOptional<z.ZodNumber>;
292
+ y: z.ZodOptional<z.ZodNumber>;
293
+ }, z.core.$strict>>;
294
+ anchor: z.ZodOptional<z.ZodEnum<{
295
+ top_start: "top_start";
296
+ top_center: "top_center";
297
+ top_end: "top_end";
298
+ center_start: "center_start";
299
+ center: "center";
300
+ center_end: "center_end";
301
+ bottom_start: "bottom_start";
302
+ bottom_center: "bottom_center";
303
+ bottom_end: "bottom_end";
304
+ }>>;
305
+ }, z.core.$strict>;
306
+ /**
307
+ * Swift: FIOCoreBlendMode (Sources/Utils/FIOCoreBlendMode.swift).
308
+ * iOS falls back to `normal` for unknown strings; the schema does not.
309
+ */
310
+ export declare const blendModeSchema: z.ZodEnum<{
311
+ color: "color";
312
+ normal: "normal";
313
+ multiply: "multiply";
314
+ screen: "screen";
315
+ overlay: "overlay";
316
+ darken: "darken";
317
+ lighten: "lighten";
318
+ color_dodge: "color_dodge";
319
+ color_burn: "color_burn";
320
+ hard_light: "hard_light";
321
+ soft_light: "soft_light";
322
+ difference: "difference";
323
+ exclusion: "exclusion";
324
+ hue: "hue";
325
+ saturation: "saturation";
326
+ luminosity: "luminosity";
327
+ }>;
328
+ /**
329
+ * Flutter `BoxFit`: how a picture is inscribed into its box (`image.fit`). Absent = `scale_down`
330
+ * (`paintImage` in `painting/decoration_image.dart`: `fit ??= centerSlice == null ? BoxFit.scaleDown
331
+ * : BoxFit.fill`; the contract has no `centerSlice`).
332
+ */
333
+ export declare const boxFitSchema: z.ZodEnum<{
334
+ fill: "fill";
335
+ contain: "contain";
336
+ cover: "cover";
337
+ fit_width: "fit_width";
338
+ fit_height: "fit_height";
339
+ none: "none";
340
+ scale_down: "scale_down";
341
+ }>;
342
+ /** Flutter `ImageRepeat` (`image.repeat`): `no_repeat` (the default), `repeat`, `repeat_x`, `repeat_y`. */
343
+ export declare const imageRepeatSchema: z.ZodEnum<{
344
+ no_repeat: "no_repeat";
345
+ repeat: "repeat";
346
+ repeat_x: "repeat_x";
347
+ repeat_y: "repeat_y";
348
+ }>;
349
+ /** Flutter `FilterQuality` (`image.filter_quality`): `none`, `low`, `medium` (the default), `high`. */
350
+ export declare const filterQualitySchema: z.ZodEnum<{
351
+ none: "none";
352
+ low: "low";
353
+ medium: "medium";
354
+ high: "high";
355
+ }>;
356
+ /**
357
+ * Flutter `BlendMode` of `image.color_blend_mode` (S22, image only): every value of
358
+ * `blendModeSchema` plus the Porter-Duff modes `src_in` (the default), `src_over`, `src_atop`,
359
+ * `dst_in`, `dst_over`, `src`, `dst`, `clear`, `xor`. `blendModeSchema` (container, overlays) is
360
+ * unchanged.
361
+ */
362
+ export declare const imageBlendModeSchema: z.ZodEnum<{
363
+ color: "color";
364
+ normal: "normal";
365
+ multiply: "multiply";
366
+ screen: "screen";
367
+ overlay: "overlay";
368
+ darken: "darken";
369
+ lighten: "lighten";
370
+ color_dodge: "color_dodge";
371
+ color_burn: "color_burn";
372
+ hard_light: "hard_light";
373
+ soft_light: "soft_light";
374
+ difference: "difference";
375
+ exclusion: "exclusion";
376
+ hue: "hue";
377
+ saturation: "saturation";
378
+ luminosity: "luminosity";
379
+ src_in: "src_in";
380
+ src_over: "src_over";
381
+ src_atop: "src_atop";
382
+ dst_in: "dst_in";
383
+ dst_over: "dst_over";
384
+ src: "src";
385
+ dst: "dst";
386
+ clear: "clear";
387
+ xor: "xor";
388
+ }>;
389
+ /** Swift: FIOCoreOverlayProperty (Sources/Properties/FIOCoreOverlayProperty.swift). */
390
+ export declare const overlaySchema: z.ZodObject<{
391
+ color: z.ZodOptional<z.ZodObject<{
392
+ color: z.ZodString;
393
+ alpha: z.ZodOptional<z.ZodNumber>;
394
+ }, z.core.$strict>>;
395
+ gradient: z.ZodOptional<z.ZodObject<{
396
+ stops: z.ZodArray<z.ZodObject<{
397
+ color: z.ZodObject<{
398
+ color: z.ZodString;
399
+ alpha: z.ZodOptional<z.ZodNumber>;
400
+ }, z.core.$strict>;
401
+ location: z.ZodOptional<z.ZodNumber>;
402
+ }, z.core.$strict>>;
403
+ start: z.ZodOptional<z.ZodEnum<{
404
+ top_start: "top_start";
405
+ top_center: "top_center";
406
+ top_end: "top_end";
407
+ center_start: "center_start";
408
+ center: "center";
409
+ center_end: "center_end";
410
+ bottom_start: "bottom_start";
411
+ bottom_center: "bottom_center";
412
+ bottom_end: "bottom_end";
413
+ }>>;
414
+ end: z.ZodOptional<z.ZodEnum<{
415
+ top_start: "top_start";
416
+ top_center: "top_center";
417
+ top_end: "top_end";
418
+ center_start: "center_start";
419
+ center: "center";
420
+ center_end: "center_end";
421
+ bottom_start: "bottom_start";
422
+ bottom_center: "bottom_center";
423
+ bottom_end: "bottom_end";
424
+ }>>;
425
+ }, z.core.$strict>>;
426
+ blend_mode: z.ZodOptional<z.ZodEnum<{
427
+ color: "color";
428
+ normal: "normal";
429
+ multiply: "multiply";
430
+ screen: "screen";
431
+ overlay: "overlay";
432
+ darken: "darken";
433
+ lighten: "lighten";
434
+ color_dodge: "color_dodge";
435
+ color_burn: "color_burn";
436
+ hard_light: "hard_light";
437
+ soft_light: "soft_light";
438
+ difference: "difference";
439
+ exclusion: "exclusion";
440
+ hue: "hue";
441
+ saturation: "saturation";
442
+ luminosity: "luminosity";
443
+ }>>;
444
+ opacity: z.ZodOptional<z.ZodNumber>;
445
+ }, z.core.$strict>;
446
+ /**
447
+ * Flutter `BoxConstraints`: bounds of a box. `size.width` / `size.height`
448
+ * tighten them (an exact size, clamped into these bounds). Every value is
449
+ * non-negative.
450
+ */
451
+ export declare const boxConstraintsSchema: z.ZodObject<{
452
+ min_width: z.ZodOptional<z.ZodNumber>;
453
+ max_width: z.ZodOptional<z.ZodNumber>;
454
+ min_height: z.ZodOptional<z.ZodNumber>;
455
+ max_height: z.ZodOptional<z.ZodNumber>;
456
+ }, z.core.$strict>;
457
+ /**
458
+ * Flutter `BorderRadiusDirectional`: one radius per corner, overriding
459
+ * `corner_radius` for that corner. `start` / `end` follow the layout direction.
460
+ */
461
+ export declare const cornerRadiiSchema: z.ZodObject<{
462
+ top_start: z.ZodOptional<z.ZodNumber>;
463
+ top_end: z.ZodOptional<z.ZodNumber>;
464
+ bottom_start: z.ZodOptional<z.ZodNumber>;
465
+ bottom_end: z.ZodOptional<z.ZodNumber>;
466
+ }, z.core.$strict>;
467
+ /** Flutter `Clip`. `none` (the default) lets the child overflow the shape. */
468
+ export declare const clipBehaviorSchema: z.ZodEnum<{
469
+ none: "none";
470
+ hard_edge: "hard_edge";
471
+ anti_alias: "anti_alias";
472
+ anti_alias_with_save_layer: "anti_alias_with_save_layer";
473
+ }>;
474
+ /**
475
+ * Flutter `ScrollPhysics` of a scrollable block (`single_child_scroll`, `grid`): `never` = no user
476
+ * scrolling; `bouncing` / `clamping` = the platform's closest overscroll. Absent = the platform default.
477
+ */
478
+ export declare const scrollPhysicsSchema: z.ZodEnum<{
479
+ never: "never";
480
+ bouncing: "bouncing";
481
+ clamping: "clamping";
482
+ }>;
483
+ /** Flutter `ScrollViewKeyboardDismissBehavior` (`single_child_scroll`, `grid`): `manual` (the default) or `on_drag`. */
484
+ export declare const keyboardDismissBehaviorSchema: z.ZodEnum<{
485
+ manual: "manual";
486
+ on_drag: "on_drag";
487
+ }>;
488
+ /**
489
+ * Flutter `MaterialTapTargetSize` of a button: `padded` (the default on Android and iOS,
490
+ * `ThemeData.materialTapTargetSize`) makes the layout frame at least 48 × 48
491
+ * (`kMinInteractiveDimension`, plus the visual density adjustment) with the visual centered and
492
+ * the whole frame tappable; `shrink_wrap` keeps the frame at the visual size.
493
+ */
494
+ export declare const tapTargetSizeSchema: z.ZodEnum<{
495
+ padded: "padded";
496
+ shrink_wrap: "shrink_wrap";
497
+ }>;
498
+ /**
499
+ * Flutter `VisualDensity` of a button: `standard` (0, 0; the default), `comfortable` (-1, -1) or
500
+ * `compact` (-2, -2). Each step is 4 points (`baseSizeAdjustment`): it is added to the minimum size,
501
+ * to the vertical padding and to the padded tap target; the horizontal padding never shrinks.
502
+ */
503
+ export declare const visualDensitySchema: z.ZodEnum<{
504
+ standard: "standard";
505
+ comfortable: "comfortable";
506
+ compact: "compact";
507
+ }>;
508
+ /**
509
+ * Flutter `Size` of a `ButtonStyle` (`minimumSize`, `maximumSize`): a width and a height in
510
+ * points, each >= 0. Unlike Flutter, either axis may be left out; what a left-out axis means is
511
+ * set by the key that uses it.
512
+ */
513
+ export declare const buttonSizeSchema: z.ZodObject<{
514
+ width: z.ZodOptional<z.ZodNumber>;
515
+ height: z.ZodOptional<z.ZodNumber>;
516
+ }, z.core.$strict>;
517
+ /**
518
+ * A paint-only 2D transform (a subset of Flutter's `Matrix4`), composed
519
+ * translate, then rotate, then scale, around the transform alignment.
520
+ */
521
+ export declare const transformSchema: z.ZodObject<{
522
+ rotation_degrees: z.ZodOptional<z.ZodNumber>;
523
+ scale_x: z.ZodOptional<z.ZodNumber>;
524
+ scale_y: z.ZodOptional<z.ZodNumber>;
525
+ translate_x: z.ZodOptional<z.ZodNumber>;
526
+ translate_y: z.ZodOptional<z.ZodNumber>;
527
+ }, z.core.$strict>;
528
+ /**
529
+ * Swift: FIOCoreShadow (declared in Sources/Blocks/Card/FIOCoreCardDataBlock.swift).
530
+ * `x` and `y` are Swift `Int`, so fractional offsets fail to decode.
531
+ */
532
+ export declare const shadowSchema: z.ZodObject<{
533
+ radius: z.ZodOptional<z.ZodNumber>;
534
+ x: z.ZodOptional<z.ZodNumber>;
535
+ y: z.ZodOptional<z.ZodNumber>;
536
+ color: z.ZodOptional<z.ZodObject<{
537
+ color: z.ZodString;
538
+ alpha: z.ZodOptional<z.ZodNumber>;
539
+ }, z.core.$strict>>;
540
+ }, z.core.$strict>;
541
+ /** Swift: FIOCoreBorder (declared in Sources/Blocks/Card/FIOCoreCardDataBlock.swift). */
542
+ export declare const borderSchema: z.ZodObject<{
543
+ color: z.ZodObject<{
544
+ color: z.ZodString;
545
+ alpha: z.ZodOptional<z.ZodNumber>;
546
+ }, z.core.$strict>;
547
+ width: z.ZodOptional<z.ZodNumber>;
548
+ }, z.core.$strict>;
549
+ /**
550
+ * Swift: FIOCoreTextFieldBorderType (Sources/Utils/FIOCoreTextFieldBorderType.swift).
551
+ * iOS falls back to `none` for unknown strings; the schema does not.
552
+ */
553
+ export declare const textFieldBorderTypeSchema: z.ZodEnum<{
554
+ none: "none";
555
+ outline: "outline";
556
+ underline: "underline";
557
+ }>;
558
+ /** Swift: FIOCoreTextFieldBorder (Sources/Utils/FIOCoreTextFieldBorder.swift). */
559
+ export declare const textFieldBorderSchema: z.ZodObject<{
560
+ type: z.ZodOptional<z.ZodEnum<{
561
+ none: "none";
562
+ outline: "outline";
563
+ underline: "underline";
564
+ }>>;
565
+ color: z.ZodOptional<z.ZodObject<{
566
+ color: z.ZodString;
567
+ alpha: z.ZodOptional<z.ZodNumber>;
568
+ }, z.core.$strict>>;
569
+ width: z.ZodOptional<z.ZodNumber>;
570
+ corner_radius: z.ZodOptional<z.ZodNumber>;
571
+ }, z.core.$strict>;
572
+ /** Swift: FIOCoreFontWeight (Sources/Utils/FIOCoreFontWeight.swift). Every value is snake_case. */
573
+ export declare const fontWeightSchema: z.ZodEnum<{
574
+ medium: "medium";
575
+ ultra_light: "ultra_light";
576
+ thin: "thin";
577
+ light: "light";
578
+ regular: "regular";
579
+ semi_bold: "semi_bold";
580
+ bold: "bold";
581
+ heavy: "heavy";
582
+ black: "black";
583
+ }>;
584
+ /** Swift: FIOCoreFontDesign (Sources/Utils/FIOCoreFontDesign.swift). */
585
+ export declare const fontDesignSchema: z.ZodEnum<{
586
+ default: "default";
587
+ rounded: "rounded";
588
+ monospaced: "monospaced";
589
+ serif: "serif";
590
+ }>;
591
+ /** Flutter `TextDecoration`; `overline` added in 2.0. Swift: FIOCoreTextDecoration (Sources/Utils/FIOCoreTextDecoration.swift). */
592
+ export declare const textDecorationSchema: z.ZodEnum<{
593
+ none: "none";
594
+ underline: "underline";
595
+ line_through: "line_through";
596
+ overline: "overline";
597
+ }>;
598
+ /** Flutter `TextDecorationStyle`: how the `decoration` line is drawn. Absent = `solid`. */
599
+ export declare const textDecorationStyleSchema: z.ZodEnum<{
600
+ solid: "solid";
601
+ double: "double";
602
+ dotted: "dotted";
603
+ dashed: "dashed";
604
+ wavy: "wavy";
605
+ }>;
606
+ /** Flutter `TextLeadingDistribution`: how the extra leading of `height` is split above and below the glyphs. */
607
+ export declare const textLeadingDistributionSchema: z.ZodEnum<{
608
+ proportional: "proportional";
609
+ even: "even";
610
+ }>;
611
+ /** Swift: FIOCoreTextShadow (Sources/Utils/FIOCoreTextShadow.swift). */
612
+ export declare const textShadowSchema: z.ZodObject<{
613
+ color: z.ZodOptional<z.ZodObject<{
614
+ color: z.ZodString;
615
+ alpha: z.ZodOptional<z.ZodNumber>;
616
+ }, z.core.$strict>>;
617
+ blur_radius: z.ZodOptional<z.ZodNumber>;
618
+ offset_x: z.ZodOptional<z.ZodNumber>;
619
+ offset_y: z.ZodOptional<z.ZodNumber>;
620
+ }, z.core.$strict>;
621
+ /**
622
+ * Flutter `TextStyle` (contract 2.0), shared by every block that styles text (`text`, `text_field`,
623
+ * `text_button`, `pin_input`, `check_box`, `search`, ...). Swift: FIOCoreTextStyleBlock
624
+ * (Sources/Utils/FIOCoreTextStyleBlock.swift). The text color key is `foreground_color` on the wire.
625
+ * Defaults (S7): `font_size` 14 (Flutter's `getParagraphStyle` default); `height` absent = the font's
626
+ * own metrics; `decoration_style` `solid`; `decoration_color` = the text color; `decoration_thickness`
627
+ * absent = the font's (it is a multiplier of it). `word_spacing` and every `shadows` entry are drawn;
628
+ * a shadow entry defaults to opaque black, offset 0, blur 0 (Flutter `Shadow`).
629
+ * `line_height` (points) is an extension, deprecated in favor of `height` and still honored when
630
+ * `height` is absent.
631
+ */
632
+ export declare const textStyleSchema: z.ZodObject<{
633
+ foreground_color: z.ZodOptional<z.ZodObject<{
634
+ color: z.ZodString;
635
+ alpha: z.ZodOptional<z.ZodNumber>;
636
+ }, z.core.$strict>>;
637
+ font_size: z.ZodOptional<z.ZodNumber>;
638
+ font_weight: z.ZodOptional<z.ZodEnum<{
639
+ medium: "medium";
640
+ ultra_light: "ultra_light";
641
+ thin: "thin";
642
+ light: "light";
643
+ regular: "regular";
644
+ semi_bold: "semi_bold";
645
+ bold: "bold";
646
+ heavy: "heavy";
647
+ black: "black";
648
+ }>>;
649
+ font_family: z.ZodOptional<z.ZodString>;
650
+ font_family_fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
651
+ font_design: z.ZodOptional<z.ZodEnum<{
652
+ default: "default";
653
+ rounded: "rounded";
654
+ monospaced: "monospaced";
655
+ serif: "serif";
656
+ }>>;
657
+ italic: z.ZodOptional<z.ZodBoolean>;
658
+ letter_spacing: z.ZodOptional<z.ZodNumber>;
659
+ word_spacing: z.ZodOptional<z.ZodNumber>;
660
+ height: z.ZodOptional<z.ZodNumber>;
661
+ leading_distribution: z.ZodOptional<z.ZodEnum<{
662
+ proportional: "proportional";
663
+ even: "even";
664
+ }>>;
665
+ line_height: z.ZodOptional<z.ZodNumber>;
666
+ background_color: z.ZodOptional<z.ZodObject<{
667
+ color: z.ZodString;
668
+ alpha: z.ZodOptional<z.ZodNumber>;
669
+ }, z.core.$strict>>;
670
+ decoration: z.ZodOptional<z.ZodEnum<{
671
+ none: "none";
672
+ underline: "underline";
673
+ line_through: "line_through";
674
+ overline: "overline";
675
+ }>>;
676
+ decoration_color: z.ZodOptional<z.ZodObject<{
677
+ color: z.ZodString;
678
+ alpha: z.ZodOptional<z.ZodNumber>;
679
+ }, z.core.$strict>>;
680
+ decoration_style: z.ZodOptional<z.ZodEnum<{
681
+ solid: "solid";
682
+ double: "double";
683
+ dotted: "dotted";
684
+ dashed: "dashed";
685
+ wavy: "wavy";
686
+ }>>;
687
+ decoration_thickness: z.ZodOptional<z.ZodNumber>;
688
+ shadows: z.ZodOptional<z.ZodArray<z.ZodObject<{
689
+ color: z.ZodOptional<z.ZodObject<{
690
+ color: z.ZodString;
691
+ alpha: z.ZodOptional<z.ZodNumber>;
692
+ }, z.core.$strict>>;
693
+ blur_radius: z.ZodOptional<z.ZodNumber>;
694
+ offset_x: z.ZodOptional<z.ZodNumber>;
695
+ offset_y: z.ZodOptional<z.ZodNumber>;
696
+ }, z.core.$strict>>>;
697
+ }, z.core.$strict>;
698
+ /**
699
+ * Swift: FIOCoreTextOverflow (Sources/Utils/FIOCoreTextOverflow.swift).
700
+ * iOS falls back to `clip` for unknown strings; the schema does not.
701
+ */
702
+ export declare const textOverflowSchema: z.ZodEnum<{
703
+ clip: "clip";
704
+ ellipsis: "ellipsis";
705
+ fade: "fade";
706
+ visible: "visible";
707
+ }>;
708
+ /**
709
+ * Swift: FIOCoreTextDirection (Sources/Utils/FIOCoreTextDirection.swift).
710
+ * iOS falls back to `ltr` for unknown strings; the schema does not.
711
+ */
712
+ export declare const textDirectionSchema: z.ZodEnum<{
713
+ ltr: "ltr";
714
+ rtl: "rtl";
715
+ }>;
716
+ /** Flutter `TextWidthBasis`: `parent` (the default) or `longest_line` (exactly the longest wrapped line). */
717
+ export declare const textWidthBasisSchema: z.ZodEnum<{
718
+ parent: "parent";
719
+ longest_line: "longest_line";
720
+ }>;
721
+ /** Flutter `TextHeightBehavior`: whether `height` applies above the first line and below the last (both default true). */
722
+ export declare const textHeightBehaviorSchema: z.ZodObject<{
723
+ apply_height_to_first_ascent: z.ZodOptional<z.ZodBoolean>;
724
+ apply_height_to_last_descent: z.ZodOptional<z.ZodBoolean>;
725
+ }, z.core.$strict>;
726
+ /**
727
+ * The `Text` widget's own parameters (contract 2.0). Swift: FIOCoreTextConfigBlock
728
+ * (Sources/Utils/FIOCoreTextConfigBlock.swift). Defaults (S7): `soft_wrap` true, `overflow` `clip`,
729
+ * `max_lines` none, `text_direction` ambient, `text_width_basis` `parent`.
730
+ */
731
+ export declare const textConfigSchema: z.ZodObject<{
732
+ max_lines: z.ZodOptional<z.ZodNumber>;
733
+ overflow: z.ZodOptional<z.ZodEnum<{
734
+ clip: "clip";
735
+ ellipsis: "ellipsis";
736
+ fade: "fade";
737
+ visible: "visible";
738
+ }>>;
739
+ soft_wrap: z.ZodOptional<z.ZodBoolean>;
740
+ text_direction: z.ZodOptional<z.ZodEnum<{
741
+ ltr: "ltr";
742
+ rtl: "rtl";
743
+ }>>;
744
+ locale: z.ZodOptional<z.ZodString>;
745
+ text_scaler: z.ZodOptional<z.ZodNumber>;
746
+ semantics_label: z.ZodOptional<z.ZodString>;
747
+ semantics_identifier: z.ZodOptional<z.ZodString>;
748
+ text_width_basis: z.ZodOptional<z.ZodEnum<{
749
+ parent: "parent";
750
+ longest_line: "longest_line";
751
+ }>>;
752
+ text_height_behavior: z.ZodOptional<z.ZodObject<{
753
+ apply_height_to_first_ascent: z.ZodOptional<z.ZodBoolean>;
754
+ apply_height_to_last_descent: z.ZodOptional<z.ZodBoolean>;
755
+ }, z.core.$strict>>;
756
+ }, z.core.$strict>;
757
+ /** Swift: FIOCoreEventType (Sources/EventManagement/FIOCoreBlockEventDefinition.swift). */
758
+ export declare const eventTypeSchema: z.ZodEnum<{
759
+ on_tap: "on_tap";
760
+ on_large_tap: "on_large_tap";
761
+ on_double_tap: "on_double_tap";
762
+ on_change: "on_change";
763
+ on_complete: "on_complete";
764
+ }>;
765
+ type EventDataValue = string | number | boolean | EventDataValue[] | {
766
+ [key: string]: EventDataValue;
767
+ };
768
+ /**
769
+ * Values iOS can decode into `event_data` (`FIOCoreAnyDecodable`): numbers,
770
+ * strings, booleans, arrays and objects. JSON `null` is not supported and
771
+ * makes iOS drop the whole `event_data`.
772
+ */
773
+ export declare const eventDataValueSchema: z.ZodType<EventDataValue>;
774
+ /** Swift: FIOCoreBlockEventDefinition (Sources/EventManagement/FIOCoreBlockEventDefinition.swift). */
775
+ export declare const eventSchema: z.ZodObject<{
776
+ event_id: z.ZodString;
777
+ event_type: z.ZodEnum<{
778
+ on_tap: "on_tap";
779
+ on_large_tap: "on_large_tap";
780
+ on_double_tap: "on_double_tap";
781
+ on_change: "on_change";
782
+ on_complete: "on_complete";
783
+ }>;
784
+ event_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<EventDataValue, unknown, z.core.$ZodTypeInternals<EventDataValue, unknown>>>>;
785
+ }, z.core.$strict>;
786
+ export {};
787
+ //# sourceMappingURL=properties.d.ts.map