react-native-a11y-order 0.9.1 → 0.11.0-rc
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/README.md +50 -336
- package/android/src/main/java/com/a11yorder/A11yOrderPackage.java +2 -6
- package/android/src/main/java/com/a11yorder/core/A11yAutoFocusView.java +61 -0
- package/android/src/main/java/com/a11yorder/{views/A11yView/A11yView.java → core/A11yScreenReaderView.java} +3 -45
- package/android/src/main/java/com/a11yorder/core/A11yViewOrder.java +37 -0
- package/android/src/main/java/com/a11yorder/views/A11yCardView/A11yCardViewManager.java +18 -0
- package/android/src/main/java/com/a11yorder/views/A11yIndexView/A11yIndexView.java +2 -65
- package/android/src/main/java/com/a11yorder/views/A11yIndexView/A11yIndexViewManager.java +27 -0
- package/android/src/newarch/A11yCardViewManagerSpec.java +9 -0
- package/android/src/oldarch/A11yCardViewManagerSpec.java +8 -0
- package/android/src/oldarch/A11yIndexViewManagerSpec.java +9 -0
- package/ios/helpers/RNAOFabricEventHelper/RNAOFabricEventHelper.mm +5 -5
- package/ios/views/RNAOA11yCardView/RNAOA11yCardView.h +29 -0
- package/ios/views/RNAOA11yCardView/RNAOA11yCardView.mm +83 -0
- package/ios/views/RNAOA11yCardView/RNAOA11yCardViewManager.h +14 -0
- package/ios/views/RNAOA11yCardView/RNAOA11yCardViewManager.mm +17 -0
- package/ios/views/RNAOA11yIndexView/RNAOA11yIndexView.h +2 -41
- package/ios/views/RNAOA11yIndexView/RNAOA11yIndexView.mm +27 -127
- package/ios/views/RNAOA11yIndexView/RNAOA11yIndexViewManager.mm +21 -0
- package/ios/views/base/RNAOA11yAutoFocusView.h +30 -0
- package/ios/views/{RNAOA11yView/RNAOA11yView.mm → base/RNAOA11yAutoFocusView.mm} +66 -168
- package/ios/views/base/RNAOA11yGroupChildrenView.h +21 -0
- package/ios/views/base/RNAOA11yGroupChildrenView.mm +19 -0
- package/ios/views/base/RNAOA11yScreenReaderView.h +24 -0
- package/ios/views/base/RNAOA11yScreenReaderView.mm +32 -0
- package/ios/views/base/RNAOA11yViewGroup.h +35 -0
- package/ios/views/base/RNAOA11yViewGroup.mm +46 -0
- package/ios/views/base/RNAOA11yViewOrder.h +40 -0
- package/ios/views/base/RNAOA11yViewOrder.mm +92 -0
- package/lib/commonjs/components/A11yCard/A11yCard.ios.js +49 -0
- package/lib/commonjs/components/A11yCard/A11yCard.ios.js.map +1 -0
- package/lib/commonjs/components/A11yCard/A11yCard.js +41 -0
- package/lib/commonjs/components/A11yCard/A11yCard.js.map +1 -0
- package/lib/commonjs/{types/A11yGroup.types.js → components/A11yCard/A11yCard.types.js} +1 -1
- package/lib/commonjs/components/A11yCard/A11yCard.types.js.map +1 -0
- package/lib/commonjs/components/A11yIndex/A11yIndex.js +88 -28
- package/lib/commonjs/components/A11yIndex/A11yIndex.js.map +1 -1
- package/lib/commonjs/components/A11yIndex/A11yIndex.types.js +39 -0
- package/lib/commonjs/components/A11yIndex/A11yIndex.types.js.map +1 -0
- package/lib/commonjs/components/A11yIndex/A11yIndex.web.js.map +1 -1
- package/lib/commonjs/components/A11yLock/A11yFocusFrame/A11yFocusFrame.js.map +1 -1
- package/lib/commonjs/components/A11yLock/A11yFocusTrap/A11yFocusTrap.js.map +1 -1
- package/lib/commonjs/components/A11yLock/A11yLock.types.js.map +1 -0
- package/lib/commonjs/components/{A11ySequence/A11ySequence.js → A11yOrder/A11yOrder.js} +3 -3
- package/lib/commonjs/components/A11yOrder/A11yOrder.js.map +1 -0
- package/lib/commonjs/{types/A11yModule.types.js → components/A11yOrder/A11yOrder.types.js} +1 -1
- package/lib/commonjs/components/A11yOrder/A11yOrder.types.js.map +1 -0
- package/lib/commonjs/components/A11yPaneTitle/A11yPaneTitle.js +6 -7
- package/lib/commonjs/components/A11yPaneTitle/A11yPaneTitle.js.map +1 -1
- package/lib/commonjs/components/A11yPaneTitle/A11yPaneTitle.types.js +6 -0
- package/lib/commonjs/components/A11yPaneTitle/A11yPaneTitle.types.js.map +1 -0
- package/lib/commonjs/components/A11yView/A11yView.js +7 -33
- package/lib/commonjs/components/A11yView/A11yView.js.map +1 -1
- package/lib/commonjs/components/A11yView/A11yView.types.js.map +1 -0
- package/lib/commonjs/index.js +17 -8
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +10 -4
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/nativeSpecs/{A11yGroupNativeComponent.ts → A11yCardNativeComponent.ts} +3 -3
- package/lib/commonjs/nativeSpecs/A11yIndexNativeComponent.ts +12 -3
- package/lib/module/components/A11yCard/A11yCard.ios.js +43 -0
- package/lib/module/components/A11yCard/A11yCard.ios.js.map +1 -0
- package/lib/module/components/A11yCard/A11yCard.js +35 -0
- package/lib/module/components/A11yCard/A11yCard.js.map +1 -0
- package/lib/module/components/A11yCard/A11yCard.types.js +4 -0
- package/lib/module/components/A11yCard/A11yCard.types.js.map +1 -0
- package/lib/module/components/A11yIndex/A11yIndex.js +88 -28
- package/lib/module/components/A11yIndex/A11yIndex.js.map +1 -1
- package/lib/module/components/A11yIndex/A11yIndex.types.js +35 -0
- package/lib/module/components/A11yIndex/A11yIndex.types.js.map +1 -0
- package/lib/module/components/A11yIndex/A11yIndex.web.js.map +1 -1
- package/lib/module/components/A11yLock/A11yFocusFrame/A11yFocusFrame.js.map +1 -1
- package/lib/module/components/A11yLock/A11yFocusTrap/A11yFocusTrap.js.map +1 -1
- package/lib/module/components/A11yLock/A11yLock.types.js.map +1 -0
- package/lib/module/components/{A11ySequence/A11ySequence.js → A11yOrder/A11yOrder.js} +2 -2
- package/lib/module/components/A11yOrder/A11yOrder.js.map +1 -0
- package/lib/module/components/A11yOrder/A11yOrder.types.js +4 -0
- package/lib/module/components/A11yOrder/A11yOrder.types.js.map +1 -0
- package/lib/module/components/A11yPaneTitle/A11yPaneTitle.js +6 -7
- package/lib/module/components/A11yPaneTitle/A11yPaneTitle.js.map +1 -1
- package/lib/module/components/A11yPaneTitle/A11yPaneTitle.types.js +4 -0
- package/lib/module/components/A11yPaneTitle/A11yPaneTitle.types.js.map +1 -0
- package/lib/module/components/A11yView/A11yView.js +7 -31
- package/lib/module/components/A11yView/A11yView.js.map +1 -1
- package/lib/module/components/A11yView/A11yView.types.js.map +1 -0
- package/lib/module/index.js +12 -8
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +4 -4
- package/lib/module/index.web.js.map +1 -1
- package/{src/nativeSpecs/A11yGroupNativeComponent.ts → lib/module/nativeSpecs/A11yCardNativeComponent.ts} +3 -3
- package/lib/module/nativeSpecs/A11yIndexNativeComponent.ts +12 -3
- package/lib/typescript/src/components/A11yCard/A11yCard.d.ts +5 -0
- package/lib/typescript/src/components/A11yCard/A11yCard.d.ts.map +1 -0
- package/lib/typescript/src/components/A11yCard/A11yCard.ios.d.ts +5 -0
- package/lib/typescript/src/components/A11yCard/A11yCard.ios.d.ts.map +1 -0
- package/lib/typescript/src/components/A11yCard/A11yCard.types.d.ts +38 -0
- package/lib/typescript/src/components/A11yCard/A11yCard.types.d.ts.map +1 -0
- package/lib/typescript/src/components/A11yIndex/A11yIndex.d.ts +15 -10
- package/lib/typescript/src/components/A11yIndex/A11yIndex.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yIndex/A11yIndex.types.d.ts +105 -0
- package/lib/typescript/src/components/A11yIndex/A11yIndex.types.d.ts.map +1 -0
- package/lib/typescript/src/components/A11yIndex/A11yIndex.web.d.ts +14 -10
- package/lib/typescript/src/components/A11yIndex/A11yIndex.web.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yLock/A11yBaseLock/A11yBaseLock.d.ts +1 -1
- package/lib/typescript/src/components/A11yLock/A11yBaseLock/A11yBaseLock.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yLock/A11yFocusFrame/A11yFocusFrame.android.d.ts +1 -1
- package/lib/typescript/src/components/A11yLock/A11yFocusFrame/A11yFocusFrame.android.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yLock/A11yFocusFrame/A11yFocusFrame.d.ts +2 -2
- package/lib/typescript/src/components/A11yLock/A11yFocusFrame/A11yFocusFrame.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.android.d.ts +1 -1
- package/lib/typescript/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.android.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.d.ts +2 -2
- package/lib/typescript/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yLock/A11yLock.types.d.ts +35 -0
- package/lib/typescript/src/components/A11yLock/A11yLock.types.d.ts.map +1 -0
- package/lib/typescript/src/components/{A11ySequence/A11ySequence.d.ts → A11yOrder/A11yOrder.d.ts} +4 -2
- package/lib/typescript/src/components/A11yOrder/A11yOrder.d.ts.map +1 -0
- package/lib/typescript/src/components/A11yOrder/A11yOrder.types.d.ts +11 -0
- package/lib/typescript/src/components/A11yOrder/A11yOrder.types.d.ts.map +1 -0
- package/lib/typescript/src/components/A11yPaneTitle/A11yPaneTitle.d.ts +3 -17
- package/lib/typescript/src/components/A11yPaneTitle/A11yPaneTitle.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yPaneTitle/A11yPaneTitle.types.d.ts +52 -0
- package/lib/typescript/src/components/A11yPaneTitle/A11yPaneTitle.types.d.ts.map +1 -0
- package/lib/typescript/src/components/A11yView/A11yView.d.ts +13 -6
- package/lib/typescript/src/components/A11yView/A11yView.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yView/A11yView.types.d.ts +10 -0
- package/lib/typescript/src/components/A11yView/A11yView.types.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +32 -36
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/index.web.d.ts +22 -22
- package/lib/typescript/src/index.web.d.ts.map +1 -1
- package/lib/typescript/src/nativeSpecs/A11yCardNativeComponent.d.ts +8 -0
- package/lib/typescript/src/nativeSpecs/A11yCardNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/nativeSpecs/A11yIndexNativeComponent.d.ts +10 -3
- package/lib/typescript/src/nativeSpecs/A11yIndexNativeComponent.d.ts.map +1 -1
- package/package.json +12 -11
- package/src/components/A11yCard/A11yCard.ios.tsx +44 -0
- package/src/components/A11yCard/A11yCard.tsx +35 -0
- package/src/components/A11yCard/A11yCard.types.ts +50 -0
- package/src/components/A11yIndex/A11yIndex.tsx +144 -52
- package/src/components/A11yIndex/A11yIndex.types.ts +124 -0
- package/src/components/A11yIndex/A11yIndex.web.tsx +12 -17
- package/src/components/A11yLock/A11yBaseLock/A11yBaseLock.tsx +1 -1
- package/src/components/A11yLock/A11yFocusFrame/A11yFocusFrame.android.tsx +1 -1
- package/src/components/A11yLock/A11yFocusFrame/A11yFocusFrame.tsx +3 -2
- package/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.android.tsx +1 -1
- package/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.tsx +2 -2
- package/src/components/A11yLock/A11yLock.types.ts +38 -0
- package/src/components/{A11ySequence/A11ySequence.tsx → A11yOrder/A11yOrder.tsx} +4 -2
- package/src/components/A11yOrder/A11yOrder.types.ts +11 -0
- package/src/components/A11yPaneTitle/A11yPaneTitle.tsx +13 -19
- package/src/components/A11yPaneTitle/A11yPaneTitle.types.ts +58 -0
- package/src/components/A11yView/A11yView.tsx +8 -63
- package/src/components/A11yView/A11yView.types.ts +11 -0
- package/src/index.ts +26 -19
- package/src/index.web.ts +6 -13
- package/{lib/module/nativeSpecs/A11yGroupNativeComponent.ts → src/nativeSpecs/A11yCardNativeComponent.ts} +3 -3
- package/src/nativeSpecs/A11yIndexNativeComponent.ts +12 -3
- package/android/src/main/java/com/a11yorder/views/A11yGroupView/A11yGroupViewManager.java +0 -25
- package/android/src/main/java/com/a11yorder/views/A11yUIContainerView/A11yUIContainerViewManager.java +0 -30
- package/android/src/main/java/com/a11yorder/views/A11yView/A11yViewManager.java +0 -67
- package/android/src/newarch/A11yGroupViewManagerSpec.java +0 -9
- package/android/src/newarch/A11yUIContainerViewManagerSpec.java +0 -8
- package/android/src/newarch/A11yViewSpec.java +0 -13
- package/android/src/oldarch/A11yGroupViewManagerSpec.java +0 -8
- package/android/src/oldarch/A11yUIContainerViewManagerSpec.java +0 -9
- package/android/src/oldarch/A11yViewSpec.java +0 -18
- package/ios/views/RNAOA11yGroupView/RNAOA11yGroupView.h +0 -37
- package/ios/views/RNAOA11yGroupView/RNAOA11yGroupView.mm +0 -67
- package/ios/views/RNAOA11yGroupView/RNAOA11yGroupViewManager.h +0 -18
- package/ios/views/RNAOA11yGroupView/RNAOA11yGroupViewManager.mm +0 -25
- package/ios/views/RNAOA11yUIContainerView/RNAOA11yUIContainerView.h +0 -35
- package/ios/views/RNAOA11yUIContainerView/RNAOA11yUIContainerView.mm +0 -79
- package/ios/views/RNAOA11yUIContainerView/RNAOA11yUIContainerViewManager.h +0 -18
- package/ios/views/RNAOA11yUIContainerView/RNAOA11yUIContainerViewManager.mm +0 -27
- package/ios/views/RNAOA11yView/RNAOA11yView.h +0 -45
- package/ios/views/RNAOA11yView/RNAOA11yViewManager.h +0 -14
- package/ios/views/RNAOA11yView/RNAOA11yViewManager.mm +0 -53
- package/lib/commonjs/components/A11yGroup/A11yGroup.android.js +0 -18
- package/lib/commonjs/components/A11yGroup/A11yGroup.android.js.map +0 -1
- package/lib/commonjs/components/A11yGroup/A11yGroup.ios.js +0 -24
- package/lib/commonjs/components/A11yGroup/A11yGroup.ios.js.map +0 -1
- package/lib/commonjs/components/A11yGroup/A11yGroup.js +0 -9
- package/lib/commonjs/components/A11yGroup/A11yGroup.js.map +0 -1
- package/lib/commonjs/components/A11ySequence/A11ySequence.js.map +0 -1
- package/lib/commonjs/components/A11yUIContainer/A11yUIContainer.ios.js +0 -22
- package/lib/commonjs/components/A11yUIContainer/A11yUIContainer.ios.js.map +0 -1
- package/lib/commonjs/components/A11yUIContainer/A11yUIContainer.js +0 -9
- package/lib/commonjs/components/A11yUIContainer/A11yUIContainer.js.map +0 -1
- package/lib/commonjs/nativeSpecs/A11yUIContainerNativeComponent.ts +0 -12
- package/lib/commonjs/nativeSpecs/A11yViewNativeComponent.ts +0 -36
- package/lib/commonjs/types/A11yGroup.types.js.map +0 -1
- package/lib/commonjs/types/A11yIndex.types.js +0 -13
- package/lib/commonjs/types/A11yIndex.types.js.map +0 -1
- package/lib/commonjs/types/A11yLock.types.js.map +0 -1
- package/lib/commonjs/types/A11yModule.types.js.map +0 -1
- package/lib/commonjs/types/A11yUIContainerView.types.js +0 -15
- package/lib/commonjs/types/A11yUIContainerView.types.js.map +0 -1
- package/lib/commonjs/types/A11yView.types.js.map +0 -1
- package/lib/module/components/A11yGroup/A11yGroup.android.js +0 -12
- package/lib/module/components/A11yGroup/A11yGroup.android.js.map +0 -1
- package/lib/module/components/A11yGroup/A11yGroup.ios.js +0 -18
- package/lib/module/components/A11yGroup/A11yGroup.ios.js.map +0 -1
- package/lib/module/components/A11yGroup/A11yGroup.js +0 -5
- package/lib/module/components/A11yGroup/A11yGroup.js.map +0 -1
- package/lib/module/components/A11ySequence/A11ySequence.js.map +0 -1
- package/lib/module/components/A11yUIContainer/A11yUIContainer.ios.js +0 -17
- package/lib/module/components/A11yUIContainer/A11yUIContainer.ios.js.map +0 -1
- package/lib/module/components/A11yUIContainer/A11yUIContainer.js +0 -5
- package/lib/module/components/A11yUIContainer/A11yUIContainer.js.map +0 -1
- package/lib/module/nativeSpecs/A11yUIContainerNativeComponent.ts +0 -12
- package/lib/module/nativeSpecs/A11yViewNativeComponent.ts +0 -36
- package/lib/module/types/A11yGroup.types.js +0 -4
- package/lib/module/types/A11yGroup.types.js.map +0 -1
- package/lib/module/types/A11yIndex.types.js +0 -9
- package/lib/module/types/A11yIndex.types.js.map +0 -1
- package/lib/module/types/A11yLock.types.js.map +0 -1
- package/lib/module/types/A11yModule.types.js +0 -4
- package/lib/module/types/A11yModule.types.js.map +0 -1
- package/lib/module/types/A11yUIContainerView.types.js +0 -11
- package/lib/module/types/A11yUIContainerView.types.js.map +0 -1
- package/lib/module/types/A11yView.types.js.map +0 -1
- package/lib/typescript/src/components/A11yGroup/A11yGroup.android.d.ts +0 -4
- package/lib/typescript/src/components/A11yGroup/A11yGroup.android.d.ts.map +0 -1
- package/lib/typescript/src/components/A11yGroup/A11yGroup.d.ts +0 -3
- package/lib/typescript/src/components/A11yGroup/A11yGroup.d.ts.map +0 -1
- package/lib/typescript/src/components/A11yGroup/A11yGroup.ios.d.ts +0 -4
- package/lib/typescript/src/components/A11yGroup/A11yGroup.ios.d.ts.map +0 -1
- package/lib/typescript/src/components/A11ySequence/A11ySequence.d.ts.map +0 -1
- package/lib/typescript/src/components/A11yUIContainer/A11yUIContainer.d.ts +0 -3
- package/lib/typescript/src/components/A11yUIContainer/A11yUIContainer.d.ts.map +0 -1
- package/lib/typescript/src/components/A11yUIContainer/A11yUIContainer.ios.d.ts +0 -4
- package/lib/typescript/src/components/A11yUIContainer/A11yUIContainer.ios.d.ts.map +0 -1
- package/lib/typescript/src/nativeSpecs/A11yGroupNativeComponent.d.ts +0 -8
- package/lib/typescript/src/nativeSpecs/A11yGroupNativeComponent.d.ts.map +0 -1
- package/lib/typescript/src/nativeSpecs/A11yUIContainerNativeComponent.d.ts +0 -10
- package/lib/typescript/src/nativeSpecs/A11yUIContainerNativeComponent.d.ts.map +0 -1
- package/lib/typescript/src/nativeSpecs/A11yViewNativeComponent.d.ts +0 -26
- package/lib/typescript/src/nativeSpecs/A11yViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/src/types/A11yGroup.types.d.ts +0 -7
- package/lib/typescript/src/types/A11yGroup.types.d.ts.map +0 -1
- package/lib/typescript/src/types/A11yIndex.types.d.ts +0 -19
- package/lib/typescript/src/types/A11yIndex.types.d.ts.map +0 -1
- package/lib/typescript/src/types/A11yLock.types.d.ts +0 -8
- package/lib/typescript/src/types/A11yLock.types.d.ts.map +0 -1
- package/lib/typescript/src/types/A11yModule.types.d.ts +0 -7
- package/lib/typescript/src/types/A11yModule.types.d.ts.map +0 -1
- package/lib/typescript/src/types/A11yUIContainerView.types.d.ts +0 -13
- package/lib/typescript/src/types/A11yUIContainerView.types.d.ts.map +0 -1
- package/lib/typescript/src/types/A11yView.types.d.ts +0 -12
- package/lib/typescript/src/types/A11yView.types.d.ts.map +0 -1
- package/src/components/A11yGroup/A11yGroup.android.tsx +0 -8
- package/src/components/A11yGroup/A11yGroup.ios.tsx +0 -11
- package/src/components/A11yGroup/A11yGroup.tsx +0 -5
- package/src/components/A11yUIContainer/A11yUIContainer.ios.tsx +0 -20
- package/src/components/A11yUIContainer/A11yUIContainer.tsx +0 -5
- package/src/nativeSpecs/A11yUIContainerNativeComponent.ts +0 -12
- package/src/nativeSpecs/A11yViewNativeComponent.ts +0 -36
- package/src/types/A11yGroup.types.ts +0 -9
- package/src/types/A11yIndex.types.ts +0 -21
- package/src/types/A11yLock.types.ts +0 -8
- package/src/types/A11yModule.types.ts +0 -7
- package/src/types/A11yUIContainerView.types.ts +0 -15
- package/src/types/A11yView.types.ts +0 -19
- /package/lib/commonjs/{types → components/A11yLock}/A11yLock.types.js +0 -0
- /package/lib/commonjs/{types → components/A11yView}/A11yView.types.js +0 -0
- /package/lib/module/{types → components/A11yLock}/A11yLock.types.js +0 -0
- /package/lib/module/{types → components/A11yView}/A11yView.types.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_A11yCardNativeComponent","_jsxRuntime","e","__esModule","default","A11yCard","containerProps","style","testID","onPress","accessibility","pressableProps","children","jsxs","styles","container","jsx","View","accessibilityRole","accessible","pointerEvents","onAccessibilityTap","overlay","Pressable","exports","StyleSheet","create","position","absoluteFillObject"],"sourceRoot":"../../../../src","sources":["components/A11yCard/A11yCard.ios.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAH,sBAAA,CAAAC,OAAA;AAA6D,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAKtD,MAAMG,QAAQ,GAAGA,CAAC;EACvBC,cAAc;EACdC,KAAK;EACLC,MAAM;EACNC,OAAO;EACPC,aAAa;EACbC,cAAc;EACdC;AACa,CAAC,KAAK;EACnB,oBACE,IAAAX,WAAA,CAAAY,IAAA,EAACb,wBAAA,CAAAI,OAAI;IAAA,GAAKE,cAAc;IAAEC,KAAK,EAAE,CAACO,MAAM,CAACC,SAAS,EAAET,cAAc,EAAEC,KAAK,CAAE;IAAAK,QAAA,gBACzE,IAAAX,WAAA,CAAAe,GAAA,EAACjB,YAAA,CAAAkB,IAAI;MACHT,MAAM,EAAE,GAAGA,MAAM,UAAW;MAC5BU,iBAAiB,EAAC,QAAQ;MAAA,GACtBR,aAAa;MACjBS,UAAU;MACVC,aAAa,EAAC,MAAM;MACpBC,kBAAkB,EAAEZ,OAAQ;MAC5BF,KAAK,EAAEO,MAAM,CAACQ;IAAQ,CACvB,CAAC,eACF,IAAArB,WAAA,CAAAe,GAAA,EAACjB,YAAA,CAAAwB,SAAS;MAAA,GACJZ,cAAc;MAClBQ,UAAU,EAAE,KAAM;MAClBV,OAAO,EAAEA,OAAQ;MACjBD,MAAM,EAAEA,MAAO;MACfD,KAAK,EAAEA,KAAM;MAAAK,QAAA,EAEZA;IAAQ,CACA,CAAC;EAAA,CACR,CAAC;AAEX,CAAC;AAACY,OAAA,CAAAnB,QAAA,GAAAA,QAAA;AAEF,MAAMS,MAAM,GAAGW,uBAAU,CAACC,MAAM,CAAC;EAC/BX,SAAS,EAAE;IAAEY,QAAQ,EAAE;EAAW,CAAC;EACnCL,OAAO,EAAEG,uBAAU,CAACG;AACtB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.A11yCard = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
const A11yCard = ({
|
|
12
|
+
containerProps,
|
|
13
|
+
style,
|
|
14
|
+
testID,
|
|
15
|
+
onPress,
|
|
16
|
+
accessibility,
|
|
17
|
+
pressableProps,
|
|
18
|
+
children
|
|
19
|
+
}) => {
|
|
20
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
21
|
+
collapsable: false,
|
|
22
|
+
...containerProps,
|
|
23
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
24
|
+
...pressableProps,
|
|
25
|
+
accessibilityRole: "button",
|
|
26
|
+
...accessibility,
|
|
27
|
+
accessible: true,
|
|
28
|
+
onPress: onPress,
|
|
29
|
+
testID: testID,
|
|
30
|
+
style: [style, styles.container],
|
|
31
|
+
children: children
|
|
32
|
+
})
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
exports.A11yCard = A11yCard;
|
|
36
|
+
const styles = _reactNative.StyleSheet.create({
|
|
37
|
+
container: {
|
|
38
|
+
position: 'relative'
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=A11yCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_jsxRuntime","e","__esModule","default","A11yCard","containerProps","style","testID","onPress","accessibility","pressableProps","children","jsx","View","collapsable","Pressable","accessibilityRole","accessible","styles","container","exports","StyleSheet","create","position"],"sourceRoot":"../../../../src","sources":["components/A11yCard/A11yCard.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAA2D,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAKpD,MAAMG,QAAQ,GAAGA,CAAC;EACvBC,cAAc;EACdC,KAAK;EACLC,MAAM;EACNC,OAAO;EACPC,aAAa;EACbC,cAAc;EACdC;AACa,CAAC,KAAK;EACnB,oBACE,IAAAX,WAAA,CAAAY,GAAA,EAACb,YAAA,CAAAc,IAAI;IAACC,WAAW,EAAE,KAAM;IAAA,GAAKT,cAAc;IAAAM,QAAA,eAC1C,IAAAX,WAAA,CAAAY,GAAA,EAACb,YAAA,CAAAgB,SAAS;MAAA,GACJL,cAAc;MAClBM,iBAAiB,EAAC,QAAQ;MAAA,GACtBP,aAAa;MACjBQ,UAAU;MACVT,OAAO,EAAEA,OAAQ;MACjBD,MAAM,EAAEA,MAAO;MACfD,KAAK,EAAE,CAACA,KAAK,EAAEY,MAAM,CAACC,SAAS,CAAE;MAAAR,QAAA,EAEhCA;IAAQ,CACA;EAAC,CACR,CAAC;AAEX,CAAC;AAACS,OAAA,CAAAhB,QAAA,GAAAA,QAAA;AAEF,MAAMc,MAAM,GAAGG,uBAAU,CAACC,MAAM,CAAC;EAC/BH,SAAS,EAAE;IAAEI,QAAQ,EAAE;EAAW;AACpC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/A11yCard/A11yCard.types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -7,51 +7,111 @@ exports.A11yIndex = void 0;
|
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _A11ySequenceOrderContext = require("../../context/A11ySequenceOrderContext");
|
|
9
9
|
var _A11yIndexNativeComponent = _interopRequireWildcard(require("../../nativeSpecs/A11yIndexNativeComponent"));
|
|
10
|
-
var _A11yIndex = require("
|
|
10
|
+
var _A11yIndex = require("./A11yIndex.types");
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
index,
|
|
16
|
-
orderType = 'default',
|
|
13
|
+
function useScreenReaderProps({
|
|
14
|
+
onScreenReaderFocused,
|
|
17
15
|
onScreenReaderSubViewFocusChange,
|
|
18
16
|
onScreenReaderSubViewFocused,
|
|
19
17
|
onScreenReaderSubViewBlurred,
|
|
20
|
-
|
|
21
|
-
}
|
|
18
|
+
onScreenReaderDescendantFocusChanged
|
|
19
|
+
}) {
|
|
22
20
|
const hasHandler = Boolean(onScreenReaderSubViewBlurred || onScreenReaderSubViewFocused || onScreenReaderSubViewFocusChange);
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
const onScreenReaderFocusChange = _react.default.useCallback(event => {
|
|
22
|
+
const {
|
|
23
|
+
isFocused
|
|
24
|
+
} = event.nativeEvent;
|
|
25
|
+
onScreenReaderSubViewFocusChange?.(isFocused);
|
|
26
|
+
if (isFocused) {
|
|
26
27
|
onScreenReaderSubViewFocused?.();
|
|
27
28
|
} else {
|
|
28
29
|
onScreenReaderSubViewBlurred?.();
|
|
29
30
|
}
|
|
30
31
|
}, [onScreenReaderSubViewFocusChange, onScreenReaderSubViewBlurred, onScreenReaderSubViewFocused]);
|
|
31
|
-
|
|
32
|
+
return {
|
|
33
|
+
onScreenReaderFocused,
|
|
34
|
+
onScreenReaderFocusChange: hasHandler ? onScreenReaderFocusChange : undefined,
|
|
35
|
+
descendantFocusChangedEnabled: Boolean(onScreenReaderDescendantFocusChanged),
|
|
36
|
+
onScreenReaderDescendantFocusChanged
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function useFocusRef(ref) {
|
|
40
|
+
const localRef = (0, _react.useRef)(null);
|
|
41
|
+
(0, _react.useImperativeHandle)(ref, () => {
|
|
42
|
+
const native = localRef.current;
|
|
43
|
+
return new Proxy({}, {
|
|
44
|
+
get(_target, prop) {
|
|
45
|
+
if (prop === 'focus') {
|
|
46
|
+
return () => {
|
|
47
|
+
if (localRef.current) {
|
|
48
|
+
// @ts-expect-error Commands.focus type is too generic in codegen
|
|
49
|
+
_A11yIndexNativeComponent.Commands.focus(localRef.current);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
return native?.[prop];
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
return localRef;
|
|
58
|
+
}
|
|
59
|
+
function useOrderProps(index, orderType, importantForAccessibilityProp) {
|
|
32
60
|
const orderKey = _react.default.useContext(_A11ySequenceOrderContext.A11ySequenceOrderContext);
|
|
33
|
-
|
|
61
|
+
const hasOrderInfo = typeof index === 'number' || !!orderKey;
|
|
62
|
+
if (hasOrderInfo && !orderKey) {
|
|
34
63
|
throw new Error('<A11y.Index> element should be used inside of <A11y.Order> container');
|
|
35
64
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
65
|
+
const resolvedOrderType = orderType ?? 'default';
|
|
66
|
+
const importantForAccessibilityFallback = resolvedOrderType === 'default' ? 'yes' : undefined;
|
|
67
|
+
return {
|
|
68
|
+
orderKey,
|
|
69
|
+
orderFocusType: hasOrderInfo ? _A11yIndex.A11yOrderTypeEnum[resolvedOrderType] : undefined,
|
|
70
|
+
importantForAccessibility: importantForAccessibilityProp ?? importantForAccessibilityFallback
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
const A11yIndex = exports.A11yIndex = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.forwardRef(({
|
|
74
|
+
children,
|
|
75
|
+
index,
|
|
76
|
+
orderType,
|
|
77
|
+
a11yUIContainer,
|
|
78
|
+
shouldGroupAccessibilityChildren,
|
|
79
|
+
...props
|
|
80
|
+
}, ref) => {
|
|
81
|
+
const {
|
|
82
|
+
onScreenReaderFocused,
|
|
83
|
+
onScreenReaderSubViewFocusChange,
|
|
84
|
+
onScreenReaderSubViewFocused,
|
|
85
|
+
onScreenReaderSubViewBlurred,
|
|
86
|
+
onScreenReaderDescendantFocusChanged,
|
|
87
|
+
importantForAccessibility: importantForAccessibilityProp,
|
|
88
|
+
...viewProps
|
|
89
|
+
} = props;
|
|
90
|
+
const containerTypeValue = a11yUIContainer ? _A11yIndex.A11yContainerTypeEnum[a11yUIContainer] : undefined;
|
|
91
|
+
const shouldGroupChildrenValue = shouldGroupAccessibilityChildren === undefined ? -1 : shouldGroupAccessibilityChildren ? 1 : 0;
|
|
92
|
+
const screenReaderNativeProps = useScreenReaderProps({
|
|
93
|
+
onScreenReaderFocused,
|
|
94
|
+
onScreenReaderSubViewFocusChange,
|
|
95
|
+
onScreenReaderSubViewFocused,
|
|
96
|
+
onScreenReaderSubViewBlurred,
|
|
97
|
+
onScreenReaderDescendantFocusChanged
|
|
98
|
+
});
|
|
99
|
+
const {
|
|
100
|
+
orderKey,
|
|
101
|
+
orderFocusType,
|
|
102
|
+
importantForAccessibility
|
|
103
|
+
} = useOrderProps(index, orderType, importantForAccessibilityProp);
|
|
104
|
+
const localRef = useFocusRef(ref);
|
|
47
105
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_A11yIndexNativeComponent.default, {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
106
|
+
ref: localRef,
|
|
107
|
+
...viewProps,
|
|
108
|
+
containerType: containerTypeValue,
|
|
109
|
+
shouldGroupAccessibilityChildren: shouldGroupChildrenValue,
|
|
110
|
+
importantForAccessibility: importantForAccessibility,
|
|
111
|
+
orderFocusType: orderFocusType,
|
|
51
112
|
orderIndex: index,
|
|
52
113
|
orderKey: orderKey,
|
|
53
|
-
...
|
|
54
|
-
onScreenReaderFocusChange: onScreenReaderHandlerProp,
|
|
114
|
+
...screenReaderNativeProps,
|
|
55
115
|
children: children
|
|
56
116
|
});
|
|
57
117
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_A11ySequenceOrderContext","_A11yIndexNativeComponent","_A11yIndex","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_A11ySequenceOrderContext","_A11yIndexNativeComponent","_A11yIndex","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","useScreenReaderProps","onScreenReaderFocused","onScreenReaderSubViewFocusChange","onScreenReaderSubViewFocused","onScreenReaderSubViewBlurred","onScreenReaderDescendantFocusChanged","hasHandler","Boolean","onScreenReaderFocusChange","React","useCallback","event","isFocused","nativeEvent","undefined","descendantFocusChangedEnabled","useFocusRef","ref","localRef","useRef","useImperativeHandle","native","current","Proxy","_target","prop","Commands","focus","useOrderProps","index","orderType","importantForAccessibilityProp","orderKey","useContext","A11ySequenceOrderContext","hasOrderInfo","Error","resolvedOrderType","importantForAccessibilityFallback","orderFocusType","A11yOrderTypeEnum","importantForAccessibility","A11yIndex","exports","memo","forwardRef","children","a11yUIContainer","shouldGroupAccessibilityChildren","props","viewProps","containerTypeValue","A11yContainerTypeEnum","shouldGroupChildrenValue","screenReaderNativeProps","jsx","containerType","orderIndex"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.A11yOrderTypeEnum = exports.A11yContainerTypeEnum = void 0;
|
|
7
|
+
/** Ref handle for {@link A11y.Index} — exposes `focus()` to move screen reader focus programmatically. */
|
|
8
|
+
|
|
9
|
+
/** Numeric backing values for {@link A11yOrderType}. Kept for consumers who need the raw number. */
|
|
10
|
+
const A11yOrderTypeEnum = exports.A11yOrderTypeEnum = {
|
|
11
|
+
default: 0,
|
|
12
|
+
child: 1,
|
|
13
|
+
subview: 2
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal Numeric backing values for {@link A11yUIContainerType}. */
|
|
17
|
+
const A11yContainerTypeEnum = exports.A11yContainerTypeEnum = {
|
|
18
|
+
none: 0,
|
|
19
|
+
table: 1,
|
|
20
|
+
list: 2,
|
|
21
|
+
landmark: 3,
|
|
22
|
+
group: 4
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* iOS only — sets `UIAccessibilityContainerType` on the wrapping view.
|
|
27
|
+
* Tells VoiceOver what kind of container this is: `'list'`, `'table'`, `'landmark'`, etc.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Controls which element receives screen reader focus for this index slot.
|
|
32
|
+
*
|
|
33
|
+
* - `'default'` — the `A11y.Index` view itself
|
|
34
|
+
* - `'child'` — the first accessible child (useful when the index wrapper has no visual presence)
|
|
35
|
+
* - `'subview'` — first accessible child via an older traversal path
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
/** The native event payload emitted by `onScreenReaderDescendantFocusChanged`. */
|
|
39
|
+
//# sourceMappingURL=A11yIndex.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["A11yOrderTypeEnum","exports","default","child","subview","A11yContainerTypeEnum","none","table","list","landmark","group"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.types.ts"],"mappings":";;;;;;AAIA;;AAMA;AACO,MAAMA,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,OAAO,EAAE,CAAC;EACVC,KAAK,EAAE,CAAC;EACRC,OAAO,EAAE;AACX,CAAU;;AAEV;AACO,MAAMC,qBAAqB,GAAAJ,OAAA,CAAAI,qBAAA,GAAG;EACnCC,IAAI,EAAE,CAAC;EACPC,KAAK,EAAE,CAAC;EACRC,IAAI,EAAE,CAAC;EACPC,QAAQ,EAAE,CAAC;EACXC,KAAK,EAAE;AACT,CAAU;;AAEV;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","WebUiManager","UIManager","A11yIndex","exports","forwardRef","props","ref","viewRef","useRef","useImperativeHandle","focus","current","jsx","View"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.web.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","WebUiManager","UIManager","A11yIndex","exports","forwardRef","props","ref","viewRef","useRef","useImperativeHandle","focus","current","jsx","View"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.web.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAGA,IAAAC,YAAA,GAAAD,OAAA;AAAyC,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,wBAAAI,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAN,uBAAA,YAAAA,CAAAI,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAGzC,MAAMkB,YAAY,GAAGC,sBAEpB;AAEM,MAAMC,SAAS,GAAAC,OAAA,CAAAD,SAAA,gBAAG,IAAAE,iBAAU,EAAqB,CAACC,KAAK,EAAEC,GAAG,KAAK;EACtE,MAAMC,OAAO,GAAG,IAAAC,aAAM,EAAO,IAAI,CAAC;EAClC,IAAAC,0BAAmB,EAACH,GAAG,EAAE,OAAO;IAC9BI,KAAK,EAAEA,CAAA,KAAM;MACX,IAAIH,OAAO,CAACI,OAAO,EAAE;QACnBX,YAAY,CAACU,KAAK,CAACH,OAAO,CAACI,OAAO,CAAC;MACrC;IACF;EACF,CAAC,CAAC,CAAC;EAEH,oBAAO,IAAA/B,WAAA,CAAAgC,GAAA,EAACjC,YAAA,CAAAkC,IAAI;IAAA,GAAKR,KAAK;IAAEC,GAAG,EAAEC;EAAe,CAAE,CAAC;AACjD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_A11yFocusFrameProviderContext","_jsxRuntime","e","__esModule","default","A11yFocusFrame","props","jsx","A11yFrameProvider","children","View","exports"],"sourceRoot":"../../../../../src","sources":["components/A11yLock/A11yFocusFrame/A11yFocusFrame.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,8BAAA,GAAAF,OAAA;AAAmF,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_A11yFocusFrameProviderContext","_jsxRuntime","e","__esModule","default","A11yFocusFrame","props","jsx","A11yFrameProvider","children","View","exports"],"sourceRoot":"../../../../../src","sources":["components/A11yLock/A11yFocusFrame/A11yFocusFrame.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,8BAAA,GAAAF,OAAA;AAAmF,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAG5E,MAAMG,cAAc,GAAIC,KAA0B,iBACvD,IAAAL,WAAA,CAAAM,GAAA,EAACP,8BAAA,CAAAQ,iBAAiB;EAAAC,QAAA,eAChB,IAAAR,WAAA,CAAAM,GAAA,EAACR,YAAA,CAAAW,IAAI;IAAA,GAAKJ;EAAK,CAAG;AAAC,CACF,CACpB;AAACK,OAAA,CAAAN,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_A11yFocusTrapMountWrapper","_A11yBaseLock","_jsxRuntime","e","__esModule","default","A11yFocusTrap","forceLock","props","jsx","A11yFocusTrapMountWrapper","children","A11yBaseLock","collapsable","accessibilityViewIsModal","View","exports"],"sourceRoot":"../../../../../src","sources":["components/A11yLock/A11yFocusTrap/A11yFocusTrap.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,0BAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AAA4D,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAErD,MAAMG,aAAa,GAAGA,CAAC;EAC5BC,SAAS,GAAG,KAAK;EACjB,GAAGC;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_A11yFocusTrapMountWrapper","_A11yBaseLock","_jsxRuntime","e","__esModule","default","A11yFocusTrap","forceLock","props","jsx","A11yFocusTrapMountWrapper","children","A11yBaseLock","collapsable","accessibilityViewIsModal","View","exports"],"sourceRoot":"../../../../../src","sources":["components/A11yLock/A11yFocusTrap/A11yFocusTrap.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,0BAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AAA4D,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAErD,MAAMG,aAAa,GAAGA,CAAC;EAC5BC,SAAS,GAAG,KAAK;EACjB,GAAGC;AACe,CAAC,KAAK;EACxB,IAAID,SAAS,EAAE;IACb,oBACE,IAAAL,WAAA,CAAAO,GAAA,EAACT,0BAAA,CAAAU,yBAAyB;MAAAC,QAAA,eACxB,IAAAT,WAAA,CAAAO,GAAA,EAACR,aAAA,CAAAW,YAAY;QACXC,WAAW,EAAE,KAAM;QACnBC,wBAAwB,EAAE,IAAK;QAC/BP,SAAS,EAAEA,SAAU;QAAA,GACjBC;MAAK,CACV;IAAC,CACuB,CAAC;EAEhC;EAEA,oBACE,IAAAN,WAAA,CAAAO,GAAA,EAACT,0BAAA,CAAAU,yBAAyB;IAAAC,QAAA,eACxB,IAAAT,WAAA,CAAAO,GAAA,EAACV,YAAA,CAAAgB,IAAI;MAACF,WAAW,EAAE,KAAM;MAACC,wBAAwB,EAAE,IAAK;MAAA,GAAKN;IAAK,CAAG;EAAC,CAC9C,CAAC;AAEhC,CAAC;AAACQ,OAAA,CAAAV,aAAA,GAAAA,aAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/A11yLock/A11yLock.types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.A11yOrder = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _A11ySequenceOrderContext = require("../../context/A11ySequenceOrderContext");
|
|
9
9
|
var _A11yOrderNativeComponent = _interopRequireDefault(require("../../nativeSpecs/A11yOrderNativeComponent"));
|
|
10
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
const
|
|
12
|
+
const A11yOrder = exports.A11yOrder = /*#__PURE__*/_react.default.memo(props => {
|
|
13
13
|
const orderKey = _react.default.useId();
|
|
14
14
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_A11ySequenceOrderContext.A11ySequenceOrderContext.Provider, {
|
|
15
15
|
value: orderKey,
|
|
@@ -19,4 +19,4 @@ const A11yIndexSequence = exports.A11yIndexSequence = /*#__PURE__*/_react.defaul
|
|
|
19
19
|
})
|
|
20
20
|
});
|
|
21
21
|
});
|
|
22
|
-
//# sourceMappingURL=
|
|
22
|
+
//# sourceMappingURL=A11yOrder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_A11ySequenceOrderContext","_A11yOrderNativeComponent","_jsxRuntime","e","__esModule","default","A11yOrder","exports","React","memo","props","orderKey","useId","jsx","A11ySequenceOrderContext","Provider","value","children"],"sourceRoot":"../../../../src","sources":["components/A11yOrder/A11yOrder.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,yBAAA,GAAAD,OAAA;AACA,IAAAE,yBAAA,GAAAH,sBAAA,CAAAC,OAAA;AAAkF,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAK3E,MAAMG,SAAS,GAAAC,OAAA,CAAAD,SAAA,gBAAGE,cAAK,CAACC,IAAI,CAAkBC,KAAK,IAAK;EAC7D,MAAMC,QAAQ,GAAGH,cAAK,CAACI,KAAK,CAAC,CAAC;EAC9B,oBACE,IAAAV,WAAA,CAAAW,GAAA,EAACb,yBAAA,CAAAc,wBAAwB,CAACC,QAAQ;IAACC,KAAK,EAAEL,QAAS;IAAAM,QAAA,eACjD,IAAAf,WAAA,CAAAW,GAAA,EAACZ,yBAAA,CAAAI,OAAwB;MAAA,GAAKK,KAAK;MAAEC,QAAQ,EAAEA;IAAS,CAAE;EAAC,CAC1B,CAAC;AAExC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/A11yOrder/A11yOrder.types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -8,12 +8,11 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _A11yPaneTitleNativeComponent = _interopRequireDefault(require("../../nativeSpecs/A11yPaneTitleNativeComponent"));
|
|
9
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}(PaneEnum || {});
|
|
11
|
+
const PaneTypeValue = {
|
|
12
|
+
activity: 0,
|
|
13
|
+
pane: 1,
|
|
14
|
+
announce: 2
|
|
15
|
+
};
|
|
17
16
|
const A11yPaneTitle = ({
|
|
18
17
|
title,
|
|
19
18
|
detachMessage,
|
|
@@ -26,7 +25,7 @@ const A11yPaneTitle = ({
|
|
|
26
25
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_A11yPaneTitleNativeComponent.default, {
|
|
27
26
|
title: title,
|
|
28
27
|
detachMessage: detachMessage,
|
|
29
|
-
type:
|
|
28
|
+
type: PaneTypeValue[type],
|
|
30
29
|
children: children,
|
|
31
30
|
withFocusRestore: withFocusRestore
|
|
32
31
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_A11yPaneTitleNativeComponent","_jsxRuntime","e","__esModule","default","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_A11yPaneTitleNativeComponent","_jsxRuntime","e","__esModule","default","PaneTypeValue","activity","pane","announce","A11yPaneTitle","title","detachMessage","type","children","displayed","withFocusRestore","jsx","exports","A11yScreenChange","props"],"sourceRoot":"../../../../src","sources":["components/A11yPaneTitle/A11yPaneTitle.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,6BAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAiF,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAOjF,MAAMG,aAA2C,GAAG;EAClDC,QAAQ,EAAE,CAAC;EACXC,IAAI,EAAE,CAAC;EACPC,QAAQ,EAAE;AACZ,CAAC;AAEM,MAAMC,aAAa,GAAGA,CAAC;EAC5BC,KAAK;EACLC,aAAa;EACbC,IAAI,GAAG,MAAM;EACbC,QAAQ;EACRC,SAAS;EACTC,gBAAgB,GAAG;AACD,CAAC,KAAK;EACxB,IAAID,SAAS,KAAK,KAAK,EAAE,OAAO,IAAI;EAEpC,oBACE,IAAAb,WAAA,CAAAe,GAAA,EAAChB,6BAAA,CAAAI,OAAmB;IAClBM,KAAK,EAAEA,KAAM;IACbC,aAAa,EAAEA,aAAc;IAC7BC,IAAI,EAAEP,aAAa,CAACO,IAAI,CAAE;IAC1BC,QAAQ,EAAEA,QAAS;IACnBE,gBAAgB,EAAEA;EAAiB,CACpC,CAAC;AAEN,CAAC;AAACE,OAAA,CAAAR,aAAA,GAAAA,aAAA;AAEK,MAAMS,gBAAgB,GAAIC,KAA4B,iBAC3D,IAAAlB,WAAA,CAAAe,GAAA,EAACP,aAAa;EACZC,KAAK,EAAES,KAAK,CAACT,KAAM;EACnBC,aAAa,EAAEQ,KAAK,CAACR,aAAc;EACnCG,SAAS,EAAEK,KAAK,CAACL,SAAU;EAC3BF,IAAI,EAAC;AAAU,CAChB,CACF;AAACK,OAAA,CAAAC,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/A11yPaneTitle/A11yPaneTitle.types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -4,37 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.A11yView = void 0;
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const A11yView = exports.A11yView =
|
|
14
|
-
onScreenReaderFocused,
|
|
15
|
-
onScreenReaderSubViewFocusChange,
|
|
16
|
-
onScreenReaderSubViewFocused,
|
|
17
|
-
onScreenReaderSubViewBlurred,
|
|
18
|
-
onScreenReaderDescendantFocusChanged,
|
|
19
|
-
...props
|
|
20
|
-
}, ref) => {
|
|
21
|
-
const hasHandler = Boolean(onScreenReaderSubViewBlurred || onScreenReaderSubViewFocused || onScreenReaderSubViewFocusChange);
|
|
22
|
-
const onScreenReaderChangeHandler = _react.default.useCallback(event => {
|
|
23
|
-
onScreenReaderSubViewFocusChange?.(event.nativeEvent.isFocused);
|
|
24
|
-
if (event.nativeEvent.isFocused) {
|
|
25
|
-
onScreenReaderSubViewFocused?.();
|
|
26
|
-
} else {
|
|
27
|
-
onScreenReaderSubViewBlurred?.();
|
|
28
|
-
}
|
|
29
|
-
}, [onScreenReaderSubViewFocusChange, onScreenReaderSubViewBlurred, onScreenReaderSubViewFocused]);
|
|
30
|
-
const onScreenReaderHandlerProp = hasHandler ? onScreenReaderChangeHandler : undefined;
|
|
31
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_A11yViewNativeComponent.default, {
|
|
32
|
-
...props,
|
|
33
|
-
ref: ref,
|
|
34
|
-
descendantFocusChangedEnabled: Boolean(onScreenReaderDescendantFocusChanged),
|
|
35
|
-
onScreenReaderFocused: onScreenReaderFocused,
|
|
36
|
-
onScreenReaderFocusChange: onScreenReaderHandlerProp,
|
|
37
|
-
onScreenReaderDescendantFocusChanged: onScreenReaderDescendantFocusChanged
|
|
38
|
-
});
|
|
39
|
-
}));
|
|
7
|
+
var _A11yIndex = require("../A11yIndex/A11yIndex");
|
|
8
|
+
/**
|
|
9
|
+
* Standalone focus-tracking view with no ordering context.
|
|
10
|
+
* Use when you need screen reader focus events but no position in a sequence.
|
|
11
|
+
* For ordered elements, use {@link A11yIndex} inside an Order container.
|
|
12
|
+
*/
|
|
13
|
+
const A11yView = exports.A11yView = _A11yIndex.A11yIndex;
|
|
40
14
|
//# sourceMappingURL=A11yView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_A11yIndex","require","A11yView","exports","A11yIndex"],"sourceRoot":"../../../../src","sources":["components/A11yView/A11yView.tsx"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACA;AACA;AACO,MAAMC,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAGE,oBAAS","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/A11yView/A11yView.types.ts"],"mappings":"","ignoreList":[]}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -10,24 +10,33 @@ Object.defineProperty(exports, "A11yModule", {
|
|
|
10
10
|
return _A11yAnnounceModule.A11yModule;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
+
Object.defineProperty(exports, "A11yOrderTypeEnum", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () {
|
|
16
|
+
return _A11yIndex2.A11yOrderTypeEnum;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
13
19
|
var _A11yIndex = require("./components/A11yIndex/A11yIndex");
|
|
14
|
-
var
|
|
15
|
-
var _A11yGroup = require("./components/A11yGroup/A11yGroup");
|
|
16
|
-
var _A11yUIContainer = require("./components/A11yUIContainer/A11yUIContainer");
|
|
20
|
+
var _A11yOrder = require("./components/A11yOrder/A11yOrder");
|
|
17
21
|
var _A11yPaneTitle = require("./components/A11yPaneTitle/A11yPaneTitle");
|
|
18
22
|
var _A11yView = require("./components/A11yView/A11yView");
|
|
19
23
|
var _A11yFocusFrame = require("./components/A11yLock/A11yFocusFrame/A11yFocusFrame");
|
|
20
24
|
var _A11yFocusTrap = require("./components/A11yLock/A11yFocusTrap/A11yFocusTrap");
|
|
25
|
+
var _A11yCard = require("./components/A11yCard/A11yCard");
|
|
26
|
+
var _A11yIndex2 = require("./components/A11yIndex/A11yIndex.types");
|
|
21
27
|
var _A11yAnnounceModule = require("./modules/A11yAnnounceModule");
|
|
28
|
+
// ─── Component props ──────────────────────────────────────────────────────────
|
|
29
|
+
|
|
30
|
+
// ─── Namespace ────────────────────────────────────────────────────────────────
|
|
31
|
+
|
|
22
32
|
const A11y = exports.A11y = {
|
|
23
|
-
Order:
|
|
33
|
+
Order: _A11yOrder.A11yOrder,
|
|
24
34
|
Index: _A11yIndex.A11yIndex,
|
|
25
|
-
|
|
26
|
-
Container: _A11yUIContainer.A11yUIContainer,
|
|
35
|
+
View: _A11yView.A11yView,
|
|
27
36
|
PaneTitle: _A11yPaneTitle.A11yPaneTitle,
|
|
28
37
|
ScreenChange: _A11yPaneTitle.A11yScreenChange,
|
|
29
|
-
View: _A11yView.A11yView,
|
|
30
38
|
FocusFrame: _A11yFocusFrame.A11yFocusFrame,
|
|
31
|
-
FocusTrap: _A11yFocusTrap.A11yFocusTrap
|
|
39
|
+
FocusTrap: _A11yFocusTrap.A11yFocusTrap,
|
|
40
|
+
Card: _A11yCard.A11yCard
|
|
32
41
|
};
|
|
33
42
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_A11yIndex","require","
|
|
1
|
+
{"version":3,"names":["_A11yIndex","require","_A11yOrder","_A11yPaneTitle","_A11yView","_A11yFocusFrame","_A11yFocusTrap","_A11yCard","_A11yIndex2","_A11yAnnounceModule","A11y","exports","Order","A11yOrder","Index","A11yIndex","View","A11yView","PaneTitle","A11yPaneTitle","ScreenChange","A11yScreenChange","FocusFrame","A11yFocusFrame","FocusTrap","A11yFocusTrap","Card","A11yCard"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAIA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AAWA,IAAAO,WAAA,GAAAP,OAAA;AA4BA,IAAAQ,mBAAA,GAAAR,OAAA;AArCA;;AAwBA;;AAEO,MAAMS,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,KAAK,EAAEC,oBAAS;EAChBC,KAAK,EAAEC,oBAAS;EAChBC,IAAI,EAAEC,kBAAQ;EACdC,SAAS,EAAEC,4BAAa;EACxBC,YAAY,EAAEC,+BAAgB;EAC9BC,UAAU,EAAEC,8BAAc;EAC1BC,SAAS,EAAEC,4BAAa;EACxBC,IAAI,EAAEC;AACR,CAAC","ignoreList":[]}
|
|
@@ -10,18 +10,24 @@ Object.defineProperty(exports, "A11yModule", {
|
|
|
10
10
|
return _A11yAnnounceModule.A11yModule;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
+
Object.defineProperty(exports, "A11yOrderTypeEnum", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () {
|
|
16
|
+
return _A11yIndex2.A11yOrderTypeEnum;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
13
19
|
var _A11yIndex = require("./components/A11yIndex/A11yIndex");
|
|
14
20
|
var _reactNative = require("react-native");
|
|
21
|
+
var _A11yIndex2 = require("./components/A11yIndex/A11yIndex.types");
|
|
15
22
|
var _A11yAnnounceModule = require("./modules/A11yAnnounceModule");
|
|
16
23
|
const A11y = exports.A11y = {
|
|
17
24
|
Order: _reactNative.View,
|
|
18
|
-
Group: _reactNative.View,
|
|
19
25
|
Index: _A11yIndex.A11yIndex,
|
|
20
|
-
|
|
26
|
+
View: _reactNative.View,
|
|
21
27
|
PaneTitle: _reactNative.View,
|
|
22
28
|
ScreenChange: _reactNative.View,
|
|
23
|
-
View: _reactNative.View,
|
|
24
29
|
FocusFrame: _reactNative.View,
|
|
25
|
-
FocusTrap: _reactNative.View
|
|
30
|
+
FocusTrap: _reactNative.View,
|
|
31
|
+
Card: _reactNative.View
|
|
26
32
|
};
|
|
27
33
|
//# sourceMappingURL=index.web.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_A11yIndex","require","_reactNative","_A11yAnnounceModule","A11y","exports","Order","View","
|
|
1
|
+
{"version":3,"names":["_A11yIndex","require","_reactNative","_A11yIndex2","_A11yAnnounceModule","A11y","exports","Order","View","Index","A11yIndex","PaneTitle","ScreenChange","FocusFrame","FocusTrap","Card"],"sourceRoot":"../../src","sources":["index.web.ts"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,WAAA,GAAAF,OAAA;AAiBA,IAAAG,mBAAA,GAAAH,OAAA;AAXO,MAAMI,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,KAAK,EAAEC,iBAAI;EACXC,KAAK,EAAEC,oBAAS;EAChBF,IAAI,EAAEA,iBAAI;EACVG,SAAS,EAAEH,iBAAI;EACfI,YAAY,EAAEJ,iBAAI;EAClBK,UAAU,EAAEL,iBAAI;EAChBM,SAAS,EAAEN,iBAAI;EACfO,IAAI,EAAEP;AACR,CAAC","ignoreList":[]}
|
|
@@ -2,8 +2,8 @@ import type { ViewProps } from 'react-native';
|
|
|
2
2
|
// eslint-disable-next-line @react-native/no-deep-imports
|
|
3
3
|
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
4
4
|
|
|
5
|
-
export interface
|
|
5
|
+
export interface A11yCardNativeComponentProps extends ViewProps {}
|
|
6
6
|
|
|
7
|
-
export default codegenNativeComponent<
|
|
8
|
-
'
|
|
7
|
+
export default codegenNativeComponent<A11yCardNativeComponentProps>(
|
|
8
|
+
'A11yCardView'
|
|
9
9
|
);
|
|
@@ -15,14 +15,23 @@ export type ScreenReaderFocusChange = Readonly<{
|
|
|
15
15
|
|
|
16
16
|
export type ScreenReaderDescendantFocusChanged = Readonly<{
|
|
17
17
|
status: string;
|
|
18
|
+
nativeId?: string;
|
|
18
19
|
}>;
|
|
19
20
|
|
|
20
21
|
export interface A11yIndexNativeComponentProps extends ViewProps {
|
|
21
|
-
orderIndex
|
|
22
|
-
orderKey
|
|
23
|
-
orderFocusType
|
|
22
|
+
orderIndex?: Int32;
|
|
23
|
+
orderKey?: string;
|
|
24
|
+
orderFocusType?: Int32;
|
|
25
|
+
shouldGroupAccessibilityChildren?: Int32;
|
|
24
26
|
|
|
27
|
+
autoFocus?: boolean;
|
|
28
|
+
descendantFocusChangedEnabled?: boolean;
|
|
29
|
+
|
|
30
|
+
onScreenReaderFocused?: DirectEventHandler<{}>;
|
|
31
|
+
onScreenReaderDescendantFocusChanged?: DirectEventHandler<ScreenReaderDescendantFocusChanged>;
|
|
25
32
|
onScreenReaderFocusChange?: DirectEventHandler<ScreenReaderFocusChange>;
|
|
33
|
+
|
|
34
|
+
containerType?: Int32;
|
|
26
35
|
}
|
|
27
36
|
|
|
28
37
|
export interface NativeCommands {
|