@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,17 @@
1
- import AnimatedInterpolation from "./AnimatedInterpolation.native.js";
2
- import AnimatedValue from "./AnimatedValue.native.js";
3
- import AnimatedWithChildren from "./AnimatedWithChildren.native.js";
1
+ import AnimatedInterpolation from "./AnimatedInterpolation";
2
+ import AnimatedValue from "./AnimatedValue";
3
+ import AnimatedWithChildren from "./AnimatedWithChildren";
4
4
  function _assert_this_initialized(self) {
5
- if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5
+ if (self === void 0)
6
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6
7
  return self;
7
8
  }
8
9
  function _call_super(_this, derived, args) {
9
10
  return derived = _get_prototype_of(derived), _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
11
  }
11
12
  function _class_call_check(instance, Constructor) {
12
- if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
13
+ if (!(instance instanceof Constructor))
14
+ throw new TypeError("Cannot call a class as a function");
13
15
  }
14
16
  function _defineProperties(target, props) {
15
17
  for (var i = 0; i < props.length; i++) {
@@ -21,7 +23,7 @@ function _create_class(Constructor, protoProps, staticProps) {
21
23
  return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
22
24
  }
23
25
  function _get(target, property, receiver) {
24
- return typeof Reflect < "u" && Reflect.get ? _get = Reflect.get : _get = function (target2, property2, receiver2) {
26
+ return typeof Reflect < "u" && Reflect.get ? _get = Reflect.get : _get = function(target2, property2, receiver2) {
25
27
  var base = _super_prop_base(target2, property2);
26
28
  if (base) {
27
29
  var desc = Object.getOwnPropertyDescriptor(base, property2);
@@ -30,12 +32,13 @@ function _get(target, property, receiver) {
30
32
  }, _get(target, property, receiver || target);
31
33
  }
32
34
  function _get_prototype_of(o) {
33
- return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function (o2) {
35
+ return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function(o2) {
34
36
  return o2.__proto__ || Object.getPrototypeOf(o2);
35
37
  }, _get_prototype_of(o);
36
38
  }
37
39
  function _inherits(subClass, superClass) {
38
- if (typeof superClass != "function" && superClass !== null) throw new TypeError("Super expression must either be null or a function");
40
+ if (typeof superClass != "function" && superClass !== null)
41
+ throw new TypeError("Super expression must either be null or a function");
39
42
  subClass.prototype = Object.create(superClass && superClass.prototype, {
40
43
  constructor: {
41
44
  value: subClass,
@@ -48,69 +51,82 @@ function _possible_constructor_return(self, call) {
48
51
  return call && (_type_of(call) === "object" || typeof call == "function") ? call : _assert_this_initialized(self);
49
52
  }
50
53
  function _set_prototype_of(o, p) {
51
- return _set_prototype_of = Object.setPrototypeOf || function (o2, p2) {
54
+ return _set_prototype_of = Object.setPrototypeOf || function(o2, p2) {
52
55
  return o2.__proto__ = p2, o2;
53
56
  }, _set_prototype_of(o, p);
54
57
  }
55
58
  function _super_prop_base(object, property) {
56
- for (; !Object.prototype.hasOwnProperty.call(object, property) && (object = _get_prototype_of(object), object !== null););
59
+ for (; !Object.prototype.hasOwnProperty.call(object, property) && (object = _get_prototype_of(object), object !== null); )
60
+ ;
57
61
  return object;
58
62
  }
59
63
  function _type_of(obj) {
60
64
  "@swc/helpers - typeof";
61
-
62
65
  return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
63
66
  }
64
67
  function _is_native_reflect_construct() {
65
68
  try {
66
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
67
- } catch {}
68
- return (_is_native_reflect_construct = function () {
69
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
70
+ }));
71
+ } catch {
72
+ }
73
+ return (_is_native_reflect_construct = function() {
69
74
  return !!result;
70
75
  })();
71
76
  }
72
- var AnimatedAddition = /* @__PURE__ */function (AnimatedWithChildren2) {
73
- _inherits(AnimatedAddition2, AnimatedWithChildren2);
74
- function AnimatedAddition2(a, b) {
75
- _class_call_check(this, AnimatedAddition2);
76
- var _this;
77
- return _this = _call_super(this, AnimatedAddition2), _this._a = typeof a == "number" ? new AnimatedValue(a) : a, _this._b = typeof b == "number" ? new AnimatedValue(b) : b, _this;
78
- }
79
- return _create_class(AnimatedAddition2, [{
77
+ var AnimatedAddition = /* @__PURE__ */ function(AnimatedWithChildren2) {
78
+ _inherits(AnimatedAddition2, AnimatedWithChildren2);
79
+ function AnimatedAddition2(a, b) {
80
+ _class_call_check(this, AnimatedAddition2);
81
+ var _this;
82
+ return _this = _call_super(this, AnimatedAddition2), _this._a = typeof a == "number" ? new AnimatedValue(a) : a, _this._b = typeof b == "number" ? new AnimatedValue(b) : b, _this;
83
+ }
84
+ return _create_class(AnimatedAddition2, [
85
+ {
80
86
  key: "__makeNative",
81
- value: function (platformConfig) {
87
+ value: function(platformConfig) {
82
88
  this._a.__makeNative(platformConfig), this._b.__makeNative(platformConfig), _get(_get_prototype_of(AnimatedAddition2.prototype), "__makeNative", this).call(this, platformConfig);
83
89
  }
84
- }, {
90
+ },
91
+ {
85
92
  key: "__getValue",
86
- value: function () {
93
+ value: function() {
87
94
  return this._a.__getValue() + this._b.__getValue();
88
95
  }
89
- }, {
96
+ },
97
+ {
90
98
  key: "interpolate",
91
- value: function (config) {
99
+ value: function(config) {
92
100
  return new AnimatedInterpolation(this, config);
93
101
  }
94
- }, {
102
+ },
103
+ {
95
104
  key: "__attach",
96
- value: function () {
105
+ value: function() {
97
106
  this._a.__addChild(this), this._b.__addChild(this);
98
107
  }
99
- }, {
108
+ },
109
+ {
100
110
  key: "__detach",
101
- value: function () {
111
+ value: function() {
102
112
  this._a.__removeChild(this), this._b.__removeChild(this), _get(_get_prototype_of(AnimatedAddition2.prototype), "__detach", this).call(this);
103
113
  }
104
- }, {
114
+ },
115
+ {
105
116
  key: "__getNativeConfig",
106
- value: function () {
117
+ value: function() {
107
118
  return {
108
119
  type: "addition",
109
- input: [this._a.__getNativeTag(), this._b.__getNativeTag()]
120
+ input: [
121
+ this._a.__getNativeTag(),
122
+ this._b.__getNativeTag()
123
+ ]
110
124
  };
111
125
  }
112
- }]), AnimatedAddition2;
113
- }(AnimatedWithChildren),
114
- AnimatedAddition_default = AnimatedAddition;
115
- export { AnimatedAddition_default as default };
116
- //# sourceMappingURL=AnimatedAddition.native.js.map
126
+ }
127
+ ]), AnimatedAddition2;
128
+ }(AnimatedWithChildren), AnimatedAddition_default = AnimatedAddition;
129
+ export {
130
+ AnimatedAddition_default as default
131
+ };
132
+ //# sourceMappingURL=AnimatedAddition.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["AnimatedInterpolation","AnimatedValue","AnimatedWithChildren","_assert_this_initialized","self","ReferenceError","_call_super","_this","derived","args","_get_prototype_of","_possible_constructor_return","_is_native_reflect_construct","Reflect","construct","constructor","apply","_class_call_check","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_create_class","protoProps","staticProps","prototype","_get","property","receiver","get","target2","property2","receiver2","base","_super_prop_base","desc","getOwnPropertyDescriptor","call","value"],"sources":["../../../../../../src/vendor/react-native/Animated/nodes/AnimatedAddition.js"],"sourcesContent":[null],"mappings":"AAWA,OAAOA,qBAAA,MAA2B;AAClC,OAAOC,aAAA,MAAmB;AAC1B,OAAOC,oBAAA,MAA0B;AAEjC,SAAMC,wBAAyBA,CAAAC,IAAA;EAC7B,IAAAA,IAAA,KAAY,KAAM,GAChB,MAAM,IACNC,cAAU,4DACA,CAAO;EACnB,OAAAD,IAAA;AAAA;AAGE,SAAKE,WAAGA,CAAAC,KAAa,EAAAC,OAAA,EAAAC,IAAc,EAEnC;EAGF,OAAAD,OAAA,GAAAE,iBAAA,CAAAF,OAAA,GAAAG,4BAAA,CAAAJ,KAAA,EAAAK,4BAAA,KAAAC,OAAA,CAAAC,SAAA,CAAAN,OAAA,EAAAC,IAAA,QAAAC,iBAAA,CAAAH,KAAA,EAAAQ,WAAA,IAAAP,OAAA,CAAAQ,KAAA,CAAAT,KAAA,EAAAE,IAAA;AAAA;AAGE,SAAAQ,iBAAeA,CAAAC,QAAe,EAAAC,WAAQ;EACxC,MAAAD,QAAA,YAAAC,WAAA,GAEA,UAAYC,SAAQ;AAClB;AAA6C,SAC/CC,kBAAAC,MAAA,EAAAC,KAAA;EAEA,SAAAC,CAAA,GAAW,GAAAA,CAAA,GAAAD,KAAA,CAAAE,MAAA,EAAAD,CAAA;IACT,IAAAE,UAAQ,GAAAH,KAAW,CAAIC,CAAA;IAGzBE,UAAA,CAAAC,UAAA,GAAAD,UAAA,CAAAC,UAAA,QAAAD,UAAA,CAAAE,YAAA,kBAAAF,UAAA,KAAAA,UAAA,CAAAG,QAAA,QAAAC,MAAA,CAAAC,cAAA,CAAAT,MAAA,EAAAI,UAAA,CAAAM,GAAA,EAAAN,UAAA;EAEA;AACE;AAIe,SACjBO,cAAAd,WAAA,EAAAe,UAAA,EAAAC,WAAA;EAEA,OAAAD,UAAA,IAAoBb,iBAAA,CAAAF,WAAA,CAAAiB,SAAA,EAAAF,UAAA,GAAAC,WAAA,IAAAd,iBAAA,CAAAF,WAAA,EAAAgB,WAAA,GAAAhB,WAAA;AAClB;AAAO,SACLkB,IAAMA,CAAAf,MAAA,EAAAgB,QAAA,EAAAC,QAAA;EAAA,OACN,OAAQ1B,OAAQ,UAAAA,OAAkB,CAAA2B,GAAA,GAAKH,IAAG,GAAAxB,OAAA,CAAA2B,GAAgB,GAAAH,IAAA,YAAAA,CAAAI,OAAA,EAAAC,SAAA,EAAAC,SAAA;IAC5D,IAAAC,IAAA,GAAAC,gBAAA,CAAAJ,OAAA,EAAAC,SAAA;IACF,IAAAE,IAAA;MACF,IAAAE,IAAA,GAAAhB,MAAA,CAAAiB,wBAAA,CAAAH,IAAA,EAAAF,SAAA;MAEO,OAAAI,IAAA,CAAAN,GAAA,GAAAM,IAAA,CAAAN,GAAQ,CAAAQ,IAAA,CAAAL,SAAA,IAAAF,OAAA,IAAAK,IAAA,CAAAG,KAAA","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../src/vendor/react-native/Animated/nodes/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/Animated/nodes/AnimatedAddition.js"],
4
+ "mappings": "AAWA,OAAOA,2BAA2B;AAClC,OAAOC,mBAAmB;AAC1B,OAAOC,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjC,IAAMC,mBAAN,yBAAAD,uBAAA;YAAMC,mBAAAA,qBAAAA;WAAAA,kBACQC,GAAGC,GAAC;4BADZF,iBAAAA;;mBAEF,YAAA,MAFEA,iBAAAA,GAGF,MAAKG,KAAK,OAAOF,KAAM,WAAW,IAAIH,cAAcG,CAAAA,IAAKA,GACzD,MAAKG,KAAK,OAAOF,KAAM,WAAW,IAAIJ,cAAcI,CAAAA,IAAKA;;uBAJvDF,mBAAAA;;MAOJK,KAAAA;aAAAA,SAAaC,gBAAc;AACzB,aAAKH,GAAGE,aAAaC,cAAAA,GAErB,KAAKF,GAAGC,aAAaC,cAAAA,GAErB,KAAA,kBAZEN,kBAAAA,SAAAA,GAYIK,gBAAN,IAAK,EAAA,KAAA,MAAcC,cAAAA;MACrB;;;MAEAC,KAAAA;aAAAA,WAAAA;AACE,eAAO,KAAKJ,GAAGI,WAAU,IAAK,KAAKH,GAAGG,WAAU;MAClD;;;MAEAC,KAAAA;aAAAA,SAAYC,QAAM;AAChB,eAAO,IAAIZ,sBAAsB,MAAMY,MAAAA;MACzC;;;MAEAC,KAAAA;aAAAA,WAAAA;AACE,aAAKP,GAAGQ,WAAW,IAAI,GAEvB,KAAKP,GAAGO,WAAW,IAAI;MACzB;;;MAEAC,KAAAA;aAAAA,WAAAA;AACE,aAAKT,GAAGU,cAAc,IAAI,GAE1B,KAAKT,GAAGS,cAAc,IAAI,GAE1B,KAAA,kBAlCEb,kBAAAA,SAAAA,GAkCIY,YAAN,IAAK,EAAA,KAAA,IAAA;MACP;;;MAEAE,KAAAA;aAAAA,WAAAA;AACE,eAAO;UACLC,MAAM;UACNC,OAAO;YAAC,KAAKb,GAAGc,eAAc;YAAI,KAAKb,GAAGa,eAAc;;QAC1D;MACF;;MA1CIjB;EAAyBD,oBAAAA,GA6C/B,2BAAeC;",
5
+ "names": ["AnimatedInterpolation", "AnimatedValue", "AnimatedWithChildren", "AnimatedAddition", "a", "b", "_a", "_b", "__makeNative", "platformConfig", "__getValue", "interpolate", "config", "__attach", "__addChild", "__detach", "__removeChild", "__getNativeConfig", "type", "input", "__getNativeTag"]
6
+ }
@@ -1,16 +1,18 @@
1
1
  import normalizeColor from "@tamagui/normalize-css-color";
2
- import NativeAnimatedHelper from "../NativeAnimatedHelper.native.js";
3
- import AnimatedValue from "./AnimatedValue.native.js";
4
- import AnimatedWithChildren from "./AnimatedWithChildren.native.js";
2
+ import NativeAnimatedHelper from "../NativeAnimatedHelper";
3
+ import AnimatedValue from "./AnimatedValue";
4
+ import AnimatedWithChildren from "./AnimatedWithChildren";
5
5
  function _assert_this_initialized(self) {
6
- if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6
+ if (self === void 0)
7
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
7
8
  return self;
8
9
  }
9
10
  function _call_super(_this, derived, args) {
10
11
  return derived = _get_prototype_of(derived), _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
11
12
  }
12
13
  function _class_call_check(instance, Constructor) {
13
- if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
14
+ if (!(instance instanceof Constructor))
15
+ throw new TypeError("Cannot call a class as a function");
14
16
  }
15
17
  function _defineProperties(target, props) {
16
18
  for (var i = 0; i < props.length; i++) {
@@ -22,7 +24,7 @@ function _create_class(Constructor, protoProps, staticProps) {
22
24
  return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
23
25
  }
24
26
  function _get(target, property, receiver) {
25
- return typeof Reflect < "u" && Reflect.get ? _get = Reflect.get : _get = function (target2, property2, receiver2) {
27
+ return typeof Reflect < "u" && Reflect.get ? _get = Reflect.get : _get = function(target2, property2, receiver2) {
26
28
  var base = _super_prop_base(target2, property2);
27
29
  if (base) {
28
30
  var desc = Object.getOwnPropertyDescriptor(base, property2);
@@ -31,12 +33,13 @@ function _get(target, property, receiver) {
31
33
  }, _get(target, property, receiver || target);
32
34
  }
33
35
  function _get_prototype_of(o) {
34
- return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function (o2) {
36
+ return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function(o2) {
35
37
  return o2.__proto__ || Object.getPrototypeOf(o2);
36
38
  }, _get_prototype_of(o);
37
39
  }
38
40
  function _inherits(subClass, superClass) {
39
- if (typeof superClass != "function" && superClass !== null) throw new TypeError("Super expression must either be null or a function");
41
+ if (typeof superClass != "function" && superClass !== null)
42
+ throw new TypeError("Super expression must either be null or a function");
40
43
  subClass.prototype = Object.create(superClass && superClass.prototype, {
41
44
  constructor: {
42
45
  value: subClass,
@@ -49,53 +52,54 @@ function _possible_constructor_return(self, call) {
49
52
  return call && (_type_of(call) === "object" || typeof call == "function") ? call : _assert_this_initialized(self);
50
53
  }
51
54
  function _set_prototype_of(o, p) {
52
- return _set_prototype_of = Object.setPrototypeOf || function (o2, p2) {
55
+ return _set_prototype_of = Object.setPrototypeOf || function(o2, p2) {
53
56
  return o2.__proto__ = p2, o2;
54
57
  }, _set_prototype_of(o, p);
55
58
  }
56
59
  function _super_prop_base(object, property) {
57
- for (; !Object.prototype.hasOwnProperty.call(object, property) && (object = _get_prototype_of(object), object !== null););
60
+ for (; !Object.prototype.hasOwnProperty.call(object, property) && (object = _get_prototype_of(object), object !== null); )
61
+ ;
58
62
  return object;
59
63
  }
60
64
  function _type_of(obj) {
61
65
  "@swc/helpers - typeof";
62
-
63
66
  return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
64
67
  }
65
68
  function _is_native_reflect_construct() {
66
69
  try {
67
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
68
- } catch {}
69
- return (_is_native_reflect_construct = function () {
70
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
71
+ }));
72
+ } catch {
73
+ }
74
+ return (_is_native_reflect_construct = function() {
70
75
  return !!result;
71
76
  })();
72
77
  }
73
- var NativeAnimatedAPI = NativeAnimatedHelper.API,
74
- defaultColor = {
75
- r: 0,
76
- g: 0,
77
- b: 0,
78
- a: 1
79
- },
80
- _uniqueId = 1,
81
- processColorObject = function (color) {
82
- return color;
83
- };
78
+ var NativeAnimatedAPI = NativeAnimatedHelper.API, defaultColor = {
79
+ r: 0,
80
+ g: 0,
81
+ b: 0,
82
+ a: 1
83
+ }, _uniqueId = 1, processColorObject = function(color) {
84
+ return color;
85
+ };
84
86
  function processColor(color) {
85
- if (color == null) return null;
86
- if (isRgbaValue(color)) return color;
87
+ if (color == null)
88
+ return null;
89
+ if (isRgbaValue(color))
90
+ return color;
87
91
  var normalizedColor = normalizeColor(
88
- // $FlowIgnore[incompatible-cast] - Type is verified above
89
- color);
90
- if (normalizedColor == null) return null;
92
+ // $FlowIgnore[incompatible-cast] - Type is verified above
93
+ color
94
+ );
95
+ if (normalizedColor == null)
96
+ return null;
91
97
  if (typeof normalizedColor == "object") {
92
98
  var processedColorObj = processColorObject(normalizedColor);
93
- if (processedColorObj != null) return processedColorObj;
99
+ if (processedColorObj != null)
100
+ return processedColorObj;
94
101
  } else if (typeof normalizedColor == "number") {
95
- var r = (normalizedColor & 4278190080) >>> 24,
96
- g = (normalizedColor & 16711680) >>> 16,
97
- b = (normalizedColor & 65280) >>> 8,
98
- a = (normalizedColor & 255) / 255;
102
+ var r = (normalizedColor & 4278190080) >>> 24, g = (normalizedColor & 16711680) >>> 16, b = (normalizedColor & 65280) >>> 8, a = (normalizedColor & 255) / 255;
99
103
  return {
100
104
  r,
101
105
  g,
@@ -111,7 +115,7 @@ function isRgbaValue(value) {
111
115
  function isRgbaAnimatedValue(value) {
112
116
  return value && value.r instanceof AnimatedValue && value.g instanceof AnimatedValue && value.b instanceof AnimatedValue && value.a instanceof AnimatedValue;
113
117
  }
114
- var AnimatedColor = /* @__PURE__ */function (AnimatedWithChildren2) {
118
+ var AnimatedColor = /* @__PURE__ */ function(AnimatedWithChildren2) {
115
119
  _inherits(AnimatedColor2, AnimatedWithChildren2);
116
120
  function AnimatedColor2(valueIn, config) {
117
121
  _class_call_check(this, AnimatedColor2);
@@ -122,160 +126,173 @@ var AnimatedColor = /* @__PURE__ */function (AnimatedWithChildren2) {
122
126
  var rgbaAnimatedValue = value;
123
127
  _this.r = rgbaAnimatedValue.r, _this.g = rgbaAnimatedValue.g, _this.b = rgbaAnimatedValue.b, _this.a = rgbaAnimatedValue.a;
124
128
  } else {
125
- var _processColor,
126
- processedColor =
129
+ var _processColor, processedColor = (
127
130
  // $FlowIgnore[incompatible-cast] - Type is verified above
128
- (_processColor = processColor(value)) !== null && _processColor !== void 0 ? _processColor : defaultColor,
129
- initColor = defaultColor;
131
+ (_processColor = processColor(value)) !== null && _processColor !== void 0 ? _processColor : defaultColor
132
+ ), initColor = defaultColor;
130
133
  isRgbaValue(processedColor) ? initColor = processedColor : _this.nativeColor = processedColor, _this.r = new AnimatedValue(initColor.r), _this.g = new AnimatedValue(initColor.g), _this.b = new AnimatedValue(initColor.b), _this.a = new AnimatedValue(initColor.a);
131
134
  }
132
135
  return (_this.nativeColor || config && config.useNativeDriver) && _this.__makeNative(), _this;
133
136
  }
134
- return _create_class(AnimatedColor2, [{
135
- /**
136
- * Directly set the value. This will stop any animations running on the value
137
- * and update all the bound properties.
138
- */
139
- key: "setValue",
140
- value: function (value) {
141
- var _processColor2,
142
- shouldUpdateNodeConfig = !1;
143
- if (this.__isNative) {
144
- var nativeTag = this.__getNativeTag();
145
- NativeAnimatedAPI.setWaitingForIdentifier(nativeTag.toString());
137
+ return _create_class(AnimatedColor2, [
138
+ {
139
+ /**
140
+ * Directly set the value. This will stop any animations running on the value
141
+ * and update all the bound properties.
142
+ */
143
+ key: "setValue",
144
+ value: function(value) {
145
+ var _processColor2, shouldUpdateNodeConfig = !1;
146
+ if (this.__isNative) {
147
+ var nativeTag = this.__getNativeTag();
148
+ NativeAnimatedAPI.setWaitingForIdentifier(nativeTag.toString());
149
+ }
150
+ var processedColor = (_processColor2 = processColor(value)) !== null && _processColor2 !== void 0 ? _processColor2 : defaultColor;
151
+ if (isRgbaValue(processedColor)) {
152
+ var rgbaValue = processedColor;
153
+ this.r.setValue(rgbaValue.r), this.g.setValue(rgbaValue.g), this.b.setValue(rgbaValue.b), this.a.setValue(rgbaValue.a), this.nativeColor != null && (this.nativeColor = null, shouldUpdateNodeConfig = !0);
154
+ } else {
155
+ var nativeColor = processedColor;
156
+ this.nativeColor !== nativeColor && (this.nativeColor = nativeColor, shouldUpdateNodeConfig = !0);
157
+ }
158
+ if (this.__isNative) {
159
+ var _nativeTag = this.__getNativeTag();
160
+ shouldUpdateNodeConfig && NativeAnimatedAPI.updateAnimatedNodeConfig(_nativeTag, this.__getNativeConfig()), NativeAnimatedAPI.unsetWaitingForIdentifier(_nativeTag.toString());
161
+ }
146
162
  }
147
- var processedColor = (_processColor2 = processColor(value)) !== null && _processColor2 !== void 0 ? _processColor2 : defaultColor;
148
- if (isRgbaValue(processedColor)) {
149
- var rgbaValue = processedColor;
150
- this.r.setValue(rgbaValue.r), this.g.setValue(rgbaValue.g), this.b.setValue(rgbaValue.b), this.a.setValue(rgbaValue.a), this.nativeColor != null && (this.nativeColor = null, shouldUpdateNodeConfig = !0);
151
- } else {
152
- var nativeColor = processedColor;
153
- this.nativeColor !== nativeColor && (this.nativeColor = nativeColor, shouldUpdateNodeConfig = !0);
163
+ },
164
+ {
165
+ /**
166
+ * Sets an offset that is applied on top of whatever value is set, whether
167
+ * via `setValue`, an animation, or `Animated.event`. Useful for compensating
168
+ * things like the start of a pan gesture.
169
+ */
170
+ key: "setOffset",
171
+ value: function(offset) {
172
+ this.r.setOffset(offset.r), this.g.setOffset(offset.g), this.b.setOffset(offset.b), this.a.setOffset(offset.a);
154
173
  }
155
- if (this.__isNative) {
156
- var _nativeTag = this.__getNativeTag();
157
- shouldUpdateNodeConfig && NativeAnimatedAPI.updateAnimatedNodeConfig(_nativeTag, this.__getNativeConfig()), NativeAnimatedAPI.unsetWaitingForIdentifier(_nativeTag.toString());
174
+ },
175
+ {
176
+ /**
177
+ * Merges the offset value into the base value and resets the offset to zero.
178
+ * The final output of the value is unchanged.
179
+ */
180
+ key: "flattenOffset",
181
+ value: function() {
182
+ this.r.flattenOffset(), this.g.flattenOffset(), this.b.flattenOffset(), this.a.flattenOffset();
158
183
  }
159
- }
160
- }, {
161
- /**
162
- * Sets an offset that is applied on top of whatever value is set, whether
163
- * via `setValue`, an animation, or `Animated.event`. Useful for compensating
164
- * things like the start of a pan gesture.
165
- */
166
- key: "setOffset",
167
- value: function (offset) {
168
- this.r.setOffset(offset.r), this.g.setOffset(offset.g), this.b.setOffset(offset.b), this.a.setOffset(offset.a);
169
- }
170
- }, {
171
- /**
172
- * Merges the offset value into the base value and resets the offset to zero.
173
- * The final output of the value is unchanged.
174
- */
175
- key: "flattenOffset",
176
- value: function () {
177
- this.r.flattenOffset(), this.g.flattenOffset(), this.b.flattenOffset(), this.a.flattenOffset();
178
- }
179
- }, {
180
- /**
181
- * Sets the offset value to the base value, and resets the base value to
182
- * zero. The final output of the value is unchanged.
183
- */
184
- key: "extractOffset",
185
- value: function () {
186
- this.r.extractOffset(), this.g.extractOffset(), this.b.extractOffset(), this.a.extractOffset();
187
- }
188
- }, {
189
- /**
190
- * Adds an asynchronous listener to the value so you can observe updates from
191
- * animations. This is useful because there is no way to synchronously read
192
- * the value because it might be driven natively.
193
- *
194
- * Returns a string that serves as an identifier for the listener.
195
- */
196
- key: "addListener",
197
- value: function (callback) {
198
- var _this = this,
199
- id = String(_uniqueId++),
200
- jointCallback = function (_ref) {
184
+ },
185
+ {
186
+ /**
187
+ * Sets the offset value to the base value, and resets the base value to
188
+ * zero. The final output of the value is unchanged.
189
+ */
190
+ key: "extractOffset",
191
+ value: function() {
192
+ this.r.extractOffset(), this.g.extractOffset(), this.b.extractOffset(), this.a.extractOffset();
193
+ }
194
+ },
195
+ {
196
+ /**
197
+ * Adds an asynchronous listener to the value so you can observe updates from
198
+ * animations. This is useful because there is no way to synchronously read
199
+ * the value because it might be driven natively.
200
+ *
201
+ * Returns a string that serves as an identifier for the listener.
202
+ */
203
+ key: "addListener",
204
+ value: function(callback) {
205
+ var _this = this, id = String(_uniqueId++), jointCallback = function(_ref) {
201
206
  var number = _ref.value;
202
207
  callback(_this.__getValue());
203
208
  };
204
- return this._listeners[id] = {
205
- r: this.r.addListener(jointCallback),
206
- g: this.g.addListener(jointCallback),
207
- b: this.b.addListener(jointCallback),
208
- a: this.a.addListener(jointCallback)
209
- }, id;
210
- }
211
- }, {
212
- /**
213
- * Unregister a listener. The `id` param shall match the identifier
214
- * previously returned by `addListener()`.
215
- */
216
- key: "removeListener",
217
- value: function (id) {
218
- this.r.removeListener(this._listeners[id].r), this.g.removeListener(this._listeners[id].g), this.b.removeListener(this._listeners[id].b), this.a.removeListener(this._listeners[id].a), delete this._listeners[id];
219
- }
220
- }, {
221
- /**
222
- * Remove all registered listeners.
223
- */
224
- key: "removeAllListeners",
225
- value: function () {
226
- this.r.removeAllListeners(), this.g.removeAllListeners(), this.b.removeAllListeners(), this.a.removeAllListeners(), this._listeners = {};
227
- }
228
- }, {
229
- /**
230
- * Stops any running animation or tracking. `callback` is invoked with the
231
- * final value after stopping the animation, which is useful for updating
232
- * state to match the animation position with layout.
233
- */
234
- key: "stopAnimation",
235
- value: function (callback) {
236
- this.r.stopAnimation(), this.g.stopAnimation(), this.b.stopAnimation(), this.a.stopAnimation(), callback && callback(this.__getValue());
237
- }
238
- }, {
239
- /**
240
- * Stops any animation and resets the value to its original.
241
- */
242
- key: "resetAnimation",
243
- value: function (callback) {
244
- this.r.resetAnimation(), this.g.resetAnimation(), this.b.resetAnimation(), this.a.resetAnimation(), callback && callback(this.__getValue());
245
- }
246
- }, {
247
- key: "__getValue",
248
- value: function () {
249
- return this.nativeColor != null ? this.nativeColor : "rgba(" + this.r.__getValue() + ", " + this.g.__getValue() + ", " + this.b.__getValue() + ", " + this.a.__getValue() + ")";
250
- }
251
- }, {
252
- key: "__attach",
253
- value: function () {
254
- this.r.__addChild(this), this.g.__addChild(this), this.b.__addChild(this), this.a.__addChild(this), _get(_get_prototype_of(AnimatedColor2.prototype), "__attach", this).call(this);
255
- }
256
- }, {
257
- key: "__detach",
258
- value: function () {
259
- this.r.__removeChild(this), this.g.__removeChild(this), this.b.__removeChild(this), this.a.__removeChild(this), _get(_get_prototype_of(AnimatedColor2.prototype), "__detach", this).call(this);
260
- }
261
- }, {
262
- key: "__makeNative",
263
- value: function (platformConfig) {
264
- this.r.__makeNative(platformConfig), this.g.__makeNative(platformConfig), this.b.__makeNative(platformConfig), this.a.__makeNative(platformConfig), _get(_get_prototype_of(AnimatedColor2.prototype), "__makeNative", this).call(this, platformConfig);
265
- }
266
- }, {
267
- key: "__getNativeConfig",
268
- value: function () {
269
- return {
270
- type: "color",
271
- r: this.r.__getNativeTag(),
272
- g: this.g.__getNativeTag(),
273
- b: this.b.__getNativeTag(),
274
- a: this.a.__getNativeTag(),
275
- nativeColor: this.nativeColor
276
- };
209
+ return this._listeners[id] = {
210
+ r: this.r.addListener(jointCallback),
211
+ g: this.g.addListener(jointCallback),
212
+ b: this.b.addListener(jointCallback),
213
+ a: this.a.addListener(jointCallback)
214
+ }, id;
215
+ }
216
+ },
217
+ {
218
+ /**
219
+ * Unregister a listener. The `id` param shall match the identifier
220
+ * previously returned by `addListener()`.
221
+ */
222
+ key: "removeListener",
223
+ value: function(id) {
224
+ this.r.removeListener(this._listeners[id].r), this.g.removeListener(this._listeners[id].g), this.b.removeListener(this._listeners[id].b), this.a.removeListener(this._listeners[id].a), delete this._listeners[id];
225
+ }
226
+ },
227
+ {
228
+ /**
229
+ * Remove all registered listeners.
230
+ */
231
+ key: "removeAllListeners",
232
+ value: function() {
233
+ this.r.removeAllListeners(), this.g.removeAllListeners(), this.b.removeAllListeners(), this.a.removeAllListeners(), this._listeners = {};
234
+ }
235
+ },
236
+ {
237
+ /**
238
+ * Stops any running animation or tracking. `callback` is invoked with the
239
+ * final value after stopping the animation, which is useful for updating
240
+ * state to match the animation position with layout.
241
+ */
242
+ key: "stopAnimation",
243
+ value: function(callback) {
244
+ this.r.stopAnimation(), this.g.stopAnimation(), this.b.stopAnimation(), this.a.stopAnimation(), callback && callback(this.__getValue());
245
+ }
246
+ },
247
+ {
248
+ /**
249
+ * Stops any animation and resets the value to its original.
250
+ */
251
+ key: "resetAnimation",
252
+ value: function(callback) {
253
+ this.r.resetAnimation(), this.g.resetAnimation(), this.b.resetAnimation(), this.a.resetAnimation(), callback && callback(this.__getValue());
254
+ }
255
+ },
256
+ {
257
+ key: "__getValue",
258
+ value: function() {
259
+ return this.nativeColor != null ? this.nativeColor : "rgba(" + this.r.__getValue() + ", " + this.g.__getValue() + ", " + this.b.__getValue() + ", " + this.a.__getValue() + ")";
260
+ }
261
+ },
262
+ {
263
+ key: "__attach",
264
+ value: function() {
265
+ this.r.__addChild(this), this.g.__addChild(this), this.b.__addChild(this), this.a.__addChild(this), _get(_get_prototype_of(AnimatedColor2.prototype), "__attach", this).call(this);
266
+ }
267
+ },
268
+ {
269
+ key: "__detach",
270
+ value: function() {
271
+ this.r.__removeChild(this), this.g.__removeChild(this), this.b.__removeChild(this), this.a.__removeChild(this), _get(_get_prototype_of(AnimatedColor2.prototype), "__detach", this).call(this);
272
+ }
273
+ },
274
+ {
275
+ key: "__makeNative",
276
+ value: function(platformConfig) {
277
+ this.r.__makeNative(platformConfig), this.g.__makeNative(platformConfig), this.b.__makeNative(platformConfig), this.a.__makeNative(platformConfig), _get(_get_prototype_of(AnimatedColor2.prototype), "__makeNative", this).call(this, platformConfig);
278
+ }
279
+ },
280
+ {
281
+ key: "__getNativeConfig",
282
+ value: function() {
283
+ return {
284
+ type: "color",
285
+ r: this.r.__getNativeTag(),
286
+ g: this.g.__getNativeTag(),
287
+ b: this.b.__getNativeTag(),
288
+ a: this.a.__getNativeTag(),
289
+ nativeColor: this.nativeColor
290
+ };
291
+ }
277
292
  }
278
- }]), AnimatedColor2;
293
+ ]), AnimatedColor2;
279
294
  }(AnimatedWithChildren);
280
- export { AnimatedColor as default };
281
- //# sourceMappingURL=AnimatedColor.native.js.map
295
+ export {
296
+ AnimatedColor as default
297
+ };
298
+ //# sourceMappingURL=AnimatedColor.js.map