@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,915 @@
1
+ 'use strict';
2
+
3
+ var chunkRWVTZUEG_js = require('./chunk-RWVTZUEG.js');
4
+ var chunk6UKTC4KF_js = require('./chunk-6UKTC4KF.js');
5
+ var chunk2T2TCUYF_js = require('./chunk-2T2TCUYF.js');
6
+ var React5 = require('react');
7
+ var reactNative = require('react-native');
8
+ var jsxRuntime = require('react/jsx-runtime');
9
+
10
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
11
+
12
+ var React5__default = /*#__PURE__*/_interopDefault(React5);
13
+
14
+ function Accordion({ items, type = "single", value, defaultValue = [], onValueChange, testID }) {
15
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
16
+ const r = chunk2T2TCUYF_js.accordionRecipe(t);
17
+ const [inner, setInner] = React5.useState(defaultValue);
18
+ const open = value ?? inner;
19
+ const toggle = (key) => {
20
+ const next = open.includes(key) ? open.filter((k) => k !== key) : type === "single" ? [key] : [...open, key];
21
+ if (value === void 0) setInner(next);
22
+ onValueChange?.(next);
23
+ };
24
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { testID, style: r.container, children: items.map((it, i) => {
25
+ const isOpen = open.includes(it.key);
26
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: i === items.length - 1 ? {} : r.item, children: [
27
+ /* @__PURE__ */ jsxRuntime.jsxs(
28
+ reactNative.Pressable,
29
+ {
30
+ accessibilityRole: "button",
31
+ "aria-expanded": isOpen,
32
+ "aria-disabled": it.disabled || void 0,
33
+ disabled: it.disabled,
34
+ onPress: () => toggle(it.key),
35
+ style: r.header(isOpen, !!it.disabled),
36
+ children: [
37
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.title, children: it.title }),
38
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.chevron, children: chunk2T2TCUYF_js.iconRecipe({ name: isOpen ? "chevron-up" : "chevron-down" }, t).glyph })
39
+ ]
40
+ }
41
+ ),
42
+ isOpen ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: r.content, children: it.content }) : null
43
+ ] }, it.key);
44
+ }) });
45
+ }
46
+ function ActionSheet({ visible, onClose, title, actions, cancelLabel = "Cancel", testID }) {
47
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
48
+ const r = chunk2T2TCUYF_js.sheetRecipe(t);
49
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, animationType: "slide", visible, onRequestClose: onClose, testID, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { accessibilityLabel: "Close", onPress: onClose, style: r.backdrop, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Pressable, { accessible: false, onPress: () => {
50
+ }, style: r.panel, children: [
51
+ title ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.title, children: title }) : null,
52
+ actions.map((a) => /* @__PURE__ */ jsxRuntime.jsx(
53
+ reactNative.Pressable,
54
+ {
55
+ accessibilityRole: "button",
56
+ onPress: () => {
57
+ onClose?.();
58
+ a.onPress?.();
59
+ },
60
+ style: r.action,
61
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.actionLabel(!!a.destructive), children: a.label })
62
+ },
63
+ a.key
64
+ )),
65
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { accessibilityRole: "button", onPress: onClose, style: r.cancel, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.cancelLabel, children: cancelLabel }) })
66
+ ] }) }) });
67
+ }
68
+ function Alert(p) {
69
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
70
+ const r = chunk2T2TCUYF_js.alertRecipe(p, t);
71
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { accessibilityRole: "alert", style: r.container, testID: p.testID, children: [
72
+ p.title ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.title, children: p.title }) : null,
73
+ typeof p.children === "string" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.body, children: p.children }) : p.children
74
+ ] });
75
+ }
76
+ function AlertDialog(p) {
77
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
78
+ const r = chunk2T2TCUYF_js.alertDialogRecipe(t);
79
+ const cancel = chunk2T2TCUYF_js.buttonRecipe({ variant: "outline" }, t);
80
+ const confirm = chunk2T2TCUYF_js.buttonRecipe({ variant: p.destructive ? "destructive" : "default" }, t);
81
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, animationType: "fade", visible: p.visible, onRequestClose: p.onCancel, testID: p.testID, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: r.backdrop, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { accessibilityRole: "alertdialog", "aria-modal": true, style: r.panel, children: [
82
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: r.title, children: p.title }),
83
+ p.description ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.description, children: p.description }) : null,
84
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: r.actions, children: [
85
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { accessibilityRole: "button", onPress: p.onCancel, style: cancel.container, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: cancel.label, children: p.cancelLabel ?? "Cancel" }) }),
86
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { accessibilityRole: "button", onPress: p.onConfirm, style: confirm.container, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: confirm.label, children: p.confirmLabel ?? "Confirm" }) })
87
+ ] })
88
+ ] }) }) });
89
+ }
90
+ function Avatar(p) {
91
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
92
+ const r = chunk2T2TCUYF_js.avatarRecipe(p, t);
93
+ const [failed, setFailed] = React5.useState(false);
94
+ const showImage = !!p.source && !failed;
95
+ return /* @__PURE__ */ jsxRuntime.jsx(
96
+ reactNative.View,
97
+ {
98
+ accessibilityRole: "image",
99
+ accessibilityLabel: p.accessibilityLabel ?? p.name,
100
+ style: r.container,
101
+ testID: p.testID,
102
+ children: showImage ? /* @__PURE__ */ jsxRuntime.jsx(
103
+ reactNative.Image,
104
+ {
105
+ source: { uri: p.source },
106
+ style: r.image,
107
+ onError: () => setFailed(true),
108
+ accessibilityIgnoresInvertColors: true
109
+ }
110
+ ) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.initials, children: chunk2T2TCUYF_js.initialsOf(p.name) })
111
+ }
112
+ );
113
+ }
114
+ function Badge(p) {
115
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
116
+ const r = chunk2T2TCUYF_js.badgeRecipe(p, t);
117
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: r.container, testID: p.testID, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.label, children: p.children }) });
118
+ }
119
+ function BottomSheet({ visible, onClose, title, children, testID }) {
120
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
121
+ const r = chunk2T2TCUYF_js.sheetRecipe(t);
122
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, animationType: "slide", visible, onRequestClose: onClose, testID, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { accessibilityLabel: "Close", onPress: onClose, style: r.backdrop, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Pressable, { accessible: false, onPress: () => {
123
+ }, style: r.panel, children: [
124
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: r.handle }),
125
+ title ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: r.title, children: title }) : null,
126
+ children
127
+ ] }) }) });
128
+ }
129
+ function Button(p) {
130
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
131
+ const r = chunk2T2TCUYF_js.buttonRecipe(p, t);
132
+ const inactive = !!(p.disabled || p.loading);
133
+ return /* @__PURE__ */ jsxRuntime.jsxs(
134
+ reactNative.Pressable,
135
+ {
136
+ accessibilityRole: "button",
137
+ accessibilityLabel: p.accessibilityLabel,
138
+ "aria-disabled": inactive,
139
+ "aria-busy": !!p.loading,
140
+ disabled: inactive,
141
+ onPress: p.onPress,
142
+ testID: p.testID,
143
+ style: ({ pressed }) => [r.container, pressed && !inactive ? { opacity: 0.85 } : null],
144
+ children: [
145
+ p.loading ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.ActivityIndicator, { size: "small", color: r.spinner.color }) : null,
146
+ typeof p.children === "string" || typeof p.children === "number" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [r.label, p.variant === "link" ? { textDecorationLine: "underline" } : null], children: p.children }) : p.children
147
+ ]
148
+ }
149
+ );
150
+ }
151
+ var initial = (p) => {
152
+ const m = /^(\d{4})-(\d{2})$/.exec(p.month ?? "");
153
+ if (m) return [Number(m[1]), Number(m[2])];
154
+ const d = chunk2T2TCUYF_js.parseDate(p.value);
155
+ if (d) return [d[0], d[1]];
156
+ const now = /* @__PURE__ */ new Date();
157
+ return [now.getFullYear(), now.getMonth() + 1];
158
+ };
159
+ function Calendar(p) {
160
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
161
+ const r = chunk2T2TCUYF_js.calendarRecipe(t);
162
+ const [[y, m], setYm] = React5.useState(() => initial(p));
163
+ const start = p.weekStartsOn ?? 0;
164
+ const weekdays = [...chunk2T2TCUYF_js.WEEKDAYS.slice(start), ...chunk2T2TCUYF_js.WEEKDAYS.slice(0, start)];
165
+ const go = (by) => setYm(([yy, mm]) => chunk2T2TCUYF_js.shiftMonth(yy, mm, by));
166
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { testID: p.testID, style: r.container, children: [
167
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: r.header, children: [
168
+ /* @__PURE__ */ jsxRuntime.jsx(
169
+ reactNative.Pressable,
170
+ {
171
+ accessibilityRole: "button",
172
+ accessibilityLabel: "Previous month",
173
+ onPress: () => go(-1),
174
+ style: r.nav,
175
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.navLabel, children: chunk2T2TCUYF_js.iconRecipe({ name: "chevron-left" }, t).glyph })
176
+ }
177
+ ),
178
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Text, { accessibilityRole: "header", style: r.title, children: [
179
+ chunk2T2TCUYF_js.MONTHS[m - 1],
180
+ " ",
181
+ y
182
+ ] }),
183
+ /* @__PURE__ */ jsxRuntime.jsx(
184
+ reactNative.Pressable,
185
+ {
186
+ accessibilityRole: "button",
187
+ accessibilityLabel: "Next month",
188
+ onPress: () => go(1),
189
+ style: r.nav,
190
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.navLabel, children: chunk2T2TCUYF_js.iconRecipe({ name: "chevron-right" }, t).glyph })
191
+ }
192
+ )
193
+ ] }),
194
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: r.weekRow, children: weekdays.map((d) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.weekday, children: d }, d)) }),
195
+ chunk2T2TCUYF_js.monthGrid(y, m, p).map((week, wi) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: r.row, children: week.map(
196
+ (c, ci) => c.date === null ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: r.day(false, true) }, ci) : /* @__PURE__ */ jsxRuntime.jsx(
197
+ reactNative.Pressable,
198
+ {
199
+ accessibilityRole: "button",
200
+ accessibilityLabel: c.date,
201
+ "aria-selected": c.date === p.value,
202
+ "aria-disabled": c.disabled || void 0,
203
+ disabled: c.disabled,
204
+ onPress: () => p.onChange?.(c.date),
205
+ style: r.day(c.date === p.value, c.disabled),
206
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.dayLabel(c.date === p.value, c.disabled), children: c.day })
207
+ },
208
+ ci
209
+ )
210
+ ) }, wi))
211
+ ] });
212
+ }
213
+ function Card(p) {
214
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
215
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: chunk2T2TCUYF_js.cardRecipe(p, t), testID: p.testID, children: p.children });
216
+ }
217
+ function Center({ children, testID }) {
218
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { testID, style: chunk2T2TCUYF_js.centerRecipe(), children });
219
+ }
220
+ function Checkbox(p) {
221
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
222
+ const r = chunk2T2TCUYF_js.checkboxRecipe(p, t);
223
+ return /* @__PURE__ */ jsxRuntime.jsxs(
224
+ reactNative.Pressable,
225
+ {
226
+ accessibilityRole: "checkbox",
227
+ accessibilityLabel: p.accessibilityLabel ?? p.label,
228
+ "aria-checked": !!p.checked,
229
+ "aria-disabled": !!p.disabled,
230
+ disabled: p.disabled,
231
+ onPress: () => p.onCheckedChange?.(!p.checked),
232
+ style: r.row,
233
+ testID: p.testID,
234
+ children: [
235
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: r.box, children: p.checked ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.mark, children: "\u2713" }) : null }),
236
+ p.label ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.label, children: p.label }) : null
237
+ ]
238
+ }
239
+ );
240
+ }
241
+ function DateTimePicker(p) {
242
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
243
+ const field = chunk2T2TCUYF_js.inputRecipe({ disabled: p.disabled }, t);
244
+ const m = chunk2T2TCUYF_js.modalRecipe({ visible: true }, t);
245
+ const [open, setOpen] = React5.useState(false);
246
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
247
+ /* @__PURE__ */ jsxRuntime.jsx(
248
+ reactNative.Pressable,
249
+ {
250
+ testID: p.testID,
251
+ accessibilityRole: "button",
252
+ accessibilityLabel: p.accessibilityLabel ?? p.placeholder ?? "Pick a date",
253
+ "aria-disabled": p.disabled || void 0,
254
+ disabled: p.disabled,
255
+ onPress: () => setOpen(true),
256
+ style: field.container,
257
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: field.field, children: p.value || p.placeholder || "YYYY-MM-DD" })
258
+ }
259
+ ),
260
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, animationType: "fade", visible: open, onRequestClose: () => setOpen(false), children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { accessibilityLabel: "Close", onPress: () => setOpen(false), style: m.backdrop, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { accessible: false, onPress: () => {
261
+ }, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { children: /* @__PURE__ */ jsxRuntime.jsx(
262
+ Calendar,
263
+ {
264
+ value: p.value,
265
+ min: p.min,
266
+ max: p.max,
267
+ onChange: (d) => {
268
+ p.onChange?.(d);
269
+ setOpen(false);
270
+ }
271
+ }
272
+ ) }) }) }) })
273
+ ] });
274
+ }
275
+ function Divider(p) {
276
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
277
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityRole: "none", style: chunk2T2TCUYF_js.dividerRecipe(p, t), testID: p.testID });
278
+ }
279
+ function Drawer({ visible, onClose, side = "left", children, testID }) {
280
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
281
+ const r = chunk2T2TCUYF_js.drawerRecipe(side, t);
282
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, animationType: "fade", visible, onRequestClose: onClose, testID, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { accessibilityLabel: "Close", onPress: onClose, style: r.backdrop, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { accessible: false, onPress: () => {
283
+ }, style: r.panel, children }) }) });
284
+ }
285
+ function Fab(p) {
286
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
287
+ const r = chunk2T2TCUYF_js.fabRecipe(p, t);
288
+ const glyph = chunk2T2TCUYF_js.iconRecipe({ name: p.icon ?? "plus" }, t).glyph;
289
+ return /* @__PURE__ */ jsxRuntime.jsxs(
290
+ reactNative.Pressable,
291
+ {
292
+ testID: p.testID,
293
+ accessibilityRole: "button",
294
+ accessibilityLabel: p.accessibilityLabel ?? p.label ?? "Action",
295
+ onPress: p.onPress,
296
+ style: r.container,
297
+ children: [
298
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.icon, children: glyph }),
299
+ p.label ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.label, children: p.label }) : null
300
+ ]
301
+ }
302
+ );
303
+ }
304
+ function FormControl(p) {
305
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
306
+ const r = chunk2T2TCUYF_js.formControlRecipe(!!p.disabled, t);
307
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { testID: p.testID, style: r.root, children: [
308
+ p.label ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Text, { style: r.label, children: [
309
+ p.label,
310
+ p.required ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.required, children: " *" }) : null
311
+ ] }) : null,
312
+ p.children,
313
+ p.error ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "alert", style: r.error, children: p.error }) : p.helper ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.helper, children: p.helper }) : null
314
+ ] });
315
+ }
316
+ function Grid(p) {
317
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
318
+ const r = chunk2T2TCUYF_js.gridRecipe(p, t);
319
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { testID: p.testID, style: r.container, children: React5__default.default.Children.toArray(p.children).map((child, i) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: r.cell, children: child }, i)) });
320
+ }
321
+ function HStack(p) {
322
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
323
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { testID: p.testID, style: chunk2T2TCUYF_js.stackRecipe("row", p, t), children: p.children });
324
+ }
325
+ function Heading(p) {
326
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
327
+ return /* @__PURE__ */ jsxRuntime.jsx(
328
+ reactNative.Text,
329
+ {
330
+ accessibilityRole: "header",
331
+ "aria-level": p.level ?? 2,
332
+ style: chunk2T2TCUYF_js.headingRecipe(p, t),
333
+ numberOfLines: p.isTruncated ? 1 : void 0,
334
+ testID: p.testID,
335
+ children: p.children
336
+ }
337
+ );
338
+ }
339
+ function Icon(p) {
340
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
341
+ const r = chunk2T2TCUYF_js.iconRecipe(p, t);
342
+ return /* @__PURE__ */ jsxRuntime.jsx(
343
+ reactNative.Text,
344
+ {
345
+ testID: p.testID,
346
+ accessibilityLabel: p.accessibilityLabel,
347
+ accessible: !!p.accessibilityLabel,
348
+ importantForAccessibility: p.accessibilityLabel ? "yes" : "no-hide-descendants",
349
+ style: r.style,
350
+ children: r.glyph
351
+ }
352
+ );
353
+ }
354
+ function ImageViewer({ visible, source, alt, onClose, testID }) {
355
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
356
+ const r = chunk2T2TCUYF_js.imageViewerRecipe(t);
357
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, animationType: "fade", visible, onRequestClose: onClose, testID, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: r.backdrop, children: [
358
+ /* @__PURE__ */ jsxRuntime.jsx(
359
+ reactNative.Image,
360
+ {
361
+ source: { uri: source },
362
+ alt,
363
+ accessibilityLabel: alt,
364
+ resizeMode: "contain",
365
+ style: r.image
366
+ }
367
+ ),
368
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { accessibilityRole: "button", accessibilityLabel: "Close", onPress: onClose, style: r.close, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.closeLabel, children: chunk2T2TCUYF_js.iconRecipe({ name: "close" }, t).glyph }) })
369
+ ] }) });
370
+ }
371
+ function Input(p) {
372
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
373
+ const r = chunk2T2TCUYF_js.inputRecipe(p, t);
374
+ const [focused, setFocused] = React5.useState(false);
375
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [r.container, focused ? { borderColor: r.focusBorderColor } : null], children: /* @__PURE__ */ jsxRuntime.jsx(
376
+ reactNative.TextInput,
377
+ {
378
+ style: r.field,
379
+ value: p.value,
380
+ defaultValue: p.defaultValue,
381
+ placeholder: p.placeholder,
382
+ placeholderTextColor: r.placeholderTextColor,
383
+ onChangeText: p.onChangeText,
384
+ editable: !p.disabled,
385
+ secureTextEntry: p.secureTextEntry,
386
+ accessibilityLabel: p.accessibilityLabel,
387
+ "aria-invalid": p.invalid || void 0,
388
+ onFocus: () => setFocused(true),
389
+ onBlur: () => setFocused(false),
390
+ testID: p.testID
391
+ }
392
+ ) });
393
+ }
394
+ function Link({ href, onPress, children, testID }) {
395
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
396
+ return /* @__PURE__ */ jsxRuntime.jsx(
397
+ reactNative.Text,
398
+ {
399
+ testID,
400
+ accessibilityRole: "link",
401
+ style: chunk2T2TCUYF_js.linkRecipe(t),
402
+ onPress: () => {
403
+ onPress?.();
404
+ if (href) void reactNative.Linking.openURL(href);
405
+ },
406
+ children
407
+ }
408
+ );
409
+ }
410
+ function LiquidGlass({ children, testID }) {
411
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
412
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { testID, style: chunk2T2TCUYF_js.liquidGlassRecipe(t), children });
413
+ }
414
+ function Menu({ label, items, testID }) {
415
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
416
+ const r = chunk2T2TCUYF_js.menuRecipe(t);
417
+ const b = chunk2T2TCUYF_js.buttonRecipe({ variant: "outline" }, t);
418
+ const [open, setOpen] = React5.useState(false);
419
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { testID, style: { position: "relative", alignSelf: "flex-start" }, children: [
420
+ /* @__PURE__ */ jsxRuntime.jsx(
421
+ reactNative.Pressable,
422
+ {
423
+ accessibilityRole: "button",
424
+ "aria-haspopup": "menu",
425
+ "aria-expanded": open,
426
+ onPress: () => setOpen(!open),
427
+ style: b.container,
428
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: b.label, children: label })
429
+ }
430
+ ),
431
+ open ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityRole: "menu", style: r.panel, children: items.map((it) => /* @__PURE__ */ jsxRuntime.jsx(
432
+ reactNative.Pressable,
433
+ {
434
+ accessibilityRole: "menuitem",
435
+ "aria-disabled": it.disabled || void 0,
436
+ disabled: it.disabled,
437
+ onPress: () => {
438
+ setOpen(false);
439
+ it.onSelect?.();
440
+ },
441
+ style: r.item(!!it.disabled),
442
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.label(!!it.destructive), children: it.label })
443
+ },
444
+ it.key
445
+ )) }) : null
446
+ ] });
447
+ }
448
+ function Modal(p) {
449
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
450
+ const r = chunk2T2TCUYF_js.modalRecipe(p, t);
451
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, animationType: "fade", visible: p.visible, onRequestClose: p.onClose, testID: p.testID, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { accessibilityLabel: "Close", onPress: p.onClose, style: r.backdrop, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Pressable, { accessible: false, onPress: () => {
452
+ }, style: r.panel, children: [
453
+ p.title ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: r.title, children: p.title }) : null,
454
+ p.children
455
+ ] }) }) });
456
+ }
457
+ function Popover({ trigger, open, onOpenChange, children, testID }) {
458
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
459
+ const r = chunk2T2TCUYF_js.popoverRecipe(t);
460
+ const [inner, setInner] = React5.useState(false);
461
+ const isOpen = open ?? inner;
462
+ const set = (v) => {
463
+ if (open === void 0) setInner(v);
464
+ onOpenChange?.(v);
465
+ };
466
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { testID, style: { position: "relative", alignSelf: "flex-start" }, children: [
467
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { accessibilityRole: "button", "aria-expanded": isOpen, onPress: () => set(!isOpen), children: trigger }),
468
+ isOpen ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: r.panel, children }) : null
469
+ ] });
470
+ }
471
+ function Progress(p) {
472
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
473
+ const r = chunk2T2TCUYF_js.progressRecipe(p, t);
474
+ return /* @__PURE__ */ jsxRuntime.jsx(
475
+ reactNative.View,
476
+ {
477
+ accessibilityRole: "progressbar",
478
+ accessibilityLabel: p.accessibilityLabel,
479
+ "aria-valuemin": 0,
480
+ "aria-valuemax": 100,
481
+ "aria-valuenow": r.value,
482
+ style: r.track,
483
+ testID: p.testID,
484
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: r.bar })
485
+ }
486
+ );
487
+ }
488
+ function RadioGroup(p) {
489
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
490
+ const r = chunk2T2TCUYF_js.radioRecipe(p, t);
491
+ return /* @__PURE__ */ jsxRuntime.jsx(
492
+ reactNative.View,
493
+ {
494
+ accessibilityRole: "radiogroup",
495
+ accessibilityLabel: p.accessibilityLabel,
496
+ style: r.group,
497
+ testID: p.testID,
498
+ children: p.options.map((o) => {
499
+ const selected = o.value === p.value;
500
+ const off = !!(p.disabled || o.disabled);
501
+ return /* @__PURE__ */ jsxRuntime.jsxs(
502
+ reactNative.Pressable,
503
+ {
504
+ accessibilityRole: "radio",
505
+ "aria-checked": selected,
506
+ "aria-disabled": off,
507
+ disabled: off,
508
+ onPress: () => p.onValueChange?.(o.value),
509
+ style: r.row,
510
+ children: [
511
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: r.circle(selected), children: selected ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: r.dot }) : null }),
512
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.label, children: o.label })
513
+ ]
514
+ },
515
+ o.value
516
+ );
517
+ })
518
+ }
519
+ );
520
+ }
521
+ function Select(p) {
522
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
523
+ const r = chunk2T2TCUYF_js.selectRecipe(p, t);
524
+ const [open, setOpen] = React5.useState(false);
525
+ const current = p.options.find((o) => o.value === p.value);
526
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { testID: p.testID, children: [
527
+ /* @__PURE__ */ jsxRuntime.jsxs(
528
+ reactNative.Pressable,
529
+ {
530
+ accessibilityRole: "combobox",
531
+ accessibilityLabel: p.accessibilityLabel,
532
+ "aria-expanded": open,
533
+ "aria-disabled": !!p.disabled,
534
+ disabled: p.disabled,
535
+ onPress: () => setOpen((o) => !o),
536
+ style: [r.trigger, open ? { borderColor: r.focusBorderColor } : null],
537
+ children: [
538
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [r.triggerLabel, current ? null : { color: r.placeholderColor }], numberOfLines: 1, children: current ? current.label : p.placeholder ?? "" }),
539
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: { color: r.placeholderColor }, children: open ? "\u25B4" : "\u25BE" })
540
+ ]
541
+ }
542
+ ),
543
+ open ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: r.menu, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { children: p.options.map((o) => {
544
+ const selected = o.value === p.value;
545
+ return /* @__PURE__ */ jsxRuntime.jsx(
546
+ reactNative.Pressable,
547
+ {
548
+ accessibilityRole: "menuitem",
549
+ "aria-selected": selected,
550
+ "aria-disabled": !!o.disabled,
551
+ disabled: o.disabled,
552
+ onPress: () => {
553
+ p.onValueChange?.(o.value);
554
+ setOpen(false);
555
+ },
556
+ style: [
557
+ r.option,
558
+ selected ? r.optionSelected : null,
559
+ o.disabled ? { opacity: r.disabledOptionOpacity } : null
560
+ ],
561
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [r.optionLabel, selected ? r.optionLabelSelected : null], children: o.label })
562
+ },
563
+ o.value
564
+ );
565
+ }) }) }) : null
566
+ ] });
567
+ }
568
+ function Skeleton(p) {
569
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
570
+ const r = chunk2T2TCUYF_js.skeletonRecipe(p, t);
571
+ const opacity = React5.useRef(new reactNative.Animated.Value(1)).current;
572
+ React5.useEffect(() => {
573
+ const loop = reactNative.Animated.loop(
574
+ reactNative.Animated.sequence([
575
+ reactNative.Animated.timing(opacity, {
576
+ toValue: r.pulse.minOpacity,
577
+ duration: r.pulse.durationMs / 2,
578
+ useNativeDriver: true
579
+ }),
580
+ reactNative.Animated.timing(opacity, { toValue: 1, duration: r.pulse.durationMs / 2, useNativeDriver: true })
581
+ ])
582
+ );
583
+ loop.start();
584
+ return () => loop.stop();
585
+ }, [opacity, r.pulse.minOpacity, r.pulse.durationMs]);
586
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Animated.View, { accessibilityRole: "none", "aria-busy": true, style: [r.block, { opacity }], testID: p.testID });
587
+ }
588
+ function Slider(p) {
589
+ const { value, onValueChange, min = 0, max = 100, step = 1, disabled, accessibilityLabel, testID } = p;
590
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
591
+ const r = chunk2T2TCUYF_js.sliderRecipe(p, t);
592
+ const [width, setWidth] = React5.useState(0);
593
+ const live = React5.useRef({ width, min, max, step, disabled, onValueChange });
594
+ live.current = { width, min, max, step, disabled, onValueChange };
595
+ const move = (x) => {
596
+ const c = live.current;
597
+ if (c.disabled || !c.width) return;
598
+ c.onValueChange?.(chunk2T2TCUYF_js.sliderValue(x / c.width, c.min, c.max, c.step));
599
+ };
600
+ const pan = React5.useRef(
601
+ reactNative.PanResponder.create({
602
+ onStartShouldSetPanResponder: () => !live.current.disabled,
603
+ onMoveShouldSetPanResponder: () => !live.current.disabled,
604
+ onPanResponderGrant: (e) => move(e.nativeEvent.locationX),
605
+ onPanResponderMove: (e) => move(e.nativeEvent.locationX)
606
+ })
607
+ ).current;
608
+ const f = chunk2T2TCUYF_js.sliderFraction(value, min, max);
609
+ const adjust = (dir) => !disabled && onValueChange?.(chunk2T2TCUYF_js.sliderValue(chunk2T2TCUYF_js.sliderFraction(value + dir * step, min, max), min, max, step));
610
+ return /* @__PURE__ */ jsxRuntime.jsxs(
611
+ reactNative.View,
612
+ {
613
+ testID,
614
+ accessibilityRole: "adjustable",
615
+ accessibilityLabel,
616
+ "aria-valuemin": min,
617
+ "aria-valuemax": max,
618
+ "aria-valuenow": value,
619
+ "aria-disabled": disabled || void 0,
620
+ accessibilityActions: [{ name: "increment" }, { name: "decrement" }],
621
+ onAccessibilityAction: (e) => adjust(e.nativeEvent.actionName === "increment" ? 1 : -1),
622
+ onLayout: (e) => setWidth(e.nativeEvent.layout.width),
623
+ style: r.root,
624
+ ...pan.panHandlers,
625
+ children: [
626
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: r.track, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [r.filled, { width: `${f * 100}%` }] }) }),
627
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [r.thumb, { left: Math.max(0, f * (width - r.thumbSize)) }] })
628
+ ]
629
+ }
630
+ );
631
+ }
632
+ function Spinner(p) {
633
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
634
+ const r = chunk2T2TCUYF_js.spinnerRecipe(p, t);
635
+ return /* @__PURE__ */ jsxRuntime.jsx(
636
+ reactNative.ActivityIndicator,
637
+ {
638
+ size: r.size,
639
+ color: r.color,
640
+ accessibilityRole: "progressbar",
641
+ accessibilityLabel: p.accessibilityLabel ?? "Loading",
642
+ style: { transform: [{ scale: r.scale }] },
643
+ testID: p.testID
644
+ }
645
+ );
646
+ }
647
+ function Switch(p) {
648
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
649
+ const r = chunk2T2TCUYF_js.switchRecipe(p, t);
650
+ return /* @__PURE__ */ jsxRuntime.jsx(
651
+ reactNative.Switch,
652
+ {
653
+ value: !!p.value,
654
+ onValueChange: p.onValueChange,
655
+ disabled: p.disabled,
656
+ trackColor: { true: r.trackOn, false: r.trackOff },
657
+ thumbColor: r.thumb,
658
+ style: { opacity: r.opacity, transform: [{ scale: r.scale }] },
659
+ accessibilityLabel: p.accessibilityLabel,
660
+ testID: p.testID
661
+ }
662
+ );
663
+ }
664
+ var cell = (node, style) => typeof node === "string" || typeof node === "number" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style, children: node }) : node;
665
+ function Table({ columns, rows, caption, testID }) {
666
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
667
+ const r = chunk2T2TCUYF_js.tableRecipe(t);
668
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { testID, accessibilityRole: "table", style: r.container, children: [
669
+ caption ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.caption, children: caption }) : null,
670
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: r.headRow, children: columns.map((c) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: r.head(c.align), children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.headLabel, children: c.label }) }, c.key)) }),
671
+ rows.map((row, i) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: r.row(i === rows.length - 1), children: columns.map((c) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: r.cell(c.align), children: cell(row[c.key], r.cellLabel) }, c.key)) }, i))
672
+ ] });
673
+ }
674
+ function Tabs(p) {
675
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
676
+ const r = chunk2T2TCUYF_js.tabsRecipe(p, t);
677
+ const [inner, setInner] = React5.useState(() => p.tabs.find((x) => !x.disabled)?.key);
678
+ const active = p.value ?? inner;
679
+ const current = p.tabs.find((x) => x.key === active);
680
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { testID: p.testID, children: [
681
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityRole: "tablist", style: r.list, children: p.tabs.map((tab) => {
682
+ const on = tab.key === active;
683
+ return /* @__PURE__ */ jsxRuntime.jsx(
684
+ reactNative.Pressable,
685
+ {
686
+ accessibilityRole: "tab",
687
+ "aria-selected": on,
688
+ "aria-disabled": !!tab.disabled,
689
+ disabled: tab.disabled,
690
+ onPress: () => {
691
+ setInner(tab.key);
692
+ p.onValueChange?.(tab.key);
693
+ },
694
+ style: r.tab(on, !!tab.disabled),
695
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.label(on), children: tab.label })
696
+ },
697
+ tab.key
698
+ );
699
+ }) }),
700
+ current?.content != null ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: r.panel, children: current.content }) : null
701
+ ] });
702
+ }
703
+ function Text24(p) {
704
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
705
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: chunk2T2TCUYF_js.textRecipe(p, t), numberOfLines: p.isTruncated ? 1 : void 0, testID: p.testID, children: p.children });
706
+ }
707
+ function Textarea(p) {
708
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
709
+ const r = chunk2T2TCUYF_js.textareaRecipe(p, t);
710
+ const [focused, setFocused] = React5.useState(false);
711
+ return /* @__PURE__ */ jsxRuntime.jsx(
712
+ reactNative.TextInput,
713
+ {
714
+ multiline: true,
715
+ numberOfLines: p.rows ?? 4,
716
+ style: [r.field, focused ? { borderColor: r.focusBorderColor } : null],
717
+ value: p.value,
718
+ defaultValue: p.defaultValue,
719
+ placeholder: p.placeholder,
720
+ placeholderTextColor: r.placeholderTextColor,
721
+ onChangeText: p.onChangeText,
722
+ editable: !p.disabled,
723
+ accessibilityLabel: p.accessibilityLabel,
724
+ "aria-invalid": p.invalid || void 0,
725
+ onFocus: () => setFocused(true),
726
+ onBlur: () => setFocused(false),
727
+ testID: p.testID
728
+ }
729
+ );
730
+ }
731
+ function Toast(p) {
732
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
733
+ const r = chunk2T2TCUYF_js.toastRecipe(p, t);
734
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { accessibilityRole: "alert", accessibilityLiveRegion: "polite", style: r.container, testID: p.testID, children: [
735
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: { flex: 1, gap: t.scale.spacing["0.5"] }, children: [
736
+ p.title ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.title, children: p.title }) : null,
737
+ p.description ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.body, children: p.description }) : null
738
+ ] }),
739
+ p.onClose ? /* @__PURE__ */ jsxRuntime.jsx(
740
+ reactNative.Pressable,
741
+ {
742
+ accessibilityRole: "button",
743
+ accessibilityLabel: "Dismiss",
744
+ onPress: p.onClose,
745
+ hitSlop: t.scale.spacing["2"],
746
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.body, children: "\u2715" })
747
+ }
748
+ ) : null
749
+ ] });
750
+ }
751
+ function Tooltip({ content, children, testID }) {
752
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
753
+ const r = chunk2T2TCUYF_js.tooltipRecipe(t);
754
+ const [show, setShow] = React5.useState(false);
755
+ const web = {
756
+ onHoverIn: () => setShow(true),
757
+ onHoverOut: () => setShow(false),
758
+ onFocus: () => setShow(true),
759
+ onBlur: () => setShow(false)
760
+ };
761
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { testID, style: { position: "relative", alignSelf: "flex-start" }, children: [
762
+ /* @__PURE__ */ jsxRuntime.jsx(
763
+ reactNative.Pressable,
764
+ {
765
+ ...web,
766
+ onLongPress: () => setShow(true),
767
+ onPressOut: () => setShow(false),
768
+ "aria-describedby": show ? "tooltip" : void 0,
769
+ children
770
+ }
771
+ ),
772
+ show ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityRole: "tooltip", style: r.bubble, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: r.label, children: content }) }) : null
773
+ ] });
774
+ }
775
+ function VStack(p) {
776
+ const t = chunk6UKTC4KF_js.useResolvedTheme();
777
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { testID: p.testID, style: chunk2T2TCUYF_js.stackRecipe("column", p, t), children: p.children });
778
+ }
779
+ var HostContext = React5.createContext(null);
780
+ function PortalHost({ children }) {
781
+ const [nodes, setNodes] = React5.useState([]);
782
+ const [host] = React5.useState(() => ({
783
+ set: (id, node) => setNodes(
784
+ (all) => all.some(([k]) => k === id) ? all.map((e) => e[0] === id ? [id, node] : e) : [...all, [id, node]]
785
+ ),
786
+ remove: (id) => setNodes((all) => all.filter(([k]) => k !== id))
787
+ }));
788
+ return /* @__PURE__ */ jsxRuntime.jsxs(HostContext.Provider, { value: host, children: [
789
+ children,
790
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { pointerEvents: "box-none", style: { position: "absolute", top: 0, left: 0, right: 0, bottom: 0 }, children: nodes.map(([id, node]) => /* @__PURE__ */ jsxRuntime.jsx(React5__default.default.Fragment, { children: node }, id)) })
791
+ ] });
792
+ }
793
+ function Portal({ children }) {
794
+ const host = React5.useContext(HostContext);
795
+ const id = React5.useId();
796
+ React5.useEffect(() => {
797
+ host?.set(id, children);
798
+ });
799
+ React5.useEffect(() => () => host?.remove(id), [host, id]);
800
+ return host ? null : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
801
+ }
802
+ var flipovaComponents = {
803
+ Accordion,
804
+ ActionSheet,
805
+ Alert,
806
+ AlertDialog,
807
+ Avatar,
808
+ Badge,
809
+ BottomSheet,
810
+ Box: chunkRWVTZUEG_js.Box,
811
+ Button,
812
+ Calendar,
813
+ Card,
814
+ Center,
815
+ Checkbox,
816
+ DateTimePicker,
817
+ Divider,
818
+ Drawer,
819
+ Fab,
820
+ FlatList: chunkRWVTZUEG_js.FlatList,
821
+ FormControl,
822
+ Grid,
823
+ HStack,
824
+ Heading,
825
+ Icon,
826
+ Image: chunkRWVTZUEG_js.Image,
827
+ ImageBackground: chunkRWVTZUEG_js.ImageBackground,
828
+ ImageViewer,
829
+ Input,
830
+ InputAccessoryView: chunkRWVTZUEG_js.InputAccessoryView,
831
+ KeyboardAvoidingView: chunkRWVTZUEG_js.KeyboardAvoidingView,
832
+ Link,
833
+ LiquidGlass,
834
+ Menu,
835
+ Modal,
836
+ Popover,
837
+ Portal,
838
+ Pressable: chunkRWVTZUEG_js.Pressable,
839
+ Progress,
840
+ RadioGroup,
841
+ RefreshControl: chunkRWVTZUEG_js.RefreshControl,
842
+ SafeAreaView: chunkRWVTZUEG_js.SafeAreaView,
843
+ ScrollView: chunkRWVTZUEG_js.ScrollView,
844
+ SectionList: chunkRWVTZUEG_js.SectionList,
845
+ Select,
846
+ Skeleton,
847
+ Slider,
848
+ Spinner,
849
+ StatusBar: chunkRWVTZUEG_js.StatusBar,
850
+ Switch,
851
+ Table,
852
+ Tabs,
853
+ Text: Text24,
854
+ Textarea,
855
+ Toast,
856
+ Tooltip,
857
+ VStack,
858
+ View: chunkRWVTZUEG_js.View,
859
+ VirtualizedList: chunkRWVTZUEG_js.VirtualizedList
860
+ };
861
+ var flipova = chunk6UKTC4KF_js.defineAdapter({
862
+ name: "flipova",
863
+ // the portal host is the one thing to mount: <Portal> content is drawn there, above the app
864
+ Provider: ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(PortalHost, { children }),
865
+ components: flipovaComponents
866
+ });
867
+
868
+ exports.Accordion = Accordion;
869
+ exports.ActionSheet = ActionSheet;
870
+ exports.Alert = Alert;
871
+ exports.AlertDialog = AlertDialog;
872
+ exports.Avatar = Avatar;
873
+ exports.Badge = Badge;
874
+ exports.BottomSheet = BottomSheet;
875
+ exports.Button = Button;
876
+ exports.Calendar = Calendar;
877
+ exports.Card = Card;
878
+ exports.Center = Center;
879
+ exports.Checkbox = Checkbox;
880
+ exports.DateTimePicker = DateTimePicker;
881
+ exports.Divider = Divider;
882
+ exports.Drawer = Drawer;
883
+ exports.Fab = Fab;
884
+ exports.FormControl = FormControl;
885
+ exports.Grid = Grid;
886
+ exports.HStack = HStack;
887
+ exports.Heading = Heading;
888
+ exports.Icon = Icon;
889
+ exports.ImageViewer = ImageViewer;
890
+ exports.Input = Input;
891
+ exports.Link = Link;
892
+ exports.LiquidGlass = LiquidGlass;
893
+ exports.Menu = Menu;
894
+ exports.Modal = Modal;
895
+ exports.Popover = Popover;
896
+ exports.Portal = Portal;
897
+ exports.PortalHost = PortalHost;
898
+ exports.Progress = Progress;
899
+ exports.RadioGroup = RadioGroup;
900
+ exports.Select = Select;
901
+ exports.Skeleton = Skeleton;
902
+ exports.Slider = Slider;
903
+ exports.Spinner = Spinner;
904
+ exports.Switch = Switch;
905
+ exports.Table = Table;
906
+ exports.Tabs = Tabs;
907
+ exports.Text = Text24;
908
+ exports.Textarea = Textarea;
909
+ exports.Toast = Toast;
910
+ exports.Tooltip = Tooltip;
911
+ exports.VStack = VStack;
912
+ exports.flipova = flipova;
913
+ exports.flipovaComponents = flipovaComponents;
914
+ //# sourceMappingURL=chunk-V4ULAISZ.js.map
915
+ //# sourceMappingURL=chunk-V4ULAISZ.js.map