@tamagui/react-native-web-lite 1.114.4 → 1.115.0

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 (307) hide show
  1. package/dist/cjs/AccessibilityInfo/index.cjs +98 -0
  2. package/dist/cjs/ActivityIndicator/__tests__/index-test.cjs +188 -0
  3. package/dist/cjs/ActivityIndicator/index.cjs +127 -0
  4. package/dist/cjs/Alert/index.cjs +29 -0
  5. package/dist/cjs/AppRegistry/AppContainer.cjs +70 -0
  6. package/dist/cjs/AppRegistry/__tests__/{index-test.js → index-test.cjs} +22 -16
  7. package/dist/cjs/AppRegistry/__tests__/{index-test.node.js → index-test.node.cjs} +46 -22
  8. package/dist/cjs/AppRegistry/index.cjs +99 -0
  9. package/dist/cjs/AppRegistry/renderApplication.cjs +80 -0
  10. package/dist/cjs/AppState/__tests__/{index-test.js → index-test.cjs} +17 -16
  11. package/dist/cjs/AppState/index.cjs +69 -0
  12. package/dist/cjs/Appearance/index.cjs +54 -0
  13. package/dist/cjs/BackHandler/index.cjs +36 -0
  14. package/dist/cjs/Clipboard/{index.js → index.cjs} +17 -13
  15. package/dist/cjs/{DeviceEmitter.js → DeviceEmitter.cjs} +23 -14
  16. package/dist/cjs/DeviceInfo/{index.js → index.cjs} +37 -19
  17. package/dist/cjs/Dimensions/__tests__/{index-test.js → index-test.cjs} +18 -15
  18. package/dist/cjs/Dimensions/{index.js → index.cjs} +34 -28
  19. package/dist/cjs/I18nManager/index.cjs +35 -0
  20. package/dist/cjs/Image/index.cjs +292 -0
  21. package/dist/cjs/Image/types.cjs +16 -0
  22. package/dist/cjs/ImageBackground/__tests__/index-test.cjs +68 -0
  23. package/dist/cjs/ImageBackground/index.cjs +77 -0
  24. package/dist/cjs/Keyboard/index.cjs +39 -0
  25. package/dist/cjs/KeyboardAvoidingView/{index.js → index.cjs} +32 -21
  26. package/dist/cjs/Linking/__tests__/{index-test.js → index-test.cjs} +19 -17
  27. package/dist/cjs/Linking/{index.js → index.cjs} +18 -15
  28. package/dist/cjs/LogBox/index.cjs +32 -0
  29. package/dist/cjs/Modal/ModalAnimation.cjs +148 -0
  30. package/dist/cjs/Modal/ModalContent.cjs +86 -0
  31. package/dist/cjs/Modal/ModalFocusTrap.cjs +108 -0
  32. package/dist/cjs/Modal/ModalPortal.cjs +53 -0
  33. package/dist/cjs/Modal/index.cjs +97 -0
  34. package/dist/cjs/NativeModules/index.cjs +30 -0
  35. package/dist/cjs/PanResponder/Alternative.cjs +198 -0
  36. package/dist/cjs/PanResponder/Alternative.cjs.map +6 -0
  37. package/dist/cjs/PanResponder/{index.js → index.cjs} +23 -14
  38. package/dist/cjs/PixelRatio/{index.js → index.cjs} +23 -15
  39. package/dist/cjs/Pressable/index.cjs +143 -0
  40. package/dist/cjs/RefreshControl/{index.js → index.cjs} +27 -16
  41. package/dist/cjs/SafeAreaView/index.cjs +62 -0
  42. package/dist/cjs/ScrollView/ScrollViewBase.cjs +137 -0
  43. package/dist/cjs/ScrollView/{index.js → index.cjs} +123 -108
  44. package/dist/cjs/Share/index.cjs +49 -0
  45. package/dist/cjs/StatusBar/{index.js → index.cjs} +17 -13
  46. package/dist/cjs/Text/index.cjs +170 -0
  47. package/dist/cjs/Text/types.cjs +16 -0
  48. package/dist/cjs/TextInput/__tests__/index-test.cjs +709 -0
  49. package/dist/cjs/TextInput/index.cjs +277 -0
  50. package/dist/cjs/TextInput/types.cjs +16 -0
  51. package/dist/cjs/TouchableOpacity.cjs +117 -0
  52. package/dist/cjs/{TouchableWithoutFeedback.js → TouchableWithoutFeedback.cjs} +60 -58
  53. package/dist/cjs/UnimplementedView.cjs +47 -0
  54. package/dist/cjs/Vibration/index.cjs +37 -0
  55. package/dist/cjs/View/{index.js → index.cjs} +49 -28
  56. package/dist/cjs/View/types.cjs +16 -0
  57. package/dist/cjs/createElement/__tests__/index-test.cjs +765 -0
  58. package/dist/cjs/createElement/index.cjs +54 -0
  59. package/dist/cjs/createReactDOMStyle.cjs +27 -0
  60. package/dist/cjs/findNodeHandle.cjs +33 -0
  61. package/dist/cjs/{index.js → index.cjs} +77 -16
  62. package/dist/cjs/render/{index.js → index.cjs} +20 -14
  63. package/dist/cjs/styleTypes.cjs +16 -0
  64. package/dist/cjs/types.cjs +16 -0
  65. package/dist/cjs/useColorScheme/{index.js → index.cjs} +27 -16
  66. package/dist/cjs/useLocaleContext/index.cjs +26 -0
  67. package/dist/cjs/useWindowDimensions/{index.js → index.cjs} +28 -16
  68. package/dist/cjs/vendor/react-native/Animated/Animated.cjs +52 -0
  69. package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.cjs +125 -0
  70. package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.cjs +514 -0
  71. package/dist/cjs/vendor/react-native/Animated/AnimatedMock.cjs +149 -0
  72. package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.cjs +1 -0
  73. package/dist/cjs/vendor/react-native/Animated/{Easing.js → Easing.cjs} +31 -22
  74. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.cjs +331 -0
  75. package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedModule.js → NativeAnimatedModule.cjs} +23 -14
  76. package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedTurboModule.js → NativeAnimatedTurboModule.cjs} +23 -14
  77. package/dist/cjs/vendor/react-native/Animated/{SpringConfig.js → SpringConfig.cjs} +20 -12
  78. package/dist/cjs/vendor/react-native/Animated/animations/{Animation.js → Animation.cjs} +29 -24
  79. package/dist/cjs/vendor/react-native/Animated/animations/{DecayAnimation.js → DecayAnimation.cjs} +27 -16
  80. package/dist/cjs/vendor/react-native/Animated/animations/{SpringAnimation.js → SpringAnimation.cjs} +48 -34
  81. package/dist/cjs/vendor/react-native/Animated/animations/{TimingAnimation.js → TimingAnimation.cjs} +32 -26
  82. package/dist/cjs/vendor/react-native/Animated/{bezier.js → bezier.cjs} +38 -27
  83. package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.cjs +40 -0
  84. package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.cjs +45 -0
  85. package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.cjs +40 -0
  86. package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.cjs +40 -0
  87. package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.cjs +61 -0
  88. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedAddition.js → AnimatedAddition.cjs} +26 -15
  89. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedColor.js → AnimatedColor.cjs} +57 -40
  90. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDiffClamp.js → AnimatedDiffClamp.cjs} +27 -16
  91. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDivision.js → AnimatedDivision.cjs} +29 -16
  92. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedInterpolation.js → AnimatedInterpolation.cjs} +62 -72
  93. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedModulo.js → AnimatedModulo.cjs} +25 -15
  94. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedMultiplication.js → AnimatedMultiplication.cjs} +26 -15
  95. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedNode.js → AnimatedNode.cjs} +39 -39
  96. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedProps.js → AnimatedProps.cjs} +34 -24
  97. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedStyle.js → AnimatedStyle.cjs} +35 -21
  98. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedSubtraction.js → AnimatedSubtraction.cjs} +26 -15
  99. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTracking.js → AnimatedTracking.cjs} +34 -32
  100. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTransform.js → AnimatedTransform.cjs} +32 -21
  101. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValue.js → AnimatedValue.cjs} +43 -50
  102. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValueXY.js → AnimatedValueXY.cjs} +38 -31
  103. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedWithChildren.js → AnimatedWithChildren.cjs} +31 -21
  104. package/dist/cjs/vendor/react-native/Animated/{useAnimatedProps.js → useAnimatedProps.cjs} +44 -31
  105. package/dist/cjs/vendor/react-native/{FeatureFlags.js → FeatureFlags.cjs} +16 -11
  106. package/dist/cjs/vendor/react-native/NativeEventEmitter/{RCTDeviceEventEmitter.js → RCTDeviceEventEmitter.cjs} +23 -14
  107. package/dist/cjs/vendor/react-native/NativeEventEmitter/{index.js → index.cjs} +29 -25
  108. package/dist/cjs/vendor/react-native/PanResponder/index.cjs +272 -0
  109. package/dist/cjs/vendor/react-native/TouchHistoryMath/index.cjs +105 -0
  110. package/dist/cjs/vendor/react-native/TurboModule/RCTExport.cjs +1 -0
  111. package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.cjs +34 -0
  112. package/dist/cjs/vendor/react-native/Types/CoreEventTypes.cjs +18 -0
  113. package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.cjs +36 -0
  114. package/dist/cjs/vendor/react-native/emitter/{EventEmitter.js → EventEmitter.cjs} +24 -14
  115. package/dist/cjs/vendor/react-native/emitter/EventSubscription.cjs +1 -0
  116. package/dist/cjs/vendor/react-native/emitter/{_EmitterSubscription.js → _EmitterSubscription.cjs} +24 -15
  117. package/dist/cjs/vendor/react-native/emitter/{_EventEmitter.js → _EventEmitter.cjs} +39 -39
  118. package/dist/cjs/vendor/react-native/emitter/{_EventSubscription.js → _EventSubscription.cjs} +17 -11
  119. package/dist/cjs/vendor/react-native/emitter/{_EventSubscriptionVendor.js → _EventSubscriptionVendor.cjs} +21 -16
  120. package/dist/cjs/vendor/react-native/infoLog/index.cjs +31 -0
  121. package/dist/cjs/vendor/react-native/useRefEffect.cjs +32 -0
  122. package/dist/cjs/without-animated.cjs +155 -0
  123. package/package.json +9 -8
  124. package/dist/cjs/AccessibilityInfo/index.js +0 -96
  125. package/dist/cjs/ActivityIndicator/__tests__/index-test.js +0 -116
  126. package/dist/cjs/ActivityIndicator/index.js +0 -108
  127. package/dist/cjs/Alert/index.js +0 -25
  128. package/dist/cjs/AppRegistry/AppContainer.js +0 -41
  129. package/dist/cjs/AppRegistry/index.js +0 -98
  130. package/dist/cjs/AppRegistry/renderApplication.js +0 -51
  131. package/dist/cjs/AppState/index.js +0 -71
  132. package/dist/cjs/Appearance/index.js +0 -41
  133. package/dist/cjs/BackHandler/index.js +0 -32
  134. package/dist/cjs/I18nManager/index.js +0 -30
  135. package/dist/cjs/Image/index.js +0 -253
  136. package/dist/cjs/Image/types.js +0 -14
  137. package/dist/cjs/ImageBackground/__tests__/index-test.js +0 -48
  138. package/dist/cjs/ImageBackground/index.js +0 -62
  139. package/dist/cjs/Keyboard/index.js +0 -35
  140. package/dist/cjs/LogBox/index.js +0 -31
  141. package/dist/cjs/Modal/ModalAnimation.js +0 -137
  142. package/dist/cjs/Modal/ModalContent.js +0 -75
  143. package/dist/cjs/Modal/ModalFocusTrap.js +0 -105
  144. package/dist/cjs/Modal/ModalPortal.js +0 -43
  145. package/dist/cjs/Modal/index.js +0 -92
  146. package/dist/cjs/NativeModules/index.js +0 -25
  147. package/dist/cjs/Pressable/index.js +0 -140
  148. package/dist/cjs/SafeAreaView/index.js +0 -43
  149. package/dist/cjs/ScrollView/ScrollViewBase.js +0 -124
  150. package/dist/cjs/Share/index.js +0 -56
  151. package/dist/cjs/Text/index.js +0 -152
  152. package/dist/cjs/Text/types.js +0 -14
  153. package/dist/cjs/TextInput/__tests__/index-test.js +0 -422
  154. package/dist/cjs/TextInput/index.js +0 -260
  155. package/dist/cjs/TextInput/types.js +0 -14
  156. package/dist/cjs/TouchableOpacity.js +0 -123
  157. package/dist/cjs/UnimplementedView.js +0 -36
  158. package/dist/cjs/Vibration/index.js +0 -31
  159. package/dist/cjs/View/types.js +0 -14
  160. package/dist/cjs/createElement/__tests__/index-test.js +0 -536
  161. package/dist/cjs/createElement/index.js +0 -37
  162. package/dist/cjs/createReactDOMStyle.js +0 -21
  163. package/dist/cjs/findNodeHandle.js +0 -29
  164. package/dist/cjs/styleTypes.js +0 -14
  165. package/dist/cjs/types.js +0 -14
  166. package/dist/cjs/useLocaleContext/index.js +0 -21
  167. package/dist/cjs/vendor/react-native/Animated/Animated.js +0 -35
  168. package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.js +0 -143
  169. package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.js +0 -458
  170. package/dist/cjs/vendor/react-native/Animated/AnimatedMock.js +0 -126
  171. package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.js +0 -2
  172. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.js +0 -335
  173. package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.js +0 -29
  174. package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.js +0 -38
  175. package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.js +0 -29
  176. package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.js +0 -29
  177. package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.js +0 -42
  178. package/dist/cjs/vendor/react-native/PanResponder/index.js +0 -272
  179. package/dist/cjs/vendor/react-native/TouchHistoryMath/index.js +0 -118
  180. package/dist/cjs/vendor/react-native/TurboModule/RCTExport.js +0 -2
  181. package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.js +0 -28
  182. package/dist/cjs/vendor/react-native/Types/CoreEventTypes.js +0 -15
  183. package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.js +0 -29
  184. package/dist/cjs/vendor/react-native/emitter/EventSubscription.js +0 -2
  185. package/dist/cjs/vendor/react-native/infoLog/index.js +0 -25
  186. package/dist/cjs/vendor/react-native/useRefEffect.js +0 -30
  187. package/dist/cjs/without-animated.js +0 -95
  188. /package/dist/cjs/AccessibilityInfo/{index.js.map → index.cjs.map} +0 -0
  189. /package/dist/cjs/ActivityIndicator/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  190. /package/dist/cjs/ActivityIndicator/{index.js.map → index.cjs.map} +0 -0
  191. /package/dist/cjs/Alert/{index.js.map → index.cjs.map} +0 -0
  192. /package/dist/cjs/AppRegistry/{AppContainer.js.map → AppContainer.cjs.map} +0 -0
  193. /package/dist/cjs/AppRegistry/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  194. /package/dist/cjs/AppRegistry/__tests__/{index-test.node.js.map → index-test.node.cjs.map} +0 -0
  195. /package/dist/cjs/AppRegistry/{index.js.map → index.cjs.map} +0 -0
  196. /package/dist/cjs/AppRegistry/{renderApplication.js.map → renderApplication.cjs.map} +0 -0
  197. /package/dist/cjs/AppState/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  198. /package/dist/cjs/AppState/{index.js.map → index.cjs.map} +0 -0
  199. /package/dist/cjs/Appearance/{index.js.map → index.cjs.map} +0 -0
  200. /package/dist/cjs/BackHandler/{index.js.map → index.cjs.map} +0 -0
  201. /package/dist/cjs/Clipboard/{index.js.map → index.cjs.map} +0 -0
  202. /package/dist/cjs/{DeviceEmitter.js.map → DeviceEmitter.cjs.map} +0 -0
  203. /package/dist/cjs/DeviceInfo/{index.js.map → index.cjs.map} +0 -0
  204. /package/dist/cjs/Dimensions/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  205. /package/dist/cjs/Dimensions/{index.js.map → index.cjs.map} +0 -0
  206. /package/dist/cjs/I18nManager/{index.js.map → index.cjs.map} +0 -0
  207. /package/dist/cjs/Image/{index.js.map → index.cjs.map} +0 -0
  208. /package/dist/cjs/Image/{types.js.map → types.cjs.map} +0 -0
  209. /package/dist/cjs/ImageBackground/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  210. /package/dist/cjs/ImageBackground/{index.js.map → index.cjs.map} +0 -0
  211. /package/dist/cjs/Keyboard/{index.js.map → index.cjs.map} +0 -0
  212. /package/dist/cjs/KeyboardAvoidingView/{index.js.map → index.cjs.map} +0 -0
  213. /package/dist/cjs/Linking/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  214. /package/dist/cjs/Linking/{index.js.map → index.cjs.map} +0 -0
  215. /package/dist/cjs/LogBox/{index.js.map → index.cjs.map} +0 -0
  216. /package/dist/cjs/Modal/{ModalAnimation.js.map → ModalAnimation.cjs.map} +0 -0
  217. /package/dist/cjs/Modal/{ModalContent.js.map → ModalContent.cjs.map} +0 -0
  218. /package/dist/cjs/Modal/{ModalFocusTrap.js.map → ModalFocusTrap.cjs.map} +0 -0
  219. /package/dist/cjs/Modal/{ModalPortal.js.map → ModalPortal.cjs.map} +0 -0
  220. /package/dist/cjs/Modal/{index.js.map → index.cjs.map} +0 -0
  221. /package/dist/cjs/NativeModules/{index.js.map → index.cjs.map} +0 -0
  222. /package/dist/cjs/PanResponder/{index.js.map → index.cjs.map} +0 -0
  223. /package/dist/cjs/PixelRatio/{index.js.map → index.cjs.map} +0 -0
  224. /package/dist/cjs/Pressable/{index.js.map → index.cjs.map} +0 -0
  225. /package/dist/cjs/RefreshControl/{index.js.map → index.cjs.map} +0 -0
  226. /package/dist/cjs/SafeAreaView/{index.js.map → index.cjs.map} +0 -0
  227. /package/dist/cjs/ScrollView/{ScrollViewBase.js.map → ScrollViewBase.cjs.map} +0 -0
  228. /package/dist/cjs/ScrollView/{index.js.map → index.cjs.map} +0 -0
  229. /package/dist/cjs/Share/{index.js.map → index.cjs.map} +0 -0
  230. /package/dist/cjs/StatusBar/{index.js.map → index.cjs.map} +0 -0
  231. /package/dist/cjs/Text/{index.js.map → index.cjs.map} +0 -0
  232. /package/dist/cjs/Text/{types.js.map → types.cjs.map} +0 -0
  233. /package/dist/cjs/TextInput/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  234. /package/dist/cjs/TextInput/{index.js.map → index.cjs.map} +0 -0
  235. /package/dist/cjs/TextInput/{types.js.map → types.cjs.map} +0 -0
  236. /package/dist/cjs/{TouchableOpacity.js.map → TouchableOpacity.cjs.map} +0 -0
  237. /package/dist/cjs/{TouchableWithoutFeedback.js.map → TouchableWithoutFeedback.cjs.map} +0 -0
  238. /package/dist/cjs/{UnimplementedView.js.map → UnimplementedView.cjs.map} +0 -0
  239. /package/dist/cjs/Vibration/{index.js.map → index.cjs.map} +0 -0
  240. /package/dist/cjs/View/{index.js.map → index.cjs.map} +0 -0
  241. /package/dist/cjs/View/{types.js.map → types.cjs.map} +0 -0
  242. /package/dist/cjs/createElement/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  243. /package/dist/cjs/createElement/{index.js.map → index.cjs.map} +0 -0
  244. /package/dist/cjs/{createReactDOMStyle.js.map → createReactDOMStyle.cjs.map} +0 -0
  245. /package/dist/cjs/{findNodeHandle.js.map → findNodeHandle.cjs.map} +0 -0
  246. /package/dist/cjs/{index.js.map → index.cjs.map} +0 -0
  247. /package/dist/cjs/render/{index.js.map → index.cjs.map} +0 -0
  248. /package/dist/cjs/{styleTypes.js.map → styleTypes.cjs.map} +0 -0
  249. /package/dist/cjs/{types.js.map → types.cjs.map} +0 -0
  250. /package/dist/cjs/useColorScheme/{index.js.map → index.cjs.map} +0 -0
  251. /package/dist/cjs/useLocaleContext/{index.js.map → index.cjs.map} +0 -0
  252. /package/dist/cjs/useWindowDimensions/{index.js.map → index.cjs.map} +0 -0
  253. /package/dist/cjs/vendor/react-native/Animated/{Animated.js.map → Animated.cjs.map} +0 -0
  254. /package/dist/cjs/vendor/react-native/Animated/{AnimatedEvent.js.map → AnimatedEvent.cjs.map} +0 -0
  255. /package/dist/cjs/vendor/react-native/Animated/{AnimatedImplementation.js.map → AnimatedImplementation.cjs.map} +0 -0
  256. /package/dist/cjs/vendor/react-native/Animated/{AnimatedMock.js.map → AnimatedMock.cjs.map} +0 -0
  257. /package/dist/cjs/vendor/react-native/Animated/{AnimatedPlatformConfig.js.map → AnimatedPlatformConfig.cjs.map} +0 -0
  258. /package/dist/cjs/vendor/react-native/Animated/{Easing.js.map → Easing.cjs.map} +0 -0
  259. /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedHelper.js.map → NativeAnimatedHelper.cjs.map} +0 -0
  260. /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedModule.js.map → NativeAnimatedModule.cjs.map} +0 -0
  261. /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedTurboModule.js.map → NativeAnimatedTurboModule.cjs.map} +0 -0
  262. /package/dist/cjs/vendor/react-native/Animated/{SpringConfig.js.map → SpringConfig.cjs.map} +0 -0
  263. /package/dist/cjs/vendor/react-native/Animated/animations/{Animation.js.map → Animation.cjs.map} +0 -0
  264. /package/dist/cjs/vendor/react-native/Animated/animations/{DecayAnimation.js.map → DecayAnimation.cjs.map} +0 -0
  265. /package/dist/cjs/vendor/react-native/Animated/animations/{SpringAnimation.js.map → SpringAnimation.cjs.map} +0 -0
  266. /package/dist/cjs/vendor/react-native/Animated/animations/{TimingAnimation.js.map → TimingAnimation.cjs.map} +0 -0
  267. /package/dist/cjs/vendor/react-native/Animated/{bezier.js.map → bezier.cjs.map} +0 -0
  268. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedImage.js.map → AnimatedImage.cjs.map} +0 -0
  269. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedScrollView.js.map → AnimatedScrollView.cjs.map} +0 -0
  270. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedText.js.map → AnimatedText.cjs.map} +0 -0
  271. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedView.js.map → AnimatedView.cjs.map} +0 -0
  272. /package/dist/cjs/vendor/react-native/Animated/{createAnimatedComponent.js.map → createAnimatedComponent.cjs.map} +0 -0
  273. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedAddition.js.map → AnimatedAddition.cjs.map} +0 -0
  274. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedColor.js.map → AnimatedColor.cjs.map} +0 -0
  275. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDiffClamp.js.map → AnimatedDiffClamp.cjs.map} +0 -0
  276. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDivision.js.map → AnimatedDivision.cjs.map} +0 -0
  277. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedInterpolation.js.map → AnimatedInterpolation.cjs.map} +0 -0
  278. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedModulo.js.map → AnimatedModulo.cjs.map} +0 -0
  279. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedMultiplication.js.map → AnimatedMultiplication.cjs.map} +0 -0
  280. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedNode.js.map → AnimatedNode.cjs.map} +0 -0
  281. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedProps.js.map → AnimatedProps.cjs.map} +0 -0
  282. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedStyle.js.map → AnimatedStyle.cjs.map} +0 -0
  283. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedSubtraction.js.map → AnimatedSubtraction.cjs.map} +0 -0
  284. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTracking.js.map → AnimatedTracking.cjs.map} +0 -0
  285. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTransform.js.map → AnimatedTransform.cjs.map} +0 -0
  286. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValue.js.map → AnimatedValue.cjs.map} +0 -0
  287. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValueXY.js.map → AnimatedValueXY.cjs.map} +0 -0
  288. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedWithChildren.js.map → AnimatedWithChildren.cjs.map} +0 -0
  289. /package/dist/cjs/vendor/react-native/Animated/{useAnimatedProps.js.map → useAnimatedProps.cjs.map} +0 -0
  290. /package/dist/cjs/vendor/react-native/{FeatureFlags.js.map → FeatureFlags.cjs.map} +0 -0
  291. /package/dist/cjs/vendor/react-native/NativeEventEmitter/{RCTDeviceEventEmitter.js.map → RCTDeviceEventEmitter.cjs.map} +0 -0
  292. /package/dist/cjs/vendor/react-native/NativeEventEmitter/{index.js.map → index.cjs.map} +0 -0
  293. /package/dist/cjs/vendor/react-native/PanResponder/{index.js.map → index.cjs.map} +0 -0
  294. /package/dist/cjs/vendor/react-native/TouchHistoryMath/{index.js.map → index.cjs.map} +0 -0
  295. /package/dist/cjs/vendor/react-native/TurboModule/{RCTExport.js.map → RCTExport.cjs.map} +0 -0
  296. /package/dist/cjs/vendor/react-native/TurboModule/{TurboModuleRegistry.js.map → TurboModuleRegistry.cjs.map} +0 -0
  297. /package/dist/cjs/vendor/react-native/Types/{CoreEventTypes.js.map → CoreEventTypes.cjs.map} +0 -0
  298. /package/dist/cjs/vendor/react-native/Utilities/{setAndForwardRef.js.map → setAndForwardRef.cjs.map} +0 -0
  299. /package/dist/cjs/vendor/react-native/emitter/{EventEmitter.js.map → EventEmitter.cjs.map} +0 -0
  300. /package/dist/cjs/vendor/react-native/emitter/{EventSubscription.js.map → EventSubscription.cjs.map} +0 -0
  301. /package/dist/cjs/vendor/react-native/emitter/{_EmitterSubscription.js.map → _EmitterSubscription.cjs.map} +0 -0
  302. /package/dist/cjs/vendor/react-native/emitter/{_EventEmitter.js.map → _EventEmitter.cjs.map} +0 -0
  303. /package/dist/cjs/vendor/react-native/emitter/{_EventSubscription.js.map → _EventSubscription.cjs.map} +0 -0
  304. /package/dist/cjs/vendor/react-native/emitter/{_EventSubscriptionVendor.js.map → _EventSubscriptionVendor.cjs.map} +0 -0
  305. /package/dist/cjs/vendor/react-native/infoLog/{index.js.map → index.cjs.map} +0 -0
  306. /package/dist/cjs/vendor/react-native/{useRefEffect.js.map → useRefEffect.cjs.map} +0 -0
  307. /package/dist/cjs/{without-animated.js.map → without-animated.cjs.map} +0 -0
@@ -0,0 +1,277 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
32
+ var TextInput_exports = {};
33
+ __export(TextInput_exports, {
34
+ default: () => TextInput_default
35
+ });
36
+ module.exports = __toCommonJS(TextInput_exports);
37
+ var React = __toESM(require("react")),
38
+ import_react_native_web_internals = require("@tamagui/react-native-web-internals"),
39
+ import_react_native_web_internals2 = require("@tamagui/react-native-web-internals"),
40
+ import_createElement = __toESM(require("../createElement/index.cjs"));
41
+ const isSelectionStale = (node, selection) => {
42
+ const {
43
+ selectionEnd,
44
+ selectionStart
45
+ } = node,
46
+ {
47
+ start,
48
+ end
49
+ } = selection;
50
+ return start !== selectionStart || end !== selectionEnd;
51
+ },
52
+ setSelection = (node, selection) => {
53
+ if (isSelectionStale(node, selection)) {
54
+ const {
55
+ start,
56
+ end
57
+ } = selection;
58
+ try {
59
+ node.setSelectionRange(start, end || start);
60
+ } catch {}
61
+ }
62
+ },
63
+ forwardPropsList = Object.assign({}, import_react_native_web_internals2.forwardedProps.defaultProps, import_react_native_web_internals2.forwardedProps.accessibilityProps, import_react_native_web_internals2.forwardedProps.clickProps, import_react_native_web_internals2.forwardedProps.focusProps, import_react_native_web_internals2.forwardedProps.keyboardProps, import_react_native_web_internals2.forwardedProps.mouseProps, import_react_native_web_internals2.forwardedProps.touchProps, import_react_native_web_internals2.forwardedProps.styleProps, {
64
+ autoCapitalize: !0,
65
+ className: !0,
66
+ autoComplete: !0,
67
+ autoCorrect: !0,
68
+ autoFocus: !0,
69
+ defaultValue: !0,
70
+ disabled: !0,
71
+ lang: !0,
72
+ maxLength: !0,
73
+ onChange: !0,
74
+ onScroll: !0,
75
+ placeholder: !0,
76
+ pointerEvents: !0,
77
+ readOnly: !0,
78
+ rows: !0,
79
+ spellCheck: !0,
80
+ value: !0,
81
+ type: !0
82
+ }),
83
+ pickProps = props => (0, import_react_native_web_internals2.pick)(props, forwardPropsList),
84
+ useIsomorphicLayoutEffect = typeof window > "u" ? React.useEffect : React.useLayoutEffect;
85
+ function isEventComposing(nativeEvent) {
86
+ return nativeEvent.isComposing || nativeEvent.keyCode === 229;
87
+ }
88
+ let focusTimeout = null;
89
+ const TextInput = React.forwardRef((props, forwardedRef) => {
90
+ const {
91
+ autoCapitalize = "sentences",
92
+ autoComplete,
93
+ autoCompleteType,
94
+ autoCorrect = !0,
95
+ blurOnSubmit,
96
+ clearTextOnFocus,
97
+ dir,
98
+ editable,
99
+ enterKeyHint,
100
+ inputMode = "text",
101
+ keyboardType,
102
+ multiline = !1,
103
+ numberOfLines,
104
+ onBlur,
105
+ onChange,
106
+ onChangeText,
107
+ onContentSizeChange,
108
+ onFocus,
109
+ onKeyPress,
110
+ onLayout,
111
+ onMoveShouldSetResponder,
112
+ onMoveShouldSetResponderCapture,
113
+ onResponderEnd,
114
+ onResponderGrant,
115
+ onResponderMove,
116
+ onResponderReject,
117
+ onResponderRelease,
118
+ onResponderStart,
119
+ onResponderTerminate,
120
+ onResponderTerminationRequest,
121
+ onScrollShouldSetResponder,
122
+ onScrollShouldSetResponderCapture,
123
+ onSelectionChange,
124
+ onSelectionChangeShouldSetResponder,
125
+ onSelectionChangeShouldSetResponderCapture,
126
+ onStartShouldSetResponder,
127
+ onStartShouldSetResponderCapture,
128
+ onSubmitEditing,
129
+ placeholderTextColor,
130
+ readOnly = !1,
131
+ returnKeyType,
132
+ rows = 1,
133
+ secureTextEntry = !1,
134
+ selection,
135
+ selectTextOnFocus,
136
+ spellCheck
137
+ } = props;
138
+ let type, _inputMode;
139
+ if (inputMode != null) _inputMode = inputMode, inputMode === "email" ? type = "email" : inputMode === "tel" ? type = "tel" : inputMode === "search" ? type = "search" : inputMode === "url" ? type = "url" : type = "text";else if (keyboardType != null) switch (warn("keyboardType", "keyboardType is deprecated. Use inputMode."), keyboardType) {
140
+ case "email-address":
141
+ type = "email";
142
+ break;
143
+ case "number-pad":
144
+ case "numeric":
145
+ _inputMode = "numeric";
146
+ break;
147
+ case "decimal-pad":
148
+ _inputMode = "decimal";
149
+ break;
150
+ case "phone-pad":
151
+ type = "tel";
152
+ break;
153
+ case "search":
154
+ case "web-search":
155
+ type = "search";
156
+ break;
157
+ case "url":
158
+ type = "url";
159
+ break;
160
+ default:
161
+ type = "text";
162
+ }
163
+ secureTextEntry && (type = "password");
164
+ const dimensions = React.useRef({
165
+ height: null,
166
+ width: null
167
+ }),
168
+ hostRef = React.useRef(null),
169
+ handleContentSizeChange = React.useCallback(hostNode => {
170
+ if (multiline && onContentSizeChange && hostNode != null) {
171
+ const newHeight = hostNode.scrollHeight,
172
+ newWidth = hostNode.scrollWidth;
173
+ (newHeight !== dimensions.current.height || newWidth !== dimensions.current.width) && (dimensions.current.height = newHeight, dimensions.current.width = newWidth, onContentSizeChange({
174
+ nativeEvent: {
175
+ contentSize: {
176
+ height: dimensions.current.height,
177
+ width: dimensions.current.width
178
+ }
179
+ }
180
+ }));
181
+ }
182
+ }, [multiline, onContentSizeChange]),
183
+ imperativeRef = React.useMemo(() => hostNode => {
184
+ hostNode != null && (hostNode.clear = function () {
185
+ hostNode != null && (hostNode.value = "");
186
+ }, hostNode.isFocused = function () {
187
+ return hostNode != null && import_react_native_web_internals2.TextInputState.currentlyFocusedField() === hostNode;
188
+ }, handleContentSizeChange(hostNode));
189
+ }, [handleContentSizeChange]);
190
+ function handleBlur(e) {
191
+ import_react_native_web_internals2.TextInputState._currentlyFocusedNode = null, onBlur && (e.nativeEvent.text = e.target.value, onBlur(e));
192
+ }
193
+ function handleChange(e) {
194
+ const hostNode = e.target,
195
+ text = hostNode.value;
196
+ e.nativeEvent.text = text, handleContentSizeChange(hostNode), onChange && onChange(e), onChangeText && onChangeText(text);
197
+ }
198
+ function handleFocus(e) {
199
+ const hostNode = e.target;
200
+ onFocus && (e.nativeEvent.text = hostNode.value, onFocus(e)), hostNode != null && (import_react_native_web_internals2.TextInputState._currentlyFocusedNode = hostNode, clearTextOnFocus && (hostNode.value = ""), selectTextOnFocus && (focusTimeout != null && clearTimeout(focusTimeout), focusTimeout = setTimeout(() => {
201
+ hostNode?.select();
202
+ }, 0)));
203
+ }
204
+ function handleKeyDown(e) {
205
+ const hostNode = e.target;
206
+ e.stopPropagation();
207
+ const shouldBlurOnSubmit = blurOnSubmit ?? !multiline,
208
+ nativeEvent = e.nativeEvent,
209
+ isComposing = isEventComposing(nativeEvent);
210
+ onKeyPress && onKeyPress(e), e.key === "Enter" && !e.shiftKey &&
211
+ // Do not call submit if composition is occuring.
212
+ !isComposing && !e.isDefaultPrevented() && ((blurOnSubmit || !multiline) && onSubmitEditing && (e.preventDefault(), nativeEvent.text = e.target.value, onSubmitEditing(e)), shouldBlurOnSubmit && hostNode != null && setTimeout(() => hostNode.blur(), 0));
213
+ }
214
+ function handleSelectionChange(e) {
215
+ if (onSelectionChange) try {
216
+ const node = e.target,
217
+ {
218
+ selectionStart,
219
+ selectionEnd
220
+ } = node;
221
+ e.nativeEvent.selection = {
222
+ start: selectionStart,
223
+ end: selectionEnd
224
+ }, e.nativeEvent.text = e.target.value, onSelectionChange(e);
225
+ } catch {}
226
+ }
227
+ useIsomorphicLayoutEffect(() => {
228
+ const node = hostRef.current;
229
+ node != null && selection != null && setSelection(node, selection), document.activeElement === node && (import_react_native_web_internals2.TextInputState._currentlyFocusedNode = node);
230
+ }, [hostRef, selection]);
231
+ const component = multiline ? "textarea" : "input";
232
+ (0, import_react_native_web_internals2.useElementLayout)(hostRef, onLayout), (0, import_react_native_web_internals2.useResponderEvents)(hostRef, {
233
+ onMoveShouldSetResponder,
234
+ onMoveShouldSetResponderCapture,
235
+ onResponderEnd,
236
+ onResponderGrant,
237
+ onResponderMove,
238
+ onResponderReject,
239
+ onResponderRelease,
240
+ onResponderStart,
241
+ onResponderTerminate,
242
+ onResponderTerminationRequest,
243
+ onScrollShouldSetResponder,
244
+ onScrollShouldSetResponderCapture,
245
+ onSelectionChangeShouldSetResponder,
246
+ onSelectionChangeShouldSetResponderCapture,
247
+ onStartShouldSetResponder,
248
+ onStartShouldSetResponderCapture
249
+ });
250
+ const {
251
+ direction: contextDirection
252
+ } = (0, import_react_native_web_internals2.useLocaleContext)(),
253
+ supportedProps = pickProps(props);
254
+ supportedProps.autoCapitalize = autoCapitalize, supportedProps.autoComplete = autoComplete || autoCompleteType || "on", supportedProps.autoCorrect = autoCorrect ? "on" : "off", supportedProps.dir = dir !== void 0 ? dir : "auto", returnKeyType != null && warn("returnKeyType", "returnKeyType is deprecated. Use enterKeyHint."), supportedProps.enterKeyHint = enterKeyHint || returnKeyType, supportedProps.inputMode = _inputMode, supportedProps.onBlur = handleBlur, supportedProps.onChange = handleChange, supportedProps.onFocus = handleFocus, supportedProps.onKeyDown = handleKeyDown, supportedProps.onSelect = handleSelectionChange, editable != null && warn("editable", "editable is deprecated. Use readOnly."), supportedProps.readOnly = readOnly === !0 || editable === !1, numberOfLines != null && warn("numberOfLines", "TextInput numberOfLines is deprecated. Use rows."), supportedProps.rows = multiline ? rows ?? numberOfLines : 1, supportedProps.spellCheck = spellCheck ?? autoCorrect, supportedProps.style = [{
255
+ "--placeholderTextColor": placeholderTextColor
256
+ }, styles.textinput$raw, styles.placeholder, props.style], supportedProps.type = multiline ? void 0 : type;
257
+ const platformMethodsRef = (0, import_react_native_web_internals2.usePlatformMethods)(supportedProps),
258
+ setRef = (0, import_react_native_web_internals2.useMergeRefs)(hostRef, platformMethodsRef, imperativeRef, forwardedRef);
259
+ supportedProps.ref = setRef;
260
+ const langDirection = props.lang != null ? (0, import_react_native_web_internals2.getLocaleDirection)(props.lang) : null,
261
+ writingDirection = props.dir || langDirection || contextDirection;
262
+ return (0, import_createElement.default)(component, supportedProps, {
263
+ writingDirection
264
+ });
265
+ });
266
+ function warn(...args) {
267
+ process.env.NODE_ENV !== "production" && console.warn(...args);
268
+ }
269
+ TextInput.displayName = "TextInput";
270
+ TextInput.State = import_react_native_web_internals2.TextInputState;
271
+ const styles = import_react_native_web_internals.StyleSheet.create({
272
+ textinput$raw: {},
273
+ placeholder: {
274
+ placeholderTextColor: "var(--placeholderTextColor)"
275
+ }
276
+ });
277
+ var TextInput_default = TextInput;
@@ -0,0 +1,16 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
7
+ get: () => from[key],
8
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
9
+ });
10
+ return to;
11
+ };
12
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
13
+ value: !0
14
+ }), mod);
15
+ var types_exports = {};
16
+ module.exports = __toCommonJS(types_exports);
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf,
8
+ __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: !0
13
+ });
14
+ },
15
+ __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: !0
30
+ }) : target, mod)),
31
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: !0
33
+ }), mod);
34
+ var TouchableOpacity_exports = {};
35
+ __export(TouchableOpacity_exports, {
36
+ default: () => TouchableOpacity_default
37
+ });
38
+ module.exports = __toCommonJS(TouchableOpacity_exports);
39
+ var React = __toESM(require("react")),
40
+ import_react = require("react"),
41
+ import_react_native_web_internals = require("@tamagui/react-native-web-internals"),
42
+ import_View = __toESM(require("./View/index.cjs")),
43
+ import_jsx_runtime = require("react/jsx-runtime");
44
+ function TouchableOpacity(props, forwardedRef) {
45
+ const {
46
+ activeOpacity,
47
+ delayPressIn,
48
+ delayPressOut,
49
+ delayLongPress,
50
+ disabled,
51
+ focusable,
52
+ onLongPress,
53
+ onPress,
54
+ onPressIn,
55
+ onPressOut,
56
+ rejectResponderTermination,
57
+ style,
58
+ ...rest
59
+ } = props,
60
+ hostRef = (0, import_react.useRef)(null),
61
+ setRef = (0, import_react_native_web_internals.useMergeRefs)(forwardedRef, hostRef),
62
+ [duration, setDuration] = (0, import_react.useState)("0s"),
63
+ [opacityOverride, setOpacityOverride] = (0, import_react.useState)(null),
64
+ setOpacityTo = (0, import_react.useCallback)((value, duration2) => {
65
+ setOpacityOverride(value), setDuration(duration2 ? `${duration2 / 1e3}s` : "0s");
66
+ }, [setOpacityOverride, setDuration]),
67
+ setOpacityActive = (0, import_react.useCallback)(duration2 => {
68
+ setOpacityTo(activeOpacity ?? 0.2, duration2);
69
+ }, [activeOpacity, setOpacityTo]),
70
+ setOpacityInactive = (0, import_react.useCallback)(duration2 => {
71
+ setOpacityTo(null, duration2);
72
+ }, [setOpacityTo]),
73
+ pressConfig = (0, import_react.useMemo)(() => ({
74
+ cancelable: !rejectResponderTermination,
75
+ disabled,
76
+ delayLongPress,
77
+ delayPressStart: delayPressIn,
78
+ delayPressEnd: delayPressOut,
79
+ onLongPress,
80
+ onPress,
81
+ onPressStart(event) {
82
+ const isGrant = event.dispatchConfig != null ? event.dispatchConfig.registrationName === "onResponderGrant" : event.type === "keydown";
83
+ setOpacityActive(isGrant ? 0 : 150), onPressIn?.(event);
84
+ },
85
+ onPressEnd(event) {
86
+ setOpacityInactive(250), onPressOut?.(event);
87
+ }
88
+ }), [delayLongPress, delayPressIn, delayPressOut, disabled, onLongPress, onPress, onPressIn, onPressOut, rejectResponderTermination, setOpacityActive, setOpacityInactive]),
89
+ pressEventHandlers = (0, import_react_native_web_internals.usePressEvents)(hostRef, pressConfig);
90
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_View.default, {
91
+ ...rest,
92
+ ...pressEventHandlers,
93
+ accessibilityDisabled: disabled,
94
+ focusable: !disabled && focusable !== !1,
95
+ ref: setRef,
96
+ style: [styles.root, !disabled && styles.actionable, style, opacityOverride != null && {
97
+ opacity: opacityOverride
98
+ }, {
99
+ transitionDuration: duration
100
+ }]
101
+ });
102
+ }
103
+ const styles = import_react_native_web_internals.StyleSheet.create({
104
+ root: {
105
+ transitionProperty: "opacity",
106
+ transitionDuration: "0.15s",
107
+ userSelect: "none"
108
+ },
109
+ actionable: {
110
+ cursor: "pointer",
111
+ touchAction: "manipulation"
112
+ }
113
+ }),
114
+ MemoedTouchableOpacity = React.memo(React.forwardRef(TouchableOpacity));
115
+ MemoedTouchableOpacity.displayName = "TouchableOpacity";
116
+ MemoedTouchableOpacity.Mixin = {};
117
+ var TouchableOpacity_default = MemoedTouchableOpacity;
@@ -2,60 +2,73 @@ var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __getProtoOf = Object.getPrototypeOf,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
15
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
21
  // If the importer is in node compatibility mode or this is not an ESM
17
22
  // file that has been converted to a CommonJS file using a Babel-
18
23
  // compatible transform (i.e. "__esModule" has not been set), then set
19
24
  // "default" to the CommonJS "module.exports" for node compatibility.
20
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
21
- mod
22
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
23
32
  var TouchableWithoutFeedback_exports = {};
24
33
  __export(TouchableWithoutFeedback_exports, {
25
34
  default: () => TouchableWithoutFeedback_default
26
35
  });
27
36
  module.exports = __toCommonJS(TouchableWithoutFeedback_exports);
28
- var React = __toESM(require("react")), import_react = require("react"), import_react_native_web_internals = require("@tamagui/react-native-web-internals");
37
+ var React = __toESM(require("react")),
38
+ import_react = require("react"),
39
+ import_react_native_web_internals = require("@tamagui/react-native-web-internals");
29
40
  const forwardPropsList = {
30
- accessibilityDisabled: !0,
31
- accessibilityLabel: !0,
32
- accessibilityLiveRegion: !0,
33
- accessibilityRole: !0,
34
- accessibilityState: !0,
35
- accessibilityValue: !0,
36
- children: !0,
37
- disabled: !0,
38
- focusable: !0,
39
- nativeID: !0,
40
- onBlur: !0,
41
- onFocus: !0,
42
- onLayout: !0,
43
- testID: !0
44
- }, pickProps = (props) => (0, import_react_native_web_internals.pick)(props, forwardPropsList);
41
+ accessibilityDisabled: !0,
42
+ accessibilityLabel: !0,
43
+ accessibilityLiveRegion: !0,
44
+ accessibilityRole: !0,
45
+ accessibilityState: !0,
46
+ accessibilityValue: !0,
47
+ children: !0,
48
+ disabled: !0,
49
+ focusable: !0,
50
+ nativeID: !0,
51
+ onBlur: !0,
52
+ onFocus: !0,
53
+ onLayout: !0,
54
+ testID: !0
55
+ },
56
+ pickProps = props => (0, import_react_native_web_internals.pick)(props, forwardPropsList);
45
57
  function TouchableWithoutFeedback(props, forwardedRef) {
46
58
  const {
47
- delayPressIn,
48
- delayPressOut,
49
- delayLongPress,
50
- disabled,
51
- focusable,
52
- onLongPress,
53
- onPress,
54
- onPressIn,
55
- onPressOut,
56
- rejectResponderTermination
57
- } = props, hostRef = (0, import_react.useRef)(null), pressConfig = (0, import_react.useMemo)(
58
- () => ({
59
+ delayPressIn,
60
+ delayPressOut,
61
+ delayLongPress,
62
+ disabled,
63
+ focusable,
64
+ onLongPress,
65
+ onPress,
66
+ onPressIn,
67
+ onPressOut,
68
+ rejectResponderTermination
69
+ } = props,
70
+ hostRef = (0, import_react.useRef)(null),
71
+ pressConfig = (0, import_react.useMemo)(() => ({
59
72
  cancelable: !rejectResponderTermination,
60
73
  disabled,
61
74
  delayLongPress,
@@ -65,26 +78,15 @@ function TouchableWithoutFeedback(props, forwardedRef) {
65
78
  onPress,
66
79
  onPressStart: onPressIn,
67
80
  onPressEnd: onPressOut
68
- }),
69
- [
70
- disabled,
71
- delayPressIn,
72
- delayPressOut,
73
- delayLongPress,
74
- onLongPress,
75
- onPress,
76
- onPressIn,
77
- onPressOut,
78
- rejectResponderTermination
79
- ]
80
- ), pressEventHandlers = (0, import_react_native_web_internals.usePressEvents)(hostRef, pressConfig), element = React.Children.only(props.children), children = [element.props.children], supportedProps = pickProps(props);
81
+ }), [disabled, delayPressIn, delayPressOut, delayLongPress, onLongPress, onPress, onPressIn, onPressOut, rejectResponderTermination]),
82
+ pressEventHandlers = (0, import_react_native_web_internals.usePressEvents)(hostRef, pressConfig),
83
+ element = React.Children.only(props.children),
84
+ children = [element.props.children],
85
+ supportedProps = pickProps(props);
81
86
  supportedProps.accessibilityDisabled = disabled, supportedProps.focusable = !disabled && focusable !== !1, supportedProps.ref = (0, import_react_native_web_internals.useMergeRefs)(forwardedRef, hostRef, element.ref);
82
87
  const elementProps = Object.assign(supportedProps, pressEventHandlers);
83
88
  return React.cloneElement(element, elementProps, ...children);
84
89
  }
85
- const MemoedTouchableWithoutFeedback = React.memo(
86
- React.forwardRef(TouchableWithoutFeedback)
87
- );
90
+ const MemoedTouchableWithoutFeedback = React.memo(React.forwardRef(TouchableWithoutFeedback));
88
91
  MemoedTouchableWithoutFeedback.displayName = "TouchableWithoutFeedback";
89
- var TouchableWithoutFeedback_default = MemoedTouchableWithoutFeedback;
90
- //# sourceMappingURL=TouchableWithoutFeedback.js.map
92
+ var TouchableWithoutFeedback_default = MemoedTouchableWithoutFeedback;
@@ -0,0 +1,47 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
32
+ var UnimplementedView_exports = {};
33
+ __export(UnimplementedView_exports, {
34
+ default: () => UnimplementedView
35
+ });
36
+ module.exports = __toCommonJS(UnimplementedView_exports);
37
+ var import_react = __toESM(require("react")),
38
+ import_View = __toESM(require("./View/index.cjs")),
39
+ import_jsx_runtime = require("react/jsx-runtime");
40
+ class UnimplementedView extends import_react.default.Component {
41
+ setNativeProps = () => {};
42
+ render() {
43
+ return process.env.NODE_ENV === "development" && console.warn("Unimplemented view"), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_View.default, {
44
+ ...this.props
45
+ });
46
+ }
47
+ }
@@ -0,0 +1,37 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: !0
9
+ });
10
+ },
11
+ __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ return to;
17
+ };
18
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
+ value: !0
20
+ }), mod);
21
+ var Vibration_exports = {};
22
+ __export(Vibration_exports, {
23
+ default: () => Vibration_default
24
+ });
25
+ module.exports = __toCommonJS(Vibration_exports);
26
+ const vibrate = pattern => {
27
+ "vibrate" in window.navigator && window.navigator.vibrate(pattern);
28
+ },
29
+ Vibration = {
30
+ cancel() {
31
+ vibrate(0);
32
+ },
33
+ vibrate(pattern = 400) {
34
+ vibrate(pattern);
35
+ }
36
+ };
37
+ var Vibration_default = Vibration;