@tamagui/demos 1.89.26 → 1.89.27-1708112217600

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 (333) hide show
  1. package/dist/cjs/AccordionDemo.native.js +32 -17
  2. package/dist/cjs/AccordionDemo.native.js.map +3 -3
  3. package/dist/cjs/AddThemeDemo.native.js +71 -26
  4. package/dist/cjs/AddThemeDemo.native.js.map +3 -3
  5. package/dist/cjs/AlertDialogDemo.native.js +55 -46
  6. package/dist/cjs/AlertDialogDemo.native.js.map +3 -3
  7. package/dist/cjs/AnimationsDemo.native.js +102 -41
  8. package/dist/cjs/AnimationsDemo.native.js.map +3 -3
  9. package/dist/cjs/AnimationsEnterDemo.native.js +80 -25
  10. package/dist/cjs/AnimationsEnterDemo.native.js.map +3 -3
  11. package/dist/cjs/AnimationsHoverDemo.native.js +16 -18
  12. package/dist/cjs/AnimationsHoverDemo.native.js.map +3 -3
  13. package/dist/cjs/AnimationsPresenceDemo.native.js +124 -58
  14. package/dist/cjs/AnimationsPresenceDemo.native.js.map +3 -3
  15. package/dist/cjs/AnimationsTimingDemo.native.js +15 -17
  16. package/dist/cjs/AnimationsTimingDemo.native.js.map +3 -3
  17. package/dist/cjs/AvatarDemo.native.js +32 -25
  18. package/dist/cjs/AvatarDemo.native.js.map +3 -3
  19. package/dist/cjs/BuildAButtonDemo.native.js +96 -24
  20. package/dist/cjs/BuildAButtonDemo.native.js.map +3 -3
  21. package/dist/cjs/ButtonDemo.native.js +54 -17
  22. package/dist/cjs/ButtonDemo.native.js.map +3 -3
  23. package/dist/cjs/CardDemo.native.js +66 -38
  24. package/dist/cjs/CardDemo.native.js.map +3 -3
  25. package/dist/cjs/CheckboxDemo.native.js +69 -16
  26. package/dist/cjs/CheckboxDemo.native.js.map +3 -3
  27. package/dist/cjs/CheckboxHeadlessDemo.native.js +103 -32
  28. package/dist/cjs/CheckboxHeadlessDemo.native.js.map +3 -3
  29. package/dist/cjs/CheckboxUnstyledDemo.native.js +14 -6
  30. package/dist/cjs/CheckboxUnstyledDemo.native.js.map +3 -3
  31. package/dist/cjs/ColorsDemo.native.js +106 -70
  32. package/dist/cjs/ColorsDemo.native.js.map +3 -3
  33. package/dist/cjs/DialogDemo.native.js +103 -74
  34. package/dist/cjs/DialogDemo.native.js.map +3 -3
  35. package/dist/cjs/FormsDemo.native.js +76 -23
  36. package/dist/cjs/FormsDemo.native.js.map +3 -3
  37. package/dist/cjs/Grid.native.js +22 -24
  38. package/dist/cjs/Grid.native.js.map +3 -3
  39. package/dist/cjs/GroupDemo.native.js +26 -17
  40. package/dist/cjs/GroupDemo.native.js.map +3 -3
  41. package/dist/cjs/HeadingsDemo.native.js +14 -11
  42. package/dist/cjs/HeadingsDemo.native.js.map +3 -3
  43. package/dist/cjs/ImageDemo.native.js +7 -10
  44. package/dist/cjs/ImageDemo.native.js.map +3 -3
  45. package/dist/cjs/InputsDemo.native.js +27 -22
  46. package/dist/cjs/InputsDemo.native.js.map +3 -3
  47. package/dist/cjs/LabelDemo.native.js +26 -11
  48. package/dist/cjs/LabelDemo.native.js.map +3 -3
  49. package/dist/cjs/LinearGradientDemo.native.js +36 -25
  50. package/dist/cjs/LinearGradientDemo.native.js.map +3 -3
  51. package/dist/cjs/ListItemDemo.native.js +49 -35
  52. package/dist/cjs/ListItemDemo.native.js.map +3 -3
  53. package/dist/cjs/LucideIconsDemo.native.js +92 -37
  54. package/dist/cjs/LucideIconsDemo.native.js.map +3 -3
  55. package/dist/cjs/PopoverDemo.native.js +127 -60
  56. package/dist/cjs/PopoverDemo.native.js.map +3 -3
  57. package/dist/cjs/ProgressDemo.native.js +102 -46
  58. package/dist/cjs/ProgressDemo.native.js.map +3 -3
  59. package/dist/cjs/RadioGroupDemo.native.js +35 -11
  60. package/dist/cjs/RadioGroupDemo.native.js.map +3 -3
  61. package/dist/cjs/ReplaceThemeDemo.native.js +71 -20
  62. package/dist/cjs/ReplaceThemeDemo.native.js.map +3 -3
  63. package/dist/cjs/ScrollViewDemo.native.js +44 -21
  64. package/dist/cjs/ScrollViewDemo.native.js.map +3 -3
  65. package/dist/cjs/SelectDemo.native.js +272 -156
  66. package/dist/cjs/SelectDemo.native.js.map +3 -3
  67. package/dist/cjs/SeparatorDemo.native.js +31 -15
  68. package/dist/cjs/SeparatorDemo.native.js.map +3 -3
  69. package/dist/cjs/ShapesDemo.native.js +13 -5
  70. package/dist/cjs/ShapesDemo.native.js.map +3 -3
  71. package/dist/cjs/SheetDemo.native.js +217 -91
  72. package/dist/cjs/SheetDemo.native.js.map +3 -3
  73. package/dist/cjs/SliderDemo.native.js +64 -11
  74. package/dist/cjs/SliderDemo.native.js.map +3 -3
  75. package/dist/cjs/SpinnerDemo.native.js +12 -5
  76. package/dist/cjs/SpinnerDemo.native.js.map +3 -3
  77. package/dist/cjs/StacksDemo.native.js +82 -73
  78. package/dist/cjs/StacksDemo.native.js.map +3 -3
  79. package/dist/cjs/SwitchDemo.native.js +57 -31
  80. package/dist/cjs/SwitchDemo.native.js.map +3 -3
  81. package/dist/cjs/SwitchHeadlessDemo.native.js +118 -47
  82. package/dist/cjs/SwitchHeadlessDemo.native.js.map +3 -3
  83. package/dist/cjs/SwitchUnstyledDemo.native.js +16 -6
  84. package/dist/cjs/SwitchUnstyledDemo.native.js.map +3 -3
  85. package/dist/cjs/TabsAdvancedDemo.native.js +322 -229
  86. package/dist/cjs/TabsAdvancedDemo.native.js.map +3 -3
  87. package/dist/cjs/TabsDemo.native.js +160 -86
  88. package/dist/cjs/TabsDemo.native.js.map +3 -3
  89. package/dist/cjs/TextDemo.native.js +28 -11
  90. package/dist/cjs/TextDemo.native.js.map +3 -3
  91. package/dist/cjs/ThemeBuilderDemo.native.js +152 -125
  92. package/dist/cjs/ThemeBuilderDemo.native.js.map +3 -3
  93. package/dist/cjs/ThemeInverseDemo.native.js +26 -32
  94. package/dist/cjs/ThemeInverseDemo.native.js.map +3 -3
  95. package/dist/cjs/ToastDemo.native.js +126 -79
  96. package/dist/cjs/ToastDemo.native.js.map +3 -3
  97. package/dist/cjs/ToastDuplicateDemo.native.js +93 -32
  98. package/dist/cjs/ToastDuplicateDemo.native.js.map +3 -3
  99. package/dist/cjs/ToggleGroupDemo.native.js +56 -39
  100. package/dist/cjs/ToggleGroupDemo.native.js.map +3 -3
  101. package/dist/cjs/TokensDemo.native.js +132 -52
  102. package/dist/cjs/TokensDemo.native.js.map +3 -3
  103. package/dist/cjs/TooltipDemo.native.js +103 -43
  104. package/dist/cjs/TooltipDemo.native.js.map +3 -3
  105. package/dist/cjs/UpdateThemeDemo.native.js +73 -24
  106. package/dist/cjs/UpdateThemeDemo.native.js.map +3 -3
  107. package/dist/cjs/index.native.js.map +2 -2
  108. package/dist/cjs/tamagui.config.native.js.map +3 -3
  109. package/dist/cjs/useOnIntersecting.native.js +137 -34
  110. package/dist/cjs/useOnIntersecting.native.js.map +3 -3
  111. package/dist/esm/AccordionDemo.native.js +31 -17
  112. package/dist/esm/AccordionDemo.native.js.map +3 -3
  113. package/dist/esm/AddThemeDemo.native.js +70 -26
  114. package/dist/esm/AddThemeDemo.native.js.map +3 -3
  115. package/dist/esm/AlertDialogDemo.native.js +54 -46
  116. package/dist/esm/AlertDialogDemo.native.js.map +3 -3
  117. package/dist/esm/AnimationsDemo.native.js +101 -41
  118. package/dist/esm/AnimationsDemo.native.js.map +3 -3
  119. package/dist/esm/AnimationsEnterDemo.native.js +79 -25
  120. package/dist/esm/AnimationsEnterDemo.native.js.map +3 -3
  121. package/dist/esm/AnimationsHoverDemo.native.js +15 -18
  122. package/dist/esm/AnimationsHoverDemo.native.js.map +3 -3
  123. package/dist/esm/AnimationsPresenceDemo.native.js +123 -58
  124. package/dist/esm/AnimationsPresenceDemo.native.js.map +3 -3
  125. package/dist/esm/AnimationsTimingDemo.native.js +14 -17
  126. package/dist/esm/AnimationsTimingDemo.native.js.map +3 -3
  127. package/dist/esm/AvatarDemo.native.js +22 -23
  128. package/dist/esm/AvatarDemo.native.js.map +3 -3
  129. package/dist/esm/BuildAButtonDemo.native.js +95 -24
  130. package/dist/esm/BuildAButtonDemo.native.js.map +3 -3
  131. package/dist/esm/ButtonDemo.native.js +53 -17
  132. package/dist/esm/ButtonDemo.native.js.map +3 -3
  133. package/dist/esm/CardDemo.native.js +65 -38
  134. package/dist/esm/CardDemo.native.js.map +3 -3
  135. package/dist/esm/CheckboxDemo.native.js +68 -16
  136. package/dist/esm/CheckboxDemo.native.js.map +3 -3
  137. package/dist/esm/CheckboxHeadlessDemo.native.js +102 -32
  138. package/dist/esm/CheckboxHeadlessDemo.native.js.map +3 -3
  139. package/dist/esm/CheckboxUnstyledDemo.native.js +14 -6
  140. package/dist/esm/CheckboxUnstyledDemo.native.js.map +3 -3
  141. package/dist/esm/ColorsDemo.native.js +107 -80
  142. package/dist/esm/ColorsDemo.native.js.map +3 -3
  143. package/dist/esm/DialogDemo.native.js +103 -87
  144. package/dist/esm/DialogDemo.native.js.map +3 -3
  145. package/dist/esm/FormsDemo.native.js +75 -23
  146. package/dist/esm/FormsDemo.native.js.map +3 -3
  147. package/dist/esm/Grid.mjs +0 -1
  148. package/dist/esm/Grid.native.js +21 -24
  149. package/dist/esm/Grid.native.js.map +3 -3
  150. package/dist/esm/GroupDemo.native.js +25 -17
  151. package/dist/esm/GroupDemo.native.js.map +3 -3
  152. package/dist/esm/HeadingsDemo.native.js +4 -9
  153. package/dist/esm/HeadingsDemo.native.js.map +3 -3
  154. package/dist/esm/ImageDemo.native.js +6 -10
  155. package/dist/esm/ImageDemo.native.js.map +3 -3
  156. package/dist/esm/InputsDemo.native.js +26 -22
  157. package/dist/esm/InputsDemo.native.js.map +3 -3
  158. package/dist/esm/LabelDemo.native.js +25 -11
  159. package/dist/esm/LabelDemo.native.js.map +3 -3
  160. package/dist/esm/LinearGradientDemo.native.js +35 -25
  161. package/dist/esm/LinearGradientDemo.native.js.map +3 -3
  162. package/dist/esm/ListItemDemo.native.js +48 -35
  163. package/dist/esm/ListItemDemo.native.js.map +3 -3
  164. package/dist/esm/LucideIconsDemo.native.js +91 -37
  165. package/dist/esm/LucideIconsDemo.native.js.map +3 -3
  166. package/dist/esm/PopoverDemo.native.js +126 -60
  167. package/dist/esm/PopoverDemo.native.js.map +3 -3
  168. package/dist/esm/ProgressDemo.native.js +101 -46
  169. package/dist/esm/ProgressDemo.native.js.map +3 -3
  170. package/dist/esm/RadioGroupDemo.native.js +34 -11
  171. package/dist/esm/RadioGroupDemo.native.js.map +3 -3
  172. package/dist/esm/ReplaceThemeDemo.native.js +71 -29
  173. package/dist/esm/ReplaceThemeDemo.native.js.map +3 -3
  174. package/dist/esm/ScrollViewDemo.native.js +43 -21
  175. package/dist/esm/ScrollViewDemo.native.js.map +3 -3
  176. package/dist/esm/SelectDemo.native.js +271 -156
  177. package/dist/esm/SelectDemo.native.js.map +3 -3
  178. package/dist/esm/SeparatorDemo.native.js +21 -13
  179. package/dist/esm/SeparatorDemo.native.js.map +3 -3
  180. package/dist/esm/ShapesDemo.native.js +12 -5
  181. package/dist/esm/ShapesDemo.native.js.map +3 -3
  182. package/dist/esm/SheetDemo.native.js +216 -91
  183. package/dist/esm/SheetDemo.native.js.map +3 -3
  184. package/dist/esm/SliderDemo.native.js +63 -11
  185. package/dist/esm/SliderDemo.native.js.map +3 -3
  186. package/dist/esm/SpinnerDemo.native.js +11 -5
  187. package/dist/esm/SpinnerDemo.native.js.map +3 -3
  188. package/dist/esm/StacksDemo.native.js +72 -71
  189. package/dist/esm/StacksDemo.native.js.map +3 -3
  190. package/dist/esm/SwitchDemo.native.js +56 -31
  191. package/dist/esm/SwitchDemo.native.js.map +3 -3
  192. package/dist/esm/SwitchHeadlessDemo.native.js +117 -47
  193. package/dist/esm/SwitchHeadlessDemo.native.js.map +3 -3
  194. package/dist/esm/SwitchUnstyledDemo.native.js +16 -6
  195. package/dist/esm/SwitchUnstyledDemo.native.js.map +3 -3
  196. package/dist/esm/TabsAdvancedDemo.native.js +322 -239
  197. package/dist/esm/TabsAdvancedDemo.native.js.map +3 -3
  198. package/dist/esm/TabsDemo.native.js +156 -83
  199. package/dist/esm/TabsDemo.native.js.map +3 -3
  200. package/dist/esm/TextDemo.native.js +18 -9
  201. package/dist/esm/TextDemo.native.js.map +3 -3
  202. package/dist/esm/ThemeBuilderDemo.native.js +151 -125
  203. package/dist/esm/ThemeBuilderDemo.native.js.map +3 -3
  204. package/dist/esm/ThemeInverseDemo.native.js +25 -32
  205. package/dist/esm/ThemeInverseDemo.native.js.map +3 -3
  206. package/dist/esm/ToastDemo.native.js +125 -79
  207. package/dist/esm/ToastDemo.native.js.map +3 -3
  208. package/dist/esm/ToastDuplicateDemo.native.js +92 -32
  209. package/dist/esm/ToastDuplicateDemo.native.js.map +3 -3
  210. package/dist/esm/ToggleGroupDemo.native.js +55 -39
  211. package/dist/esm/ToggleGroupDemo.native.js.map +3 -3
  212. package/dist/esm/TokensDemo.native.js +131 -52
  213. package/dist/esm/TokensDemo.native.js.map +3 -3
  214. package/dist/esm/TooltipDemo.native.js +103 -50
  215. package/dist/esm/TooltipDemo.native.js.map +3 -3
  216. package/dist/esm/UpdateThemeDemo.native.js +73 -34
  217. package/dist/esm/UpdateThemeDemo.native.js.map +3 -3
  218. package/dist/esm/index.native.js.map +1 -1
  219. package/dist/esm/tamagui.config.native.js.map +2 -2
  220. package/dist/esm/useOnIntersecting.native.js +138 -35
  221. package/dist/esm/useOnIntersecting.native.js.map +3 -3
  222. package/dist/jsx/AccordionDemo.native.js +31 -17
  223. package/dist/jsx/AccordionDemo.native.js.map +3 -3
  224. package/dist/jsx/AddThemeDemo.native.js +70 -26
  225. package/dist/jsx/AddThemeDemo.native.js.map +3 -3
  226. package/dist/jsx/AlertDialogDemo.native.js +54 -46
  227. package/dist/jsx/AlertDialogDemo.native.js.map +3 -3
  228. package/dist/jsx/AnimationsDemo.native.js +101 -41
  229. package/dist/jsx/AnimationsDemo.native.js.map +3 -3
  230. package/dist/jsx/AnimationsEnterDemo.native.js +79 -25
  231. package/dist/jsx/AnimationsEnterDemo.native.js.map +3 -3
  232. package/dist/jsx/AnimationsHoverDemo.native.js +15 -18
  233. package/dist/jsx/AnimationsHoverDemo.native.js.map +3 -3
  234. package/dist/jsx/AnimationsPresenceDemo.native.js +123 -58
  235. package/dist/jsx/AnimationsPresenceDemo.native.js.map +3 -3
  236. package/dist/jsx/AnimationsTimingDemo.native.js +14 -17
  237. package/dist/jsx/AnimationsTimingDemo.native.js.map +3 -3
  238. package/dist/jsx/AvatarDemo.native.js +22 -23
  239. package/dist/jsx/AvatarDemo.native.js.map +3 -3
  240. package/dist/jsx/BuildAButtonDemo.native.js +95 -24
  241. package/dist/jsx/BuildAButtonDemo.native.js.map +3 -3
  242. package/dist/jsx/ButtonDemo.native.js +53 -17
  243. package/dist/jsx/ButtonDemo.native.js.map +3 -3
  244. package/dist/jsx/CardDemo.native.js +65 -38
  245. package/dist/jsx/CardDemo.native.js.map +3 -3
  246. package/dist/jsx/CheckboxDemo.native.js +68 -16
  247. package/dist/jsx/CheckboxDemo.native.js.map +3 -3
  248. package/dist/jsx/CheckboxHeadlessDemo.native.js +102 -32
  249. package/dist/jsx/CheckboxHeadlessDemo.native.js.map +3 -3
  250. package/dist/jsx/CheckboxUnstyledDemo.native.js +14 -6
  251. package/dist/jsx/CheckboxUnstyledDemo.native.js.map +3 -3
  252. package/dist/jsx/ColorsDemo.native.js +107 -80
  253. package/dist/jsx/ColorsDemo.native.js.map +3 -3
  254. package/dist/jsx/DialogDemo.native.js +103 -87
  255. package/dist/jsx/DialogDemo.native.js.map +3 -3
  256. package/dist/jsx/FormsDemo.native.js +75 -23
  257. package/dist/jsx/FormsDemo.native.js.map +3 -3
  258. package/dist/jsx/Grid.mjs +0 -1
  259. package/dist/jsx/Grid.native.js +21 -24
  260. package/dist/jsx/Grid.native.js.map +3 -3
  261. package/dist/jsx/GroupDemo.native.js +25 -17
  262. package/dist/jsx/GroupDemo.native.js.map +3 -3
  263. package/dist/jsx/HeadingsDemo.native.js +4 -9
  264. package/dist/jsx/HeadingsDemo.native.js.map +3 -3
  265. package/dist/jsx/ImageDemo.native.js +6 -10
  266. package/dist/jsx/ImageDemo.native.js.map +3 -3
  267. package/dist/jsx/InputsDemo.native.js +26 -22
  268. package/dist/jsx/InputsDemo.native.js.map +3 -3
  269. package/dist/jsx/LabelDemo.native.js +25 -11
  270. package/dist/jsx/LabelDemo.native.js.map +3 -3
  271. package/dist/jsx/LinearGradientDemo.native.js +35 -25
  272. package/dist/jsx/LinearGradientDemo.native.js.map +3 -3
  273. package/dist/jsx/ListItemDemo.native.js +48 -35
  274. package/dist/jsx/ListItemDemo.native.js.map +3 -3
  275. package/dist/jsx/LucideIconsDemo.native.js +91 -37
  276. package/dist/jsx/LucideIconsDemo.native.js.map +3 -3
  277. package/dist/jsx/PopoverDemo.native.js +126 -60
  278. package/dist/jsx/PopoverDemo.native.js.map +3 -3
  279. package/dist/jsx/ProgressDemo.native.js +101 -46
  280. package/dist/jsx/ProgressDemo.native.js.map +3 -3
  281. package/dist/jsx/RadioGroupDemo.native.js +34 -11
  282. package/dist/jsx/RadioGroupDemo.native.js.map +3 -3
  283. package/dist/jsx/ReplaceThemeDemo.native.js +71 -29
  284. package/dist/jsx/ReplaceThemeDemo.native.js.map +3 -3
  285. package/dist/jsx/ScrollViewDemo.native.js +43 -21
  286. package/dist/jsx/ScrollViewDemo.native.js.map +3 -3
  287. package/dist/jsx/SelectDemo.native.js +271 -156
  288. package/dist/jsx/SelectDemo.native.js.map +3 -3
  289. package/dist/jsx/SeparatorDemo.native.js +21 -13
  290. package/dist/jsx/SeparatorDemo.native.js.map +3 -3
  291. package/dist/jsx/ShapesDemo.native.js +12 -5
  292. package/dist/jsx/ShapesDemo.native.js.map +3 -3
  293. package/dist/jsx/SheetDemo.native.js +216 -91
  294. package/dist/jsx/SheetDemo.native.js.map +3 -3
  295. package/dist/jsx/SliderDemo.native.js +63 -11
  296. package/dist/jsx/SliderDemo.native.js.map +3 -3
  297. package/dist/jsx/SpinnerDemo.native.js +11 -5
  298. package/dist/jsx/SpinnerDemo.native.js.map +3 -3
  299. package/dist/jsx/StacksDemo.native.js +72 -71
  300. package/dist/jsx/StacksDemo.native.js.map +3 -3
  301. package/dist/jsx/SwitchDemo.native.js +56 -31
  302. package/dist/jsx/SwitchDemo.native.js.map +3 -3
  303. package/dist/jsx/SwitchHeadlessDemo.native.js +117 -47
  304. package/dist/jsx/SwitchHeadlessDemo.native.js.map +3 -3
  305. package/dist/jsx/SwitchUnstyledDemo.native.js +16 -6
  306. package/dist/jsx/SwitchUnstyledDemo.native.js.map +3 -3
  307. package/dist/jsx/TabsAdvancedDemo.native.js +322 -239
  308. package/dist/jsx/TabsAdvancedDemo.native.js.map +3 -3
  309. package/dist/jsx/TabsDemo.native.js +156 -83
  310. package/dist/jsx/TabsDemo.native.js.map +3 -3
  311. package/dist/jsx/TextDemo.native.js +18 -9
  312. package/dist/jsx/TextDemo.native.js.map +3 -3
  313. package/dist/jsx/ThemeBuilderDemo.native.js +151 -125
  314. package/dist/jsx/ThemeBuilderDemo.native.js.map +3 -3
  315. package/dist/jsx/ThemeInverseDemo.native.js +25 -32
  316. package/dist/jsx/ThemeInverseDemo.native.js.map +3 -3
  317. package/dist/jsx/ToastDemo.native.js +125 -79
  318. package/dist/jsx/ToastDemo.native.js.map +3 -3
  319. package/dist/jsx/ToastDuplicateDemo.native.js +92 -32
  320. package/dist/jsx/ToastDuplicateDemo.native.js.map +3 -3
  321. package/dist/jsx/ToggleGroupDemo.native.js +55 -39
  322. package/dist/jsx/ToggleGroupDemo.native.js.map +3 -3
  323. package/dist/jsx/TokensDemo.native.js +131 -52
  324. package/dist/jsx/TokensDemo.native.js.map +3 -3
  325. package/dist/jsx/TooltipDemo.native.js +103 -50
  326. package/dist/jsx/TooltipDemo.native.js.map +3 -3
  327. package/dist/jsx/UpdateThemeDemo.native.js +73 -34
  328. package/dist/jsx/UpdateThemeDemo.native.js.map +3 -3
  329. package/dist/jsx/index.native.js.map +1 -1
  330. package/dist/jsx/tamagui.config.native.js.map +2 -2
  331. package/dist/jsx/useOnIntersecting.native.js +138 -35
  332. package/dist/jsx/useOnIntersecting.native.js.map +3 -3
  333. package/package.json +18 -18
@@ -1,247 +1,318 @@
1
1
  import { useState } from "react";
2
- import {
3
- AnimatePresence,
4
- Button,
5
- H5,
6
- SizableText,
7
- Tabs,
8
- XStack,
9
- YStack,
10
- styled
11
- } from "tamagui";
12
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
- const demos = ["background", "underline"], demosTitle = {
2
+ import { AnimatePresence, Button, H5, SizableText, Tabs, XStack, YStack, styled } from "tamagui";
3
+ function _array_like_to_array(arr, len) {
4
+ (len == null || len > arr.length) && (len = arr.length);
5
+ for (var i = 0, arr2 = new Array(len); i < len; i++)
6
+ arr2[i] = arr[i];
7
+ return arr2;
8
+ }
9
+ function _array_with_holes(arr) {
10
+ if (Array.isArray(arr))
11
+ return arr;
12
+ }
13
+ function _define_property(obj, key, value) {
14
+ return key in obj ? Object.defineProperty(obj, key, {
15
+ value,
16
+ enumerable: !0,
17
+ configurable: !0,
18
+ writable: !0
19
+ }) : obj[key] = value, obj;
20
+ }
21
+ function _iterable_to_array_limit(arr, i) {
22
+ var _i = arr == null ? null : typeof Symbol < "u" && arr[Symbol.iterator] || arr["@@iterator"];
23
+ if (_i != null) {
24
+ var _arr = [], _n = !0, _d = !1, _s, _e;
25
+ try {
26
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0)
27
+ ;
28
+ } catch (err) {
29
+ _d = !0, _e = err;
30
+ } finally {
31
+ try {
32
+ !_n && _i.return != null && _i.return();
33
+ } finally {
34
+ if (_d)
35
+ throw _e;
36
+ }
37
+ }
38
+ return _arr;
39
+ }
40
+ }
41
+ function _non_iterable_rest() {
42
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
43
+ }
44
+ function _object_spread(target) {
45
+ for (var i = 1; i < arguments.length; i++) {
46
+ var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
47
+ typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
48
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
49
+ }))), ownKeys2.forEach(function(key) {
50
+ _define_property(target, key, source[key]);
51
+ });
52
+ }
53
+ return target;
54
+ }
55
+ function ownKeys(object, enumerableOnly) {
56
+ var keys = Object.keys(object);
57
+ if (Object.getOwnPropertySymbols) {
58
+ var symbols = Object.getOwnPropertySymbols(object);
59
+ enumerableOnly && (symbols = symbols.filter(function(sym) {
60
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
61
+ })), keys.push.apply(keys, symbols);
62
+ }
63
+ return keys;
64
+ }
65
+ function _object_spread_props(target, source) {
66
+ return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
67
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
68
+ }), target;
69
+ }
70
+ function _object_without_properties(source, excluded) {
71
+ if (source == null)
72
+ return {};
73
+ var target = _object_without_properties_loose(source, excluded), key, i;
74
+ if (Object.getOwnPropertySymbols) {
75
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
76
+ for (i = 0; i < sourceSymbolKeys.length; i++)
77
+ key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
78
+ }
79
+ return target;
80
+ }
81
+ function _object_without_properties_loose(source, excluded) {
82
+ if (source == null)
83
+ return {};
84
+ var target = {}, sourceKeys = Object.keys(source), key, i;
85
+ for (i = 0; i < sourceKeys.length; i++)
86
+ key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
87
+ return target;
88
+ }
89
+ function _sliced_to_array(arr, i) {
90
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
91
+ }
92
+ function _unsupported_iterable_to_array(o, minLen) {
93
+ if (o) {
94
+ if (typeof o == "string")
95
+ return _array_like_to_array(o, minLen);
96
+ var n = Object.prototype.toString.call(o).slice(8, -1);
97
+ if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
98
+ return Array.from(n);
99
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
100
+ return _array_like_to_array(o, minLen);
101
+ }
102
+ }
103
+ var demos = [
104
+ "background",
105
+ "underline"
106
+ ], demosTitle = {
14
107
  background: "Background Indicator",
15
108
  underline: "Underline Indicator"
16
- }, TabsAdvancedDemo = () => {
17
- const [demoIndex, setDemoIndex] = useState(0), demo = demos[demoIndex];
18
- return /* @__PURE__ */ jsxs(Fragment, { children: [
19
- demo === "underline" ? /* @__PURE__ */ jsx(TabsAdvancedUnderline, {}) : /* @__PURE__ */ jsx(TabsAdvancedBackground, {}),
20
- /* @__PURE__ */ jsx(
21
- XStack,
22
- {
23
- alignItems: "center",
24
- space: !0,
25
- position: "absolute",
26
- bottom: "$3",
27
- left: "$4",
28
- $xxs: { display: "none" },
29
- children: /* @__PURE__ */ jsx(Button, { size: "$2", onPress: () => setDemoIndex((x) => (x + 1) % demos.length), children: demosTitle[demo] })
30
- }
31
- )
32
- ] });
33
- }, TabsAdvancedBackground = () => {
34
- const [tabState, setTabState] = useState({
109
+ }, TabsAdvancedDemo = function() {
110
+ var _useState = _sliced_to_array(useState(0), 2), demoIndex = _useState[0], setDemoIndex = _useState[1], demo = demos[demoIndex];
111
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, demo === "underline" ? /* @__PURE__ */ React.createElement(TabsAdvancedUnderline, null) : /* @__PURE__ */ React.createElement(TabsAdvancedBackground, null), /* @__PURE__ */ React.createElement(XStack, {
112
+ alignItems: "center",
113
+ space: !0,
114
+ position: "absolute",
115
+ bottom: "$3",
116
+ left: "$4",
117
+ $xxs: {
118
+ display: "none"
119
+ }
120
+ }, /* @__PURE__ */ React.createElement(Button, {
121
+ size: "$2",
122
+ onPress: function() {
123
+ return setDemoIndex(function(x) {
124
+ return (x + 1) % demos.length;
125
+ });
126
+ }
127
+ }, demosTitle[demo])));
128
+ }, TabsAdvancedBackground = function() {
129
+ var _useState = _sliced_to_array(useState({
35
130
  activeAt: null,
36
131
  currentTab: "tab1",
37
132
  intentAt: null,
38
133
  prevActiveAt: null
39
- }), setCurrentTab = (currentTab2) => setTabState({ ...tabState, currentTab: currentTab2 }), setIntentIndicator = (intentAt2) => setTabState({ ...tabState, intentAt: intentAt2 }), setActiveIndicator = (activeAt2) => setTabState({ ...tabState, prevActiveAt: tabState.activeAt, activeAt: activeAt2 }), { activeAt, intentAt, prevActiveAt, currentTab } = tabState, direction = !activeAt || !prevActiveAt || activeAt.x === prevActiveAt.x ? 0 : activeAt.x > prevActiveAt.x ? -1 : 1, enterVariant = direction === 1 ? "isLeft" : direction === -1 ? "isRight" : "defaultFade", exitVariant = direction === 1 ? "isRight" : direction === -1 ? "isLeft" : "defaultFade", handleOnInteraction = (type, layout) => {
134
+ }), 2), tabState = _useState[0], setTabState = _useState[1], setCurrentTab = function(currentTab2) {
135
+ return setTabState(_object_spread_props(_object_spread({}, tabState), {
136
+ currentTab: currentTab2
137
+ }));
138
+ }, setIntentIndicator = function(intentAt2) {
139
+ return setTabState(_object_spread_props(_object_spread({}, tabState), {
140
+ intentAt: intentAt2
141
+ }));
142
+ }, setActiveIndicator = function(activeAt2) {
143
+ return setTabState(_object_spread_props(_object_spread({}, tabState), {
144
+ prevActiveAt: tabState.activeAt,
145
+ activeAt: activeAt2
146
+ }));
147
+ }, activeAt = tabState.activeAt, intentAt = tabState.intentAt, prevActiveAt = tabState.prevActiveAt, currentTab = tabState.currentTab, direction = function() {
148
+ return !activeAt || !prevActiveAt || activeAt.x === prevActiveAt.x ? 0 : activeAt.x > prevActiveAt.x ? -1 : 1;
149
+ }(), enterVariant = direction === 1 ? "isLeft" : direction === -1 ? "isRight" : "defaultFade", exitVariant = direction === 1 ? "isRight" : direction === -1 ? "isLeft" : "defaultFade", handleOnInteraction = function(type, layout) {
40
150
  type === "select" ? setActiveIndicator(layout) : setIntentIndicator(layout);
41
151
  };
42
- return /* @__PURE__ */ jsxs(
43
- Tabs,
44
- {
45
- value: currentTab,
46
- onValueChange: setCurrentTab,
47
- orientation: "horizontal",
48
- size: "$4",
49
- padding: "$2",
50
- height: 150,
51
- flexDirection: "column",
52
- activationMode: "manual",
53
- backgroundColor: "$background",
54
- borderRadius: "$4",
55
- position: "relative",
56
- children: [
57
- /* @__PURE__ */ jsxs(YStack, { children: [
58
- /* @__PURE__ */ jsx(AnimatePresence, { children: intentAt && /* @__PURE__ */ jsx(
59
- TabsRovingIndicator,
60
- {
61
- borderRadius: "$4",
62
- width: intentAt.width,
63
- height: intentAt.height,
64
- x: intentAt.x,
65
- y: intentAt.y
66
- }
67
- ) }),
68
- /* @__PURE__ */ jsx(AnimatePresence, { children: activeAt && /* @__PURE__ */ jsx(
69
- TabsRovingIndicator,
70
- {
71
- borderRadius: "$4",
72
- theme: "active",
73
- width: activeAt.width,
74
- height: activeAt.height,
75
- x: activeAt.x,
76
- y: activeAt.y
77
- }
78
- ) }),
79
- /* @__PURE__ */ jsxs(
80
- Tabs.List,
81
- {
82
- disablePassBorderRadius: !0,
83
- loop: !1,
84
- "aria-label": "Manage your account",
85
- gap: "$2",
86
- backgroundColor: "transparent",
87
- children: [
88
- /* @__PURE__ */ jsx(
89
- Tabs.Tab,
90
- {
91
- unstyled: !0,
92
- paddingVertical: "$2",
93
- paddingHorizontal: "$3",
94
- value: "tab1",
95
- onInteraction: handleOnInteraction,
96
- children: /* @__PURE__ */ jsx(SizableText, { children: "Profile" })
97
- }
98
- ),
99
- /* @__PURE__ */ jsx(
100
- Tabs.Tab,
101
- {
102
- unstyled: !0,
103
- paddingVertical: "$2",
104
- paddingHorizontal: "$3",
105
- value: "tab2",
106
- onInteraction: handleOnInteraction,
107
- children: /* @__PURE__ */ jsx(SizableText, { children: "Connections" })
108
- }
109
- ),
110
- /* @__PURE__ */ jsx(
111
- Tabs.Tab,
112
- {
113
- unstyled: !0,
114
- paddingVertical: "$2",
115
- paddingHorizontal: "$3",
116
- value: "tab3",
117
- onInteraction: handleOnInteraction,
118
- children: /* @__PURE__ */ jsx(SizableText, { children: "Notifications" })
119
- }
120
- )
121
- ]
122
- }
123
- )
124
- ] }),
125
- /* @__PURE__ */ jsx(
126
- AnimatePresence,
127
- {
128
- exitBeforeEnter: !0,
129
- enterVariant,
130
- exitVariant,
131
- children: /* @__PURE__ */ jsx(AnimatedYStack, { animation: "100ms", x: 0, opacity: 1, flex: 1, children: /* @__PURE__ */ jsx(Tabs.Content, { value: currentTab, forceMount: !0, flex: 1, justifyContent: "center", children: /* @__PURE__ */ jsx(H5, { textAlign: "center", children: currentTab }) }) }, currentTab)
132
- }
133
- )
134
- ]
135
- }
136
- );
137
- }, TabsAdvancedUnderline = () => {
138
- const [tabState, setTabState] = useState({
152
+ return /* @__PURE__ */ React.createElement(Tabs, {
153
+ value: currentTab,
154
+ onValueChange: setCurrentTab,
155
+ orientation: "horizontal",
156
+ size: "$4",
157
+ padding: "$2",
158
+ height: 150,
159
+ flexDirection: "column",
160
+ activationMode: "manual",
161
+ backgroundColor: "$background",
162
+ borderRadius: "$4",
163
+ position: "relative"
164
+ }, /* @__PURE__ */ React.createElement(YStack, null, /* @__PURE__ */ React.createElement(AnimatePresence, null, intentAt && /* @__PURE__ */ React.createElement(TabsRovingIndicator, {
165
+ borderRadius: "$4",
166
+ width: intentAt.width,
167
+ height: intentAt.height,
168
+ x: intentAt.x,
169
+ y: intentAt.y
170
+ })), /* @__PURE__ */ React.createElement(AnimatePresence, null, activeAt && /* @__PURE__ */ React.createElement(TabsRovingIndicator, {
171
+ borderRadius: "$4",
172
+ theme: "active",
173
+ width: activeAt.width,
174
+ height: activeAt.height,
175
+ x: activeAt.x,
176
+ y: activeAt.y
177
+ })), /* @__PURE__ */ React.createElement(Tabs.List, {
178
+ disablePassBorderRadius: !0,
179
+ loop: !1,
180
+ "aria-label": "Manage your account",
181
+ gap: "$2",
182
+ backgroundColor: "transparent"
183
+ }, /* @__PURE__ */ React.createElement(Tabs.Tab, {
184
+ unstyled: !0,
185
+ paddingVertical: "$2",
186
+ paddingHorizontal: "$3",
187
+ value: "tab1",
188
+ onInteraction: handleOnInteraction
189
+ }, /* @__PURE__ */ React.createElement(SizableText, null, "Profile")), /* @__PURE__ */ React.createElement(Tabs.Tab, {
190
+ unstyled: !0,
191
+ paddingVertical: "$2",
192
+ paddingHorizontal: "$3",
193
+ value: "tab2",
194
+ onInteraction: handleOnInteraction
195
+ }, /* @__PURE__ */ React.createElement(SizableText, null, "Connections")), /* @__PURE__ */ React.createElement(Tabs.Tab, {
196
+ unstyled: !0,
197
+ paddingVertical: "$2",
198
+ paddingHorizontal: "$3",
199
+ value: "tab3",
200
+ onInteraction: handleOnInteraction
201
+ }, /* @__PURE__ */ React.createElement(SizableText, null, "Notifications")))), /* @__PURE__ */ React.createElement(AnimatePresence, {
202
+ exitBeforeEnter: !0,
203
+ enterVariant,
204
+ exitVariant
205
+ }, /* @__PURE__ */ React.createElement(AnimatedYStack, {
206
+ key: currentTab,
207
+ animation: "100ms",
208
+ x: 0,
209
+ opacity: 1,
210
+ flex: 1
211
+ }, /* @__PURE__ */ React.createElement(Tabs.Content, {
212
+ value: currentTab,
213
+ forceMount: !0,
214
+ flex: 1,
215
+ justifyContent: "center"
216
+ }, /* @__PURE__ */ React.createElement(H5, {
217
+ textAlign: "center"
218
+ }, currentTab)))));
219
+ }, TabsAdvancedUnderline = function() {
220
+ var _useState = _sliced_to_array(useState({
139
221
  activeAt: null,
140
222
  currentTab: "tab1",
141
223
  intentAt: null,
142
224
  prevActiveAt: null
143
- }), setCurrentTab = (currentTab2) => setTabState({ ...tabState, currentTab: currentTab2 }), setIntentIndicator = (intentAt2) => setTabState({ ...tabState, intentAt: intentAt2 }), setActiveIndicator = (activeAt2) => setTabState({ ...tabState, prevActiveAt: tabState.activeAt, activeAt: activeAt2 }), { activeAt, intentAt, prevActiveAt, currentTab } = tabState, direction = !activeAt || !prevActiveAt || activeAt.x === prevActiveAt.x ? 0 : activeAt.x > prevActiveAt.x ? -1 : 1, enterVariant = direction === 1 ? "isLeft" : direction === -1 ? "isRight" : "defaultFade", exitVariant = direction === 1 ? "isRight" : direction === -1 ? "isLeft" : "defaultFade", handleOnInteraction = (type, layout) => {
225
+ }), 2), tabState = _useState[0], setTabState = _useState[1], setCurrentTab = function(currentTab2) {
226
+ return setTabState(_object_spread_props(_object_spread({}, tabState), {
227
+ currentTab: currentTab2
228
+ }));
229
+ }, setIntentIndicator = function(intentAt2) {
230
+ return setTabState(_object_spread_props(_object_spread({}, tabState), {
231
+ intentAt: intentAt2
232
+ }));
233
+ }, setActiveIndicator = function(activeAt2) {
234
+ return setTabState(_object_spread_props(_object_spread({}, tabState), {
235
+ prevActiveAt: tabState.activeAt,
236
+ activeAt: activeAt2
237
+ }));
238
+ }, activeAt = tabState.activeAt, intentAt = tabState.intentAt, prevActiveAt = tabState.prevActiveAt, currentTab = tabState.currentTab, direction = function() {
239
+ return !activeAt || !prevActiveAt || activeAt.x === prevActiveAt.x ? 0 : activeAt.x > prevActiveAt.x ? -1 : 1;
240
+ }(), enterVariant = direction === 1 ? "isLeft" : direction === -1 ? "isRight" : "defaultFade", exitVariant = direction === 1 ? "isRight" : direction === -1 ? "isLeft" : "defaultFade", handleOnInteraction = function(type, layout) {
144
241
  type === "select" ? setActiveIndicator(layout) : setIntentIndicator(layout);
145
242
  };
146
- return /* @__PURE__ */ jsxs(
147
- Tabs,
148
- {
149
- value: currentTab,
150
- onValueChange: setCurrentTab,
151
- orientation: "horizontal",
152
- size: "$4",
153
- height: 150,
154
- flexDirection: "column",
155
- activationMode: "manual",
156
- backgroundColor: "$background",
157
- borderRadius: "$4",
158
- children: [
159
- /* @__PURE__ */ jsxs(YStack, { children: [
160
- /* @__PURE__ */ jsx(AnimatePresence, { children: intentAt && /* @__PURE__ */ jsx(
161
- TabsRovingIndicator,
162
- {
163
- width: intentAt.width,
164
- height: "$0.5",
165
- x: intentAt.x,
166
- bottom: 0
167
- }
168
- ) }),
169
- /* @__PURE__ */ jsx(AnimatePresence, { children: activeAt && /* @__PURE__ */ jsx(
170
- TabsRovingIndicator,
171
- {
172
- theme: "active",
173
- active: !0,
174
- width: activeAt.width,
175
- height: "$0.5",
176
- x: activeAt.x,
177
- bottom: 0
178
- }
179
- ) }),
180
- /* @__PURE__ */ jsxs(
181
- Tabs.List,
182
- {
183
- disablePassBorderRadius: !0,
184
- loop: !1,
185
- "aria-label": "Manage your account",
186
- borderBottomLeftRadius: 0,
187
- borderBottomRightRadius: 0,
188
- paddingBottom: "$1.5",
189
- borderColor: "$color3",
190
- borderBottomWidth: "$0.5",
191
- backgroundColor: "transparent",
192
- children: [
193
- /* @__PURE__ */ jsx(
194
- Tabs.Tab,
195
- {
196
- unstyled: !0,
197
- paddingHorizontal: "$3",
198
- paddingVertical: "$2",
199
- value: "tab1",
200
- onInteraction: handleOnInteraction,
201
- children: /* @__PURE__ */ jsx(SizableText, { children: "Profile" })
202
- }
203
- ),
204
- /* @__PURE__ */ jsx(
205
- Tabs.Tab,
206
- {
207
- unstyled: !0,
208
- paddingHorizontal: "$3",
209
- paddingVertical: "$2",
210
- value: "tab2",
211
- onInteraction: handleOnInteraction,
212
- children: /* @__PURE__ */ jsx(SizableText, { children: "Connections" })
213
- }
214
- ),
215
- /* @__PURE__ */ jsx(
216
- Tabs.Tab,
217
- {
218
- unstyled: !0,
219
- paddingHorizontal: "$3",
220
- paddingVertical: "$2",
221
- value: "tab3",
222
- onInteraction: handleOnInteraction,
223
- children: /* @__PURE__ */ jsx(SizableText, { children: "Notifications" })
224
- }
225
- )
226
- ]
227
- }
228
- )
229
- ] }),
230
- /* @__PURE__ */ jsx(
231
- AnimatePresence,
232
- {
233
- exitBeforeEnter: !0,
234
- enterVariant,
235
- exitVariant,
236
- children: /* @__PURE__ */ jsx(AnimatedYStack, { animation: "100ms", x: 0, opacity: 1, flex: 1, children: /* @__PURE__ */ jsx(Tabs.Content, { value: currentTab, forceMount: !0, flex: 1, justifyContent: "center", children: /* @__PURE__ */ jsx(H5, { textAlign: "center", children: currentTab }) }) }, currentTab)
237
- }
238
- )
239
- ]
240
- }
241
- );
242
- }, TabsRovingIndicator = ({ active, ...props }) => /* @__PURE__ */ jsx(
243
- YStack,
244
- {
243
+ return /* @__PURE__ */ React.createElement(Tabs, {
244
+ value: currentTab,
245
+ onValueChange: setCurrentTab,
246
+ orientation: "horizontal",
247
+ size: "$4",
248
+ height: 150,
249
+ flexDirection: "column",
250
+ activationMode: "manual",
251
+ backgroundColor: "$background",
252
+ borderRadius: "$4"
253
+ }, /* @__PURE__ */ React.createElement(YStack, null, /* @__PURE__ */ React.createElement(AnimatePresence, null, intentAt && /* @__PURE__ */ React.createElement(TabsRovingIndicator, {
254
+ width: intentAt.width,
255
+ height: "$0.5",
256
+ x: intentAt.x,
257
+ bottom: 0
258
+ })), /* @__PURE__ */ React.createElement(AnimatePresence, null, activeAt && /* @__PURE__ */ React.createElement(TabsRovingIndicator, {
259
+ theme: "active",
260
+ active: !0,
261
+ width: activeAt.width,
262
+ height: "$0.5",
263
+ x: activeAt.x,
264
+ bottom: 0
265
+ })), /* @__PURE__ */ React.createElement(Tabs.List, {
266
+ disablePassBorderRadius: !0,
267
+ loop: !1,
268
+ "aria-label": "Manage your account",
269
+ borderBottomLeftRadius: 0,
270
+ borderBottomRightRadius: 0,
271
+ paddingBottom: "$1.5",
272
+ borderColor: "$color3",
273
+ borderBottomWidth: "$0.5",
274
+ backgroundColor: "transparent"
275
+ }, /* @__PURE__ */ React.createElement(Tabs.Tab, {
276
+ unstyled: !0,
277
+ paddingHorizontal: "$3",
278
+ paddingVertical: "$2",
279
+ value: "tab1",
280
+ onInteraction: handleOnInteraction
281
+ }, /* @__PURE__ */ React.createElement(SizableText, null, "Profile")), /* @__PURE__ */ React.createElement(Tabs.Tab, {
282
+ unstyled: !0,
283
+ paddingHorizontal: "$3",
284
+ paddingVertical: "$2",
285
+ value: "tab2",
286
+ onInteraction: handleOnInteraction
287
+ }, /* @__PURE__ */ React.createElement(SizableText, null, "Connections")), /* @__PURE__ */ React.createElement(Tabs.Tab, {
288
+ unstyled: !0,
289
+ paddingHorizontal: "$3",
290
+ paddingVertical: "$2",
291
+ value: "tab3",
292
+ onInteraction: handleOnInteraction
293
+ }, /* @__PURE__ */ React.createElement(SizableText, null, "Notifications")))), /* @__PURE__ */ React.createElement(AnimatePresence, {
294
+ exitBeforeEnter: !0,
295
+ enterVariant,
296
+ exitVariant
297
+ }, /* @__PURE__ */ React.createElement(AnimatedYStack, {
298
+ key: currentTab,
299
+ animation: "100ms",
300
+ x: 0,
301
+ opacity: 1,
302
+ flex: 1
303
+ }, /* @__PURE__ */ React.createElement(Tabs.Content, {
304
+ value: currentTab,
305
+ forceMount: !0,
306
+ flex: 1,
307
+ justifyContent: "center"
308
+ }, /* @__PURE__ */ React.createElement(H5, {
309
+ textAlign: "center"
310
+ }, currentTab)))));
311
+ }, TabsRovingIndicator = function(_param) {
312
+ var active = _param.active, props = _object_without_properties(_param, [
313
+ "active"
314
+ ]);
315
+ return /* @__PURE__ */ React.createElement(YStack, _object_spread({
245
316
  position: "absolute",
246
317
  backgroundColor: "$color5",
247
318
  opacity: 0.7,
@@ -251,18 +322,30 @@ const demos = ["background", "underline"], demosTitle = {
251
322
  },
252
323
  exitStyle: {
253
324
  opacity: 0
325
+ }
326
+ }, active && {
327
+ backgroundColor: "$color8",
328
+ opacity: 0.6
329
+ }, props));
330
+ }, AnimatedYStack = styled(YStack, {
331
+ variants: {
332
+ isLeft: {
333
+ true: {
334
+ x: -25,
335
+ opacity: 0
336
+ }
254
337
  },
255
- ...active && {
256
- backgroundColor: "$color8",
257
- opacity: 0.6
338
+ isRight: {
339
+ true: {
340
+ x: 25,
341
+ opacity: 0
342
+ }
258
343
  },
259
- ...props
260
- }
261
- ), AnimatedYStack = styled(YStack, {
262
- variants: {
263
- isLeft: { true: { x: -25, opacity: 0 } },
264
- isRight: { true: { x: 25, opacity: 0 } },
265
- defaultFade: { true: { opacity: 0 } }
344
+ defaultFade: {
345
+ true: {
346
+ opacity: 0
347
+ }
348
+ }
266
349
  }
267
350
  });
268
351
  export {