@flipova/foundation 2.4.4 → 3.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (402) hide show
  1. package/CHANGES.md +66 -0
  2. package/COMPONENTS.md +102 -0
  3. package/DOCS.md +261 -0
  4. package/LICENSE +1 -1
  5. package/README.md +169 -118
  6. package/components/contract/index.ts +3 -0
  7. package/components/contract/recipes/accordion.ts +42 -0
  8. package/components/contract/recipes/avatar.ts +41 -0
  9. package/components/contract/recipes/badge.ts +46 -0
  10. package/components/contract/recipes/button.ts +58 -0
  11. package/components/contract/recipes/calendar.ts +118 -0
  12. package/components/contract/recipes/card.ts +21 -0
  13. package/components/contract/recipes/checkbox.ts +33 -0
  14. package/components/contract/recipes/divider.ts +9 -0
  15. package/components/contract/recipes/fab.ts +31 -0
  16. package/components/contract/recipes/feedback.ts +66 -0
  17. package/components/contract/recipes/formcontrol.ts +16 -0
  18. package/components/contract/recipes/heading.ts +16 -0
  19. package/components/contract/recipes/icon.ts +40 -0
  20. package/components/contract/recipes/index.ts +30 -0
  21. package/components/contract/recipes/input.ts +39 -0
  22. package/components/contract/recipes/layout.ts +44 -0
  23. package/components/contract/recipes/link.ts +6 -0
  24. package/components/contract/recipes/modal.ts +40 -0
  25. package/components/contract/recipes/overlay.ts +250 -0
  26. package/components/contract/recipes/progress.ts +27 -0
  27. package/components/contract/recipes/radio.ts +39 -0
  28. package/components/contract/recipes/select.ts +63 -0
  29. package/components/contract/recipes/skeleton.ts +25 -0
  30. package/components/contract/recipes/slider.ts +50 -0
  31. package/components/contract/recipes/spinner.ts +12 -0
  32. package/components/contract/recipes/switch.ts +26 -0
  33. package/components/contract/recipes/table.ts +37 -0
  34. package/components/contract/recipes/tabs.ts +31 -0
  35. package/components/contract/recipes/text.ts +12 -0
  36. package/components/contract/recipes/textarea.ts +37 -0
  37. package/components/contract/recipes/util.ts +15 -0
  38. package/components/contract/theme.ts +116 -0
  39. package/components/contract/types.ts +598 -0
  40. package/components/providers/css-vars.ts +43 -0
  41. package/components/providers/flipova/components/Accordion.tsx +41 -0
  42. package/components/providers/flipova/components/ActionSheet.tsx +34 -0
  43. package/components/providers/flipova/components/Alert.tsx +15 -0
  44. package/components/providers/flipova/components/AlertDialog.tsx +31 -0
  45. package/components/providers/flipova/components/Avatar.tsx +30 -0
  46. package/components/providers/flipova/components/Badge.tsx +14 -0
  47. package/components/providers/flipova/components/BottomSheet.tsx +24 -0
  48. package/components/providers/flipova/components/Box.tsx +1 -0
  49. package/components/providers/flipova/components/Button.tsx +31 -0
  50. package/components/providers/flipova/components/Calendar.tsx +85 -0
  51. package/components/providers/flipova/components/Card.tsx +13 -0
  52. package/components/providers/flipova/components/Center.tsx +11 -0
  53. package/components/providers/flipova/components/Checkbox.tsx +24 -0
  54. package/components/providers/flipova/components/DateTimePicker.tsx +45 -0
  55. package/components/providers/flipova/components/Divider.tsx +9 -0
  56. package/components/providers/flipova/components/Drawer.tsx +18 -0
  57. package/components/providers/flipova/components/Fab.tsx +22 -0
  58. package/components/providers/flipova/components/FlatList.tsx +1 -0
  59. package/components/providers/flipova/components/FormControl.tsx +27 -0
  60. package/components/providers/flipova/components/Grid.tsx +18 -0
  61. package/components/providers/flipova/components/HStack.tsx +13 -0
  62. package/components/providers/flipova/components/Heading.tsx +19 -0
  63. package/components/providers/flipova/components/Icon.tsx +20 -0
  64. package/components/providers/flipova/components/Image.tsx +1 -0
  65. package/components/providers/flipova/components/ImageBackground.tsx +1 -0
  66. package/components/providers/flipova/components/ImageViewer.tsx +25 -0
  67. package/components/providers/flipova/components/Input.tsx +29 -0
  68. package/components/providers/flipova/components/InputAccessoryView.tsx +1 -0
  69. package/components/providers/flipova/components/KeyboardAvoidingView.tsx +1 -0
  70. package/components/providers/flipova/components/Link.tsx +21 -0
  71. package/components/providers/flipova/components/LiquidGlass.tsx +13 -0
  72. package/components/providers/flipova/components/Menu.tsx +43 -0
  73. package/components/providers/flipova/components/Modal.tsx +24 -0
  74. package/components/providers/flipova/components/Popover.tsx +23 -0
  75. package/components/providers/flipova/components/Portal.tsx +42 -0
  76. package/components/providers/flipova/components/Pressable.tsx +1 -0
  77. package/components/providers/flipova/components/Progress.tsx +22 -0
  78. package/components/providers/flipova/components/RadioGroup.tsx +36 -0
  79. package/components/providers/flipova/components/RefreshControl.tsx +1 -0
  80. package/components/providers/flipova/components/SafeAreaView.tsx +1 -0
  81. package/components/providers/flipova/components/ScrollView.tsx +1 -0
  82. package/components/providers/flipova/components/SectionList.tsx +1 -0
  83. package/components/providers/flipova/components/Select.tsx +61 -0
  84. package/components/providers/flipova/components/Skeleton.tsx +25 -0
  85. package/components/providers/flipova/components/Slider.tsx +52 -0
  86. package/components/providers/flipova/components/Spinner.tsx +19 -0
  87. package/components/providers/flipova/components/StatusBar.tsx +1 -0
  88. package/components/providers/flipova/components/Switch.tsx +21 -0
  89. package/components/providers/flipova/components/Table.tsx +33 -0
  90. package/components/providers/flipova/components/Tabs.tsx +39 -0
  91. package/components/providers/flipova/components/Text.tsx +13 -0
  92. package/components/providers/flipova/components/Textarea.tsx +28 -0
  93. package/components/providers/flipova/components/Toast.tsx +28 -0
  94. package/components/providers/flipova/components/Tooltip.tsx +34 -0
  95. package/components/providers/flipova/components/VStack.tsx +13 -0
  96. package/components/providers/flipova/components/View.tsx +1 -0
  97. package/components/providers/flipova/components/VirtualizedList.tsx +1 -0
  98. package/components/providers/flipova/index.tsx +189 -0
  99. package/components/providers/gluestack/index.tsx +226 -0
  100. package/components/providers/gluestack/more.tsx +151 -0
  101. package/components/{ui → providers/gluestack/ui}/accordion/index.tsx +2 -2
  102. package/components/{ui → providers/gluestack/ui}/actionsheet/index.tsx +15 -15
  103. package/components/{ui → providers/gluestack/ui}/alert/index.tsx +1 -1
  104. package/components/{ui → providers/gluestack/ui}/alert-dialog/index.tsx +3 -3
  105. package/components/{ui → providers/gluestack/ui}/badge/index.tsx +2 -2
  106. package/components/{ui → providers/gluestack/ui}/bottomsheet/index.tsx +11 -10
  107. package/components/{ui → providers/gluestack/ui}/box/index.tsx +4 -1
  108. package/components/{ui → providers/gluestack/ui}/button/index.tsx +1 -1
  109. package/components/{ui → providers/gluestack/ui}/calendar/index.tsx +4 -4
  110. package/components/{ui → providers/gluestack/ui}/card/index.tsx +1 -1
  111. package/components/{ui → providers/gluestack/ui}/center/index.tsx +1 -1
  112. package/components/{ui → providers/gluestack/ui}/checkbox/index.tsx +9 -8
  113. package/components/{ui → providers/gluestack/ui}/date-time-picker/index.tsx +4 -4
  114. package/components/providers/gluestack/ui/date-time-picker/index.web.tsx +197 -0
  115. package/components/{ui → providers/gluestack/ui}/divider/index.tsx +1 -1
  116. package/components/{ui → providers/gluestack/ui}/drawer/index.tsx +2 -2
  117. package/components/{ui → providers/gluestack/ui}/fab/index.tsx +1 -1
  118. package/components/{ui → providers/gluestack/ui}/form-control/index.tsx +3 -3
  119. package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/config.ts +1 -62
  120. package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/tokens.js +1 -1
  121. package/components/{ui → providers/gluestack/ui}/grid/index.tsx +3 -3
  122. package/components/{ui → providers/gluestack/ui}/heading/index.tsx +7 -7
  123. package/components/{ui → providers/gluestack/ui}/hstack/index.tsx +1 -1
  124. package/components/{ui → providers/gluestack/ui}/icon/index.tsx +1 -1
  125. package/components/{ui → providers/gluestack/ui}/image/index.tsx +0 -1
  126. package/components/{ui → providers/gluestack/ui}/image-viewer/index.tsx +96 -99
  127. package/components/providers/gluestack/ui/index.ts +58 -0
  128. package/components/{ui → providers/gluestack/ui}/input/index.tsx +1 -1
  129. package/components/{ui → providers/gluestack/ui}/link/index.tsx +2 -2
  130. package/components/{ui → providers/gluestack/ui}/liquid-glass/index.tsx +2 -2
  131. package/components/{ui → providers/gluestack/ui}/menu/index.tsx +5 -4
  132. package/components/{ui → providers/gluestack/ui}/modal/index.tsx +19 -17
  133. package/components/{ui → providers/gluestack/ui}/popover/index.tsx +4 -4
  134. package/components/{ui → providers/gluestack/ui}/portal/index.tsx +1 -1
  135. package/components/{ui → providers/gluestack/ui}/progress/index.tsx +2 -2
  136. package/components/{ui → providers/gluestack/ui}/radio/index.tsx +1 -1
  137. package/components/{ui → providers/gluestack/ui}/select/index.tsx +8 -12
  138. package/components/{ui → providers/gluestack/ui}/select/select-actionsheet.tsx +13 -13
  139. package/components/{ui → providers/gluestack/ui}/skeleton/index.tsx +2 -2
  140. package/components/{ui → providers/gluestack/ui}/slider/index.tsx +1 -1
  141. package/components/{ui → providers/gluestack/ui}/spinner/index.tsx +2 -2
  142. package/components/{ui → providers/gluestack/ui}/table/index.tsx +33 -33
  143. package/components/{ui → providers/gluestack/ui}/tabs/TabsAnimatedIndicator.tsx +1 -1
  144. package/components/{ui → providers/gluestack/ui}/tabs/index.tsx +2 -2
  145. package/components/{ui → providers/gluestack/ui}/text/index.tsx +1 -1
  146. package/components/{ui → providers/gluestack/ui}/toast/index.tsx +4 -4
  147. package/components/{ui → providers/gluestack/ui}/tooltip/index.tsx +1 -1
  148. package/components/{ui → providers/gluestack/ui}/vstack/index.tsx +1 -1
  149. package/components/providers/index.ts +2 -0
  150. package/components/providers/paper/index.tsx +449 -0
  151. package/components/providers/provider.tsx +80 -0
  152. package/components/providers/reusables/classes.ts +163 -0
  153. package/components/providers/reusables/index.tsx +289 -0
  154. package/components/providers/rn-base/Box.tsx +7 -0
  155. package/components/providers/rn-base/FlatList.tsx +16 -0
  156. package/components/providers/rn-base/Image.tsx +18 -0
  157. package/components/providers/rn-base/ImageBackground.tsx +11 -0
  158. package/components/providers/rn-base/InputAccessoryView.tsx +9 -0
  159. package/components/providers/rn-base/KeyboardAvoidingView.tsx +15 -0
  160. package/components/providers/rn-base/Pressable.tsx +19 -0
  161. package/components/providers/rn-base/RefreshControl.tsx +16 -0
  162. package/components/providers/rn-base/SafeAreaView.tsx +11 -0
  163. package/components/providers/rn-base/ScrollView.tsx +11 -0
  164. package/components/providers/rn-base/SectionList.tsx +22 -0
  165. package/components/providers/rn-base/StatusBar.tsx +17 -0
  166. package/components/providers/rn-base/View.tsx +7 -0
  167. package/components/providers/rn-base/VirtualizedList.tsx +18 -0
  168. package/components/providers/rn-base/index.tsx +64 -0
  169. package/components/providers/tamagui/index.tsx +375 -0
  170. package/components/providers/types.ts +17 -0
  171. package/components/theme/design-theme.ts +230 -0
  172. package/components/ui/create.tsx +14 -0
  173. package/components/ui/index.ts +68 -58
  174. package/components/ui/resolve.ts +40 -0
  175. package/design/canonical.index.txt +2 -16
  176. package/design/manifest.xml +4 -3
  177. package/design/schema.xsd +44 -434
  178. package/design/themes.xml +7 -177
  179. package/design/tools/{npm.js → cli.js} +173 -73
  180. package/design/tools/gui/index.html +998 -0
  181. package/design/tools/lib/check.js +533 -0
  182. package/design/tools/lib/contract.js +23 -0
  183. package/design/tools/lib/edit.js +166 -0
  184. package/design/tools/lib/generate.js +465 -0
  185. package/design/tools/lib/gui.js +614 -0
  186. package/design/tools/lib/lint.js +139 -0
  187. package/design/tools/lib/registry.js +135 -0
  188. package/design/tools/lib/util.js +53 -0
  189. package/design/tools/lib/xml.js +257 -0
  190. package/design/tools/lib/xsd.js +408 -0
  191. package/dist/chunk-2QM2ZUDS.mjs +1308 -0
  192. package/dist/chunk-2QM2ZUDS.mjs.map +1 -0
  193. package/dist/chunk-2T2TCUYF.js +1371 -0
  194. package/dist/chunk-2T2TCUYF.js.map +1 -0
  195. package/dist/chunk-6UKTC4KF.js +43 -0
  196. package/dist/chunk-6UKTC4KF.js.map +1 -0
  197. package/dist/chunk-6Z4WRTI4.mjs +37 -0
  198. package/dist/chunk-6Z4WRTI4.mjs.map +1 -0
  199. package/dist/chunk-G3K6J5KY.js +157 -0
  200. package/dist/chunk-G3K6J5KY.js.map +1 -0
  201. package/dist/chunk-GM45RCSI.mjs +96 -0
  202. package/dist/chunk-GM45RCSI.mjs.map +1 -0
  203. package/dist/chunk-GQJLHH2P.mjs +3 -0
  204. package/dist/chunk-GQJLHH2P.mjs.map +1 -0
  205. package/dist/chunk-ICNR56VP.js +1653 -0
  206. package/dist/chunk-ICNR56VP.js.map +1 -0
  207. package/dist/chunk-J5LGTIGS.mjs +9 -0
  208. package/dist/chunk-J5LGTIGS.mjs.map +1 -0
  209. package/dist/chunk-LRPZLF2K.mjs +30 -0
  210. package/dist/chunk-LRPZLF2K.mjs.map +1 -0
  211. package/dist/chunk-OC4MXNXU.js +32 -0
  212. package/dist/chunk-OC4MXNXU.js.map +1 -0
  213. package/dist/chunk-PZ5AY32C.js +11 -0
  214. package/dist/chunk-PZ5AY32C.js.map +1 -0
  215. package/dist/chunk-RWVTZUEG.js +161 -0
  216. package/dist/chunk-RWVTZUEG.js.map +1 -0
  217. package/dist/chunk-V473I5XQ.js +4 -0
  218. package/dist/chunk-V473I5XQ.js.map +1 -0
  219. package/dist/chunk-V4ULAISZ.js +915 -0
  220. package/dist/chunk-V4ULAISZ.js.map +1 -0
  221. package/dist/chunk-WRJERTJS.mjs +145 -0
  222. package/dist/chunk-WRJERTJS.mjs.map +1 -0
  223. package/dist/chunk-YIBPE3KQ.mjs +864 -0
  224. package/dist/chunk-YIBPE3KQ.mjs.map +1 -0
  225. package/dist/chunk-YUAQIZPN.mjs +1556 -0
  226. package/dist/chunk-YUAQIZPN.mjs.map +1 -0
  227. package/dist/contract/index.d.mts +304 -0
  228. package/dist/contract/index.d.ts +304 -0
  229. package/dist/contract/index.js +256 -0
  230. package/dist/contract/index.js.map +1 -0
  231. package/dist/contract/index.mjs +3 -0
  232. package/dist/contract/index.mjs.map +1 -0
  233. package/dist/index.d.mts +4 -40
  234. package/dist/index.d.ts +4 -40
  235. package/dist/index.js +73 -992
  236. package/dist/index.mjs +2 -1
  237. package/dist/providers/flipova/index.d.mts +133 -0
  238. package/dist/providers/flipova/index.d.ts +133 -0
  239. package/dist/providers/flipova/index.js +249 -0
  240. package/dist/providers/flipova/index.js.map +1 -0
  241. package/dist/providers/flipova/index.mjs +4 -0
  242. package/dist/providers/flipova/index.mjs.map +1 -0
  243. package/dist/providers/gluestack/index.d.mts +7 -0
  244. package/dist/providers/gluestack/index.d.ts +7 -0
  245. package/dist/providers/gluestack/index.js +240 -0
  246. package/dist/providers/gluestack/index.js.map +1 -0
  247. package/dist/providers/gluestack/index.mjs +238 -0
  248. package/dist/providers/gluestack/index.mjs.map +1 -0
  249. package/dist/providers/gluestack/ui/index.d.mts +3472 -0
  250. package/dist/providers/gluestack/ui/index.d.ts +3472 -0
  251. package/dist/{chunk-LCTFQJZM.js → providers/gluestack/ui/index.js} +860 -2297
  252. package/dist/providers/gluestack/ui/index.js.map +1 -0
  253. package/dist/{chunk-2R66P5X5.mjs → providers/gluestack/ui/index.mjs} +468 -2062
  254. package/dist/providers/gluestack/ui/index.mjs.map +1 -0
  255. package/dist/providers/index.d.mts +37 -0
  256. package/dist/providers/index.d.ts +37 -0
  257. package/dist/providers/index.js +28 -0
  258. package/dist/providers/index.js.map +1 -0
  259. package/dist/providers/index.mjs +3 -0
  260. package/dist/providers/index.mjs.map +1 -0
  261. package/dist/providers/paper/index.d.mts +30 -0
  262. package/dist/providers/paper/index.d.ts +30 -0
  263. package/dist/providers/paper/index.js +362 -0
  264. package/dist/providers/paper/index.js.map +1 -0
  265. package/dist/providers/paper/index.mjs +353 -0
  266. package/dist/providers/paper/index.mjs.map +1 -0
  267. package/dist/providers/reusables/index.d.mts +60 -0
  268. package/dist/providers/reusables/index.d.ts +60 -0
  269. package/dist/providers/reusables/index.js +348 -0
  270. package/dist/providers/reusables/index.js.map +1 -0
  271. package/dist/providers/reusables/index.mjs +311 -0
  272. package/dist/providers/reusables/index.mjs.map +1 -0
  273. package/dist/providers/tamagui/index.d.mts +15 -0
  274. package/dist/providers/tamagui/index.d.ts +15 -0
  275. package/dist/providers/tamagui/index.js +275 -0
  276. package/dist/providers/tamagui/index.js.map +1 -0
  277. package/dist/providers/tamagui/index.mjs +270 -0
  278. package/dist/providers/tamagui/index.mjs.map +1 -0
  279. package/dist/theme-BznFrVT1.d.mts +566 -0
  280. package/dist/theme-BznFrVT1.d.ts +566 -0
  281. package/dist/types-C7P80VKR.d.ts +22 -0
  282. package/dist/types-Tspvmask.d.mts +22 -0
  283. package/dist/ui/index.d.mts +190 -7017
  284. package/dist/ui/index.d.ts +190 -7017
  285. package/dist/ui/index.js +73 -992
  286. package/dist/ui/index.mjs +2 -1
  287. package/package.json +136 -35
  288. package/components/ui/date-time-picker/index.web.tsx +0 -195
  289. package/design/documentation.xml +0 -607
  290. package/design/tools/design.js +0 -188
  291. package/design/tools/requirements.txt +0 -35
  292. package/design/tools/sources/.checker/__init__.py +0 -81
  293. package/design/tools/sources/.checker/checks.py +0 -198
  294. package/design/tools/sources/.checker/cli.py +0 -154
  295. package/design/tools/sources/.checker/io.py +0 -242
  296. package/design/tools/sources/.checker/model.py +0 -144
  297. package/design/tools/sources/.checker/registry.py +0 -115
  298. package/design/tools/sources/.checker/report.py +0 -21
  299. package/design/tools/sources/.docgen/__init__.py +0 -45
  300. package/design/tools/sources/.docgen/cli.py +0 -101
  301. package/design/tools/sources/.docgen/model.py +0 -147
  302. package/design/tools/sources/.docgen/reference.py +0 -97
  303. package/design/tools/sources/.docgen/site.py +0 -145
  304. package/design/tools/sources/.docgen/xsddoc.py +0 -329
  305. package/design/tools/sources/.generate/__init__.py +0 -35
  306. package/design/tools/sources/.generate/cli.py +0 -76
  307. package/design/tools/sources/.generate/common.py +0 -33
  308. package/design/tools/sources/.generate/config.py +0 -177
  309. package/design/tools/sources/.generate/model.py +0 -51
  310. package/design/tools/sources/.generate/tokens.py +0 -141
  311. package/design/tools/sources/.linter/__init__.py +0 -9
  312. package/design/tools/sources/.linter/cli.py +0 -44
  313. package/design/tools/sources/.linter/discovery.py +0 -30
  314. package/design/tools/sources/.linter/errors.py +0 -45
  315. package/design/tools/sources/.linter/linter.py +0 -68
  316. package/design/tools/sources/.xmleditor/__init__.py +0 -74
  317. package/design/tools/sources/.xmleditor/blocks.py +0 -185
  318. package/design/tools/sources/.xmleditor/cli.py +0 -141
  319. package/design/tools/sources/.xmleditor/editor.py +0 -906
  320. package/design/tools/sources/.xmleditor/model.py +0 -708
  321. package/design/tools/sources/.xmleditor/widgets.py +0 -1832
  322. package/design/tools/sources/.xmleditor/xsdmodel.py +0 -753
  323. package/design/tools/sources/checker.py +0 -55
  324. package/design/tools/sources/docgen.py +0 -66
  325. package/design/tools/sources/generate.py +0 -48
  326. package/design/tools/sources/linter.py +0 -54
  327. package/design/tools/sources/ruff.toml +0 -12
  328. package/design/tools/sources/xmleditor.py +0 -62
  329. package/design/tools/unix/_venv_python.sh +0 -16
  330. package/design/tools/unix/check.sh +0 -13
  331. package/design/tools/unix/doc.sh +0 -14
  332. package/design/tools/unix/gen.sh +0 -14
  333. package/design/tools/unix/lint.sh +0 -10
  334. package/design/tools/unix/run.sh +0 -20
  335. package/design/tools/unix/verify.sh +0 -12
  336. package/design/tools/unix/xmledit.sh +0 -12
  337. package/design/tools/windows/check.cmd +0 -12
  338. package/design/tools/windows/doc.cmd +0 -12
  339. package/design/tools/windows/gen.cmd +0 -11
  340. package/design/tools/windows/lint.cmd +0 -9
  341. package/design/tools/windows/run.cmd +0 -26
  342. package/design/tools/windows/verify.cmd +0 -10
  343. package/design/tools/windows/xmledit.cmd +0 -10
  344. package/dist/chunk-2R66P5X5.mjs.map +0 -1
  345. package/dist/chunk-LCTFQJZM.js.map +0 -1
  346. /package/components/{ui → providers/gluestack/ui}/accordion/ANIMATION_CUSTOMIZATION.md +0 -0
  347. /package/components/{ui → providers/gluestack/ui}/accordion/AccordionAnimatedHeight.tsx +0 -0
  348. /package/components/{ui → providers/gluestack/ui}/accordion/AccordionAnimatedIcon.tsx +0 -0
  349. /package/components/{ui → providers/gluestack/ui}/accordion/AnimatedHeight.tsx +0 -0
  350. /package/components/{ui → providers/gluestack/ui}/accordion/AnimatedIcon.tsx +0 -0
  351. /package/components/{ui → providers/gluestack/ui}/accordion/MIGRATION_SUMMARY.md +0 -0
  352. /package/components/{ui → providers/gluestack/ui}/accordion/USAGE_EXAMPLE.tsx +0 -0
  353. /package/components/{ui → providers/gluestack/ui}/accordion/animation-config.ts +0 -0
  354. /package/components/{ui → providers/gluestack/ui}/avatar/index.tsx +0 -0
  355. /package/components/{ui → providers/gluestack/ui}/box/index.web.tsx +0 -0
  356. /package/components/{ui → providers/gluestack/ui}/box/styles.tsx +0 -0
  357. /package/components/{ui → providers/gluestack/ui}/calendar/creator.tsx +0 -0
  358. /package/components/{ui → providers/gluestack/ui}/calendar/styles.tsx +0 -0
  359. /package/components/{ui → providers/gluestack/ui}/card/index.web.tsx +0 -0
  360. /package/components/{ui → providers/gluestack/ui}/card/styles.tsx +0 -0
  361. /package/components/{ui → providers/gluestack/ui}/center/index.web.tsx +0 -0
  362. /package/components/{ui → providers/gluestack/ui}/center/styles.tsx +0 -0
  363. /package/components/{ui → providers/gluestack/ui}/date-time-picker/creator.tsx +0 -0
  364. /package/components/{ui → providers/gluestack/ui}/date-time-picker/styles.tsx +0 -0
  365. /package/components/{ui → providers/gluestack/ui}/flat-list/index.tsx +0 -0
  366. /package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/index.tsx +0 -0
  367. /package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/index.web.tsx +0 -0
  368. /package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/script.ts +0 -0
  369. /package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/theme-context.ts +0 -0
  370. /package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/tokens.d.ts +0 -0
  371. /package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/useGluestackColors.ts +0 -0
  372. /package/components/{ui → providers/gluestack/ui}/grid/index.web.tsx +0 -0
  373. /package/components/{ui → providers/gluestack/ui}/grid/styles.tsx +0 -0
  374. /package/components/{ui → providers/gluestack/ui}/heading/index.web.tsx +0 -0
  375. /package/components/{ui → providers/gluestack/ui}/heading/styles.tsx +0 -0
  376. /package/components/{ui → providers/gluestack/ui}/hstack/index.web.tsx +0 -0
  377. /package/components/{ui → providers/gluestack/ui}/hstack/styles.tsx +0 -0
  378. /package/components/{ui → providers/gluestack/ui}/icon/index.web.tsx +0 -0
  379. /package/components/{ui → providers/gluestack/ui}/image-background/index.tsx +0 -0
  380. /package/components/{ui → providers/gluestack/ui}/image-viewer/index.web.tsx +0 -0
  381. /package/components/{ui → providers/gluestack/ui}/input-accessory-view/index.tsx +0 -0
  382. /package/components/{ui → providers/gluestack/ui}/keyboard-avoiding-view/index.tsx +0 -0
  383. /package/components/{ui → providers/gluestack/ui}/pressable/index.tsx +0 -0
  384. /package/components/{ui → providers/gluestack/ui}/refresh-control/index.tsx +0 -0
  385. /package/components/{ui → providers/gluestack/ui}/safe-area-view/index.tsx +0 -0
  386. /package/components/{ui → providers/gluestack/ui}/scroll-view/index.tsx +0 -0
  387. /package/components/{ui → providers/gluestack/ui}/section-list/index.tsx +0 -0
  388. /package/components/{ui → providers/gluestack/ui}/skeleton/index.web.tsx +0 -0
  389. /package/components/{ui → providers/gluestack/ui}/skeleton/styles.tsx +0 -0
  390. /package/components/{ui → providers/gluestack/ui}/status-bar/index.tsx +0 -0
  391. /package/components/{ui → providers/gluestack/ui}/switch/index.tsx +0 -0
  392. /package/components/{ui → providers/gluestack/ui}/table/index.web.tsx +0 -0
  393. /package/components/{ui → providers/gluestack/ui}/table/styles.tsx +0 -0
  394. /package/components/{ui → providers/gluestack/ui}/tabs/animation-config.ts +0 -0
  395. /package/components/{ui → providers/gluestack/ui}/tabs/creator.tsx +0 -0
  396. /package/components/{ui → providers/gluestack/ui}/text/index.web.tsx +0 -0
  397. /package/components/{ui → providers/gluestack/ui}/text/styles.tsx +0 -0
  398. /package/components/{ui → providers/gluestack/ui}/textarea/index.tsx +0 -0
  399. /package/components/{ui → providers/gluestack/ui}/view/index.tsx +0 -0
  400. /package/components/{ui → providers/gluestack/ui}/virtualized-list/index.tsx +0 -0
  401. /package/components/{ui → providers/gluestack/ui}/vstack/index.web.tsx +0 -0
  402. /package/components/{ui → providers/gluestack/ui}/vstack/styles.tsx +0 -0
@@ -0,0 +1,1556 @@
1
+ import React22, { forwardRef, memo, createContext, useContext, useEffect } from 'react';
2
+ import { View, Text, Platform, Pressable, ActivityIndicator, TextInput, Switch as Switch$1, Image as Image$1, ImageBackground as ImageBackground$1, ScrollView, FlatList } from 'react-native';
3
+ export { FlatList as FlatList2, InputAccessoryView, KeyboardAvoidingView, RefreshControl, ScrollView, SectionList, StatusBar, View, VirtualizedList } from 'react-native';
4
+ import { UIIcon } from '@gluestack-ui/core/icon/creator';
5
+ import { tva, withStyleContext, useStyleContext, isWeb } from '@gluestack-ui/utils/nativewind-utils';
6
+ import { cssInterop, vars, useColorScheme } from 'nativewind';
7
+ import { jsx } from 'react/jsx-runtime';
8
+ import { H1, H2, H3, H4, H5, H6 } from '@expo/html-elements';
9
+ import { createLink } from '@gluestack-ui/core/link/creator';
10
+ import { createPressable } from '@gluestack-ui/core/pressable/creator';
11
+ import { createTextarea } from '@gluestack-ui/core/textarea/creator';
12
+ import { createButton } from '@gluestack-ui/core/button/creator';
13
+ import { createInput } from '@gluestack-ui/core/input/creator';
14
+ import { createSwitch } from '@gluestack-ui/core/switch/creator';
15
+ import { OverlayProvider } from '@gluestack-ui/core/overlay/creator';
16
+ import { ToastProvider } from '@gluestack-ui/core/toast/creator';
17
+ import { createFab } from '@gluestack-ui/core/fab/creator';
18
+ import { createImage } from '@gluestack-ui/core/image/creator';
19
+ import { createModal } from '@gluestack-ui/core/modal/creator';
20
+ import Animated, { FadeOut, Easing, FadeIn, ZoomIn } from 'react-native-reanimated';
21
+ export { SafeAreaView } from 'react-native-safe-area-context';
22
+
23
+ // components/providers/gluestack/ui/badge/index.tsx
24
+ var SCOPE = "BADGE";
25
+ var badgeStyle = tva({
26
+ base: "flex-row items-center justify-center rounded-sm px-2 py-0.5",
27
+ variants: {
28
+ variant: {
29
+ default: "bg-primary",
30
+ secondary: "bg-secondary",
31
+ destructive: "bg-destructive dark:bg-destructive/60",
32
+ outline: "border border-border dark:border-border/90 bg-transparent"
33
+ }
34
+ }
35
+ });
36
+ var badgeTextStyle = tva({
37
+ base: "text-xs font-medium tracking-normal uppercase",
38
+ parentVariants: {
39
+ variant: {
40
+ default: "text-primary-foreground",
41
+ secondary: "text-secondary-foreground",
42
+ destructive: "text-white",
43
+ outline: "text-foreground"
44
+ }
45
+ }
46
+ });
47
+ var badgeIconStyle = tva({
48
+ base: "fill-none h-3 w-3 pointer-events-none",
49
+ parentVariants: {
50
+ variant: {
51
+ default: "text-primary-foreground",
52
+ secondary: "text-secondary-foreground",
53
+ destructive: "text-white",
54
+ outline: "text-foreground"
55
+ }
56
+ }
57
+ });
58
+ var ContextView = withStyleContext(View, SCOPE);
59
+ cssInterop(UIIcon, {
60
+ className: {
61
+ target: "style",
62
+ nativeStyleToProp: {
63
+ height: true,
64
+ width: true,
65
+ fill: true,
66
+ color: "classNameColor",
67
+ stroke: true
68
+ }
69
+ }
70
+ });
71
+ function Badge({ children, variant = "default", className, ...props }) {
72
+ return /* @__PURE__ */ jsx(ContextView, { className: badgeStyle({ variant, class: className }), ...props, context: { variant }, children });
73
+ }
74
+ var BadgeText = React22.forwardRef(function BadgeText2({ children, className, ...props }, ref) {
75
+ const { variant: parentVariant } = useStyleContext(SCOPE);
76
+ return /* @__PURE__ */ jsx(
77
+ Text,
78
+ {
79
+ ref,
80
+ className: badgeTextStyle({
81
+ parentVariants: {
82
+ variant: parentVariant
83
+ },
84
+ class: className
85
+ }),
86
+ ...props,
87
+ children
88
+ }
89
+ );
90
+ });
91
+ var BadgeIcon = React22.forwardRef(function BadgeIcon2({ className, size, ...props }, ref) {
92
+ const { variant: parentVariant } = useStyleContext(SCOPE);
93
+ if (typeof size === "number") {
94
+ return /* @__PURE__ */ jsx(UIIcon, { ref, ...props, className: badgeIconStyle({ class: className }), size });
95
+ } else if ((props?.height !== void 0 || props?.width !== void 0) && size === void 0) {
96
+ return /* @__PURE__ */ jsx(UIIcon, { ref, ...props, className: badgeIconStyle({ class: className }) });
97
+ }
98
+ return /* @__PURE__ */ jsx(
99
+ UIIcon,
100
+ {
101
+ className: badgeIconStyle({
102
+ parentVariants: {
103
+ variant: parentVariant
104
+ },
105
+ class: className
106
+ }),
107
+ ...props,
108
+ ref
109
+ }
110
+ );
111
+ });
112
+ Badge.displayName = "Badge";
113
+ BadgeText.displayName = "BadgeText";
114
+ BadgeIcon.displayName = "BadgeIcon";
115
+ var baseStyle = isWeb ? "flex flex-col relative z-0 box-border border-0 list-none min-w-0 min-h-0 bg-transparent items-stretch m-0 p-0 text-decoration-none" : "";
116
+ var boxStyle = tva({
117
+ base: baseStyle
118
+ });
119
+ var Box = React22.forwardRef(function Box2({ className, ...props }, ref) {
120
+ return /* @__PURE__ */ jsx(View, { ref, ...props, className: boxStyle({ class: className }) });
121
+ });
122
+ Box.displayName = "Box";
123
+ var skeletonStyle = tva({
124
+ base: "w-full h-full rounded-sm",
125
+ variants: {
126
+ variant: {
127
+ sharp: "rounded-none",
128
+ circular: "rounded-full",
129
+ rounded: "rounded-md"
130
+ },
131
+ speed: {
132
+ 1: "duration-750",
133
+ 2: "duration-100",
134
+ 3: "duration-1500",
135
+ 4: "duration-2000"
136
+ }
137
+ }
138
+ });
139
+ var skeletonTextStyle = tva({
140
+ base: "rounded-sm w-full",
141
+ variants: {
142
+ speed: {
143
+ 1: "duration-750",
144
+ 2: "duration-1000",
145
+ 3: "duration-1500",
146
+ 4: "duration-2000"
147
+ },
148
+ gap: {
149
+ 1: "gap-1",
150
+ 2: "gap-2",
151
+ 3: "gap-3",
152
+ 4: "gap-4"
153
+ }
154
+ }
155
+ });
156
+ var Skeleton = forwardRef(function Skeleton2({ className, variant, children, startColor = "bg-accent", isLoaded = false, speed = 4, ...props }, ref) {
157
+ if (!isLoaded) {
158
+ return /* @__PURE__ */ jsx(
159
+ View,
160
+ {
161
+ className: `animate-pulse ${startColor} ${skeletonStyle({
162
+ variant,
163
+ speed,
164
+ class: className
165
+ })}`,
166
+ ...props,
167
+ ref
168
+ }
169
+ );
170
+ } else {
171
+ return children;
172
+ }
173
+ });
174
+ var SkeletonText = forwardRef(function SkeletonText2({ className, _lines, isLoaded = false, startColor = "bg-accent", gap = 2, children, ...props }, ref) {
175
+ if (!isLoaded) {
176
+ if (_lines) {
177
+ return /* @__PURE__ */ jsx(
178
+ View,
179
+ {
180
+ className: `flex flex-col ${skeletonTextStyle({
181
+ gap
182
+ })}`,
183
+ ref,
184
+ children: Array.from({ length: _lines }).map((_, index) => /* @__PURE__ */ jsx(
185
+ Skeleton,
186
+ {
187
+ className: `${startColor} ${skeletonTextStyle({
188
+ class: className
189
+ })}`,
190
+ ...props
191
+ },
192
+ index
193
+ ))
194
+ }
195
+ );
196
+ } else {
197
+ return /* @__PURE__ */ jsx(
198
+ Skeleton,
199
+ {
200
+ className: `${startColor} ${skeletonTextStyle({
201
+ class: className
202
+ })}`,
203
+ ...props,
204
+ ref
205
+ }
206
+ );
207
+ }
208
+ } else {
209
+ return children;
210
+ }
211
+ });
212
+ Skeleton.displayName = "Skeleton";
213
+ SkeletonText.displayName = "SkeletonText";
214
+ var baseStyle2 = isWeb ? "flex flex-col relative z-0" : "";
215
+ var centerStyle = tva({
216
+ base: `justify-center items-center ${baseStyle2}`
217
+ });
218
+ var Center = React22.forwardRef(function Center2({ className, ...props }, ref) {
219
+ return /* @__PURE__ */ jsx(View, { className: centerStyle({ class: className }), ...props, ref });
220
+ });
221
+ Center.displayName = "Center";
222
+ var dividerStyle = tva({
223
+ base: "bg-border",
224
+ variants: {
225
+ orientation: {
226
+ vertical: "w-px h-full",
227
+ horizontal: "h-px w-auto"
228
+ }
229
+ }
230
+ });
231
+ var Divider = React22.forwardRef(function Divider2({ className, orientation = "horizontal", ...props }, ref) {
232
+ return /* @__PURE__ */ jsx(
233
+ View,
234
+ {
235
+ ref,
236
+ ...props,
237
+ "aria-orientation": orientation,
238
+ role: Platform.OS === "web" ? "separator" : void 0,
239
+ className: dividerStyle({
240
+ orientation,
241
+ class: className
242
+ })
243
+ }
244
+ );
245
+ });
246
+ Divider.displayName = "Divider";
247
+ var baseStyle3 = isWeb ? "font-sans tracking-sm bg-transparent border-0 box-border display-inline list-none margin-0 padding-0 position-relative text-start no-underline whitespace-pre-wrap word-wrap-break-word" : "";
248
+ var headingStyle = tva({
249
+ base: `text-foreground font-bold font-heading tracking-sm my-0 ${baseStyle3}`,
250
+ variants: {
251
+ isTruncated: {
252
+ true: "truncate"
253
+ },
254
+ bold: {
255
+ true: "font-bold"
256
+ },
257
+ underline: {
258
+ true: "underline"
259
+ },
260
+ strikeThrough: {
261
+ true: "line-through"
262
+ },
263
+ sub: {
264
+ true: "text-xs"
265
+ },
266
+ italic: {
267
+ true: "italic"
268
+ },
269
+ highlight: {
270
+ true: "bg-yellow-500"
271
+ },
272
+ size: {
273
+ "5xl": "text-6xl",
274
+ "4xl": "text-5xl",
275
+ "3xl": "text-4xl",
276
+ "2xl": "text-3xl",
277
+ xl: "text-2xl",
278
+ lg: "text-xl",
279
+ md: "text-lg",
280
+ sm: "text-base",
281
+ xs: "text-sm"
282
+ }
283
+ }
284
+ });
285
+ cssInterop(H1, { className: "style" });
286
+ cssInterop(H2, { className: "style" });
287
+ cssInterop(H3, { className: "style" });
288
+ cssInterop(H4, { className: "style" });
289
+ cssInterop(H5, { className: "style" });
290
+ cssInterop(H6, { className: "style" });
291
+ var MappedHeading = memo(
292
+ forwardRef(function MappedHeading2({ size, className, isTruncated, bold, underline, strikeThrough, sub, italic, highlight, ...props }, ref) {
293
+ switch (size) {
294
+ case "5xl":
295
+ case "4xl":
296
+ case "3xl":
297
+ return /* @__PURE__ */ jsx(
298
+ H1,
299
+ {
300
+ className: headingStyle({
301
+ size,
302
+ isTruncated,
303
+ bold,
304
+ underline,
305
+ strikeThrough,
306
+ sub,
307
+ italic,
308
+ highlight,
309
+ class: className
310
+ }),
311
+ ...props,
312
+ ref
313
+ }
314
+ );
315
+ case "2xl":
316
+ return /* @__PURE__ */ jsx(
317
+ H2,
318
+ {
319
+ className: headingStyle({
320
+ size,
321
+ isTruncated,
322
+ bold,
323
+ underline,
324
+ strikeThrough,
325
+ sub,
326
+ italic,
327
+ highlight,
328
+ class: className
329
+ }),
330
+ ...props,
331
+ ref
332
+ }
333
+ );
334
+ case "xl":
335
+ return /* @__PURE__ */ jsx(
336
+ H3,
337
+ {
338
+ className: headingStyle({
339
+ size,
340
+ isTruncated,
341
+ bold,
342
+ underline,
343
+ strikeThrough,
344
+ sub,
345
+ italic,
346
+ highlight,
347
+ class: className
348
+ }),
349
+ ...props,
350
+ ref
351
+ }
352
+ );
353
+ case "lg":
354
+ return /* @__PURE__ */ jsx(
355
+ H4,
356
+ {
357
+ className: headingStyle({
358
+ size,
359
+ isTruncated,
360
+ bold,
361
+ underline,
362
+ strikeThrough,
363
+ sub,
364
+ italic,
365
+ highlight,
366
+ class: className
367
+ }),
368
+ ...props,
369
+ ref
370
+ }
371
+ );
372
+ case "md":
373
+ return /* @__PURE__ */ jsx(
374
+ H5,
375
+ {
376
+ className: headingStyle({
377
+ size,
378
+ isTruncated,
379
+ bold,
380
+ underline,
381
+ strikeThrough,
382
+ sub,
383
+ italic,
384
+ highlight,
385
+ class: className
386
+ }),
387
+ ...props,
388
+ ref
389
+ }
390
+ );
391
+ case "sm":
392
+ case "xs":
393
+ return /* @__PURE__ */ jsx(
394
+ H6,
395
+ {
396
+ className: headingStyle({
397
+ size,
398
+ isTruncated,
399
+ bold,
400
+ underline,
401
+ strikeThrough,
402
+ sub,
403
+ italic,
404
+ highlight,
405
+ class: className
406
+ }),
407
+ ...props,
408
+ ref
409
+ }
410
+ );
411
+ default:
412
+ return /* @__PURE__ */ jsx(
413
+ H4,
414
+ {
415
+ className: headingStyle({
416
+ size,
417
+ isTruncated,
418
+ bold,
419
+ underline,
420
+ strikeThrough,
421
+ sub,
422
+ italic,
423
+ highlight,
424
+ class: className
425
+ }),
426
+ ...props,
427
+ ref
428
+ }
429
+ );
430
+ }
431
+ })
432
+ );
433
+ var Heading = memo(
434
+ forwardRef(function Heading2({ className, size = "lg", as: AsComp, ...props }, ref) {
435
+ const { isTruncated, bold, underline, strikeThrough, sub, italic, highlight } = props;
436
+ if (AsComp) {
437
+ return /* @__PURE__ */ jsx(
438
+ AsComp,
439
+ {
440
+ className: headingStyle({
441
+ size,
442
+ isTruncated,
443
+ bold,
444
+ underline,
445
+ strikeThrough,
446
+ sub,
447
+ italic,
448
+ highlight,
449
+ class: className
450
+ }),
451
+ ...props
452
+ }
453
+ );
454
+ }
455
+ return /* @__PURE__ */ jsx(MappedHeading, { className, size, ref, ...props });
456
+ })
457
+ );
458
+ Heading.displayName = "Heading";
459
+ var baseStyle4 = isWeb ? "flex relative z-0 box-border border-0 list-none min-w-0 min-h-0 bg-transparent items-stretch m-0 p-0 text-decoration-none" : "";
460
+ var hstackStyle = tva({
461
+ base: `flex-row ${baseStyle4}`,
462
+ variants: {
463
+ space: {
464
+ xs: "gap-1",
465
+ sm: "gap-2",
466
+ md: "gap-3",
467
+ lg: "gap-4",
468
+ xl: "gap-5",
469
+ "2xl": "gap-6",
470
+ "3xl": "gap-7",
471
+ "4xl": "gap-8"
472
+ },
473
+ reversed: {
474
+ true: "flex-row-reverse"
475
+ }
476
+ }
477
+ });
478
+ var HStack = React22.forwardRef(function HStack2({ className, space, reversed, ...props }, ref) {
479
+ return /* @__PURE__ */ jsx(
480
+ View,
481
+ {
482
+ className: hstackStyle({
483
+ space,
484
+ reversed,
485
+ class: className
486
+ }),
487
+ ...props,
488
+ ref
489
+ }
490
+ );
491
+ });
492
+ HStack.displayName = "HStack";
493
+ var UILink = createLink({
494
+ Root: withStyleContext(Pressable),
495
+ Text: Text
496
+ });
497
+ cssInterop(UILink, { className: "style" });
498
+ cssInterop(UILink.Text, { className: "style" });
499
+ var linkStyle = tva({
500
+ base: "group/link web:outline-0 data-[disabled=true]:web:cursor-not-allowed data-[focus-visible=true]:web:ring-2 data-[focus-visible=true]:web:ring-indicator-primary data-[focus-visible=true]:web:outline-0 data-[disabled=true]:opacity-4 "
501
+ });
502
+ var linkTextStyle = tva({
503
+ base: "underline text-primary data-[hover=true]:text-primary/80 data-[hover=true]:no-underline data-[active=true]:text-destructive/80 font-normal font-body web:font-sans web:tracking-sm web:my-0 web:bg-transparent web:border-0 web:box-border web:inline web:list-none web:m-0 web:p-0 web:relative web:text-start web:whitespace-pre-wrap web:break-words",
504
+ variants: {
505
+ isTruncated: {
506
+ true: "web:truncate"
507
+ },
508
+ bold: {
509
+ true: "font-bold"
510
+ },
511
+ underline: {
512
+ true: "underline"
513
+ },
514
+ strikeThrough: {
515
+ true: "line-through"
516
+ },
517
+ size: {
518
+ "2xs": "text-2xs",
519
+ xs: "text-xs",
520
+ sm: "text-sm",
521
+ md: "text-base",
522
+ lg: "text-lg",
523
+ xl: "text-xl",
524
+ "2xl": "text-2xl",
525
+ "3xl": "text-3xl",
526
+ "4xl": "text-4xl",
527
+ "5xl": "text-5xl",
528
+ "6xl": "text-6xl"
529
+ },
530
+ sub: {
531
+ true: "text-xs"
532
+ },
533
+ italic: {
534
+ true: "italic"
535
+ },
536
+ highlight: {
537
+ true: "bg-yellow-500"
538
+ }
539
+ }
540
+ });
541
+ var Link = React22.forwardRef(function Link2({ className, ...props }, ref) {
542
+ return /* @__PURE__ */ jsx(UILink, { ref, ...props, className: linkStyle({ class: className }) });
543
+ });
544
+ var LinkText = React22.forwardRef(function LinkText2({ className, size = "md", ...props }, ref) {
545
+ return /* @__PURE__ */ jsx(
546
+ UILink.Text,
547
+ {
548
+ ref,
549
+ ...props,
550
+ className: linkTextStyle({
551
+ class: className,
552
+ size
553
+ })
554
+ }
555
+ );
556
+ });
557
+ Link.displayName = "Link";
558
+ LinkText.displayName = "LinkText";
559
+ var UIPressable = createPressable({
560
+ Root: withStyleContext(Pressable)
561
+ });
562
+ var pressableStyle = tva({
563
+ base: "data-[focus-visible=true]:outline-none data-[focus-visible=true]:ring-indicator-info data-[focus-visible=true]:ring-2 data-[disabled=true]:opacity-40"
564
+ });
565
+ var Pressable2 = React22.forwardRef(function Pressable3({ className, ...props }, ref) {
566
+ return /* @__PURE__ */ jsx(
567
+ UIPressable,
568
+ {
569
+ ...props,
570
+ ref,
571
+ className: pressableStyle({
572
+ class: className
573
+ })
574
+ }
575
+ );
576
+ });
577
+ Pressable2.displayName = "Pressable";
578
+ cssInterop(ActivityIndicator, {
579
+ className: { target: "style", nativeStyleToProp: { color: true } }
580
+ });
581
+ var spinnerStyle = tva({});
582
+ var Spinner = React22.forwardRef(function Spinner2({ className, color, focusable = false, "aria-label": ariaLabel = "loading", ...props }, ref) {
583
+ return /* @__PURE__ */ jsx(
584
+ ActivityIndicator,
585
+ {
586
+ ref,
587
+ focusable,
588
+ "aria-label": ariaLabel,
589
+ ...props,
590
+ color,
591
+ className: spinnerStyle({ class: className })
592
+ }
593
+ );
594
+ });
595
+ Spinner.displayName = "Spinner";
596
+ var SCOPE2 = "TEXTAREA";
597
+ var UITextarea = createTextarea({
598
+ Root: withStyleContext(View, SCOPE2),
599
+ Input: TextInput
600
+ });
601
+ var textareaStyle = tva({
602
+ base: "w-full h-[100px] border border-border dark:bg-input/30 rounded data-[hover=true]:border-border/80 data-[focus=true]:border-primary/80 data-[focus=true]:data-[hover=true]:border-primary/80 data-[disabled=true]:opacity-40 data-[disabled=true]:bg-background/90 data-[disabled=true]:data-[hover=true]:border-border/80",
603
+ variants: {
604
+ variant: {
605
+ default: "data-[focus=true]:border-primary/80 data-[focus=true]:web:ring-1 data-[focus=true]:web:ring-inset data-[focus=true]:web:ring-indicator-primary data-[invalid=true]:border-destructive data-[invalid=true]:web:ring-1 data-[invalid=true]:web:ring-inset data-[invalid=true]:web:ring-indicator-error data-[invalid=true]:data-[hover=true]:border-destructive data-[invalid=true]:data-[focus=true]:data-[hover=true]:border-primary/80 data-[invalid=true]:data-[focus=true]:data-[hover=true]:web:ring-1 data-[invalid=true]:data-[focus=true]:data-[hover=true]:web:ring-inset data-[invalid=true]:data-[focus=true]:data-[hover=true]:web:ring-indicator-primary data-[invalid=true]:data-[disabled=true]:data-[hover=true]:border-destructive data-[invalid=true]:data-[disabled=true]:data-[hover=true]:web:ring-1 data-[invalid=true]:data-[disabled=true]:data-[hover=true]:web:ring-inset data-[invalid=true]:data-[disabled=true]:data-[hover=true]:web:ring-indicator-error "
606
+ },
607
+ size: {
608
+ sm: "",
609
+ md: "",
610
+ lg: "",
611
+ xl: ""
612
+ }
613
+ }
614
+ });
615
+ var textareaInputStyle = tva({
616
+ base: "p-2 web:outline-0 web:outline-none flex-1 text-foreground placeholder:text-foreground/60 web:cursor-text web:data-[disabled=true]:cursor-not-allowed",
617
+ parentVariants: {
618
+ size: {
619
+ sm: "text-sm",
620
+ md: "text-base",
621
+ lg: "text-lg",
622
+ xl: "text-xl"
623
+ }
624
+ }
625
+ });
626
+ var Textarea = React22.forwardRef(function Textarea2({ className, variant = "default", size = "md", ...props }, ref) {
627
+ return /* @__PURE__ */ jsx(UITextarea, { ref, ...props, className: textareaStyle({ variant, class: className }), context: { size } });
628
+ });
629
+ var TextareaInput = React22.forwardRef(
630
+ function TextareaInput2({ className, ...props }, ref) {
631
+ const { size: parentSize } = useStyleContext(SCOPE2);
632
+ return /* @__PURE__ */ jsx(
633
+ UITextarea.Input,
634
+ {
635
+ ref,
636
+ ...props,
637
+ textAlignVertical: "top",
638
+ className: textareaInputStyle({
639
+ parentVariants: {
640
+ size: parentSize
641
+ },
642
+ class: className
643
+ })
644
+ }
645
+ );
646
+ }
647
+ );
648
+ Textarea.displayName = "Textarea";
649
+ TextareaInput.displayName = "TextareaInput";
650
+ var baseStyle5 = isWeb ? "flex flex-col relative z-0 box-border border-0 list-none min-w-0 min-h-0 bg-transparent items-stretch m-0 p-0 text-decoration-none" : "";
651
+ var vstackStyle = tva({
652
+ base: `flex-col ${baseStyle5}`,
653
+ variants: {
654
+ space: {
655
+ xs: "gap-1",
656
+ sm: "gap-2",
657
+ md: "gap-3",
658
+ lg: "gap-4",
659
+ xl: "gap-5",
660
+ "2xl": "gap-6",
661
+ "3xl": "gap-7",
662
+ "4xl": "gap-8"
663
+ },
664
+ reversed: {
665
+ true: "flex-col-reverse"
666
+ }
667
+ }
668
+ });
669
+ var VStack = React22.forwardRef(function VStack2({ className, space, reversed, ...props }, ref) {
670
+ return /* @__PURE__ */ jsx(
671
+ View,
672
+ {
673
+ className: vstackStyle({
674
+ space,
675
+ reversed,
676
+ class: className
677
+ }),
678
+ ...props,
679
+ ref
680
+ }
681
+ );
682
+ });
683
+ VStack.displayName = "VStack";
684
+ var SCOPE3 = "BUTTON";
685
+ var Root = withStyleContext(Pressable, SCOPE3);
686
+ var UIButton = createButton({
687
+ Root,
688
+ Text: Text,
689
+ Group: View,
690
+ Spinner: ActivityIndicator,
691
+ Icon: UIIcon
692
+ });
693
+ cssInterop(UIIcon, {
694
+ className: {
695
+ target: "style",
696
+ nativeStyleToProp: {
697
+ height: true,
698
+ width: true,
699
+ fill: true,
700
+ color: "classNameColor",
701
+ stroke: true
702
+ }
703
+ }
704
+ });
705
+ var buttonStyle = tva({
706
+ base: "rounded-md flex-row items-center justify-center data-[focus-visible=true]:web:outline-none data-[focus-visible=true]:web:ring-2 data-[disabled=true]:opacity-40 gap-2 h-fit",
707
+ variants: {
708
+ variant: {
709
+ default: "bg-primary data-[hover=true]:bg-primary/90 data-[active=true]:bg-primary/90",
710
+ destructive: "bg-destructive data-[hover=true]:bg-destructive/90 data-[active=true]:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
711
+ outline: "border border-border bg-background shadow-xs data-[hover=true]:bg-accent data-[active=true]:bg-accent dark:bg-input/[0.045] dark:border-border/90 dark:data-[hover=true]:bg-input/[0.075] dark:data-[active=true]:bg-input/[0.075]",
712
+ secondary: "bg-secondary text-secondary-foreground data-[hover=true]:bg-secondary/80 data-[active=true]:bg-secondary/80",
713
+ ghost: "data-[hover=true]:bg-accent data-[active=true]:bg-accent dark:data-[hover=true]:bg-accent/50 dark:data-[active=true]:bg-accent/50",
714
+ link: "text-primary underline-offset-4 data-[hover=true]:underline data-[active=true]:underline"
715
+ },
716
+ size: {
717
+ default: "px-4 py-2",
718
+ sm: "min-h-8 rounded-md px-3 text-xs",
719
+ lg: "min-h-10 rounded-md px-8",
720
+ icon: "min-h-9 min-w-9"
721
+ }
722
+ }
723
+ });
724
+ var buttonTextStyle = tva({
725
+ base: "web:select-none font-sans",
726
+ parentVariants: {
727
+ variant: {
728
+ default: "text-primary-foreground",
729
+ destructive: "text-white",
730
+ outline: "text-foreground data-[hover=true]:text-accent-foreground data-[active=true]:text-accent-foreground",
731
+ secondary: "text-secondary-foreground",
732
+ ghost: "text-foreground ",
733
+ link: "text-primary data-[hover=true]:underline data-[active=true]:underline"
734
+ },
735
+ size: {
736
+ default: "text-sm",
737
+ sm: "text-xs",
738
+ lg: "text-sm",
739
+ icon: "text-sm"
740
+ }
741
+ }
742
+ });
743
+ var buttonSpinnerStyle = tva({
744
+ base: "",
745
+ parentVariants: {
746
+ size: {
747
+ default: "h-4 w-4",
748
+ sm: "h-4 w-4",
749
+ lg: "h-4 w-4",
750
+ icon: "h-4 w-4"
751
+ }
752
+ }
753
+ });
754
+ var buttonIconStyle = tva({
755
+ base: "fill-none pointer-events-none shrink-0",
756
+ parentVariants: {
757
+ variant: {
758
+ default: "text-primary-foreground",
759
+ destructive: "text-white",
760
+ outline: "text-foreground data-[hover=true]:text-accent-foreground data-[active=true]:text-accent-foreground",
761
+ secondary: "text-secondary-foreground",
762
+ ghost: "text-foreground data-[hover=true]:text-accent-foreground data-[active=true]:text-accent-foreground",
763
+ link: "text-primary"
764
+ },
765
+ size: {
766
+ default: "h-4 w-4",
767
+ sm: "h-4 w-4",
768
+ lg: "h-4 w-4",
769
+ icon: "h-4 w-4"
770
+ }
771
+ }
772
+ });
773
+ var buttonGroupStyle = tva({
774
+ base: "",
775
+ variants: {
776
+ space: {
777
+ xs: "gap-1",
778
+ sm: "gap-2",
779
+ md: "gap-3",
780
+ lg: "gap-4",
781
+ xl: "gap-5",
782
+ "2xl": "gap-6",
783
+ "3xl": "gap-7",
784
+ "4xl": "gap-8"
785
+ },
786
+ isAttached: {
787
+ true: "gap-0"
788
+ },
789
+ flexDirection: {
790
+ row: "flex-row",
791
+ column: "flex-col",
792
+ "row-reverse": "flex-row-reverse",
793
+ "column-reverse": "flex-col-reverse"
794
+ }
795
+ }
796
+ });
797
+ var Button = React22.forwardRef(
798
+ ({ className, variant = "default", size = "default", ...props }, ref) => {
799
+ return /* @__PURE__ */ jsx(
800
+ UIButton,
801
+ {
802
+ ref,
803
+ ...props,
804
+ className: buttonStyle({ variant, size, class: className }),
805
+ context: { variant, size }
806
+ }
807
+ );
808
+ }
809
+ );
810
+ var ButtonText = React22.forwardRef(
811
+ ({ className, size, ...props }, ref) => {
812
+ const { size: parentSize, variant: parentVariant } = useStyleContext(SCOPE3);
813
+ return /* @__PURE__ */ jsx(
814
+ UIButton.Text,
815
+ {
816
+ ref,
817
+ ...props,
818
+ className: buttonTextStyle({
819
+ parentVariants: {
820
+ size: parentSize,
821
+ variant: parentVariant
822
+ },
823
+ size,
824
+ class: className
825
+ })
826
+ }
827
+ );
828
+ }
829
+ );
830
+ var ButtonSpinner = React22.forwardRef(({ className, size, ...props }, ref) => {
831
+ const { size: parentSize } = useStyleContext(SCOPE3);
832
+ return /* @__PURE__ */ jsx(
833
+ UIButton.Spinner,
834
+ {
835
+ ref,
836
+ ...props,
837
+ className: buttonSpinnerStyle({ parentVariants: { size: parentSize }, class: className, size })
838
+ }
839
+ );
840
+ });
841
+ var ButtonIcon = React22.forwardRef(
842
+ ({ className, size, ...props }, ref) => {
843
+ const { size: parentSize, variant: parentVariant } = useStyleContext(SCOPE3);
844
+ if (typeof size === "number") {
845
+ return /* @__PURE__ */ jsx(UIButton.Icon, { ref, ...props, className: buttonIconStyle({ class: className }), size });
846
+ } else if ((props.height !== void 0 || props.width !== void 0) && size === void 0) {
847
+ return /* @__PURE__ */ jsx(UIButton.Icon, { ref, ...props, className: buttonIconStyle({ class: className }) });
848
+ }
849
+ return /* @__PURE__ */ jsx(
850
+ UIButton.Icon,
851
+ {
852
+ ...props,
853
+ className: buttonIconStyle({
854
+ parentVariants: {
855
+ size: parentSize,
856
+ variant: parentVariant
857
+ },
858
+ size,
859
+ class: className
860
+ }),
861
+ ref
862
+ }
863
+ );
864
+ }
865
+ );
866
+ var ButtonGroup = React22.forwardRef(
867
+ ({ className, space = "md", isAttached = false, flexDirection = "column", ...props }, ref) => {
868
+ return /* @__PURE__ */ jsx(
869
+ UIButton.Group,
870
+ {
871
+ className: buttonGroupStyle({
872
+ class: className,
873
+ space,
874
+ isAttached,
875
+ flexDirection
876
+ }),
877
+ ...props,
878
+ ref
879
+ }
880
+ );
881
+ }
882
+ );
883
+ Button.displayName = "Button";
884
+ ButtonText.displayName = "ButtonText";
885
+ ButtonSpinner.displayName = "ButtonSpinner";
886
+ ButtonIcon.displayName = "ButtonIcon";
887
+ ButtonGroup.displayName = "ButtonGroup";
888
+ var baseStyle6 = isWeb ? "flex flex-col relative z-0" : "";
889
+ var cardStyle = tva({
890
+ base: `${baseStyle6} flex-col bg-card border border-border rounded-xl shadow-sm`,
891
+ variants: {
892
+ size: {
893
+ default: "p-4 gap-6",
894
+ sm: "p-3 gap-3"
895
+ }
896
+ },
897
+ defaultVariants: {
898
+ size: "default"
899
+ }
900
+ });
901
+ var Card = React22.forwardRef(function Card2({ className, size = "default", ...props }, ref) {
902
+ return /* @__PURE__ */ jsx(View, { className: cardStyle({ size, class: className }), ...props, ref });
903
+ });
904
+ Card.displayName = "Card";
905
+ var SCOPE4 = "INPUT";
906
+ var UIInput = createInput({
907
+ Root: withStyleContext(View, SCOPE4),
908
+ Icon: UIIcon,
909
+ Slot: Pressable,
910
+ Input: TextInput
911
+ });
912
+ cssInterop(UIIcon, {
913
+ className: {
914
+ target: "style",
915
+ nativeStyleToProp: {
916
+ height: true,
917
+ width: true,
918
+ fill: true,
919
+ color: "classNameColor",
920
+ stroke: true
921
+ }
922
+ }
923
+ });
924
+ var inputStyle = tva({
925
+ base: "h-9 w-full flex-row items-center rounded-md border border-border dark:bg-input/30 bg-transparent shadow-xs transition-[color,box-shadow] overflow-hidden data-[focus=true]:outline-none data-[focus=true]:border-ring dark:data-[focus=true]:border-ring data-[focus=true]:web:ring-[3px] data-[focus=true]:web:ring-ring/50 data-[invalid=true]:border-destructive/40 dark:data-[invalid=true]:border-destructive/40 data-[invalid=true]:web:ring-destructive/20 dark:data-[invalid=true]:web:ring-destructive/40 data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50 px-3 gap-2"
926
+ });
927
+ var inputIconStyle = tva({
928
+ base: "justify-center items-center text-muted-foreground fill-none h-4 w-4"
929
+ });
930
+ var inputSlotStyle = tva({
931
+ base: "justify-center items-center web:disabled:cursor-not-allowed"
932
+ });
933
+ var inputFieldStyle = tva({
934
+ base: "flex-1 text-foreground text-sm md:text-sm py-1 h-full placeholder:text-muted-foreground web:outline-none ios:leading-[0px] web:cursor-text web:data-[disabled=true]:cursor-not-allowed"
935
+ });
936
+ var Input = React22.forwardRef(function Input2({ className, ...props }, ref) {
937
+ return /* @__PURE__ */ jsx(UIInput, { ref, ...props, className: inputStyle({ class: className }), context: {} });
938
+ });
939
+ var InputIcon = React22.forwardRef(function InputIcon2({ className, ...props }, ref) {
940
+ return /* @__PURE__ */ jsx(UIInput.Icon, { ref, ...props, className: inputIconStyle({ class: className }) });
941
+ });
942
+ var InputSlot = React22.forwardRef(function InputSlot2({ className, ...props }, ref) {
943
+ return /* @__PURE__ */ jsx(
944
+ UIInput.Slot,
945
+ {
946
+ ref,
947
+ ...props,
948
+ className: inputSlotStyle({
949
+ class: className
950
+ })
951
+ }
952
+ );
953
+ });
954
+ var InputField = React22.forwardRef(function InputField2({ className, ...props }, ref) {
955
+ return /* @__PURE__ */ jsx(
956
+ UIInput.Input,
957
+ {
958
+ ref,
959
+ ...props,
960
+ className: inputFieldStyle({
961
+ class: className
962
+ })
963
+ }
964
+ );
965
+ });
966
+ Input.displayName = "Input";
967
+ InputIcon.displayName = "InputIcon";
968
+ InputSlot.displayName = "InputSlot";
969
+ InputField.displayName = "InputField";
970
+ var UISwitch = createSwitch({
971
+ Root: withStyleContext(Switch$1)
972
+ });
973
+ var switchStyle = tva({
974
+ base: "data-[focus=true]:outline-0 data-[focus=true]:ring-2 data-[focus=true]:ring-indicator-primary web:cursor-pointer disabled:cursor-not-allowed data-[disabled=true]:opacity-40 data-[invalid=true]:border-destructive data-[invalid=true]:rounded-xl data-[invalid=true]:border-2",
975
+ variants: {
976
+ size: {
977
+ sm: "scale-75",
978
+ md: "",
979
+ lg: "scale-125"
980
+ }
981
+ }
982
+ });
983
+ var Switch = React22.forwardRef(function Switch2({ className, size = "md", ...props }, ref) {
984
+ return /* @__PURE__ */ jsx(UISwitch, { ref, ...props, className: switchStyle({ size, class: className }) });
985
+ });
986
+ Switch.displayName = "Switch";
987
+ var baseStyle7 = isWeb ? "font-sans tracking-sm my-0 bg-transparent border-0 box-border display-inline list-none margin-0 padding-0 position-relative text-start no-underline whitespace-pre-wrap word-wrap-break-word" : "";
988
+ var textStyle = tva({
989
+ base: `text-foreground font-body ${baseStyle7}`,
990
+ variants: {
991
+ isTruncated: {
992
+ true: "web:truncate"
993
+ },
994
+ bold: {
995
+ true: "font-bold"
996
+ },
997
+ underline: {
998
+ true: "underline"
999
+ },
1000
+ strikeThrough: {
1001
+ true: "line-through"
1002
+ },
1003
+ size: {
1004
+ "2xs": "text-2xs",
1005
+ xs: "text-xs",
1006
+ sm: "text-sm",
1007
+ md: "text-base",
1008
+ lg: "text-lg",
1009
+ xl: "text-xl",
1010
+ "2xl": "text-2xl",
1011
+ "3xl": "text-3xl",
1012
+ "4xl": "text-4xl",
1013
+ "5xl": "text-5xl",
1014
+ "6xl": "text-6xl"
1015
+ },
1016
+ sub: {
1017
+ true: "text-xs"
1018
+ },
1019
+ italic: {
1020
+ true: "italic"
1021
+ },
1022
+ highlight: {
1023
+ true: "bg-yellow-500"
1024
+ }
1025
+ }
1026
+ });
1027
+ var Text4 = React22.forwardRef(function Text5({ className, isTruncated, bold, underline, strikeThrough, size = "md", sub, italic, highlight, ...props }, ref) {
1028
+ return /* @__PURE__ */ jsx(
1029
+ Text,
1030
+ {
1031
+ className: textStyle({
1032
+ isTruncated,
1033
+ bold,
1034
+ underline,
1035
+ strikeThrough,
1036
+ size,
1037
+ sub,
1038
+ italic,
1039
+ highlight,
1040
+ class: className
1041
+ }),
1042
+ ...props,
1043
+ ref
1044
+ }
1045
+ );
1046
+ });
1047
+ Text4.displayName = "Text";
1048
+ var ThemeContext = createContext(null);
1049
+ var useMountedColors = () => useContext(ThemeContext);
1050
+ var MountedThemeContext = createContext(null);
1051
+ var useMountedTheme = () => useContext(MountedThemeContext);
1052
+ function resolveThemeId(variants2, variant, mode) {
1053
+ const mapped = variant ? variants2?.[variant]?.[mode] : void 0;
1054
+ return mapped ?? mode;
1055
+ }
1056
+ var colors = {
1057
+ light: {
1058
+ "--background": "250 250 250",
1059
+ "--foreground": "24 24 27",
1060
+ "--card": "255 255 255",
1061
+ "--card-foreground": "24 24 27",
1062
+ "--popover": "255 255 255",
1063
+ "--popover-foreground": "24 24 27",
1064
+ "--primary": "37 99 235",
1065
+ "--primary-foreground": "255 255 255",
1066
+ "--secondary": "71 85 105",
1067
+ "--secondary-foreground": "255 255 255",
1068
+ "--muted": "244 244 245",
1069
+ "--muted-foreground": "82 82 91",
1070
+ "--accent": "239 246 255",
1071
+ "--accent-foreground": "30 58 138",
1072
+ "--destructive": "220 38 38",
1073
+ "--destructive-foreground": "255 255 255",
1074
+ "--border": "228 228 231",
1075
+ "--input": "228 228 231",
1076
+ "--ring": "59 130 246",
1077
+ "--success": "22 163 74",
1078
+ "--success-foreground": "255 255 255",
1079
+ "--warning": "217 119 6",
1080
+ "--warning-foreground": "255 255 255",
1081
+ "--error": "220 38 38",
1082
+ "--error-foreground": "255 255 255",
1083
+ "--info": "2 132 199",
1084
+ "--info-foreground": "255 255 255"
1085
+ },
1086
+ dark: {
1087
+ "--background": "24 24 27",
1088
+ "--foreground": "244 244 245",
1089
+ "--card": "39 39 42",
1090
+ "--card-foreground": "244 244 245",
1091
+ "--popover": "39 39 42",
1092
+ "--popover-foreground": "244 244 245",
1093
+ "--primary": "59 130 246",
1094
+ "--primary-foreground": "255 255 255",
1095
+ "--secondary": "100 116 139",
1096
+ "--secondary-foreground": "255 255 255",
1097
+ "--muted": "39 39 42",
1098
+ "--muted-foreground": "161 161 170",
1099
+ "--accent": "30 58 138",
1100
+ "--accent-foreground": "219 234 254",
1101
+ "--destructive": "239 68 68",
1102
+ "--destructive-foreground": "255 255 255",
1103
+ "--border": "63 63 70",
1104
+ "--input": "63 63 70",
1105
+ "--ring": "96 165 250",
1106
+ "--success": "34 197 94",
1107
+ "--success-foreground": "24 24 27",
1108
+ "--warning": "245 158 11",
1109
+ "--warning-foreground": "24 24 27",
1110
+ "--error": "239 68 68",
1111
+ "--error-foreground": "255 255 255",
1112
+ "--info": "14 165 233",
1113
+ "--info-foreground": "255 255 255"
1114
+ }
1115
+ };
1116
+ var config = {
1117
+ light: vars(colors["light"]),
1118
+ dark: vars(colors["dark"])
1119
+ };
1120
+ var variants = {
1121
+ default: { dark: "dark", light: "light" }
1122
+ };
1123
+ function toCamelCase(str) {
1124
+ return str.replace(/^--/, "").replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());
1125
+ }
1126
+ function rgbToHex(rgbString) {
1127
+ const parts = rgbString.trim().split(/\s+/);
1128
+ if (parts.length !== 3) return "#000000";
1129
+ const [r, g, b] = parts.map((s) => {
1130
+ const num = parseInt(s, 10);
1131
+ return isNaN(num) ? 0 : num;
1132
+ });
1133
+ const toHex = (n) => Math.max(0, Math.min(255, n)).toString(16).padStart(2, "0");
1134
+ return `#${toHex(r)}${toHex(g)}${toHex(b)}`;
1135
+ }
1136
+ function useGluestackColors() {
1137
+ const { colorScheme } = useColorScheme();
1138
+ const theme = useMountedColors() ?? colors;
1139
+ const mounted = useMountedTheme();
1140
+ const palettes = theme;
1141
+ const palette = palettes[mounted?.themeId ?? ""] ?? palettes[colorScheme || "light"] ?? palettes[mounted?.themeIds[0] ?? ""] ?? {};
1142
+ const result = {};
1143
+ Object.entries(palette).forEach(([key, value]) => {
1144
+ const camelKey = toCamelCase(key);
1145
+ result[camelKey] = rgbToHex(value);
1146
+ });
1147
+ return result;
1148
+ }
1149
+ function useCalendarTheme() {
1150
+ const palette = useGluestackColors();
1151
+ return {
1152
+ backgroundColor: palette.background || "#ffffff",
1153
+ calendarBackground: palette.background || "#ffffff",
1154
+ textSectionTitleColor: palette.mutedForeground || "#737373",
1155
+ selectedDayBackgroundColor: palette.primary || "#171717",
1156
+ selectedDayTextColor: palette.primaryForeground || "#fafafa",
1157
+ todayTextColor: palette.primary || "#171717",
1158
+ todayBackgroundColor: palette.accent || "#f7f7f7",
1159
+ dayTextColor: palette.foreground || "#0a0a0a",
1160
+ textDisabledColor: palette.mutedForeground || "#737373",
1161
+ dotColor: palette.primary || "#171717",
1162
+ selectedDotColor: palette.primaryForeground || "#fafafa",
1163
+ arrowColor: palette.foreground || "#0a0a0a",
1164
+ monthTextColor: palette.foreground || "#0a0a0a",
1165
+ indicatorColor: palette.primary || "#171717"
1166
+ };
1167
+ }
1168
+ var useGluestackColors2 = useGluestackColors;
1169
+ var useCalendarTheme2 = useCalendarTheme;
1170
+ function createGluestackUIProvider(theme) {
1171
+ const vars2 = theme.config ?? theme.colors;
1172
+ const variantMap = theme.variants;
1173
+ const themeIds = Object.keys(vars2);
1174
+ return function ThemedProvider({ mode = "light", variant, ...props }) {
1175
+ const { colorScheme, setColorScheme } = useColorScheme();
1176
+ useEffect(() => {
1177
+ setColorScheme(mode);
1178
+ }, [mode]);
1179
+ const resolvedMode = mode === "system" ? colorScheme ?? "light" : mode;
1180
+ const themeId = resolveThemeId(variantMap, variant, resolvedMode);
1181
+ const mountedTheme = React22.useMemo(() => ({ themeId, themeIds }), [themeId, themeIds]);
1182
+ return /* @__PURE__ */ jsx(
1183
+ View,
1184
+ {
1185
+ style: [
1186
+ vars2[themeId],
1187
+ { flex: 1, height: "100%", width: "100%" },
1188
+ props.style
1189
+ ],
1190
+ children: /* @__PURE__ */ jsx(ThemeContext.Provider, { value: theme.colors, children: /* @__PURE__ */ jsx(MountedThemeContext.Provider, { value: mountedTheme, children: /* @__PURE__ */ jsx(OverlayProvider, { children: /* @__PURE__ */ jsx(ToastProvider, { children: props.children }) }) }) })
1191
+ }
1192
+ );
1193
+ };
1194
+ }
1195
+ var GluestackUIProvider = createGluestackUIProvider({
1196
+ colors,
1197
+ config,
1198
+ variants
1199
+ });
1200
+ var SCOPE5 = "FAB";
1201
+ var Root2 = withStyleContext(Pressable, SCOPE5);
1202
+ var UIFab = createFab({
1203
+ Root: Root2,
1204
+ Label: Text,
1205
+ Icon: UIIcon
1206
+ });
1207
+ cssInterop(UIIcon, {
1208
+ className: {
1209
+ target: "style",
1210
+ nativeStyleToProp: {
1211
+ height: true,
1212
+ width: true,
1213
+ fill: true,
1214
+ color: "classNameColor",
1215
+ stroke: true
1216
+ }
1217
+ }
1218
+ });
1219
+ var fabStyle = tva({
1220
+ base: "group/fab bg-primary rounded-full z-20 p-4 flex-row items-center justify-center absolute hover:bg-primary/90 active:bg-primary/80 disabled:opacity-40 disabled:pointer-events-all disabled:cursor-not-allowed data-[focus=true]:web:outline-none data-[focus-visible=true]:web:ring-2 data-[focus-visible=true]:web:ring-indicator-info shadow-hard-2",
1221
+ variants: {
1222
+ size: {
1223
+ sm: "px-3.5 py-1.5",
1224
+ md: "px-4 py-2",
1225
+ lg: "px-5 py-3"
1226
+ },
1227
+ placement: {
1228
+ "top right": "top-4 right-4",
1229
+ "top left": "top-4 left-4",
1230
+ "bottom right": "bottom-4 right-4",
1231
+ "bottom left": "bottom-4 left-4",
1232
+ "top center": "top-4 self-center",
1233
+ "bottom center": "bottom-4 self-center"
1234
+ }
1235
+ }
1236
+ });
1237
+ var fabLabelStyle = tva({
1238
+ base: "text-primary-foreground/90 font-normal font-body tracking-md text-left mx-2",
1239
+ variants: {
1240
+ isTruncated: {
1241
+ true: ""
1242
+ },
1243
+ bold: {
1244
+ true: "font-bold"
1245
+ },
1246
+ underline: {
1247
+ true: "underline"
1248
+ },
1249
+ strikeThrough: {
1250
+ true: "line-through"
1251
+ },
1252
+ size: {
1253
+ sm: "text-sm",
1254
+ md: "text-base",
1255
+ lg: "text-lg"
1256
+ },
1257
+ sub: {
1258
+ true: "text-xs"
1259
+ },
1260
+ italic: {
1261
+ true: "italic"
1262
+ },
1263
+ highlight: {
1264
+ true: "bg-yellow-500"
1265
+ }
1266
+ },
1267
+ parentVariants: {
1268
+ size: {
1269
+ sm: "text-sm",
1270
+ md: "text-base",
1271
+ lg: "text-lg"
1272
+ }
1273
+ }
1274
+ });
1275
+ var fabIconStyle = tva({
1276
+ base: "text-primary-foreground/90 fill-none",
1277
+ variants: {
1278
+ size: {
1279
+ sm: "h-3.5 w-3.5",
1280
+ md: "h-4 w-4",
1281
+ lg: "h-5 w-5"
1282
+ }
1283
+ }
1284
+ });
1285
+ var Fab = React22.forwardRef(function Fab2({ size = "md", placement = "bottom right", className, ...props }, ref) {
1286
+ return /* @__PURE__ */ jsx(UIFab, { ref, ...props, className: fabStyle({ size, placement, class: className }), context: { size } });
1287
+ });
1288
+ var FabLabel = React22.forwardRef(function FabLabel2({ size, isTruncated = false, bold = false, underline = false, strikeThrough = false, className, ...props }, ref) {
1289
+ const { size: parentSize } = useStyleContext(SCOPE5);
1290
+ return /* @__PURE__ */ jsx(
1291
+ UIFab.Label,
1292
+ {
1293
+ ref,
1294
+ ...props,
1295
+ className: fabLabelStyle({
1296
+ parentVariants: {
1297
+ size: parentSize
1298
+ },
1299
+ size,
1300
+ isTruncated,
1301
+ bold,
1302
+ underline,
1303
+ strikeThrough,
1304
+ class: className
1305
+ })
1306
+ }
1307
+ );
1308
+ });
1309
+ var FabIcon = React22.forwardRef(function FabIcon2({ size, className, ...props }, ref) {
1310
+ const { size: parentSize } = useStyleContext(SCOPE5);
1311
+ if (typeof size === "number") {
1312
+ return /* @__PURE__ */ jsx(UIFab.Icon, { ref, ...props, className: fabIconStyle({ class: className }), size });
1313
+ } else if ((props.height !== void 0 || props.width !== void 0) && size === void 0) {
1314
+ return /* @__PURE__ */ jsx(UIFab.Icon, { ref, ...props, className: fabIconStyle({ class: className }) });
1315
+ }
1316
+ return /* @__PURE__ */ jsx(
1317
+ UIFab.Icon,
1318
+ {
1319
+ ref,
1320
+ ...props,
1321
+ className: fabIconStyle({
1322
+ parentVariants: {
1323
+ size: parentSize
1324
+ },
1325
+ size,
1326
+ class: className
1327
+ })
1328
+ }
1329
+ );
1330
+ });
1331
+ Fab.displayName = "Fab";
1332
+ FabLabel.displayName = "FabLabel";
1333
+ FabIcon.displayName = "FabIcon";
1334
+ function FlatList2(props) {
1335
+ const optimizedProps = Platform.OS === "android" ? {
1336
+ removeClippedSubviews: true,
1337
+ maxToRenderPerBatch: 5,
1338
+ updateCellsBatchingPeriod: 100,
1339
+ initialNumToRender: 5,
1340
+ windowSize: 5,
1341
+ ...props
1342
+ } : props;
1343
+ return /* @__PURE__ */ jsx(FlatList, { ...optimizedProps });
1344
+ }
1345
+ var imageStyle = tva({
1346
+ base: "max-w-full",
1347
+ variants: {
1348
+ size: {
1349
+ "2xs": "h-6 w-6",
1350
+ xs: "h-10 w-10",
1351
+ sm: "h-16 w-16",
1352
+ md: "h-20 w-20",
1353
+ lg: "h-24 w-24",
1354
+ xl: "h-32 w-32",
1355
+ "2xl": "h-64 w-64",
1356
+ full: "h-full w-full",
1357
+ none: ""
1358
+ }
1359
+ }
1360
+ });
1361
+ var UIImage = createImage({ Root: Image$1 });
1362
+ var Image = React22.forwardRef(function Image2({ size = "md", className, ...props }, ref) {
1363
+ return /* @__PURE__ */ jsx(
1364
+ UIImage,
1365
+ {
1366
+ className: imageStyle({ size, class: className }),
1367
+ ...props,
1368
+ ref,
1369
+ style: Platform.OS === "web" ? { height: "revert-layer", width: "revert-layer" } : void 0
1370
+ }
1371
+ );
1372
+ });
1373
+ Image.displayName = "Image";
1374
+ var imageBackgroundStyle = tva({});
1375
+ var ImageBackground = React22.forwardRef(function ImageBackground2({ className, ...props }, ref) {
1376
+ return /* @__PURE__ */ jsx(
1377
+ ImageBackground$1,
1378
+ {
1379
+ className: imageBackgroundStyle({
1380
+ class: className
1381
+ }),
1382
+ ...props,
1383
+ ref
1384
+ }
1385
+ );
1386
+ });
1387
+ ImageBackground.displayName = "ImageBackground";
1388
+ var AnimatedPressable = Animated.createAnimatedComponent(Pressable);
1389
+ var AnimatedView = Animated.createAnimatedComponent(View);
1390
+ var SCOPE6 = "MODAL";
1391
+ var UIModal = createModal({
1392
+ Root: withStyleContext(View, SCOPE6),
1393
+ Backdrop: AnimatedPressable,
1394
+ Content: AnimatedView,
1395
+ Body: ScrollView,
1396
+ CloseButton: Pressable,
1397
+ Footer: View,
1398
+ Header: View
1399
+ });
1400
+ cssInterop(AnimatedPressable, { className: "style" });
1401
+ cssInterop(AnimatedView, { className: "style" });
1402
+ var modalStyle = tva({
1403
+ base: "group/modal w-full h-full justify-center items-center web:pointer-events-none",
1404
+ variants: {
1405
+ size: {
1406
+ xs: "",
1407
+ sm: "",
1408
+ md: "",
1409
+ lg: "",
1410
+ full: ""
1411
+ }
1412
+ }
1413
+ });
1414
+ var modalBackdropStyle = tva({
1415
+ base: "absolute left-0 top-0 right-0 bottom-0 bg-black/50 web:cursor-default"
1416
+ });
1417
+ var modalContentStyle = tva({
1418
+ base: "bg-background rounded-md overflow-hidden border border-border/80 shadow-hard-2 p-6",
1419
+ parentVariants: {
1420
+ size: {
1421
+ xs: "w-[60%] max-w-[360px]",
1422
+ sm: "w-[70%] max-w-[420px]",
1423
+ md: "w-[80%] max-w-[510px]",
1424
+ lg: "w-[90%] max-w-[640px]",
1425
+ full: "w-full"
1426
+ }
1427
+ }
1428
+ });
1429
+ var modalBodyStyle = tva({
1430
+ base: "mt-2 mb-6"
1431
+ });
1432
+ var modalCloseButtonStyle = tva({
1433
+ base: "group/modal-close-button z-10 rounded data-[focus-visible=true]:web:bg-background/90 web:outline-0 cursor-pointer"
1434
+ });
1435
+ var modalHeaderStyle = tva({
1436
+ base: "justify-between items-center flex-row"
1437
+ });
1438
+ var modalFooterStyle = tva({
1439
+ base: "flex-row justify-end items-center gap-2"
1440
+ });
1441
+ var Modal = React22.forwardRef(
1442
+ ({ className, size = "md", ...props }, ref) => /* @__PURE__ */ jsx(
1443
+ UIModal,
1444
+ {
1445
+ ref,
1446
+ ...props,
1447
+ pointerEvents: "box-none",
1448
+ className: modalStyle({ size, class: className }),
1449
+ context: { size }
1450
+ }
1451
+ )
1452
+ );
1453
+ var ModalBackdrop = React22.forwardRef(function ModalBackdrop2({ className, ...props }, ref) {
1454
+ return (
1455
+ // @ts-ignore
1456
+ /* @__PURE__ */ jsx(
1457
+ UIModal.Backdrop,
1458
+ {
1459
+ ref,
1460
+ entering: FadeIn.duration(200).easing(Easing.linear),
1461
+ exiting: FadeOut.duration(200).easing(Easing.linear),
1462
+ ...props,
1463
+ className: modalBackdropStyle({
1464
+ class: className
1465
+ })
1466
+ }
1467
+ )
1468
+ );
1469
+ });
1470
+ var ModalContent = React22.forwardRef(
1471
+ function ModalContent2({ className, size, ...props }, ref) {
1472
+ const { size: parentSize } = useStyleContext(SCOPE6);
1473
+ return /* @__PURE__ */ jsx(
1474
+ UIModal.Content,
1475
+ {
1476
+ ref,
1477
+ entering: ZoomIn.duration(200).withInitialValues({
1478
+ transform: [{ scale: 0.9 }],
1479
+ opacity: 0
1480
+ }),
1481
+ exiting: FadeOut.duration(200),
1482
+ ...props,
1483
+ className: modalContentStyle({
1484
+ parentVariants: {
1485
+ size: parentSize
1486
+ },
1487
+ size,
1488
+ class: className
1489
+ }),
1490
+ pointerEvents: "auto"
1491
+ }
1492
+ );
1493
+ }
1494
+ );
1495
+ var ModalHeader = React22.forwardRef(function ModalHeader2({ className, ...props }, ref) {
1496
+ return /* @__PURE__ */ jsx(
1497
+ UIModal.Header,
1498
+ {
1499
+ ref,
1500
+ ...props,
1501
+ className: modalHeaderStyle({
1502
+ class: className
1503
+ })
1504
+ }
1505
+ );
1506
+ });
1507
+ var ModalBody = React22.forwardRef(function ModalBody2({ className, ...props }, ref) {
1508
+ return /* @__PURE__ */ jsx(
1509
+ UIModal.Body,
1510
+ {
1511
+ scrollEnabled: false,
1512
+ ref,
1513
+ ...props,
1514
+ className: modalBodyStyle({
1515
+ class: className
1516
+ })
1517
+ }
1518
+ );
1519
+ });
1520
+ var ModalFooter = React22.forwardRef(function ModalFooter2({ className, ...props }, ref) {
1521
+ return /* @__PURE__ */ jsx(
1522
+ UIModal.Footer,
1523
+ {
1524
+ ref,
1525
+ ...props,
1526
+ className: modalFooterStyle({
1527
+ class: className
1528
+ })
1529
+ }
1530
+ );
1531
+ });
1532
+ var ModalCloseButton = React22.forwardRef(
1533
+ function ModalCloseButton2({ className, ...props }, ref) {
1534
+ return /* @__PURE__ */ jsx(
1535
+ UIModal.CloseButton,
1536
+ {
1537
+ ref,
1538
+ ...props,
1539
+ className: modalCloseButtonStyle({
1540
+ class: className
1541
+ })
1542
+ }
1543
+ );
1544
+ }
1545
+ );
1546
+ Modal.displayName = "Modal";
1547
+ ModalBackdrop.displayName = "ModalBackdrop";
1548
+ ModalContent.displayName = "ModalContent";
1549
+ ModalHeader.displayName = "ModalHeader";
1550
+ ModalBody.displayName = "ModalBody";
1551
+ ModalFooter.displayName = "ModalFooter";
1552
+ ModalCloseButton.displayName = "ModalCloseButton";
1553
+
1554
+ export { Badge, BadgeIcon, BadgeText, Box, Button, ButtonGroup, ButtonIcon, ButtonSpinner, ButtonText, Card, Center, Divider, Fab, FabIcon, FabLabel, FlatList2 as FlatList, GluestackUIProvider, HStack, Heading, Image, ImageBackground, Input, InputField, InputIcon, InputSlot, Link, LinkText, Modal, ModalBackdrop, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, MountedThemeContext, Pressable2 as Pressable, Skeleton, SkeletonText, Spinner, Switch, Text4 as Text, Textarea, TextareaInput, ThemeContext, UILink, VStack, createGluestackUIProvider, resolveThemeId, useCalendarTheme2 as useCalendarTheme, useGluestackColors2 as useGluestackColors, useMountedColors, useMountedTheme };
1555
+ //# sourceMappingURL=chunk-YUAQIZPN.mjs.map
1556
+ //# sourceMappingURL=chunk-YUAQIZPN.mjs.map