@flipova/foundation 2.4.4 → 3.0.0-beta.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
@@ -1,607 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!--
3
- Flipova Foundation Documentation Tree
4
- =====================================
5
- Separated from manifest.xml: this file is the single source of truth for the
6
- documentation site (sections + narrative Markdown articles). Consumed by
7
- design/tools/sources/docgen.py and validated against schema.xsd (global
8
- <documentation> element).
9
- -->
10
- <documentation xmlns="urn:flipova:foundation:registry"
11
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:flipova:foundation:registry schema.xsd">
12
- <section id="getting-started" title="Getting Started" order="1">
13
- <article id="installation" title="Installation" slug="getting-started/installation">
14
- <content><![CDATA[
15
- # Installation
16
-
17
- Flipova Foundation ships an editable gluestack-ui component source plus **two
18
- generated design artifacts**, both compiled from the design registries
19
- (`design/tokens.xml` + `design/themes.xml`) and never edited by hand:
20
-
21
- - `components/ui/gluestack-ui-provider/config.ts` - the gluestack/nativewind
22
- colour variables, for the light and dark modes;
23
- - `components/ui/gluestack-ui-provider/tokens.js` - the whole Tailwind theme.
24
-
25
- ## Requirements
26
-
27
- - **Python 3.8+** for the design tooling.
28
- - **`lxml`** (and, for `design:check`, **`ruff`**) - the only third-party
29
- dependencies, pinned in `design/tools/requirements.txt`.
30
- - Your own Node/TypeScript tooling to consume the gluestack components.
31
-
32
- ## Install and initialize
33
-
34
- ```bash
35
- npm install @flipova/foundation
36
- npm install gluestack-ui
37
- npx flipova-design init
38
- ```
39
-
40
- The registries are **not** copied into your project. They live in the installed
41
- package (`node_modules/@flipova/foundation/design`) together with the whole
42
- toolchain, and the CLI drives them from there. `init` only injects what a package
43
- cannot own:
44
-
45
- - `tailwind.config.js`, `postcss.config.js` and `globals.css`, created only when
46
- missing (an existing file is never overwritten unless you pass `--force`);
47
- - the `design:*` npm scripts in your `package.json`, so the pipeline is
48
- reachable as `npm run design:gen`, `design:lint`, `design:check`, ... ;
49
- - a short recap of what to do next.
50
-
51
- Use `npx flipova-design where` at any time to print the resolved paths, and
52
- `npx flipova-design inject` to re-run only the injection.
53
-
54
- If you deliberately want to own the design system - your own branding, your own
55
- scales and roles - run:
56
-
57
- ```bash
58
- npx flipova-design adopt
59
- ```
60
-
61
- It copies the **registries only** (`manifest.xml`, `schema.xsd`, `tokens.xml`,
62
- `themes.xml`, `documentation.xml`, `canonical.index.txt`) into `design/`. The
63
- toolchain stays in `node_modules`: the package keeps generating, validating and
64
- building, and only the source of truth moves to the app.
65
-
66
- `adopt` also rewrites the manifest outputs to `theme/config.ts` and
67
- `theme/tokens.js`, and creates `theme/provider.tsx`.
68
-
69
- ### Wire your own theme into the app
70
-
71
- Two artifacts, two consumers:
72
-
73
- ```js
74
- // tailwind.config.js
75
- const tokens = require('./theme/tokens');
76
-
77
- /** @type {import('tailwindcss').Config} */
78
- module.exports = {
79
- content: ['./app/**/*.{tsx,ts,jsx,js}'],
80
- presets: [require('nativewind/preset')],
81
- important: 'html',
82
- theme: { extend: tokens.theme },
83
- };
84
- ```
85
-
86
- ```tsx
87
- // theme/provider.tsx - created by `adopt`
88
- import { createGluestackUIProvider } from '@flipova/foundation/ui';
89
- import { config } from './config';
90
-
91
- export const AppThemeProvider = createGluestackUIProvider(config);
92
- ```
93
-
94
- `createGluestackUIProvider` is the same provider the package exports, built
95
- around *your* theme. `GluestackUIProvider` is that factory applied to the
96
- package's own theme, so an app that never adopts anything keeps working
97
- unchanged.
98
-
99
- From then on the normal pipeline applies to your branding, on your files:
100
-
101
- ```bash
102
- npm run design:gen # design/*.xml -> theme/config.ts + theme/tokens.js
103
- npm run design:verify # the registries are in step with the artifacts
104
- npm run design:check # determinism rules + XSD, on YOUR registries
105
- npm run design:lint
106
- ```
107
-
108
- `npx flipova-design where` always says which side is in charge:
109
-
110
- ```
111
- registries …/my-app/design (adopted by this project)
112
- artifacts …/my-app/theme (owned by this project)
113
- ```
114
-
115
- ## Wire the theme into your Tailwind config
116
-
117
- `tailwind.config.js`, `globals.css` and `postcss.config.js` are app-level files,
118
- so the package does not ship them: `init` injects them, and the whole design
119
- system is one generated Tailwind theme, published as
120
- `@flipova/foundation/tokens`.
121
-
122
- ```js
123
- // tailwind.config.js
124
- const tokens = require('@flipova/foundation/tokens');
125
-
126
- /** @type {import('tailwindcss').Config} */
127
- module.exports = {
128
- content: ['./app/**/*.{tsx,ts,jsx,js}'],
129
- presets: [require('nativewind/preset')],
130
- important: 'html',
131
- theme: { extend: tokens.theme },
132
- };
133
- ```
134
-
135
- ```css
136
- /* globals.css */
137
- @tailwind base;
138
- @tailwind components;
139
- @tailwind utilities;
140
- ```
141
-
142
- ```js
143
- // postcss.config.js
144
- module.exports = { plugins: { tailwindcss: {}, autoprefixer: {} } };
145
- ```
146
-
147
- Every registry value is then available as an utility: `bg-primary/50`, `p-4`,
148
- `rounded-md`, `text-2xs`, `shadow-hard-1`, `z-modal`, `ease-standard`, and the
149
- `xs:`/`md:`/`lg:`/`2xl:` breakpoints.
150
-
151
- Mount the provider once at the root so the colour variables actually exist:
152
-
153
- ```tsx
154
- import { GluestackUIProvider } from '@flipova/foundation/ui';
155
-
156
- export default function App() {
157
- return <GluestackUIProvider mode="system">{/* ... */}</GluestackUIProvider>;
158
- }
159
- ```
160
-
161
- ### Font variables
162
-
163
- Some `family` entries delegate to *your* app fonts through CSS variables. Define
164
- them once (or through your font loader):
165
-
166
- ```css
167
- :root {
168
- --font-sans: Inter, system-ui, sans-serif;
169
- --font-heading: Inter, system-ui, sans-serif;
170
- }
171
- ```
172
-
173
- If one is missing, `font-family: var(--font-sans)` is invalid and the text falls
174
- back to the inherited font - it does not break, but it is not what you expect.
175
- `font-system`, `font-mono` and `font-serif` are self-contained stacks that need
176
- no variable.
177
-
178
- ## Optional virtual environment
179
-
180
- A `python3` (or `python`) that can import `lxml` is enough; the tooling probes
181
- `PATH` for one. To pin the dependencies instead, create a venv anywhere and point
182
- `FOUNDATION_VENV` at it:
183
-
184
- ```bash
185
- python3 -m venv design/tools/.venv
186
- design/tools/.venv/bin/pip install -r node_modules/@flipova/foundation/design/tools/requirements.txt # Linux/macOS
187
- design/tools/.venv/Scripts/python -m pip install -r node_modules/@flipova/foundation/design/tools/requirements.txt # Windows
188
- ```
189
-
190
- Resolution order: `$FOUNDATION_PYTHON`, then `$FOUNDATION_VENV`, then
191
- `design/tools/.venv`, then the first `python3`/`python` on `PATH` able to import
192
- `lxml`.
193
-
194
- ## Verify the install
195
-
196
- ```bash
197
- npx flipova-design lint
198
- ```
199
-
200
- A clean install reports zero errors. Continue with **Quick Start**.
201
- ]]> </content>
202
- </article>
203
- <article id="quick-start" title="Quick Start" slug="getting-started/quick-start">
204
- <content><![CDATA[
205
- # Quick Start
206
-
207
- The design pipeline does one job: it turns the **tokens** and **themes**
208
- registries into the gluestack/nativewind theme config. Edit the XML, then
209
- regenerate.
210
-
211
- ```bash
212
- # 1. XSD conformance of every XML under design/
213
- npm run design:lint
214
-
215
- # 2. Determinism rules + ruff lint of the toolchain
216
- npm run design:check
217
-
218
- # 3. Compile tokens/themes -> config.ts (colour vars) + tokens.js (Tailwind theme)
219
- npm run design:gen
220
-
221
- # 4. Verify the committed canonical index is in sync
222
- npm run design:verify
223
-
224
- # 5. Regenerate the documentation site (docs/generated)
225
- npm run design:doc
226
- ```
227
-
228
- Or run the whole chain at once:
229
-
230
- ```bash
231
- npm run design:pipeline
232
- ```
233
-
234
- Commit the regenerated `config.ts`, `tokens.js`, `docs/generated/**` and
235
- `design/canonical.index.txt` together with the XML change.
236
- ]]> </content>
237
- </article>
238
- </section>
239
- <section id="theming" title="Theming" order="2">
240
- <article id="overview" title="Theming Overview" slug="theming/overview">
241
- <content><![CDATA[
242
- # Theming Overview
243
-
244
- Theming is registry-driven and has two halves:
245
-
246
- - **`design/tokens.xml`** - the atomic values (spacing, colours, typography,
247
- shadows, animation). Colours live in the `color` token as shaded palette
248
- entries (e.g. `primary.600`, `gray.200`).
249
- - **`design/themes.xml`** - each theme (`light`, `dark`) maps **semantic roles**
250
- to token references. The role ids are exactly the gluestack/nativewind CSS
251
- variable names without the leading `--`, so `primary-foreground` becomes
252
- `--primary-foreground`, `card-foreground` becomes `--card-foreground`, and so
253
- on.
254
-
255
- At generation time `generate.py` turns those two files into two artifacts:
256
-
257
- - **`config.ts`** - every role resolved to a concrete colour and emitted as a
258
- **space-separated RGB triplet** (the format nativewind/gluestack expect, e.g.
259
- `37 99 235`), which enables Tailwind opacity modifiers such as `bg-primary/50`;
260
- - **`tokens.js`** - the **entire** Tailwind theme, where each role also becomes a
261
- `rgb(var(--<role>)/<alpha-value>)` colour, alongside every scale token
262
- (spacing, radii, breakpoints, typography, shadow, z-index, opacity, motion).
263
-
264
- `tailwind.config.js` therefore holds **no design value at all**: it only wires
265
- `extend: tokens.theme`. The XML registries are the single source of truth for
266
- both the runtime variables and every utility class - the registry and the theme
267
- can never drift apart.
268
-
269
- See **Tokens**, **Themes** and the generated **gluestack config** for details.
270
- ]]> </content>
271
- </article>
272
- <article id="tokens" title="Tokens" slug="theming/tokens">
273
- <content><![CDATA[
274
- # Tokens
275
-
276
- `design/tokens.xml` declares the atomic design values. Every token has a
277
- `kind` (`scale`, `map`, `font`, `color`, `shadow`, `animation`) and a set of
278
- `<value>` entries. Token ids are addressable from themes and styles with the
279
- `$ref.tokens.<id>.<value-id>` syntax.
280
-
281
- The listing below is generated directly from the registry - it is never
282
- duplicated by hand.
283
- ]]> </content>
284
- </article>
285
- <article id="themes" title="Themes" slug="theming/themes">
286
- <content><![CDATA[
287
- # Themes
288
-
289
- `design/themes.xml` declares the themes (`default="light"`). Each theme holds a
290
- `roleMap` of semantic roles to colour token references. A role id is the
291
- gluestack CSS variable name without the leading `--`, so the registry and the
292
- runtime config stay in lockstep.
293
-
294
- The generated listing below reflects the current registry.
295
- ]]> </content>
296
- </article>
297
- <article id="gluestack-config" title="gluestack config" slug="theming/gluestack-config">
298
- <content><![CDATA[
299
- # gluestack config
300
-
301
- `npm run design:gen` compiles the registries into
302
- `components/ui/gluestack-ui-provider/config.ts`:
303
-
304
- ```ts
305
- // Generated by design/tools/sources/generate.py -- do not edit by hand.
306
- // Source of truth: design/tokens.xml + design/themes.xml
307
- import { vars } from 'nativewind';
308
-
309
- export const colors = {
310
- light: {
311
- '--background': '250 250 250',
312
- '--primary': '37 99 235',
313
- '--primary-foreground': '255 255 255',
314
- // ...
315
- },
316
- dark: {
317
- '--background': '24 24 27',
318
- '--primary': '59 130 246',
319
- '--primary-foreground': '255 255 255',
320
- // ...
321
- },
322
- };
323
-
324
- export const config = {
325
- light: vars(colors.light),
326
- dark: vars(colors.dark),
327
- };
328
- ```
329
-
330
- The provider (`components/ui/gluestack-ui-provider`) applies `config[mode]`, and
331
- `useGluestackColors()` converts each space-separated triplet back to hex when a
332
- library needs a literal colour.
333
-
334
- To change a colour: edit `design/themes.xml` (or the palette in
335
- `design/tokens.xml`) and run `npm run design:gen`.
336
-
337
- ## Design tokens
338
-
339
- The second generated artifact is `components/ui/gluestack-ui-provider/tokens.js`.
340
- It is the **entire** Tailwind theme: `tailwind.config.js` contains no design
341
- value at all, it only does `extend: tokens.theme`. So the XML registries are the
342
- single source of truth for the gluestack/nativewind theme.
343
-
344
- In a consuming project, that same theme is published as
345
- `@flipova/foundation/tokens` - see **Installation** for the three-line setup.
346
-
347
- Two inputs feed it:
348
-
349
- - **semantic colours**, one per `themes.xml` role, bound to the CSS variables
350
- emitted in `config.ts` (this is what keeps `bg-primary/50` working);
351
- - **scale tokens**, from `design/tokens.xml`.
352
-
353
- ```js
354
- module.exports = {
355
- theme: {
356
- colors: {
357
- primary: 'rgb(var(--primary)/<alpha-value>)',
358
- 'primary-foreground': 'rgb(var(--primary-foreground)/<alpha-value>)',
359
- success: 'rgb(var(--success)/<alpha-value>)',
360
- // ... one entry per themes.xml role
361
- },
362
- spacing: { '0': '0px', '1': '4px', '4': '16px' },
363
- borderRadius: { 'sm': '4px', 'md': '8px', 'full': '9999px' },
364
- screens: { 'xs': '480px', 'sm': '640px', 'md': '768px' },
365
- fontFamily: {
366
- system: ['system-ui', '-apple-system', 'sans-serif'],
367
- body: ['var(--font-sans)'],
368
- roboto: ['Roboto', 'sans-serif'],
369
- },
370
- fontSize: { 'xs': '12px', 'md': '16px' },
371
- fontWeight: { 'normal': '400', 'bold': '700' },
372
- lineHeight: { 'md': '24px', '5xl': '1' },
373
- letterSpacing: { 'tight': '-0.025em' },
374
- boxShadow: { 'md': '0px 3px 4px rgb(0 0 0 / 0.1)', 'soft-1': '...' },
375
- zIndex: { 'modal': '2000', 'toast': '3000' },
376
- opacity: { 'faint': '0.08', 'muted': '0.4' },
377
- transitionDuration: { 'normal': '200ms' },
378
- transitionTimingFunction: { 'standard': 'cubic-bezier(0.4, 0, 0.2, 1)' },
379
- },
380
- };
381
- ```
382
-
383
- Adding a semantic colour = adding a `<role>` in **every** theme of
384
- `themes.xml`; adding a scale = adding a `<value>` in `design/tokens.xml`. Then
385
- run `npm run design:gen` and every utility (`bg-success`, `p-4`, `rounded-md`,
386
- `shadow-hard-1`, `z-modal`, `ease-standard`, ...) exists.
387
-
388
- The raw `color` palette is deliberately not injected into Tailwind: it is
389
- internal, and only the semantic colours are meaningful as utilities.
390
- ]]> </content>
391
- </article>
392
- </section>
393
- <section id="tools" title="CLI &amp; Tools" order="3">
394
- <article id="overview" title="Tools Overview" slug="tools/overview">
395
- <content><![CDATA[
396
- # Tools Overview
397
-
398
- The design toolchain is a handful of Python scripts under
399
- `design/tools/sources/`, wired together only through `manifest.xml` and
400
- `schema.xsd`:
401
-
402
- | Tool | Role |
403
- |---|---|
404
- | `linter.py` | Validates **XSD conformance** of every XML file. 100% agnostic: it only knows "XML <-> XSD". |
405
- | `checker.py` | Applies the **determinism rules** declared in `meta/determinism`; during `--check` it also lints `sources/` with `ruff`. |
406
- | `generate.py` | Compiles `tokens.xml` + `themes.xml` into `config.ts` (colour variables) and `tokens.js` (the whole Tailwind theme). |
407
- | `docgen.py` | Generates the documentation site under `docs/generated` from `documentation.xml`, `schema.xsd`, `tokens.xml` and `themes.xml`. |
408
- | `xmleditor.py` | Visual, XSD-driven XML block editor (tkinter GUI + headless CLI) for the registry files. |
409
-
410
- Folder layout:
411
-
412
- ```
413
- design/tools/
414
- ├── sources/ Python scripts + their dot-packages (.checker, .docgen, .generate, .linter, .xmleditor)
415
- ├── windows/ Windows wrappers (.cmd) - pin the venv interpreter
416
- ├── unix/ Linux/macOS wrappers (.sh) - pin the venv interpreter
417
- ├── design.js cross-platform Node entry point used by the npm scripts
418
- ├── requirements.txt
419
- ```
420
-
421
- ### Editor schema resolution
422
-
423
- XML-aware editors (VS Code Red Hat XML / LemMinX, …) resolve the registries
424
- through the OASIS catalog in `.vscode/xml-catalog.xml`, registered in
425
- `.vscode/settings.json` under `xml.catalogs`. It maps
426
- `urn:flipova:foundation:registry` to `design/schema.xsd`, so validation never
427
- depends on `xsi:schemaLocation` path resolution (which is what makes the
428
- `schema_reference.4` / `cvc-elt.1.a` errors appear on Windows when a path is
429
- mis-resolved).
430
- ]]> </content>
431
- </article>
432
- <article id="commands" title="Commands" slug="tools/commands">
433
- <content><![CDATA[
434
- # Commands
435
-
436
- All commands go through `design/tools/design.js` (or the `.cmd`/`.sh`
437
- wrappers) and are exposed as npm scripts:
438
-
439
- | npm script | Target | Runs |
440
- |---|---|---|
441
- | `npm run design:gen` | `gen` | `generate.py` - compile tokens/themes into `config.ts` + `tokens.js` |
442
- | `npm run design:gen:check` | `gen --check` | verify regeneration is a no-op (drift check) |
443
- | `npm run design:check` | `check` | determinism rules + XSD pass + ruff |
444
- | `npm run design:verify` | `verify` | verify the committed canonical index |
445
- | `npm run design:canonical` | `canonical` | re-emit `design/canonical.index.txt` |
446
- | `npm run design:lint` | `lint` | XSD-validate every design XML |
447
- | `npm run design:doc` | `doc` | regenerate `docs/generated` |
448
- | `npm run design:edit` | `edit` | open the XML editor (GUI) |
449
- | `npm run design:pipeline` | `pipeline` | `gen` + `check` + `verify` + `lint` + `doc` |
450
-
451
- `generate.py` also supports `--check` directly, and `checker.py` supports
452
- `--list-rules`, `--emit-canonical`, `--verify-canonical` and
453
- `--sync-version`.
454
- ]]> </content>
455
- </article>
456
- </section>
457
- <section id="contributing" title="Contributing" order="4">
458
- <article id="how-to-contribute" title="How to Contribute" slug="contributing/how-to-contribute">
459
- <content><![CDATA[
460
- # How to Contribute
461
-
462
- ## The channels
463
-
464
- Work lands on `dev`, and travels the release ladder one branch at a time. Each
465
- channel accepts only the one before it:
466
-
467
- ```
468
- dev -> alpha -> beta -> rc -> main -> tag @org/repo@X.Y.Z
469
- ```
470
-
471
- `main` is production. For this repository the deliverable is the npm package, so
472
- `main` publishes; in another repository it would be a site, an image, anything.
473
-
474
- 1. Branch off `dev` and open a pull request into `dev`: squash is the only merge
475
- allowed for work branches, and one review is required.
476
- 2. Promote from the **workspace**, not from this repository. `corral` walks the
477
- ladder, waits for the checks, and never cuts a delivery short:
478
-
479
- ```bash
480
- corral promote v2.4.2-alpha.1 --repo foundation --merge # dev -> alpha, tag
481
- corral promote v2.4.2-beta.1 --repo foundation --merge # alpha -> beta, tag
482
- corral promote v2.4.2-rc.1 --repo foundation --merge # beta -> rc, tag
483
- corral promote v2.4.2 --repo foundation --merge # rc -> main, tag
484
- ```
485
-
486
- The tag is what publishes. `.github/workflows/release.yml` refuses a tag that
487
- does not match the version in `package.json`, runs `npm run deploy`, and opens
488
- the GitHub release with the notes GitHub generates for it.
489
-
490
- ## Designing in this repository
491
-
492
- The registries are the single source of truth. Change the XML, and the generated
493
- files follow.
494
-
495
- ```
496
- design/
497
- |-- manifest.xml pipeline config + determinism rules
498
- |-- schema.xsd the contract the linter validates
499
- |-- tokens.xml tokens: spacing, colours, typography, shadows, motion
500
- |-- themes.xml theme role maps (light, dark)
501
- |-- documentation.xml this page's own source
502
- |-- canonical.index.txt generated index of every entry
503
- |-- tools/ Python toolchain (linter, checker, generate, docgen, xmleditor)
504
-
505
- components/ui/gluestack-ui-provider/
506
- |-- config.ts GENERATED: colour variables, light and dark
507
- |-- tokens.js GENERATED: the whole Tailwind theme
508
-
509
- docs/generated/ GENERATED: this site
510
- tailwind.config.js only wires `extend: tokens.theme` - never a design value
511
- ```
512
-
513
- Where a change goes:
514
-
515
- | You want to change | Edit |
516
- | --- | --- |
517
- | a palette value, a scale | `design/tokens.xml` |
518
- | a semantic colour, a role | `design/themes.xml` |
519
- | a determinism rule | `<determinism>` in `design/manifest.xml` |
520
- | a documentation page | the `<article><content>` in `design/documentation.xml` |
521
-
522
- Four rules the tooling cannot check for you:
523
-
524
- 1. **Add a semantic colour to every theme** in `design/themes.xml`. A role that
525
- exists in only one theme renders as a missing role in the other.
526
- 2. **Never add a design value to `tailwind.config.js`.** Colours, scales, font
527
- families, shadows and z-index belong in the registries.
528
- 3. **Never hand-edit a generated file** (`config.ts`, `tokens.js`,
529
- `docs/generated/**`). The next run overwrites it.
530
- 4. **Commit the sources and the regenerated output together**, or
531
- `npm run design:gen:check` (run by CI) fails on drift.
532
-
533
- ### A theming change, in one line
534
-
535
- Add or edit a `<role>` in `design/themes.xml` whose `id` is the gluestack CSS
536
- variable name without the `--` prefix, point it at a token, then
537
- `npm run design:gen`. `tokens.js` - and therefore every Tailwind utility -
538
- follows on its own.
539
-
540
- ## The gate
541
-
542
- ```bash
543
- npm run design:pipeline # gen, check, verify, lint, doc
544
- npm run typecheck
545
- npm test
546
- ```
547
-
548
- CI runs all of it on every pull request, plus `npm run format:check` and the
549
- build: `.github/workflows/dev.yml` on `dev`, `staging.yml` for a pull request
550
- into `staging`, and `release.yml` on the release channels and `main`. The design
551
- gate is not a formatter — nothing is rewritten, so a failure always means "look
552
- at this".
553
-
554
- If you touched a registry, run `npm run design:canonical` and commit
555
- `design/canonical.index.txt`.
556
-
557
- ## Versioning
558
-
559
- There is exactly **one** version in this repository: the root `package.json`,
560
- the one that actually gets published. The registries store no copy of it:
561
- `design/manifest.xml` has **no** `<version>` element, the XSD would reject it, so
562
- a second copy cannot be reintroduced by accident. `corral promote` writes that
563
- one version, and the release workflow refuses a tag that disagrees with it.
564
-
565
- ### The release path
566
-
567
- ```
568
- branch
569
- |
570
- v pull request into dev (CI: lint, format, typecheck, tests, build, design gate)
571
- dev
572
- |
573
- v promote (each merge waits for the checks to be green)
574
- alpha
575
- |
576
- v promote
577
- beta
578
- |
579
- v promote
580
- rc
581
- |
582
- v promote
583
- main
584
- |
585
- v tag @org/repo@X.Y.Z (the tag must match package.json)
586
- npm
587
- ```
588
-
589
- Nothing publishes from an ordinary commit: only a release tag on `main` reaches the
590
- registry, through the trusted publisher (OIDC) declared on npm, so there is no
591
- token to rotate and no secret to leak.
592
- ]]> </content>
593
- </article>
594
- </section>
595
- <section id="schema-reference" title="Schema Reference" order="5">
596
- <article id="schema" title="Schema Reference" slug="schema-reference/schema">
597
- <content><![CDATA[
598
- # Schema Reference
599
-
600
- Generated directly from `design/schema.xsd` - a schema change flows through
601
- automatically, with no hand-maintained copy.
602
- ]]> </content>
603
- </article>
604
- </section>
605
- </documentation>
606
-
607
-