@flipova/foundation 2.4.3 → 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 +142 -38
  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
@@ -0,0 +1,189 @@
1
+ import React from 'react';
2
+ import type { UiComponents } from '../../contract';
3
+ import { defineAdapter } from '../types';
4
+ import { Accordion } from './components/Accordion';
5
+ import { ActionSheet } from './components/ActionSheet';
6
+ import { Alert } from './components/Alert';
7
+ import { AlertDialog } from './components/AlertDialog';
8
+ import { Avatar } from './components/Avatar';
9
+ import { Badge } from './components/Badge';
10
+ import { BottomSheet } from './components/BottomSheet';
11
+ import { Box } from './components/Box';
12
+ import { Button } from './components/Button';
13
+ import { Calendar } from './components/Calendar';
14
+ import { Card } from './components/Card';
15
+ import { Center } from './components/Center';
16
+ import { Checkbox } from './components/Checkbox';
17
+ import { DateTimePicker } from './components/DateTimePicker';
18
+ import { Divider } from './components/Divider';
19
+ import { Drawer } from './components/Drawer';
20
+ import { Fab } from './components/Fab';
21
+ import { FlatList } from './components/FlatList';
22
+ import { FormControl } from './components/FormControl';
23
+ import { Grid } from './components/Grid';
24
+ import { HStack } from './components/HStack';
25
+ import { Heading } from './components/Heading';
26
+ import { Icon } from './components/Icon';
27
+ import { Image } from './components/Image';
28
+ import { ImageBackground } from './components/ImageBackground';
29
+ import { ImageViewer } from './components/ImageViewer';
30
+ import { Input } from './components/Input';
31
+ import { InputAccessoryView } from './components/InputAccessoryView';
32
+ import { KeyboardAvoidingView } from './components/KeyboardAvoidingView';
33
+ import { Link } from './components/Link';
34
+ import { LiquidGlass } from './components/LiquidGlass';
35
+ import { Menu } from './components/Menu';
36
+ import { Modal } from './components/Modal';
37
+ import { Popover } from './components/Popover';
38
+ import { Pressable } from './components/Pressable';
39
+ import { Progress } from './components/Progress';
40
+ import { RadioGroup } from './components/RadioGroup';
41
+ import { RefreshControl } from './components/RefreshControl';
42
+ import { SafeAreaView } from './components/SafeAreaView';
43
+ import { ScrollView } from './components/ScrollView';
44
+ import { SectionList } from './components/SectionList';
45
+ import { Select } from './components/Select';
46
+ import { Skeleton } from './components/Skeleton';
47
+ import { Slider } from './components/Slider';
48
+ import { Spinner } from './components/Spinner';
49
+ import { StatusBar } from './components/StatusBar';
50
+ import { Switch } from './components/Switch';
51
+ import { Table } from './components/Table';
52
+ import { Tabs } from './components/Tabs';
53
+ import { Text } from './components/Text';
54
+ import { Textarea } from './components/Textarea';
55
+ import { Toast } from './components/Toast';
56
+ import { Tooltip } from './components/Tooltip';
57
+ import { VStack } from './components/VStack';
58
+ import { View } from './components/View';
59
+ import { VirtualizedList } from './components/VirtualizedList';
60
+ import { Portal, PortalHost } from './components/Portal';
61
+
62
+ export {
63
+ Accordion,
64
+ ActionSheet,
65
+ Alert,
66
+ AlertDialog,
67
+ Avatar,
68
+ Badge,
69
+ BottomSheet,
70
+ Box,
71
+ Button,
72
+ Calendar,
73
+ Card,
74
+ Center,
75
+ Checkbox,
76
+ DateTimePicker,
77
+ Divider,
78
+ Drawer,
79
+ Fab,
80
+ FlatList,
81
+ FormControl,
82
+ Grid,
83
+ HStack,
84
+ Heading,
85
+ Icon,
86
+ Image,
87
+ ImageBackground,
88
+ ImageViewer,
89
+ Input,
90
+ InputAccessoryView,
91
+ KeyboardAvoidingView,
92
+ Link,
93
+ LiquidGlass,
94
+ Menu,
95
+ Modal,
96
+ Popover,
97
+ Portal,
98
+ Pressable,
99
+ Progress,
100
+ RadioGroup,
101
+ RefreshControl,
102
+ SafeAreaView,
103
+ ScrollView,
104
+ SectionList,
105
+ Select,
106
+ Skeleton,
107
+ Slider,
108
+ Spinner,
109
+ StatusBar,
110
+ Switch,
111
+ Table,
112
+ Tabs,
113
+ Text,
114
+ Textarea,
115
+ Toast,
116
+ Tooltip,
117
+ VStack,
118
+ View,
119
+ VirtualizedList,
120
+ PortalHost,
121
+ };
122
+
123
+ /** Flipova's own components: React Native primitives styled only from the recipes, so they carry the design as is. */
124
+ export const flipovaComponents: UiComponents = {
125
+ Accordion,
126
+ ActionSheet,
127
+ Alert,
128
+ AlertDialog,
129
+ Avatar,
130
+ Badge,
131
+ BottomSheet,
132
+ Box,
133
+ Button,
134
+ Calendar,
135
+ Card,
136
+ Center,
137
+ Checkbox,
138
+ DateTimePicker,
139
+ Divider,
140
+ Drawer,
141
+ Fab,
142
+ FlatList,
143
+ FormControl,
144
+ Grid,
145
+ HStack,
146
+ Heading,
147
+ Icon,
148
+ Image,
149
+ ImageBackground,
150
+ ImageViewer,
151
+ Input,
152
+ InputAccessoryView,
153
+ KeyboardAvoidingView,
154
+ Link,
155
+ LiquidGlass,
156
+ Menu,
157
+ Modal,
158
+ Popover,
159
+ Portal,
160
+ Pressable,
161
+ Progress,
162
+ RadioGroup,
163
+ RefreshControl,
164
+ SafeAreaView,
165
+ ScrollView,
166
+ SectionList,
167
+ Select,
168
+ Skeleton,
169
+ Slider,
170
+ Spinner,
171
+ StatusBar,
172
+ Switch,
173
+ Table,
174
+ Tabs,
175
+ Text,
176
+ Textarea,
177
+ Toast,
178
+ Tooltip,
179
+ VStack,
180
+ View,
181
+ VirtualizedList,
182
+ };
183
+
184
+ export const flipova = defineAdapter({
185
+ name: 'flipova',
186
+ // the portal host is the one thing to mount: <Portal> content is drawn there, above the app
187
+ Provider: ({ children }) => <PortalHost>{children}</PortalHost>,
188
+ components: flipovaComponents,
189
+ });
@@ -0,0 +1,226 @@
1
+ import React from 'react';
2
+ import type {
3
+ SkeletonProps,
4
+ BoxProps,
5
+ CenterProps,
6
+ DividerProps,
7
+ HeadingProps,
8
+ HStackProps,
9
+ LinkProps,
10
+ PressableProps,
11
+ SpinnerProps,
12
+ TextareaProps,
13
+ VStackProps,
14
+ BadgeProps,
15
+ ButtonProps,
16
+ CardProps,
17
+ InputProps,
18
+ ProviderComponents,
19
+ SwitchProps,
20
+ TextProps,
21
+ } from '../../contract';
22
+ import { Badge as GBadge, BadgeText } from './ui/badge';
23
+ import { Box as GBox } from './ui/box';
24
+ import { Skeleton as GSkeleton } from './ui/skeleton';
25
+ import { Center as GCenter } from './ui/center';
26
+ import { Divider as GDivider } from './ui/divider';
27
+ import { Heading as GHeading } from './ui/heading';
28
+ import { HStack as GHStack } from './ui/hstack';
29
+ import { Link as GLink, LinkText } from './ui/link';
30
+ import { Pressable as GPressable } from './ui/pressable';
31
+ import { Spinner as GSpinner } from './ui/spinner';
32
+ import { Textarea as GTextarea, TextareaInput } from './ui/textarea';
33
+ import { VStack as GVStack } from './ui/vstack';
34
+ import { Button as GButton, ButtonSpinner, ButtonText } from './ui/button';
35
+ import { Card as GCard } from './ui/card';
36
+ import { Input as GInput, InputField } from './ui/input';
37
+ import { Switch as GSwitch } from './ui/switch';
38
+ import { Text as GText } from './ui/text';
39
+ import { createGluestackUIProvider } from './ui/gluestack-ui-provider';
40
+ import * as more from './more';
41
+ import { cssVarTables } from '../css-vars';
42
+ import { stackRecipe } from '../../contract';
43
+ import { useResolvedTheme } from '../provider';
44
+ import type { ThemeRegistry } from '../../contract';
45
+ import { rnBase } from '../rn-base';
46
+ import { defineAdapter } from '../types';
47
+
48
+ /** The reference implementation: the package's own gluestack components, exposed through the contract. */
49
+ function Button(p: ButtonProps) {
50
+ return (
51
+ <GButton
52
+ variant={p.variant}
53
+ size={p.size}
54
+ isDisabled={p.disabled || p.loading}
55
+ onPress={p.onPress}
56
+ accessibilityLabel={p.accessibilityLabel}
57
+ testID={p.testID}
58
+ >
59
+ {p.loading ? <ButtonSpinner /> : null}
60
+ {typeof p.children === 'string' ? <ButtonText>{p.children}</ButtonText> : p.children}
61
+ </GButton>
62
+ );
63
+ }
64
+
65
+ const Text = (p: TextProps) => (
66
+ <GText
67
+ size={p.size}
68
+ bold={p.bold}
69
+ underline={p.underline}
70
+ strikeThrough={p.strikeThrough}
71
+ isTruncated={p.isTruncated}
72
+ testID={p.testID}
73
+ >
74
+ {p.children}
75
+ </GText>
76
+ );
77
+
78
+ const Input = (p: InputProps) => (
79
+ <GInput isDisabled={p.disabled} isInvalid={p.invalid}>
80
+ <InputField
81
+ value={p.value}
82
+ defaultValue={p.defaultValue}
83
+ placeholder={p.placeholder}
84
+ onChangeText={p.onChangeText}
85
+ type={p.secureTextEntry ? 'password' : 'text'}
86
+ accessibilityLabel={p.accessibilityLabel}
87
+ testID={p.testID}
88
+ />
89
+ </GInput>
90
+ );
91
+
92
+ const Card = (p: CardProps) => (
93
+ <GCard size={p.size} testID={p.testID}>
94
+ {p.children}
95
+ </GCard>
96
+ );
97
+
98
+ const Badge = (p: BadgeProps) => (
99
+ <GBadge variant={p.variant} testID={p.testID}>
100
+ <BadgeText>{p.children}</BadgeText>
101
+ </GBadge>
102
+ );
103
+
104
+ const Switch = (p: SwitchProps) => (
105
+ <GSwitch
106
+ value={!!p.value}
107
+ onValueChange={p.onValueChange}
108
+ isDisabled={p.disabled}
109
+ size={p.size}
110
+ accessibilityLabel={p.accessibilityLabel}
111
+ testID={p.testID}
112
+ />
113
+ );
114
+
115
+ // ---- layout and the rest of the components this library really has ----------------------------------------------
116
+
117
+ const Box = (p: BoxProps) => <GBox testID={p.testID}>{p.children}</GBox>;
118
+ const Center = (p: CenterProps) => <GCenter testID={p.testID}>{p.children}</GCenter>;
119
+
120
+ // the gap comes from the same spacing step as every other provider, not from gluestack's own `space` presets
121
+ function HStack(p: HStackProps) {
122
+ const gap = stackRecipe('row', p, useResolvedTheme()).gap;
123
+ return (
124
+ <GHStack testID={p.testID} style={{ gap: gap as number }}>
125
+ {p.children}
126
+ </GHStack>
127
+ );
128
+ }
129
+ function VStack(p: VStackProps) {
130
+ const gap = stackRecipe('column', p, useResolvedTheme()).gap;
131
+ return (
132
+ <GVStack testID={p.testID} style={{ gap: gap as number }}>
133
+ {p.children}
134
+ </GVStack>
135
+ );
136
+ }
137
+
138
+ const HEADING_SIZE = { 1: '3xl', 2: '2xl', 3: 'xl', 4: 'lg', 5: 'md', 6: 'sm' } as const;
139
+ const Heading = (p: HeadingProps) => (
140
+ <GHeading size={HEADING_SIZE[p.level ?? 2]} isTruncated={p.isTruncated} testID={p.testID}>
141
+ {p.children}
142
+ </GHeading>
143
+ );
144
+
145
+ const Divider = (p: DividerProps) => <GDivider orientation={p.orientation} testID={p.testID} />;
146
+
147
+ const Spinner = (p: SpinnerProps) => (
148
+ <GSpinner size={p.size === 'lg' ? 'large' : 'small'} aria-label={p.accessibilityLabel} testID={p.testID} />
149
+ );
150
+
151
+ const Pressable = (p: PressableProps) => (
152
+ <GPressable onPress={p.onPress} disabled={p.disabled} accessibilityLabel={p.accessibilityLabel} testID={p.testID}>
153
+ {p.children}
154
+ </GPressable>
155
+ );
156
+
157
+ const Link = (p: LinkProps) => (
158
+ <GLink href={p.href} onPress={p.onPress} testID={p.testID}>
159
+ {typeof p.children === 'string' ? <LinkText>{p.children}</LinkText> : p.children}
160
+ </GLink>
161
+ );
162
+
163
+ const Textarea = (p: TextareaProps) => (
164
+ <GTextarea isDisabled={p.disabled} isInvalid={p.invalid}>
165
+ <TextareaInput
166
+ value={p.value}
167
+ defaultValue={p.defaultValue}
168
+ placeholder={p.placeholder}
169
+ onChangeText={p.onChangeText}
170
+ numberOfLines={p.rows ?? 4}
171
+ accessibilityLabel={p.accessibilityLabel}
172
+ testID={p.testID}
173
+ />
174
+ </GTextarea>
175
+ );
176
+
177
+ const Skeleton = (p: SkeletonProps) => (
178
+ <GSkeleton
179
+ variant={p.circle ? 'circular' : 'rounded'}
180
+ style={{ width: p.width as number | undefined, height: p.height }}
181
+ testID={p.testID}
182
+ />
183
+ );
184
+
185
+ const components: ProviderComponents = {
186
+ ...rnBase,
187
+ Button,
188
+ Text,
189
+ Input,
190
+ Card,
191
+ Badge,
192
+ Switch,
193
+ Box,
194
+ Center,
195
+ HStack,
196
+ VStack,
197
+ Heading,
198
+ Divider,
199
+ Spinner,
200
+ Pressable,
201
+ Link,
202
+ Textarea,
203
+ Skeleton,
204
+ ...more,
205
+ } as ProviderComponents;
206
+
207
+ // one gluestack provider per registry: the theme is the app's own, never a file inside this package
208
+ const providers = new WeakMap<ThemeRegistry, ReturnType<typeof createGluestackUIProvider>>();
209
+ function providerFor(registry: ThemeRegistry) {
210
+ let p = providers.get(registry);
211
+ if (!p) providers.set(registry, (p = createGluestackUIProvider(cssVarTables(registry))));
212
+ return p;
213
+ }
214
+
215
+ export const gluestack = defineAdapter({
216
+ name: 'gluestack',
217
+ Provider: ({ theme, registry, children }) => {
218
+ const Themed = providerFor(registry);
219
+ return (
220
+ <Themed mode={theme.mode as 'light' | 'dark'} variant={theme.variant}>
221
+ {children}
222
+ </Themed>
223
+ );
224
+ },
225
+ components,
226
+ });
@@ -0,0 +1,151 @@
1
+ import React from 'react';
2
+ import type {
3
+ FabProps,
4
+ FlatListProps,
5
+ ImageBackgroundProps,
6
+ ImageProps,
7
+ InputAccessoryViewProps,
8
+ KeyboardAvoidingViewProps,
9
+ ModalProps,
10
+ RefreshControlProps,
11
+ SafeAreaViewProps,
12
+ ScrollViewProps,
13
+ SectionListProps,
14
+ StatusBarProps,
15
+ ViewProps,
16
+ VirtualizedListProps,
17
+ } from '../../contract';
18
+ import { iconRecipe } from '../../contract';
19
+ import { useResolvedTheme } from '../provider';
20
+ import { Fab as GFab, FabLabel } from './ui/fab';
21
+ import { FlatList as GFlatList } from './ui/flat-list';
22
+ import { Image as GImage } from './ui/image';
23
+ import { ImageBackground as GImageBackground } from './ui/image-background';
24
+ import { InputAccessoryView as GInputAccessoryView } from './ui/input-accessory-view';
25
+ import { KeyboardAvoidingView as GKeyboardAvoidingView } from './ui/keyboard-avoiding-view';
26
+ import { Modal as GModal, ModalBackdrop, ModalBody, ModalContent, ModalHeader } from './ui/modal';
27
+ import { RefreshControl as GRefreshControl } from './ui/refresh-control';
28
+ import { SafeAreaView as GSafeAreaView } from './ui/safe-area-view';
29
+ import { ScrollView as GScrollView } from './ui/scroll-view';
30
+ import { SectionList as GSectionList } from './ui/section-list';
31
+ import { StatusBar as GStatusBar } from './ui/status-bar';
32
+ import { View as GView } from './ui/view';
33
+ import { VirtualizedList as GVirtualizedList } from './ui/virtualized-list';
34
+ import { Text as RNText } from 'react-native';
35
+
36
+ /** gluestack's own components for the rest of the contract; many of them are thin re-exports of React Native. */
37
+
38
+ export const View = (p: ViewProps) => <GView testID={p.testID}>{p.children}</GView>;
39
+ export const ScrollView = (p: ScrollViewProps) => (
40
+ <GScrollView testID={p.testID} horizontal={p.horizontal}>
41
+ {p.children}
42
+ </GScrollView>
43
+ );
44
+ export const SafeAreaView = (p: SafeAreaViewProps) => (
45
+ <GSafeAreaView testID={p.testID} style={{ flex: 1 }}>
46
+ {p.children}
47
+ </GSafeAreaView>
48
+ );
49
+ export const KeyboardAvoidingView = (p: KeyboardAvoidingViewProps) => (
50
+ <GKeyboardAvoidingView testID={p.testID} style={{ flex: 1 }}>
51
+ {p.children}
52
+ </GKeyboardAvoidingView>
53
+ );
54
+
55
+ const keyOf = (k?: (item: unknown, i: number) => string) => k ?? ((_: unknown, i: number) => String(i));
56
+
57
+ export const FlatList = (p: FlatListProps) => (
58
+ <GFlatList
59
+ testID={p.testID}
60
+ data={p.data}
61
+ horizontal={p.horizontal}
62
+ keyExtractor={keyOf(p.keyExtractor)}
63
+ renderItem={({ item, index }) => <>{p.renderItem(item, index)}</>}
64
+ ListEmptyComponent={p.empty ? <>{p.empty}</> : undefined}
65
+ />
66
+ );
67
+
68
+ export const VirtualizedList = (p: VirtualizedListProps) => (
69
+ <GVirtualizedList
70
+ testID={p.testID}
71
+ data={p.data}
72
+ horizontal={p.horizontal}
73
+ getItem={(data: unknown[], i: number) => data[i]}
74
+ getItemCount={(data: unknown[]) => data.length}
75
+ keyExtractor={keyOf(p.keyExtractor)}
76
+ renderItem={({ item, index }: { item: unknown; index: number }) => <>{p.renderItem(item, index)}</>}
77
+ ListEmptyComponent={p.empty ? <>{p.empty}</> : undefined}
78
+ />
79
+ );
80
+
81
+ export const SectionList = (p: SectionListProps) => (
82
+ <GSectionList
83
+ testID={p.testID}
84
+ sections={p.sections}
85
+ keyExtractor={keyOf(p.keyExtractor)}
86
+ renderItem={({ item, index }) => <>{p.renderItem(item, index)}</>}
87
+ renderSectionHeader={({ section }) => <RNText accessibilityRole="header">{section.title}</RNText>}
88
+ />
89
+ );
90
+
91
+ export function RefreshControl(p: RefreshControlProps) {
92
+ const t = useResolvedTheme();
93
+ return (
94
+ <GRefreshControl
95
+ refreshing={p.refreshing}
96
+ onRefresh={p.onRefresh}
97
+ tintColor={t.colors.primary}
98
+ colors={[t.colors.primary]}
99
+ />
100
+ );
101
+ }
102
+
103
+ export function StatusBar({ style = 'auto' }: StatusBarProps) {
104
+ const t = useResolvedTheme();
105
+ const dark = style === 'auto' ? t.mode === 'dark' : style === 'light';
106
+ return <GStatusBar barStyle={dark ? 'light-content' : 'dark-content'} />;
107
+ }
108
+
109
+ export const InputAccessoryView = (p: InputAccessoryViewProps) => (
110
+ <GInputAccessoryView nativeID={p.nativeID}>{p.children}</GInputAccessoryView>
111
+ );
112
+
113
+ export const Image = (p: ImageProps) => (
114
+ <GImage
115
+ testID={p.testID}
116
+ source={{ uri: p.source }}
117
+ alt={p.alt}
118
+ resizeMode={p.resizeMode ?? 'cover'}
119
+ style={{ width: p.width, height: p.height }}
120
+ />
121
+ );
122
+
123
+ export const ImageBackground = (p: ImageBackgroundProps) => (
124
+ <GImageBackground testID={p.testID} source={{ uri: p.source }} resizeMode="cover">
125
+ {p.children}
126
+ </GImageBackground>
127
+ );
128
+
129
+ export function Fab(p: FabProps) {
130
+ const t = useResolvedTheme();
131
+ return (
132
+ <GFab onPress={p.onPress} accessibilityLabel={p.accessibilityLabel ?? p.label ?? 'Action'} testID={p.testID}>
133
+ <FabLabel>{iconRecipe({ name: p.icon ?? 'plus' }, t).glyph}</FabLabel>
134
+ {p.label ? <FabLabel>{p.label}</FabLabel> : null}
135
+ </GFab>
136
+ );
137
+ }
138
+
139
+ export const Modal = (p: ModalProps) => (
140
+ <GModal isOpen={p.visible} onClose={p.onClose} testID={p.testID}>
141
+ <ModalBackdrop />
142
+ <ModalContent>
143
+ {p.title ? (
144
+ <ModalHeader>
145
+ <RNText accessibilityRole="header">{p.title}</RNText>
146
+ </ModalHeader>
147
+ ) : null}
148
+ <ModalBody>{p.children}</ModalBody>
149
+ </ModalContent>
150
+ </GModal>
151
+ );
@@ -58,7 +58,7 @@ const UIAccordion = createAccordion({
58
58
  Content: View,
59
59
  });
60
60
 
61
- cssInterop(UIIcon, {
61
+ (cssInterop as any)(UIIcon, {
62
62
  className: {
63
63
  target: 'style',
64
64
  nativeStyleToProp: {
@@ -71,7 +71,7 @@ cssInterop(UIIcon, {
71
71
  },
72
72
  });
73
73
 
74
- cssInterop(H3, {
74
+ (cssInterop as any)(H3, {
75
75
  className: {
76
76
  target: 'style',
77
77
  },
@@ -36,7 +36,7 @@ type IAnimatedPressableProps = React.ComponentProps<typeof Pressable> &
36
36
 
37
37
  const AnimatedPressable = createMotionAnimatedComponent(Pressable) as React.ComponentType<IAnimatedPressableProps>;
38
38
 
39
- export const UIActionsheet = createActionsheet({
39
+ export const UIActionsheet: any = createActionsheet({
40
40
  Root: View,
41
41
  Content: MotionView,
42
42
  Item: ItemWrapper,
@@ -53,26 +53,26 @@ export const UIActionsheet = createActionsheet({
53
53
  AnimatePresence: AnimatePresence,
54
54
  });
55
55
 
56
- cssInterop(UIActionsheet, { className: 'style' });
57
- cssInterop(UIActionsheet.Content, { className: 'style' });
58
- cssInterop(UIActionsheet.Item, { className: 'style' });
59
- cssInterop(UIActionsheet.ItemText, { className: 'style' });
60
- cssInterop(UIActionsheet.DragIndicator, { className: 'style' });
61
- cssInterop(UIActionsheet.DragIndicatorWrapper, { className: 'style' });
62
- cssInterop(UIActionsheet.Backdrop, { className: 'style' });
63
- cssInterop(UIActionsheet.ScrollView, {
56
+ (cssInterop as any)(UIActionsheet, { className: 'style' });
57
+ (cssInterop as any)(UIActionsheet.Content, { className: 'style' });
58
+ (cssInterop as any)(UIActionsheet.Item, { className: 'style' });
59
+ (cssInterop as any)(UIActionsheet.ItemText, { className: 'style' });
60
+ (cssInterop as any)(UIActionsheet.DragIndicator, { className: 'style' });
61
+ (cssInterop as any)(UIActionsheet.DragIndicatorWrapper, { className: 'style' });
62
+ (cssInterop as any)(UIActionsheet.Backdrop, { className: 'style' });
63
+ (cssInterop as any)(UIActionsheet.ScrollView, {
64
64
  className: 'style',
65
65
  contentContainerClassName: 'contentContainerStyle',
66
66
  indicatorClassName: 'indicatorStyle',
67
67
  });
68
- cssInterop(UIActionsheet.VirtualizedList, {
68
+ (cssInterop as any)(UIActionsheet.VirtualizedList, {
69
69
  className: 'style',
70
70
  ListFooterComponentClassName: 'ListFooterComponentStyle',
71
71
  ListHeaderComponentClassName: 'ListHeaderComponentStyle',
72
72
  contentContainerClassName: 'contentContainerStyle',
73
73
  indicatorClassName: 'indicatorStyle',
74
74
  });
75
- cssInterop(UIActionsheet.FlatList, {
75
+ (cssInterop as any)(UIActionsheet.FlatList, {
76
76
  className: 'style',
77
77
  ListFooterComponentClassName: 'ListFooterComponentStyle',
78
78
  ListHeaderComponentClassName: 'ListHeaderComponentStyle',
@@ -80,10 +80,10 @@ cssInterop(UIActionsheet.FlatList, {
80
80
  contentContainerClassName: 'contentContainerStyle',
81
81
  indicatorClassName: 'indicatorStyle',
82
82
  });
83
- cssInterop(UIActionsheet.SectionList, { className: 'style' });
84
- cssInterop(UIActionsheet.SectionHeaderText, { className: 'style' });
83
+ (cssInterop as any)(UIActionsheet.SectionList, { className: 'style' });
84
+ (cssInterop as any)(UIActionsheet.SectionHeaderText, { className: 'style' });
85
85
 
86
- cssInterop(UIIcon, {
86
+ (cssInterop as any)(UIIcon, {
87
87
  className: {
88
88
  target: 'style',
89
89
  nativeStyleToProp: {
@@ -259,7 +259,7 @@ const ActionsheetContent = React.forwardRef<React.ComponentRef<typeof UIActionsh
259
259
  },
260
260
  );
261
261
 
262
- const ActionsheetItem = React.forwardRef<React.ComponentRef<typeof UIActionsheet.Item>, IActionsheetItemProps>(
262
+ const ActionsheetItem: any = React.forwardRef<React.ComponentRef<typeof UIActionsheet.Item>, IActionsheetItemProps>(
263
263
  function ActionsheetItem({ className, ...props }, ref) {
264
264
  return (
265
265
  <UIActionsheet.Item
@@ -46,7 +46,7 @@ export const UIAlert = createAlert({
46
46
  Icon: UIIcon,
47
47
  });
48
48
 
49
- cssInterop(UIIcon, {
49
+ (cssInterop as any)(UIIcon, {
50
50
  className: {
51
51
  target: 'style',
52
52
  nativeStyleToProp: {
@@ -24,8 +24,8 @@ const UIAccessibleAlertDialog = createAlertDialog({
24
24
  Backdrop: AnimatedPressable,
25
25
  });
26
26
 
27
- cssInterop(AnimatedPressable, { className: 'style' });
28
- cssInterop(AnimatedView, { className: 'style' });
27
+ (cssInterop as any)(AnimatedPressable, { className: 'style' });
28
+ (cssInterop as any)(AnimatedView, { className: 'style' });
29
29
 
30
30
  const alertDialogStyle = tva({
31
31
  base: 'group/modal w-full h-full justify-center items-center web:pointer-events-none',
@@ -106,7 +106,7 @@ const AlertDialog = React.forwardRef<React.ComponentRef<typeof UIAccessibleAlert
106
106
  },
107
107
  );
108
108
 
109
- const AlertDialogContent = React.forwardRef<
109
+ const AlertDialogContent: any = React.forwardRef<
110
110
  React.ComponentRef<typeof UIAccessibleAlertDialog.Content>,
111
111
  IAlertDialogContentProps
112
112
  >(function AlertDialogContent({ className, size, ...props }, ref) {