@flipova/foundation 2.4.4 → 3.0.0-alpha.1

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 (402) hide show
  1. package/CHANGES.md +66 -0
  2. package/COMPONENTS.md +102 -0
  3. package/DOCS.md +261 -0
  4. package/LICENSE +1 -1
  5. package/README.md +169 -118
  6. package/components/contract/index.ts +3 -0
  7. package/components/contract/recipes/accordion.ts +42 -0
  8. package/components/contract/recipes/avatar.ts +41 -0
  9. package/components/contract/recipes/badge.ts +46 -0
  10. package/components/contract/recipes/button.ts +58 -0
  11. package/components/contract/recipes/calendar.ts +118 -0
  12. package/components/contract/recipes/card.ts +21 -0
  13. package/components/contract/recipes/checkbox.ts +33 -0
  14. package/components/contract/recipes/divider.ts +9 -0
  15. package/components/contract/recipes/fab.ts +31 -0
  16. package/components/contract/recipes/feedback.ts +66 -0
  17. package/components/contract/recipes/formcontrol.ts +16 -0
  18. package/components/contract/recipes/heading.ts +16 -0
  19. package/components/contract/recipes/icon.ts +40 -0
  20. package/components/contract/recipes/index.ts +30 -0
  21. package/components/contract/recipes/input.ts +39 -0
  22. package/components/contract/recipes/layout.ts +44 -0
  23. package/components/contract/recipes/link.ts +6 -0
  24. package/components/contract/recipes/modal.ts +40 -0
  25. package/components/contract/recipes/overlay.ts +250 -0
  26. package/components/contract/recipes/progress.ts +27 -0
  27. package/components/contract/recipes/radio.ts +39 -0
  28. package/components/contract/recipes/select.ts +63 -0
  29. package/components/contract/recipes/skeleton.ts +25 -0
  30. package/components/contract/recipes/slider.ts +50 -0
  31. package/components/contract/recipes/spinner.ts +12 -0
  32. package/components/contract/recipes/switch.ts +26 -0
  33. package/components/contract/recipes/table.ts +37 -0
  34. package/components/contract/recipes/tabs.ts +31 -0
  35. package/components/contract/recipes/text.ts +12 -0
  36. package/components/contract/recipes/textarea.ts +37 -0
  37. package/components/contract/recipes/util.ts +15 -0
  38. package/components/contract/theme.ts +116 -0
  39. package/components/contract/types.ts +598 -0
  40. package/components/providers/css-vars.ts +43 -0
  41. package/components/providers/flipova/components/Accordion.tsx +41 -0
  42. package/components/providers/flipova/components/ActionSheet.tsx +34 -0
  43. package/components/providers/flipova/components/Alert.tsx +15 -0
  44. package/components/providers/flipova/components/AlertDialog.tsx +31 -0
  45. package/components/providers/flipova/components/Avatar.tsx +30 -0
  46. package/components/providers/flipova/components/Badge.tsx +14 -0
  47. package/components/providers/flipova/components/BottomSheet.tsx +24 -0
  48. package/components/providers/flipova/components/Box.tsx +1 -0
  49. package/components/providers/flipova/components/Button.tsx +31 -0
  50. package/components/providers/flipova/components/Calendar.tsx +85 -0
  51. package/components/providers/flipova/components/Card.tsx +13 -0
  52. package/components/providers/flipova/components/Center.tsx +11 -0
  53. package/components/providers/flipova/components/Checkbox.tsx +24 -0
  54. package/components/providers/flipova/components/DateTimePicker.tsx +45 -0
  55. package/components/providers/flipova/components/Divider.tsx +9 -0
  56. package/components/providers/flipova/components/Drawer.tsx +18 -0
  57. package/components/providers/flipova/components/Fab.tsx +22 -0
  58. package/components/providers/flipova/components/FlatList.tsx +1 -0
  59. package/components/providers/flipova/components/FormControl.tsx +27 -0
  60. package/components/providers/flipova/components/Grid.tsx +18 -0
  61. package/components/providers/flipova/components/HStack.tsx +13 -0
  62. package/components/providers/flipova/components/Heading.tsx +19 -0
  63. package/components/providers/flipova/components/Icon.tsx +20 -0
  64. package/components/providers/flipova/components/Image.tsx +1 -0
  65. package/components/providers/flipova/components/ImageBackground.tsx +1 -0
  66. package/components/providers/flipova/components/ImageViewer.tsx +25 -0
  67. package/components/providers/flipova/components/Input.tsx +29 -0
  68. package/components/providers/flipova/components/InputAccessoryView.tsx +1 -0
  69. package/components/providers/flipova/components/KeyboardAvoidingView.tsx +1 -0
  70. package/components/providers/flipova/components/Link.tsx +21 -0
  71. package/components/providers/flipova/components/LiquidGlass.tsx +13 -0
  72. package/components/providers/flipova/components/Menu.tsx +43 -0
  73. package/components/providers/flipova/components/Modal.tsx +24 -0
  74. package/components/providers/flipova/components/Popover.tsx +23 -0
  75. package/components/providers/flipova/components/Portal.tsx +42 -0
  76. package/components/providers/flipova/components/Pressable.tsx +1 -0
  77. package/components/providers/flipova/components/Progress.tsx +22 -0
  78. package/components/providers/flipova/components/RadioGroup.tsx +36 -0
  79. package/components/providers/flipova/components/RefreshControl.tsx +1 -0
  80. package/components/providers/flipova/components/SafeAreaView.tsx +1 -0
  81. package/components/providers/flipova/components/ScrollView.tsx +1 -0
  82. package/components/providers/flipova/components/SectionList.tsx +1 -0
  83. package/components/providers/flipova/components/Select.tsx +61 -0
  84. package/components/providers/flipova/components/Skeleton.tsx +25 -0
  85. package/components/providers/flipova/components/Slider.tsx +52 -0
  86. package/components/providers/flipova/components/Spinner.tsx +19 -0
  87. package/components/providers/flipova/components/StatusBar.tsx +1 -0
  88. package/components/providers/flipova/components/Switch.tsx +21 -0
  89. package/components/providers/flipova/components/Table.tsx +33 -0
  90. package/components/providers/flipova/components/Tabs.tsx +39 -0
  91. package/components/providers/flipova/components/Text.tsx +13 -0
  92. package/components/providers/flipova/components/Textarea.tsx +28 -0
  93. package/components/providers/flipova/components/Toast.tsx +28 -0
  94. package/components/providers/flipova/components/Tooltip.tsx +34 -0
  95. package/components/providers/flipova/components/VStack.tsx +13 -0
  96. package/components/providers/flipova/components/View.tsx +1 -0
  97. package/components/providers/flipova/components/VirtualizedList.tsx +1 -0
  98. package/components/providers/flipova/index.tsx +189 -0
  99. package/components/providers/gluestack/index.tsx +226 -0
  100. package/components/providers/gluestack/more.tsx +151 -0
  101. package/components/{ui → providers/gluestack/ui}/accordion/index.tsx +2 -2
  102. package/components/{ui → providers/gluestack/ui}/actionsheet/index.tsx +15 -15
  103. package/components/{ui → providers/gluestack/ui}/alert/index.tsx +1 -1
  104. package/components/{ui → providers/gluestack/ui}/alert-dialog/index.tsx +3 -3
  105. package/components/{ui → providers/gluestack/ui}/badge/index.tsx +2 -2
  106. package/components/{ui → providers/gluestack/ui}/bottomsheet/index.tsx +11 -10
  107. package/components/{ui → providers/gluestack/ui}/box/index.tsx +4 -1
  108. package/components/{ui → providers/gluestack/ui}/button/index.tsx +1 -1
  109. package/components/{ui → providers/gluestack/ui}/calendar/index.tsx +4 -4
  110. package/components/{ui → providers/gluestack/ui}/card/index.tsx +1 -1
  111. package/components/{ui → providers/gluestack/ui}/center/index.tsx +1 -1
  112. package/components/{ui → providers/gluestack/ui}/checkbox/index.tsx +9 -8
  113. package/components/{ui → providers/gluestack/ui}/date-time-picker/index.tsx +4 -4
  114. package/components/providers/gluestack/ui/date-time-picker/index.web.tsx +197 -0
  115. package/components/{ui → providers/gluestack/ui}/divider/index.tsx +1 -1
  116. package/components/{ui → providers/gluestack/ui}/drawer/index.tsx +2 -2
  117. package/components/{ui → providers/gluestack/ui}/fab/index.tsx +1 -1
  118. package/components/{ui → providers/gluestack/ui}/form-control/index.tsx +3 -3
  119. package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/config.ts +1 -62
  120. package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/tokens.js +1 -1
  121. package/components/{ui → providers/gluestack/ui}/grid/index.tsx +3 -3
  122. package/components/{ui → providers/gluestack/ui}/heading/index.tsx +7 -7
  123. package/components/{ui → providers/gluestack/ui}/hstack/index.tsx +1 -1
  124. package/components/{ui → providers/gluestack/ui}/icon/index.tsx +1 -1
  125. package/components/{ui → providers/gluestack/ui}/image/index.tsx +0 -1
  126. package/components/{ui → providers/gluestack/ui}/image-viewer/index.tsx +96 -99
  127. package/components/providers/gluestack/ui/index.ts +58 -0
  128. package/components/{ui → providers/gluestack/ui}/input/index.tsx +1 -1
  129. package/components/{ui → providers/gluestack/ui}/link/index.tsx +2 -2
  130. package/components/{ui → providers/gluestack/ui}/liquid-glass/index.tsx +2 -2
  131. package/components/{ui → providers/gluestack/ui}/menu/index.tsx +5 -4
  132. package/components/{ui → providers/gluestack/ui}/modal/index.tsx +19 -17
  133. package/components/{ui → providers/gluestack/ui}/popover/index.tsx +4 -4
  134. package/components/{ui → providers/gluestack/ui}/portal/index.tsx +1 -1
  135. package/components/{ui → providers/gluestack/ui}/progress/index.tsx +2 -2
  136. package/components/{ui → providers/gluestack/ui}/radio/index.tsx +1 -1
  137. package/components/{ui → providers/gluestack/ui}/select/index.tsx +8 -12
  138. package/components/{ui → providers/gluestack/ui}/select/select-actionsheet.tsx +13 -13
  139. package/components/{ui → providers/gluestack/ui}/skeleton/index.tsx +2 -2
  140. package/components/{ui → providers/gluestack/ui}/slider/index.tsx +1 -1
  141. package/components/{ui → providers/gluestack/ui}/spinner/index.tsx +2 -2
  142. package/components/{ui → providers/gluestack/ui}/table/index.tsx +33 -33
  143. package/components/{ui → providers/gluestack/ui}/tabs/TabsAnimatedIndicator.tsx +1 -1
  144. package/components/{ui → providers/gluestack/ui}/tabs/index.tsx +2 -2
  145. package/components/{ui → providers/gluestack/ui}/text/index.tsx +1 -1
  146. package/components/{ui → providers/gluestack/ui}/toast/index.tsx +4 -4
  147. package/components/{ui → providers/gluestack/ui}/tooltip/index.tsx +1 -1
  148. package/components/{ui → providers/gluestack/ui}/vstack/index.tsx +1 -1
  149. package/components/providers/index.ts +2 -0
  150. package/components/providers/paper/index.tsx +449 -0
  151. package/components/providers/provider.tsx +80 -0
  152. package/components/providers/reusables/classes.ts +163 -0
  153. package/components/providers/reusables/index.tsx +289 -0
  154. package/components/providers/rn-base/Box.tsx +7 -0
  155. package/components/providers/rn-base/FlatList.tsx +16 -0
  156. package/components/providers/rn-base/Image.tsx +18 -0
  157. package/components/providers/rn-base/ImageBackground.tsx +11 -0
  158. package/components/providers/rn-base/InputAccessoryView.tsx +9 -0
  159. package/components/providers/rn-base/KeyboardAvoidingView.tsx +15 -0
  160. package/components/providers/rn-base/Pressable.tsx +19 -0
  161. package/components/providers/rn-base/RefreshControl.tsx +16 -0
  162. package/components/providers/rn-base/SafeAreaView.tsx +11 -0
  163. package/components/providers/rn-base/ScrollView.tsx +11 -0
  164. package/components/providers/rn-base/SectionList.tsx +22 -0
  165. package/components/providers/rn-base/StatusBar.tsx +17 -0
  166. package/components/providers/rn-base/View.tsx +7 -0
  167. package/components/providers/rn-base/VirtualizedList.tsx +18 -0
  168. package/components/providers/rn-base/index.tsx +64 -0
  169. package/components/providers/tamagui/index.tsx +375 -0
  170. package/components/providers/types.ts +17 -0
  171. package/components/theme/design-theme.ts +230 -0
  172. package/components/ui/create.tsx +14 -0
  173. package/components/ui/index.ts +68 -58
  174. package/components/ui/resolve.ts +40 -0
  175. package/design/canonical.index.txt +2 -16
  176. package/design/manifest.xml +4 -3
  177. package/design/schema.xsd +44 -434
  178. package/design/themes.xml +7 -177
  179. package/design/tools/{npm.js → cli.js} +173 -73
  180. package/design/tools/gui/index.html +998 -0
  181. package/design/tools/lib/check.js +533 -0
  182. package/design/tools/lib/contract.js +23 -0
  183. package/design/tools/lib/edit.js +166 -0
  184. package/design/tools/lib/generate.js +465 -0
  185. package/design/tools/lib/gui.js +614 -0
  186. package/design/tools/lib/lint.js +139 -0
  187. package/design/tools/lib/registry.js +135 -0
  188. package/design/tools/lib/util.js +53 -0
  189. package/design/tools/lib/xml.js +257 -0
  190. package/design/tools/lib/xsd.js +408 -0
  191. package/dist/chunk-2QM2ZUDS.mjs +1308 -0
  192. package/dist/chunk-2QM2ZUDS.mjs.map +1 -0
  193. package/dist/chunk-2T2TCUYF.js +1371 -0
  194. package/dist/chunk-2T2TCUYF.js.map +1 -0
  195. package/dist/chunk-6UKTC4KF.js +43 -0
  196. package/dist/chunk-6UKTC4KF.js.map +1 -0
  197. package/dist/chunk-6Z4WRTI4.mjs +37 -0
  198. package/dist/chunk-6Z4WRTI4.mjs.map +1 -0
  199. package/dist/chunk-G3K6J5KY.js +157 -0
  200. package/dist/chunk-G3K6J5KY.js.map +1 -0
  201. package/dist/chunk-GM45RCSI.mjs +96 -0
  202. package/dist/chunk-GM45RCSI.mjs.map +1 -0
  203. package/dist/chunk-GQJLHH2P.mjs +3 -0
  204. package/dist/chunk-GQJLHH2P.mjs.map +1 -0
  205. package/dist/chunk-ICNR56VP.js +1653 -0
  206. package/dist/chunk-ICNR56VP.js.map +1 -0
  207. package/dist/chunk-J5LGTIGS.mjs +9 -0
  208. package/dist/chunk-J5LGTIGS.mjs.map +1 -0
  209. package/dist/chunk-LRPZLF2K.mjs +30 -0
  210. package/dist/chunk-LRPZLF2K.mjs.map +1 -0
  211. package/dist/chunk-OC4MXNXU.js +32 -0
  212. package/dist/chunk-OC4MXNXU.js.map +1 -0
  213. package/dist/chunk-PZ5AY32C.js +11 -0
  214. package/dist/chunk-PZ5AY32C.js.map +1 -0
  215. package/dist/chunk-RWVTZUEG.js +161 -0
  216. package/dist/chunk-RWVTZUEG.js.map +1 -0
  217. package/dist/chunk-V473I5XQ.js +4 -0
  218. package/dist/chunk-V473I5XQ.js.map +1 -0
  219. package/dist/chunk-V4ULAISZ.js +915 -0
  220. package/dist/chunk-V4ULAISZ.js.map +1 -0
  221. package/dist/chunk-WRJERTJS.mjs +145 -0
  222. package/dist/chunk-WRJERTJS.mjs.map +1 -0
  223. package/dist/chunk-YIBPE3KQ.mjs +864 -0
  224. package/dist/chunk-YIBPE3KQ.mjs.map +1 -0
  225. package/dist/chunk-YUAQIZPN.mjs +1556 -0
  226. package/dist/chunk-YUAQIZPN.mjs.map +1 -0
  227. package/dist/contract/index.d.mts +304 -0
  228. package/dist/contract/index.d.ts +304 -0
  229. package/dist/contract/index.js +256 -0
  230. package/dist/contract/index.js.map +1 -0
  231. package/dist/contract/index.mjs +3 -0
  232. package/dist/contract/index.mjs.map +1 -0
  233. package/dist/index.d.mts +4 -40
  234. package/dist/index.d.ts +4 -40
  235. package/dist/index.js +73 -992
  236. package/dist/index.mjs +2 -1
  237. package/dist/providers/flipova/index.d.mts +133 -0
  238. package/dist/providers/flipova/index.d.ts +133 -0
  239. package/dist/providers/flipova/index.js +249 -0
  240. package/dist/providers/flipova/index.js.map +1 -0
  241. package/dist/providers/flipova/index.mjs +4 -0
  242. package/dist/providers/flipova/index.mjs.map +1 -0
  243. package/dist/providers/gluestack/index.d.mts +7 -0
  244. package/dist/providers/gluestack/index.d.ts +7 -0
  245. package/dist/providers/gluestack/index.js +240 -0
  246. package/dist/providers/gluestack/index.js.map +1 -0
  247. package/dist/providers/gluestack/index.mjs +238 -0
  248. package/dist/providers/gluestack/index.mjs.map +1 -0
  249. package/dist/providers/gluestack/ui/index.d.mts +3472 -0
  250. package/dist/providers/gluestack/ui/index.d.ts +3472 -0
  251. package/dist/{chunk-LCTFQJZM.js → providers/gluestack/ui/index.js} +860 -2297
  252. package/dist/providers/gluestack/ui/index.js.map +1 -0
  253. package/dist/{chunk-2R66P5X5.mjs → providers/gluestack/ui/index.mjs} +468 -2062
  254. package/dist/providers/gluestack/ui/index.mjs.map +1 -0
  255. package/dist/providers/index.d.mts +37 -0
  256. package/dist/providers/index.d.ts +37 -0
  257. package/dist/providers/index.js +28 -0
  258. package/dist/providers/index.js.map +1 -0
  259. package/dist/providers/index.mjs +3 -0
  260. package/dist/providers/index.mjs.map +1 -0
  261. package/dist/providers/paper/index.d.mts +30 -0
  262. package/dist/providers/paper/index.d.ts +30 -0
  263. package/dist/providers/paper/index.js +362 -0
  264. package/dist/providers/paper/index.js.map +1 -0
  265. package/dist/providers/paper/index.mjs +353 -0
  266. package/dist/providers/paper/index.mjs.map +1 -0
  267. package/dist/providers/reusables/index.d.mts +60 -0
  268. package/dist/providers/reusables/index.d.ts +60 -0
  269. package/dist/providers/reusables/index.js +348 -0
  270. package/dist/providers/reusables/index.js.map +1 -0
  271. package/dist/providers/reusables/index.mjs +311 -0
  272. package/dist/providers/reusables/index.mjs.map +1 -0
  273. package/dist/providers/tamagui/index.d.mts +15 -0
  274. package/dist/providers/tamagui/index.d.ts +15 -0
  275. package/dist/providers/tamagui/index.js +275 -0
  276. package/dist/providers/tamagui/index.js.map +1 -0
  277. package/dist/providers/tamagui/index.mjs +270 -0
  278. package/dist/providers/tamagui/index.mjs.map +1 -0
  279. package/dist/theme-BznFrVT1.d.mts +566 -0
  280. package/dist/theme-BznFrVT1.d.ts +566 -0
  281. package/dist/types-C7P80VKR.d.ts +22 -0
  282. package/dist/types-Tspvmask.d.mts +22 -0
  283. package/dist/ui/index.d.mts +190 -7017
  284. package/dist/ui/index.d.ts +190 -7017
  285. package/dist/ui/index.js +73 -992
  286. package/dist/ui/index.mjs +2 -1
  287. package/package.json +136 -35
  288. package/components/ui/date-time-picker/index.web.tsx +0 -195
  289. package/design/documentation.xml +0 -607
  290. package/design/tools/design.js +0 -188
  291. package/design/tools/requirements.txt +0 -35
  292. package/design/tools/sources/.checker/__init__.py +0 -81
  293. package/design/tools/sources/.checker/checks.py +0 -198
  294. package/design/tools/sources/.checker/cli.py +0 -154
  295. package/design/tools/sources/.checker/io.py +0 -242
  296. package/design/tools/sources/.checker/model.py +0 -144
  297. package/design/tools/sources/.checker/registry.py +0 -115
  298. package/design/tools/sources/.checker/report.py +0 -21
  299. package/design/tools/sources/.docgen/__init__.py +0 -45
  300. package/design/tools/sources/.docgen/cli.py +0 -101
  301. package/design/tools/sources/.docgen/model.py +0 -147
  302. package/design/tools/sources/.docgen/reference.py +0 -97
  303. package/design/tools/sources/.docgen/site.py +0 -145
  304. package/design/tools/sources/.docgen/xsddoc.py +0 -329
  305. package/design/tools/sources/.generate/__init__.py +0 -35
  306. package/design/tools/sources/.generate/cli.py +0 -76
  307. package/design/tools/sources/.generate/common.py +0 -33
  308. package/design/tools/sources/.generate/config.py +0 -177
  309. package/design/tools/sources/.generate/model.py +0 -51
  310. package/design/tools/sources/.generate/tokens.py +0 -141
  311. package/design/tools/sources/.linter/__init__.py +0 -9
  312. package/design/tools/sources/.linter/cli.py +0 -44
  313. package/design/tools/sources/.linter/discovery.py +0 -30
  314. package/design/tools/sources/.linter/errors.py +0 -45
  315. package/design/tools/sources/.linter/linter.py +0 -68
  316. package/design/tools/sources/.xmleditor/__init__.py +0 -74
  317. package/design/tools/sources/.xmleditor/blocks.py +0 -185
  318. package/design/tools/sources/.xmleditor/cli.py +0 -141
  319. package/design/tools/sources/.xmleditor/editor.py +0 -906
  320. package/design/tools/sources/.xmleditor/model.py +0 -708
  321. package/design/tools/sources/.xmleditor/widgets.py +0 -1832
  322. package/design/tools/sources/.xmleditor/xsdmodel.py +0 -753
  323. package/design/tools/sources/checker.py +0 -55
  324. package/design/tools/sources/docgen.py +0 -66
  325. package/design/tools/sources/generate.py +0 -48
  326. package/design/tools/sources/linter.py +0 -54
  327. package/design/tools/sources/ruff.toml +0 -12
  328. package/design/tools/sources/xmleditor.py +0 -62
  329. package/design/tools/unix/_venv_python.sh +0 -16
  330. package/design/tools/unix/check.sh +0 -13
  331. package/design/tools/unix/doc.sh +0 -14
  332. package/design/tools/unix/gen.sh +0 -14
  333. package/design/tools/unix/lint.sh +0 -10
  334. package/design/tools/unix/run.sh +0 -20
  335. package/design/tools/unix/verify.sh +0 -12
  336. package/design/tools/unix/xmledit.sh +0 -12
  337. package/design/tools/windows/check.cmd +0 -12
  338. package/design/tools/windows/doc.cmd +0 -12
  339. package/design/tools/windows/gen.cmd +0 -11
  340. package/design/tools/windows/lint.cmd +0 -9
  341. package/design/tools/windows/run.cmd +0 -26
  342. package/design/tools/windows/verify.cmd +0 -10
  343. package/design/tools/windows/xmledit.cmd +0 -10
  344. package/dist/chunk-2R66P5X5.mjs.map +0 -1
  345. package/dist/chunk-LCTFQJZM.js.map +0 -1
  346. /package/components/{ui → providers/gluestack/ui}/accordion/ANIMATION_CUSTOMIZATION.md +0 -0
  347. /package/components/{ui → providers/gluestack/ui}/accordion/AccordionAnimatedHeight.tsx +0 -0
  348. /package/components/{ui → providers/gluestack/ui}/accordion/AccordionAnimatedIcon.tsx +0 -0
  349. /package/components/{ui → providers/gluestack/ui}/accordion/AnimatedHeight.tsx +0 -0
  350. /package/components/{ui → providers/gluestack/ui}/accordion/AnimatedIcon.tsx +0 -0
  351. /package/components/{ui → providers/gluestack/ui}/accordion/MIGRATION_SUMMARY.md +0 -0
  352. /package/components/{ui → providers/gluestack/ui}/accordion/USAGE_EXAMPLE.tsx +0 -0
  353. /package/components/{ui → providers/gluestack/ui}/accordion/animation-config.ts +0 -0
  354. /package/components/{ui → providers/gluestack/ui}/avatar/index.tsx +0 -0
  355. /package/components/{ui → providers/gluestack/ui}/box/index.web.tsx +0 -0
  356. /package/components/{ui → providers/gluestack/ui}/box/styles.tsx +0 -0
  357. /package/components/{ui → providers/gluestack/ui}/calendar/creator.tsx +0 -0
  358. /package/components/{ui → providers/gluestack/ui}/calendar/styles.tsx +0 -0
  359. /package/components/{ui → providers/gluestack/ui}/card/index.web.tsx +0 -0
  360. /package/components/{ui → providers/gluestack/ui}/card/styles.tsx +0 -0
  361. /package/components/{ui → providers/gluestack/ui}/center/index.web.tsx +0 -0
  362. /package/components/{ui → providers/gluestack/ui}/center/styles.tsx +0 -0
  363. /package/components/{ui → providers/gluestack/ui}/date-time-picker/creator.tsx +0 -0
  364. /package/components/{ui → providers/gluestack/ui}/date-time-picker/styles.tsx +0 -0
  365. /package/components/{ui → providers/gluestack/ui}/flat-list/index.tsx +0 -0
  366. /package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/index.tsx +0 -0
  367. /package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/index.web.tsx +0 -0
  368. /package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/script.ts +0 -0
  369. /package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/theme-context.ts +0 -0
  370. /package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/tokens.d.ts +0 -0
  371. /package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/useGluestackColors.ts +0 -0
  372. /package/components/{ui → providers/gluestack/ui}/grid/index.web.tsx +0 -0
  373. /package/components/{ui → providers/gluestack/ui}/grid/styles.tsx +0 -0
  374. /package/components/{ui → providers/gluestack/ui}/heading/index.web.tsx +0 -0
  375. /package/components/{ui → providers/gluestack/ui}/heading/styles.tsx +0 -0
  376. /package/components/{ui → providers/gluestack/ui}/hstack/index.web.tsx +0 -0
  377. /package/components/{ui → providers/gluestack/ui}/hstack/styles.tsx +0 -0
  378. /package/components/{ui → providers/gluestack/ui}/icon/index.web.tsx +0 -0
  379. /package/components/{ui → providers/gluestack/ui}/image-background/index.tsx +0 -0
  380. /package/components/{ui → providers/gluestack/ui}/image-viewer/index.web.tsx +0 -0
  381. /package/components/{ui → providers/gluestack/ui}/input-accessory-view/index.tsx +0 -0
  382. /package/components/{ui → providers/gluestack/ui}/keyboard-avoiding-view/index.tsx +0 -0
  383. /package/components/{ui → providers/gluestack/ui}/pressable/index.tsx +0 -0
  384. /package/components/{ui → providers/gluestack/ui}/refresh-control/index.tsx +0 -0
  385. /package/components/{ui → providers/gluestack/ui}/safe-area-view/index.tsx +0 -0
  386. /package/components/{ui → providers/gluestack/ui}/scroll-view/index.tsx +0 -0
  387. /package/components/{ui → providers/gluestack/ui}/section-list/index.tsx +0 -0
  388. /package/components/{ui → providers/gluestack/ui}/skeleton/index.web.tsx +0 -0
  389. /package/components/{ui → providers/gluestack/ui}/skeleton/styles.tsx +0 -0
  390. /package/components/{ui → providers/gluestack/ui}/status-bar/index.tsx +0 -0
  391. /package/components/{ui → providers/gluestack/ui}/switch/index.tsx +0 -0
  392. /package/components/{ui → providers/gluestack/ui}/table/index.web.tsx +0 -0
  393. /package/components/{ui → providers/gluestack/ui}/table/styles.tsx +0 -0
  394. /package/components/{ui → providers/gluestack/ui}/tabs/animation-config.ts +0 -0
  395. /package/components/{ui → providers/gluestack/ui}/tabs/creator.tsx +0 -0
  396. /package/components/{ui → providers/gluestack/ui}/text/index.web.tsx +0 -0
  397. /package/components/{ui → providers/gluestack/ui}/text/styles.tsx +0 -0
  398. /package/components/{ui → providers/gluestack/ui}/textarea/index.tsx +0 -0
  399. /package/components/{ui → providers/gluestack/ui}/view/index.tsx +0 -0
  400. /package/components/{ui → providers/gluestack/ui}/virtualized-list/index.tsx +0 -0
  401. /package/components/{ui → providers/gluestack/ui}/vstack/index.web.tsx +0 -0
  402. /package/components/{ui → providers/gluestack/ui}/vstack/styles.tsx +0 -0
package/CHANGES.md ADDED
@@ -0,0 +1,66 @@
1
+ # Changes
2
+
3
+ ## Unreleased
4
+
5
+ - **Release system, one branch.** The pipeline (`.github/workflows/release.yml`) is now the Corral model (fingerprinted, no
6
+ repository-specific step); what proves foundation fit to ship lives in `package.json`: `ci:verify` (`scripts/ci-verify.js`) and
7
+ `ci:deliver`. The version is the git tag, stamped into the manifest inside the runner. DOCS.md sections 7 and 8 describe
8
+ `corral release plan | run | promote | resume | doctor | migrate | gui`; the branch ladder is retired.
9
+
10
+ Versions follow SemVer with the channels `alpha → beta → rc → stable` (see [DOCS.md](DOCS.md#8-releasing-with-corral)).
11
+
12
+ ## 3.0.0 (next, breaking)
13
+
14
+ A new architecture: one UI contract, five providers, themes that belong to the app.
15
+
16
+ ### Added
17
+
18
+ - **The contract** (`@flipova/foundation/contract`): props and pure recipes for **57 components** (the whole
19
+ gluestack catalogue). A recipe turns a resolved theme into exact style values; every provider applies them.
20
+ - **The unified `ui`** (`@flipova/foundation` and `/ui`): `import { Button } from '@flipova/foundation'` renders the
21
+ component of the library chosen in `<FlipovaProvider adapter={…}>`, and falls back to flipova's when that library
22
+ does not have it (or when no provider is mounted).
23
+ - **Providers**: `flipova` (all 57, React Native only), `gluestack`, `reusables`, `paper`, `tamagui`; each is an
24
+ optional peer dependency loaded only from its own sub-path.
25
+ - **`providers/rn-base`**: the 14 components that are React Native itself, served by every adapter.
26
+ - **`COMPONENTS.md`**: generated coverage table, kept honest by `components/alignment.test.ts` (every directory of the
27
+ gluestack catalogue is mapped to a contract name, flipova has all of them, `ui` exports all of them, adapters
28
+ declare only known names).
29
+ - **`flipova-design gui`**: a local web editor for the XML registries (colours, scales, themes, roles, preview).
30
+ - **`flipova-design adopt`**: copies the registries into the app, which then owns its design system.
31
+ - **Boundary check** (`npm run boundary`): layers, optional peers, no `@flipova/*` import, no frontend folder.
32
+ - **Public documentation** (`documentation/`, `website/`): 8 documents from the `flipova.assets` public templates, published as a Docusaurus site by the `docs` step of `ci/ci.yml` (built on every pull request, published by `release.yml` after a stable delivery; no second workflow).
33
+ - **Docs ↔ code guard** (`npm run docs:check`, in `npm test`): documentation that disagrees with the code fails CI.
34
+
35
+ ### Fixed
36
+
37
+ - Peer dependencies: `react-native` is now declared (required); `nativewind` and `lucide-react` are optional.
38
+ - `package-lock.json` is back in sync with `package.json` (`npm ci` works).
39
+ - Documentation named the provider prop `registry`; it is `theme`.
40
+
41
+ ### Changed (breaking)
42
+
43
+ - Themes are no longer shipped: the package carries only a neutral `light` / `dark` starter. Your themes live in your
44
+ app's `design/` and generate into `theme/`.
45
+ - The gluestack catalogue moved from `components/ui/*` to `components/providers/gluestack/ui/*`
46
+ (sub-path `@flipova/foundation/providers/gluestack/ui`).
47
+ - `components/ui` is now the unified layer; import components from the root or `/ui`.
48
+ - Python tooling and `design/documentation.xml` removed; the toolchain is Node only.
49
+
50
+ ### Migration
51
+
52
+ 1. Run `npx flipova-design adopt`, then `npx flipova-design gen`.
53
+ 2. Wrap the app: `<FlipovaProvider adapter={…} theme={designTheme}>` (`adopt` writes `theme/provider.tsx`).
54
+ 3. Replace imports of gluestack components by the unified ones, or by the `/providers/gluestack/ui` sub-path.
55
+ 4. Install the optional peer of the provider you choose (react-native-paper, @tamagui/core, @rn-primitives/switch…).
56
+
57
+ ### Known limits
58
+
59
+ - Four gluestack modules (bottomsheet, date-time-picker, image-viewer, slider) cannot be loaded by the test
60
+ environment, so they are served by flipova; others still fall back where no verified wrapper exists yet.
61
+ - Parity is checked on resolved style values, not on pixels; nothing is rendered on a device.
62
+ - Icon is a text glyph (no SVG); Calendar and DateTimePicker work on dates only (`YYYY-MM-DD`).
63
+
64
+ ## 2.4.4
65
+
66
+ Last release of the 2.x line (gluestack components + registry-driven theming pipeline).
package/COMPONENTS.md ADDED
@@ -0,0 +1,102 @@
1
+ # Components by provider
2
+
3
+ <!-- generated by components/alignment.test.ts (UPDATE_COMPONENTS_DOC=1 npm run components:doc): do not edit by hand -->
4
+
5
+ The contract has **57** components: the whole gluestack catalogue. flipova implements all of them in plain React Native. For every other provider a component is either **native** (the library’s own component, with the design applied) or **flipova** (the flipova one is rendered instead, so `@flipova/foundation/ui` always has the whole set). **RN** marks components that are React Native itself (View, ScrollView, FlatList, Image…): no library replaces them, so the adapters that do not wrap their own serve the same ones (`providers/rn-base`).
6
+
7
+ | Provider | Native in total | of which the library’s own | of which React Native’s (shared) | Falls back to flipova |
8
+ | --- | ---: | ---: | ---: | ---: |
9
+ | flipova | 57 | 43 | 14 | 0 |
10
+ | gluestack | 31 | 31 | 0 | 26 |
11
+ | reusables | 31 | 19 | 12 | 26 |
12
+ | paper | 31 | 17 | 14 | 26 |
13
+ | tamagui | 32 | 20 | 12 | 25 |
14
+
15
+ | Component | flipova | gluestack | paper | tamagui | reusables |
16
+ | --- | :---: | :---: | :---: | :---: | :---: |
17
+ | Accordion | native | flipova | native | flipova | flipova |
18
+ | ActionSheet | native | flipova | flipova | flipova | flipova |
19
+ | Alert | native | flipova | flipova | flipova | flipova |
20
+ | AlertDialog | native | flipova | native | flipova | flipova |
21
+ | Avatar | native | flipova | native | native | native |
22
+ | Badge | native | native | native | native | native |
23
+ | BottomSheet | native | flipova | flipova | flipova | flipova |
24
+ | Box | RN | native | RN | native | native |
25
+ | Button | native | native | native | native | native |
26
+ | Calendar | native | flipova | flipova | flipova | flipova |
27
+ | Card | native | native | native | native | native |
28
+ | Center | native | native | flipova | native | native |
29
+ | Checkbox | native | flipova | native | native | native |
30
+ | DateTimePicker | native | flipova | flipova | flipova | flipova |
31
+ | Divider | native | native | native | native | native |
32
+ | Drawer | native | flipova | flipova | flipova | flipova |
33
+ | Fab | native | native | native | flipova | flipova |
34
+ | FlatList | RN | native | RN | RN | RN |
35
+ | FormControl | native | flipova | flipova | native | native |
36
+ | Grid | native | flipova | flipova | flipova | flipova |
37
+ | Heading | native | native | native | native | native |
38
+ | HStack | native | native | flipova | native | native |
39
+ | Icon | native | flipova | flipova | native | flipova |
40
+ | Image | RN | native | RN | RN | RN |
41
+ | ImageBackground | RN | native | RN | RN | RN |
42
+ | ImageViewer | native | flipova | flipova | flipova | flipova |
43
+ | Input | native | native | native | native | native |
44
+ | InputAccessoryView | RN | native | RN | RN | RN |
45
+ | KeyboardAvoidingView | RN | native | RN | RN | RN |
46
+ | LiquidGlass | native | flipova | flipova | native | flipova |
47
+ | Link | native | native | flipova | native | native |
48
+ | Menu | native | flipova | flipova | flipova | flipova |
49
+ | Modal | native | native | flipova | flipova | flipova |
50
+ | Popover | native | flipova | flipova | flipova | flipova |
51
+ | Portal | native | flipova | native | flipova | flipova |
52
+ | Pressable | RN | native | RN | RN | RN |
53
+ | Progress | native | flipova | native | native | native |
54
+ | RadioGroup | native | flipova | flipova | flipova | flipova |
55
+ | RefreshControl | RN | native | RN | RN | RN |
56
+ | SafeAreaView | RN | native | RN | RN | RN |
57
+ | ScrollView | RN | native | RN | RN | RN |
58
+ | SectionList | RN | native | RN | RN | RN |
59
+ | Select | native | flipova | flipova | flipova | flipova |
60
+ | Skeleton | native | native | flipova | flipova | native |
61
+ | Slider | native | flipova | flipova | flipova | flipova |
62
+ | Spinner | native | native | native | flipova | flipova |
63
+ | StatusBar | RN | native | RN | RN | RN |
64
+ | Switch | native | native | native | native | native |
65
+ | Table | native | flipova | flipova | flipova | flipova |
66
+ | Tabs | native | flipova | flipova | flipova | flipova |
67
+ | Text | native | native | native | native | native |
68
+ | Textarea | native | native | native | flipova | flipova |
69
+ | Toast | native | flipova | flipova | flipova | flipova |
70
+ | Tooltip | native | flipova | flipova | flipova | flipova |
71
+ | View | RN | native | RN | native | native |
72
+ | VirtualizedList | RN | native | RN | RN | RN |
73
+ | VStack | native | native | flipova | native | native |
74
+
75
+ ## gluestack components that fall back, and why
76
+
77
+ - **Accordion**: the module loads, but no verified wrapper is written yet
78
+ - **ActionSheet**: the module loads, but no verified wrapper is written yet
79
+ - **Alert**: the module loads, but no verified wrapper is written yet
80
+ - **AlertDialog**: the module loads, but no verified wrapper is written yet
81
+ - **Avatar**: the module loads, but no verified wrapper is written yet
82
+ - **BottomSheet**: depends on @gorhom/bottom-sheet, which cannot be loaded by the test environment
83
+ - **Calendar**: the module loads, but no verified wrapper is written yet
84
+ - **Checkbox**: the module loads, but no verified wrapper is written yet
85
+ - **DateTimePicker**: depends on @react-native-community/datetimepicker (Flow source), which cannot be loaded by the test environment
86
+ - **Drawer**: the module loads, but no verified wrapper is written yet
87
+ - **FormControl**: the module loads, but no verified wrapper is written yet
88
+ - **Grid**: the module loads, but no verified wrapper is written yet
89
+ - **Icon**: the module loads, but no verified wrapper is written yet
90
+ - **ImageViewer**: depends on react-native-gesture-handler, which cannot be loaded by the test environment
91
+ - **LiquidGlass**: the module loads, but no verified wrapper is written yet
92
+ - **Menu**: the module loads, but no verified wrapper is written yet
93
+ - **Popover**: the module loads, but no verified wrapper is written yet
94
+ - **Portal**: the module loads, but no verified wrapper is written yet
95
+ - **Progress**: the module loads, but no verified wrapper is written yet
96
+ - **RadioGroup**: the module loads, but no verified wrapper is written yet
97
+ - **Select**: the module loads, but no verified wrapper is written yet
98
+ - **Slider**: its dependency @react-aria/label is not installed
99
+ - **Table**: the module loads, but no verified wrapper is written yet
100
+ - **Tabs**: the module loads, but no verified wrapper is written yet
101
+ - **Toast**: the module loads, but no verified wrapper is written yet
102
+ - **Tooltip**: the module loads, but no verified wrapper is written yet
package/DOCS.md ADDED
@@ -0,0 +1,261 @@
1
+ # @flipova/foundation — documentation
2
+
3
+ Foundation is the bottom layer of the Flipova stack: a provider-agnostic UI contract, five providers, and the
4
+ toolchain that turns your XML design registries into theme files. No layout, no frontend, no account logic lives here.
5
+
6
+ 1. [What it is](#1-what-it-is)
7
+ 2. [Install and first setup](#2-install-and-first-setup)
8
+ 3. [Using the components](#3-using-the-components)
9
+ 4. [Theming: the registries and the GUI](#4-theming-the-registries-and-the-gui)
10
+ 5. [Providers and coverage](#5-providers-and-coverage)
11
+ 6. [Architecture and rules](#6-architecture-and-rules)
12
+ 7. [Working on foundation: tests and CI](#7-working-on-foundation-tests-and-ci)
13
+ 8. [Releasing with Corral](#8-releasing-with-corral)
14
+ 9. [Conformity with Corral](#9-conformity-with-corral)
15
+ 10. [Troubleshooting](#10-troubleshooting)
16
+ 11. [Public documentation](#11-public-documentation)
17
+
18
+ ## 1. What it is
19
+
20
+ | Piece | Where | What it is |
21
+ | ------------ | ------------------------ | ----------------------------------------------------------------------------------------------------------------- |
22
+ | Contract | `components/contract` | Props of 57 components and one pure **recipe** per visual component: theme in, exact style values out. |
23
+ | Providers | `components/providers/*` | Adapters that hand the recipes' values to a library: `flipova`, `gluestack`, `reusables`, `paper`, `tamagui`. |
24
+ | Unified `ui` | `components/ui` | `import { Button } from '@flipova/foundation'`: renders the chosen provider's component, falls back to flipova's. |
25
+ | Theme | `components/theme` | Generated from **your** XML registries (`design/`). The package ships only a neutral starter. |
26
+ | Toolchain | `design/tools` | `flipova-design`: adopt, gen, check, verify, lint, pipeline, gui. Node only, no dependency. |
27
+
28
+ Design rule: the recipes are the single source of the design. Providers never invent a value; parity between providers
29
+ is tested on **resolved values** (colours, radii, spacings, sizes), not on pixels.
30
+
31
+ ## 2. Install and first setup
32
+
33
+ ```bash
34
+ npm install @flipova/foundation react react-native
35
+ # plus the optional peer of the provider you choose, e.g.:
36
+ npm install react-native-paper # or @tamagui/core, or @rn-primitives/switch
37
+ ```
38
+
39
+ ```bash
40
+ npx flipova-design adopt # copies the registries into ./design: from now on the app owns its design system
41
+ npx flipova-design gen # compiles tokens + themes -> theme/design-theme.ts, config.ts, tokens.js
42
+ ```
43
+
44
+ `adopt` also writes `theme/provider.tsx`. Mount it once at the root of the app:
45
+
46
+ ```tsx
47
+ import { AppThemeProvider } from './theme/provider';
48
+
49
+ export default function App() {
50
+ return <AppThemeProvider mode="system">{/* your app */}</AppThemeProvider>;
51
+ }
52
+ ```
53
+
54
+ ## 3. Using the components
55
+
56
+ ```tsx
57
+ import { Button, Card, Heading, Text, VStack } from '@flipova/foundation';
58
+
59
+ <Card>
60
+ <VStack space="4">
61
+ <Heading level={2}>Welcome</Heading>
62
+ <Text>Same props whatever the provider.</Text>
63
+ <Button onPress={save}>Save</Button>
64
+ </VStack>
65
+ </Card>;
66
+ ```
67
+
68
+ - Choose the library in the provider: `<FlipovaProvider adapter={paper} theme={designTheme}>`.
69
+ Adapters are imported from their own sub-path (`@flipova/foundation/providers/paper`…): only that sub-path imports
70
+ the library.
71
+ - A component the library does not have is served by flipova, so there is never a hole. `coverageOf(adapter)` tells
72
+ which are native; [COMPONENTS.md](COMPONENTS.md) is the full table.
73
+ - Straight to one library: import from the provider sub-path
74
+ (`@flipova/foundation/providers/gluestack/ui` is the whole gluestack catalogue).
75
+ - Props are the same everywhere (`components/contract/types.ts`). `space` is a step of the spacing scale (`"4"` = 16).
76
+ - Icon is a text glyph; Calendar and DateTimePicker work on `YYYY-MM-DD` strings; `Portal` content is drawn by the
77
+ flipova provider's host.
78
+
79
+ ## 4. Theming: the registries and the GUI
80
+
81
+ Your design lives in four XML files in `design/` (`tokens.xml`, `themes.xml`, `manifest.xml`, `schema.xsd`). The package
82
+ imposes no theme. A theme must define the 27 required colour roles (`REQUIRED_ROLES`); a missing role is refused, naming it.
83
+
84
+ | Command | Does |
85
+ | ----------------------------------------------- | --------------------------------------------------------------------- |
86
+ | `npx flipova-design adopt` | Copy the registries into the app. |
87
+ | `npx flipova-design gui [--port N] [--no-open]` | Local web editor (see below). |
88
+ | `npx flipova-design gen [--check\|--list]` | Compile registries → `theme/` files; `--check` fails if they drifted. |
89
+ | `npx flipova-design check [--list-rules]` | Determinism rules + XSD. |
90
+ | `npx flipova-design verify` | The committed canonical index matches the registries. |
91
+ | `npx flipova-design lint` | XSD-validate every registry file. |
92
+ | `npx flipova-design pipeline` | gen, check, verify, lint. |
93
+ | `npx flipova-design where` | Print the resolved paths (diagnostics). |
94
+
95
+ **The GUI** (`gui`) serves a page on `127.0.0.1` with a token in the URL; nothing leaves the machine. Tabs: Preview
96
+ (components rendered with the theme, light/dark), Colours (palettes, shade generator), Scales (spacing, radii, font
97
+ sizes…), Themes (roles per theme, add/remove), Messages. Edits stay in a working copy until **Save**; **Validate** runs the
98
+ same checks as CI on a temporary copy; **Revert** drops the working copy. Save validates first, then writes the registries
99
+ and regenerates `theme/`. The Preview currently shows the 20 core components.
100
+
101
+ ## 5. Providers and coverage
102
+
103
+ | Provider | Native | of which the library's own | of which React Native's | Served by flipova |
104
+ | --------- | -----: | -------------------------: | ----------------------: | ----------------: |
105
+ | flipova | 57 | 43 | 14 | 0 |
106
+ | gluestack | 31 | 31 | 0 | 26 |
107
+ | reusables | 31 | 19 | 12 | 26 |
108
+ | paper | 31 | 17 | 14 | 26 |
109
+ | tamagui | 32 | 20 | 12 | 25 |
110
+
111
+ Regenerate the table after touching an adapter: `npm run components:doc`. The test `components/alignment.test.ts`
112
+ fails when the table, the catalogue, the contract, flipova or the unified `ui` disagree.
113
+
114
+ ## 6. Architecture and rules
115
+
116
+ ```
117
+ components/
118
+ theme/ generated from the registries
119
+ contract/ types.ts + recipes/ (pure functions)
120
+ providers/ provider.tsx, rn-base/, flipova/, gluestack/, reusables/, paper/, tamagui/
121
+ ui/ the unified components
122
+ design/ registries (XML), schema, toolchain (tools/)
123
+ ```
124
+
125
+ `npm run boundary` enforces: layers `theme < contract < providers-core < provider/<lib>`; the unified `ui` imports only
126
+ core, flipova, contract and theme; a provider never imports another provider nor `ui`; the flipova provider imports only
127
+ `react` and `react-native` (and has no colour literal); optional peers are imported only in their own provider; no
128
+ `@flipova/*` import and no frontend folder name under `components/`.
129
+
130
+ Adding a component: types + recipe in `contract`, implementation in `providers/flipova/components/<Name>.tsx`,
131
+ `createUi('<Name>')` in `ui/index.ts`, mapping in `alignment.test.ts` if it comes from the gluestack catalogue, then
132
+ `npm run components:doc`.
133
+
134
+ ## 7. Working on foundation: tests and CI
135
+
136
+ ```bash
137
+ npm install --no-package-lock --ignore-scripts
138
+ npm run typecheck && npm run lint && npm run format:check
139
+ npm run build
140
+ npm test # design toolchain, boundary, components (vitest, react-native-web)
141
+ ```
142
+
143
+ `npm test` = `design:test` + `boundary:test` + `boundary` + `docs:test` + `docs:check` + `vitest run`.
144
+
145
+ The pipeline (`.github/workflows/release.yml`) is the **Corral model**: the same file in every repository, with no logic of
146
+ its own, stamped with a fingerprint on its first line (`# corral-pipeline v2 kind:node sha256:…`). It also checks itself: an `integrity` job fails any pull request that edited it (Dependabot included), `corral release doctor --fix` regenerates it. Jobs: `integrity`, `verify` (node 20 and 22:
147
+ `npm ci`, then `npm run ci:verify`), `security` (CodeQL), `deliver` (release tags only), `summary`. Everything specific to
148
+ foundation lives in `package.json`, not in the YAML:
149
+
150
+ - `ci:verify` = `node scripts/ci-verify.js` (lint, format, types, build, tests, design registry up to date, design pipeline,
151
+ `npm pack --dry-run`; every step runs, the exit code says if any failed). Add a check there.
152
+ - `ci:deliver` = `npm run deploy --` (npm trusted publishing with provenance; receives `--tag <channel>`).
153
+
154
+ A change is verified **once**, on its pull request; only a release tag starts a run on push. Do not edit the YAML by hand:
155
+ `corral release doctor` compares it with the model and `corral release doctor --fix --merge` rewrites it.
156
+ (Dependabot's `github-actions` ecosystem edits this file too: that counts as drift. Bump the actions in Corral's model instead.)
157
+
158
+ Test environment notes: `react-native` is aliased to `react-native-web`; stand-ins in `test-support/` replace modules that
159
+ cannot load there (nativewind, react-native-svg, safe-area-context, react-native-reanimated, @legendapp/motion). Animation
160
+ is therefore not verified.
161
+
162
+ ## 8. Releasing with Corral
163
+
164
+ **One branch.** `main` is the only long-lived branch. A version is a **tag** (`@flipova/foundation@X.Y.Z`); `alpha`, `beta`,
165
+ `rc` and stable are tags on the **same commit**, published under the npm dist-tags `alpha`, `beta`, `rc` and `latest`.
166
+ Promoting is a new tag: no branch, no pull request, nothing that can diverge. The version lives in the tag only: the
167
+ pipeline stamps it into `package.json` inside the runner (nothing is committed), so the manifest is never edited by hand and
168
+ can never disagree with the tag.
169
+
170
+ ```bash
171
+ corral release status --repo foundation # version, last run, pipeline file, workflow, leftover branches
172
+ corral release plan --repo foundation --bump minor --stage alpha # every check, nothing touched
173
+ corral release run --repo foundation --bump minor --stage alpha # tag -> pipeline -> npm -> GitHub release
174
+ corral release promote --repo foundation # next rung (beta, rc, stable) on the SAME commit
175
+ corral release rollback --to @flipova/foundation@2.4.4 --repo foundation --dry-run # return to an earlier STABLE version: its content is republished as the next patch (nothing is deleted)
176
+ corral release resume --repo foundation # finish after a failure or an approval
177
+ corral release gui # the same, with graphs, in the browser
178
+ ```
179
+
180
+ Before tagging, the plan checks — and refuses if one is red: the pipeline file **at the commit to tag** is the model (a tag runs
181
+ the file of the commit it points to, so a fix made afterwards cannot help it), the workflow is enabled, `package.json` has
182
+ `ci:verify` and `ci:deliver`, the tag and the npm version are free, and the ladder is respected (the previous rung was
183
+ delivered). Corral creates the **tag** only; the pipeline creates the GitHub release once npm has the package, so a release
184
+ can no longer exist without a delivery. A failure is reported with its job and step and finished with `corral release resume`
185
+ (each step is read back from GitHub and npm: nothing is re-tagged).
186
+
187
+ Getting work onto `main`: `corral script run ship --set repo=foundation --set message="feat: …"` moves the uncommitted changes
188
+ to a work branch, pushes it, opens the PR to `main` and merges it when CI is green. Hotfix: the same, then
189
+ `corral release run --repo foundation --bump patch --stage stable --skip-ladder`.
190
+
191
+ Moving from the old ladder (once): `corral release doctor --fix --merge --repo foundation` (the model), then
192
+ `corral release migrate foundation` (dry-run: which of `dev`, `alpha`, `beta`, `rc` are fully contained in `main`) and
193
+ `corral release migrate foundation --confirm foundation`. The npm trusted publisher is bound to the workflow **file name**
194
+ (`release.yml`): do not rename it (`npm trust github flipova/foundation --file release.yml --allow-publish`).
195
+ `corral promote`, `corral align` and the `promote-next` / `foundation-release` scripts are deprecated and will be removed.
196
+
197
+ ## 9. Conformity with Corral
198
+
199
+ Read-only first, then repair what needs a decision.
200
+
201
+ ```bash
202
+ corral doctor --repo foundation # anomalies: unpushed, diverged, missing LICENSE/README/ENVIRONMENT.md/pipeline
203
+ corral conform --repo foundation --dry-run # exactly what would change (settings, branches, labels, rulesets, …)
204
+ corral product check --repo foundation # corral.product.json: valid, no secret, no e-mail
205
+ corral workflows sync --repo foundation --dry-run # templates vs the repository's pipeline (never overwrites without --force)
206
+ corral rulesets list --repo foundation # branch + tag protection
207
+ corral dependabot state --repo foundation # dependabot.yml present, security fixes on
208
+ corral security status --repo foundation # Dependabot, secret scanning, push protection, CodeQL
209
+ corral security alerts --repo foundation
210
+ corral sbom --repo foundation # CycloneDX from package-lock.json -> <workspace>/sbom/
211
+ corral licenses --repo foundation # dependency licences vs the deny / review policy
212
+ corral vault check # secrets hygiene (foundation needs none: no .env in the repo)
213
+ corral report --repo foundation --out REPORT.md # full read-only overview
214
+ corral audit pack --repo foundation # audit evidence pack
215
+ ```
216
+
217
+ Apply (writes to the forge — read the dry run first): `corral conform --repo foundation`,
218
+ `corral doctor --repo foundation --fix`, `corral rulesets apply --repo foundation`, `corral dependabot on --repo foundation`,
219
+ `corral product generate --repo foundation` (hand-written fields of `corral.product.json` are preserved).
220
+
221
+ Files `ENVIRONMENT.md` and `corral.product.json` are generated by Corral and are in `.prettierignore`.
222
+
223
+ ## 10. Troubleshooting
224
+
225
+ | Symptom | Cause / fix |
226
+ | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
227
+ | `design:gen:check` fails in CI | A generated file drifted from the registries: `npm run design:gen` and commit. |
228
+ | `alignment.test.ts` fails on `COMPONENTS.md` | `npm run components:doc` and commit. |
229
+ | `alignment.test.ts`: unmapped directory | A new gluestack catalogue directory: map it in `CATALOGUE_MAP` and add the contract component. |
230
+ | `boundary` fails | The message names the file and the rule (layer, optional peer, forbidden folder). |
231
+ | `resolveTheme` throws "missing role" | Your theme lacks one of the 27 required roles: add it in the GUI (Themes) or in `themes.xml`. |
232
+ | Tamagui refuses a token name | `true`, `none`… are reserved: the adapter renames `none` to `zero` (`TAMAGUI_RENAMES`). |
233
+ | `ENEEDAUTH` on delivery | No npm trusted publisher declared: `npm trust github flipova/foundation --file release.yml --allow-publish`. |
234
+ | `format:check` fails on `ENVIRONMENT.md` / `corral.product.json` | They are generated by Corral and listed in `.prettierignore`. |
235
+
236
+ ## 11. Public documentation
237
+
238
+ The public documentation (French source, in `documentation/v1.0/`) is written from the public templates of
239
+ `flipova.assets` (27 overview, 28 getting started, 29 how-to guides, 30 concepts, 31 reference, 32 troubleshooting and
240
+ FAQ, 33 contributing, 34 release notes) with `corral docs`, and published as a Docusaurus site (`website/`).
241
+
242
+ ```bash
243
+ corral docs create foundation --version v1.0 --template 28 --ref FLP-GST-001 --title "…" --owner Flipova # a new document
244
+ corral docs fields foundation --version v1.0 # fill-in zones still open
245
+ corral docs test foundation --version v1.0 # markers valid
246
+ corral docs docusaurus --repo foundation --version v1.0 --site-url https://flipova.github.io --base-url /foundation/
247
+ corral docs docusaurus --repo foundation --version v1.0 --check # the site is up to date with the documents
248
+ corral docs translate --repo foundation --lang en --env dev # English version (DeepL key from the vault)
249
+ cd website && npm install && npm run build # local build
250
+ ```
251
+
252
+ A document that still contains a `[?…]` zone is not published. `website/postcss.config.js` is empty on purpose: it keeps
253
+ Docusaurus from loading the library's own PostCSS (tailwind) configuration from the parent folder. Publication is the `docs` step of `ci/ci.yml` (sub-workflow `ci/lib/docs-site`):
254
+ the site is built on every pull request and published by `release.yml` after a stable delivery (Settings → Pages → Source: GitHub Actions, once).
255
+
256
+ **Docs ↔ code guard.** `npm run docs:check` (part of `npm test`) reads `README.md`, `DOCS.md` and `documentation/` and
257
+ fails when they disagree with the code: an attribute that `<FlipovaProvider>` does not have, a `flipova-design` command
258
+ or `npm run` script that does not exist, a `@flipova/foundation/…` path that `exports` does not declare, a name the root
259
+ does not export, a wrong component or role count, a broken relative link, or a `[?…]` zone left in `documentation/`.
260
+ The reference document must also list every provider prop, CLI command and package export. `npm run docs:test` tests
261
+ the guard itself.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Flipova
3
+ Copyright (c) 2026 Flipova
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal