react-native-a11y-order 0.9.1 → 0.11.0-rc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (268) hide show
  1. package/README.md +50 -336
  2. package/android/src/main/java/com/a11yorder/A11yOrderPackage.java +2 -6
  3. package/android/src/main/java/com/a11yorder/core/A11yAutoFocusView.java +61 -0
  4. package/android/src/main/java/com/a11yorder/{views/A11yView/A11yView.java → core/A11yScreenReaderView.java} +3 -45
  5. package/android/src/main/java/com/a11yorder/core/A11yViewOrder.java +37 -0
  6. package/android/src/main/java/com/a11yorder/views/A11yCardView/A11yCardViewManager.java +18 -0
  7. package/android/src/main/java/com/a11yorder/views/A11yIndexView/A11yIndexView.java +2 -65
  8. package/android/src/main/java/com/a11yorder/views/A11yIndexView/A11yIndexViewManager.java +27 -0
  9. package/android/src/newarch/A11yCardViewManagerSpec.java +9 -0
  10. package/android/src/oldarch/A11yCardViewManagerSpec.java +8 -0
  11. package/android/src/oldarch/A11yIndexViewManagerSpec.java +9 -0
  12. package/ios/helpers/RNAOFabricEventHelper/RNAOFabricEventHelper.mm +5 -5
  13. package/ios/views/RNAOA11yCardView/RNAOA11yCardView.h +29 -0
  14. package/ios/views/RNAOA11yCardView/RNAOA11yCardView.mm +83 -0
  15. package/ios/views/RNAOA11yCardView/RNAOA11yCardViewManager.h +14 -0
  16. package/ios/views/RNAOA11yCardView/RNAOA11yCardViewManager.mm +17 -0
  17. package/ios/views/RNAOA11yIndexView/RNAOA11yIndexView.h +2 -41
  18. package/ios/views/RNAOA11yIndexView/RNAOA11yIndexView.mm +27 -127
  19. package/ios/views/RNAOA11yIndexView/RNAOA11yIndexViewManager.mm +21 -0
  20. package/ios/views/base/RNAOA11yAutoFocusView.h +30 -0
  21. package/ios/views/{RNAOA11yView/RNAOA11yView.mm → base/RNAOA11yAutoFocusView.mm} +66 -168
  22. package/ios/views/base/RNAOA11yGroupChildrenView.h +21 -0
  23. package/ios/views/base/RNAOA11yGroupChildrenView.mm +19 -0
  24. package/ios/views/base/RNAOA11yScreenReaderView.h +24 -0
  25. package/ios/views/base/RNAOA11yScreenReaderView.mm +32 -0
  26. package/ios/views/base/RNAOA11yViewGroup.h +35 -0
  27. package/ios/views/base/RNAOA11yViewGroup.mm +46 -0
  28. package/ios/views/base/RNAOA11yViewOrder.h +40 -0
  29. package/ios/views/base/RNAOA11yViewOrder.mm +92 -0
  30. package/lib/commonjs/components/A11yCard/A11yCard.ios.js +49 -0
  31. package/lib/commonjs/components/A11yCard/A11yCard.ios.js.map +1 -0
  32. package/lib/commonjs/components/A11yCard/A11yCard.js +41 -0
  33. package/lib/commonjs/components/A11yCard/A11yCard.js.map +1 -0
  34. package/lib/commonjs/{types/A11yGroup.types.js → components/A11yCard/A11yCard.types.js} +1 -1
  35. package/lib/commonjs/components/A11yCard/A11yCard.types.js.map +1 -0
  36. package/lib/commonjs/components/A11yIndex/A11yIndex.js +88 -28
  37. package/lib/commonjs/components/A11yIndex/A11yIndex.js.map +1 -1
  38. package/lib/commonjs/components/A11yIndex/A11yIndex.types.js +39 -0
  39. package/lib/commonjs/components/A11yIndex/A11yIndex.types.js.map +1 -0
  40. package/lib/commonjs/components/A11yIndex/A11yIndex.web.js.map +1 -1
  41. package/lib/commonjs/components/A11yLock/A11yFocusFrame/A11yFocusFrame.js.map +1 -1
  42. package/lib/commonjs/components/A11yLock/A11yFocusTrap/A11yFocusTrap.js.map +1 -1
  43. package/lib/commonjs/components/A11yLock/A11yLock.types.js.map +1 -0
  44. package/lib/commonjs/components/{A11ySequence/A11ySequence.js → A11yOrder/A11yOrder.js} +3 -3
  45. package/lib/commonjs/components/A11yOrder/A11yOrder.js.map +1 -0
  46. package/lib/commonjs/{types/A11yModule.types.js → components/A11yOrder/A11yOrder.types.js} +1 -1
  47. package/lib/commonjs/components/A11yOrder/A11yOrder.types.js.map +1 -0
  48. package/lib/commonjs/components/A11yPaneTitle/A11yPaneTitle.js +6 -7
  49. package/lib/commonjs/components/A11yPaneTitle/A11yPaneTitle.js.map +1 -1
  50. package/lib/commonjs/components/A11yPaneTitle/A11yPaneTitle.types.js +6 -0
  51. package/lib/commonjs/components/A11yPaneTitle/A11yPaneTitle.types.js.map +1 -0
  52. package/lib/commonjs/components/A11yView/A11yView.js +7 -33
  53. package/lib/commonjs/components/A11yView/A11yView.js.map +1 -1
  54. package/lib/commonjs/components/A11yView/A11yView.types.js.map +1 -0
  55. package/lib/commonjs/index.js +17 -8
  56. package/lib/commonjs/index.js.map +1 -1
  57. package/lib/commonjs/index.web.js +10 -4
  58. package/lib/commonjs/index.web.js.map +1 -1
  59. package/lib/commonjs/nativeSpecs/{A11yGroupNativeComponent.ts → A11yCardNativeComponent.ts} +3 -3
  60. package/lib/commonjs/nativeSpecs/A11yIndexNativeComponent.ts +12 -3
  61. package/lib/module/components/A11yCard/A11yCard.ios.js +43 -0
  62. package/lib/module/components/A11yCard/A11yCard.ios.js.map +1 -0
  63. package/lib/module/components/A11yCard/A11yCard.js +35 -0
  64. package/lib/module/components/A11yCard/A11yCard.js.map +1 -0
  65. package/lib/module/components/A11yCard/A11yCard.types.js +4 -0
  66. package/lib/module/components/A11yCard/A11yCard.types.js.map +1 -0
  67. package/lib/module/components/A11yIndex/A11yIndex.js +88 -28
  68. package/lib/module/components/A11yIndex/A11yIndex.js.map +1 -1
  69. package/lib/module/components/A11yIndex/A11yIndex.types.js +35 -0
  70. package/lib/module/components/A11yIndex/A11yIndex.types.js.map +1 -0
  71. package/lib/module/components/A11yIndex/A11yIndex.web.js.map +1 -1
  72. package/lib/module/components/A11yLock/A11yFocusFrame/A11yFocusFrame.js.map +1 -1
  73. package/lib/module/components/A11yLock/A11yFocusTrap/A11yFocusTrap.js.map +1 -1
  74. package/lib/module/components/A11yLock/A11yLock.types.js.map +1 -0
  75. package/lib/module/components/{A11ySequence/A11ySequence.js → A11yOrder/A11yOrder.js} +2 -2
  76. package/lib/module/components/A11yOrder/A11yOrder.js.map +1 -0
  77. package/lib/module/components/A11yOrder/A11yOrder.types.js +4 -0
  78. package/lib/module/components/A11yOrder/A11yOrder.types.js.map +1 -0
  79. package/lib/module/components/A11yPaneTitle/A11yPaneTitle.js +6 -7
  80. package/lib/module/components/A11yPaneTitle/A11yPaneTitle.js.map +1 -1
  81. package/lib/module/components/A11yPaneTitle/A11yPaneTitle.types.js +4 -0
  82. package/lib/module/components/A11yPaneTitle/A11yPaneTitle.types.js.map +1 -0
  83. package/lib/module/components/A11yView/A11yView.js +7 -31
  84. package/lib/module/components/A11yView/A11yView.js.map +1 -1
  85. package/lib/module/components/A11yView/A11yView.types.js.map +1 -0
  86. package/lib/module/index.js +12 -8
  87. package/lib/module/index.js.map +1 -1
  88. package/lib/module/index.web.js +4 -4
  89. package/lib/module/index.web.js.map +1 -1
  90. package/{src/nativeSpecs/A11yGroupNativeComponent.ts → lib/module/nativeSpecs/A11yCardNativeComponent.ts} +3 -3
  91. package/lib/module/nativeSpecs/A11yIndexNativeComponent.ts +12 -3
  92. package/lib/typescript/src/components/A11yCard/A11yCard.d.ts +5 -0
  93. package/lib/typescript/src/components/A11yCard/A11yCard.d.ts.map +1 -0
  94. package/lib/typescript/src/components/A11yCard/A11yCard.ios.d.ts +5 -0
  95. package/lib/typescript/src/components/A11yCard/A11yCard.ios.d.ts.map +1 -0
  96. package/lib/typescript/src/components/A11yCard/A11yCard.types.d.ts +38 -0
  97. package/lib/typescript/src/components/A11yCard/A11yCard.types.d.ts.map +1 -0
  98. package/lib/typescript/src/components/A11yIndex/A11yIndex.d.ts +15 -10
  99. package/lib/typescript/src/components/A11yIndex/A11yIndex.d.ts.map +1 -1
  100. package/lib/typescript/src/components/A11yIndex/A11yIndex.types.d.ts +105 -0
  101. package/lib/typescript/src/components/A11yIndex/A11yIndex.types.d.ts.map +1 -0
  102. package/lib/typescript/src/components/A11yIndex/A11yIndex.web.d.ts +14 -10
  103. package/lib/typescript/src/components/A11yIndex/A11yIndex.web.d.ts.map +1 -1
  104. package/lib/typescript/src/components/A11yLock/A11yBaseLock/A11yBaseLock.d.ts +1 -1
  105. package/lib/typescript/src/components/A11yLock/A11yBaseLock/A11yBaseLock.d.ts.map +1 -1
  106. package/lib/typescript/src/components/A11yLock/A11yFocusFrame/A11yFocusFrame.android.d.ts +1 -1
  107. package/lib/typescript/src/components/A11yLock/A11yFocusFrame/A11yFocusFrame.android.d.ts.map +1 -1
  108. package/lib/typescript/src/components/A11yLock/A11yFocusFrame/A11yFocusFrame.d.ts +2 -2
  109. package/lib/typescript/src/components/A11yLock/A11yFocusFrame/A11yFocusFrame.d.ts.map +1 -1
  110. package/lib/typescript/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.android.d.ts +1 -1
  111. package/lib/typescript/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.android.d.ts.map +1 -1
  112. package/lib/typescript/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.d.ts +2 -2
  113. package/lib/typescript/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.d.ts.map +1 -1
  114. package/lib/typescript/src/components/A11yLock/A11yLock.types.d.ts +35 -0
  115. package/lib/typescript/src/components/A11yLock/A11yLock.types.d.ts.map +1 -0
  116. package/lib/typescript/src/components/{A11ySequence/A11ySequence.d.ts → A11yOrder/A11yOrder.d.ts} +4 -2
  117. package/lib/typescript/src/components/A11yOrder/A11yOrder.d.ts.map +1 -0
  118. package/lib/typescript/src/components/A11yOrder/A11yOrder.types.d.ts +11 -0
  119. package/lib/typescript/src/components/A11yOrder/A11yOrder.types.d.ts.map +1 -0
  120. package/lib/typescript/src/components/A11yPaneTitle/A11yPaneTitle.d.ts +3 -17
  121. package/lib/typescript/src/components/A11yPaneTitle/A11yPaneTitle.d.ts.map +1 -1
  122. package/lib/typescript/src/components/A11yPaneTitle/A11yPaneTitle.types.d.ts +52 -0
  123. package/lib/typescript/src/components/A11yPaneTitle/A11yPaneTitle.types.d.ts.map +1 -0
  124. package/lib/typescript/src/components/A11yView/A11yView.d.ts +13 -6
  125. package/lib/typescript/src/components/A11yView/A11yView.d.ts.map +1 -1
  126. package/lib/typescript/src/components/A11yView/A11yView.types.d.ts +10 -0
  127. package/lib/typescript/src/components/A11yView/A11yView.types.d.ts.map +1 -0
  128. package/lib/typescript/src/index.d.ts +32 -36
  129. package/lib/typescript/src/index.d.ts.map +1 -1
  130. package/lib/typescript/src/index.web.d.ts +22 -22
  131. package/lib/typescript/src/index.web.d.ts.map +1 -1
  132. package/lib/typescript/src/nativeSpecs/A11yCardNativeComponent.d.ts +8 -0
  133. package/lib/typescript/src/nativeSpecs/A11yCardNativeComponent.d.ts.map +1 -0
  134. package/lib/typescript/src/nativeSpecs/A11yIndexNativeComponent.d.ts +10 -3
  135. package/lib/typescript/src/nativeSpecs/A11yIndexNativeComponent.d.ts.map +1 -1
  136. package/package.json +12 -11
  137. package/src/components/A11yCard/A11yCard.ios.tsx +44 -0
  138. package/src/components/A11yCard/A11yCard.tsx +35 -0
  139. package/src/components/A11yCard/A11yCard.types.ts +50 -0
  140. package/src/components/A11yIndex/A11yIndex.tsx +144 -52
  141. package/src/components/A11yIndex/A11yIndex.types.ts +124 -0
  142. package/src/components/A11yIndex/A11yIndex.web.tsx +12 -17
  143. package/src/components/A11yLock/A11yBaseLock/A11yBaseLock.tsx +1 -1
  144. package/src/components/A11yLock/A11yFocusFrame/A11yFocusFrame.android.tsx +1 -1
  145. package/src/components/A11yLock/A11yFocusFrame/A11yFocusFrame.tsx +3 -2
  146. package/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.android.tsx +1 -1
  147. package/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.tsx +2 -2
  148. package/src/components/A11yLock/A11yLock.types.ts +38 -0
  149. package/src/components/{A11ySequence/A11ySequence.tsx → A11yOrder/A11yOrder.tsx} +4 -2
  150. package/src/components/A11yOrder/A11yOrder.types.ts +11 -0
  151. package/src/components/A11yPaneTitle/A11yPaneTitle.tsx +13 -19
  152. package/src/components/A11yPaneTitle/A11yPaneTitle.types.ts +58 -0
  153. package/src/components/A11yView/A11yView.tsx +8 -63
  154. package/src/components/A11yView/A11yView.types.ts +11 -0
  155. package/src/index.ts +26 -19
  156. package/src/index.web.ts +6 -13
  157. package/{lib/module/nativeSpecs/A11yGroupNativeComponent.ts → src/nativeSpecs/A11yCardNativeComponent.ts} +3 -3
  158. package/src/nativeSpecs/A11yIndexNativeComponent.ts +12 -3
  159. package/android/src/main/java/com/a11yorder/views/A11yGroupView/A11yGroupViewManager.java +0 -25
  160. package/android/src/main/java/com/a11yorder/views/A11yUIContainerView/A11yUIContainerViewManager.java +0 -30
  161. package/android/src/main/java/com/a11yorder/views/A11yView/A11yViewManager.java +0 -67
  162. package/android/src/newarch/A11yGroupViewManagerSpec.java +0 -9
  163. package/android/src/newarch/A11yUIContainerViewManagerSpec.java +0 -8
  164. package/android/src/newarch/A11yViewSpec.java +0 -13
  165. package/android/src/oldarch/A11yGroupViewManagerSpec.java +0 -8
  166. package/android/src/oldarch/A11yUIContainerViewManagerSpec.java +0 -9
  167. package/android/src/oldarch/A11yViewSpec.java +0 -18
  168. package/ios/views/RNAOA11yGroupView/RNAOA11yGroupView.h +0 -37
  169. package/ios/views/RNAOA11yGroupView/RNAOA11yGroupView.mm +0 -67
  170. package/ios/views/RNAOA11yGroupView/RNAOA11yGroupViewManager.h +0 -18
  171. package/ios/views/RNAOA11yGroupView/RNAOA11yGroupViewManager.mm +0 -25
  172. package/ios/views/RNAOA11yUIContainerView/RNAOA11yUIContainerView.h +0 -35
  173. package/ios/views/RNAOA11yUIContainerView/RNAOA11yUIContainerView.mm +0 -79
  174. package/ios/views/RNAOA11yUIContainerView/RNAOA11yUIContainerViewManager.h +0 -18
  175. package/ios/views/RNAOA11yUIContainerView/RNAOA11yUIContainerViewManager.mm +0 -27
  176. package/ios/views/RNAOA11yView/RNAOA11yView.h +0 -45
  177. package/ios/views/RNAOA11yView/RNAOA11yViewManager.h +0 -14
  178. package/ios/views/RNAOA11yView/RNAOA11yViewManager.mm +0 -53
  179. package/lib/commonjs/components/A11yGroup/A11yGroup.android.js +0 -18
  180. package/lib/commonjs/components/A11yGroup/A11yGroup.android.js.map +0 -1
  181. package/lib/commonjs/components/A11yGroup/A11yGroup.ios.js +0 -24
  182. package/lib/commonjs/components/A11yGroup/A11yGroup.ios.js.map +0 -1
  183. package/lib/commonjs/components/A11yGroup/A11yGroup.js +0 -9
  184. package/lib/commonjs/components/A11yGroup/A11yGroup.js.map +0 -1
  185. package/lib/commonjs/components/A11ySequence/A11ySequence.js.map +0 -1
  186. package/lib/commonjs/components/A11yUIContainer/A11yUIContainer.ios.js +0 -22
  187. package/lib/commonjs/components/A11yUIContainer/A11yUIContainer.ios.js.map +0 -1
  188. package/lib/commonjs/components/A11yUIContainer/A11yUIContainer.js +0 -9
  189. package/lib/commonjs/components/A11yUIContainer/A11yUIContainer.js.map +0 -1
  190. package/lib/commonjs/nativeSpecs/A11yUIContainerNativeComponent.ts +0 -12
  191. package/lib/commonjs/nativeSpecs/A11yViewNativeComponent.ts +0 -36
  192. package/lib/commonjs/types/A11yGroup.types.js.map +0 -1
  193. package/lib/commonjs/types/A11yIndex.types.js +0 -13
  194. package/lib/commonjs/types/A11yIndex.types.js.map +0 -1
  195. package/lib/commonjs/types/A11yLock.types.js.map +0 -1
  196. package/lib/commonjs/types/A11yModule.types.js.map +0 -1
  197. package/lib/commonjs/types/A11yUIContainerView.types.js +0 -15
  198. package/lib/commonjs/types/A11yUIContainerView.types.js.map +0 -1
  199. package/lib/commonjs/types/A11yView.types.js.map +0 -1
  200. package/lib/module/components/A11yGroup/A11yGroup.android.js +0 -12
  201. package/lib/module/components/A11yGroup/A11yGroup.android.js.map +0 -1
  202. package/lib/module/components/A11yGroup/A11yGroup.ios.js +0 -18
  203. package/lib/module/components/A11yGroup/A11yGroup.ios.js.map +0 -1
  204. package/lib/module/components/A11yGroup/A11yGroup.js +0 -5
  205. package/lib/module/components/A11yGroup/A11yGroup.js.map +0 -1
  206. package/lib/module/components/A11ySequence/A11ySequence.js.map +0 -1
  207. package/lib/module/components/A11yUIContainer/A11yUIContainer.ios.js +0 -17
  208. package/lib/module/components/A11yUIContainer/A11yUIContainer.ios.js.map +0 -1
  209. package/lib/module/components/A11yUIContainer/A11yUIContainer.js +0 -5
  210. package/lib/module/components/A11yUIContainer/A11yUIContainer.js.map +0 -1
  211. package/lib/module/nativeSpecs/A11yUIContainerNativeComponent.ts +0 -12
  212. package/lib/module/nativeSpecs/A11yViewNativeComponent.ts +0 -36
  213. package/lib/module/types/A11yGroup.types.js +0 -4
  214. package/lib/module/types/A11yGroup.types.js.map +0 -1
  215. package/lib/module/types/A11yIndex.types.js +0 -9
  216. package/lib/module/types/A11yIndex.types.js.map +0 -1
  217. package/lib/module/types/A11yLock.types.js.map +0 -1
  218. package/lib/module/types/A11yModule.types.js +0 -4
  219. package/lib/module/types/A11yModule.types.js.map +0 -1
  220. package/lib/module/types/A11yUIContainerView.types.js +0 -11
  221. package/lib/module/types/A11yUIContainerView.types.js.map +0 -1
  222. package/lib/module/types/A11yView.types.js.map +0 -1
  223. package/lib/typescript/src/components/A11yGroup/A11yGroup.android.d.ts +0 -4
  224. package/lib/typescript/src/components/A11yGroup/A11yGroup.android.d.ts.map +0 -1
  225. package/lib/typescript/src/components/A11yGroup/A11yGroup.d.ts +0 -3
  226. package/lib/typescript/src/components/A11yGroup/A11yGroup.d.ts.map +0 -1
  227. package/lib/typescript/src/components/A11yGroup/A11yGroup.ios.d.ts +0 -4
  228. package/lib/typescript/src/components/A11yGroup/A11yGroup.ios.d.ts.map +0 -1
  229. package/lib/typescript/src/components/A11ySequence/A11ySequence.d.ts.map +0 -1
  230. package/lib/typescript/src/components/A11yUIContainer/A11yUIContainer.d.ts +0 -3
  231. package/lib/typescript/src/components/A11yUIContainer/A11yUIContainer.d.ts.map +0 -1
  232. package/lib/typescript/src/components/A11yUIContainer/A11yUIContainer.ios.d.ts +0 -4
  233. package/lib/typescript/src/components/A11yUIContainer/A11yUIContainer.ios.d.ts.map +0 -1
  234. package/lib/typescript/src/nativeSpecs/A11yGroupNativeComponent.d.ts +0 -8
  235. package/lib/typescript/src/nativeSpecs/A11yGroupNativeComponent.d.ts.map +0 -1
  236. package/lib/typescript/src/nativeSpecs/A11yUIContainerNativeComponent.d.ts +0 -10
  237. package/lib/typescript/src/nativeSpecs/A11yUIContainerNativeComponent.d.ts.map +0 -1
  238. package/lib/typescript/src/nativeSpecs/A11yViewNativeComponent.d.ts +0 -26
  239. package/lib/typescript/src/nativeSpecs/A11yViewNativeComponent.d.ts.map +0 -1
  240. package/lib/typescript/src/types/A11yGroup.types.d.ts +0 -7
  241. package/lib/typescript/src/types/A11yGroup.types.d.ts.map +0 -1
  242. package/lib/typescript/src/types/A11yIndex.types.d.ts +0 -19
  243. package/lib/typescript/src/types/A11yIndex.types.d.ts.map +0 -1
  244. package/lib/typescript/src/types/A11yLock.types.d.ts +0 -8
  245. package/lib/typescript/src/types/A11yLock.types.d.ts.map +0 -1
  246. package/lib/typescript/src/types/A11yModule.types.d.ts +0 -7
  247. package/lib/typescript/src/types/A11yModule.types.d.ts.map +0 -1
  248. package/lib/typescript/src/types/A11yUIContainerView.types.d.ts +0 -13
  249. package/lib/typescript/src/types/A11yUIContainerView.types.d.ts.map +0 -1
  250. package/lib/typescript/src/types/A11yView.types.d.ts +0 -12
  251. package/lib/typescript/src/types/A11yView.types.d.ts.map +0 -1
  252. package/src/components/A11yGroup/A11yGroup.android.tsx +0 -8
  253. package/src/components/A11yGroup/A11yGroup.ios.tsx +0 -11
  254. package/src/components/A11yGroup/A11yGroup.tsx +0 -5
  255. package/src/components/A11yUIContainer/A11yUIContainer.ios.tsx +0 -20
  256. package/src/components/A11yUIContainer/A11yUIContainer.tsx +0 -5
  257. package/src/nativeSpecs/A11yUIContainerNativeComponent.ts +0 -12
  258. package/src/nativeSpecs/A11yViewNativeComponent.ts +0 -36
  259. package/src/types/A11yGroup.types.ts +0 -9
  260. package/src/types/A11yIndex.types.ts +0 -21
  261. package/src/types/A11yLock.types.ts +0 -8
  262. package/src/types/A11yModule.types.ts +0 -7
  263. package/src/types/A11yUIContainerView.types.ts +0 -15
  264. package/src/types/A11yView.types.ts +0 -19
  265. /package/lib/commonjs/{types → components/A11yLock}/A11yLock.types.js +0 -0
  266. /package/lib/commonjs/{types → components/A11yView}/A11yView.types.js +0 -0
  267. /package/lib/module/{types → components/A11yLock}/A11yLock.types.js +0 -0
  268. /package/lib/module/{types → components/A11yView}/A11yView.types.js +0 -0
@@ -1,7 +1,10 @@
1
- export type { IndexCommands, A11yOrderType, A11yOrderTypeEnum, A11yIndexProps, } from './types/A11yIndex.types';
2
- export type { A11yContainerTypeEnum, A11yUIContainerType, A11yUIContainerProps, } from './types/A11yUIContainerView.types';
3
- export type { ScreenReaderDescendantFocusChangedEvent } from './types/A11yView.types';
4
- export type { A11yViewProps } from './types/A11yView.types';
1
+ export type { A11yCardProps } from './components/A11yCard/A11yCard.types';
2
+ export type { A11yOrderProps } from './components/A11yOrder/A11yOrder.types';
3
+ export type { A11yIndexProps, A11yOrderType, IndexCommands, } from './components/A11yIndex/A11yIndex.types';
4
+ export { A11yOrderTypeEnum } from './components/A11yIndex/A11yIndex.types';
5
+ export type { A11yViewProps, ScreenReaderDescendantFocusChangedEvent, } from './components/A11yView/A11yView.types';
6
+ export type { A11yFocusTrapProps, A11yFocusFrameProps, } from './components/A11yLock/A11yLock.types';
7
+ export type { A11yPaneTitleProps, A11yScreenChangeProps, A11yPaneType, } from './components/A11yPaneTitle/A11yPaneTitle.types';
5
8
  export declare const A11y: {
6
9
  Order: import("react").NamedExoticComponent<Readonly<Omit<Readonly<{
7
10
  onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => unknown) | undefined;
@@ -127,14 +130,7 @@ export declare const A11y: {
127
130
  removeClippedSubviews?: boolean | undefined;
128
131
  experimental_accessibilityOrder?: Array<string> | undefined;
129
132
  }>, never>>>;
130
- Index: import("react").NamedExoticComponent<{
131
- children: React.ReactNode;
132
- index: number;
133
- orderType?: import(".").A11yOrderType;
134
- onScreenReaderSubViewFocusChange?: (isFocused: boolean) => void;
135
- onScreenReaderSubViewFocused?: () => void;
136
- onScreenReaderSubViewBlurred?: () => void;
137
- } & Readonly<Omit<Readonly<{
133
+ Index: import("react").NamedExoticComponent<Readonly<Omit<Readonly<{
138
134
  onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => unknown) | undefined;
139
135
  onAccessibilityTap?: (() => unknown) | undefined;
140
136
  onLayout?: ((event: import("react-native").LayoutChangeEvent) => unknown) | undefined;
@@ -257,27 +253,19 @@ export declare const A11y: {
257
253
  pointerEvents?: ("auto" | "box-none" | "box-only" | "none") | undefined;
258
254
  removeClippedSubviews?: boolean | undefined;
259
255
  experimental_accessibilityOrder?: Array<string> | undefined;
260
- }>, never>> & import("react").RefAttributes<import(".").IndexCommands>>;
261
- Group: import("react").ExoticComponent<import("./types/A11yGroup.types").A11yGroupProps>;
262
- Container: import("react").ExoticComponent<import(".").A11yUIContainerProps>;
263
- PaneTitle: ({ title, detachMessage, type, children, displayed, withFocusRestore, }: import("react-native").ViewProps & ({
264
- title?: string;
265
- detachMessage?: string;
266
- type?: "activity" | "pane" | "announce";
267
- withFocusRestore?: boolean;
268
- displayed?: boolean;
269
- } & {
270
- children?: import("react").ReactNode | undefined;
271
- })) => import("react").JSX.Element | null;
272
- ScreenChange: (props: Omit<{
273
- title?: string;
274
- detachMessage?: string;
275
- type?: "activity" | "pane" | "announce";
276
- withFocusRestore?: boolean;
277
- displayed?: boolean;
278
- } & {
279
- children?: import("react").ReactNode | undefined;
280
- }, "type">) => import("react").JSX.Element;
256
+ }>, never>> & {
257
+ children: React.ReactNode;
258
+ index?: number;
259
+ orderType?: import(".").A11yOrderType;
260
+ a11yUIContainer?: import("./components/A11yIndex/A11yIndex.types").A11yUIContainerType;
261
+ shouldGroupAccessibilityChildren?: boolean;
262
+ autoFocus?: boolean;
263
+ onScreenReaderFocused?: () => void;
264
+ onScreenReaderSubViewFocusChange?: (isFocused: boolean) => void;
265
+ onScreenReaderSubViewFocused?: () => void;
266
+ onScreenReaderSubViewBlurred?: () => void;
267
+ onScreenReaderDescendantFocusChanged?: (e: import(".").ScreenReaderDescendantFocusChangedEvent) => void;
268
+ } & import("react").RefAttributes<import(".").IndexCommands>>;
281
269
  View: import("react").NamedExoticComponent<Readonly<Omit<Readonly<{
282
270
  onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => unknown) | undefined;
283
271
  onAccessibilityTap?: (() => unknown) | undefined;
@@ -402,15 +390,23 @@ export declare const A11y: {
402
390
  removeClippedSubviews?: boolean | undefined;
403
391
  experimental_accessibilityOrder?: Array<string> | undefined;
404
392
  }>, never>> & {
393
+ children: React.ReactNode;
394
+ index?: number;
395
+ orderType?: import(".").A11yOrderType;
396
+ a11yUIContainer?: import("./components/A11yIndex/A11yIndex.types").A11yUIContainerType;
397
+ shouldGroupAccessibilityChildren?: boolean;
405
398
  autoFocus?: boolean;
406
399
  onScreenReaderFocused?: () => void;
407
400
  onScreenReaderSubViewFocusChange?: (isFocused: boolean) => void;
408
401
  onScreenReaderSubViewFocused?: () => void;
409
402
  onScreenReaderSubViewBlurred?: () => void;
410
403
  onScreenReaderDescendantFocusChanged?: (e: import(".").ScreenReaderDescendantFocusChangedEvent) => void;
411
- } & import("react").RefAttributes<{}>>;
412
- FocusFrame: (props: import("react-native").ViewProps) => import("react").JSX.Element;
413
- FocusTrap: ({ forceLock, ...props }: import("./types/A11yLock.types").A11yLockProps) => import("react").JSX.Element;
404
+ } & import("react").RefAttributes<import(".").IndexCommands>>;
405
+ PaneTitle: ({ title, detachMessage, type, children, displayed, withFocusRestore, }: import(".").A11yPaneTitleProps) => import("react").JSX.Element | null;
406
+ ScreenChange: (props: import(".").A11yScreenChangeProps) => import("react").JSX.Element;
407
+ FocusFrame: (props: import(".").A11yFocusFrameProps) => import("react").JSX.Element;
408
+ FocusTrap: ({ forceLock, ...props }: import(".").A11yFocusTrapProps) => import("react").JSX.Element;
409
+ Card: ({ containerProps, style, testID, onPress, accessibility, pressableProps, children, }: import(".").A11yCardProps) => import("react").JSX.Element;
414
410
  };
415
411
  export { A11yModule } from './modules/A11yAnnounceModule';
416
412
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAYA,YAAY,EACV,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,cAAc,GACf,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EACV,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,mCAAmC,CAAC;AAE3C,YAAY,EAAE,uCAAuC,EAAE,MAAM,wBAAwB,CAAC;AAEtF,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUhB,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAaA,YAAY,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAC1E,YAAY,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAC7E,YAAY,EACV,cAAc,EACd,aAAa,EACb,aAAa,GACd,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,YAAY,EACV,aAAa,EACb,uCAAuC,GACxC,MAAM,sCAAsC,CAAC;AAC9C,YAAY,EACV,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,sCAAsC,CAAC;AAC9C,YAAY,EACV,kBAAkB,EAClB,qBAAqB,EACrB,YAAY,GACb,MAAM,gDAAgD,CAAC;AAIxD,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAShB,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC"}
@@ -1,26 +1,14 @@
1
- export type { IndexCommands, A11yOrderType, A11yOrderTypeEnum, A11yIndexProps, } from './types/A11yIndex.types';
2
- export type { A11yContainerTypeEnum, A11yUIContainerType, A11yUIContainerProps, } from './types/A11yUIContainerView.types';
3
- export type { ScreenReaderDescendantFocusChangedEvent } from './types/A11yView.types';
4
- export type { A11yViewProps } from './types/A11yView.types';
1
+ export type { IndexCommands, A11yOrderType, A11yIndexProps, } from './components/A11yIndex/A11yIndex.types';
2
+ export { A11yOrderTypeEnum } from './components/A11yIndex/A11yIndex.types';
3
+ export type { ScreenReaderDescendantFocusChangedEvent } from './components/A11yView/A11yView.types';
4
+ export type { A11yViewProps } from './components/A11yView/A11yView.types';
5
5
  export declare const A11y: {
6
6
  Order: (props: Omit<import("react-native").ViewProps, keyof {
7
7
  ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
8
8
  }> & {
9
9
  ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
10
10
  }) => React.ReactNode;
11
- Group: (props: Omit<import("react-native").ViewProps, keyof {
12
- ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
13
- }> & {
14
- ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
15
- }) => React.ReactNode;
16
- Index: import("react").NamedExoticComponent<{
17
- children: React.ReactNode;
18
- index: number;
19
- orderType?: import(".").A11yOrderType;
20
- onScreenReaderSubViewFocusChange?: (isFocused: boolean) => void;
21
- onScreenReaderSubViewFocused?: () => void;
22
- onScreenReaderSubViewBlurred?: () => void;
23
- } & Readonly<Omit<Readonly<{
11
+ Index: import("react").NamedExoticComponent<Readonly<Omit<Readonly<{
24
12
  onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => unknown) | undefined;
25
13
  onAccessibilityTap?: (() => unknown) | undefined;
26
14
  onLayout?: ((event: import("react-native").LayoutChangeEvent) => unknown) | undefined;
@@ -143,8 +131,20 @@ export declare const A11y: {
143
131
  pointerEvents?: ("auto" | "box-none" | "box-only" | "none") | undefined;
144
132
  removeClippedSubviews?: boolean | undefined;
145
133
  experimental_accessibilityOrder?: Array<string> | undefined;
146
- }>, never>> & import("react").RefAttributes<import(".").IndexCommands>>;
147
- Container: (props: Omit<import("react-native").ViewProps, keyof {
134
+ }>, never>> & {
135
+ children: React.ReactNode;
136
+ index?: number;
137
+ orderType?: import(".").A11yOrderType;
138
+ a11yUIContainer?: import("./components/A11yIndex/A11yIndex.types").A11yUIContainerType;
139
+ shouldGroupAccessibilityChildren?: boolean;
140
+ autoFocus?: boolean;
141
+ onScreenReaderFocused?: () => void;
142
+ onScreenReaderSubViewFocusChange?: (isFocused: boolean) => void;
143
+ onScreenReaderSubViewFocused?: () => void;
144
+ onScreenReaderSubViewBlurred?: () => void;
145
+ onScreenReaderDescendantFocusChanged?: (e: import(".").ScreenReaderDescendantFocusChangedEvent) => void;
146
+ } & import("react").RefAttributes<import(".").IndexCommands>>;
147
+ View: (props: Omit<import("react-native").ViewProps, keyof {
148
148
  ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
149
149
  }> & {
150
150
  ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
@@ -159,17 +159,17 @@ export declare const A11y: {
159
159
  }> & {
160
160
  ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
161
161
  }) => React.ReactNode;
162
- View: (props: Omit<import("react-native").ViewProps, keyof {
162
+ FocusFrame: (props: Omit<import("react-native").ViewProps, keyof {
163
163
  ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
164
164
  }> & {
165
165
  ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
166
166
  }) => React.ReactNode;
167
- FocusFrame: (props: Omit<import("react-native").ViewProps, keyof {
167
+ FocusTrap: (props: Omit<import("react-native").ViewProps, keyof {
168
168
  ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
169
169
  }> & {
170
170
  ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
171
171
  }) => React.ReactNode;
172
- FocusTrap: (props: Omit<import("react-native").ViewProps, keyof {
172
+ Card: (props: Omit<import("react-native").ViewProps, keyof {
173
173
  ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
174
174
  }> & {
175
175
  ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../src/index.web.ts"],"names":[],"mappings":"AAGA,YAAY,EACV,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,cAAc,GACf,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EACV,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,mCAAmC,CAAC;AAE3C,YAAY,EAAE,uCAAuC,EAAE,MAAM,wBAAwB,CAAC;AAEtF,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,eAAO,MAAM,IAAI;;WAaiE,CAAC;;WAAyE,CAAC;;;WAA3E,CAAC;;WAAyE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAA3E,CAAC;;WAAyE,CAAC;;;WAA3E,CAAC;;WAAyE,CAAC;;;WAA3E,CAAC;;WAAyE,CAAC;;;WAA3E,CAAC;;WAAyE,CAAC;;;WAA3E,CAAC;;WAAyE,CAAC;;;WAA3E,CAAC;;WAAyE,CAAC;;CAH5J,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../src/index.web.ts"],"names":[],"mappings":"AAGA,YAAY,EACV,aAAa,EACb,aAAa,EACb,cAAc,GACf,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAE3E,YAAY,EAAE,uCAAuC,EAAE,MAAM,sCAAsC,CAAC;AAEpG,YAAY,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAE1E,eAAO,MAAM,IAAI;;WAYsH,CAAC;;WAAyE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAA3E,CAAC;;WAAyE,CAAC;;;WAA3E,CAAC;;WAAyE,CAAC;;;WAA3E,CAAC;;WAAyE,CAAC;;;WAA3E,CAAC;;WAAyE,CAAC;;;WAA3E,CAAC;;WAAyE,CAAC;;;WAA3E,CAAC;;WAAyE,CAAC;;CAHjN,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ViewProps } from 'react-native';
2
+ export interface A11yCardNativeComponentProps extends ViewProps {
3
+ }
4
+ declare const _default: (props: Omit<A11yCardNativeComponentProps, "ref"> & {
5
+ ref?: React.Ref<import("react-native").HostInstance>;
6
+ }) => React.ReactNode;
7
+ export default _default;
8
+ //# sourceMappingURL=A11yCardNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"A11yCardNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yCardNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,MAAM,WAAW,4BAA6B,SAAQ,SAAS;CAAG;;;;AAElE,wBAEE"}
@@ -6,12 +6,19 @@ export type ScreenReaderFocusChange = Readonly<{
6
6
  }>;
7
7
  export type ScreenReaderDescendantFocusChanged = Readonly<{
8
8
  status: string;
9
+ nativeId?: string;
9
10
  }>;
10
11
  export interface A11yIndexNativeComponentProps extends ViewProps {
11
- orderIndex: Int32;
12
- orderKey: string;
13
- orderFocusType: Int32;
12
+ orderIndex?: Int32;
13
+ orderKey?: string;
14
+ orderFocusType?: Int32;
15
+ shouldGroupAccessibilityChildren?: Int32;
16
+ autoFocus?: boolean;
17
+ descendantFocusChangedEnabled?: boolean;
18
+ onScreenReaderFocused?: DirectEventHandler<{}>;
19
+ onScreenReaderDescendantFocusChanged?: DirectEventHandler<ScreenReaderDescendantFocusChanged>;
14
20
  onScreenReaderFocusChange?: DirectEventHandler<ScreenReaderFocusChange>;
21
+ containerType?: Int32;
15
22
  }
16
23
  export interface NativeCommands {
17
24
  focus: (viewRef: React.ElementRef<ComponentType>) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"A11yIndexNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yIndexNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,kBAAkB,EAClB,KAAK,EACN,MAAM,2CAA2C,CAAC;AAMnD,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC;IAC7C,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,MAAM,kCAAkC,GAAG,QAAQ,CAAC;IACxD,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC,CAAC;AAEH,MAAM,WAAW,6BAA8B,SAAQ,SAAS;IAC9D,UAAU,EAAE,KAAK,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,KAAK,CAAC;IAEtB,yBAAyB,CAAC,EAAE,kBAAkB,CAAC,uBAAuB,CAAC,CAAC;CACzE;AAED,MAAM,WAAW,cAAc;IAE7B,KAAK,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;CAC3D;AAED,eAAO,MAAM,QAAQ,EAAE,cAErB,CAAC;;;;AAEH,wBAEE"}
1
+ {"version":3,"file":"A11yIndexNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yIndexNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,kBAAkB,EAClB,KAAK,EACN,MAAM,2CAA2C,CAAC;AAMnD,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC;IAC7C,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,MAAM,kCAAkC,GAAG,QAAQ,CAAC;IACxD,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAEH,MAAM,WAAW,6BAA8B,SAAQ,SAAS;IAC9D,UAAU,CAAC,EAAE,KAAK,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,KAAK,CAAC;IACvB,gCAAgC,CAAC,EAAE,KAAK,CAAC;IAEzC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6BAA6B,CAAC,EAAE,OAAO,CAAC;IAExC,qBAAqB,CAAC,EAAE,kBAAkB,CAAC,EAAE,CAAC,CAAC;IAC/C,oCAAoC,CAAC,EAAE,kBAAkB,CAAC,kCAAkC,CAAC,CAAC;IAC9F,yBAAyB,CAAC,EAAE,kBAAkB,CAAC,uBAAuB,CAAC,CAAC;IAExE,aAAa,CAAC,EAAE,KAAK,CAAC;CACvB;AAED,MAAM,WAAW,cAAc;IAE7B,KAAK,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;CAC3D;AAED,eAAO,MAAM,QAAQ,EAAE,cAErB,CAAC;;;;AAEH,wBAEE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-a11y-order",
3
- "version": "0.9.1",
3
+ "version": "0.11.0-rc",
4
4
  "description": "ReactNative library for managing screen reader focus ordering",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -25,10 +25,12 @@
25
25
  "!**/__fixtures__",
26
26
  "!**/__mocks__",
27
27
  "!**/.*",
28
- "!**/CLAUDE.md"
28
+ "!**/CLAUDE.md",
29
+ "!**/docs"
29
30
  ],
30
31
  "scripts": {
31
32
  "example": "yarn workspace a11y-order-example",
33
+ "example-legacy": "yarn workspace A11yOrderExample",
32
34
  "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
33
35
  "prepare": "bob build",
34
36
  "typecheck": "tsc",
@@ -64,11 +66,11 @@
64
66
  "@eslint/compat": "^1.3.2",
65
67
  "@eslint/eslintrc": "^3.3.1",
66
68
  "@eslint/js": "^9.35.0",
67
- "@react-native/babel-preset": "0.83.0",
68
- "@react-native/eslint-config": "0.83.0",
69
+ "@react-native/babel-preset": "0.76.0",
70
+ "@react-native/eslint-config": "0.76.0",
69
71
  "@release-it/conventional-changelog": "^10.0.1",
70
72
  "@types/jest": "^29.5.14",
71
- "@types/react": "^19.2.0",
73
+ "@types/react": "^18.2.0",
72
74
  "commitlint": "^19.8.1",
73
75
  "del-cli": "^6.0.0",
74
76
  "eslint": "^9.35.0",
@@ -77,8 +79,8 @@
77
79
  "jest": "^29.7.0",
78
80
  "lefthook": "^2.0.3",
79
81
  "prettier": "^2.8.8",
80
- "react": "19.2.0",
81
- "react-native": "0.83.0",
82
+ "react": "18.2.0",
83
+ "react-native": "0.76.0",
82
84
  "react-native-builder-bob": "^0.40.18",
83
85
  "release-it": "^19.0.4",
84
86
  "turbo": "^2.5.6",
@@ -89,7 +91,8 @@
89
91
  "react-native": "*"
90
92
  },
91
93
  "workspaces": [
92
- "example"
94
+ "example",
95
+ "A11yOrderExample"
93
96
  ],
94
97
  "packageManager": "yarn@4.11.0",
95
98
  "react-native-builder-bob": {
@@ -112,12 +115,10 @@
112
115
  "jsSrcsDir": "src",
113
116
  "ios": {
114
117
  "componentProvider": {
115
- "A11yGroupView": "RNAOA11yGroupView",
118
+ "A11yCardView": "RNAOA11yCardView",
116
119
  "A11yIndexView": "RNAOA11yIndexView",
117
120
  "A11yOrderView": "RNAOA11yOrderView",
118
- "A11yUIContainer": "RNAOA11yUIContainerView",
119
121
  "A11yPaneTitle": "RNAOA11yPaneTitleView",
120
- "A11yView": "RNAOA11yView",
121
122
  "A11yLock": "RNAOA11yLockView"
122
123
  },
123
124
  "modulesProvider": {
@@ -0,0 +1,44 @@
1
+ import React from 'react';
2
+ import { Pressable, StyleSheet, View } from 'react-native';
3
+ import Card from '../../nativeSpecs/A11yCardNativeComponent';
4
+ import type { A11yCardProps } from './A11yCard.types';
5
+
6
+ export type { A11yCardProps };
7
+
8
+ export const A11yCard = ({
9
+ containerProps,
10
+ style,
11
+ testID,
12
+ onPress,
13
+ accessibility,
14
+ pressableProps,
15
+ children,
16
+ }: A11yCardProps) => {
17
+ return (
18
+ <Card {...containerProps} style={[styles.container, containerProps?.style]}>
19
+ <View
20
+ testID={`${testID}-overlay`}
21
+ accessibilityRole="button"
22
+ {...accessibility}
23
+ accessible
24
+ pointerEvents="none"
25
+ onAccessibilityTap={onPress}
26
+ style={styles.overlay}
27
+ />
28
+ <Pressable
29
+ {...pressableProps}
30
+ accessible={false}
31
+ onPress={onPress}
32
+ testID={testID}
33
+ style={style}
34
+ >
35
+ {children}
36
+ </Pressable>
37
+ </Card>
38
+ );
39
+ };
40
+
41
+ const styles = StyleSheet.create({
42
+ container: { position: 'relative' },
43
+ overlay: StyleSheet.absoluteFillObject,
44
+ });
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ import { Pressable, StyleSheet, View } from 'react-native';
3
+ import type { A11yCardProps } from './A11yCard.types';
4
+
5
+ export type { A11yCardProps };
6
+
7
+ export const A11yCard = ({
8
+ containerProps,
9
+ style,
10
+ testID,
11
+ onPress,
12
+ accessibility,
13
+ pressableProps,
14
+ children,
15
+ }: A11yCardProps) => {
16
+ return (
17
+ <View collapsable={false} {...containerProps}>
18
+ <Pressable
19
+ {...pressableProps}
20
+ accessibilityRole="button"
21
+ {...accessibility}
22
+ accessible
23
+ onPress={onPress}
24
+ testID={testID}
25
+ style={[style, styles.container]}
26
+ >
27
+ {children}
28
+ </Pressable>
29
+ </View>
30
+ );
31
+ };
32
+
33
+ const styles = StyleSheet.create({
34
+ container: { position: 'relative' },
35
+ });
@@ -0,0 +1,50 @@
1
+ import type {
2
+ ViewStyle,
3
+ StyleProp,
4
+ ViewProps,
5
+ PressableProps,
6
+ } from 'react-native';
7
+
8
+ /** Accessibility props forwarded to the focusable overlay (iOS) or the Pressable (Android). */
9
+ export type A11yCardAccessibilityProps = ViewProps;
10
+
11
+ export interface A11yCardProps {
12
+ /**
13
+ * Props applied to the container View wrapping the card.
14
+ * Use this for layout-level concerns: position, margins, flex, etc.
15
+ */
16
+ containerProps?: ViewProps;
17
+
18
+ /**
19
+ * Style for the card surface (the inner Pressable).
20
+ * Use this for visual appearance: background color, border radius, padding, etc.
21
+ */
22
+ style?: StyleProp<ViewStyle>;
23
+
24
+ /**
25
+ * Used to locate this view in end-to-end tests.
26
+ */
27
+ testID?: string;
28
+
29
+ /**
30
+ * Called when the user taps the card.
31
+ */
32
+ onPress?: () => void;
33
+
34
+ /**
35
+ * View/Accessibility props for the card action — `accessibilityLabel`, `accessibilityHint`,
36
+ * `accessibilityRole`, `accessibilityState`, etc.
37
+ *
38
+ * On iOS these are forwarded to a full-cover overlay that VoiceOver focuses.
39
+ * On Android they are applied directly to the Pressable.
40
+ */
41
+ accessibility?: A11yCardAccessibilityProps;
42
+
43
+ /**
44
+ * Props passed directly to the underlying `Pressable`.
45
+ * Use this for `hitSlop`, `android_ripple`, `onLongPress`, etc.
46
+ */
47
+ pressableProps?: PressableProps;
48
+
49
+ children?: React.ReactNode;
50
+ }