react-native-a11y-order 1.0.0 → 2.0.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 +1 -1
- package/android/build.gradle +33 -88
- package/android/src/main/AndroidManifest.xml +1 -2
- package/android/src/{newarch → main/java/com/a11yorder}/A11yIndexViewManagerSpec.java +0 -7
- package/android/src/{newarch → main/java/com/a11yorder}/A11yLockViewManagerSpec.java +0 -1
- package/android/src/main/java/com/a11yorder/A11yOrderPackage.java +1 -1
- package/android/src/{newarch → main/java/com/a11yorder}/A11yOrderViewManagerSpec.java +0 -5
- package/ios/extensions/RCTModalHostViewComponentView+RNAOA11yOrder.h +1 -10
- package/ios/extensions/RCTModalHostViewComponentView+RNAOA11yOrder.mm +0 -34
- package/ios/extensions/UIView+RNAOA11yOrder.mm +0 -8
- package/ios/helpers/RNAOFabricEventHelper/RNAOFabricEventHelper.h +0 -2
- package/ios/helpers/RNAOFabricEventHelper/RNAOFabricEventHelper.mm +0 -3
- package/ios/modules/RNAOA11yAnnounceModule.h +0 -20
- package/ios/modules/RNAOA11yAnnounceModule.mm +0 -18
- package/ios/views/RNAOA11yCardView/RNAOA11yCardView.h +0 -9
- package/ios/views/RNAOA11yCardView/RNAOA11yCardView.mm +11 -15
- package/ios/views/RNAOA11yIndexView/RNAOA11yIndexView.mm +1 -5
- package/ios/views/RNAOA11yLockView/RNAOA11yLockView.h +0 -12
- package/ios/views/RNAOA11yLockView/RNAOA11yLockView.mm +1 -11
- package/ios/views/RNAOA11yOrderView/RNAOA11yOrderView.h +0 -14
- package/ios/views/RNAOA11yOrderView/RNAOA11yOrderView.mm +2 -22
- package/ios/views/RNAOA11yPaneTitleView/RNAOA11yPaneTitleView.h +0 -16
- package/ios/views/RNAOA11yPaneTitleView/RNAOA11yPaneTitleView.mm +4 -11
- package/ios/views/base/RNAOA11yGroupChildrenView.h +0 -4
- package/ios/views/base/RNAOA11yManagedFocusView.h +0 -11
- package/ios/views/base/RNAOA11yManagedFocusView.mm +0 -43
- package/ios/views/base/RNAOA11yScreenReaderView.h +0 -7
- package/ios/views/base/RNAOA11yScreenReaderView.mm +0 -2
- package/ios/views/base/RNAOA11yViewGroup.h +0 -14
- package/ios/views/base/RNAOA11yViewOrder.h +0 -16
- package/ios/views/base/RNAOA11yViewOrder.mm +0 -26
- package/lib/module/components/A11yCard/A11yCard.ios.js +0 -1
- package/lib/module/components/A11yCard/A11yCard.ios.js.map +1 -1
- package/lib/module/components/A11yCard/A11yCard.js +0 -1
- package/lib/module/components/A11yCard/A11yCard.js.map +1 -1
- package/lib/module/components/A11yIndex/A11yIndex.js +2 -2
- package/lib/module/components/A11yIndex/A11yIndex.js.map +1 -1
- package/lib/module/components/A11yIndex/A11yIndex.web.js +0 -1
- package/lib/module/components/A11yIndex/A11yIndex.web.js.map +1 -1
- package/lib/module/components/A11yLock/A11yFocusFrame/A11yFocusFrame.android.js +2 -2
- package/lib/module/components/A11yLock/A11yFocusFrame/A11yFocusFrame.android.js.map +1 -1
- package/lib/module/components/A11yLock/A11yFocusFrame/A11yFocusFrame.js +1 -2
- package/lib/module/components/A11yLock/A11yFocusFrame/A11yFocusFrame.js.map +1 -1
- package/lib/module/components/A11yLock/A11yFocusTrap/A11yFocusTrap.android.js +2 -2
- package/lib/module/components/A11yLock/A11yFocusTrap/A11yFocusTrap.android.js.map +1 -1
- package/lib/module/components/A11yLock/A11yFocusTrap/A11yFocusTrap.js +2 -3
- package/lib/module/components/A11yLock/A11yFocusTrap/A11yFocusTrap.js.map +1 -1
- package/lib/module/components/A11yLock/A11yFocusTrap/A11yFocusTrapMountWrapper.js +1 -1
- package/lib/module/components/A11yLock/A11yFocusTrap/A11yFocusTrapMountWrapper.js.map +1 -1
- package/lib/module/components/A11yOrder/A11yOrder.js +1 -1
- package/lib/module/components/A11yOrder/A11yOrder.js.map +1 -1
- package/lib/module/components/A11yPaneTitle/A11yPaneTitle.js +0 -1
- package/lib/module/components/A11yPaneTitle/A11yPaneTitle.js.map +1 -1
- package/lib/module/index.js +4 -4
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +1 -1
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/modules/A11yAnnounceModule.js +4 -18
- package/lib/module/modules/A11yAnnounceModule.js.map +1 -1
- package/lib/module/nativeSpecs/A11yCardNativeComponent.ts +6 -2
- package/lib/module/nativeSpecs/A11yIndexNativeComponent.ts +10 -12
- package/lib/module/nativeSpecs/A11yLockNativeComponent.ts +10 -4
- package/lib/module/nativeSpecs/A11yOrderNativeComponent.ts +6 -2
- package/lib/module/nativeSpecs/A11yPaneTitleNativeComponent.ts +10 -4
- package/lib/module/nativeSpecs/NativeA11yAnnounceModule.js +1 -1
- package/lib/module/nativeSpecs/NativeA11yAnnounceModule.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/components/A11yCard/A11yCard.d.ts +2 -3
- package/lib/typescript/src/components/A11yCard/A11yCard.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yCard/A11yCard.ios.d.ts +2 -3
- package/lib/typescript/src/components/A11yCard/A11yCard.ios.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yIndex/A11yIndex.d.ts +5 -127
- package/lib/typescript/src/components/A11yIndex/A11yIndex.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yIndex/A11yIndex.web.d.ts +5 -129
- 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 -3
- 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 -3
- package/lib/typescript/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yOrder/A11yOrder.d.ts +2 -125
- package/lib/typescript/src/components/A11yOrder/A11yOrder.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yPaneTitle/A11yPaneTitle.d.ts +3 -4
- package/lib/typescript/src/components/A11yPaneTitle/A11yPaneTitle.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yView/A11yView.d.ts +3 -126
- package/lib/typescript/src/components/A11yView/A11yView.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yView/A11yView.types.d.ts +2 -2
- package/lib/typescript/src/components/A11yView/A11yView.types.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +17 -386
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/index.web.d.ts +20 -143
- package/lib/typescript/src/index.web.d.ts.map +1 -1
- package/lib/typescript/src/modules/A11yAnnounceModule.d.ts.map +1 -1
- package/lib/typescript/src/nativeSpecs/A11yCardNativeComponent.d.ts +2 -2
- package/lib/typescript/src/nativeSpecs/A11yCardNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/nativeSpecs/A11yIndexNativeComponent.d.ts +9 -10
- package/lib/typescript/src/nativeSpecs/A11yIndexNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/nativeSpecs/A11yLockNativeComponent.d.ts +3 -4
- package/lib/typescript/src/nativeSpecs/A11yLockNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/nativeSpecs/A11yOrderNativeComponent.d.ts +2 -2
- package/lib/typescript/src/nativeSpecs/A11yOrderNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/nativeSpecs/A11yPaneTitleNativeComponent.d.ts +3 -4
- package/lib/typescript/src/nativeSpecs/A11yPaneTitleNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/nativeSpecs/NativeA11yAnnounceModule.d.ts +1 -1
- package/lib/typescript/src/nativeSpecs/NativeA11yAnnounceModule.d.ts.map +1 -1
- package/package.json +54 -32
- package/react-native-a11y-order.podspec +2 -2
- package/react-native.config.js +12 -0
- package/src/components/A11yCard/A11yCard.ios.tsx +0 -1
- package/src/components/A11yCard/A11yCard.tsx +0 -1
- package/src/components/A11yIndex/A11yIndex.tsx +5 -5
- package/src/components/A11yIndex/A11yIndex.web.tsx +0 -1
- package/src/components/A11yLock/A11yFocusFrame/A11yFocusFrame.tsx +0 -1
- package/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.tsx +0 -1
- package/src/components/A11yPaneTitle/A11yPaneTitle.tsx +0 -1
- package/src/modules/A11yAnnounceModule.ts +3 -28
- package/src/nativeSpecs/A11yCardNativeComponent.ts +6 -2
- package/src/nativeSpecs/A11yIndexNativeComponent.ts +10 -12
- package/src/nativeSpecs/A11yLockNativeComponent.ts +10 -4
- package/src/nativeSpecs/A11yOrderNativeComponent.ts +6 -2
- package/src/nativeSpecs/A11yPaneTitleNativeComponent.ts +10 -4
- package/src/nativeSpecs/NativeA11yAnnounceModule.ts +1 -1
- package/android/gradle.properties +0 -5
- package/android/src/oldarch/A11yAnnounceModuleSpec.java +0 -19
- package/android/src/oldarch/A11yCardViewManagerSpec.java +0 -8
- package/android/src/oldarch/A11yIndexViewManagerSpec.java +0 -22
- package/android/src/oldarch/A11yLockViewManagerSpec.java +0 -15
- package/android/src/oldarch/A11yOrderViewManagerSpec.java +0 -8
- package/android/src/oldarch/A11yPaneTitleSpec.java +0 -15
- package/ios/views/RNAOA11yCardView/RNAOA11yCardViewManager.h +0 -14
- package/ios/views/RNAOA11yCardView/RNAOA11yCardViewManager.mm +0 -17
- package/ios/views/RNAOA11yIndexView/RNAOA11yIndexViewManager.h +0 -19
- package/ios/views/RNAOA11yIndexView/RNAOA11yIndexViewManager.mm +0 -75
- package/ios/views/RNAOA11yLockView/RNAOA11yLockViewManager.h +0 -14
- package/ios/views/RNAOA11yLockView/RNAOA11yLockViewManager.mm +0 -28
- package/ios/views/RNAOA11yOrderView/RNAOA11yOrderViewManager.h +0 -18
- package/ios/views/RNAOA11yOrderView/RNAOA11yOrderViewManager.mm +0 -31
- package/ios/views/RNAOA11yPaneTitleView/RNAOA11yPaneTitleViewManager.h +0 -15
- package/ios/views/RNAOA11yPaneTitleView/RNAOA11yPaneTitleViewManager.mm +0 -42
- package/lib/commonjs/components/A11yCard/A11yCard.ios.js +0 -56
- package/lib/commonjs/components/A11yCard/A11yCard.ios.js.map +0 -1
- package/lib/commonjs/components/A11yCard/A11yCard.js +0 -41
- package/lib/commonjs/components/A11yCard/A11yCard.js.map +0 -1
- package/lib/commonjs/components/A11yCard/A11yCard.types.js +0 -6
- package/lib/commonjs/components/A11yCard/A11yCard.types.js.map +0 -1
- package/lib/commonjs/components/A11yIndex/A11yIndex.js +0 -118
- package/lib/commonjs/components/A11yIndex/A11yIndex.js.map +0 -1
- package/lib/commonjs/components/A11yIndex/A11yIndex.types.js +0 -39
- package/lib/commonjs/components/A11yIndex/A11yIndex.types.js.map +0 -1
- package/lib/commonjs/components/A11yIndex/A11yIndex.web.js +0 -26
- package/lib/commonjs/components/A11yIndex/A11yIndex.web.js.map +0 -1
- package/lib/commonjs/components/A11yLock/A11yBaseLock/A11yBaseLock.js +0 -25
- package/lib/commonjs/components/A11yLock/A11yBaseLock/A11yBaseLock.js.map +0 -1
- package/lib/commonjs/components/A11yLock/A11yFocusFrame/A11yFocusFrame.android.js +0 -24
- package/lib/commonjs/components/A11yLock/A11yFocusFrame/A11yFocusFrame.android.js.map +0 -1
- package/lib/commonjs/components/A11yLock/A11yFocusFrame/A11yFocusFrame.js +0 -18
- package/lib/commonjs/components/A11yLock/A11yFocusFrame/A11yFocusFrame.js.map +0 -1
- package/lib/commonjs/components/A11yLock/A11yFocusTrap/A11yFocusTrap.android.js +0 -22
- package/lib/commonjs/components/A11yLock/A11yFocusTrap/A11yFocusTrap.android.js.map +0 -1
- package/lib/commonjs/components/A11yLock/A11yFocusTrap/A11yFocusTrap.js +0 -36
- package/lib/commonjs/components/A11yLock/A11yFocusTrap/A11yFocusTrap.js.map +0 -1
- package/lib/commonjs/components/A11yLock/A11yFocusTrap/A11yFocusTrapMountWrapper.js +0 -46
- package/lib/commonjs/components/A11yLock/A11yFocusTrap/A11yFocusTrapMountWrapper.js.map +0 -1
- package/lib/commonjs/components/A11yLock/A11yLock.types.js +0 -6
- package/lib/commonjs/components/A11yLock/A11yLock.types.js.map +0 -1
- package/lib/commonjs/components/A11yOrder/A11yOrder.js +0 -22
- package/lib/commonjs/components/A11yOrder/A11yOrder.js.map +0 -1
- package/lib/commonjs/components/A11yOrder/A11yOrder.types.js +0 -6
- package/lib/commonjs/components/A11yOrder/A11yOrder.types.js.map +0 -1
- package/lib/commonjs/components/A11yPaneTitle/A11yPaneTitle.js +0 -41
- package/lib/commonjs/components/A11yPaneTitle/A11yPaneTitle.js.map +0 -1
- package/lib/commonjs/components/A11yPaneTitle/A11yPaneTitle.types.js +0 -6
- package/lib/commonjs/components/A11yPaneTitle/A11yPaneTitle.types.js.map +0 -1
- package/lib/commonjs/components/A11yView/A11yView.js +0 -14
- package/lib/commonjs/components/A11yView/A11yView.js.map +0 -1
- package/lib/commonjs/components/A11yView/A11yView.types.js +0 -6
- package/lib/commonjs/components/A11yView/A11yView.types.js.map +0 -1
- package/lib/commonjs/context/A11yFocusFrameProviderContext.js +0 -30
- package/lib/commonjs/context/A11yFocusFrameProviderContext.js.map +0 -1
- package/lib/commonjs/context/A11ySequenceOrderContext.js +0 -10
- package/lib/commonjs/context/A11ySequenceOrderContext.js.map +0 -1
- package/lib/commonjs/index.js +0 -60
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/index.web.js +0 -33
- package/lib/commonjs/index.web.js.map +0 -1
- package/lib/commonjs/modules/A11yAnnounceModule.android.js +0 -45
- package/lib/commonjs/modules/A11yAnnounceModule.android.js.map +0 -1
- package/lib/commonjs/modules/A11yAnnounceModule.js +0 -86
- package/lib/commonjs/modules/A11yAnnounceModule.js.map +0 -1
- package/lib/commonjs/nativeSpecs/A11yCardNativeComponent.ts +0 -7
- package/lib/commonjs/nativeSpecs/A11yIndexNativeComponent.ts +0 -47
- package/lib/commonjs/nativeSpecs/A11yLockNativeComponent.ts +0 -11
- package/lib/commonjs/nativeSpecs/A11yOrderNativeComponent.ts +0 -9
- package/lib/commonjs/nativeSpecs/A11yPaneTitleNativeComponent.ts +0 -11
- package/lib/commonjs/nativeSpecs/NativeA11yAnnounceModule.js +0 -11
- package/lib/commonjs/nativeSpecs/NativeA11yAnnounceModule.js.map +0 -1
- package/lib/commonjs/package.json +0 -1
- /package/android/src/{newarch → main/java/com/a11yorder}/A11yAnnounceModuleSpec.java +0 -0
- /package/android/src/{newarch → main/java/com/a11yorder}/A11yCardViewManagerSpec.java +0 -0
- /package/android/src/{newarch → main/java/com/a11yorder}/A11yPaneTitleSpec.java +0 -0
|
@@ -1,30 +1,5 @@
|
|
|
1
|
-
import { NativeModules, Platform } from 'react-native';
|
|
2
1
|
import NativeA11yAnnounceModule from '../nativeSpecs/NativeA11yAnnounceModule';
|
|
3
2
|
|
|
4
|
-
const LINKING_ERROR =
|
|
5
|
-
`The package 'react-native-a11y-order' doesn't seem to be linked. Make sure: \n\n${Platform.select(
|
|
6
|
-
{ ios: "- You have run 'pod install'\n", default: '' }
|
|
7
|
-
)}- You rebuilt the app after installing the package\n` +
|
|
8
|
-
`- You are not using Expo Go\n`;
|
|
9
|
-
|
|
10
|
-
// @ts-expect-error
|
|
11
|
-
const isTurboModuleEnabled = global.__turboModuleProxy != null;
|
|
12
|
-
|
|
13
|
-
const A11yAnnounceNative = isTurboModuleEnabled
|
|
14
|
-
? NativeA11yAnnounceModule
|
|
15
|
-
: NativeModules.A11yAnnounceModule;
|
|
16
|
-
|
|
17
|
-
const A11yAnnounceProxy: typeof NativeA11yAnnounceModule =
|
|
18
|
-
A11yAnnounceNative ??
|
|
19
|
-
new Proxy(
|
|
20
|
-
{},
|
|
21
|
-
{
|
|
22
|
-
get() {
|
|
23
|
-
throw new Error(LINKING_ERROR);
|
|
24
|
-
},
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
|
|
28
3
|
// ─── Types ────────────────────────────────────────────────────────────────────
|
|
29
4
|
|
|
30
5
|
export type AnnouncePriority = 'low' | 'default' | 'high';
|
|
@@ -137,7 +112,7 @@ export function announce(
|
|
|
137
112
|
options?: AnnounceOptions
|
|
138
113
|
): Promise<AnnouncementResult> {
|
|
139
114
|
const { speech, ...rest } = options ?? {};
|
|
140
|
-
return
|
|
115
|
+
return NativeA11yAnnounceModule.announce(message, {
|
|
141
116
|
...rest,
|
|
142
117
|
...speech,
|
|
143
118
|
}) as Promise<AnnouncementResult>;
|
|
@@ -149,7 +124,7 @@ export function announce(
|
|
|
149
124
|
* In direct mode, interrupts the active announcement if it matches.
|
|
150
125
|
*/
|
|
151
126
|
export function cancel(id: string): Promise<AnnouncementResult> {
|
|
152
|
-
return
|
|
127
|
+
return NativeA11yAnnounceModule.cancel(id) as Promise<AnnouncementResult>;
|
|
153
128
|
}
|
|
154
129
|
|
|
155
130
|
/**
|
|
@@ -157,7 +132,7 @@ export function cancel(id: string): Promise<AnnouncementResult> {
|
|
|
157
132
|
* Calm-mode promises resolve with `status: 'cancelled'`.
|
|
158
133
|
*/
|
|
159
134
|
export function cancelAll(): Promise<AnnouncementResult> {
|
|
160
|
-
return
|
|
135
|
+
return NativeA11yAnnounceModule.cancelAll() as Promise<AnnouncementResult>;
|
|
161
136
|
}
|
|
162
137
|
|
|
163
138
|
// ─── Namespace export (backward-compatible) ───────────────────────────────────
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
codegenNativeComponent,
|
|
3
|
+
type ViewProps,
|
|
4
|
+
type HostComponent,
|
|
5
|
+
} from 'react-native';
|
|
2
6
|
|
|
3
7
|
export interface A11yCardNativeComponentProps extends ViewProps {}
|
|
4
8
|
|
|
5
9
|
export default codegenNativeComponent<A11yCardNativeComponentProps>(
|
|
6
10
|
'A11yCardView'
|
|
7
|
-
)
|
|
11
|
+
) as HostComponent<A11yCardNativeComponentProps>;
|
|
@@ -3,11 +3,9 @@ import {
|
|
|
3
3
|
codegenNativeComponent,
|
|
4
4
|
codegenNativeCommands,
|
|
5
5
|
type ViewProps,
|
|
6
|
+
type CodegenTypes,
|
|
7
|
+
type HostComponent,
|
|
6
8
|
} from 'react-native';
|
|
7
|
-
import type {
|
|
8
|
-
DirectEventHandler,
|
|
9
|
-
Int32,
|
|
10
|
-
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
11
9
|
|
|
12
10
|
export type ScreenReaderFocusChange = Readonly<{
|
|
13
11
|
isFocused: boolean;
|
|
@@ -19,18 +17,18 @@ export type ScreenReaderDescendantFocusChanged = Readonly<{
|
|
|
19
17
|
}>;
|
|
20
18
|
|
|
21
19
|
export interface A11yIndexNativeComponentProps extends ViewProps {
|
|
22
|
-
orderIndex?: Int32;
|
|
20
|
+
orderIndex?: CodegenTypes.Int32;
|
|
23
21
|
orderKey?: string;
|
|
24
|
-
orderFocusType?: Int32;
|
|
25
|
-
shouldGroupAccessibilityChildren?: Int32;
|
|
22
|
+
orderFocusType?: CodegenTypes.Int32;
|
|
23
|
+
shouldGroupAccessibilityChildren?: CodegenTypes.Int32;
|
|
26
24
|
|
|
27
25
|
descendantFocusChangedEnabled?: boolean;
|
|
28
26
|
|
|
29
|
-
onScreenReaderFocused?: DirectEventHandler<{}>;
|
|
30
|
-
onScreenReaderDescendantFocusChanged?: DirectEventHandler<ScreenReaderDescendantFocusChanged>;
|
|
31
|
-
onScreenReaderFocusChange?: DirectEventHandler<ScreenReaderFocusChange>;
|
|
27
|
+
onScreenReaderFocused?: CodegenTypes.DirectEventHandler<{}>;
|
|
28
|
+
onScreenReaderDescendantFocusChanged?: CodegenTypes.DirectEventHandler<ScreenReaderDescendantFocusChanged>;
|
|
29
|
+
onScreenReaderFocusChange?: CodegenTypes.DirectEventHandler<ScreenReaderFocusChange>;
|
|
32
30
|
|
|
33
|
-
containerType?: Int32;
|
|
31
|
+
containerType?: CodegenTypes.Int32;
|
|
34
32
|
}
|
|
35
33
|
|
|
36
34
|
export interface NativeCommands {
|
|
@@ -44,4 +42,4 @@ export const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({
|
|
|
44
42
|
|
|
45
43
|
export default codegenNativeComponent<A11yIndexNativeComponentProps>(
|
|
46
44
|
'A11yIndexView'
|
|
47
|
-
)
|
|
45
|
+
) as HostComponent<A11yIndexNativeComponentProps>;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
codegenNativeComponent,
|
|
3
|
+
type HostComponent,
|
|
4
|
+
type ViewProps,
|
|
5
|
+
type CodegenTypes,
|
|
6
|
+
} from 'react-native';
|
|
3
7
|
|
|
4
8
|
export interface A11yLockNativeComponentProps extends ViewProps {
|
|
5
|
-
componentType: Int32;
|
|
9
|
+
componentType: CodegenTypes.Int32;
|
|
6
10
|
containerKey?: string;
|
|
7
11
|
lockDisabled?: boolean;
|
|
8
12
|
forceLock?: boolean;
|
|
9
13
|
}
|
|
10
14
|
|
|
11
|
-
export default codegenNativeComponent<A11yLockNativeComponentProps>(
|
|
15
|
+
export default codegenNativeComponent<A11yLockNativeComponentProps>(
|
|
16
|
+
'A11yLock'
|
|
17
|
+
) as HostComponent<A11yLockNativeComponentProps>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
codegenNativeComponent,
|
|
3
|
+
type HostComponent,
|
|
4
|
+
type ViewProps,
|
|
5
|
+
} from 'react-native';
|
|
2
6
|
|
|
3
7
|
export interface A11yOrderNativeComponentProps extends ViewProps {
|
|
4
8
|
orderKey: string;
|
|
@@ -6,4 +10,4 @@ export interface A11yOrderNativeComponentProps extends ViewProps {
|
|
|
6
10
|
|
|
7
11
|
export default codegenNativeComponent<A11yOrderNativeComponentProps>(
|
|
8
12
|
'A11yOrderView'
|
|
9
|
-
)
|
|
13
|
+
) as HostComponent<A11yOrderNativeComponentProps>;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
codegenNativeComponent,
|
|
3
|
+
type ViewProps,
|
|
4
|
+
type CodegenTypes,
|
|
5
|
+
type HostComponent,
|
|
6
|
+
} from 'react-native';
|
|
3
7
|
|
|
4
8
|
export interface A11yPaneTitleProps extends ViewProps {
|
|
5
9
|
title?: string;
|
|
6
10
|
detachMessage?: string;
|
|
7
|
-
type: Int32;
|
|
11
|
+
type: CodegenTypes.Int32;
|
|
8
12
|
withFocusRestore?: boolean;
|
|
9
13
|
}
|
|
10
14
|
|
|
11
|
-
export default codegenNativeComponent<A11yPaneTitleProps>(
|
|
15
|
+
export default codegenNativeComponent<A11yPaneTitleProps>(
|
|
16
|
+
'A11yPaneTitle'
|
|
17
|
+
) as HostComponent<A11yPaneTitleProps>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
package com.a11yorder;
|
|
2
|
-
|
|
3
|
-
import androidx.annotation.Nullable;
|
|
4
|
-
import com.facebook.react.bridge.Promise;
|
|
5
|
-
import com.facebook.react.bridge.ReactApplicationContext;
|
|
6
|
-
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
7
|
-
import com.facebook.react.bridge.ReadableMap;
|
|
8
|
-
|
|
9
|
-
public abstract class A11yAnnounceModuleSpec extends ReactContextBaseJavaModule {
|
|
10
|
-
protected A11yAnnounceModuleSpec(ReactApplicationContext context) {
|
|
11
|
-
super(context);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
public abstract void announce(String message, @Nullable ReadableMap options, Promise promise);
|
|
15
|
-
|
|
16
|
-
public abstract void cancel(String id, Promise promise);
|
|
17
|
-
|
|
18
|
-
public abstract void cancelAll(Promise promise);
|
|
19
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
package com.a11yorder;
|
|
2
|
-
|
|
3
|
-
import com.a11yorder.views.A11yIndexView.A11yIndexView;
|
|
4
|
-
import com.facebook.react.uimanager.annotations.ReactProp;
|
|
5
|
-
import com.facebook.react.views.view.ReactViewManager;
|
|
6
|
-
|
|
7
|
-
public abstract class A11yIndexViewManagerSpec<T extends A11yIndexView> extends ReactViewManager {
|
|
8
|
-
public abstract void setOrderIndex(T viewGroup, int value);
|
|
9
|
-
|
|
10
|
-
public abstract void setOrderKey(T viewGroup, String value);
|
|
11
|
-
|
|
12
|
-
public abstract void setOrderFocusType(T viewGroup, int value);
|
|
13
|
-
|
|
14
|
-
public abstract void focus(T view);
|
|
15
|
-
|
|
16
|
-
public abstract void setDescendantFocusChangedEnabled(A11yIndexView view, boolean value);
|
|
17
|
-
|
|
18
|
-
public abstract void setContainerType(A11yIndexView view, int value);
|
|
19
|
-
|
|
20
|
-
public abstract void setShouldGroupAccessibilityChildren(A11yIndexView view, int value);
|
|
21
|
-
|
|
22
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
package com.a11yorder;
|
|
2
|
-
|
|
3
|
-
import com.a11yorder.views.A11yLockView.A11yLockView;
|
|
4
|
-
import com.facebook.react.views.view.ReactViewManager;
|
|
5
|
-
|
|
6
|
-
public abstract class A11yLockViewManagerSpec<T extends A11yLockView> extends ReactViewManager {
|
|
7
|
-
public abstract void setComponentType(T view, int value);
|
|
8
|
-
|
|
9
|
-
public abstract void setContainerKey(T view, String value);
|
|
10
|
-
|
|
11
|
-
public abstract void setLockDisabled(T view, boolean value);
|
|
12
|
-
|
|
13
|
-
public abstract void setForceLock(A11yLockView view, boolean value);
|
|
14
|
-
}
|
|
15
|
-
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
package com.a11yorder;
|
|
2
|
-
|
|
3
|
-
import com.a11yorder.views.A11yOrderView.A11yOrderView;
|
|
4
|
-
import com.facebook.react.views.view.ReactViewManager;
|
|
5
|
-
|
|
6
|
-
public abstract class A11yOrderViewManagerSpec<T extends A11yOrderView> extends ReactViewManager {
|
|
7
|
-
public abstract void setOrderKey(T view, @androidx.annotation.Nullable String value);
|
|
8
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
package com.a11yorder;
|
|
2
|
-
|
|
3
|
-
import com.a11yorder.views.A11yPaneTitle.A11yPaneTitle;
|
|
4
|
-
import com.facebook.react.views.view.ReactViewManager;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
public abstract class A11yPaneTitleSpec<T extends A11yPaneTitle> extends ReactViewManager {
|
|
8
|
-
public abstract void setTitle(T view, @androidx.annotation.Nullable String value);
|
|
9
|
-
|
|
10
|
-
public abstract void setDetachMessage(T view, @androidx.annotation.Nullable String value);
|
|
11
|
-
|
|
12
|
-
public abstract void setType(A11yPaneTitle view, int value);
|
|
13
|
-
|
|
14
|
-
public abstract void setWithFocusRestore(A11yPaneTitle view, boolean withFocusRestore);
|
|
15
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// RNAOA11yCardViewManager.h
|
|
3
|
-
// react-native-a11y-order
|
|
4
|
-
//
|
|
5
|
-
|
|
6
|
-
#ifndef RNAOA11yCardViewManager_h
|
|
7
|
-
#define RNAOA11yCardViewManager_h
|
|
8
|
-
|
|
9
|
-
#import <React/RCTViewManager.h>
|
|
10
|
-
|
|
11
|
-
@interface RNAOA11yCardViewManager : RCTViewManager
|
|
12
|
-
@end
|
|
13
|
-
|
|
14
|
-
#endif /* RNAOA11yCardViewManager_h */
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// RNAOA11yCardViewManager.mm
|
|
3
|
-
// react-native-a11y-order
|
|
4
|
-
//
|
|
5
|
-
|
|
6
|
-
#import "RNAOA11yCardView.h"
|
|
7
|
-
#import "RNAOA11yCardViewManager.h"
|
|
8
|
-
|
|
9
|
-
@implementation RNAOA11yCardViewManager
|
|
10
|
-
|
|
11
|
-
RCT_EXPORT_MODULE(A11yCardView)
|
|
12
|
-
|
|
13
|
-
- (UIView *)view {
|
|
14
|
-
return [[RNAOA11yCardView alloc] init];
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@end
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// RNAOA11yIndexViewManager.h
|
|
3
|
-
// A11yOrder
|
|
4
|
-
//
|
|
5
|
-
// Created by Artur Kalach on 13/07/2024.
|
|
6
|
-
// Copyright © 2024 Facebook. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#ifndef RNAOA11yIndexViewManager_h
|
|
10
|
-
#define RNAOA11yIndexViewManager_h
|
|
11
|
-
|
|
12
|
-
#import <React/RCTViewManager.h>
|
|
13
|
-
#import <React/RCTUIManager.h>
|
|
14
|
-
|
|
15
|
-
@interface RNAOA11yIndexViewManager : RCTViewManager
|
|
16
|
-
@end
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
#endif /* RNAOA11yIndexViewManager_h */
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// RNAOA11yIndexViewManager.m
|
|
3
|
-
// A11yOrder
|
|
4
|
-
//
|
|
5
|
-
// Created by Artur Kalach on 13/07/2024.
|
|
6
|
-
// Copyright © 2024 Facebook. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <React/RCTViewManager.h>
|
|
10
|
-
#import <React/RCTUIManager.h>
|
|
11
|
-
#import "RNAOA11yIndexView.h"
|
|
12
|
-
#import "RNAOA11yIndexViewManager.h"
|
|
13
|
-
|
|
14
|
-
@implementation RNAOA11yIndexViewManager
|
|
15
|
-
|
|
16
|
-
RCT_EXPORT_MODULE(A11yIndexView)
|
|
17
|
-
|
|
18
|
-
- (UIView *)view
|
|
19
|
-
{
|
|
20
|
-
return [[RNAOA11yIndexView alloc] init];
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
RCT_CUSTOM_VIEW_PROPERTY(orderIndex, int, RNAOA11yIndexView)
|
|
24
|
-
{
|
|
25
|
-
int value = json ? [RCTConvert int:json] : 0;
|
|
26
|
-
[view setPosition: @(value)];
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
RCT_CUSTOM_VIEW_PROPERTY(orderFocusType, int, RNAOA11yIndexView)
|
|
30
|
-
{
|
|
31
|
-
int value = json ? [RCTConvert int:json] : 0;
|
|
32
|
-
[view setOrderFocusType: @(value)];
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
RCT_CUSTOM_VIEW_PROPERTY(orderKey, NSString, RNAOA11yIndexView)
|
|
36
|
-
{
|
|
37
|
-
NSString *value = json ? [RCTConvert NSString:json] : @"";
|
|
38
|
-
[view setOrderKey: value];
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
RCT_EXPORT_METHOD(focus:(nonnull NSNumber *)reactTag)
|
|
42
|
-
{
|
|
43
|
-
[self.bridge.uiManager addUIBlock:^(RCTUIManager *uiManager, NSDictionary<NSNumber *,UIView *> *viewRegistry) {
|
|
44
|
-
UIView *view = viewRegistry[reactTag];
|
|
45
|
-
if (!view || ![view isKindOfClass:[UIView class]]) {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
UIAccessibilityPostNotification(UIAccessibilityLayoutChangedNotification, view);
|
|
49
|
-
}];
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
RCT_CUSTOM_VIEW_PROPERTY(descendantFocusChangedEnabled, BOOL, RNAOA11yIndexView)
|
|
53
|
-
{
|
|
54
|
-
BOOL value = json ? [RCTConvert BOOL:json] : NO;
|
|
55
|
-
[view setDescendantFocusChangedEnabled: value];
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
RCT_CUSTOM_VIEW_PROPERTY(shouldGroupAccessibilityChildren, int, RNAOA11yIndexView)
|
|
59
|
-
{
|
|
60
|
-
int value = json ? [RCTConvert int:json] : -1;
|
|
61
|
-
[view setGroupChildrenMode: value];
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
RCT_CUSTOM_VIEW_PROPERTY(containerType, NSInteger, UIView)
|
|
65
|
-
{
|
|
66
|
-
NSInteger viewContainerType = json ? [RCTConvert NSInteger:json] : 0;
|
|
67
|
-
view.accessibilityContainerType = (UIAccessibilityContainerType)viewContainerType;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
RCT_EXPORT_VIEW_PROPERTY(onScreenReaderFocused, RCTDirectEventBlock)
|
|
71
|
-
RCT_EXPORT_VIEW_PROPERTY(onScreenReaderFocusChange, RCTDirectEventBlock)
|
|
72
|
-
RCT_EXPORT_VIEW_PROPERTY(onScreenReaderDescendantFocusChanged, RCTDirectEventBlock)
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
@end
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// RNAOA11yLockViewManager.h
|
|
3
|
-
// Pods
|
|
4
|
-
//
|
|
5
|
-
// Created by Artur Kalach on 29/11/2025.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
#ifndef RNAOA11yLockViewManager_h
|
|
9
|
-
#define RNAOA11yLockViewManager_h
|
|
10
|
-
|
|
11
|
-
@interface RNAOA11yLockViewManager : RCTViewManager
|
|
12
|
-
@end
|
|
13
|
-
|
|
14
|
-
#endif /* RNAOA11yLockViewManager_h */
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// RNAOA11yLockViewManager.m
|
|
3
|
-
// react-native-a11y-order
|
|
4
|
-
//
|
|
5
|
-
// Created by Artur Kalach on 29/11/2025.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
#import <Foundation/Foundation.h>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
#import <React/RCTViewManager.h>
|
|
12
|
-
#import <React/RCTUIManager.h>
|
|
13
|
-
#import "RNAOA11yLockView.h"
|
|
14
|
-
#import "RNAOA11yLockViewManager.h"
|
|
15
|
-
|
|
16
|
-
@implementation RNAOA11yLockViewManager
|
|
17
|
-
|
|
18
|
-
RCT_EXPORT_MODULE(A11yLock)
|
|
19
|
-
|
|
20
|
-
- (UIView *)view
|
|
21
|
-
{
|
|
22
|
-
return [[RNAOA11yLockView alloc] init];
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
RCT_EXPORT_VIEW_PROPERTY(lockDisabled, BOOL)
|
|
26
|
-
RCT_EXPORT_VIEW_PROPERTY(componentType, NSInteger)
|
|
27
|
-
|
|
28
|
-
@end
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// RNAOA11yOrderViewManager.h
|
|
3
|
-
// A11yOrder
|
|
4
|
-
//
|
|
5
|
-
// Created by Artur Kalach on 13/07/2024.
|
|
6
|
-
// Copyright © 2024 Facebook. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#ifndef RNAOA11yOrderViewManager_h
|
|
10
|
-
#define RNAOA11yOrderViewManager_h
|
|
11
|
-
|
|
12
|
-
#import <React/RCTViewManager.h>
|
|
13
|
-
|
|
14
|
-
@interface RNAOA11yOrderViewManager : RCTViewManager
|
|
15
|
-
@end
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
#endif /* RNAOA11yOrderViewManager_h */
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// RNAOA11yOrderViewManager.m
|
|
3
|
-
// A11yOrder
|
|
4
|
-
//
|
|
5
|
-
// Created by Artur Kalach on 13/07/2024.
|
|
6
|
-
// Copyright © 2024 Facebook. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
11
|
-
#import <React/RCTViewManager.h>
|
|
12
|
-
#import <React/RCTUIManager.h>
|
|
13
|
-
#import "RNAOA11yOrderView.h"
|
|
14
|
-
#import "RNAOA11yOrderViewManager.h"
|
|
15
|
-
|
|
16
|
-
@implementation RNAOA11yOrderViewManager
|
|
17
|
-
|
|
18
|
-
RCT_EXPORT_MODULE(A11yOrderView)
|
|
19
|
-
|
|
20
|
-
- (UIView *)view
|
|
21
|
-
{
|
|
22
|
-
return [[RNAOA11yOrderView alloc] init];
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
RCT_CUSTOM_VIEW_PROPERTY(orderKey, NSString, RNAOA11yOrderView)
|
|
26
|
-
{
|
|
27
|
-
NSString *value = json ? [RCTConvert NSString:json] : @"";
|
|
28
|
-
[view setOrderKey:value];
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@end
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// RNAOA11yPaneTitleViewManager.h
|
|
3
|
-
// Pods
|
|
4
|
-
//
|
|
5
|
-
// Created by Artur Kalach on 15/08/2025.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
#ifndef RNAOA11yPaneTitleViewManager_h
|
|
9
|
-
#define RNAOA11yPaneTitleViewManager_h
|
|
10
|
-
|
|
11
|
-
@interface RNAOA11yPaneTitleViewManager : RCTViewManager
|
|
12
|
-
@end
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
#endif /* RNAOA11yPaneTitleViewManager_h */
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// RNAOA11yPaneTitleViewManager.m
|
|
3
|
-
// react-native-a11y-order
|
|
4
|
-
//
|
|
5
|
-
// Created by Artur Kalach on 15/08/2025.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
#import <Foundation/Foundation.h>
|
|
9
|
-
|
|
10
|
-
#import <React/RCTViewManager.h>
|
|
11
|
-
#import <React/RCTUIManager.h>
|
|
12
|
-
#import "RNAOA11yPaneTitleView.h"
|
|
13
|
-
#import "RNAOA11yPaneTitleViewManager.h"
|
|
14
|
-
|
|
15
|
-
@implementation RNAOA11yPaneTitleViewManager
|
|
16
|
-
|
|
17
|
-
RCT_EXPORT_MODULE(A11yPaneTitle)
|
|
18
|
-
|
|
19
|
-
- (UIView *)view
|
|
20
|
-
{
|
|
21
|
-
return [[RNAOA11yPaneTitleView alloc] init];
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
RCT_CUSTOM_VIEW_PROPERTY(title, NSString, RNAOA11yPaneTitleView)
|
|
25
|
-
{
|
|
26
|
-
NSString *value = json ? [RCTConvert NSString:json] : nil;
|
|
27
|
-
[view setTitle:value];
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
RCT_CUSTOM_VIEW_PROPERTY(detachMessage, NSString, RNAOA11yPaneTitleView)
|
|
31
|
-
{
|
|
32
|
-
NSString *value = json ? [RCTConvert NSString:json] : nil;
|
|
33
|
-
[view setDetachMessage: value];
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
RCT_CUSTOM_VIEW_PROPERTY(withFocusRestore, BOOL, RNAOA11yPaneTitleView)
|
|
37
|
-
{
|
|
38
|
-
BOOL value = json ? [RCTConvert BOOL:json] : NO;
|
|
39
|
-
[view setWithFocusRestore: value];
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@end
|
|
@@ -1,56 +0,0 @@
|
|
|
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 _A11yCardNativeComponent = _interopRequireDefault(require("../../nativeSpecs/A11yCardNativeComponent"));
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
const A11yCard = ({
|
|
13
|
-
containerProps,
|
|
14
|
-
style,
|
|
15
|
-
testID,
|
|
16
|
-
onPress,
|
|
17
|
-
accessibility,
|
|
18
|
-
pressableProps,
|
|
19
|
-
children
|
|
20
|
-
}) => {
|
|
21
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_A11yCardNativeComponent.default, {
|
|
22
|
-
...containerProps,
|
|
23
|
-
style: [styles.container, containerProps?.style],
|
|
24
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
25
|
-
testID: `${testID}-overlay`,
|
|
26
|
-
accessibilityRole: "button",
|
|
27
|
-
...accessibility,
|
|
28
|
-
accessible: true,
|
|
29
|
-
pointerEvents: "none",
|
|
30
|
-
collapsable: false,
|
|
31
|
-
onAccessibilityTap: onPress,
|
|
32
|
-
style: styles.overlay
|
|
33
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
34
|
-
...pressableProps,
|
|
35
|
-
accessible: false,
|
|
36
|
-
onPress: onPress,
|
|
37
|
-
testID: testID,
|
|
38
|
-
style: style,
|
|
39
|
-
children: children
|
|
40
|
-
})]
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
exports.A11yCard = A11yCard;
|
|
44
|
-
const styles = _reactNative.StyleSheet.create({
|
|
45
|
-
container: {
|
|
46
|
-
position: 'relative'
|
|
47
|
-
},
|
|
48
|
-
overlay: {
|
|
49
|
-
position: 'absolute',
|
|
50
|
-
top: 0,
|
|
51
|
-
left: 0,
|
|
52
|
-
right: 0,
|
|
53
|
-
bottom: 0
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
//# sourceMappingURL=A11yCard.ios.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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","collapsable","onAccessibilityTap","overlay","Pressable","exports","StyleSheet","create","position","top","left","right","bottom"],"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,WAAW,EAAE,KAAM;MACnBC,kBAAkB,EAAEb,OAAQ;MAC5BF,KAAK,EAAEO,MAAM,CAACS;IAAQ,CACvB,CAAC,eACF,IAAAtB,WAAA,CAAAe,GAAA,EAACjB,YAAA,CAAAyB,SAAS;MAAA,GACJb,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;AAACa,OAAA,CAAApB,QAAA,GAAAA,QAAA;AAEF,MAAMS,MAAM,GAAGY,uBAAU,CAACC,MAAM,CAAC;EAC/BZ,SAAS,EAAE;IAAEa,QAAQ,EAAE;EAAW,CAAC;EACnCL,OAAO,EAAE;IACPK,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE;EACV;AACF,CAAC,CAAC","ignoreList":[]}
|