@tamagui/react-native-web-lite 1.114.4 → 1.115.1
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.
- package/dist/cjs/AccessibilityInfo/index.cjs +98 -0
- package/dist/cjs/ActivityIndicator/__tests__/index-test.cjs +188 -0
- package/dist/cjs/ActivityIndicator/index.cjs +127 -0
- package/dist/cjs/Alert/index.cjs +29 -0
- package/dist/cjs/AppRegistry/AppContainer.cjs +70 -0
- package/dist/cjs/AppRegistry/__tests__/{index-test.js → index-test.cjs} +22 -16
- package/dist/cjs/AppRegistry/__tests__/{index-test.node.js → index-test.node.cjs} +46 -22
- package/dist/cjs/AppRegistry/index.cjs +99 -0
- package/dist/cjs/AppRegistry/renderApplication.cjs +80 -0
- package/dist/cjs/AppState/__tests__/{index-test.js → index-test.cjs} +17 -16
- package/dist/cjs/AppState/index.cjs +69 -0
- package/dist/cjs/Appearance/index.cjs +54 -0
- package/dist/cjs/BackHandler/index.cjs +36 -0
- package/dist/cjs/Clipboard/{index.js → index.cjs} +17 -13
- package/dist/cjs/{DeviceEmitter.js → DeviceEmitter.cjs} +23 -14
- package/dist/cjs/DeviceInfo/{index.js → index.cjs} +37 -19
- package/dist/cjs/Dimensions/__tests__/{index-test.js → index-test.cjs} +18 -15
- package/dist/cjs/Dimensions/{index.js → index.cjs} +34 -28
- package/dist/cjs/I18nManager/index.cjs +35 -0
- package/dist/cjs/Image/index.cjs +292 -0
- package/dist/cjs/Image/types.cjs +16 -0
- package/dist/cjs/ImageBackground/__tests__/index-test.cjs +68 -0
- package/dist/cjs/ImageBackground/index.cjs +77 -0
- package/dist/cjs/Keyboard/index.cjs +39 -0
- package/dist/cjs/KeyboardAvoidingView/{index.js → index.cjs} +32 -21
- package/dist/cjs/Linking/__tests__/{index-test.js → index-test.cjs} +19 -17
- package/dist/cjs/Linking/{index.js → index.cjs} +18 -15
- package/dist/cjs/LogBox/index.cjs +32 -0
- package/dist/cjs/Modal/ModalAnimation.cjs +148 -0
- package/dist/cjs/Modal/ModalContent.cjs +86 -0
- package/dist/cjs/Modal/ModalFocusTrap.cjs +108 -0
- package/dist/cjs/Modal/ModalPortal.cjs +53 -0
- package/dist/cjs/Modal/index.cjs +97 -0
- package/dist/cjs/NativeModules/index.cjs +30 -0
- package/dist/cjs/PanResponder/Alternative.cjs +198 -0
- package/dist/cjs/PanResponder/Alternative.cjs.map +6 -0
- package/dist/cjs/PanResponder/{index.js → index.cjs} +23 -14
- package/dist/cjs/PixelRatio/{index.js → index.cjs} +23 -15
- package/dist/cjs/Pressable/index.cjs +143 -0
- package/dist/cjs/RefreshControl/{index.js → index.cjs} +27 -16
- package/dist/cjs/SafeAreaView/index.cjs +62 -0
- package/dist/cjs/ScrollView/ScrollViewBase.cjs +137 -0
- package/dist/cjs/ScrollView/{index.js → index.cjs} +123 -108
- package/dist/cjs/Share/index.cjs +49 -0
- package/dist/cjs/StatusBar/{index.js → index.cjs} +17 -13
- package/dist/cjs/Text/index.cjs +170 -0
- package/dist/cjs/Text/types.cjs +16 -0
- package/dist/cjs/TextInput/__tests__/index-test.cjs +709 -0
- package/dist/cjs/TextInput/index.cjs +277 -0
- package/dist/cjs/TextInput/types.cjs +16 -0
- package/dist/cjs/TouchableOpacity.cjs +117 -0
- package/dist/cjs/{TouchableWithoutFeedback.js → TouchableWithoutFeedback.cjs} +60 -58
- package/dist/cjs/UnimplementedView.cjs +47 -0
- package/dist/cjs/Vibration/index.cjs +37 -0
- package/dist/cjs/View/{index.js → index.cjs} +49 -28
- package/dist/cjs/View/types.cjs +16 -0
- package/dist/cjs/createElement/__tests__/index-test.cjs +765 -0
- package/dist/cjs/createElement/index.cjs +54 -0
- package/dist/cjs/createReactDOMStyle.cjs +27 -0
- package/dist/cjs/findNodeHandle.cjs +33 -0
- package/dist/cjs/{index.js → index.cjs} +77 -16
- package/dist/cjs/render/{index.js → index.cjs} +20 -14
- package/dist/cjs/styleTypes.cjs +16 -0
- package/dist/cjs/types.cjs +16 -0
- package/dist/cjs/useColorScheme/{index.js → index.cjs} +27 -16
- package/dist/cjs/useLocaleContext/index.cjs +26 -0
- package/dist/cjs/useWindowDimensions/{index.js → index.cjs} +28 -16
- package/dist/cjs/vendor/react-native/Animated/Animated.cjs +52 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.cjs +125 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.cjs +514 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.cjs +149 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.cjs +1 -0
- package/dist/cjs/vendor/react-native/Animated/{Easing.js → Easing.cjs} +31 -22
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.cjs +331 -0
- package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedModule.js → NativeAnimatedModule.cjs} +23 -14
- package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedTurboModule.js → NativeAnimatedTurboModule.cjs} +23 -14
- package/dist/cjs/vendor/react-native/Animated/{SpringConfig.js → SpringConfig.cjs} +20 -12
- package/dist/cjs/vendor/react-native/Animated/animations/{Animation.js → Animation.cjs} +29 -24
- package/dist/cjs/vendor/react-native/Animated/animations/{DecayAnimation.js → DecayAnimation.cjs} +27 -16
- package/dist/cjs/vendor/react-native/Animated/animations/{SpringAnimation.js → SpringAnimation.cjs} +48 -34
- package/dist/cjs/vendor/react-native/Animated/animations/{TimingAnimation.js → TimingAnimation.cjs} +32 -26
- package/dist/cjs/vendor/react-native/Animated/{bezier.js → bezier.cjs} +38 -27
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.cjs +40 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.cjs +45 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.cjs +40 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.cjs +40 -0
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.cjs +61 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedAddition.js → AnimatedAddition.cjs} +26 -15
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedColor.js → AnimatedColor.cjs} +57 -40
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDiffClamp.js → AnimatedDiffClamp.cjs} +27 -16
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDivision.js → AnimatedDivision.cjs} +29 -16
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedInterpolation.js → AnimatedInterpolation.cjs} +62 -72
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedModulo.js → AnimatedModulo.cjs} +25 -15
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedMultiplication.js → AnimatedMultiplication.cjs} +26 -15
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedNode.js → AnimatedNode.cjs} +39 -39
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedProps.js → AnimatedProps.cjs} +34 -24
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedStyle.js → AnimatedStyle.cjs} +35 -21
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedSubtraction.js → AnimatedSubtraction.cjs} +26 -15
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTracking.js → AnimatedTracking.cjs} +34 -32
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTransform.js → AnimatedTransform.cjs} +32 -21
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValue.js → AnimatedValue.cjs} +43 -50
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValueXY.js → AnimatedValueXY.cjs} +38 -31
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedWithChildren.js → AnimatedWithChildren.cjs} +31 -21
- package/dist/cjs/vendor/react-native/Animated/{useAnimatedProps.js → useAnimatedProps.cjs} +44 -31
- package/dist/cjs/vendor/react-native/{FeatureFlags.js → FeatureFlags.cjs} +16 -11
- package/dist/cjs/vendor/react-native/NativeEventEmitter/{RCTDeviceEventEmitter.js → RCTDeviceEventEmitter.cjs} +23 -14
- package/dist/cjs/vendor/react-native/NativeEventEmitter/{index.js → index.cjs} +29 -25
- package/dist/cjs/vendor/react-native/PanResponder/index.cjs +272 -0
- package/dist/cjs/vendor/react-native/TouchHistoryMath/index.cjs +105 -0
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.cjs +1 -0
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.cjs +34 -0
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.cjs +18 -0
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.cjs +36 -0
- package/dist/cjs/vendor/react-native/emitter/{EventEmitter.js → EventEmitter.cjs} +24 -14
- package/dist/cjs/vendor/react-native/emitter/EventSubscription.cjs +1 -0
- package/dist/cjs/vendor/react-native/emitter/{_EmitterSubscription.js → _EmitterSubscription.cjs} +24 -15
- package/dist/cjs/vendor/react-native/emitter/{_EventEmitter.js → _EventEmitter.cjs} +39 -39
- package/dist/cjs/vendor/react-native/emitter/{_EventSubscription.js → _EventSubscription.cjs} +17 -11
- package/dist/cjs/vendor/react-native/emitter/{_EventSubscriptionVendor.js → _EventSubscriptionVendor.cjs} +21 -16
- package/dist/cjs/vendor/react-native/infoLog/index.cjs +31 -0
- package/dist/cjs/vendor/react-native/useRefEffect.cjs +32 -0
- package/dist/cjs/without-animated.cjs +155 -0
- package/package.json +9 -8
- package/dist/cjs/AccessibilityInfo/index.js +0 -96
- package/dist/cjs/ActivityIndicator/__tests__/index-test.js +0 -116
- package/dist/cjs/ActivityIndicator/index.js +0 -108
- package/dist/cjs/Alert/index.js +0 -25
- package/dist/cjs/AppRegistry/AppContainer.js +0 -41
- package/dist/cjs/AppRegistry/index.js +0 -98
- package/dist/cjs/AppRegistry/renderApplication.js +0 -51
- package/dist/cjs/AppState/index.js +0 -71
- package/dist/cjs/Appearance/index.js +0 -41
- package/dist/cjs/BackHandler/index.js +0 -32
- package/dist/cjs/I18nManager/index.js +0 -30
- package/dist/cjs/Image/index.js +0 -253
- package/dist/cjs/Image/types.js +0 -14
- package/dist/cjs/ImageBackground/__tests__/index-test.js +0 -48
- package/dist/cjs/ImageBackground/index.js +0 -62
- package/dist/cjs/Keyboard/index.js +0 -35
- package/dist/cjs/LogBox/index.js +0 -31
- package/dist/cjs/Modal/ModalAnimation.js +0 -137
- package/dist/cjs/Modal/ModalContent.js +0 -75
- package/dist/cjs/Modal/ModalFocusTrap.js +0 -105
- package/dist/cjs/Modal/ModalPortal.js +0 -43
- package/dist/cjs/Modal/index.js +0 -92
- package/dist/cjs/NativeModules/index.js +0 -25
- package/dist/cjs/Pressable/index.js +0 -140
- package/dist/cjs/SafeAreaView/index.js +0 -43
- package/dist/cjs/ScrollView/ScrollViewBase.js +0 -124
- package/dist/cjs/Share/index.js +0 -56
- package/dist/cjs/Text/index.js +0 -152
- package/dist/cjs/Text/types.js +0 -14
- package/dist/cjs/TextInput/__tests__/index-test.js +0 -422
- package/dist/cjs/TextInput/index.js +0 -260
- package/dist/cjs/TextInput/types.js +0 -14
- package/dist/cjs/TouchableOpacity.js +0 -123
- package/dist/cjs/UnimplementedView.js +0 -36
- package/dist/cjs/Vibration/index.js +0 -31
- package/dist/cjs/View/types.js +0 -14
- package/dist/cjs/createElement/__tests__/index-test.js +0 -536
- package/dist/cjs/createElement/index.js +0 -37
- package/dist/cjs/createReactDOMStyle.js +0 -21
- package/dist/cjs/findNodeHandle.js +0 -29
- package/dist/cjs/styleTypes.js +0 -14
- package/dist/cjs/types.js +0 -14
- package/dist/cjs/useLocaleContext/index.js +0 -21
- package/dist/cjs/vendor/react-native/Animated/Animated.js +0 -35
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.js +0 -143
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.js +0 -458
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.js +0 -126
- package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.js +0 -2
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.js +0 -335
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.js +0 -29
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.js +0 -38
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.js +0 -29
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.js +0 -29
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.js +0 -42
- package/dist/cjs/vendor/react-native/PanResponder/index.js +0 -272
- package/dist/cjs/vendor/react-native/TouchHistoryMath/index.js +0 -118
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.js +0 -2
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.js +0 -28
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.js +0 -15
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.js +0 -29
- package/dist/cjs/vendor/react-native/emitter/EventSubscription.js +0 -2
- package/dist/cjs/vendor/react-native/infoLog/index.js +0 -25
- package/dist/cjs/vendor/react-native/useRefEffect.js +0 -30
- package/dist/cjs/without-animated.js +0 -95
- /package/dist/cjs/AccessibilityInfo/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/ActivityIndicator/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/ActivityIndicator/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Alert/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/AppRegistry/{AppContainer.js.map → AppContainer.cjs.map} +0 -0
- /package/dist/cjs/AppRegistry/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/AppRegistry/__tests__/{index-test.node.js.map → index-test.node.cjs.map} +0 -0
- /package/dist/cjs/AppRegistry/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/AppRegistry/{renderApplication.js.map → renderApplication.cjs.map} +0 -0
- /package/dist/cjs/AppState/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/AppState/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Appearance/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/BackHandler/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Clipboard/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/{DeviceEmitter.js.map → DeviceEmitter.cjs.map} +0 -0
- /package/dist/cjs/DeviceInfo/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Dimensions/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/Dimensions/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/I18nManager/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Image/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Image/{types.js.map → types.cjs.map} +0 -0
- /package/dist/cjs/ImageBackground/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/ImageBackground/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Keyboard/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/KeyboardAvoidingView/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Linking/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/Linking/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/LogBox/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Modal/{ModalAnimation.js.map → ModalAnimation.cjs.map} +0 -0
- /package/dist/cjs/Modal/{ModalContent.js.map → ModalContent.cjs.map} +0 -0
- /package/dist/cjs/Modal/{ModalFocusTrap.js.map → ModalFocusTrap.cjs.map} +0 -0
- /package/dist/cjs/Modal/{ModalPortal.js.map → ModalPortal.cjs.map} +0 -0
- /package/dist/cjs/Modal/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/NativeModules/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/PanResponder/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/PixelRatio/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Pressable/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/RefreshControl/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/SafeAreaView/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/ScrollView/{ScrollViewBase.js.map → ScrollViewBase.cjs.map} +0 -0
- /package/dist/cjs/ScrollView/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Share/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/StatusBar/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Text/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Text/{types.js.map → types.cjs.map} +0 -0
- /package/dist/cjs/TextInput/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/TextInput/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/TextInput/{types.js.map → types.cjs.map} +0 -0
- /package/dist/cjs/{TouchableOpacity.js.map → TouchableOpacity.cjs.map} +0 -0
- /package/dist/cjs/{TouchableWithoutFeedback.js.map → TouchableWithoutFeedback.cjs.map} +0 -0
- /package/dist/cjs/{UnimplementedView.js.map → UnimplementedView.cjs.map} +0 -0
- /package/dist/cjs/Vibration/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/View/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/View/{types.js.map → types.cjs.map} +0 -0
- /package/dist/cjs/createElement/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/createElement/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/{createReactDOMStyle.js.map → createReactDOMStyle.cjs.map} +0 -0
- /package/dist/cjs/{findNodeHandle.js.map → findNodeHandle.cjs.map} +0 -0
- /package/dist/cjs/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/render/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/{styleTypes.js.map → styleTypes.cjs.map} +0 -0
- /package/dist/cjs/{types.js.map → types.cjs.map} +0 -0
- /package/dist/cjs/useColorScheme/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/useLocaleContext/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/useWindowDimensions/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{Animated.js.map → Animated.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{AnimatedEvent.js.map → AnimatedEvent.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{AnimatedImplementation.js.map → AnimatedImplementation.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{AnimatedMock.js.map → AnimatedMock.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{AnimatedPlatformConfig.js.map → AnimatedPlatformConfig.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{Easing.js.map → Easing.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedHelper.js.map → NativeAnimatedHelper.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedModule.js.map → NativeAnimatedModule.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedTurboModule.js.map → NativeAnimatedTurboModule.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{SpringConfig.js.map → SpringConfig.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/animations/{Animation.js.map → Animation.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/animations/{DecayAnimation.js.map → DecayAnimation.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/animations/{SpringAnimation.js.map → SpringAnimation.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/animations/{TimingAnimation.js.map → TimingAnimation.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{bezier.js.map → bezier.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedImage.js.map → AnimatedImage.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedScrollView.js.map → AnimatedScrollView.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedText.js.map → AnimatedText.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedView.js.map → AnimatedView.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{createAnimatedComponent.js.map → createAnimatedComponent.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedAddition.js.map → AnimatedAddition.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedColor.js.map → AnimatedColor.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDiffClamp.js.map → AnimatedDiffClamp.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDivision.js.map → AnimatedDivision.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedInterpolation.js.map → AnimatedInterpolation.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedModulo.js.map → AnimatedModulo.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedMultiplication.js.map → AnimatedMultiplication.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedNode.js.map → AnimatedNode.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedProps.js.map → AnimatedProps.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedStyle.js.map → AnimatedStyle.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedSubtraction.js.map → AnimatedSubtraction.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTracking.js.map → AnimatedTracking.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTransform.js.map → AnimatedTransform.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValue.js.map → AnimatedValue.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValueXY.js.map → AnimatedValueXY.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedWithChildren.js.map → AnimatedWithChildren.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{useAnimatedProps.js.map → useAnimatedProps.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/{FeatureFlags.js.map → FeatureFlags.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/NativeEventEmitter/{RCTDeviceEventEmitter.js.map → RCTDeviceEventEmitter.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/NativeEventEmitter/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/PanResponder/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/TouchHistoryMath/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/TurboModule/{RCTExport.js.map → RCTExport.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/TurboModule/{TurboModuleRegistry.js.map → TurboModuleRegistry.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Types/{CoreEventTypes.js.map → CoreEventTypes.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Utilities/{setAndForwardRef.js.map → setAndForwardRef.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{EventEmitter.js.map → EventEmitter.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{EventSubscription.js.map → EventSubscription.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{_EmitterSubscription.js.map → _EmitterSubscription.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{_EventEmitter.js.map → _EventEmitter.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{_EventSubscription.js.map → _EventSubscription.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{_EventSubscriptionVendor.js.map → _EventSubscriptionVendor.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/infoLog/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/{useRefEffect.js.map → useRefEffect.cjs.map} +0 -0
- /package/dist/cjs/{without-animated.js.map → without-animated.cjs.map} +0 -0
|
@@ -0,0 +1,765 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf,
|
|
6
|
+
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __copyProps = (to, from, except, desc) => {
|
|
8
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
9
|
+
get: () => from[key],
|
|
10
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
11
|
+
});
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
15
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
16
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
17
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
18
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
19
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
20
|
+
value: mod,
|
|
21
|
+
enumerable: !0
|
|
22
|
+
}) : target, mod));
|
|
23
|
+
var import_react = require("@testing-library/react"),
|
|
24
|
+
import__ = __toESM(require("../index.cjs")),
|
|
25
|
+
import_jsx_runtime = require("react/jsx-runtime");
|
|
26
|
+
function getAttribute(container, attribute) {
|
|
27
|
+
return container.firstChild.getAttribute(attribute);
|
|
28
|
+
}
|
|
29
|
+
function getProperty(container, prop) {
|
|
30
|
+
return container.firstChild[prop];
|
|
31
|
+
}
|
|
32
|
+
describe("exports/createElement/index.js", () => {
|
|
33
|
+
test("renders different DOM elements", () => {
|
|
34
|
+
let {
|
|
35
|
+
container
|
|
36
|
+
} = (0, import_react.render)((0, import__.default)("span"));
|
|
37
|
+
expect(container.firstChild).toMatchSnapshot(), {
|
|
38
|
+
container
|
|
39
|
+
} = (0, import_react.render)((0, import__.default)("main")), expect(container.firstChild).toMatchSnapshot(), {
|
|
40
|
+
container
|
|
41
|
+
} = (0, import_react.render)((0, import__.default)("svg", {
|
|
42
|
+
children: (0, import__.default)("image", {
|
|
43
|
+
href: "#href"
|
|
44
|
+
})
|
|
45
|
+
})), expect(container.firstChild).toMatchSnapshot();
|
|
46
|
+
}), describe('prop "accessibilityRole"', () => {
|
|
47
|
+
test("string component type", () => {
|
|
48
|
+
const {
|
|
49
|
+
container
|
|
50
|
+
} = (0, import_react.render)((0, import__.default)("span", {
|
|
51
|
+
accessibilityRole: "link"
|
|
52
|
+
}));
|
|
53
|
+
expect(container.firstChild.nodeName).toBe("SPAN");
|
|
54
|
+
}), test("function component type", () => {
|
|
55
|
+
const Custom = () => /* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {}),
|
|
56
|
+
{
|
|
57
|
+
container
|
|
58
|
+
} = (0, import_react.render)((0, import__.default)(Custom, {
|
|
59
|
+
accessibilityRole: "link"
|
|
60
|
+
}));
|
|
61
|
+
expect(container.firstChild.nodeName).toBe("DIV");
|
|
62
|
+
});
|
|
63
|
+
}), describe("accessibility props", () => {
|
|
64
|
+
test("accessibilityActiveDescendant", () => {
|
|
65
|
+
const {
|
|
66
|
+
container: isEmpty
|
|
67
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
68
|
+
accessibilityActiveDescendant: null
|
|
69
|
+
}));
|
|
70
|
+
expect(getAttribute(isEmpty, "aria-activedescendant")).toBeNull();
|
|
71
|
+
const {
|
|
72
|
+
container: hasValue
|
|
73
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
74
|
+
accessibilityActiveDescendant: "abc"
|
|
75
|
+
}));
|
|
76
|
+
expect(getAttribute(hasValue, "aria-activedescendant")).toBe("abc");
|
|
77
|
+
}), test("accessibilityAtomic", () => {
|
|
78
|
+
const {
|
|
79
|
+
container: isEmpty
|
|
80
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
81
|
+
accessibilityAtomic: null
|
|
82
|
+
}));
|
|
83
|
+
expect(getAttribute(isEmpty, "aria-atomic")).toBeNull();
|
|
84
|
+
const {
|
|
85
|
+
container: hasValue
|
|
86
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
87
|
+
accessibilityAtomic: !0
|
|
88
|
+
}));
|
|
89
|
+
expect(getAttribute(hasValue, "aria-atomic")).toBe("true");
|
|
90
|
+
}), test("accessibilityAutoComplete", () => {
|
|
91
|
+
const {
|
|
92
|
+
container: isEmpty
|
|
93
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
94
|
+
accessibilityAutoComplete: null
|
|
95
|
+
}));
|
|
96
|
+
expect(getAttribute(isEmpty, "aria-autocomplete")).toBeNull();
|
|
97
|
+
const {
|
|
98
|
+
container: hasValue
|
|
99
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
100
|
+
accessibilityAutoComplete: !0
|
|
101
|
+
}));
|
|
102
|
+
expect(getAttribute(hasValue, "aria-autocomplete")).toBe("true");
|
|
103
|
+
}), test("accessibilityBusy", () => {
|
|
104
|
+
const {
|
|
105
|
+
container: isEmpty
|
|
106
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
107
|
+
accessibilityBusy: null
|
|
108
|
+
}));
|
|
109
|
+
expect(getAttribute(isEmpty, "aria-busy")).toBeNull();
|
|
110
|
+
const {
|
|
111
|
+
container: hasValue
|
|
112
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
113
|
+
accessibilityBusy: !0
|
|
114
|
+
}));
|
|
115
|
+
expect(getAttribute(hasValue, "aria-busy")).toBe("true");
|
|
116
|
+
}), test("accessibilityChecked", () => {
|
|
117
|
+
const {
|
|
118
|
+
container: isEmpty
|
|
119
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
120
|
+
accessibilityChecked: null
|
|
121
|
+
}));
|
|
122
|
+
expect(getAttribute(isEmpty, "aria-checked")).toBeNull();
|
|
123
|
+
const {
|
|
124
|
+
container: hasValue
|
|
125
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
126
|
+
accessibilityChecked: !0
|
|
127
|
+
}));
|
|
128
|
+
expect(getAttribute(hasValue, "aria-checked")).toBe("true");
|
|
129
|
+
}), test("accessibilityColumnCount", () => {
|
|
130
|
+
const {
|
|
131
|
+
container: isEmpty
|
|
132
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
133
|
+
accessibilityColumnCount: null
|
|
134
|
+
}));
|
|
135
|
+
expect(getAttribute(isEmpty, "aria-colcount")).toBeNull();
|
|
136
|
+
const {
|
|
137
|
+
container: hasValue
|
|
138
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
139
|
+
accessibilityColumnCount: 5
|
|
140
|
+
}));
|
|
141
|
+
expect(getAttribute(hasValue, "aria-colcount")).toBe("5");
|
|
142
|
+
}), test("accessibilityColumnIndex", () => {
|
|
143
|
+
const {
|
|
144
|
+
container: isEmpty
|
|
145
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
146
|
+
accessibilityColumnIndex: null
|
|
147
|
+
}));
|
|
148
|
+
expect(getAttribute(isEmpty, "aria-colindex")).toBeNull();
|
|
149
|
+
const {
|
|
150
|
+
container: hasValue
|
|
151
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
152
|
+
accessibilityColumnIndex: 5
|
|
153
|
+
}));
|
|
154
|
+
expect(getAttribute(hasValue, "aria-colindex")).toBe("5");
|
|
155
|
+
}), test("accessibilityColumnSpan", () => {
|
|
156
|
+
const {
|
|
157
|
+
container: isEmpty
|
|
158
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
159
|
+
accessibilityColumnSpan: null
|
|
160
|
+
}));
|
|
161
|
+
expect(getAttribute(isEmpty, "aria-colspan")).toBeNull();
|
|
162
|
+
const {
|
|
163
|
+
container: hasValue
|
|
164
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
165
|
+
accessibilityColumnSpan: 5
|
|
166
|
+
}));
|
|
167
|
+
expect(getAttribute(hasValue, "aria-colspan")).toBe("5");
|
|
168
|
+
}), test("accessibilityControls", () => {
|
|
169
|
+
const {
|
|
170
|
+
container: isEmpty
|
|
171
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
172
|
+
accessibilityControls: null
|
|
173
|
+
}));
|
|
174
|
+
expect(getAttribute(isEmpty, "aria-controls")).toBeNull();
|
|
175
|
+
const {
|
|
176
|
+
container: hasValue
|
|
177
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
178
|
+
accessibilityControls: "abc"
|
|
179
|
+
}));
|
|
180
|
+
expect(getAttribute(hasValue, "aria-controls")).toBe("abc");
|
|
181
|
+
const {
|
|
182
|
+
container: hasMultipleValues
|
|
183
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
184
|
+
accessibilityControls: ["abc", "def"]
|
|
185
|
+
}));
|
|
186
|
+
expect(getAttribute(hasMultipleValues, "aria-controls")).toBe("abc def");
|
|
187
|
+
}), test("accessibilityCurrent", () => {
|
|
188
|
+
const {
|
|
189
|
+
container: isEmpty
|
|
190
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
191
|
+
accessibilityCurrent: null
|
|
192
|
+
}));
|
|
193
|
+
expect(getAttribute(isEmpty, "aria-current")).toBeNull();
|
|
194
|
+
const {
|
|
195
|
+
container: hasValue
|
|
196
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
197
|
+
accessibilityCurrent: "page"
|
|
198
|
+
}));
|
|
199
|
+
expect(getAttribute(hasValue, "aria-current")).toBe("page");
|
|
200
|
+
}), test("accessibilityDescribedBy", () => {
|
|
201
|
+
const {
|
|
202
|
+
container: isEmpty
|
|
203
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
204
|
+
accessibilityDescribedBy: null
|
|
205
|
+
}));
|
|
206
|
+
expect(getAttribute(isEmpty, "aria-describedby")).toBeNull();
|
|
207
|
+
const {
|
|
208
|
+
container: hasValue
|
|
209
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
210
|
+
accessibilityDescribedBy: "abc"
|
|
211
|
+
}));
|
|
212
|
+
expect(getAttribute(hasValue, "aria-describedby")).toBe("abc");
|
|
213
|
+
const {
|
|
214
|
+
container: hasMultipleValues
|
|
215
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
216
|
+
accessibilityDescribedBy: ["abc", "def"]
|
|
217
|
+
}));
|
|
218
|
+
expect(getAttribute(hasMultipleValues, "aria-describedby")).toBe("abc def");
|
|
219
|
+
}), test("accessibilityDetails", () => {
|
|
220
|
+
const {
|
|
221
|
+
container: isEmpty
|
|
222
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
223
|
+
accessibilityDetails: null
|
|
224
|
+
}));
|
|
225
|
+
expect(getAttribute(isEmpty, "aria-details")).toBeNull();
|
|
226
|
+
const {
|
|
227
|
+
container: hasValue
|
|
228
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
229
|
+
accessibilityDetails: "abc"
|
|
230
|
+
}));
|
|
231
|
+
expect(getAttribute(hasValue, "aria-details")).toBe("abc");
|
|
232
|
+
}), test("accessibilityDisabled", () => {
|
|
233
|
+
const {
|
|
234
|
+
container: isEmpty
|
|
235
|
+
} = (0, import_react.render)((0, import__.default)("button", {
|
|
236
|
+
accessibilityDisabled: null
|
|
237
|
+
}));
|
|
238
|
+
expect(getAttribute(isEmpty, "aria-disabled")).toBeNull(), expect(getProperty(isEmpty, "disabled")).toBe(!1);
|
|
239
|
+
const {
|
|
240
|
+
container: hasValue
|
|
241
|
+
} = (0, import_react.render)((0, import__.default)("button", {
|
|
242
|
+
accessibilityDisabled: !0
|
|
243
|
+
}));
|
|
244
|
+
expect(getAttribute(hasValue, "aria-disabled")).toBe("true"), expect(getProperty(hasValue, "disabled")).toBe(!0);
|
|
245
|
+
}), test("accessibilityErrorMessage", () => {
|
|
246
|
+
const {
|
|
247
|
+
container: isEmpty
|
|
248
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
249
|
+
accessibilityErrorMessage: null
|
|
250
|
+
}));
|
|
251
|
+
expect(getAttribute(isEmpty, "aria-errormessage")).toBeNull();
|
|
252
|
+
const {
|
|
253
|
+
container: hasValue
|
|
254
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
255
|
+
accessibilityErrorMessage: "abc"
|
|
256
|
+
}));
|
|
257
|
+
expect(getAttribute(hasValue, "aria-errormessage")).toBe("abc");
|
|
258
|
+
}), test("accessibilityExpanded", () => {
|
|
259
|
+
const {
|
|
260
|
+
container: isEmpty
|
|
261
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
262
|
+
accessibilityExpanded: null
|
|
263
|
+
}));
|
|
264
|
+
expect(getAttribute(isEmpty, "aria-expanded")).toBeNull();
|
|
265
|
+
const {
|
|
266
|
+
container: hasValue
|
|
267
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
268
|
+
accessibilityExpanded: !0
|
|
269
|
+
}));
|
|
270
|
+
expect(getAttribute(hasValue, "aria-expanded")).toBe("true");
|
|
271
|
+
}), test("accessibilityFlowTo", () => {
|
|
272
|
+
const {
|
|
273
|
+
container: isEmpty
|
|
274
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
275
|
+
accessibilityFlowTo: null
|
|
276
|
+
}));
|
|
277
|
+
expect(getAttribute(isEmpty, "aria-flowto")).toBeNull();
|
|
278
|
+
const {
|
|
279
|
+
container: hasValue
|
|
280
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
281
|
+
accessibilityFlowTo: "abc"
|
|
282
|
+
}));
|
|
283
|
+
expect(getAttribute(hasValue, "aria-flowto")).toBe("abc");
|
|
284
|
+
const {
|
|
285
|
+
container: hasMultipleValues
|
|
286
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
287
|
+
accessibilityFlowTo: ["abc", "def"]
|
|
288
|
+
}));
|
|
289
|
+
expect(getAttribute(hasMultipleValues, "aria-flowto")).toBe("abc def");
|
|
290
|
+
}), test("accessibilityHasPopup", () => {
|
|
291
|
+
const {
|
|
292
|
+
container: isEmpty
|
|
293
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
294
|
+
accessibilityHasPopup: null
|
|
295
|
+
}));
|
|
296
|
+
expect(getAttribute(isEmpty, "aria-haspopup")).toBeNull();
|
|
297
|
+
const {
|
|
298
|
+
container: hasValue
|
|
299
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
300
|
+
accessibilityHasPopup: !0
|
|
301
|
+
}));
|
|
302
|
+
expect(getAttribute(hasValue, "aria-haspopup")).toBe("true");
|
|
303
|
+
}), test("accessibilityHidden", () => {
|
|
304
|
+
const {
|
|
305
|
+
container: isEmpty
|
|
306
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
307
|
+
accessibilityHidden: null
|
|
308
|
+
}));
|
|
309
|
+
expect(getAttribute(isEmpty, "aria-hidden")).toBeNull();
|
|
310
|
+
const {
|
|
311
|
+
container: hasValue
|
|
312
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
313
|
+
accessibilityHidden: !0
|
|
314
|
+
}));
|
|
315
|
+
expect(getAttribute(hasValue, "aria-hidden")).toBe("true");
|
|
316
|
+
}), test("accessibilityInvalid", () => {
|
|
317
|
+
const {
|
|
318
|
+
container: isEmpty
|
|
319
|
+
} = (0, import_react.render)((0, import__.default)("input", {
|
|
320
|
+
accessibilityInvalid: null
|
|
321
|
+
}));
|
|
322
|
+
expect(getAttribute(isEmpty, "aria-invalid")).toBeNull();
|
|
323
|
+
const {
|
|
324
|
+
container: hasValue
|
|
325
|
+
} = (0, import_react.render)((0, import__.default)("input", {
|
|
326
|
+
accessibilityInvalid: !0
|
|
327
|
+
}));
|
|
328
|
+
expect(getAttribute(hasValue, "aria-invalid")).toBe("true");
|
|
329
|
+
}), test("accessibilityKeyShortcuts", () => {
|
|
330
|
+
const {
|
|
331
|
+
container: isEmpty
|
|
332
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
333
|
+
accessibilityKeyShortcuts: null
|
|
334
|
+
}));
|
|
335
|
+
expect(getAttribute(isEmpty, "aria-keyshortcuts")).toBeNull();
|
|
336
|
+
const {
|
|
337
|
+
container: hasValue
|
|
338
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
339
|
+
accessibilityKeyShortcuts: ["ArrowUp", "Enter", "Space", "Alt+Shift+T"]
|
|
340
|
+
}));
|
|
341
|
+
expect(getAttribute(hasValue, "aria-keyshortcuts")).toBe("ArrowUp Enter Space Alt+Shift+T");
|
|
342
|
+
}), test("accessibilityLabel", () => {
|
|
343
|
+
const {
|
|
344
|
+
container: isEmpty
|
|
345
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
346
|
+
accessibilityLabel: null
|
|
347
|
+
}));
|
|
348
|
+
expect(getAttribute(isEmpty, "aria-label")).toBeNull();
|
|
349
|
+
const {
|
|
350
|
+
container: hasValue
|
|
351
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
352
|
+
accessibilityLabel: "abc"
|
|
353
|
+
}));
|
|
354
|
+
expect(getAttribute(hasValue, "aria-label")).toBe("abc");
|
|
355
|
+
}), test("accessibilityLabelledBy", () => {
|
|
356
|
+
const {
|
|
357
|
+
container: isEmpty
|
|
358
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
359
|
+
accessibilityLabelledBy: null
|
|
360
|
+
}));
|
|
361
|
+
expect(getAttribute(isEmpty, "aria-labelledby")).toBeNull();
|
|
362
|
+
const {
|
|
363
|
+
container: hasValue
|
|
364
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
365
|
+
accessibilityLabelledBy: "abc"
|
|
366
|
+
}));
|
|
367
|
+
expect(getAttribute(hasValue, "aria-labelledby")).toBe("abc");
|
|
368
|
+
const {
|
|
369
|
+
container: hasMultipleValues
|
|
370
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
371
|
+
accessibilityLabelledBy: ["abc", "def"]
|
|
372
|
+
}));
|
|
373
|
+
expect(getAttribute(hasMultipleValues, "aria-labelledby")).toBe("abc def");
|
|
374
|
+
}), test("accessibilityLevel", () => {
|
|
375
|
+
const {
|
|
376
|
+
container: isEmpty
|
|
377
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
378
|
+
accessibilityLevel: null
|
|
379
|
+
}));
|
|
380
|
+
expect(getAttribute(isEmpty, "aria-level")).toBeNull();
|
|
381
|
+
const {
|
|
382
|
+
container: hasValue
|
|
383
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
384
|
+
accessibilityLevel: 3
|
|
385
|
+
}));
|
|
386
|
+
expect(getAttribute(hasValue, "aria-level")).toBe("3");
|
|
387
|
+
}), test("accessibilityLiveRegion", () => {
|
|
388
|
+
const {
|
|
389
|
+
container: isEmpty
|
|
390
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
391
|
+
accessibilityLiveRegion: null
|
|
392
|
+
}));
|
|
393
|
+
expect(getAttribute(isEmpty, "aria-live")).toBeNull();
|
|
394
|
+
const {
|
|
395
|
+
container: hasValue
|
|
396
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
397
|
+
accessibilityLiveRegion: "polite"
|
|
398
|
+
}));
|
|
399
|
+
expect(getAttribute(hasValue, "aria-live")).toBe("polite");
|
|
400
|
+
}), test("accessibilityModal", () => {
|
|
401
|
+
const {
|
|
402
|
+
container: isEmpty
|
|
403
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
404
|
+
accessibilityModal: null
|
|
405
|
+
}));
|
|
406
|
+
expect(getAttribute(isEmpty, "aria-modal")).toBeNull();
|
|
407
|
+
const {
|
|
408
|
+
container: hasValue
|
|
409
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
410
|
+
accessibilityModal: !0
|
|
411
|
+
}));
|
|
412
|
+
expect(getAttribute(hasValue, "aria-modal")).toBe("true");
|
|
413
|
+
}), test("accessibilityMultiline", () => {
|
|
414
|
+
const {
|
|
415
|
+
container: isEmpty
|
|
416
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
417
|
+
accessibilityMultiline: null
|
|
418
|
+
}));
|
|
419
|
+
expect(getAttribute(isEmpty, "aria-multiline")).toBeNull();
|
|
420
|
+
const {
|
|
421
|
+
container: hasValue
|
|
422
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
423
|
+
accessibilityMultiline: !0
|
|
424
|
+
}));
|
|
425
|
+
expect(getAttribute(hasValue, "aria-multiline")).toBe("true");
|
|
426
|
+
}), test("accessibilityMultiSelectable", () => {
|
|
427
|
+
const {
|
|
428
|
+
container: isEmpty
|
|
429
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
430
|
+
accessibilityMultiSelectable: null
|
|
431
|
+
}));
|
|
432
|
+
expect(getAttribute(isEmpty, "aria-multiselectable")).toBeNull();
|
|
433
|
+
const {
|
|
434
|
+
container: hasValue
|
|
435
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
436
|
+
accessibilityMultiSelectable: !0
|
|
437
|
+
}));
|
|
438
|
+
expect(getAttribute(hasValue, "aria-multiselectable")).toBe("true");
|
|
439
|
+
}), test("accessibilityOrientation", () => {
|
|
440
|
+
const {
|
|
441
|
+
container: isEmpty
|
|
442
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
443
|
+
accessibilityOrientation: null
|
|
444
|
+
}));
|
|
445
|
+
expect(getAttribute(isEmpty, "aria-orientation")).toBeNull();
|
|
446
|
+
const {
|
|
447
|
+
container: hasValue
|
|
448
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
449
|
+
accessibilityOrientation: "vertical"
|
|
450
|
+
}));
|
|
451
|
+
expect(getAttribute(hasValue, "aria-orientation")).toBe("vertical");
|
|
452
|
+
}), test("accessibilityOwns", () => {
|
|
453
|
+
const {
|
|
454
|
+
container: isEmpty
|
|
455
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
456
|
+
accessibilityOwns: null
|
|
457
|
+
}));
|
|
458
|
+
expect(getAttribute(isEmpty, "aria-owns")).toBeNull();
|
|
459
|
+
const {
|
|
460
|
+
container: hasValue
|
|
461
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
462
|
+
accessibilityOwns: "abc"
|
|
463
|
+
}));
|
|
464
|
+
expect(getAttribute(hasValue, "aria-owns")).toBe("abc");
|
|
465
|
+
const {
|
|
466
|
+
container: hasMultipleValues
|
|
467
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
468
|
+
accessibilityOwns: ["abc", "def"]
|
|
469
|
+
}));
|
|
470
|
+
expect(getAttribute(hasMultipleValues, "aria-owns")).toBe("abc def");
|
|
471
|
+
}), test("accessibilityPlaceholder", () => {
|
|
472
|
+
const {
|
|
473
|
+
container: isEmpty
|
|
474
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
475
|
+
accessibilityPlaceholder: null
|
|
476
|
+
}));
|
|
477
|
+
expect(getAttribute(isEmpty, "aria-placeholder")).toBeNull();
|
|
478
|
+
const {
|
|
479
|
+
container: hasValue
|
|
480
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
481
|
+
accessibilityPlaceholder: "MM-DD-YYYY"
|
|
482
|
+
}));
|
|
483
|
+
expect(getAttribute(hasValue, "aria-placeholder")).toBe("MM-DD-YYYY");
|
|
484
|
+
}), test("accessibilityPosInSet", () => {
|
|
485
|
+
const {
|
|
486
|
+
container: isEmpty
|
|
487
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
488
|
+
accessibilityPosInSet: null
|
|
489
|
+
}));
|
|
490
|
+
expect(getAttribute(isEmpty, "aria-posinset")).toBeNull();
|
|
491
|
+
const {
|
|
492
|
+
container: hasValue
|
|
493
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
494
|
+
accessibilityPosInSet: 3
|
|
495
|
+
}));
|
|
496
|
+
expect(getAttribute(hasValue, "aria-posinset")).toBe("3");
|
|
497
|
+
}), test("accessibilityPressed", () => {
|
|
498
|
+
const {
|
|
499
|
+
container: isEmpty
|
|
500
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
501
|
+
accessibilityPressed: null
|
|
502
|
+
}));
|
|
503
|
+
expect(getAttribute(isEmpty, "aria-pressed")).toBeNull();
|
|
504
|
+
const {
|
|
505
|
+
container: hasValue
|
|
506
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
507
|
+
accessibilityPressed: !0
|
|
508
|
+
}));
|
|
509
|
+
expect(getAttribute(hasValue, "aria-pressed")).toBe("true");
|
|
510
|
+
}), test("accessibilityReadOnly", () => {
|
|
511
|
+
const {
|
|
512
|
+
container: isEmpty
|
|
513
|
+
} = (0, import_react.render)((0, import__.default)("input", {
|
|
514
|
+
accessibilityReadOnly: null
|
|
515
|
+
}));
|
|
516
|
+
expect(getAttribute(isEmpty, "aria-readonly")).toBeNull(), expect(getProperty(isEmpty, "readOnly")).toBe(!1);
|
|
517
|
+
const {
|
|
518
|
+
container: hasValue
|
|
519
|
+
} = (0, import_react.render)((0, import__.default)("input", {
|
|
520
|
+
accessibilityReadOnly: !0
|
|
521
|
+
}));
|
|
522
|
+
expect(getAttribute(hasValue, "aria-readonly")).toBe("true"), expect(getProperty(hasValue, "readOnly")).toBe(!0);
|
|
523
|
+
}), test("accessibilityRequired", () => {
|
|
524
|
+
const {
|
|
525
|
+
container: isEmpty
|
|
526
|
+
} = (0, import_react.render)((0, import__.default)("input", {
|
|
527
|
+
accessibilityRequired: null
|
|
528
|
+
}));
|
|
529
|
+
expect(getAttribute(isEmpty, "aria-required")).toBeNull(), expect(getProperty(isEmpty, "required")).toBe(!1);
|
|
530
|
+
const {
|
|
531
|
+
container: hasValue
|
|
532
|
+
} = (0, import_react.render)((0, import__.default)("input", {
|
|
533
|
+
accessibilityRequired: !0
|
|
534
|
+
}));
|
|
535
|
+
expect(getAttribute(hasValue, "aria-required")).toBe("true"), expect(getProperty(hasValue, "required")).toBe(!0);
|
|
536
|
+
}), test("accessibilityRole", () => {
|
|
537
|
+
const {
|
|
538
|
+
container: isEmpty
|
|
539
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
540
|
+
accessibilityRole: null
|
|
541
|
+
}));
|
|
542
|
+
expect(getAttribute(isEmpty, "role")).toBeNull();
|
|
543
|
+
const {
|
|
544
|
+
container: hasValue
|
|
545
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
546
|
+
accessibilityRole: "button"
|
|
547
|
+
}));
|
|
548
|
+
expect(getAttribute(hasValue, "role")).toBe("button"), expect(getAttribute(hasValue, "tabIndex")).toBe("0");
|
|
549
|
+
const {
|
|
550
|
+
container: roleIsNone
|
|
551
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
552
|
+
accessibilityRole: "none"
|
|
553
|
+
}));
|
|
554
|
+
expect(getAttribute(roleIsNone, "role")).toBe("presentation");
|
|
555
|
+
}), test("accessibilityRoleDescription", () => {
|
|
556
|
+
const {
|
|
557
|
+
container: isEmpty
|
|
558
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
559
|
+
accessibilityRoleDescription: null
|
|
560
|
+
}));
|
|
561
|
+
expect(getAttribute(isEmpty, "aria-roledescription")).toBeNull();
|
|
562
|
+
const {
|
|
563
|
+
container: hasValue
|
|
564
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
565
|
+
accessibilityRoleDescription: "abc"
|
|
566
|
+
}));
|
|
567
|
+
expect(getAttribute(hasValue, "aria-roledescription")).toBe("abc");
|
|
568
|
+
}), test("accessibilityRowCount", () => {
|
|
569
|
+
const {
|
|
570
|
+
container: isEmpty
|
|
571
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
572
|
+
accessibilityRowCount: null
|
|
573
|
+
}));
|
|
574
|
+
expect(getAttribute(isEmpty, "aria-rowcount")).toBeNull();
|
|
575
|
+
const {
|
|
576
|
+
container: hasValue
|
|
577
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
578
|
+
accessibilityRowCount: 5
|
|
579
|
+
}));
|
|
580
|
+
expect(getAttribute(hasValue, "aria-rowcount")).toBe("5");
|
|
581
|
+
}), test("accessibilityRowIndex", () => {
|
|
582
|
+
const {
|
|
583
|
+
container: isEmpty
|
|
584
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
585
|
+
accessibilityRowIndex: null
|
|
586
|
+
}));
|
|
587
|
+
expect(getAttribute(isEmpty, "aria-rowindex")).toBeNull();
|
|
588
|
+
const {
|
|
589
|
+
container: hasValue
|
|
590
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
591
|
+
accessibilityRowIndex: 5
|
|
592
|
+
}));
|
|
593
|
+
expect(getAttribute(hasValue, "aria-rowindex")).toBe("5");
|
|
594
|
+
}), test("accessibilityRowSpan", () => {
|
|
595
|
+
const {
|
|
596
|
+
container: isEmpty
|
|
597
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
598
|
+
accessibilityRowSpan: null
|
|
599
|
+
}));
|
|
600
|
+
expect(getAttribute(isEmpty, "aria-rowspan")).toBeNull();
|
|
601
|
+
const {
|
|
602
|
+
container: hasValue
|
|
603
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
604
|
+
accessibilityRowSpan: 5
|
|
605
|
+
}));
|
|
606
|
+
expect(getAttribute(hasValue, "aria-rowspan")).toBe("5");
|
|
607
|
+
}), test("accessibilitySelected", () => {
|
|
608
|
+
const {
|
|
609
|
+
container: isEmpty
|
|
610
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
611
|
+
accessibilitySelected: null
|
|
612
|
+
}));
|
|
613
|
+
expect(getAttribute(isEmpty, "aria-selected")).toBeNull();
|
|
614
|
+
const {
|
|
615
|
+
container: hasValue
|
|
616
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
617
|
+
accessibilitySelected: !0
|
|
618
|
+
}));
|
|
619
|
+
expect(getAttribute(hasValue, "aria-selected")).toBe("true");
|
|
620
|
+
}), test("accessibilitySetSize", () => {
|
|
621
|
+
const {
|
|
622
|
+
container: isEmpty
|
|
623
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
624
|
+
accessibilitySetSize: null
|
|
625
|
+
}));
|
|
626
|
+
expect(getAttribute(isEmpty, "aria-setsize")).toBeNull();
|
|
627
|
+
const {
|
|
628
|
+
container: hasValue
|
|
629
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
630
|
+
accessibilitySetSize: 5
|
|
631
|
+
}));
|
|
632
|
+
expect(getAttribute(hasValue, "aria-setsize")).toBe("5");
|
|
633
|
+
}), test("accessibilitySort", () => {
|
|
634
|
+
const {
|
|
635
|
+
container: isEmpty
|
|
636
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
637
|
+
accessibilitySort: null
|
|
638
|
+
}));
|
|
639
|
+
expect(getAttribute(isEmpty, "aria-sort")).toBeNull();
|
|
640
|
+
const {
|
|
641
|
+
container: hasValue
|
|
642
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
643
|
+
accessibilitySort: "ascending"
|
|
644
|
+
}));
|
|
645
|
+
expect(getAttribute(hasValue, "aria-sort")).toBe("ascending");
|
|
646
|
+
}), test("accessibilityValueMax", () => {
|
|
647
|
+
const {
|
|
648
|
+
container: isEmpty
|
|
649
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
650
|
+
accessibilityValueMax: null
|
|
651
|
+
}));
|
|
652
|
+
expect(getAttribute(isEmpty, "aria-valuemax")).toBeNull();
|
|
653
|
+
const {
|
|
654
|
+
container: hasValue
|
|
655
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
656
|
+
accessibilityValueMax: 100
|
|
657
|
+
}));
|
|
658
|
+
expect(getAttribute(hasValue, "aria-valuemax")).toBe("100");
|
|
659
|
+
}), test("accessibilityValueMin", () => {
|
|
660
|
+
const {
|
|
661
|
+
container: isEmpty
|
|
662
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
663
|
+
accessibilityValueMin: null
|
|
664
|
+
}));
|
|
665
|
+
expect(getAttribute(isEmpty, "aria-valuemin")).toBeNull();
|
|
666
|
+
const {
|
|
667
|
+
container: hasValue
|
|
668
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
669
|
+
accessibilityValueMin: 10
|
|
670
|
+
}));
|
|
671
|
+
expect(getAttribute(hasValue, "aria-valuemin")).toBe("10");
|
|
672
|
+
}), test("accessibilityValueNow", () => {
|
|
673
|
+
const {
|
|
674
|
+
container: isEmpty
|
|
675
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
676
|
+
accessibilityValueNow: null
|
|
677
|
+
}));
|
|
678
|
+
expect(getAttribute(isEmpty, "aria-valuenow")).toBeNull();
|
|
679
|
+
const {
|
|
680
|
+
container: hasValue
|
|
681
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
682
|
+
accessibilityValueNow: 50
|
|
683
|
+
}));
|
|
684
|
+
expect(getAttribute(hasValue, "aria-valuenow")).toBe("50");
|
|
685
|
+
}), test("accessibilityValueText", () => {
|
|
686
|
+
const {
|
|
687
|
+
container: isEmpty
|
|
688
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
689
|
+
accessibilityValueText: null
|
|
690
|
+
}));
|
|
691
|
+
expect(getAttribute(isEmpty, "aria-valuetext")).toBeNull();
|
|
692
|
+
const {
|
|
693
|
+
container: hasValue
|
|
694
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
695
|
+
accessibilityValueText: "fifty"
|
|
696
|
+
}));
|
|
697
|
+
expect(getAttribute(hasValue, "aria-valuetext")).toBe("fifty");
|
|
698
|
+
}), test("dataSet", () => {
|
|
699
|
+
const {
|
|
700
|
+
container: hasValue
|
|
701
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
702
|
+
dataSet: {
|
|
703
|
+
one: "1",
|
|
704
|
+
two: "2",
|
|
705
|
+
camelCase: "camelCase",
|
|
706
|
+
msPrefix: "msPrefix"
|
|
707
|
+
}
|
|
708
|
+
}));
|
|
709
|
+
expect(hasValue.firstChild).toMatchInlineSnapshot(`
|
|
710
|
+
<div
|
|
711
|
+
data-camel-case="camelCase"
|
|
712
|
+
data-ms-prefix="msPrefix"
|
|
713
|
+
data-one="1"
|
|
714
|
+
data-two="2"
|
|
715
|
+
/>
|
|
716
|
+
`);
|
|
717
|
+
}), test("focusable", () => {
|
|
718
|
+
const {
|
|
719
|
+
container: isEmpty
|
|
720
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
721
|
+
focusable: null
|
|
722
|
+
}));
|
|
723
|
+
expect(getAttribute(isEmpty, "tabindex")).toBeNull();
|
|
724
|
+
const {
|
|
725
|
+
container: isTrue
|
|
726
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
727
|
+
focusable: !0
|
|
728
|
+
}));
|
|
729
|
+
expect(getAttribute(isTrue, "tabindex")).toBe("0");
|
|
730
|
+
const {
|
|
731
|
+
container: isFalseNativelyFocusable
|
|
732
|
+
} = (0, import_react.render)((0, import__.default)("button", {
|
|
733
|
+
focusable: !1
|
|
734
|
+
}));
|
|
735
|
+
expect(getAttribute(isFalseNativelyFocusable, "tabindex")).toBe("-1");
|
|
736
|
+
const {
|
|
737
|
+
container: isDisabledNativelyFocusable
|
|
738
|
+
} = (0, import_react.render)((0, import__.default)("button", {
|
|
739
|
+
accessibilityDisabled: !0,
|
|
740
|
+
focusable: !0
|
|
741
|
+
}));
|
|
742
|
+
expect(getAttribute(isDisabledNativelyFocusable, "tabindex")).toBe("-1");
|
|
743
|
+
const {
|
|
744
|
+
container: isTrueNativelyFocusable
|
|
745
|
+
} = (0, import_react.render)((0, import__.default)("button", {
|
|
746
|
+
focusable: !0
|
|
747
|
+
}));
|
|
748
|
+
expect(getAttribute(isTrueNativelyFocusable, "tabindex")).toBeNull();
|
|
749
|
+
const {
|
|
750
|
+
container: isFocusableRole
|
|
751
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
752
|
+
accessibilityRole: "button",
|
|
753
|
+
focusable: !0
|
|
754
|
+
}));
|
|
755
|
+
expect(getAttribute(isFocusableRole, "tabindex")).toBe("0");
|
|
756
|
+
const {
|
|
757
|
+
container: isFalseFocusableRole
|
|
758
|
+
} = (0, import_react.render)((0, import__.default)("div", {
|
|
759
|
+
accessibilityRole: "button",
|
|
760
|
+
focusable: !1
|
|
761
|
+
}));
|
|
762
|
+
expect(getAttribute(isFalseFocusableRole, "tabindex")).toBe("-1");
|
|
763
|
+
});
|
|
764
|
+
});
|
|
765
|
+
});
|