react-native-a11y-order 0.9.1 → 0.11.0-alpha.0
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 +35 -345
- 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 +14 -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 +83 -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 +31 -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 +43 -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 +39 -0
- package/src/components/A11yIndex/A11yIndex.tsx +144 -52
- package/src/components/A11yIndex/A11yIndex.types.ts +102 -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 +34 -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 +49 -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,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Pressable, StyleSheet, View } from 'react-native';
|
|
5
|
+
import Card from '../../nativeSpecs/A11yCardNativeComponent';
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
export const A11yCard = ({
|
|
8
|
+
containerProps,
|
|
9
|
+
style,
|
|
10
|
+
testID,
|
|
11
|
+
onPress,
|
|
12
|
+
accessibility,
|
|
13
|
+
pressableProps,
|
|
14
|
+
children
|
|
15
|
+
}) => {
|
|
16
|
+
return /*#__PURE__*/_jsxs(Card, {
|
|
17
|
+
...containerProps,
|
|
18
|
+
style: [styles.container, containerProps?.style],
|
|
19
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
20
|
+
testID: `${testID}-overlay`,
|
|
21
|
+
accessibilityRole: "button",
|
|
22
|
+
...accessibility,
|
|
23
|
+
accessible: true,
|
|
24
|
+
pointerEvents: "none",
|
|
25
|
+
onAccessibilityTap: onPress,
|
|
26
|
+
style: styles.overlay
|
|
27
|
+
}), /*#__PURE__*/_jsx(Pressable, {
|
|
28
|
+
...pressableProps,
|
|
29
|
+
accessible: false,
|
|
30
|
+
onPress: onPress,
|
|
31
|
+
testID: testID,
|
|
32
|
+
style: style,
|
|
33
|
+
children: children
|
|
34
|
+
})]
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
const styles = StyleSheet.create({
|
|
38
|
+
container: {
|
|
39
|
+
position: 'relative'
|
|
40
|
+
},
|
|
41
|
+
overlay: StyleSheet.absoluteFillObject
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=A11yCard.ios.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Pressable","StyleSheet","View","Card","jsx","_jsx","jsxs","_jsxs","A11yCard","containerProps","style","testID","onPress","accessibility","pressableProps","children","styles","container","accessibilityRole","accessible","pointerEvents","onAccessibilityTap","overlay","create","position","absoluteFillObject"],"sourceRoot":"../../../../src","sources":["components/A11yCard/A11yCard.ios.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC1D,OAAOC,IAAI,MAAM,2CAA2C;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAK7D,OAAO,MAAMC,QAAQ,GAAGA,CAAC;EACvBC,cAAc;EACdC,KAAK;EACLC,MAAM;EACNC,OAAO;EACPC,aAAa;EACbC,cAAc;EACdC;AACa,CAAC,KAAK;EACnB,oBACER,KAAA,CAACJ,IAAI;IAAA,GAAKM,cAAc;IAAEC,KAAK,EAAE,CAACM,MAAM,CAACC,SAAS,EAAER,cAAc,EAAEC,KAAK,CAAE;IAAAK,QAAA,gBACzEV,IAAA,CAACH,IAAI;MACHS,MAAM,EAAE,GAAGA,MAAM,UAAW;MAC5BO,iBAAiB,EAAC,QAAQ;MAAA,GACtBL,aAAa;MACjBM,UAAU;MACVC,aAAa,EAAC,MAAM;MACpBC,kBAAkB,EAAET,OAAQ;MAC5BF,KAAK,EAAEM,MAAM,CAACM;IAAQ,CACvB,CAAC,eACFjB,IAAA,CAACL,SAAS;MAAA,GACJc,cAAc;MAClBK,UAAU,EAAE,KAAM;MAClBP,OAAO,EAAEA,OAAQ;MACjBD,MAAM,EAAEA,MAAO;MACfD,KAAK,EAAEA,KAAM;MAAAK,QAAA,EAEZA;IAAQ,CACA,CAAC;EAAA,CACR,CAAC;AAEX,CAAC;AAED,MAAMC,MAAM,GAAGf,UAAU,CAACsB,MAAM,CAAC;EAC/BN,SAAS,EAAE;IAAEO,QAAQ,EAAE;EAAW,CAAC;EACnCF,OAAO,EAAErB,UAAU,CAACwB;AACtB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Pressable, StyleSheet, View } from 'react-native';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
export const A11yCard = ({
|
|
7
|
+
containerProps,
|
|
8
|
+
style,
|
|
9
|
+
testID,
|
|
10
|
+
onPress,
|
|
11
|
+
accessibility,
|
|
12
|
+
pressableProps,
|
|
13
|
+
children
|
|
14
|
+
}) => {
|
|
15
|
+
return /*#__PURE__*/_jsx(View, {
|
|
16
|
+
collapsable: false,
|
|
17
|
+
...containerProps,
|
|
18
|
+
children: /*#__PURE__*/_jsx(Pressable, {
|
|
19
|
+
...pressableProps,
|
|
20
|
+
accessibilityRole: "button",
|
|
21
|
+
...accessibility,
|
|
22
|
+
accessible: true,
|
|
23
|
+
onPress: onPress,
|
|
24
|
+
testID: testID,
|
|
25
|
+
style: [style, styles.container],
|
|
26
|
+
children: children
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
const styles = StyleSheet.create({
|
|
31
|
+
container: {
|
|
32
|
+
position: 'relative'
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=A11yCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Pressable","StyleSheet","View","jsx","_jsx","A11yCard","containerProps","style","testID","onPress","accessibility","pressableProps","children","collapsable","accessibilityRole","accessible","styles","container","create","position"],"sourceRoot":"../../../../src","sources":["components/A11yCard/A11yCard.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAK3D,OAAO,MAAMC,QAAQ,GAAGA,CAAC;EACvBC,cAAc;EACdC,KAAK;EACLC,MAAM;EACNC,OAAO;EACPC,aAAa;EACbC,cAAc;EACdC;AACa,CAAC,KAAK;EACnB,oBACER,IAAA,CAACF,IAAI;IAACW,WAAW,EAAE,KAAM;IAAA,GAAKP,cAAc;IAAAM,QAAA,eAC1CR,IAAA,CAACJ,SAAS;MAAA,GACJW,cAAc;MAClBG,iBAAiB,EAAC,QAAQ;MAAA,GACtBJ,aAAa;MACjBK,UAAU;MACVN,OAAO,EAAEA,OAAQ;MACjBD,MAAM,EAAEA,MAAO;MACfD,KAAK,EAAE,CAACA,KAAK,EAAES,MAAM,CAACC,SAAS,CAAE;MAAAL,QAAA,EAEhCA;IAAQ,CACA;EAAC,CACR,CAAC;AAEX,CAAC;AAED,MAAMI,MAAM,GAAGf,UAAU,CAACiB,MAAM,CAAC;EAC/BD,SAAS,EAAE;IAAEE,QAAQ,EAAE;EAAW;AACpC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/A11yCard/A11yCard.types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -3,50 +3,110 @@
|
|
|
3
3
|
import React, { useImperativeHandle, useRef } from 'react';
|
|
4
4
|
import { A11ySequenceOrderContext } from '../../context/A11ySequenceOrderContext';
|
|
5
5
|
import A11yIndexView, { Commands } from '../../nativeSpecs/A11yIndexNativeComponent';
|
|
6
|
-
import { A11yOrderTypeEnum } from '
|
|
6
|
+
import { A11yOrderTypeEnum, A11yContainerTypeEnum } from './A11yIndex.types';
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
index,
|
|
11
|
-
orderType = 'default',
|
|
8
|
+
function useScreenReaderProps({
|
|
9
|
+
onScreenReaderFocused,
|
|
12
10
|
onScreenReaderSubViewFocusChange,
|
|
13
11
|
onScreenReaderSubViewFocused,
|
|
14
12
|
onScreenReaderSubViewBlurred,
|
|
15
|
-
|
|
16
|
-
}
|
|
13
|
+
onScreenReaderDescendantFocusChanged
|
|
14
|
+
}) {
|
|
17
15
|
const hasHandler = Boolean(onScreenReaderSubViewBlurred || onScreenReaderSubViewFocused || onScreenReaderSubViewFocusChange);
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
const onScreenReaderFocusChange = React.useCallback(event => {
|
|
17
|
+
const {
|
|
18
|
+
isFocused
|
|
19
|
+
} = event.nativeEvent;
|
|
20
|
+
onScreenReaderSubViewFocusChange?.(isFocused);
|
|
21
|
+
if (isFocused) {
|
|
21
22
|
onScreenReaderSubViewFocused?.();
|
|
22
23
|
} else {
|
|
23
24
|
onScreenReaderSubViewBlurred?.();
|
|
24
25
|
}
|
|
25
26
|
}, [onScreenReaderSubViewFocusChange, onScreenReaderSubViewBlurred, onScreenReaderSubViewFocused]);
|
|
26
|
-
|
|
27
|
+
return {
|
|
28
|
+
onScreenReaderFocused,
|
|
29
|
+
onScreenReaderFocusChange: hasHandler ? onScreenReaderFocusChange : undefined,
|
|
30
|
+
descendantFocusChangedEnabled: Boolean(onScreenReaderDescendantFocusChanged),
|
|
31
|
+
onScreenReaderDescendantFocusChanged
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function useFocusRef(ref) {
|
|
35
|
+
const localRef = useRef(null);
|
|
36
|
+
useImperativeHandle(ref, () => {
|
|
37
|
+
const native = localRef.current;
|
|
38
|
+
return new Proxy({}, {
|
|
39
|
+
get(_target, prop) {
|
|
40
|
+
if (prop === 'focus') {
|
|
41
|
+
return () => {
|
|
42
|
+
if (localRef.current) {
|
|
43
|
+
// @ts-expect-error Commands.focus type is too generic in codegen
|
|
44
|
+
Commands.focus(localRef.current);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
return native?.[prop];
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
return localRef;
|
|
53
|
+
}
|
|
54
|
+
function useOrderProps(index, orderType, importantForAccessibilityProp) {
|
|
27
55
|
const orderKey = React.useContext(A11ySequenceOrderContext);
|
|
28
|
-
|
|
56
|
+
const hasOrderInfo = typeof index === 'number' || !!orderKey;
|
|
57
|
+
if (hasOrderInfo && !orderKey) {
|
|
29
58
|
throw new Error('<A11y.Index> element should be used inside of <A11y.Order> container');
|
|
30
59
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
60
|
+
const resolvedOrderType = orderType ?? 'default';
|
|
61
|
+
const importantForAccessibilityFallback = resolvedOrderType === 'default' ? 'yes' : undefined;
|
|
62
|
+
return {
|
|
63
|
+
orderKey,
|
|
64
|
+
orderFocusType: hasOrderInfo ? A11yOrderTypeEnum[resolvedOrderType] : undefined,
|
|
65
|
+
importantForAccessibility: importantForAccessibilityProp ?? importantForAccessibilityFallback
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export const A11yIndex = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(({
|
|
69
|
+
children,
|
|
70
|
+
index,
|
|
71
|
+
orderType,
|
|
72
|
+
a11yUIContainer,
|
|
73
|
+
shouldGroupAccessibilityChildren,
|
|
74
|
+
...props
|
|
75
|
+
}, ref) => {
|
|
76
|
+
const {
|
|
77
|
+
onScreenReaderFocused,
|
|
78
|
+
onScreenReaderSubViewFocusChange,
|
|
79
|
+
onScreenReaderSubViewFocused,
|
|
80
|
+
onScreenReaderSubViewBlurred,
|
|
81
|
+
onScreenReaderDescendantFocusChanged,
|
|
82
|
+
importantForAccessibility: importantForAccessibilityProp,
|
|
83
|
+
...viewProps
|
|
84
|
+
} = props;
|
|
85
|
+
const containerTypeValue = a11yUIContainer ? A11yContainerTypeEnum[a11yUIContainer] : undefined;
|
|
86
|
+
const shouldGroupChildrenValue = shouldGroupAccessibilityChildren === undefined ? -1 : shouldGroupAccessibilityChildren ? 1 : 0;
|
|
87
|
+
const screenReaderNativeProps = useScreenReaderProps({
|
|
88
|
+
onScreenReaderFocused,
|
|
89
|
+
onScreenReaderSubViewFocusChange,
|
|
90
|
+
onScreenReaderSubViewFocused,
|
|
91
|
+
onScreenReaderSubViewBlurred,
|
|
92
|
+
onScreenReaderDescendantFocusChanged
|
|
93
|
+
});
|
|
94
|
+
const {
|
|
95
|
+
orderKey,
|
|
96
|
+
orderFocusType,
|
|
97
|
+
importantForAccessibility
|
|
98
|
+
} = useOrderProps(index, orderType, importantForAccessibilityProp);
|
|
99
|
+
const localRef = useFocusRef(ref);
|
|
42
100
|
return /*#__PURE__*/_jsx(A11yIndexView, {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
101
|
+
ref: localRef,
|
|
102
|
+
...viewProps,
|
|
103
|
+
containerType: containerTypeValue,
|
|
104
|
+
shouldGroupAccessibilityChildren: shouldGroupChildrenValue,
|
|
105
|
+
importantForAccessibility: importantForAccessibility,
|
|
106
|
+
orderFocusType: orderFocusType,
|
|
46
107
|
orderIndex: index,
|
|
47
108
|
orderKey: orderKey,
|
|
48
|
-
...
|
|
49
|
-
onScreenReaderFocusChange: onScreenReaderHandlerProp,
|
|
109
|
+
...screenReaderNativeProps,
|
|
50
110
|
children: children
|
|
51
111
|
});
|
|
52
112
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useImperativeHandle","useRef","A11ySequenceOrderContext","A11yIndexView","Commands","A11yOrderTypeEnum","jsx","_jsx","
|
|
1
|
+
{"version":3,"names":["React","useImperativeHandle","useRef","A11ySequenceOrderContext","A11yIndexView","Commands","A11yOrderTypeEnum","A11yContainerTypeEnum","jsx","_jsx","useScreenReaderProps","onScreenReaderFocused","onScreenReaderSubViewFocusChange","onScreenReaderSubViewFocused","onScreenReaderSubViewBlurred","onScreenReaderDescendantFocusChanged","hasHandler","Boolean","onScreenReaderFocusChange","useCallback","event","isFocused","nativeEvent","undefined","descendantFocusChangedEnabled","useFocusRef","ref","localRef","native","current","Proxy","get","_target","prop","focus","useOrderProps","index","orderType","importantForAccessibilityProp","orderKey","useContext","hasOrderInfo","Error","resolvedOrderType","importantForAccessibilityFallback","orderFocusType","importantForAccessibility","A11yIndex","memo","forwardRef","children","a11yUIContainer","shouldGroupAccessibilityChildren","props","viewProps","containerTypeValue","shouldGroupChildrenValue","screenReaderNativeProps","containerType","orderIndex"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/** Ref handle for {@link A11y.Index} — exposes `focus()` to move screen reader focus programmatically. */
|
|
4
|
+
|
|
5
|
+
/** Numeric backing values for {@link A11yOrderType}. Kept for consumers who need the raw number. */
|
|
6
|
+
export const A11yOrderTypeEnum = {
|
|
7
|
+
default: 0,
|
|
8
|
+
child: 1,
|
|
9
|
+
subview: 2
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal Numeric backing values for {@link A11yUIContainerType}. */
|
|
13
|
+
export const A11yContainerTypeEnum = {
|
|
14
|
+
none: 0,
|
|
15
|
+
table: 1,
|
|
16
|
+
list: 2,
|
|
17
|
+
landmark: 3,
|
|
18
|
+
group: 4
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* iOS only — sets `UIAccessibilityContainerType` on the wrapping view.
|
|
23
|
+
* Tells VoiceOver what kind of container this is: `'list'`, `'table'`, `'landmark'`, etc.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Controls which element receives screen reader focus for this index slot.
|
|
28
|
+
*
|
|
29
|
+
* - `'default'` — the `A11y.Index` view itself
|
|
30
|
+
* - `'child'` — the first accessible child (useful when the index wrapper has no visual presence)
|
|
31
|
+
* - `'subview'` — first accessible child via an older traversal path
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
/** The native event payload emitted by `onScreenReaderDescendantFocusChanged`. */
|
|
35
|
+
//# sourceMappingURL=A11yIndex.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["A11yOrderTypeEnum","default","child","subview","A11yContainerTypeEnum","none","table","list","landmark","group"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.types.ts"],"mappings":";;AAIA;;AAMA;AACA,OAAO,MAAMA,iBAAiB,GAAG;EAC/BC,OAAO,EAAE,CAAC;EACVC,KAAK,EAAE,CAAC;EACRC,OAAO,EAAE;AACX,CAAU;;AAEV;AACA,OAAO,MAAMC,qBAAqB,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","forwardRef","useImperativeHandle","useRef","UIManager","View","jsx","_jsx","WebUiManager","A11yIndex","props","ref","viewRef","focus","current"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.web.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,mBAAmB,EAAEC,MAAM,QAAQ,OAAO;
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useImperativeHandle","useRef","UIManager","View","jsx","_jsx","WebUiManager","A11yIndex","props","ref","viewRef","focus","current"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.web.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,mBAAmB,EAAEC,MAAM,QAAQ,OAAO;AAE/D,SAASC,SAAS,QAAQ,cAAc;AACxC,SAASC,IAAI,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEpC,MAAMC,YAAY,GAAGJ,SAEpB;AAED,OAAO,MAAMK,SAAS,gBAAGR,UAAU,CAAqB,CAACS,KAAK,EAAEC,GAAG,KAAK;EACtE,MAAMC,OAAO,GAAGT,MAAM,CAAO,IAAI,CAAC;EAClCD,mBAAmB,CAACS,GAAG,EAAE,OAAO;IAC9BE,KAAK,EAAEA,CAAA,KAAM;MACX,IAAID,OAAO,CAACE,OAAO,EAAE;QACnBN,YAAY,CAACK,KAAK,CAACD,OAAO,CAACE,OAAO,CAAC;MACrC;IACF;EACF,CAAC,CAAC,CAAC;EAEH,oBAAOP,IAAA,CAACF,IAAI;IAAA,GAAKK,KAAK;IAAEC,GAAG,EAAEC;EAAe,CAAE,CAAC;AACjD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","A11yFrameProvider","jsx","_jsx","A11yFocusFrame","props","children"],"sourceRoot":"../../../../../src","sources":["components/A11yLock/A11yFocusFrame/A11yFocusFrame.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,
|
|
1
|
+
{"version":3,"names":["React","View","A11yFrameProvider","jsx","_jsx","A11yFocusFrame","props","children"],"sourceRoot":"../../../../../src","sources":["components/A11yLock/A11yFocusFrame/A11yFocusFrame.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,iBAAiB,QAAQ,gDAAgD;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGnF,OAAO,MAAMC,cAAc,GAAIC,KAA0B,iBACvDF,IAAA,CAACF,iBAAiB;EAAAK,QAAA,eAChBH,IAAA,CAACH,IAAI;IAAA,GAAKK;EAAK,CAAG;AAAC,CACF,CACpB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","A11yFocusTrapMountWrapper","A11yBaseLock","jsx","_jsx","A11yFocusTrap","forceLock","props","children","collapsable","accessibilityViewIsModal"],"sourceRoot":"../../../../../src","sources":["components/A11yLock/A11yFocusTrap/A11yFocusTrap.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,yBAAyB,QAAQ,6BAA6B;AACvE,SAASC,YAAY,QAAQ,8BAA8B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE5D,OAAO,MAAMC,aAAa,GAAGA,CAAC;EAC5BC,SAAS,GAAG,KAAK;EACjB,GAAGC;
|
|
1
|
+
{"version":3,"names":["React","View","A11yFocusTrapMountWrapper","A11yBaseLock","jsx","_jsx","A11yFocusTrap","forceLock","props","children","collapsable","accessibilityViewIsModal"],"sourceRoot":"../../../../../src","sources":["components/A11yLock/A11yFocusTrap/A11yFocusTrap.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,yBAAyB,QAAQ,6BAA6B;AACvE,SAASC,YAAY,QAAQ,8BAA8B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE5D,OAAO,MAAMC,aAAa,GAAGA,CAAC;EAC5BC,SAAS,GAAG,KAAK;EACjB,GAAGC;AACe,CAAC,KAAK;EACxB,IAAID,SAAS,EAAE;IACb,oBACEF,IAAA,CAACH,yBAAyB;MAAAO,QAAA,eACxBJ,IAAA,CAACF,YAAY;QACXO,WAAW,EAAE,KAAM;QACnBC,wBAAwB,EAAE,IAAK;QAC/BJ,SAAS,EAAEA,SAAU;QAAA,GACjBC;MAAK,CACV;IAAC,CACuB,CAAC;EAEhC;EAEA,oBACEH,IAAA,CAACH,yBAAyB;IAAAO,QAAA,eACxBJ,IAAA,CAACJ,IAAI;MAACS,WAAW,EAAE,KAAM;MAACC,wBAAwB,EAAE,IAAK;MAAA,GAAKH;IAAK,CAAG;EAAC,CAC9C,CAAC;AAEhC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/A11yLock/A11yLock.types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import { A11ySequenceOrderContext } from '../../context/A11ySequenceOrderContext';
|
|
5
5
|
import A11yOrderNativeComponent from '../../nativeSpecs/A11yOrderNativeComponent';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
export const
|
|
7
|
+
export const A11yOrder = /*#__PURE__*/React.memo(props => {
|
|
8
8
|
const orderKey = React.useId();
|
|
9
9
|
return /*#__PURE__*/_jsx(A11ySequenceOrderContext.Provider, {
|
|
10
10
|
value: orderKey,
|
|
@@ -14,4 +14,4 @@ export const A11yIndexSequence = /*#__PURE__*/React.memo(props => {
|
|
|
14
14
|
})
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
|
-
//# sourceMappingURL=
|
|
17
|
+
//# sourceMappingURL=A11yOrder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","A11ySequenceOrderContext","A11yOrderNativeComponent","jsx","_jsx","A11yOrder","memo","props","orderKey","useId","Provider","value","children"],"sourceRoot":"../../../../src","sources":["components/A11yOrder/A11yOrder.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,wBAAwB,QAAQ,wCAAwC;AACjF,OAAOC,wBAAwB,MAAM,4CAA4C;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAKlF,OAAO,MAAMC,SAAS,gBAAGL,KAAK,CAACM,IAAI,CAAkBC,KAAK,IAAK;EAC7D,MAAMC,QAAQ,GAAGR,KAAK,CAACS,KAAK,CAAC,CAAC;EAC9B,oBACEL,IAAA,CAACH,wBAAwB,CAACS,QAAQ;IAACC,KAAK,EAAEH,QAAS;IAAAI,QAAA,eACjDR,IAAA,CAACF,wBAAwB;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":[]}
|
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import A11yPaneTitleNative from '../../nativeSpecs/A11yPaneTitleNativeComponent';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}(PaneEnum || {});
|
|
6
|
+
const PaneTypeValue = {
|
|
7
|
+
activity: 0,
|
|
8
|
+
pane: 1,
|
|
9
|
+
announce: 2
|
|
10
|
+
};
|
|
12
11
|
export const A11yPaneTitle = ({
|
|
13
12
|
title,
|
|
14
13
|
detachMessage,
|
|
@@ -21,7 +20,7 @@ export const A11yPaneTitle = ({
|
|
|
21
20
|
return /*#__PURE__*/_jsx(A11yPaneTitleNative, {
|
|
22
21
|
title: title,
|
|
23
22
|
detachMessage: detachMessage,
|
|
24
|
-
type:
|
|
23
|
+
type: PaneTypeValue[type],
|
|
25
24
|
children: children,
|
|
26
25
|
withFocusRestore: withFocusRestore
|
|
27
26
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","A11yPaneTitleNative","jsx","_jsx","
|
|
1
|
+
{"version":3,"names":["React","A11yPaneTitleNative","jsx","_jsx","PaneTypeValue","activity","pane","announce","A11yPaneTitle","title","detachMessage","type","children","displayed","withFocusRestore","A11yScreenChange","props"],"sourceRoot":"../../../../src","sources":["components/A11yPaneTitle/A11yPaneTitle.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,mBAAmB,MAAM,gDAAgD;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOjF,MAAMC,aAA2C,GAAG;EAClDC,QAAQ,EAAE,CAAC;EACXC,IAAI,EAAE,CAAC;EACPC,QAAQ,EAAE;AACZ,CAAC;AAED,OAAO,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,oBACEV,IAAA,CAACF,mBAAmB;IAClBQ,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;AAED,OAAO,MAAMC,gBAAgB,GAAIC,KAA4B,iBAC3Db,IAAA,CAACK,aAAa;EACZC,KAAK,EAAEO,KAAK,CAACP,KAAM;EACnBC,aAAa,EAAEM,KAAK,CAACN,aAAc;EACnCG,SAAS,EAAEG,KAAK,CAACH,SAAU;EAC3BF,IAAI,EAAC;AAAU,CAChB,CACF","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/A11yPaneTitle/A11yPaneTitle.types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,35 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import A11yViewNativeComponent from '../../nativeSpecs/A11yViewNativeComponent';
|
|
3
|
+
import { A11yIndex } from '../A11yIndex/A11yIndex';
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
onScreenReaderSubViewBlurred,
|
|
13
|
-
onScreenReaderDescendantFocusChanged,
|
|
14
|
-
...props
|
|
15
|
-
}, ref) => {
|
|
16
|
-
const hasHandler = Boolean(onScreenReaderSubViewBlurred || onScreenReaderSubViewFocused || onScreenReaderSubViewFocusChange);
|
|
17
|
-
const onScreenReaderChangeHandler = React.useCallback(event => {
|
|
18
|
-
onScreenReaderSubViewFocusChange?.(event.nativeEvent.isFocused);
|
|
19
|
-
if (event.nativeEvent.isFocused) {
|
|
20
|
-
onScreenReaderSubViewFocused?.();
|
|
21
|
-
} else {
|
|
22
|
-
onScreenReaderSubViewBlurred?.();
|
|
23
|
-
}
|
|
24
|
-
}, [onScreenReaderSubViewFocusChange, onScreenReaderSubViewBlurred, onScreenReaderSubViewFocused]);
|
|
25
|
-
const onScreenReaderHandlerProp = hasHandler ? onScreenReaderChangeHandler : undefined;
|
|
26
|
-
return /*#__PURE__*/_jsx(A11yViewNativeComponent, {
|
|
27
|
-
...props,
|
|
28
|
-
ref: ref,
|
|
29
|
-
descendantFocusChangedEnabled: Boolean(onScreenReaderDescendantFocusChanged),
|
|
30
|
-
onScreenReaderFocused: onScreenReaderFocused,
|
|
31
|
-
onScreenReaderFocusChange: onScreenReaderHandlerProp,
|
|
32
|
-
onScreenReaderDescendantFocusChanged: onScreenReaderDescendantFocusChanged
|
|
33
|
-
});
|
|
34
|
-
}));
|
|
5
|
+
/**
|
|
6
|
+
* Standalone focus-tracking view with no ordering context.
|
|
7
|
+
* Use when you need screen reader focus events but no position in a sequence.
|
|
8
|
+
* For ordered elements, use {@link A11yIndex} inside an Order container.
|
|
9
|
+
*/
|
|
10
|
+
export const A11yView = A11yIndex;
|
|
35
11
|
//# sourceMappingURL=A11yView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["A11yIndex","A11yView"],"sourceRoot":"../../../../src","sources":["components/A11yView/A11yView.tsx"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,wBAAwB;;AAElD;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,QAAQ,GAAGD,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/A11yView/A11yView.types.ts"],"mappings":"","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { A11yIndex } from './components/A11yIndex/A11yIndex';
|
|
4
|
-
import {
|
|
5
|
-
import { A11yGroup } from './components/A11yGroup/A11yGroup';
|
|
6
|
-
import { A11yUIContainer } from './components/A11yUIContainer/A11yUIContainer';
|
|
4
|
+
import { A11yOrder } from './components/A11yOrder/A11yOrder';
|
|
7
5
|
import { A11yPaneTitle, A11yScreenChange } from './components/A11yPaneTitle/A11yPaneTitle';
|
|
8
6
|
import { A11yView } from './components/A11yView/A11yView';
|
|
9
7
|
import { A11yFocusFrame } from './components/A11yLock/A11yFocusFrame/A11yFocusFrame';
|
|
10
8
|
import { A11yFocusTrap } from './components/A11yLock/A11yFocusTrap/A11yFocusTrap';
|
|
9
|
+
import { A11yCard } from './components/A11yCard/A11yCard';
|
|
10
|
+
|
|
11
|
+
// ─── Component props ──────────────────────────────────────────────────────────
|
|
12
|
+
|
|
13
|
+
export { A11yOrderTypeEnum } from './components/A11yIndex/A11yIndex.types';
|
|
14
|
+
// ─── Namespace ────────────────────────────────────────────────────────────────
|
|
15
|
+
|
|
11
16
|
export const A11y = {
|
|
12
|
-
Order:
|
|
17
|
+
Order: A11yOrder,
|
|
13
18
|
Index: A11yIndex,
|
|
14
|
-
|
|
15
|
-
Container: A11yUIContainer,
|
|
19
|
+
View: A11yView,
|
|
16
20
|
PaneTitle: A11yPaneTitle,
|
|
17
21
|
ScreenChange: A11yScreenChange,
|
|
18
|
-
View: A11yView,
|
|
19
22
|
FocusFrame: A11yFocusFrame,
|
|
20
|
-
FocusTrap: A11yFocusTrap
|
|
23
|
+
FocusTrap: A11yFocusTrap,
|
|
24
|
+
Card: A11yCard
|
|
21
25
|
};
|
|
22
26
|
export { A11yModule } from './modules/A11yAnnounceModule';
|
|
23
27
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["A11yIndex","
|
|
1
|
+
{"version":3,"names":["A11yIndex","A11yOrder","A11yPaneTitle","A11yScreenChange","A11yView","A11yFocusFrame","A11yFocusTrap","A11yCard","A11yOrderTypeEnum","A11y","Order","Index","View","PaneTitle","ScreenChange","FocusFrame","FocusTrap","Card","A11yModule"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,kCAAkC;AAC5D,SAASC,SAAS,QAAQ,kCAAkC;AAC5D,SACEC,aAAa,EACbC,gBAAgB,QACX,0CAA0C;AACjD,SAASC,QAAQ,QAAQ,gCAAgC;AACzD,SAASC,cAAc,QAAQ,qDAAqD;AACpF,SAASC,aAAa,QAAQ,mDAAmD;AACjF,SAASC,QAAQ,QAAQ,gCAAgC;;AAEzD;;AASA,SAASC,iBAAiB,QAAQ,wCAAwC;AAe1E;;AAEA,OAAO,MAAMC,IAAI,GAAG;EAClBC,KAAK,EAAET,SAAS;EAChBU,KAAK,EAAEX,SAAS;EAChBY,IAAI,EAAER,QAAQ;EACdS,SAAS,EAAEX,aAAa;EACxBY,YAAY,EAAEX,gBAAgB;EAC9BY,UAAU,EAAEV,cAAc;EAC1BW,SAAS,EAAEV,aAAa;EACxBW,IAAI,EAAEV;AACR,CAAC;AAED,SAASW,UAAU,QAAQ,8BAA8B","ignoreList":[]}
|
package/lib/module/index.web.js
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
import { A11yIndex } from './components/A11yIndex/A11yIndex';
|
|
4
4
|
import { View } from 'react-native';
|
|
5
|
+
export { A11yOrderTypeEnum } from './components/A11yIndex/A11yIndex.types';
|
|
5
6
|
export const A11y = {
|
|
6
7
|
Order: View,
|
|
7
|
-
Group: View,
|
|
8
8
|
Index: A11yIndex,
|
|
9
|
-
|
|
9
|
+
View: View,
|
|
10
10
|
PaneTitle: View,
|
|
11
11
|
ScreenChange: View,
|
|
12
|
-
View: View,
|
|
13
12
|
FocusFrame: View,
|
|
14
|
-
FocusTrap: View
|
|
13
|
+
FocusTrap: View,
|
|
14
|
+
Card: View
|
|
15
15
|
};
|
|
16
16
|
export { A11yModule } from './modules/A11yAnnounceModule';
|
|
17
17
|
//# sourceMappingURL=index.web.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["A11yIndex","View","
|
|
1
|
+
{"version":3,"names":["A11yIndex","View","A11yOrderTypeEnum","A11y","Order","Index","PaneTitle","ScreenChange","FocusFrame","FocusTrap","Card","A11yModule"],"sourceRoot":"../../src","sources":["index.web.ts"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,kCAAkC;AAC5D,SAASC,IAAI,QAAQ,cAAc;AAOnC,SAASC,iBAAiB,QAAQ,wCAAwC;AAM1E,OAAO,MAAMC,IAAI,GAAG;EAClBC,KAAK,EAAEH,IAAI;EACXI,KAAK,EAAEL,SAAS;EAChBC,IAAI,EAAEA,IAAI;EACVK,SAAS,EAAEL,IAAI;EACfM,YAAY,EAAEN,IAAI;EAClBO,UAAU,EAAEP,IAAI;EAChBQ,SAAS,EAAER,IAAI;EACfS,IAAI,EAAET;AACR,CAAC;AAED,SAASU,UAAU,QAAQ,8BAA8B","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 {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { A11yCardProps } from './A11yCard.types';
|
|
3
|
+
export type { A11yCardProps };
|
|
4
|
+
export declare const A11yCard: ({ containerProps, style, testID, onPress, accessibility, pressableProps, children, }: A11yCardProps) => React.JSX.Element;
|
|
5
|
+
//# sourceMappingURL=A11yCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A11yCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/A11yCard/A11yCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B,eAAO,MAAM,QAAQ,GAAI,sFAQtB,aAAa,sBAgBf,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { A11yCardProps } from './A11yCard.types';
|
|
3
|
+
export type { A11yCardProps };
|
|
4
|
+
export declare const A11yCard: ({ containerProps, style, testID, onPress, accessibility, pressableProps, children, }: A11yCardProps) => React.JSX.Element;
|
|
5
|
+
//# sourceMappingURL=A11yCard.ios.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A11yCard.ios.d.ts","sourceRoot":"","sources":["../../../../../src/components/A11yCard/A11yCard.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B,eAAO,MAAM,QAAQ,GAAI,sFAQtB,aAAa,sBAuBf,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ViewStyle, StyleProp, ViewProps, PressableProps } from 'react-native';
|
|
2
|
+
export type A11yCardAccessibilityProps = ViewProps;
|
|
3
|
+
export interface A11yCardProps {
|
|
4
|
+
containerProps?: ViewProps;
|
|
5
|
+
style?: StyleProp<ViewStyle>;
|
|
6
|
+
testID?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
onPress?: () => void;
|
|
9
|
+
onLongPress?: () => void;
|
|
10
|
+
accessibility?: A11yCardAccessibilityProps;
|
|
11
|
+
pressableProps?: PressableProps;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=A11yCard.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A11yCard.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/A11yCard/A11yCard.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,SAAS,EACT,SAAS,EACT,cAAc,EACf,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,0BAA0B,GAAG,SAAS,CAAC;AAEnD,MAAM,WAAW,aAAa;IAG5B,cAAc,CAAC,EAAE,SAAS,CAAC;IAG3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAIrB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IAOzB,aAAa,CAAC,EAAE,0BAA0B,CAAC;IAI3C,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B"}
|