react-native-a11y-order 0.2.2 → 0.2.5
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 -70
- package/android/src/main/java/com/a11yorder/A11yOrderPackage.java +21 -45
- package/ios/A11yOrder.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/A11yOrder.xcodeproj/project.xcworkspace/xcuserdata/Artur_Kalach.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/A11yOrder.xcodeproj/xcuserdata/Artur_Kalach.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/lib/commonjs/components/A11yGroup/A11yGroup.android.js +4 -6
- package/lib/commonjs/components/A11yGroup/A11yGroup.android.js.map +1 -1
- package/lib/commonjs/components/A11yGroup/A11yGroup.ios.js +1 -1
- package/lib/commonjs/components/A11yGroup/A11yGroup.ios.js.map +1 -1
- package/lib/commonjs/components/A11yGroup/A11yGroup.js +1 -2
- package/lib/commonjs/components/A11yGroup/A11yGroup.js.map +1 -1
- package/lib/commonjs/components/A11yIndex/A11yIndex.js +9 -12
- package/lib/commonjs/components/A11yIndex/A11yIndex.js.map +1 -1
- package/lib/commonjs/components/A11yIndex/A11yIndex.web.js +5 -7
- package/lib/commonjs/components/A11yIndex/A11yIndex.web.js.map +1 -1
- package/lib/commonjs/components/A11ySequence/A11ySequence.js +3 -4
- package/lib/commonjs/components/A11ySequence/A11ySequence.js.map +1 -1
- package/lib/commonjs/context/A11ySequenceOrderContext.js +2 -3
- package/lib/commonjs/context/A11ySequenceOrderContext.js.map +1 -1
- package/lib/commonjs/index.js +1 -28
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +2 -46
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/nativeSpecs/A11yGroupNativeComponent.js +2 -3
- package/lib/commonjs/nativeSpecs/A11yGroupNativeComponent.js.map +1 -1
- package/lib/commonjs/nativeSpecs/A11yIndexNativeComponent.js +3 -5
- package/lib/commonjs/nativeSpecs/A11yIndexNativeComponent.js.map +1 -1
- package/lib/commonjs/nativeSpecs/A11yOrderNativeComponent.js +2 -3
- package/lib/commonjs/nativeSpecs/A11yOrderNativeComponent.js.map +1 -1
- package/lib/commonjs/types/A11yGroup.types.js.map +1 -1
- package/lib/commonjs/types/A11yIndex.types.js.map +1 -1
- package/lib/commonjs/types/A11yModule.types.js.map +1 -1
- package/lib/module/components/A11yGroup/A11yGroup.android.js +3 -4
- package/lib/module/components/A11yGroup/A11yGroup.android.js.map +1 -1
- package/lib/module/components/A11yGroup/A11yGroup.ios.js.map +1 -1
- package/lib/module/components/A11yGroup/A11yGroup.js.map +1 -1
- package/lib/module/components/A11yIndex/A11yIndex.js +8 -9
- package/lib/module/components/A11yIndex/A11yIndex.js.map +1 -1
- package/lib/module/components/A11yIndex/A11yIndex.web.js +3 -3
- package/lib/module/components/A11yIndex/A11yIndex.web.js.map +1 -1
- package/lib/module/components/A11ySequence/A11ySequence.js +1 -1
- package/lib/module/components/A11ySequence/A11ySequence.js.map +1 -1
- package/lib/module/context/A11ySequenceOrderContext.js.map +1 -1
- package/lib/module/index.js +0 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +0 -40
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/nativeSpecs/A11yGroupNativeComponent.js.map +1 -1
- package/lib/module/nativeSpecs/A11yIndexNativeComponent.js.map +1 -1
- package/lib/module/nativeSpecs/A11yOrderNativeComponent.js.map +1 -1
- package/lib/module/types/A11yGroup.types.js.map +1 -1
- package/lib/module/types/A11yIndex.types.js.map +1 -1
- package/lib/module/types/A11yModule.types.js.map +1 -1
- package/lib/typescript/components/A11yGroup/A11yGroup.android.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +0 -3
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/index.web.d.ts +1 -39
- package/lib/typescript/index.web.d.ts.map +1 -1
- package/package.json +12 -4
- package/src/components/A11yGroup/A11yGroup.android.tsx +2 -3
- package/src/components/A11yIndex/A11yIndex.tsx +2 -2
- package/src/components/A11yIndex/A11yIndex.web.tsx +2 -2
- package/src/index.ts +0 -8
- package/src/index.web.ts +0 -43
- package/android/src/main/java/com/a11yorder/A11yOrderModule.java +0 -84
- package/android/src/newarch/A11yOrderSpec.java +0 -9
- package/android/src/oldarch/A11yOrderSpec.java +0 -15
- package/ios/A11yOrder.h +0 -6
- package/ios/A11yOrder.mm +0 -72
- package/lib/commonjs/A11yModule/helper.js +0 -21
- package/lib/commonjs/A11yModule/helper.js.map +0 -1
- package/lib/commonjs/A11yModule/index.js +0 -20
- package/lib/commonjs/A11yModule/index.js.map +0 -1
- package/lib/commonjs/A11yModule/module.js +0 -24
- package/lib/commonjs/A11yModule/module.js.map +0 -1
- package/lib/commonjs/components/A11yOrder/A11yOrder.js +0 -40
- package/lib/commonjs/components/A11yOrder/A11yOrder.js.map +0 -1
- package/lib/commonjs/hooks/index.js +0 -27
- package/lib/commonjs/hooks/index.js.map +0 -1
- package/lib/commonjs/hooks/useA11yOrderManager/index.js +0 -13
- package/lib/commonjs/hooks/useA11yOrderManager/index.js.map +0 -1
- package/lib/commonjs/hooks/useA11yOrderManager/useA11yOrderManager.js +0 -74
- package/lib/commonjs/hooks/useA11yOrderManager/useA11yOrderManager.js.map +0 -1
- package/lib/commonjs/hooks/useDynamicFocusOrder/index.js +0 -20
- package/lib/commonjs/hooks/useDynamicFocusOrder/index.js.map +0 -1
- package/lib/commonjs/hooks/useDynamicFocusOrder/useDynamicFocusOrder.js +0 -36
- package/lib/commonjs/hooks/useDynamicFocusOrder/useDynamicFocusOrder.js.map +0 -1
- package/lib/commonjs/hooks/useDynamicFocusOrder/useDynamicFocusOrder.types.js +0 -6
- package/lib/commonjs/hooks/useDynamicFocusOrder/useDynamicFocusOrder.types.js.map +0 -1
- package/lib/commonjs/hooks/useFocusOrder/index.js +0 -13
- package/lib/commonjs/hooks/useFocusOrder/index.js.map +0 -1
- package/lib/commonjs/hooks/useFocusOrder/useFocusOrder.js +0 -32
- package/lib/commonjs/hooks/useFocusOrder/useFocusOrder.js.map +0 -1
- package/lib/commonjs/hooks/useFocusOrder/useFocusOrder.types.js +0 -6
- package/lib/commonjs/hooks/useFocusOrder/useFocusOrder.types.js.map +0 -1
- package/lib/commonjs/nativeSpecs/NativeA11yOrder.js +0 -10
- package/lib/commonjs/nativeSpecs/NativeA11yOrder.js.map +0 -1
- package/lib/commonjs/types/A11yOrder.types.js +0 -6
- package/lib/commonjs/types/A11yOrder.types.js.map +0 -1
- package/lib/module/A11yModule/helper.js +0 -14
- package/lib/module/A11yModule/helper.js.map +0 -1
- package/lib/module/A11yModule/index.js +0 -3
- package/lib/module/A11yModule/index.js.map +0 -1
- package/lib/module/A11yModule/module.js +0 -18
- package/lib/module/A11yModule/module.js.map +0 -1
- package/lib/module/components/A11yOrder/A11yOrder.js +0 -31
- package/lib/module/components/A11yOrder/A11yOrder.js.map +0 -1
- package/lib/module/hooks/index.js +0 -4
- package/lib/module/hooks/index.js.map +0 -1
- package/lib/module/hooks/useA11yOrderManager/index.js +0 -2
- package/lib/module/hooks/useA11yOrderManager/index.js.map +0 -1
- package/lib/module/hooks/useA11yOrderManager/useA11yOrderManager.js +0 -66
- package/lib/module/hooks/useA11yOrderManager/useA11yOrderManager.js.map +0 -1
- package/lib/module/hooks/useDynamicFocusOrder/index.js +0 -3
- package/lib/module/hooks/useDynamicFocusOrder/index.js.map +0 -1
- package/lib/module/hooks/useDynamicFocusOrder/useDynamicFocusOrder.js +0 -29
- package/lib/module/hooks/useDynamicFocusOrder/useDynamicFocusOrder.js.map +0 -1
- package/lib/module/hooks/useDynamicFocusOrder/useDynamicFocusOrder.types.js +0 -2
- package/lib/module/hooks/useDynamicFocusOrder/useDynamicFocusOrder.types.js.map +0 -1
- package/lib/module/hooks/useFocusOrder/index.js +0 -2
- package/lib/module/hooks/useFocusOrder/index.js.map +0 -1
- package/lib/module/hooks/useFocusOrder/useFocusOrder.js +0 -25
- package/lib/module/hooks/useFocusOrder/useFocusOrder.js.map +0 -1
- package/lib/module/hooks/useFocusOrder/useFocusOrder.types.js +0 -2
- package/lib/module/hooks/useFocusOrder/useFocusOrder.types.js.map +0 -1
- package/lib/module/nativeSpecs/NativeA11yOrder.js +0 -3
- package/lib/module/nativeSpecs/NativeA11yOrder.js.map +0 -1
- package/lib/module/types/A11yOrder.types.js +0 -2
- package/lib/module/types/A11yOrder.types.js.map +0 -1
- package/lib/typescript/A11yModule/helper.d.ts +0 -4
- package/lib/typescript/A11yModule/helper.d.ts.map +0 -1
- package/lib/typescript/A11yModule/index.d.ts +0 -3
- package/lib/typescript/A11yModule/index.d.ts.map +0 -1
- package/lib/typescript/A11yModule/module.d.ts +0 -2
- package/lib/typescript/A11yModule/module.d.ts.map +0 -1
- package/lib/typescript/components/A11yOrder/A11yOrder.d.ts +0 -8
- package/lib/typescript/components/A11yOrder/A11yOrder.d.ts.map +0 -1
- package/lib/typescript/hooks/index.d.ts +0 -4
- package/lib/typescript/hooks/index.d.ts.map +0 -1
- package/lib/typescript/hooks/useA11yOrderManager/index.d.ts +0 -2
- package/lib/typescript/hooks/useA11yOrderManager/index.d.ts.map +0 -1
- package/lib/typescript/hooks/useA11yOrderManager/useA11yOrderManager.d.ts +0 -15
- package/lib/typescript/hooks/useA11yOrderManager/useA11yOrderManager.d.ts.map +0 -1
- package/lib/typescript/hooks/useDynamicFocusOrder/index.d.ts +0 -3
- package/lib/typescript/hooks/useDynamicFocusOrder/index.d.ts.map +0 -1
- package/lib/typescript/hooks/useDynamicFocusOrder/useDynamicFocusOrder.d.ts +0 -9
- package/lib/typescript/hooks/useDynamicFocusOrder/useDynamicFocusOrder.d.ts.map +0 -1
- package/lib/typescript/hooks/useDynamicFocusOrder/useDynamicFocusOrder.types.d.ts +0 -12
- package/lib/typescript/hooks/useDynamicFocusOrder/useDynamicFocusOrder.types.d.ts.map +0 -1
- package/lib/typescript/hooks/useFocusOrder/index.d.ts +0 -2
- package/lib/typescript/hooks/useFocusOrder/index.d.ts.map +0 -1
- package/lib/typescript/hooks/useFocusOrder/useFocusOrder.d.ts +0 -9
- package/lib/typescript/hooks/useFocusOrder/useFocusOrder.d.ts.map +0 -1
- package/lib/typescript/hooks/useFocusOrder/useFocusOrder.types.d.ts +0 -6
- package/lib/typescript/hooks/useFocusOrder/useFocusOrder.types.d.ts.map +0 -1
- package/lib/typescript/nativeSpecs/NativeA11yOrder.d.ts +0 -7
- package/lib/typescript/nativeSpecs/NativeA11yOrder.d.ts.map +0 -1
- package/lib/typescript/types/A11yOrder.types.d.ts +0 -10
- package/lib/typescript/types/A11yOrder.types.d.ts.map +0 -1
- package/src/A11yModule/helper.ts +0 -20
- package/src/A11yModule/index.tsx +0 -2
- package/src/A11yModule/module.ts +0 -32
- package/src/components/A11yOrder/A11yOrder.tsx +0 -38
- package/src/hooks/index.ts +0 -3
- package/src/hooks/useA11yOrderManager/index.ts +0 -1
- package/src/hooks/useA11yOrderManager/useA11yOrderManager.ts +0 -88
- package/src/hooks/useDynamicFocusOrder/index.ts +0 -2
- package/src/hooks/useDynamicFocusOrder/useDynamicFocusOrder.ts +0 -41
- package/src/hooks/useDynamicFocusOrder/useDynamicFocusOrder.types.ts +0 -12
- package/src/hooks/useFocusOrder/index.ts +0 -1
- package/src/hooks/useFocusOrder/useFocusOrder.ts +0 -36
- package/src/hooks/useFocusOrder/useFocusOrder.types.ts +0 -9
- package/src/nativeSpecs/NativeA11yOrder.ts +0 -7
- package/src/types/A11yOrder.types.ts +0 -9
package/README.md
CHANGED
|
@@ -4,6 +4,10 @@ React Native A11y Order Library: Advanced control of screen reader order.
|
|
|
4
4
|
|
|
5
5
|
Setting the right reading order can be a challenge, but there is a way to do it. The react-native-a11y-order is a native-first library designed to solve problems with the ordering of screen readers on both Android and iOS platforms.
|
|
6
6
|
|
|
7
|
+
## Breaking Changes !!!
|
|
8
|
+
> The `A11yModule`, `A11yOrder` and hooks `useFocusOrder`, `useDynamicFocusOrder`, and `useA11yOrderManager` have been removed. This API was deprecated and did not work properly with the new architecture. You can refer to the migration guide to update it.
|
|
9
|
+
|
|
10
|
+
|
|
7
11
|
| iOS reader | Android reader |
|
|
8
12
|
| --------------------------------------------------------- | ------------------------------------------------------------- |
|
|
9
13
|
| <img src="/.github/images/ios-reader.gif" height="500" /> | <img src="/.github/images/android-reader.gif" height="500" /> |
|
|
@@ -88,81 +92,57 @@ export default function App() {
|
|
|
88
92
|
}
|
|
89
93
|
```
|
|
90
94
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
<
|
|
101
|
-
<
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
95
|
+
**Important:** Order between `elements` and order between `groups`
|
|
96
|
+
Android and iOS have different native implementations, which can result in varying behavior across platforms. This package was originally developed to define a logical order among individual accessible elements. However, there are situations where it's necessary to set an order for groups of elements. While this is relatively simple to achieve on iOS, it can be more complicated on Android.
|
|
97
|
+
|
|
98
|
+
To resolve this on Android, you can define a View with the accessible property and use the accessibleLabel attribute to describe the group.
|
|
99
|
+
|
|
100
|
+
For example:
|
|
101
|
+
```tsx
|
|
102
|
+
<View style={{flex: 1, position: 'relative'}}>
|
|
103
|
+
<A11y.Order style={{flex: 1}}>
|
|
104
|
+
<A11y.Index index={1}>
|
|
105
|
+
<View
|
|
106
|
+
accessible={Platform.OS = 'android'} // It helps to create a group to maintain the correct order for Android.
|
|
107
|
+
accessibilityLabel="Header Group"
|
|
108
|
+
>
|
|
109
|
+
...
|
|
110
|
+
</View>
|
|
111
|
+
</A11y.Index>
|
|
112
|
+
<A11y.Index
|
|
113
|
+
index={2} // For a single element, we don't need anything extra.
|
|
114
|
+
style={{ position: "absolute", right: 20, bottom: 50, zIndex: 1}}
|
|
115
|
+
>
|
|
116
|
+
<Button title="Chat" />
|
|
117
|
+
</A11y.Index>
|
|
118
|
+
<A11y.Index
|
|
119
|
+
index={3} // We don't need a group for ScrollView; it creates its own scope.
|
|
120
|
+
>
|
|
121
|
+
<ScrollView>
|
|
122
|
+
<View
|
|
123
|
+
accessible
|
|
124
|
+
accessibilityLabel="Mindaro"
|
|
125
|
+
style={{width: '100%', height: 200, backgroundColor: '#CEEC97'}}
|
|
126
|
+
/>
|
|
127
|
+
<View
|
|
128
|
+
accessible
|
|
129
|
+
accessibilityLabel="Peach"
|
|
130
|
+
style={{width: '100%', height: 200, backgroundColor: '#F4B393'}}
|
|
131
|
+
/>
|
|
132
|
+
</ScrollView>
|
|
133
|
+
</A11y.Index>
|
|
134
|
+
</A11y.Order>
|
|
135
|
+
</View>
|
|
122
136
|
```
|
|
123
137
|
|
|
124
|
-
|
|
138
|
+
Additionally, it would be better to wrap every component inside `A11y.Order` with `A11y.Index`; the order of unwrapped components is not predictable.
|
|
125
139
|
|
|
126
|
-
```js
|
|
127
|
-
export default function App() {
|
|
128
|
-
return (
|
|
129
|
-
<Viw style={styles.container}>
|
|
130
|
-
<A11y.Order>
|
|
131
|
-
<A11y.Index index={1}>
|
|
132
|
-
<Text style={styles.font}>
|
|
133
|
-
First
|
|
134
|
-
</Text>
|
|
135
|
-
</A11y.Index>
|
|
136
|
-
<A11y.Index index={3}>
|
|
137
|
-
<Text style={styles.font}>
|
|
138
|
-
Third
|
|
139
|
-
</Text>
|
|
140
|
-
</A11y.Index>
|
|
141
|
-
<A11y.Index index={4}> // <===== attention here, we group four and five to manage correct order flow
|
|
142
|
-
<View>
|
|
143
|
-
<Text style={styles.font}>Four</Text>
|
|
144
|
-
</View>
|
|
145
|
-
<View>
|
|
146
|
-
<Text style={styles.font}>Five</Text>
|
|
147
|
-
</View>
|
|
148
|
-
</A11y.Index>
|
|
149
|
-
<A11y.Index index={2}>
|
|
150
|
-
<Text style={styles.font}>
|
|
151
|
-
Second
|
|
152
|
-
</Text>
|
|
153
|
-
</A11y.Index>
|
|
154
|
-
</A11y.Order>
|
|
155
|
-
<Text style={styles.font}>Six</Text>
|
|
156
|
-
</View>
|
|
157
|
-
);
|
|
158
|
-
}
|
|
159
|
-
```
|
|
160
140
|
|
|
161
141
|
A11y.Index Props:
|
|
162
142
|
|
|
163
143
|
| Props | Description |
|
|
164
144
|
| -------------- | ------------------------------------------------ |
|
|
165
|
-
| ViewProps | Default View props
|
|
145
|
+
| ViewProps | Default View props including style, testID, etc |
|
|
166
146
|
| index | `number`, position in order |
|
|
167
147
|
| ref: focus | focus command for setting accessibility focus |
|
|
168
148
|
|
|
@@ -201,7 +181,7 @@ export default function App() {
|
|
|
201
181
|
<Text>Title: 1</Text>
|
|
202
182
|
</View>
|
|
203
183
|
<View>
|
|
204
|
-
<Text>
|
|
184
|
+
<Text>Description: 1</Text>
|
|
205
185
|
</View>
|
|
206
186
|
</A11y.Group>
|
|
207
187
|
<A11y.Group style={styles.slide}>
|
|
@@ -209,7 +189,7 @@ export default function App() {
|
|
|
209
189
|
<Text>Title: 2</Text>
|
|
210
190
|
</View>
|
|
211
191
|
<View>
|
|
212
|
-
<Text>
|
|
192
|
+
<Text>Description: 2</Text>
|
|
213
193
|
</View>
|
|
214
194
|
</A11y.Group>
|
|
215
195
|
</ScrollView>
|
|
@@ -220,7 +200,7 @@ export default function App() {
|
|
|
220
200
|
|
|
221
201
|
| Props | Description |
|
|
222
202
|
| -------------- | ------------------------------------------------ |
|
|
223
|
-
| ViewProps | Default View props
|
|
203
|
+
| ViewProps | Default View props including style, testID, etc |
|
|
224
204
|
|
|
225
205
|
|
|
226
206
|
## Migration
|
|
@@ -1,61 +1,37 @@
|
|
|
1
1
|
package com.a11yorder;
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
import androidx.annotation.Nullable;
|
|
5
4
|
|
|
6
5
|
import com.a11yorder.views.A11yGroupView.A11yGroupViewManager;
|
|
7
6
|
import com.a11yorder.views.A11yIndexView.A11yIndexViewManager;
|
|
8
7
|
import com.a11yorder.views.A11yOrderView.A11yOrderViewManager;
|
|
9
|
-
import com.facebook.react.bridge.NativeModule;
|
|
10
|
-
import com.facebook.react.bridge.ReactApplicationContext;
|
|
11
|
-
import com.facebook.react.module.model.ReactModuleInfo;
|
|
12
8
|
import com.facebook.react.module.model.ReactModuleInfoProvider;
|
|
13
|
-
import com.facebook.react.TurboReactPackage;
|
|
14
9
|
import com.facebook.react.uimanager.ViewManager;
|
|
15
10
|
|
|
16
11
|
import java.util.ArrayList;
|
|
17
|
-
import java.util.HashMap;
|
|
18
12
|
import java.util.List;
|
|
19
|
-
import java.util.Map;
|
|
20
13
|
|
|
21
|
-
|
|
14
|
+
import com.facebook.react.ReactPackage;
|
|
15
|
+
import com.facebook.react.bridge.NativeModule;
|
|
16
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
17
|
+
|
|
18
|
+
import java.util.ArrayList;
|
|
19
|
+
import java.util.List;
|
|
20
|
+
|
|
21
|
+
public class A11yOrderPackage implements ReactPackage {
|
|
22
|
+
|
|
23
|
+
@Override
|
|
24
|
+
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
|
|
25
|
+
List<ViewManager> viewManagers = new ArrayList<>();
|
|
26
|
+
viewManagers.add(new A11yIndexViewManager());
|
|
27
|
+
viewManagers.add(new A11yOrderViewManager());
|
|
28
|
+
viewManagers.add(new A11yGroupViewManager());
|
|
29
|
+
|
|
30
|
+
return viewManagers;
|
|
31
|
+
}
|
|
22
32
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
if (name.equals(A11yOrderModule.NAME)) {
|
|
27
|
-
return new A11yOrderModule(reactContext);
|
|
28
|
-
} else {
|
|
29
|
-
return null;
|
|
33
|
+
@Override
|
|
34
|
+
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
|
|
35
|
+
return new ArrayList<>();
|
|
30
36
|
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@Override
|
|
34
|
-
public ReactModuleInfoProvider getReactModuleInfoProvider() {
|
|
35
|
-
return () -> {
|
|
36
|
-
final Map<String, ReactModuleInfo> moduleInfos = new HashMap<>();
|
|
37
|
-
boolean isTurboModule = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED;
|
|
38
|
-
moduleInfos.put(
|
|
39
|
-
A11yOrderModule.NAME,
|
|
40
|
-
new ReactModuleInfo(
|
|
41
|
-
A11yOrderModule.NAME,
|
|
42
|
-
A11yOrderModule.NAME,
|
|
43
|
-
false, // canOverrideExistingModule
|
|
44
|
-
false, // needsEagerInit
|
|
45
|
-
true, // hasConstants
|
|
46
|
-
false, // isCxxModule
|
|
47
|
-
isTurboModule // isTurboModule
|
|
48
|
-
));
|
|
49
|
-
return moduleInfos;
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@Override
|
|
54
|
-
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
|
|
55
|
-
List<ViewManager> viewManagers = new ArrayList<>();
|
|
56
|
-
viewManagers.add(new A11yIndexViewManager());
|
|
57
|
-
viewManagers.add(new A11yOrderViewManager());
|
|
58
|
-
viewManagers.add(new A11yGroupViewManager());
|
|
59
|
-
return viewManagers;
|
|
60
|
-
}
|
|
61
37
|
}
|
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>SchemeUserState</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>A11yOrder.xcscheme_^#shared#^_</key>
|
|
8
|
+
<dict>
|
|
9
|
+
<key>orderHint</key>
|
|
10
|
+
<integer>0</integer>
|
|
11
|
+
</dict>
|
|
12
|
+
</dict>
|
|
13
|
+
</dict>
|
|
14
|
+
</plist>
|
|
@@ -4,15 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.A11yGroup = void 0;
|
|
7
|
-
var _react =
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
function
|
|
10
|
-
function
|
|
11
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
12
11
|
const A11yGroup = props => {
|
|
13
|
-
const id = (0, _react.useId)();
|
|
14
12
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({
|
|
15
|
-
|
|
13
|
+
collapsable: false
|
|
16
14
|
}, props));
|
|
17
15
|
};
|
|
18
16
|
exports.A11yGroup = A11yGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","A11yGroup","props","createElement","View","collapsable","exports"],"sourceRoot":"../../../../src","sources":["components/A11yGroup/A11yGroup.android.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAAoC,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,MAAA,EAAAT,CAAA,UAAAU,CAAA,GAAAF,SAAA,CAAAR,CAAA,YAAAW,CAAA,IAAAD,CAAA,OAAAE,cAAA,CAAAC,IAAA,CAAAH,CAAA,EAAAC,CAAA,MAAAJ,CAAA,CAAAI,CAAA,IAAAD,CAAA,CAAAC,CAAA,aAAAJ,CAAA,KAAAJ,QAAA,CAAAW,KAAA,OAAAN,SAAA;AAI7B,MAAMO,SAAS,GAAIC,KAAqB,IAAK;EAClD,oBAAOpB,MAAA,CAAAM,OAAA,CAAAe,aAAA,CAAClB,YAAA,CAAAmB,IAAI,EAAAf,QAAA;IAACgB,WAAW,EAAE;EAAM,GAAKH,KAAK,CAAG,CAAC;AAChD,CAAC;AAACI,OAAA,CAAAL,SAAA,GAAAA,SAAA","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.A11yGroup = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _A11yGroupNativeComponent = _interopRequireDefault(require("../../nativeSpecs/A11yGroupNativeComponent"));
|
|
9
|
-
function _interopRequireDefault(
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
const A11yGroup = props => /*#__PURE__*/_react.default.createElement(_A11yGroupNativeComponent.default, props);
|
|
11
11
|
exports.A11yGroup = A11yGroup;
|
|
12
12
|
//# sourceMappingURL=A11yGroup.ios.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_A11yGroupNativeComponent","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_A11yGroupNativeComponent","e","__esModule","default","A11yGroup","props","createElement","exports"],"sourceRoot":"../../../../src","sources":["components/A11yGroup/A11yGroup.ios.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,yBAAA,GAAAF,sBAAA,CAAAC,OAAA;AAA2E,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAGpE,MAAMG,SAAS,GAAIC,KAAqB,iBAC7CR,MAAA,CAAAM,OAAA,CAAAG,aAAA,CAACN,yBAAA,CAAAG,OAAiB,EAAKE,KAAQ,CAChC;AAACE,OAAA,CAAAH,SAAA,GAAAA,SAAA","ignoreList":[]}
|
|
@@ -5,6 +5,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.A11yGroup = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
|
-
const A11yGroup = _reactNative.View;
|
|
9
|
-
exports.A11yGroup = A11yGroup;
|
|
8
|
+
const A11yGroup = exports.A11yGroup = _reactNative.View;
|
|
10
9
|
//# sourceMappingURL=A11yGroup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","A11yGroup","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","A11yGroup","exports","View"],"sourceRoot":"../../../../src","sources":["components/A11yGroup/A11yGroup.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEO,MAAMC,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iBAAI","ignoreList":[]}
|
|
@@ -8,18 +8,16 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _A11ySequenceOrderContext = require("../../context/A11ySequenceOrderContext");
|
|
10
10
|
var _A11yIndexNativeComponent = _interopRequireWildcard(require("../../nativeSpecs/A11yIndexNativeComponent"));
|
|
11
|
-
function
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
...props
|
|
19
|
-
} = _ref;
|
|
11
|
+
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); }
|
|
12
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
13
|
+
const A11yIndex = exports.A11yIndex = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.forwardRef(({
|
|
14
|
+
children,
|
|
15
|
+
index,
|
|
16
|
+
...props
|
|
17
|
+
}, ref) => {
|
|
20
18
|
const orderKey = _react.default.useContext(_A11ySequenceOrderContext.A11ySequenceOrderContext);
|
|
21
19
|
if (!orderKey) {
|
|
22
|
-
throw new Error('
|
|
20
|
+
throw new Error('<A11y.Index> element should be used inside of <A11y.Order> container');
|
|
23
21
|
}
|
|
24
22
|
const indexRef = (0, _react.useRef)(null);
|
|
25
23
|
(0, _react.useImperativeHandle)(ref, () => ({
|
|
@@ -35,8 +33,7 @@ const A11yIndex = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.
|
|
|
35
33
|
orderIndex: index,
|
|
36
34
|
orderKey: orderKey
|
|
37
35
|
}, props), isSingleChild && children, !isSingleChild && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
38
|
-
|
|
36
|
+
collapsable: false
|
|
39
37
|
}, children));
|
|
40
38
|
}));
|
|
41
|
-
exports.A11yIndex = A11yIndex;
|
|
42
39
|
//# sourceMappingURL=A11yIndex.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_A11ySequenceOrderContext","_A11yIndexNativeComponent","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_A11ySequenceOrderContext","_A11yIndexNativeComponent","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_extends","assign","bind","arguments","length","apply","A11yIndex","exports","React","memo","forwardRef","children","index","props","ref","orderKey","useContext","A11ySequenceOrderContext","Error","indexRef","useRef","useImperativeHandle","focus","current","Commands","isSingleChild","Children","count","createElement","orderIndex","View","collapsable"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -6,16 +6,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.A11yIndex = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
function
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
const A11yIndex = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
9
|
+
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); }
|
|
10
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
11
|
+
const WebUiManager = _reactNative.UIManager;
|
|
12
|
+
const A11yIndex = exports.A11yIndex = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
14
13
|
const viewRef = (0, _react.useRef)(null);
|
|
15
14
|
(0, _react.useImperativeHandle)(ref, () => ({
|
|
16
15
|
focus: () => {
|
|
17
16
|
if (viewRef.current) {
|
|
18
|
-
|
|
17
|
+
WebUiManager.focus(viewRef.current);
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
20
|
}));
|
|
@@ -23,5 +22,4 @@ const A11yIndex = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
|
23
22
|
ref: viewRef
|
|
24
23
|
}));
|
|
25
24
|
});
|
|
26
|
-
exports.A11yIndex = A11yIndex;
|
|
27
25
|
//# sourceMappingURL=A11yIndex.web.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_extends","assign","bind","arguments","length","apply","WebUiManager","UIManager","A11yIndex","exports","forwardRef","props","ref","viewRef","useRef","useImperativeHandle","focus","current","createElement","View"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.web.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAGA,IAAAC,YAAA,GAAAD,OAAA;AAAyC,SAAAD,wBAAAG,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAL,uBAAA,YAAAA,CAAAG,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;AAAA,SAAAkB,SAAA,WAAAA,QAAA,GAAAH,MAAA,CAAAI,MAAA,GAAAJ,MAAA,CAAAI,MAAA,CAAAC,IAAA,eAAAjB,CAAA,aAAAJ,CAAA,MAAAA,CAAA,GAAAsB,SAAA,CAAAC,MAAA,EAAAvB,CAAA,UAAAC,CAAA,GAAAqB,SAAA,CAAAtB,CAAA,YAAAG,CAAA,IAAAF,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAd,CAAA,EAAAE,CAAA,MAAAC,CAAA,CAAAD,CAAA,IAAAF,CAAA,CAAAE,CAAA,aAAAC,CAAA,KAAAe,QAAA,CAAAK,KAAA,OAAAF,SAAA;AAGzC,MAAMG,YAAY,GAAGC,sBAEpB;AAEM,MAAMC,SAAS,GAAAC,OAAA,CAAAD,SAAA,gBAAG,IAAAE,iBAAU,EACjC,CAACC,KAAK,EAAEC,GAAG,KAAK;EACd,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,oBAAOxC,MAAA,CAAAc,OAAA,CAAA2B,aAAA,CAACtC,YAAA,CAAAuC,IAAI,EAAAnB,QAAA,KAAKW,KAAK;IAAEC,GAAG,EAAEC;EAAQ,EAAE,CAAC;AAC1C,CACF,CAAC","ignoreList":[]}
|
|
@@ -7,9 +7,9 @@ exports.A11yIndexSequence = 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
|
-
function _interopRequireDefault(
|
|
11
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
12
|
-
const A11yIndexSequence = /*#__PURE__*/_react.default.memo(props => {
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
12
|
+
const A11yIndexSequence = exports.A11yIndexSequence = /*#__PURE__*/_react.default.memo(props => {
|
|
13
13
|
const orderKey = _react.default.useId();
|
|
14
14
|
return /*#__PURE__*/_react.default.createElement(_A11ySequenceOrderContext.A11ySequenceOrderContext.Provider, {
|
|
15
15
|
value: orderKey
|
|
@@ -17,5 +17,4 @@ const A11yIndexSequence = /*#__PURE__*/_react.default.memo(props => {
|
|
|
17
17
|
orderKey: orderKey
|
|
18
18
|
})));
|
|
19
19
|
});
|
|
20
|
-
exports.A11yIndexSequence = A11yIndexSequence;
|
|
21
20
|
//# sourceMappingURL=A11ySequence.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_A11ySequenceOrderContext","_A11yOrderNativeComponent","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_A11ySequenceOrderContext","_A11yOrderNativeComponent","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","A11yIndexSequence","exports","React","memo","props","orderKey","useId","createElement","A11ySequenceOrderContext","Provider","value"],"sourceRoot":"../../../../src","sources":["components/A11ySequence/A11ySequence.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,yBAAA,GAAAD,OAAA;AACA,IAAAE,yBAAA,GAAAH,sBAAA,CAAAC,OAAA;AAAkF,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,MAAA,EAAAT,CAAA,UAAAU,CAAA,GAAAF,SAAA,CAAAR,CAAA,YAAAW,CAAA,IAAAD,CAAA,OAAAE,cAAA,CAAAC,IAAA,CAAAH,CAAA,EAAAC,CAAA,MAAAJ,CAAA,CAAAI,CAAA,IAAAD,CAAA,CAAAC,CAAA,aAAAJ,CAAA,KAAAJ,QAAA,CAAAW,KAAA,OAAAN,SAAA;AAE3E,MAAMO,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,gBAAGE,cAAK,CAACC,IAAI,CAAaC,KAAK,IAAK;EAChE,MAAMC,QAAQ,GAAGH,cAAK,CAACI,KAAK,CAAC,CAAC;EAC9B,oBACE1B,MAAA,CAAAO,OAAA,CAAAoB,aAAA,CAACxB,yBAAA,CAAAyB,wBAAwB,CAACC,QAAQ;IAACC,KAAK,EAAEL;EAAS,gBACjDzB,MAAA,CAAAO,OAAA,CAAAoB,aAAA,CAACvB,yBAAA,CAAAG,OAAwB,EAAAC,QAAA,KAAKgB,KAAK;IAAEC,QAAQ,EAAEA;EAAS,EAAE,CACzB,CAAC;AAExC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.A11ySequenceOrderContext = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
function _interopRequireDefault(
|
|
9
|
-
const A11ySequenceOrderContext = /*#__PURE__*/_react.default.createContext(undefined);
|
|
10
|
-
exports.A11ySequenceOrderContext = A11ySequenceOrderContext;
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
const A11ySequenceOrderContext = exports.A11ySequenceOrderContext = /*#__PURE__*/_react.default.createContext(undefined);
|
|
11
10
|
//# sourceMappingURL=A11ySequenceOrderContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","e","__esModule","default","A11ySequenceOrderContext","exports","React","createContext","undefined"],"sourceRoot":"../../../src","sources":["context/A11ySequenceOrderContext.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA0B,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEnB,MAAMG,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,gBAAGE,cAAK,CAACC,aAAa,CACzDC,SACF,CAAC","ignoreList":[]}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -4,39 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.A11y = void 0;
|
|
7
|
-
Object.defineProperty(exports, "A11yOrder", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () {
|
|
10
|
-
return _A11yOrder.A11yOrder;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "useA11yOrderManager", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () {
|
|
16
|
-
return _hooks.useA11yOrderManager;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "useDynamicFocusOrder", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () {
|
|
22
|
-
return _hooks.useDynamicFocusOrder;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(exports, "useFocusOrder", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function () {
|
|
28
|
-
return _hooks.useFocusOrder;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
7
|
var _A11yIndex = require("./components/A11yIndex/A11yIndex");
|
|
32
8
|
var _A11ySequence = require("./components/A11ySequence/A11ySequence");
|
|
33
9
|
var _A11yGroup = require("./components/A11yGroup/A11yGroup");
|
|
34
|
-
|
|
35
|
-
var _A11yOrder = require("./components/A11yOrder/A11yOrder");
|
|
36
|
-
const A11y = {
|
|
10
|
+
const A11y = exports.A11y = {
|
|
37
11
|
Order: _A11ySequence.A11yIndexSequence,
|
|
38
12
|
Index: _A11yIndex.A11yIndex,
|
|
39
13
|
Group: _A11yGroup.A11yGroup
|
|
40
14
|
};
|
|
41
|
-
exports.A11y = A11y;
|
|
42
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_A11yIndex","require","_A11ySequence","_A11yGroup","
|
|
1
|
+
{"version":3,"names":["_A11yIndex","require","_A11ySequence","_A11yGroup","A11y","exports","Order","A11yIndexSequence","Index","A11yIndex","Group","A11yGroup"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAIO,MAAMG,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,KAAK,EAAEC,+BAAiB;EACxBC,KAAK,EAAEC,oBAAS;EAChBC,KAAK,EAAEC;AACT,CAAC","ignoreList":[]}
|