@tamagui/react-native-web-lite 1.113.0 → 1.113.2

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 (243) hide show
  1. package/dist/esm/AccessibilityInfo/index.native.js +62 -58
  2. package/dist/esm/AccessibilityInfo/index.native.js.map +6 -1
  3. package/dist/esm/ActivityIndicator/__tests__/index-test.native.js +55 -85
  4. package/dist/esm/ActivityIndicator/__tests__/index-test.native.js.map +6 -1
  5. package/dist/esm/ActivityIndicator/index.native.js +90 -82
  6. package/dist/esm/ActivityIndicator/index.native.js.map +6 -1
  7. package/dist/esm/Alert/index.native.js +18 -14
  8. package/dist/esm/Alert/index.native.js.map +6 -1
  9. package/dist/esm/AppRegistry/AppContainer.native.js +26 -30
  10. package/dist/esm/AppRegistry/AppContainer.native.js.map +6 -1
  11. package/dist/esm/AppRegistry/__tests__/index-test.native.js +13 -13
  12. package/dist/esm/AppRegistry/__tests__/index-test.native.js.map +6 -1
  13. package/dist/esm/AppRegistry/__tests__/index-test.node.native.js +34 -45
  14. package/dist/esm/AppRegistry/__tests__/index-test.node.native.js.map +6 -1
  15. package/dist/esm/AppRegistry/index.native.js +55 -50
  16. package/dist/esm/AppRegistry/index.native.js.map +6 -1
  17. package/dist/esm/AppRegistry/renderApplication.native.js +27 -33
  18. package/dist/esm/AppRegistry/renderApplication.native.js.map +6 -1
  19. package/dist/esm/AppState/__tests__/index-test.native.js +10 -9
  20. package/dist/esm/AppState/__tests__/index-test.native.js.map +6 -1
  21. package/dist/esm/AppState/index.native.js +51 -45
  22. package/dist/esm/AppState/index.native.js.map +6 -1
  23. package/dist/esm/Appearance/index.native.js +24 -27
  24. package/dist/esm/Appearance/index.native.js.map +6 -1
  25. package/dist/esm/BackHandler/index.native.js +13 -11
  26. package/dist/esm/BackHandler/index.native.js.map +6 -1
  27. package/dist/esm/Clipboard/index.native.js +26 -21
  28. package/dist/esm/Clipboard/index.native.js.map +6 -1
  29. package/dist/esm/DeviceEmitter.native.js +5 -3
  30. package/dist/esm/DeviceEmitter.native.js.map +6 -1
  31. package/dist/esm/DeviceInfo/index.native.js +33 -41
  32. package/dist/esm/DeviceInfo/index.native.js.map +6 -1
  33. package/dist/esm/Dimensions/__tests__/index-test.native.js +8 -9
  34. package/dist/esm/Dimensions/__tests__/index-test.native.js.map +6 -1
  35. package/dist/esm/Dimensions/index.native.js +53 -49
  36. package/dist/esm/Dimensions/index.native.js.map +6 -1
  37. package/dist/esm/I18nManager/index.native.js +13 -10
  38. package/dist/esm/I18nManager/index.native.js.map +6 -1
  39. package/dist/esm/Image/index.native.js +149 -174
  40. package/dist/esm/Image/index.native.js.map +6 -1
  41. package/dist/esm/Image/types.native.js +1 -2
  42. package/dist/esm/Image/types.native.js.map +6 -1
  43. package/dist/esm/ImageBackground/__tests__/index-test.native.js +19 -27
  44. package/dist/esm/ImageBackground/__tests__/index-test.native.js.map +6 -1
  45. package/dist/esm/ImageBackground/index.native.js +33 -35
  46. package/dist/esm/ImageBackground/index.native.js.map +6 -1
  47. package/dist/esm/Keyboard/index.native.js +17 -13
  48. package/dist/esm/Keyboard/index.native.js.map +6 -1
  49. package/dist/esm/KeyboardAvoidingView/index.native.js +44 -34
  50. package/dist/esm/KeyboardAvoidingView/index.native.js.map +6 -1
  51. package/dist/esm/Linking/__tests__/index-test.native.js +9 -9
  52. package/dist/esm/Linking/__tests__/index-test.native.js.map +6 -1
  53. package/dist/esm/Linking/index.native.js +49 -42
  54. package/dist/esm/Linking/index.native.js.map +6 -1
  55. package/dist/esm/LogBox/index.native.js +12 -7
  56. package/dist/esm/LogBox/index.native.js.map +6 -1
  57. package/dist/esm/Modal/ModalAnimation.native.js +112 -89
  58. package/dist/esm/Modal/ModalAnimation.native.js.map +6 -1
  59. package/dist/esm/Modal/ModalContent.native.js +54 -52
  60. package/dist/esm/Modal/ModalContent.native.js.map +6 -1
  61. package/dist/esm/Modal/ModalFocusTrap.native.js +52 -49
  62. package/dist/esm/Modal/ModalFocusTrap.native.js.map +6 -1
  63. package/dist/esm/Modal/ModalPortal.native.js +11 -9
  64. package/dist/esm/Modal/ModalPortal.native.js.map +6 -1
  65. package/dist/esm/Modal/index.native.js +45 -53
  66. package/dist/esm/Modal/index.native.js.map +6 -1
  67. package/dist/esm/NativeModules/index.native.js +6 -5
  68. package/dist/esm/NativeModules/index.native.js.map +6 -1
  69. package/dist/esm/PanResponder/Alternative.js +122 -157
  70. package/dist/esm/PanResponder/Alternative.js.map +6 -1
  71. package/dist/esm/PanResponder/index.native.js +5 -3
  72. package/dist/esm/PanResponder/index.native.js.map +6 -1
  73. package/dist/esm/PixelRatio/index.native.js +59 -48
  74. package/dist/esm/PixelRatio/index.native.js.map +6 -1
  75. package/dist/esm/Pressable/index.native.js +67 -70
  76. package/dist/esm/Pressable/index.native.js.map +6 -1
  77. package/dist/esm/RefreshControl/index.native.js +6 -4
  78. package/dist/esm/RefreshControl/index.native.js.map +6 -1
  79. package/dist/esm/SafeAreaView/index.native.js +21 -24
  80. package/dist/esm/SafeAreaView/index.native.js.map +6 -1
  81. package/dist/esm/ScrollView/ScrollViewBase.native.js +50 -61
  82. package/dist/esm/ScrollView/ScrollViewBase.native.js.map +6 -1
  83. package/dist/esm/ScrollView/index.native.js +211 -183
  84. package/dist/esm/ScrollView/index.native.js.map +6 -1
  85. package/dist/esm/Share/index.native.js +36 -29
  86. package/dist/esm/Share/index.native.js.map +6 -1
  87. package/dist/esm/StatusBar/index.native.js +6 -3
  88. package/dist/esm/StatusBar/index.native.js.map +6 -1
  89. package/dist/esm/Text/index.native.js +100 -128
  90. package/dist/esm/Text/index.native.js.map +6 -1
  91. package/dist/esm/Text/types.native.js +1 -2
  92. package/dist/esm/Text/types.native.js.map +6 -1
  93. package/dist/esm/TextInput/__tests__/index-test.native.js +259 -445
  94. package/dist/esm/TextInput/__tests__/index-test.native.js.map +6 -1
  95. package/dist/esm/TextInput/index.native.js +157 -220
  96. package/dist/esm/TextInput/index.native.js.map +6 -1
  97. package/dist/esm/TextInput/types.native.js +1 -2
  98. package/dist/esm/TextInput/types.native.js.map +6 -1
  99. package/dist/esm/TouchableOpacity.native.js +67 -63
  100. package/dist/esm/TouchableOpacity.native.js.map +6 -1
  101. package/dist/esm/TouchableWithoutFeedback.native.js +45 -49
  102. package/dist/esm/TouchableWithoutFeedback.native.js.map +6 -1
  103. package/dist/esm/UnimplementedView.native.js +30 -22
  104. package/dist/esm/UnimplementedView.native.js.map +6 -1
  105. package/dist/esm/Vibration/index.native.js +14 -14
  106. package/dist/esm/Vibration/index.native.js.map +6 -1
  107. package/dist/esm/View/index.native.js +55 -84
  108. package/dist/esm/View/index.native.js.map +6 -1
  109. package/dist/esm/View/types.native.js +1 -2
  110. package/dist/esm/View/types.native.js.map +6 -1
  111. package/dist/esm/createElement/__tests__/index-test.native.js +195 -398
  112. package/dist/esm/createElement/__tests__/index-test.native.js.map +6 -1
  113. package/dist/esm/createElement/index.native.js +14 -16
  114. package/dist/esm/createElement/index.native.js.map +6 -1
  115. package/dist/esm/createReactDOMStyle.native.js +4 -2
  116. package/dist/esm/createReactDOMStyle.native.js.map +6 -1
  117. package/dist/esm/findNodeHandle.native.js +7 -4
  118. package/dist/esm/findNodeHandle.native.js.map +6 -1
  119. package/dist/esm/index.native.js +133 -55
  120. package/dist/esm/index.native.js.map +6 -1
  121. package/dist/esm/render/index.native.js +9 -4
  122. package/dist/esm/render/index.native.js.map +6 -1
  123. package/dist/esm/styleTypes.native.js +1 -2
  124. package/dist/esm/styleTypes.native.js.map +6 -1
  125. package/dist/esm/types.native.js +1 -2
  126. package/dist/esm/types.native.js.map +6 -1
  127. package/dist/esm/useColorScheme/index.native.js +7 -7
  128. package/dist/esm/useColorScheme/index.native.js.map +6 -1
  129. package/dist/esm/useLocaleContext/index.native.js +4 -2
  130. package/dist/esm/useLocaleContext/index.native.js.map +6 -1
  131. package/dist/esm/useWindowDimensions/index.native.js +9 -9
  132. package/dist/esm/useWindowDimensions/index.native.js.map +6 -1
  133. package/dist/esm/vendor/react-native/Animated/Animated.native.js +17 -16
  134. package/dist/esm/vendor/react-native/Animated/Animated.native.js.map +6 -1
  135. package/dist/esm/vendor/react-native/Animated/AnimatedEvent.native.js +99 -72
  136. package/dist/esm/vendor/react-native/Animated/AnimatedEvent.native.js.map +6 -1
  137. package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.native.js +436 -465
  138. package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.native.js.map +6 -1
  139. package/dist/esm/vendor/react-native/Animated/AnimatedMock.native.js +91 -97
  140. package/dist/esm/vendor/react-native/Animated/AnimatedMock.native.js.map +6 -1
  141. package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.native.js +1 -2
  142. package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.native.js.map +6 -1
  143. package/dist/esm/vendor/react-native/Animated/Easing.native.js +231 -194
  144. package/dist/esm/vendor/react-native/Animated/Easing.native.js.map +6 -1
  145. package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.native.js +222 -206
  146. package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.native.js.map +6 -1
  147. package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.native.js +5 -3
  148. package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.native.js.map +6 -1
  149. package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.native.js +5 -3
  150. package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.native.js.map +6 -1
  151. package/dist/esm/vendor/react-native/Animated/SpringConfig.native.js +5 -5
  152. package/dist/esm/vendor/react-native/Animated/SpringConfig.native.js.map +6 -1
  153. package/dist/esm/vendor/react-native/Animated/animations/Animation.native.js +37 -25
  154. package/dist/esm/vendor/react-native/Animated/animations/Animation.native.js.map +6 -1
  155. package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.native.js +54 -42
  156. package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.native.js.map +6 -1
  157. package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.native.js +72 -72
  158. package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.native.js.map +6 -1
  159. package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.native.js +60 -45
  160. package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.native.js.map +6 -1
  161. package/dist/esm/vendor/react-native/Animated/bezier.native.js +20 -23
  162. package/dist/esm/vendor/react-native/Animated/bezier.native.js.map +6 -1
  163. package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.native.js +6 -4
  164. package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.native.js.map +6 -1
  165. package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.native.js +13 -12
  166. package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.native.js.map +6 -1
  167. package/dist/esm/vendor/react-native/Animated/components/AnimatedText.native.js +6 -4
  168. package/dist/esm/vendor/react-native/Animated/components/AnimatedText.native.js.map +6 -1
  169. package/dist/esm/vendor/react-native/Animated/components/AnimatedView.native.js +6 -4
  170. package/dist/esm/vendor/react-native/Animated/components/AnimatedView.native.js.map +6 -1
  171. package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.native.js +11 -17
  172. package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.native.js.map +6 -1
  173. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.native.js +55 -39
  174. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.native.js.map +6 -1
  175. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.native.js +197 -180
  176. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.native.js.map +6 -1
  177. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.native.js +51 -39
  178. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.native.js.map +6 -1
  179. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.native.js +57 -42
  180. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.native.js.map +6 -1
  181. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.native.js +116 -99
  182. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.native.js.map +6 -1
  183. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.native.js +50 -37
  184. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.native.js.map +6 -1
  185. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.native.js +55 -39
  186. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.native.js.map +6 -1
  187. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.native.js +89 -61
  188. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.native.js.map +6 -1
  189. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.native.js +70 -52
  190. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.native.js.map +6 -1
  191. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.native.js +68 -50
  192. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.native.js.map +6 -1
  193. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.native.js +55 -39
  194. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.native.js.map +6 -1
  195. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.native.js +53 -41
  196. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.native.js.map +6 -1
  197. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.native.js +57 -44
  198. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.native.js.map +6 -1
  199. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.native.js +99 -70
  200. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.native.js.map +6 -1
  201. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.native.js +82 -64
  202. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.native.js.map +6 -1
  203. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.native.js +53 -40
  204. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.native.js.map +6 -1
  205. package/dist/esm/vendor/react-native/Animated/useAnimatedProps.native.js +58 -50
  206. package/dist/esm/vendor/react-native/Animated/useAnimatedProps.native.js.map +6 -1
  207. package/dist/esm/vendor/react-native/FeatureFlags.native.js +10 -8
  208. package/dist/esm/vendor/react-native/FeatureFlags.native.js.map +6 -1
  209. package/dist/esm/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.native.js +5 -3
  210. package/dist/esm/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.native.js.map +6 -1
  211. package/dist/esm/vendor/react-native/NativeEventEmitter/index.native.js +55 -46
  212. package/dist/esm/vendor/react-native/NativeEventEmitter/index.native.js.map +6 -1
  213. package/dist/esm/vendor/react-native/PanResponder/index.native.js +219 -224
  214. package/dist/esm/vendor/react-native/PanResponder/index.native.js.map +6 -1
  215. package/dist/esm/vendor/react-native/TouchHistoryMath/index.native.js +81 -58
  216. package/dist/esm/vendor/react-native/TouchHistoryMath/index.native.js.map +6 -1
  217. package/dist/esm/vendor/react-native/TurboModule/RCTExport.native.js +1 -2
  218. package/dist/esm/vendor/react-native/TurboModule/RCTExport.native.js.map +6 -1
  219. package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.native.js +5 -2
  220. package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.native.js.map +6 -1
  221. package/dist/esm/vendor/react-native/Types/CoreEventTypes.native.js +1 -2
  222. package/dist/esm/vendor/react-native/Types/CoreEventTypes.native.js.map +6 -1
  223. package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.native.js +6 -5
  224. package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.native.js.map +6 -1
  225. package/dist/esm/vendor/react-native/emitter/EventEmitter.native.js +5 -3
  226. package/dist/esm/vendor/react-native/emitter/EventEmitter.native.js.map +6 -1
  227. package/dist/esm/vendor/react-native/emitter/EventSubscription.native.js +1 -2
  228. package/dist/esm/vendor/react-native/emitter/EventSubscription.native.js.map +6 -1
  229. package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.native.js +33 -24
  230. package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.native.js.map +6 -1
  231. package/dist/esm/vendor/react-native/emitter/_EventEmitter.native.js +51 -41
  232. package/dist/esm/vendor/react-native/emitter/_EventEmitter.native.js.map +6 -1
  233. package/dist/esm/vendor/react-native/emitter/_EventSubscription.native.js +16 -12
  234. package/dist/esm/vendor/react-native/emitter/_EventSubscription.native.js.map +6 -1
  235. package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.native.js +26 -21
  236. package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.native.js.map +6 -1
  237. package/dist/esm/vendor/react-native/infoLog/index.native.js +6 -3
  238. package/dist/esm/vendor/react-native/infoLog/index.native.js.map +6 -1
  239. package/dist/esm/vendor/react-native/useRefEffect.native.js +8 -4
  240. package/dist/esm/vendor/react-native/useRefEffect.native.js.map +6 -1
  241. package/dist/esm/without-animated.native.js +115 -52
  242. package/dist/esm/without-animated.native.js.map +6 -1
  243. package/package.json +6 -6
@@ -1,15 +1,13 @@
1
1
  import * as React from "react";
2
- import ModalAnimation from "./ModalAnimation.native.js";
3
- import ModalContent from "./ModalContent.native.js";
4
- import ModalFocusTrap from "./ModalFocusTrap.native.js";
5
- import ModalPortal from "./ModalPortal.native.js";
6
- var uniqueModalIdentifier = 0,
7
- activeModalStack = [],
8
- activeModalListeners = {};
2
+ import ModalAnimation from "./ModalAnimation";
3
+ import ModalContent from "./ModalContent";
4
+ import ModalFocusTrap from "./ModalFocusTrap";
5
+ import ModalPortal from "./ModalPortal";
6
+ var uniqueModalIdentifier = 0, activeModalStack = [], activeModalListeners = {};
9
7
  function notifyActiveModalListeners() {
10
8
  if (activeModalStack.length !== 0) {
11
9
  var activeModalId = activeModalStack[activeModalStack.length - 1];
12
- activeModalStack.forEach(function (modalId) {
10
+ activeModalStack.forEach(function(modalId) {
13
11
  modalId in activeModalListeners && activeModalListeners[modalId](modalId === activeModalId);
14
12
  });
15
13
  }
@@ -22,48 +20,42 @@ function removeActiveModal(modalId) {
22
20
  function addActiveModal(modalId, listener) {
23
21
  removeActiveModal(modalId), activeModalStack.push(modalId), activeModalListeners[modalId] = listener, notifyActiveModalListeners();
24
22
  }
25
- var Modal = /* @__PURE__ */React.forwardRef(function (props, forwardedRef) {
26
- var {
27
- animationType,
28
- children,
29
- onDismiss,
30
- onRequestClose,
31
- onShow,
32
- transparent,
33
- visible = !0,
34
- ...rest
35
- } = props,
36
- modalId = React.useMemo(function () {
37
- return uniqueModalIdentifier++;
38
- }, []),
39
- _React$useState = React.useState(!1),
40
- isActive = _React$useState[0],
41
- setIsActive = _React$useState[1],
42
- onDismissCallback = React.useCallback(function () {
43
- removeActiveModal(modalId), onDismiss && onDismiss();
44
- }, [modalId, onDismiss]),
45
- onShowCallback = React.useCallback(function () {
46
- addActiveModal(modalId, setIsActive), onShow && onShow();
47
- }, [modalId, onShow]);
48
- return React.useEffect(function () {
49
- return function () {
50
- return removeActiveModal(modalId);
51
- };
52
- }, [modalId]), /* @__PURE__ */React.createElement(ModalPortal, null, /* @__PURE__ */React.createElement(ModalAnimation, {
53
- animationType,
54
- onDismiss: onDismissCallback,
55
- onShow: onShowCallback,
56
- visible
57
- }, /* @__PURE__ */React.createElement(ModalFocusTrap, {
58
- active: isActive
59
- }, /* @__PURE__ */React.createElement(ModalContent, {
60
- ...rest,
61
- active: isActive,
62
- onRequestClose,
63
- ref: forwardedRef,
64
- transparent
65
- }, children))));
66
- }),
67
- Modal_default = Modal;
68
- export { Modal_default as default };
69
- //# sourceMappingURL=index.native.js.map
23
+ var Modal = /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
24
+ var { animationType, children, onDismiss, onRequestClose, onShow, transparent, visible = !0, ...rest } = props, modalId = React.useMemo(function() {
25
+ return uniqueModalIdentifier++;
26
+ }, []), _React$useState = React.useState(!1), isActive = _React$useState[0], setIsActive = _React$useState[1], onDismissCallback = React.useCallback(function() {
27
+ removeActiveModal(modalId), onDismiss && onDismiss();
28
+ }, [
29
+ modalId,
30
+ onDismiss
31
+ ]), onShowCallback = React.useCallback(function() {
32
+ addActiveModal(modalId, setIsActive), onShow && onShow();
33
+ }, [
34
+ modalId,
35
+ onShow
36
+ ]);
37
+ return React.useEffect(function() {
38
+ return function() {
39
+ return removeActiveModal(modalId);
40
+ };
41
+ }, [
42
+ modalId
43
+ ]), /* @__PURE__ */ React.createElement(ModalPortal, null, /* @__PURE__ */ React.createElement(ModalAnimation, {
44
+ animationType,
45
+ onDismiss: onDismissCallback,
46
+ onShow: onShowCallback,
47
+ visible
48
+ }, /* @__PURE__ */ React.createElement(ModalFocusTrap, {
49
+ active: isActive
50
+ }, /* @__PURE__ */ React.createElement(ModalContent, {
51
+ ...rest,
52
+ active: isActive,
53
+ onRequestClose,
54
+ ref: forwardedRef,
55
+ transparent
56
+ }, children))));
57
+ }), Modal_default = Modal;
58
+ export {
59
+ Modal_default as default
60
+ };
61
+ //# sourceMappingURL=index.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["React","ModalAnimation","ModalContent","ModalFocusTrap","ModalPortal","uniqueModalIdentifier","activeModalStack","activeModalListeners","notifyActiveModalListeners","length","activeModalId","forEach","modalId","removeActiveModal","index","indexOf","splice","addActiveModal","listener","push","Modal","forwardRef","props","forwardedRef","animationType","children","onDismiss","onRequestClose","onShow","transparent","visible","rest","useMemo","_React$useState","useState","isActive","setIsActive","onDismissCallback","useCallback","onShowCallback","useEffect","createElement","active","ref","Modal_default","default"],"sources":["../../../src/Modal/index.js"],"sourcesContent":[null],"mappings":"AASA,YAAYA,KAAA,MAAW;AAEvB,OAAOC,cAAA,MAAoB;AAC3B,OAAOC,YAAA,MAAkB;AACzB,OAAOC,cAAA,MAAoB;AAC3B,OAAOC,WAAA,MAAiB;AAExB,IAAIC,q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AG,WAAA,GAAAH,eAAA;MAAAI,iBAAA,GAAArC,KAAA,CAAAsC,WAAA;QACAzB,iBAAA,CAAAD,OAAA,GAAAc,SAAA,IAAAA,SAAA;MAAA,GACA,CACAd,OAAA,EACAc,SAAA,EACA;MAAAa,cAAU,GAAAvC,KAAA,CAAAsC,WAAA;QACVrB,cAAG,CAAAL,OAAA,EAAAwB,WAAA,GAAAR,MAAA,IAAAA,MAAA;MACL,IAEAhB,OAAI,EAOFgB,MAAA,CAKF;IAEE,OAAA5B,KAAA,CAAAwC,SAAe,aAAS;MAK1B,OAAI,YAAgB;QACpB,OAAA3B,iBAAgB,CACPD,OAAM;MAGb;IAAA,GACA,CACcA,OAAA,CAAM,GAClB,eAAAZ,KAAA,CAAAyC,aAAA,CAAArC,WAAA,uBAAAJ,KAAA,CAAAyC,aAAA,CAAAxC,cAAA;MAAAuB,aACA;MAAAE,SACE,EAAAW,iBAAA;MAAAT,MACA,EAAAW,cAAW;MAAAT;IACH,kBACR9B,KAAA,CAAAyC,aAAA,CAAAtC,cAAA;MAAAuC,MACF,EAAAP;IAAA,kBACcnC,KAAA,CAAAyC,aAAM,CAAAvC,YAAA;MAAA,GAAA6B,IAClB;MAAAW,MACA,EAAAP,QAAA;MAAAR,cACU;MAAAgB,GAAA,EACVpB,YAAA;MAAAM;IACoB,GAAAJ,QAClB;EAAA;EAAAmB,aACA,GAAAxB,KAAA;AAAA,SACKwB,aACH,IAAAC,OAAQ","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/Modal/Users/n8/tamagui/code/packages/react-native-web-lite/src/Modal/index.js"],
4
+ "mappings": "AASA,YAAYA,WAAW;AAEvB,OAAOC,oBAAoB;AAC3B,OAAOC,kBAAkB;AACzB,OAAOC,oBAAoB;AAC3B,OAAOC,iBAAiB;AAExB,IAAIC,wBAAwB,GACxBC,mBAAmB,CAAA,GACnBC,uBAAuB,CAAC;AAE5B,SAASC,6BAAAA;AACP,MAAIF,iBAAiBG,WA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zBrC,aACA,MACcJ,sBAAMyC,cAClBxC,gBACA;IACEuB;IACAE,WAAWW;IACXT,QAAQW;IACRT;EACF,GACc9B,sBAAMyC,cAClBtC,gBACA;IACEuC,QAAQP;EACV,GACcnC,sBAAMyC,cAClBvC,cACA;IACE,GAAG6B;IACHW,QAAQP;IACRR;IACAgB,KAAKpB;IACLM;EACF,GACAJ,QAAAA,CAAAA,CAAAA,CAAAA;AAKV,CAAA,GACA,gBAAeL;",
5
+ "names": ["React", "ModalAnimation", "ModalContent", "ModalFocusTrap", "ModalPortal", "uniqueModalIdentifier", "activeModalStack", "activeModalListeners", "notifyActiveModalListeners", "length", "activeModalId", "forEach", "modalId", "removeActiveModal", "index", "indexOf", "splice", "addActiveModal", "listener", "push", "Modal", "forwardRef", "props", "forwardedRef", "animationType", "children", "onDismiss", "onRequestClose", "onShow", "transparent", "visible", "rest", "useMemo", "_React$useState", "useState", "isActive", "setIsActive", "onDismissCallback", "useCallback", "onShowCallback", "useEffect", "createElement", "active", "ref"]
6
+ }
@@ -1,7 +1,8 @@
1
1
  import { UIManager } from "@tamagui/react-native-web-internals";
2
2
  var NativeModules = {
3
- UIManager
4
- },
5
- NativeModules_default = NativeModules;
6
- export { NativeModules_default as default };
7
- //# sourceMappingURL=index.native.js.map
3
+ UIManager
4
+ }, NativeModules_default = NativeModules;
5
+ export {
6
+ NativeModules_default as default
7
+ };
8
+ //# sourceMappingURL=index.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["UIManager","NativeModules","NativeModules_default"],"sources":["../../../src/NativeModules/index.tsx"],"sourcesContent":[null],"mappings":"AASA,SAASA,SAAA,QAAiB;AAG1B,IAAAC,aAAM;IACJD;EACF;EAAAE,qBAAA,GAAAD,aAAA;AAEA,S","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/NativeModules/Users/n8/tamagui/code/packages/react-native-web-lite/src/NativeModules/index.tsx"],
4
+ "mappings": "AASA,SAASA,iBAAiB;AAG1B,IAAMC,gBAAgB;EACpBD;AACF,GAEA,wBAAeC;",
5
+ "names": ["UIManager", "NativeModules"]
6
+ }
@@ -1,163 +1,128 @@
1
1
  import { InteractionManager } from "@tamagui/react-native-web-internals";
2
- import TouchHistoryMath from "../vendor/react-native/TouchHistoryMath/index.native.js";
3
- var {
4
- currentCentroidX,
5
- currentCentroidY,
6
- currentCentroidXOfTouchesChangedAfter,
7
- currentCentroidYOfTouchesChangedAfter,
8
- previousCentroidXOfTouchesChangedAfter,
9
- previousCentroidYOfTouchesChangedAfter
10
- } = TouchHistoryMath,
11
- PanResponder = {
12
- _initializeGestureState(gestureState) {
13
- gestureState.x = 0, gestureState.y = 0, gestureState.initialX = 0, gestureState.initialY = 0, gestureState.deltaX = 0, gestureState.deltaY = 0, gestureState.velocityX = 0, gestureState.velocityY = 0, gestureState.numberActiveTouches = 0, gestureState._accountsForMovesUpTo = 0;
14
- },
15
- /**
16
- * Take all recently moved touches, calculate how the centroid has changed just for those
17
- * recently moved touches, and append that change to an accumulator. This is
18
- * to (at least) handle the case where the user is moving three fingers, and
19
- * then one of the fingers stops but the other two continue.
20
- *
21
- * This is very different than taking all of the recently moved touches and
22
- * storing their centroid as `dx/dy`. For correctness, we must *accumulate
23
- * changes* in the centroid of recently moved touches.
24
- *
25
- * There is also some nuance with how we handle multiple moved touches in a
26
- * single event. Multiple touches generate two 'move' events, each of
27
- * them triggering `onResponderMove`. But with the way `PanResponder` works,
28
- * all of the gesture inference is performed on the first dispatch, since it
29
- * looks at all of the touches. Therefore, `PanResponder` does not call
30
- * `onResponderMove` passed the first dispatch. This diverges from the
31
- * typical responder callback pattern (without using `PanResponder`), but
32
- * avoids more dispatches than necessary.
33
- *
34
- * When moving two touches in opposite directions, the cumulative
35
- * distance is zero in each dimension. When two touches move in parallel five
36
- * pixels in the same direction, the cumulative distance is five, not ten. If
37
- * two touches start, one moves five in a direction, then stops and the other
38
- * touch moves fives in the same direction, the cumulative distance is ten.
39
- *
40
- * This logic requires a kind of processing of time "clusters" of touch events
41
- * so that two touch moves that essentially occur in parallel but move every
42
- * other frame respectively, are considered part of the same movement.
43
- *
44
- * x/y: If a move event has been observed, `(x, y)` is the centroid of the most
45
- * recently moved "cluster" of active touches.
46
- * deltaX/deltaY: Cumulative touch distance. Accounts for touch moves that are
47
- * clustered together in time, moving the same direction. Only valid when
48
- * currently responder (otherwise, it only represents the drag distance below
49
- * the threshold).
50
- */
51
- _updateGestureStateOnMove(gestureState, touchHistory) {
52
- var movedAfter = gestureState._accountsForMovesUpTo,
53
- prevX = previousCentroidXOfTouchesChangedAfter(touchHistory, movedAfter),
54
- prevY = previousCentroidYOfTouchesChangedAfter(touchHistory, movedAfter),
55
- prevDeltaX = gestureState.deltaX,
56
- prevDeltaY = gestureState.deltaY,
57
- x = currentCentroidXOfTouchesChangedAfter(touchHistory, movedAfter),
58
- y = currentCentroidYOfTouchesChangedAfter(touchHistory, movedAfter),
59
- deltaX = prevDeltaX + (x - prevX),
60
- deltaY = prevDeltaY + (y - prevY),
61
- dt = touchHistory.mostRecentTimeStamp - gestureState._accountsForMovesUpTo;
62
- gestureState.deltaX = deltaX, gestureState.deltaY = deltaY, gestureState.numberActiveTouches = touchHistory.numberActiveTouches, gestureState.velocityX = (deltaX - prevDeltaX) / dt, gestureState.velocityY = (deltaY - prevDeltaY) / dt, gestureState.x = x, gestureState.y = y, gestureState._accountsForMovesUpTo = touchHistory.mostRecentTimeStamp;
63
- },
64
- /**
65
- * Enhanced versions of all of the responder callbacks that provide not only
66
- * the `ResponderEvent`, but also the `PanResponder` gesture state.
67
- *
68
- * In general, for events that have capture equivalents, we update the
69
- * gestureState once in the capture phase and can use it in the bubble phase
70
- * as well.
71
- */
72
- create(config) {
73
- var interactionState = {
74
- handle: null
75
- },
76
- gestureState = {
77
- // Useful for debugging
78
- stateID: Math.random(),
79
- x: 0,
80
- y: 0,
81
- initialX: 0,
82
- initialY: 0,
83
- deltaX: 0,
84
- deltaY: 0,
85
- velocityX: 0,
86
- velocityY: 0,
87
- numberActiveTouches: 0,
88
- _accountsForMovesUpTo: 0
89
- },
90
- {
91
- onStartShouldSetResponder,
92
- onStartShouldSetResponderCapture,
93
- onMoveShouldSetResponder,
94
- onMoveShouldSetResponderCapture,
95
- onPanGrant,
96
- onPanStart,
97
- onPanMove,
98
- onPanEnd,
99
- onPanRelease,
100
- onPanReject,
101
- onPanTerminate,
102
- onPanTerminationRequest
103
- } = config,
104
- panHandlers = {
105
- onStartShouldSetResponder(event) {
106
- return onStartShouldSetResponder != null ? onStartShouldSetResponder(event, gestureState) : !1;
107
- },
108
- onMoveShouldSetResponder(event) {
109
- return onMoveShouldSetResponder != null ? onMoveShouldSetResponder(event, gestureState) : !1;
110
- },
111
- onStartShouldSetResponderCapture(event) {
112
- return event.nativeEvent.touches.length === 1 && PanResponder._initializeGestureState(gestureState), gestureState.numberActiveTouches = event.touchHistory.numberActiveTouches, onStartShouldSetResponderCapture != null ? onStartShouldSetResponderCapture(event, gestureState) : !1;
113
- },
114
- onMoveShouldSetResponderCapture(event) {
115
- var touchHistory = event.touchHistory;
116
- return PanResponder._updateGestureStateOnMove(gestureState, touchHistory), onMoveShouldSetResponderCapture != null ? onMoveShouldSetResponderCapture(event, gestureState) : !1;
117
- },
118
- onResponderGrant(event) {
119
- interactionState.handle || (interactionState.handle = InteractionManager.createInteractionHandle()), gestureState.initialX = currentCentroidX(event.touchHistory), gestureState.initialY = currentCentroidY(event.touchHistory), gestureState.deltaX = 0, gestureState.deltaY = 0, onPanGrant?.(event, gestureState);
120
- },
121
- onResponderReject(event) {
122
- clearInteractionHandle(interactionState, onPanReject, event, gestureState);
123
- },
124
- onResponderStart(event) {
125
- var {
126
- numberActiveTouches
127
- } = event.touchHistory;
128
- gestureState.numberActiveTouches = numberActiveTouches, onPanStart?.(event, gestureState);
129
- },
130
- onResponderMove(event) {
131
- var touchHistory = event.touchHistory;
132
- gestureState._accountsForMovesUpTo !== touchHistory.mostRecentTimeStamp && (PanResponder._updateGestureStateOnMove(gestureState, touchHistory), onPanMove?.(event, gestureState));
133
- },
134
- onResponderEnd(event) {
135
- var {
136
- numberActiveTouches
137
- } = event.touchHistory;
138
- gestureState.numberActiveTouches = numberActiveTouches, clearInteractionHandle(interactionState, onPanEnd, event, gestureState);
139
- },
140
- onResponderRelease(event) {
141
- clearInteractionHandle(interactionState, onPanRelease, event, gestureState), PanResponder._initializeGestureState(gestureState);
142
- },
143
- onResponderTerminate(event) {
144
- clearInteractionHandle(interactionState, onPanTerminate, event, gestureState), PanResponder._initializeGestureState(gestureState);
145
- },
146
- onResponderTerminationRequest(event) {
147
- return onPanTerminationRequest != null ? onPanTerminationRequest(event, gestureState) : !0;
148
- }
149
- };
150
- return {
151
- panHandlers,
152
- getInteractionHandle() {
153
- return interactionState.handle;
154
- }
155
- };
156
- }
157
- };
2
+ import TouchHistoryMath from "../vendor/react-native/TouchHistoryMath/index";
3
+ var { currentCentroidX, currentCentroidY, currentCentroidXOfTouchesChangedAfter, currentCentroidYOfTouchesChangedAfter, previousCentroidXOfTouchesChangedAfter, previousCentroidYOfTouchesChangedAfter } = TouchHistoryMath, PanResponder = {
4
+ _initializeGestureState(gestureState) {
5
+ gestureState.x = 0, gestureState.y = 0, gestureState.initialX = 0, gestureState.initialY = 0, gestureState.deltaX = 0, gestureState.deltaY = 0, gestureState.velocityX = 0, gestureState.velocityY = 0, gestureState.numberActiveTouches = 0, gestureState._accountsForMovesUpTo = 0;
6
+ },
7
+ /**
8
+ * Take all recently moved touches, calculate how the centroid has changed just for those
9
+ * recently moved touches, and append that change to an accumulator. This is
10
+ * to (at least) handle the case where the user is moving three fingers, and
11
+ * then one of the fingers stops but the other two continue.
12
+ *
13
+ * This is very different than taking all of the recently moved touches and
14
+ * storing their centroid as `dx/dy`. For correctness, we must *accumulate
15
+ * changes* in the centroid of recently moved touches.
16
+ *
17
+ * There is also some nuance with how we handle multiple moved touches in a
18
+ * single event. Multiple touches generate two 'move' events, each of
19
+ * them triggering `onResponderMove`. But with the way `PanResponder` works,
20
+ * all of the gesture inference is performed on the first dispatch, since it
21
+ * looks at all of the touches. Therefore, `PanResponder` does not call
22
+ * `onResponderMove` passed the first dispatch. This diverges from the
23
+ * typical responder callback pattern (without using `PanResponder`), but
24
+ * avoids more dispatches than necessary.
25
+ *
26
+ * When moving two touches in opposite directions, the cumulative
27
+ * distance is zero in each dimension. When two touches move in parallel five
28
+ * pixels in the same direction, the cumulative distance is five, not ten. If
29
+ * two touches start, one moves five in a direction, then stops and the other
30
+ * touch moves fives in the same direction, the cumulative distance is ten.
31
+ *
32
+ * This logic requires a kind of processing of time "clusters" of touch events
33
+ * so that two touch moves that essentially occur in parallel but move every
34
+ * other frame respectively, are considered part of the same movement.
35
+ *
36
+ * x/y: If a move event has been observed, `(x, y)` is the centroid of the most
37
+ * recently moved "cluster" of active touches.
38
+ * deltaX/deltaY: Cumulative touch distance. Accounts for touch moves that are
39
+ * clustered together in time, moving the same direction. Only valid when
40
+ * currently responder (otherwise, it only represents the drag distance below
41
+ * the threshold).
42
+ */
43
+ _updateGestureStateOnMove(gestureState, touchHistory) {
44
+ var movedAfter = gestureState._accountsForMovesUpTo, prevX = previousCentroidXOfTouchesChangedAfter(touchHistory, movedAfter), prevY = previousCentroidYOfTouchesChangedAfter(touchHistory, movedAfter), prevDeltaX = gestureState.deltaX, prevDeltaY = gestureState.deltaY, x = currentCentroidXOfTouchesChangedAfter(touchHistory, movedAfter), y = currentCentroidYOfTouchesChangedAfter(touchHistory, movedAfter), deltaX = prevDeltaX + (x - prevX), deltaY = prevDeltaY + (y - prevY), dt = touchHistory.mostRecentTimeStamp - gestureState._accountsForMovesUpTo;
45
+ gestureState.deltaX = deltaX, gestureState.deltaY = deltaY, gestureState.numberActiveTouches = touchHistory.numberActiveTouches, gestureState.velocityX = (deltaX - prevDeltaX) / dt, gestureState.velocityY = (deltaY - prevDeltaY) / dt, gestureState.x = x, gestureState.y = y, gestureState._accountsForMovesUpTo = touchHistory.mostRecentTimeStamp;
46
+ },
47
+ /**
48
+ * Enhanced versions of all of the responder callbacks that provide not only
49
+ * the `ResponderEvent`, but also the `PanResponder` gesture state.
50
+ *
51
+ * In general, for events that have capture equivalents, we update the
52
+ * gestureState once in the capture phase and can use it in the bubble phase
53
+ * as well.
54
+ */
55
+ create(config) {
56
+ var interactionState = {
57
+ handle: null
58
+ }, gestureState = {
59
+ // Useful for debugging
60
+ stateID: Math.random(),
61
+ x: 0,
62
+ y: 0,
63
+ initialX: 0,
64
+ initialY: 0,
65
+ deltaX: 0,
66
+ deltaY: 0,
67
+ velocityX: 0,
68
+ velocityY: 0,
69
+ numberActiveTouches: 0,
70
+ _accountsForMovesUpTo: 0
71
+ }, { onStartShouldSetResponder, onStartShouldSetResponderCapture, onMoveShouldSetResponder, onMoveShouldSetResponderCapture, onPanGrant, onPanStart, onPanMove, onPanEnd, onPanRelease, onPanReject, onPanTerminate, onPanTerminationRequest } = config, panHandlers = {
72
+ onStartShouldSetResponder(event) {
73
+ return onStartShouldSetResponder != null ? onStartShouldSetResponder(event, gestureState) : !1;
74
+ },
75
+ onMoveShouldSetResponder(event) {
76
+ return onMoveShouldSetResponder != null ? onMoveShouldSetResponder(event, gestureState) : !1;
77
+ },
78
+ onStartShouldSetResponderCapture(event) {
79
+ return event.nativeEvent.touches.length === 1 && PanResponder._initializeGestureState(gestureState), gestureState.numberActiveTouches = event.touchHistory.numberActiveTouches, onStartShouldSetResponderCapture != null ? onStartShouldSetResponderCapture(event, gestureState) : !1;
80
+ },
81
+ onMoveShouldSetResponderCapture(event) {
82
+ var touchHistory = event.touchHistory;
83
+ return PanResponder._updateGestureStateOnMove(gestureState, touchHistory), onMoveShouldSetResponderCapture != null ? onMoveShouldSetResponderCapture(event, gestureState) : !1;
84
+ },
85
+ onResponderGrant(event) {
86
+ interactionState.handle || (interactionState.handle = InteractionManager.createInteractionHandle()), gestureState.initialX = currentCentroidX(event.touchHistory), gestureState.initialY = currentCentroidY(event.touchHistory), gestureState.deltaX = 0, gestureState.deltaY = 0, onPanGrant?.(event, gestureState);
87
+ },
88
+ onResponderReject(event) {
89
+ clearInteractionHandle(interactionState, onPanReject, event, gestureState);
90
+ },
91
+ onResponderStart(event) {
92
+ var { numberActiveTouches } = event.touchHistory;
93
+ gestureState.numberActiveTouches = numberActiveTouches, onPanStart?.(event, gestureState);
94
+ },
95
+ onResponderMove(event) {
96
+ var touchHistory = event.touchHistory;
97
+ gestureState._accountsForMovesUpTo !== touchHistory.mostRecentTimeStamp && (PanResponder._updateGestureStateOnMove(gestureState, touchHistory), onPanMove?.(event, gestureState));
98
+ },
99
+ onResponderEnd(event) {
100
+ var { numberActiveTouches } = event.touchHistory;
101
+ gestureState.numberActiveTouches = numberActiveTouches, clearInteractionHandle(interactionState, onPanEnd, event, gestureState);
102
+ },
103
+ onResponderRelease(event) {
104
+ clearInteractionHandle(interactionState, onPanRelease, event, gestureState), PanResponder._initializeGestureState(gestureState);
105
+ },
106
+ onResponderTerminate(event) {
107
+ clearInteractionHandle(interactionState, onPanTerminate, event, gestureState), PanResponder._initializeGestureState(gestureState);
108
+ },
109
+ onResponderTerminationRequest(event) {
110
+ return onPanTerminationRequest != null ? onPanTerminationRequest(event, gestureState) : !0;
111
+ }
112
+ };
113
+ return {
114
+ panHandlers,
115
+ getInteractionHandle() {
116
+ return interactionState.handle;
117
+ }
118
+ };
119
+ }
120
+ };
158
121
  function clearInteractionHandle(interactionState, callback, event, gestureState) {
159
122
  interactionState.handle && (InteractionManager.clearInteractionHandle(interactionState.handle), interactionState.handle = null), callback && callback(event, gestureState);
160
123
  }
161
124
  var Alternative_default = PanResponder;
162
- export { Alternative_default as default };
125
+ export {
126
+ Alternative_default as default
127
+ };
163
128
  //# sourceMappingURL=Alternative.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["InteractionManager","TouchHistoryMath","currentCentroidX","currentCentroidY","currentCentroidXOfTouchesChangedAfter","currentCentroidYOfTouchesChangedAfter","previousCentroidXOfTouchesChangedAfter","previousCentroidYOfTouchesChangedAfter","PanResponder","_initializeGestureState","gestureState","x","y","initialX","initialY","deltaX","deltaY","velocityX","velocityY","numberActiveTouches","_accountsForMovesUpTo","_updateGestureStateOnMove","touchHistory","movedAfter","prevX","prevY","prevDeltaX","prevDeltaY","dt","mostRecentTimeStamp","create","config","interactionState","handle","stateID","Math","random","onStartShouldSetResponder","onStartShouldSetResponderCapture","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onPanGrant","onPanStart","onPanMove","onPanEnd","onPanRelease","onPanReject","onPanTerminate","onPanTerminationRequest","panHandlers","event","nativeEvent","touches","length","onResponderGrant","createInteractionHandle","onResponderReject","clearInteractionHandle","onResponderStart","onResponderMove","onResponderEnd","onResponderRelease","onResponderTerminate","onResponderTerminationRequest","getInteractionHandle","callback","Alternative_default"],"sources":["../../../src/PanResponder/Users/n8/tamagui/code/packages/react-native-web-lite/src/PanResponder/Alternative.tsx"],"sourcesContent":[null],"mappings":"AAqDA,SAASA,kBAAA,QAA0B;AAEnC,OAAOC,gBAAA,MAAsB;AAsD7B,IAAM;IACJC,gBAAA;IACAC,gBAAA;IACAC,qCAAA;IACAC,qCAAA;IACAC,sCAAA;IACAC;EAAsC,IACpCN,gBAAA;EAEEO,YAAA,GAAe;IACnBC,wBAAwBC,YAAA,EAA0B;MAChDA,YAAA,CAAaC,CAAA,GAAI,GACjBD,YAAA,CAAaE,CAAA,GAAI,GACjBF,YAAA,CAAaG,QAAA,GAAW,GACxBH,YAAA,CAAaI,QAAA,GAAW,GACxBJ,YAAA,CAAaK,MAAA,GAAS,GACtBL,YAAA,CAAaM,MAAA,GAAS,GACtBN,YAAA,CAAaO,SAAA,GAAY,GACzBP,YAAA,CAAaQ,SAAA,GAAY,GACzBR,YAAA,CAAaS,mBAAA,GAAsB,GAEnCT,YAAA,CAAaU,qBAAA,GAAwB;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsCAC,0BACEX,YAAA,EACAY,YAAA,EAAwC;MAExC,IAAMC,UAAA,GAAab,YAAA,CA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EAAiB;YAC7C,OAAOF,uBAAA,IAA2B,OAC9BA,uBAAA,CAAwBE,KAAA,EAAOxC,YAAA,IAC/B;UACN;QACF;MACA,OAAO;QACLuC,WAAA;QACAe,qBAAA;UACE,OAAOhC,gBAAA,CAAiBC,MAAA;QAC1B;MACF;IACF;EACF;AAEA,SAASwB,uBACPzB,gBAAA,EAGAiC,QAAA,EACAf,KAAA,EACAxC,YAAA,EAA0B;EAEtBsB,gBAAA,CAAiBC,MAAA,KACnBjC,kBAAA,CAAmByD,sBAAA,CAAuBzB,gBAAA,CAAiBC,MAAM,GACjED,gBAAA,CAAiBC,MAAA,GAAS,OAExBgC,QAAA,IACFA,QAAA,CAASf,KAAA,EAAOxC,YAAA;AAEpB;AAEA,IAAAwD,mBAAA,GAAe1D,YAAA","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/PanResponder/Users/n8/tamagui/code/packages/react-native-web-lite/src/PanResponder/Alternative.tsx"],
4
+ "mappings": "AAqDA,SAASA,0BAA0B;AAEnC,OAAOC,sBAAsB;AAsD7B,IAAM,EACJC,kBACAC,kBACAC,uCACAC,uCACAC,wCACAC,uCAAsC,IACpCN,kBAEEO,eAAe;EACnBC,wBAAwBC,cAA0B;AAChDA,iBAAaC,IAAI,GACjBD,aAAaE,IAAI,GACjBF,aAAaG,WAAW,GACxBH,aAAaI,WAAW,GACxBJ,aAAaK,SAAS,GACtBL,aAAaM,SAAS,GACtBN,aAAaO,YAAY,GACzBP,aAAaQ,YAAY,GACzBR,aAAaS,sBAAsB,GAEnCT,aAAaU,wBAAwB;EACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsCAC,0BACEX,cACAY,cAAwC;AAExC,QAAMC,aAAab,aAAaU,uBAC1BI,QAAQlB,uCAAuCgB,cAAcC,UAAAA,GAC7DE,QAAQlB,uCAAuCe,cAAcC,UAAAA,GAC7DG,aAAahB,aAAaK,QAC1BY,aAAajB,aAAaM,QAE1BL,IAAIP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IAC/B;MACN;IACF;AACA,WAAO;MACLuC;MACAe,uBAAAA;AACE,eAAOhC,iBAAiBC;MAC1B;IACF;EACF;AACF;AAEA,SAASwB,uBACPzB,kBAGAiC,UACAf,OACAxC,cAA0B;AAE1B,EAAIsB,iBAAiBC,WACnBjC,mBAAmByD,uBAAuBzB,iBAAiBC,MAAM,GACjED,iBAAiBC,SAAS,OAExBgC,YACFA,SAASf,OAAOxC,YAAAA;AAEpB;AAEA,IAAA,sBAAeF;",
5
+ "names": ["InteractionManager", "TouchHistoryMath", "currentCentroidX", "currentCentroidY", "currentCentroidXOfTouchesChangedAfter", "currentCentroidYOfTouchesChangedAfter", "previousCentroidXOfTouchesChangedAfter", "previousCentroidYOfTouchesChangedAfter", "PanResponder", "_initializeGestureState", "gestureState", "x", "y", "initialX", "initialY", "deltaX", "deltaY", "velocityX", "velocityY", "numberActiveTouches", "_accountsForMovesUpTo", "_updateGestureStateOnMove", "touchHistory", "movedAfter", "prevX", "prevY", "prevDeltaX", "prevDeltaY", "dt", "mostRecentTimeStamp", "create", "config", "interactionState", "handle", "stateID", "Math", "random", "onStartShouldSetResponder", "onStartShouldSetResponderCapture", "onMoveShouldSetResponder", "onMoveShouldSetResponderCapture", "onPanGrant", "onPanStart", "onPanMove", "onPanEnd", "onPanRelease", "onPanReject", "onPanTerminate", "onPanTerminationRequest", "panHandlers", "event", "nativeEvent", "touches", "length", "onResponderGrant", "createInteractionHandle", "onResponderReject", "clearInteractionHandle", "onResponderStart", "onResponderMove", "onResponderEnd", "onResponderRelease", "onResponderTerminate", "onResponderTerminationRequest", "getInteractionHandle", "callback"]
6
+ }
@@ -1,4 +1,6 @@
1
- import PanResponder from "../vendor/react-native/PanResponder/index.native.js";
1
+ import PanResponder from "../vendor/react-native/PanResponder/index";
2
2
  var PanResponder_default = PanResponder;
3
- export { PanResponder_default as default };
4
- //# sourceMappingURL=index.native.js.map
3
+ export {
4
+ PanResponder_default as default
5
+ };
6
+ //# sourceMappingURL=index.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["PanResponder","PanResponder_default"],"sources":["../../../src/PanResponder/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,YAAA,MAAkB;AACzB,IAAOC,oBAAA,GAAQD,YAAA","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/PanResponder/Users/n8/tamagui/code/packages/react-native-web-lite/src/PanResponder/index.tsx"],
4
+ "mappings": "AAAA,OAAOA,kBAAkB;AACzB,IAAA,uBAAeA;",
5
+ "names": ["PanResponder"]
6
+ }
@@ -1,6 +1,7 @@
1
- import Dimensions from "../Dimensions/index.native.js";
1
+ import Dimensions from "../Dimensions/index";
2
2
  function _class_call_check(instance, Constructor) {
3
- if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
3
+ if (!(instance instanceof Constructor))
4
+ throw new TypeError("Cannot call a class as a function");
4
5
  }
5
6
  function _defineProperties(target, props) {
6
7
  for (var i = 0; i < props.length; i++) {
@@ -11,54 +12,64 @@ function _defineProperties(target, props) {
11
12
  function _create_class(Constructor, protoProps, staticProps) {
12
13
  return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
13
14
  }
14
- var PixelRatio = /* @__PURE__ */function () {
15
+ var PixelRatio = /* @__PURE__ */ function() {
15
16
  "use strict";
16
-
17
17
  function PixelRatio2() {
18
18
  _class_call_check(this, PixelRatio2);
19
19
  }
20
- return _create_class(PixelRatio2, null, [{
21
- key: "get",
22
- value: (
23
- /**
24
- * Returns the device pixel density.
25
- */
26
- function () {
27
- return Dimensions.get("window").scale;
28
- })
29
- }, {
30
- key: "getFontScale",
31
- value: (
32
- /**
33
- * No equivalent for Web
34
- */
35
- function () {
36
- return Dimensions.get("window").fontScale || PixelRatio2.get();
37
- })
38
- }, {
39
- key: "getPixelSizeForLayoutSize",
40
- value: (
41
- /**
42
- * Converts a layout size (dp) to pixel size (px).
43
- * Guaranteed to return an integer number.
44
- */
45
- function (layoutSize) {
46
- return Math.round(layoutSize * PixelRatio2.get());
47
- })
48
- }, {
49
- key: "roundToNearestPixel",
50
- value: (
51
- /**
52
- * Rounds a layout size (dp) to the nearest layout size that corresponds to
53
- * an integer number of pixels. For example, on a device with a PixelRatio
54
- * of 3, `PixelRatio.roundToNearestPixel(8.4) = 8.33`, which corresponds to
55
- * exactly (8.33 * 3) = 25 pixels.
56
- */
57
- function (layoutSize) {
58
- var ratio = PixelRatio2.get();
59
- return Math.round(layoutSize * ratio) / ratio;
60
- })
61
- }]), PixelRatio2;
20
+ return _create_class(PixelRatio2, null, [
21
+ {
22
+ key: "get",
23
+ value: (
24
+ /**
25
+ * Returns the device pixel density.
26
+ */
27
+ function() {
28
+ return Dimensions.get("window").scale;
29
+ }
30
+ )
31
+ },
32
+ {
33
+ key: "getFontScale",
34
+ value: (
35
+ /**
36
+ * No equivalent for Web
37
+ */
38
+ function() {
39
+ return Dimensions.get("window").fontScale || PixelRatio2.get();
40
+ }
41
+ )
42
+ },
43
+ {
44
+ key: "getPixelSizeForLayoutSize",
45
+ value: (
46
+ /**
47
+ * Converts a layout size (dp) to pixel size (px).
48
+ * Guaranteed to return an integer number.
49
+ */
50
+ function(layoutSize) {
51
+ return Math.round(layoutSize * PixelRatio2.get());
52
+ }
53
+ )
54
+ },
55
+ {
56
+ key: "roundToNearestPixel",
57
+ value: (
58
+ /**
59
+ * Rounds a layout size (dp) to the nearest layout size that corresponds to
60
+ * an integer number of pixels. For example, on a device with a PixelRatio
61
+ * of 3, `PixelRatio.roundToNearestPixel(8.4) = 8.33`, which corresponds to
62
+ * exactly (8.33 * 3) = 25 pixels.
63
+ */
64
+ function(layoutSize) {
65
+ var ratio = PixelRatio2.get();
66
+ return Math.round(layoutSize * ratio) / ratio;
67
+ }
68
+ )
69
+ }
70
+ ]), PixelRatio2;
62
71
  }();
63
- export { PixelRatio as default };
64
- //# sourceMappingURL=index.native.js.map
72
+ export {
73
+ PixelRatio as default
74
+ };
75
+ //# sourceMappingURL=index.js.map