@tamagui/react-native-web-lite 1.116.0 → 1.116.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/cjs/AccessibilityInfo/index.js +96 -0
  2. package/dist/cjs/ActivityIndicator/__tests__/index-test.js +116 -0
  3. package/dist/cjs/ActivityIndicator/index.js +108 -0
  4. package/dist/cjs/Alert/index.js +25 -0
  5. package/dist/cjs/AppRegistry/AppContainer.js +41 -0
  6. package/dist/cjs/AppRegistry/__tests__/index-test.js +77 -0
  7. package/dist/cjs/AppRegistry/__tests__/index-test.node.js +131 -0
  8. package/dist/cjs/AppRegistry/index.js +98 -0
  9. package/dist/cjs/AppRegistry/renderApplication.js +51 -0
  10. package/dist/cjs/AppState/__tests__/index-test.js +33 -0
  11. package/dist/cjs/AppState/index.js +71 -0
  12. package/dist/cjs/Appearance/index.js +41 -0
  13. package/dist/cjs/BackHandler/index.js +32 -0
  14. package/dist/cjs/Clipboard/index.js +47 -0
  15. package/dist/cjs/DeviceEmitter.js +29 -0
  16. package/dist/cjs/DeviceInfo/index.js +62 -0
  17. package/dist/cjs/Dimensions/__tests__/index-test.js +51 -0
  18. package/dist/cjs/Dimensions/index.js +74 -0
  19. package/dist/cjs/I18nManager/index.js +30 -0
  20. package/dist/cjs/Image/index.js +253 -0
  21. package/dist/cjs/Image/types.js +14 -0
  22. package/dist/cjs/ImageBackground/__tests__/index-test.js +48 -0
  23. package/dist/cjs/ImageBackground/index.js +62 -0
  24. package/dist/cjs/Keyboard/index.js +35 -0
  25. package/dist/cjs/KeyboardAvoidingView/index.js +56 -0
  26. package/dist/cjs/Linking/__tests__/index-test.js +38 -0
  27. package/dist/cjs/Linking/index.js +86 -0
  28. package/dist/cjs/LogBox/index.js +31 -0
  29. package/dist/cjs/Modal/ModalAnimation.js +137 -0
  30. package/dist/cjs/Modal/ModalContent.js +75 -0
  31. package/dist/cjs/Modal/ModalFocusTrap.js +105 -0
  32. package/dist/cjs/Modal/ModalPortal.js +43 -0
  33. package/dist/cjs/Modal/index.js +92 -0
  34. package/dist/cjs/NativeModules/index.js +25 -0
  35. package/dist/cjs/PanResponder/index.js +29 -0
  36. package/dist/cjs/PixelRatio/index.js +60 -0
  37. package/dist/cjs/Pressable/index.js +140 -0
  38. package/dist/cjs/RefreshControl/index.js +48 -0
  39. package/dist/cjs/SafeAreaView/index.js +43 -0
  40. package/dist/cjs/ScrollView/ScrollViewBase.js +124 -0
  41. package/dist/cjs/ScrollView/index.js +374 -0
  42. package/dist/cjs/Share/index.js +56 -0
  43. package/dist/cjs/StatusBar/index.js +31 -0
  44. package/dist/cjs/Text/index.js +152 -0
  45. package/dist/cjs/Text/types.js +14 -0
  46. package/dist/cjs/TextInput/__tests__/index-test.js +422 -0
  47. package/dist/cjs/TextInput/index.js +260 -0
  48. package/dist/cjs/TextInput/types.js +14 -0
  49. package/dist/cjs/TouchableOpacity.js +123 -0
  50. package/dist/cjs/TouchableWithoutFeedback.js +90 -0
  51. package/dist/cjs/UnimplementedView.js +36 -0
  52. package/dist/cjs/Vibration/index.js +31 -0
  53. package/dist/cjs/View/index.js +101 -0
  54. package/dist/cjs/View/types.js +14 -0
  55. package/dist/cjs/createElement/__tests__/index-test.js +536 -0
  56. package/dist/cjs/createElement/index.js +37 -0
  57. package/dist/cjs/createReactDOMStyle.js +21 -0
  58. package/dist/cjs/findNodeHandle.js +29 -0
  59. package/dist/cjs/index.js +110 -0
  60. package/dist/cjs/render/index.js +45 -0
  61. package/dist/cjs/styleTypes.js +14 -0
  62. package/dist/cjs/types.js +14 -0
  63. package/dist/cjs/useColorScheme/index.js +39 -0
  64. package/dist/cjs/useLocaleContext/index.js +21 -0
  65. package/dist/cjs/useWindowDimensions/index.js +41 -0
  66. package/dist/cjs/vendor/react-native/Animated/Animated.js +35 -0
  67. package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.js +143 -0
  68. package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.js +458 -0
  69. package/dist/cjs/vendor/react-native/Animated/AnimatedMock.js +126 -0
  70. package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.js +2 -0
  71. package/dist/cjs/vendor/react-native/Animated/Easing.js +189 -0
  72. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.js +335 -0
  73. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.js +29 -0
  74. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.js +29 -0
  75. package/dist/cjs/vendor/react-native/Animated/SpringConfig.js +70 -0
  76. package/dist/cjs/vendor/react-native/Animated/animations/Animation.js +64 -0
  77. package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.js +63 -0
  78. package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.js +146 -0
  79. package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.js +82 -0
  80. package/dist/cjs/vendor/react-native/Animated/bezier.js +72 -0
  81. package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.js +29 -0
  82. package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.js +38 -0
  83. package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.js +29 -0
  84. package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.js +29 -0
  85. package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.js +42 -0
  86. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.js +57 -0
  87. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.js +197 -0
  88. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.js +60 -0
  89. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.js +58 -0
  90. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.js +175 -0
  91. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.js +58 -0
  92. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.js +57 -0
  93. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.js +136 -0
  94. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.js +112 -0
  95. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.js +100 -0
  96. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.js +57 -0
  97. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.js +76 -0
  98. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.js +100 -0
  99. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.js +182 -0
  100. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.js +167 -0
  101. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.js +67 -0
  102. package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.js +89 -0
  103. package/dist/cjs/vendor/react-native/FeatureFlags.js +28 -0
  104. package/dist/cjs/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.js +29 -0
  105. package/dist/cjs/vendor/react-native/NativeEventEmitter/index.js +73 -0
  106. package/dist/cjs/vendor/react-native/PanResponder/index.js +272 -0
  107. package/dist/cjs/vendor/react-native/TouchHistoryMath/index.js +118 -0
  108. package/dist/cjs/vendor/react-native/TurboModule/RCTExport.js +2 -0
  109. package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.js +28 -0
  110. package/dist/cjs/vendor/react-native/Types/CoreEventTypes.js +15 -0
  111. package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.js +29 -0
  112. package/dist/cjs/vendor/react-native/emitter/EventEmitter.js +30 -0
  113. package/dist/cjs/vendor/react-native/emitter/EventSubscription.js +2 -0
  114. package/dist/cjs/vendor/react-native/emitter/_EmitterSubscription.js +55 -0
  115. package/dist/cjs/vendor/react-native/emitter/_EventEmitter.js +135 -0
  116. package/dist/cjs/vendor/react-native/emitter/_EventSubscription.js +37 -0
  117. package/dist/cjs/vendor/react-native/emitter/_EventSubscriptionVendor.js +76 -0
  118. package/dist/cjs/vendor/react-native/infoLog/index.js +25 -0
  119. package/dist/cjs/vendor/react-native/useRefEffect.js +30 -0
  120. package/dist/cjs/without-animated.js +95 -0
  121. package/package.json +6 -6
  122. package/dist/cjs/PanResponder/Alternative.cjs +0 -198
  123. package/dist/cjs/PanResponder/Alternative.cjs.map +0 -6
  124. /package/dist/cjs/AccessibilityInfo/{index.cjs.map → index.js.map} +0 -0
  125. /package/dist/cjs/ActivityIndicator/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  126. /package/dist/cjs/ActivityIndicator/{index.cjs.map → index.js.map} +0 -0
  127. /package/dist/cjs/Alert/{index.cjs.map → index.js.map} +0 -0
  128. /package/dist/cjs/AppRegistry/{AppContainer.cjs.map → AppContainer.js.map} +0 -0
  129. /package/dist/cjs/AppRegistry/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  130. /package/dist/cjs/AppRegistry/__tests__/{index-test.node.cjs.map → index-test.node.js.map} +0 -0
  131. /package/dist/cjs/AppRegistry/{index.cjs.map → index.js.map} +0 -0
  132. /package/dist/cjs/AppRegistry/{renderApplication.cjs.map → renderApplication.js.map} +0 -0
  133. /package/dist/cjs/AppState/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  134. /package/dist/cjs/AppState/{index.cjs.map → index.js.map} +0 -0
  135. /package/dist/cjs/Appearance/{index.cjs.map → index.js.map} +0 -0
  136. /package/dist/cjs/BackHandler/{index.cjs.map → index.js.map} +0 -0
  137. /package/dist/cjs/Clipboard/{index.cjs.map → index.js.map} +0 -0
  138. /package/dist/cjs/{DeviceEmitter.cjs.map → DeviceEmitter.js.map} +0 -0
  139. /package/dist/cjs/DeviceInfo/{index.cjs.map → index.js.map} +0 -0
  140. /package/dist/cjs/Dimensions/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  141. /package/dist/cjs/Dimensions/{index.cjs.map → index.js.map} +0 -0
  142. /package/dist/cjs/I18nManager/{index.cjs.map → index.js.map} +0 -0
  143. /package/dist/cjs/Image/{index.cjs.map → index.js.map} +0 -0
  144. /package/dist/cjs/Image/{types.cjs.map → types.js.map} +0 -0
  145. /package/dist/cjs/ImageBackground/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  146. /package/dist/cjs/ImageBackground/{index.cjs.map → index.js.map} +0 -0
  147. /package/dist/cjs/Keyboard/{index.cjs.map → index.js.map} +0 -0
  148. /package/dist/cjs/KeyboardAvoidingView/{index.cjs.map → index.js.map} +0 -0
  149. /package/dist/cjs/Linking/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  150. /package/dist/cjs/Linking/{index.cjs.map → index.js.map} +0 -0
  151. /package/dist/cjs/LogBox/{index.cjs.map → index.js.map} +0 -0
  152. /package/dist/cjs/Modal/{ModalAnimation.cjs.map → ModalAnimation.js.map} +0 -0
  153. /package/dist/cjs/Modal/{ModalContent.cjs.map → ModalContent.js.map} +0 -0
  154. /package/dist/cjs/Modal/{ModalFocusTrap.cjs.map → ModalFocusTrap.js.map} +0 -0
  155. /package/dist/cjs/Modal/{ModalPortal.cjs.map → ModalPortal.js.map} +0 -0
  156. /package/dist/cjs/Modal/{index.cjs.map → index.js.map} +0 -0
  157. /package/dist/cjs/NativeModules/{index.cjs.map → index.js.map} +0 -0
  158. /package/dist/cjs/PanResponder/{index.cjs.map → index.js.map} +0 -0
  159. /package/dist/cjs/PixelRatio/{index.cjs.map → index.js.map} +0 -0
  160. /package/dist/cjs/Pressable/{index.cjs.map → index.js.map} +0 -0
  161. /package/dist/cjs/RefreshControl/{index.cjs.map → index.js.map} +0 -0
  162. /package/dist/cjs/SafeAreaView/{index.cjs.map → index.js.map} +0 -0
  163. /package/dist/cjs/ScrollView/{ScrollViewBase.cjs.map → ScrollViewBase.js.map} +0 -0
  164. /package/dist/cjs/ScrollView/{index.cjs.map → index.js.map} +0 -0
  165. /package/dist/cjs/Share/{index.cjs.map → index.js.map} +0 -0
  166. /package/dist/cjs/StatusBar/{index.cjs.map → index.js.map} +0 -0
  167. /package/dist/cjs/Text/{index.cjs.map → index.js.map} +0 -0
  168. /package/dist/cjs/Text/{types.cjs.map → types.js.map} +0 -0
  169. /package/dist/cjs/TextInput/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  170. /package/dist/cjs/TextInput/{index.cjs.map → index.js.map} +0 -0
  171. /package/dist/cjs/TextInput/{types.cjs.map → types.js.map} +0 -0
  172. /package/dist/cjs/{TouchableOpacity.cjs.map → TouchableOpacity.js.map} +0 -0
  173. /package/dist/cjs/{TouchableWithoutFeedback.cjs.map → TouchableWithoutFeedback.js.map} +0 -0
  174. /package/dist/cjs/{UnimplementedView.cjs.map → UnimplementedView.js.map} +0 -0
  175. /package/dist/cjs/Vibration/{index.cjs.map → index.js.map} +0 -0
  176. /package/dist/cjs/View/{index.cjs.map → index.js.map} +0 -0
  177. /package/dist/cjs/View/{types.cjs.map → types.js.map} +0 -0
  178. /package/dist/cjs/createElement/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  179. /package/dist/cjs/createElement/{index.cjs.map → index.js.map} +0 -0
  180. /package/dist/cjs/{createReactDOMStyle.cjs.map → createReactDOMStyle.js.map} +0 -0
  181. /package/dist/cjs/{findNodeHandle.cjs.map → findNodeHandle.js.map} +0 -0
  182. /package/dist/cjs/{index.cjs.map → index.js.map} +0 -0
  183. /package/dist/cjs/render/{index.cjs.map → index.js.map} +0 -0
  184. /package/dist/cjs/{styleTypes.cjs.map → styleTypes.js.map} +0 -0
  185. /package/dist/cjs/{types.cjs.map → types.js.map} +0 -0
  186. /package/dist/cjs/useColorScheme/{index.cjs.map → index.js.map} +0 -0
  187. /package/dist/cjs/useLocaleContext/{index.cjs.map → index.js.map} +0 -0
  188. /package/dist/cjs/useWindowDimensions/{index.cjs.map → index.js.map} +0 -0
  189. /package/dist/cjs/vendor/react-native/Animated/{Animated.cjs.map → Animated.js.map} +0 -0
  190. /package/dist/cjs/vendor/react-native/Animated/{AnimatedEvent.cjs.map → AnimatedEvent.js.map} +0 -0
  191. /package/dist/cjs/vendor/react-native/Animated/{AnimatedImplementation.cjs.map → AnimatedImplementation.js.map} +0 -0
  192. /package/dist/cjs/vendor/react-native/Animated/{AnimatedMock.cjs.map → AnimatedMock.js.map} +0 -0
  193. /package/dist/cjs/vendor/react-native/Animated/{AnimatedPlatformConfig.cjs.map → AnimatedPlatformConfig.js.map} +0 -0
  194. /package/dist/cjs/vendor/react-native/Animated/{Easing.cjs.map → Easing.js.map} +0 -0
  195. /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedHelper.cjs.map → NativeAnimatedHelper.js.map} +0 -0
  196. /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedModule.cjs.map → NativeAnimatedModule.js.map} +0 -0
  197. /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedTurboModule.cjs.map → NativeAnimatedTurboModule.js.map} +0 -0
  198. /package/dist/cjs/vendor/react-native/Animated/{SpringConfig.cjs.map → SpringConfig.js.map} +0 -0
  199. /package/dist/cjs/vendor/react-native/Animated/animations/{Animation.cjs.map → Animation.js.map} +0 -0
  200. /package/dist/cjs/vendor/react-native/Animated/animations/{DecayAnimation.cjs.map → DecayAnimation.js.map} +0 -0
  201. /package/dist/cjs/vendor/react-native/Animated/animations/{SpringAnimation.cjs.map → SpringAnimation.js.map} +0 -0
  202. /package/dist/cjs/vendor/react-native/Animated/animations/{TimingAnimation.cjs.map → TimingAnimation.js.map} +0 -0
  203. /package/dist/cjs/vendor/react-native/Animated/{bezier.cjs.map → bezier.js.map} +0 -0
  204. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedImage.cjs.map → AnimatedImage.js.map} +0 -0
  205. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedScrollView.cjs.map → AnimatedScrollView.js.map} +0 -0
  206. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedText.cjs.map → AnimatedText.js.map} +0 -0
  207. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedView.cjs.map → AnimatedView.js.map} +0 -0
  208. /package/dist/cjs/vendor/react-native/Animated/{createAnimatedComponent.cjs.map → createAnimatedComponent.js.map} +0 -0
  209. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedAddition.cjs.map → AnimatedAddition.js.map} +0 -0
  210. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedColor.cjs.map → AnimatedColor.js.map} +0 -0
  211. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDiffClamp.cjs.map → AnimatedDiffClamp.js.map} +0 -0
  212. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDivision.cjs.map → AnimatedDivision.js.map} +0 -0
  213. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedInterpolation.cjs.map → AnimatedInterpolation.js.map} +0 -0
  214. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedModulo.cjs.map → AnimatedModulo.js.map} +0 -0
  215. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedMultiplication.cjs.map → AnimatedMultiplication.js.map} +0 -0
  216. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedNode.cjs.map → AnimatedNode.js.map} +0 -0
  217. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedProps.cjs.map → AnimatedProps.js.map} +0 -0
  218. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedStyle.cjs.map → AnimatedStyle.js.map} +0 -0
  219. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedSubtraction.cjs.map → AnimatedSubtraction.js.map} +0 -0
  220. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTracking.cjs.map → AnimatedTracking.js.map} +0 -0
  221. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTransform.cjs.map → AnimatedTransform.js.map} +0 -0
  222. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValue.cjs.map → AnimatedValue.js.map} +0 -0
  223. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValueXY.cjs.map → AnimatedValueXY.js.map} +0 -0
  224. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedWithChildren.cjs.map → AnimatedWithChildren.js.map} +0 -0
  225. /package/dist/cjs/vendor/react-native/Animated/{useAnimatedProps.cjs.map → useAnimatedProps.js.map} +0 -0
  226. /package/dist/cjs/vendor/react-native/{FeatureFlags.cjs.map → FeatureFlags.js.map} +0 -0
  227. /package/dist/cjs/vendor/react-native/NativeEventEmitter/{RCTDeviceEventEmitter.cjs.map → RCTDeviceEventEmitter.js.map} +0 -0
  228. /package/dist/cjs/vendor/react-native/NativeEventEmitter/{index.cjs.map → index.js.map} +0 -0
  229. /package/dist/cjs/vendor/react-native/PanResponder/{index.cjs.map → index.js.map} +0 -0
  230. /package/dist/cjs/vendor/react-native/TouchHistoryMath/{index.cjs.map → index.js.map} +0 -0
  231. /package/dist/cjs/vendor/react-native/TurboModule/{RCTExport.cjs.map → RCTExport.js.map} +0 -0
  232. /package/dist/cjs/vendor/react-native/TurboModule/{TurboModuleRegistry.cjs.map → TurboModuleRegistry.js.map} +0 -0
  233. /package/dist/cjs/vendor/react-native/Types/{CoreEventTypes.cjs.map → CoreEventTypes.js.map} +0 -0
  234. /package/dist/cjs/vendor/react-native/Utilities/{setAndForwardRef.cjs.map → setAndForwardRef.js.map} +0 -0
  235. /package/dist/cjs/vendor/react-native/emitter/{EventEmitter.cjs.map → EventEmitter.js.map} +0 -0
  236. /package/dist/cjs/vendor/react-native/emitter/{EventSubscription.cjs.map → EventSubscription.js.map} +0 -0
  237. /package/dist/cjs/vendor/react-native/emitter/{_EmitterSubscription.cjs.map → _EmitterSubscription.js.map} +0 -0
  238. /package/dist/cjs/vendor/react-native/emitter/{_EventEmitter.cjs.map → _EventEmitter.js.map} +0 -0
  239. /package/dist/cjs/vendor/react-native/emitter/{_EventSubscription.cjs.map → _EventSubscription.js.map} +0 -0
  240. /package/dist/cjs/vendor/react-native/emitter/{_EventSubscriptionVendor.cjs.map → _EventSubscriptionVendor.js.map} +0 -0
  241. /package/dist/cjs/vendor/react-native/infoLog/{index.cjs.map → index.js.map} +0 -0
  242. /package/dist/cjs/vendor/react-native/{useRefEffect.cjs.map → useRefEffect.js.map} +0 -0
  243. /package/dist/cjs/{without-animated.cjs.map → without-animated.js.map} +0 -0
@@ -0,0 +1,96 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
10
+ for (let key of __getOwnPropNames(from))
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var AccessibilityInfo_exports = {};
16
+ __export(AccessibilityInfo_exports, {
17
+ default: () => AccessibilityInfo_default
18
+ });
19
+ module.exports = __toCommonJS(AccessibilityInfo_exports);
20
+ var import_react_native_web_internals = require("@tamagui/react-native-web-internals");
21
+ function isScreenReaderEnabled() {
22
+ return new Promise((resolve, reject) => {
23
+ resolve(!0);
24
+ });
25
+ }
26
+ const prefersReducedMotionMedia = import_react_native_web_internals.canUseDOM && typeof window.matchMedia == "function" ? window.matchMedia("(prefers-reduced-motion: reduce)") : null;
27
+ function isReduceMotionEnabled() {
28
+ return new Promise((resolve, reject) => {
29
+ resolve(prefersReducedMotionMedia ? prefersReducedMotionMedia.matches : !0);
30
+ });
31
+ }
32
+ function addChangeListener(fn) {
33
+ prefersReducedMotionMedia != null && (prefersReducedMotionMedia.addEventListener != null ? prefersReducedMotionMedia.addEventListener("change", fn) : prefersReducedMotionMedia.addListener(fn));
34
+ }
35
+ function removeChangeListener(fn) {
36
+ prefersReducedMotionMedia != null && (prefersReducedMotionMedia.removeEventListener != null ? prefersReducedMotionMedia.removeEventListener("change", fn) : prefersReducedMotionMedia.removeListener(fn));
37
+ }
38
+ const handlers = {}, AccessibilityInfo = {
39
+ /**
40
+ * Query whether a screen reader is currently enabled.
41
+ *
42
+ * Returns a promise which resolves to a boolean.
43
+ * The result is `true` when a screen reader is enabled and `false` otherwise.
44
+ */
45
+ isScreenReaderEnabled,
46
+ /**
47
+ * Query whether the user prefers reduced motion.
48
+ *
49
+ * Returns a promise which resolves to a boolean.
50
+ * The result is `true` when a screen reader is enabled and `false` otherwise.
51
+ */
52
+ isReduceMotionEnabled,
53
+ /**
54
+ * Deprecated
55
+ */
56
+ fetch: isScreenReaderEnabled,
57
+ /**
58
+ * Add an event handler. Supported events: reduceMotionChanged
59
+ */
60
+ addEventListener: function(eventName, handler) {
61
+ if (eventName === "reduceMotionChanged") {
62
+ if (!prefersReducedMotionMedia)
63
+ return;
64
+ const listener = (event) => {
65
+ handler(event.matches);
66
+ };
67
+ addChangeListener(listener), handlers[handler] = listener;
68
+ }
69
+ return {
70
+ remove: () => AccessibilityInfo.removeEventListener(eventName, handler)
71
+ };
72
+ },
73
+ /**
74
+ * Set accessibility focus to a react component.
75
+ */
76
+ setAccessibilityFocus: function(reactTag) {
77
+ },
78
+ /**
79
+ * Post a string to be announced by the screen reader.
80
+ */
81
+ announceForAccessibility: function(announcement) {
82
+ },
83
+ /**
84
+ * Remove an event handler.
85
+ */
86
+ removeEventListener: function(eventName, handler) {
87
+ if (eventName === "reduceMotionChanged") {
88
+ const listener = handlers[handler];
89
+ if (!listener || !prefersReducedMotionMedia)
90
+ return;
91
+ removeChangeListener(listener);
92
+ }
93
+ }
94
+ };
95
+ var AccessibilityInfo_default = AccessibilityInfo;
96
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,116 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from == "object" || typeof from == "function")
8
+ for (let key of __getOwnPropNames(from))
9
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ return to;
11
+ };
12
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
13
+ // If the importer is in node compatibility mode or this is not an ESM
14
+ // file that has been converted to a CommonJS file using a Babel-
15
+ // compatible transform (i.e. "__esModule" has not been set), then set
16
+ // "default" to the CommonJS "module.exports" for node compatibility.
17
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
18
+ mod
19
+ ));
20
+ var import_react = require("@testing-library/react"), import_dom_event_testing_library = require("dom-event-testing-library"), import_react2 = __toESM(require("react")), import_test_utils = require("react-dom/test-utils"), import__ = __toESM(require("..")), import_jsx_runtime = require("react/jsx-runtime");
21
+ describe("components/ActivityIndicator", () => {
22
+ describe('prop "accessibilityLabel"', () => {
23
+ test("value is set", () => {
24
+ const { container } = (0, import_react.render)(
25
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { accessibilityLabel: "accessibility label" })
26
+ );
27
+ expect(container.firstChild).toMatchSnapshot();
28
+ });
29
+ }), describe('prop "accessibilityLiveRegion"', () => {
30
+ test("value is set", () => {
31
+ const { container } = (0, import_react.render)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { accessibilityLiveRegion: "polite" }));
32
+ expect(container.firstChild).toMatchSnapshot();
33
+ });
34
+ }), describe('prop "animating"', () => {
35
+ test('is "true"', () => {
36
+ const { container } = (0, import_react.render)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { animating: !0 }));
37
+ expect(container.firstChild).toMatchSnapshot();
38
+ }), test('is "false"', () => {
39
+ const { container } = (0, import_react.render)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { animating: !1 }));
40
+ expect(container.firstChild).toMatchSnapshot();
41
+ });
42
+ }), test('prop "color"', () => {
43
+ const { container } = (0, import_react.render)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { color: "red" })), svg = container.firstChild.querySelector("svg");
44
+ expect(svg).toMatchSnapshot();
45
+ }), describe('prop "dataSet"', () => {
46
+ test("value is set", () => {
47
+ const { container } = (0, import_react.render)(
48
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { dataSet: { one: "one", two: "two" } })
49
+ );
50
+ expect(container.firstChild).toMatchSnapshot();
51
+ });
52
+ }), describe('prop "hidesWhenStopped"', () => {
53
+ test('is "true"', () => {
54
+ const { container } = (0, import_react.render)(
55
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { animating: !1, hidesWhenStopped: !0 })
56
+ );
57
+ expect(container.firstChild).toMatchSnapshot();
58
+ }), test('is "false"', () => {
59
+ const { container } = (0, import_react.render)(
60
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { animating: !1, hidesWhenStopped: !1 })
61
+ );
62
+ expect(container.firstChild).toMatchSnapshot();
63
+ });
64
+ }), describe('prop "nativeID"', () => {
65
+ test("value is set", () => {
66
+ const { container } = (0, import_react.render)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { nativeID: "123" }));
67
+ expect(container.firstChild).toMatchSnapshot();
68
+ });
69
+ }), describe('prop "onBlur"', () => {
70
+ test("is called", () => {
71
+ const onBlur = jest.fn(), ref = import_react2.default.createRef();
72
+ (0, import_test_utils.act)(() => {
73
+ (0, import_react.render)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { onBlur, ref }));
74
+ });
75
+ const target = (0, import_dom_event_testing_library.createEventTarget)(ref.current), body = (0, import_dom_event_testing_library.createEventTarget)(document.body);
76
+ (0, import_test_utils.act)(() => {
77
+ target.focus(), body.focus({ relatedTarget: target.node });
78
+ }), expect(onBlur).toBeCalled();
79
+ });
80
+ }), describe('prop "onFocus"', () => {
81
+ test("is called", () => {
82
+ const onFocus = jest.fn(), ref = import_react2.default.createRef();
83
+ (0, import_test_utils.act)(() => {
84
+ (0, import_react.render)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { onFocus, ref }));
85
+ });
86
+ const target = (0, import_dom_event_testing_library.createEventTarget)(ref.current);
87
+ (0, import_test_utils.act)(() => {
88
+ target.focus();
89
+ }), expect(onFocus).toBeCalled();
90
+ });
91
+ }), describe('prop "ref"', () => {
92
+ test("value is set", () => {
93
+ const ref = jest.fn();
94
+ (0, import_react.render)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { ref })), expect(ref).toBeCalled();
95
+ });
96
+ }), describe('prop "size"', () => {
97
+ test('is "large"', () => {
98
+ const { container } = (0, import_react.render)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { size: "large" }));
99
+ expect(container.firstChild).toMatchSnapshot();
100
+ }), test("is a number", () => {
101
+ const { container } = (0, import_react.render)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { size: 30 }));
102
+ expect(container.firstChild).toMatchSnapshot();
103
+ });
104
+ }), describe('prop "style"', () => {
105
+ test("value is set", () => {
106
+ const { container } = (0, import_react.render)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { style: { borderWidth: 5 } }));
107
+ expect(container.firstChild).toMatchSnapshot();
108
+ });
109
+ }), describe('prop "testID"', () => {
110
+ test("value is set", () => {
111
+ const { container } = (0, import_react.render)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { testID: "123" }));
112
+ expect(container.firstChild).toMatchSnapshot();
113
+ });
114
+ });
115
+ });
116
+ //# sourceMappingURL=index-test.js.map
@@ -0,0 +1,108 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
+ // If the importer is in node compatibility mode or this is not an ESM
17
+ // file that has been converted to a CommonJS file using a Babel-
18
+ // compatible transform (i.e. "__esModule" has not been set), then set
19
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
21
+ mod
22
+ )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
23
+ var ActivityIndicator_exports = {};
24
+ __export(ActivityIndicator_exports, {
25
+ default: () => ActivityIndicator_default
26
+ });
27
+ module.exports = __toCommonJS(ActivityIndicator_exports);
28
+ var React = __toESM(require("react")), import_react_native_web_internals = require("@tamagui/react-native-web-internals"), import_View = __toESM(require("../View/index")), import_jsx_runtime = require("react/jsx-runtime");
29
+ const createSvgCircle = (style) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "16", cy: "16", fill: "none", r: "14", strokeWidth: "4", style }), ActivityIndicator = React.forwardRef(
30
+ (props, forwardedRef) => {
31
+ const {
32
+ animating = !0,
33
+ color = "#1976D2",
34
+ hidesWhenStopped = !0,
35
+ size = "small",
36
+ style,
37
+ ...other
38
+ } = props, svg = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { height: "100%", viewBox: "0 0 32 32", width: "100%", children: [
39
+ createSvgCircle({
40
+ stroke: color,
41
+ opacity: 0.2
42
+ }),
43
+ createSvgCircle({
44
+ stroke: color,
45
+ strokeDasharray: 80,
46
+ strokeDashoffset: 60
47
+ })
48
+ ] });
49
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
50
+ import_View.default,
51
+ {
52
+ ...other,
53
+ accessibilityRole: "progressbar",
54
+ accessibilityValueMax: 1,
55
+ accessibilityValueMin: 0,
56
+ ref: forwardedRef,
57
+ style: [styles.container, style],
58
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
59
+ import_View.default,
60
+ {
61
+ children: svg,
62
+ style: [
63
+ typeof size == "number" ? { height: size, width: size } : indicatorSizes[size],
64
+ styles.animation,
65
+ !animating && styles.animationPause,
66
+ !animating && hidesWhenStopped && styles.hidesWhenStopped
67
+ ]
68
+ }
69
+ )
70
+ }
71
+ );
72
+ }
73
+ );
74
+ ActivityIndicator.displayName = "ActivityIndicator";
75
+ const styles = import_react_native_web_internals.StyleSheet.create({
76
+ container: {
77
+ alignItems: "center",
78
+ justifyContent: "center"
79
+ },
80
+ hidesWhenStopped: {
81
+ visibility: "hidden"
82
+ },
83
+ animation: {
84
+ animationDuration: "0.75s",
85
+ animationKeyframes: [
86
+ {
87
+ "0%": { transform: [{ rotate: "0deg" }] },
88
+ "100%": { transform: [{ rotate: "360deg" }] }
89
+ }
90
+ ],
91
+ animationTimingFunction: "linear",
92
+ animationIterationCount: "infinite"
93
+ },
94
+ animationPause: {
95
+ animationPlayState: "paused"
96
+ }
97
+ }), indicatorSizes = import_react_native_web_internals.StyleSheet.create({
98
+ small: {
99
+ width: 20,
100
+ height: 20
101
+ },
102
+ large: {
103
+ width: 36,
104
+ height: 36
105
+ }
106
+ });
107
+ var ActivityIndicator_default = ActivityIndicator;
108
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,25 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
10
+ for (let key of __getOwnPropNames(from))
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var Alert_exports = {};
16
+ __export(Alert_exports, {
17
+ default: () => Alert_default
18
+ });
19
+ module.exports = __toCommonJS(Alert_exports);
20
+ class Alert {
21
+ static alert() {
22
+ }
23
+ }
24
+ var Alert_default = Alert;
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,41 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
+ // If the importer is in node compatibility mode or this is not an ESM
17
+ // file that has been converted to a CommonJS file using a Babel-
18
+ // compatible transform (i.e. "__esModule" has not been set), then set
19
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
21
+ mod
22
+ )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
23
+ var AppContainer_exports = {};
24
+ __export(AppContainer_exports, {
25
+ default: () => AppContainer_default
26
+ });
27
+ module.exports = __toCommonJS(AppContainer_exports);
28
+ var React = __toESM(require("react")), import_react_native_web_internals = require("@tamagui/react-native-web-internals"), import_View = __toESM(require("../View/index")), import_jsx_runtime = require("react/jsx-runtime");
29
+ const RootTagContext = React.createContext(null), AppContainer = React.forwardRef((props, forwardedRef) => {
30
+ const { children, WrapperComponent } = props;
31
+ let innerView = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_View.default, { pointerEvents: "box-none", style: styles.appContainer, children }, 1);
32
+ return WrapperComponent && (innerView = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(WrapperComponent, { children: innerView })), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RootTagContext.Provider, { value: props.rootTag, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_View.default, { pointerEvents: "box-none", ref: forwardedRef, style: styles.appContainer, children: innerView }) });
33
+ });
34
+ AppContainer.displayName = "AppContainer";
35
+ var AppContainer_default = AppContainer;
36
+ const styles = import_react_native_web_internals.StyleSheet.create({
37
+ appContainer: {
38
+ flex: 1
39
+ }
40
+ });
41
+ //# sourceMappingURL=AppContainer.js.map
@@ -0,0 +1,77 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from == "object" || typeof from == "function")
8
+ for (let key of __getOwnPropNames(from))
9
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ return to;
11
+ };
12
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
13
+ // If the importer is in node compatibility mode or this is not an ESM
14
+ // file that has been converted to a CommonJS file using a Babel-
15
+ // compatible transform (i.e. "__esModule" has not been set), then set
16
+ // "default" to the CommonJS "module.exports" for node compatibility.
17
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
18
+ mod
19
+ ));
20
+ var import_react = __toESM(require("react")), import__ = __toESM(require(".."));
21
+ const NoopComponent = () => import_react.default.createElement("div");
22
+ describe("AppRegistry", () => {
23
+ describe("runApplication", () => {
24
+ let rootTag;
25
+ beforeEach(() => {
26
+ rootTag = document.createElement("div"), rootTag.id = "react-root", document.body.appendChild(rootTag);
27
+ }), afterEach(() => {
28
+ document.body.removeChild(rootTag);
29
+ }), test("callback after render", () => {
30
+ const callback = jest.fn();
31
+ import__.default.registerComponent("App", () => NoopComponent), import__.default.runApplication("App", {
32
+ initialProps: {},
33
+ rootTag,
34
+ callback
35
+ }), expect(callback).toHaveBeenCalledTimes(1);
36
+ }), test("styles roots in different documents", () => {
37
+ import__.default.registerComponent("App", () => NoopComponent), import__.default.runApplication("App", { initialProps: {}, rootTag });
38
+ const iframe = document.createElement("iframe");
39
+ document.body.appendChild(iframe);
40
+ const iframeRootTag = document.createElement("div");
41
+ iframeRootTag.id = "react-iframe-root", iframe.contentWindow.document.body.appendChild(iframeRootTag), import__.default.registerComponent("App", () => NoopComponent), import__.default.runApplication("App", {
42
+ initialProps: {},
43
+ rootTag: iframeRootTag
44
+ });
45
+ const iframedoc = iframeRootTag.ownerDocument;
46
+ expect(iframedoc).toBe(iframe.contentWindow.document), expect(iframedoc).not.toBe(document);
47
+ const cssText = Array.prototype.slice.call(iframedoc.getElementById("react-native-stylesheet").sheet.cssRules).map((cssRule) => cssRule.cssText);
48
+ expect(cssText).toMatchInlineSnapshot(`
49
+ [
50
+ "[stylesheet-group=\\"0\\"] {}",
51
+ "body {margin: 0;}",
52
+ "button::-moz-focus-inner,input::-moz-focus-inner {border: 0; padding: 0;}",
53
+ "html {-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(0,0,0,0);}",
54
+ "input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration {display: none;}",
55
+ "[stylesheet-group=\\"1\\"] {}",
56
+ ".css-view-175oi2r {align-items: stretch; background-color: rgba(0,0,0,0.00); border: 0 solid black; box-sizing: border-box; display: flex; flex-basis: auto; flex-direction: column; flex-shrink: 0; list-style: none; margin: 0px; min-height: 0px; min-width: 0px; padding: 0px; position: relative; text-decoration: none; z-index: 0;}",
57
+ "[stylesheet-group=\\"2\\"] {}",
58
+ ".r-display-xoduu5 {display: inline-flex;}",
59
+ ".r-flex-13awgt0 {flex: 1;}",
60
+ "[stylesheet-group=\\"2.2\\"] {}",
61
+ ".r-bottom-1p0dtai {bottom: 0px;}",
62
+ ".r-left-1d2f490 {left: 0px;}",
63
+ ".r-pointerEvents-105ug2t {pointer-events: auto !important;}",
64
+ ".r-pointerEvents-12vffkv>* {pointer-events: auto;}",
65
+ ".r-pointerEvents-12vffkv {pointer-events: none !important;}",
66
+ ".r-pointerEvents-633pao {pointer-events: none !important;}",
67
+ ".r-pointerEvents-ah5dr5>* {pointer-events: none;}",
68
+ ".r-pointerEvents-ah5dr5 {pointer-events: auto !important;}",
69
+ ".r-position-u8s1d {position: absolute;}",
70
+ ".r-right-zchlnj {right: 0px;}",
71
+ ".r-top-ipm5af {top: 0px;}",
72
+ ]
73
+ `);
74
+ });
75
+ });
76
+ });
77
+ //# sourceMappingURL=index-test.js.map
@@ -0,0 +1,131 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from == "object" || typeof from == "function")
8
+ for (let key of __getOwnPropNames(from))
9
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ return to;
11
+ };
12
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
13
+ // If the importer is in node compatibility mode or this is not an ESM
14
+ // file that has been converted to a CommonJS file using a Babel-
15
+ // compatible transform (i.e. "__esModule" has not been set), then set
16
+ // "default" to the CommonJS "module.exports" for node compatibility.
17
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
18
+ mod
19
+ ));
20
+ var import_react = __toESM(require("react")), import_server = __toESM(require("react-dom/server")), import_StyleSheet = __toESM(require("../../StyleSheet/index")), import_View = __toESM(require("../../View")), import__ = __toESM(require(".."));
21
+ const NoopComponent = () => import_react.default.createElement("div");
22
+ describe("AppRegistry", () => {
23
+ describe("getApplication", () => {
24
+ test("does not throw when missing appParameters", () => {
25
+ import__.default.registerComponent("App", () => NoopComponent), expect(() => import__.default.getApplication("App")).not.toThrow();
26
+ }), test('returns "element" and "getStyleElement"', () => {
27
+ import__.default.registerComponent("App", () => NoopComponent);
28
+ const { element, getStyleElement } = import__.default.getApplication("App", {}), styleElement = import_server.default.renderToStaticMarkup(getStyleElement());
29
+ expect(element).toMatchInlineSnapshot(`
30
+ <AppContainer
31
+ rootTag={{}}
32
+ >
33
+ <NoopComponent />
34
+ </AppContainer>
35
+ `), expect(styleElement).toMatchInlineSnapshot(`
36
+ "<style id=\\"react-native-stylesheet\\">[stylesheet-group=\\"0\\"]{}
37
+ body{margin:0;}
38
+ button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}
39
+ html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}
40
+ input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}
41
+ [stylesheet-group=\\"1\\"]{}
42
+ .css-view-175oi2r{align-items:stretch;background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;list-style:none;margin:0px;min-height:0px;min-width:0px;padding:0px;position:relative;text-decoration:none;z-index:0;}
43
+ [stylesheet-group=\\"2\\"]{}
44
+ .r-display-xoduu5{display:inline-flex;}
45
+ .r-flex-13awgt0{flex:1;}
46
+ [stylesheet-group=\\"2.2\\"]{}
47
+ .r-bottom-1p0dtai{bottom:0px;}
48
+ .r-left-1d2f490{left:0px;}
49
+ .r-pointerEvents-105ug2t{pointer-events:auto!important;}
50
+ .r-pointerEvents-12vffkv>*{pointer-events:auto;}
51
+ .r-pointerEvents-12vffkv{pointer-events:none!important;}
52
+ .r-pointerEvents-633pao{pointer-events:none!important;}
53
+ .r-pointerEvents-ah5dr5>*{pointer-events:none;}
54
+ .r-pointerEvents-ah5dr5{pointer-events:auto!important;}
55
+ .r-position-u8s1d{position:absolute;}
56
+ .r-right-zchlnj{right:0px;}
57
+ .r-top-ipm5af{top:0px;}</style>"
58
+ `);
59
+ }), test('"getStyleElement" adds props to <style>', () => {
60
+ const nonce = "2Bz9RM/UHvBbmo3jK/PbYZ==";
61
+ import__.default.registerComponent("App", () => NoopComponent);
62
+ const { getStyleElement } = import__.default.getApplication("App", {}), styleElement = getStyleElement({ nonce });
63
+ expect(styleElement.props.nonce).toBe(nonce);
64
+ }), test('"getStyleElement" contains style updates', () => {
65
+ const getApplicationStyles = (appName) => {
66
+ const { getStyleElement } = import__.default.getApplication(appName, {});
67
+ return getStyleElement().props.dangerouslySetInnerHTML.__html;
68
+ }, RootComponent = () => import_react.default.createElement(import_View.default);
69
+ import__.default.registerComponent("App", () => RootComponent);
70
+ const first = getApplicationStyles("App");
71
+ expect(first).toMatchInlineSnapshot(`
72
+ "[stylesheet-group=\\"0\\"]{}
73
+ body{margin:0;}
74
+ button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}
75
+ html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}
76
+ input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}
77
+ [stylesheet-group=\\"1\\"]{}
78
+ .css-view-175oi2r{align-items:stretch;background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;list-style:none;margin:0px;min-height:0px;min-width:0px;padding:0px;position:relative;text-decoration:none;z-index:0;}
79
+ [stylesheet-group=\\"2\\"]{}
80
+ .r-display-xoduu5{display:inline-flex;}
81
+ .r-flex-13awgt0{flex:1;}
82
+ [stylesheet-group=\\"2.2\\"]{}
83
+ .r-bottom-1p0dtai{bottom:0px;}
84
+ .r-left-1d2f490{left:0px;}
85
+ .r-pointerEvents-105ug2t{pointer-events:auto!important;}
86
+ .r-pointerEvents-12vffkv>*{pointer-events:auto;}
87
+ .r-pointerEvents-12vffkv{pointer-events:none!important;}
88
+ .r-pointerEvents-633pao{pointer-events:none!important;}
89
+ .r-pointerEvents-ah5dr5>*{pointer-events:none;}
90
+ .r-pointerEvents-ah5dr5{pointer-events:auto!important;}
91
+ .r-position-u8s1d{position:absolute;}
92
+ .r-right-zchlnj{right:0px;}
93
+ .r-top-ipm5af{top:0px;}"
94
+ `);
95
+ const styles = import_StyleSheet.default.create({
96
+ root: { borderWidth: 1234, backgroundColor: "purple" }
97
+ }), AlternativeComponent = () => import_react.default.createElement(import_View.default, { style: styles.root });
98
+ import__.default.registerComponent("AlternativeApp", () => AlternativeComponent);
99
+ const second = getApplicationStyles("AlternativeApp");
100
+ expect(second).toMatchInlineSnapshot(`
101
+ "[stylesheet-group=\\"0\\"]{}
102
+ body{margin:0;}
103
+ button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}
104
+ html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}
105
+ input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}
106
+ [stylesheet-group=\\"1\\"]{}
107
+ .css-view-175oi2r{align-items:stretch;background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;list-style:none;margin:0px;min-height:0px;min-width:0px;padding:0px;position:relative;text-decoration:none;z-index:0;}
108
+ [stylesheet-group=\\"2\\"]{}
109
+ .r-borderWidth-1bee2fs{border-bottom-width:1234px;border-left-width:1234px;border-right-width:1234px;border-top-width:1234px;}
110
+ .r-display-xoduu5{display:inline-flex;}
111
+ .r-flex-13awgt0{flex:1;}
112
+ [stylesheet-group=\\"2.2\\"]{}
113
+ .r-backgroundColor-aot4c7{background-color:rgba(128,0,128,1.00);}
114
+ .r-bottom-1p0dtai{bottom:0px;}
115
+ .r-left-1d2f490{left:0px;}
116
+ .r-pointerEvents-105ug2t{pointer-events:auto!important;}
117
+ .r-pointerEvents-12vffkv>*{pointer-events:auto;}
118
+ .r-pointerEvents-12vffkv{pointer-events:none!important;}
119
+ .r-pointerEvents-633pao{pointer-events:none!important;}
120
+ .r-pointerEvents-ah5dr5>*{pointer-events:none;}
121
+ .r-pointerEvents-ah5dr5{pointer-events:auto!important;}
122
+ .r-position-u8s1d{position:absolute;}
123
+ .r-right-zchlnj{right:0px;}
124
+ .r-top-ipm5af{top:0px;}"
125
+ `);
126
+ const third = getApplicationStyles("App");
127
+ expect(third).toEqual(second);
128
+ });
129
+ });
130
+ });
131
+ //# sourceMappingURL=index-test.node.js.map