react-native-a11y-order 0.2.0 → 0.2.1
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/lib/commonjs/A11yModule/helper.js.map +1 -1
- package/lib/commonjs/components/A11yGroup/A11yGroup.android.js.map +1 -1
- package/lib/commonjs/components/A11yGroup/A11yGroup.ios.js.map +1 -1
- package/lib/commonjs/components/A11yIndex/A11yIndex.js.map +1 -1
- package/lib/commonjs/components/A11yIndex/A11yIndex.web.js +27 -0
- package/lib/commonjs/components/A11yIndex/A11yIndex.web.js.map +1 -0
- package/lib/commonjs/index.js +2 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +58 -0
- package/lib/commonjs/index.web.js.map +1 -0
- package/lib/commonjs/types/A11yGroup.types.js +6 -0
- package/lib/commonjs/types/A11yGroup.types.js.map +1 -0
- package/lib/commonjs/types/A11yIndex.types.js +6 -0
- package/lib/commonjs/types/A11yIndex.types.js.map +1 -0
- package/lib/commonjs/types/A11yModule.types.js +6 -0
- package/lib/commonjs/types/A11yModule.types.js.map +1 -0
- package/lib/commonjs/types/A11yOrder.types.js.map +1 -0
- package/lib/module/A11yModule/helper.js.map +1 -1
- 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/A11yIndex/A11yIndex.js.map +1 -1
- package/lib/module/components/A11yIndex/A11yIndex.web.js +20 -0
- package/lib/module/components/A11yIndex/A11yIndex.web.js.map +1 -0
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +48 -0
- package/lib/module/index.web.js.map +1 -0
- package/lib/module/types/A11yGroup.types.js +2 -0
- package/lib/module/types/A11yGroup.types.js.map +1 -0
- package/lib/module/types/A11yIndex.types.js +2 -0
- package/lib/module/types/A11yIndex.types.js.map +1 -0
- package/lib/module/types/A11yModule.types.js +2 -0
- package/lib/module/types/A11yModule.types.js.map +1 -0
- package/lib/module/types/A11yOrder.types.js.map +1 -0
- package/lib/typescript/A11yModule/helper.d.ts +2 -6
- package/lib/typescript/A11yModule/helper.d.ts.map +1 -1
- package/lib/typescript/components/A11yGroup/A11yGroup.android.d.ts +2 -2
- package/lib/typescript/components/A11yGroup/A11yGroup.android.d.ts.map +1 -1
- package/lib/typescript/components/A11yGroup/A11yGroup.ios.d.ts +2 -2
- package/lib/typescript/components/A11yGroup/A11yGroup.ios.d.ts.map +1 -1
- package/lib/typescript/components/A11yIndex/A11yIndex.d.ts +2 -9
- package/lib/typescript/components/A11yIndex/A11yIndex.d.ts.map +1 -1
- package/lib/typescript/components/A11yIndex/A11yIndex.web.d.ts +7 -0
- package/lib/typescript/components/A11yIndex/A11yIndex.web.d.ts.map +1 -0
- package/lib/typescript/components/A11yOrder/A11yOrder.d.ts +1 -1
- package/lib/typescript/components/A11yOrder/A11yOrder.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +4 -4
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/index.web.d.ts +50 -0
- package/lib/typescript/index.web.d.ts.map +1 -0
- package/lib/typescript/types/A11yGroup.types.d.ts +4 -0
- package/lib/typescript/types/A11yGroup.types.d.ts.map +1 -0
- package/lib/typescript/types/A11yIndex.types.d.ts +10 -0
- package/lib/typescript/types/A11yIndex.types.d.ts.map +1 -0
- package/lib/typescript/types/A11yModule.types.d.ts +7 -0
- package/lib/typescript/types/A11yModule.types.d.ts.map +1 -0
- package/lib/typescript/types/A11yOrder.types.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/A11yModule/helper.ts +1 -7
- package/src/components/A11yGroup/A11yGroup.android.tsx +3 -2
- package/src/components/A11yGroup/A11yGroup.ios.tsx +2 -2
- package/src/components/A11yIndex/A11yIndex.tsx +2 -8
- package/src/components/A11yIndex/A11yIndex.web.tsx +24 -0
- package/src/components/A11yOrder/A11yOrder.tsx +1 -1
- package/src/index.ts +3 -3
- package/src/index.web.ts +53 -0
- package/src/types/A11yGroup.types.ts +3 -0
- package/src/types/A11yIndex.types.ts +8 -0
- package/src/types/A11yModule.types.ts +7 -0
- package/lib/commonjs/components/A11yOrder/A11yOrder.types.js.map +0 -1
- package/lib/commonjs/components/A11yOrder/index.js +0 -13
- package/lib/commonjs/components/A11yOrder/index.js.map +0 -1
- package/lib/commonjs/components/index.js +0 -13
- package/lib/commonjs/components/index.js.map +0 -1
- package/lib/module/components/A11yOrder/A11yOrder.types.js.map +0 -1
- package/lib/module/components/A11yOrder/index.js +0 -2
- package/lib/module/components/A11yOrder/index.js.map +0 -1
- package/lib/module/components/index.js +0 -2
- package/lib/module/components/index.js.map +0 -1
- package/lib/typescript/components/A11yOrder/A11yOrder.types.d.ts.map +0 -1
- package/lib/typescript/components/A11yOrder/index.d.ts +0 -3
- package/lib/typescript/components/A11yOrder/index.d.ts.map +0 -1
- package/lib/typescript/components/index.d.ts +0 -3
- package/lib/typescript/components/index.d.ts.map +0 -1
- package/src/components/A11yOrder/index.ts +0 -2
- package/src/components/index.ts +0 -2
- /package/lib/commonjs/{components/A11yOrder → types}/A11yOrder.types.js +0 -0
- /package/lib/module/{components/A11yOrder → types}/A11yOrder.types.js +0 -0
- /package/lib/typescript/{components/A11yOrder → types}/A11yOrder.types.d.ts +0 -0
- /package/src/{components/A11yOrder → types}/A11yOrder.types.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_module","setA11yElementsOrder","_ref","tag","views","targetView","findNodeHandle","current","tags","map","view","filter","Boolean","setA11yOrder","exports"],"sourceRoot":"../../../src","sources":["A11yModule/helper.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_module","setA11yElementsOrder","_ref","tag","views","targetView","findNodeHandle","current","tags","map","view","filter","Boolean","setA11yOrder","exports"],"sourceRoot":"../../../src","sources":["A11yModule/helper.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAGO,MAAME,oBAAoB,GAAGC,IAAA,IAGZ;EAAA,IAHwC;IAC9DC,GAAG;IACHC;EACgB,CAAC,GAAAF,IAAA;EACjB,IAAI,CAACC,GAAG,EAAE;EAEV,MAAME,UAAU,GAAG,IAAAC,2BAAc,EAACH,GAAG,CAACI,OAA0B,CAAC;EACjE,IAAI,CAACF,UAAU,EAAE;EAEjB,MAAMG,IAAI,GAAGJ,KAAK,CACfK,GAAG,CAAEC,IAAI,IAAK,IAAAJ,2BAAc,EAACI,IAAuB,CAAC,CAAC,CACtDC,MAAM,CAAED,IAAI,IAAKE,OAAO,CAACF,IAAI,CAAC,CAAa;EAE9CG,oBAAY,aAAZA,oBAAY,uBAAZ,IAAAA,oBAAY,EAAGL,IAAI,EAAEH,UAAU,CAAC;AAClC,CAAC;AAACS,OAAA,CAAAb,oBAAA,GAAAA,oBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","A11yGroup","props","id","useId","createElement","View","nativeID","exports"],"sourceRoot":"../../../../src","sources":["components/A11yGroup/A11yGroup.android.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAAoC,SAAAE,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAJ,wBAAAQ,GAAA,EAAAJ,WAAA,SAAAA,WA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AAAS,MAAA,YAAAH,QAAA,CAAAQ,KAAA,OAAAH,SAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","A11yGroup","props","id","useId","createElement","View","nativeID","exports"],"sourceRoot":"../../../../src","sources":["components/A11yGroup/A11yGroup.android.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAAoC,SAAAE,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAJ,wBAAAQ,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,CAAAK,GAAA,IAAAX,GAAA,CAAAW,GAAA,SAAAL,MAAA,CAAAJ,OAAA,GAAAF,GAAA,MAAAG,KAAA,IAAAA,KAAA,CAAAa,GAAA,CAAAhB,GAAA,EAAAM,MAAA,YAAAA,MAAA;AAAA,SAAAW,SAAA,IAAAA,QAAA,GAAAT,MAAA,CAAAU,MAAA,GAAAV,MAAA,CAAAU,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAV,GAAA,IAAAa,MAAA,QAAAhB,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAU,MAAA,EAAAb,GAAA,KAAAS,MAAA,CAAAT,GAAA,IAAAa,MAAA,CAAAb,GAAA,gBAAAS,MAAA,YAAAH,QAAA,CAAAQ,KAAA,OAAAH,SAAA;AAI7B,MAAMI,SAAS,GAAIC,KAAqB,IAAK;EAClD,MAAMC,EAAE,GAAG,IAAAC,YAAK,EAAC,CAAC;EAClB,oBAAOtC,MAAA,CAAAW,OAAA,CAAA4B,aAAA,CAACpC,YAAA,CAAAqC,IAAI,EAAAd,QAAA;IAACe,QAAQ,EAAEJ;EAAG,GAAKD,KAAK,CAAG,CAAC;AAC1C,CAAC;AAACM,OAAA,CAAAP,SAAA,GAAAA,SAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_A11yGroupNativeComponent","obj","__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,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAGpE,MAAMG,SAAS,GAAIC,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_A11yGroupNativeComponent","obj","__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,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAGpE,MAAMG,SAAS,GAAIC,KAAqB,iBAC7CR,MAAA,CAAAM,OAAA,CAAAG,aAAA,CAACN,yBAAA,CAAAG,OAAiB,EAAKE,KAAQ,CAChC;AAACE,OAAA,CAAAH,SAAA,GAAAA,SAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_A11ySequenceOrderContext","_A11yIndexNativeComponent","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","A11yIndex","React","memo","forwardRef","_ref","ref","children","index","props","orderKey","useContext","A11ySequenceOrderContext","Error","indexRef","useRef","useImperativeHandle","focus","current","Commands","isSingleChild","Children","count","createElement","orderIndex","View","nativeID","exports"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.tsx"],"mappings":";;;;;;A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AAA,YAAAA,MAAA;AAAA,SAAAW,SAAA,IAAAA,QAAA,GAAAT,MAAA,CAAAU,MAAA,GAAAV,MAAA,CAAAU,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAV,GAAA,IAAAa,MAAA,QAAAhB,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAU,MAAA,EAAAb,GAAA,KAAAS,MAAA,CAAAT,GAAA,IAAAa,MAAA,CAAAb,GAAA,gBAAAS,MAAA,YAAAH,QAAA,CAAAQ,KAAA,OAAAH,SAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_A11ySequenceOrderContext","_A11yIndexNativeComponent","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","A11yIndex","React","memo","forwardRef","_ref","ref","children","index","props","orderKey","useContext","A11ySequenceOrderContext","Error","indexRef","useRef","useImperativeHandle","focus","current","Commands","isSingleChild","Children","count","createElement","orderIndex","View","nativeID","exports"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,yBAAA,GAAAF,OAAA;AACA,IAAAG,yBAAA,GAAAJ,uBAAA,CAAAC,OAAA;AAEoD,SAAAI,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBA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AA,GAAAA,SAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.A11yIndex = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
10
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
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); }
|
|
12
|
+
const WebUiMeneger = _reactNative.UIManager;
|
|
13
|
+
const A11yIndex = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
14
|
+
const viewRef = (0, _react.useRef)(null);
|
|
15
|
+
(0, _react.useImperativeHandle)(ref, () => ({
|
|
16
|
+
focus: () => {
|
|
17
|
+
if (viewRef.current) {
|
|
18
|
+
WebUiMeneger.focus(viewRef.current);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}));
|
|
22
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({}, props, {
|
|
23
|
+
ref: viewRef
|
|
24
|
+
}));
|
|
25
|
+
});
|
|
26
|
+
exports.A11yIndex = A11yIndex;
|
|
27
|
+
//# sourceMappingURL=A11yIndex.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","WebUiMeneger","UIManager","A11yIndex","forwardRef","props","ref","viewRef","useRef","useImperativeHandle","focus","current","createElement","View","exports"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.web.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAGA,IAAAC,YAAA,GAAAD,OAAA;AAAyC,SAAAE,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAJ,wBAAAQ,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,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IAAAC,0BAAmB,EAACH,GAAG,EAAE,OAAO;IAC9BI,KAAK,EAAEA,CAAA,KAAM;MACX,IAAIH,OAAO,CAACI,OAAO,EAAE;QACnBV,YAAY,CAACS,KAAK,CAACH,OAAO,CAACI,OAAO,CAAC;MACrC;IACF;EACF,CAAC,CAAC,CAAC;EAEH,oBAAO7C,MAAA,CAAAW,OAAA,CAAAmC,aAAA,CAAC3C,YAAA,CAAA4C,IAAI,EAAArB,QAAA,KAAKa,KAAK;IAAEC,GAAG,EAAEC;EAAQ,EAAE,CAAC;AAC1C,CACF,CAAC;AAACO,OAAA,CAAAX,SAAA,GAAAA,SAAA"}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.A11y = void 0;
|
|
|
7
7
|
Object.defineProperty(exports, "A11yOrder", {
|
|
8
8
|
enumerable: true,
|
|
9
9
|
get: function () {
|
|
10
|
-
return
|
|
10
|
+
return _A11yOrder.A11yOrder;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "useA11yOrderManager", {
|
|
@@ -32,7 +32,7 @@ var _A11yIndex = require("./components/A11yIndex/A11yIndex");
|
|
|
32
32
|
var _A11ySequence = require("./components/A11ySequence/A11ySequence");
|
|
33
33
|
var _A11yGroup = require("./components/A11yGroup/A11yGroup");
|
|
34
34
|
var _hooks = require("./hooks");
|
|
35
|
-
var
|
|
35
|
+
var _A11yOrder = require("./components/A11yOrder/A11yOrder");
|
|
36
36
|
const A11y = {
|
|
37
37
|
Order: _A11ySequence.A11yIndexSequence,
|
|
38
38
|
Index: _A11yIndex.A11yIndex,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_A11yIndex","require","_A11ySequence","_A11yGroup","_hooks","
|
|
1
|
+
{"version":3,"names":["_A11yIndex","require","_A11ySequence","_A11yGroup","_hooks","_A11yOrder","A11y","Order","A11yIndexSequence","Index","A11yIndex","Group","A11yGroup","exports"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AAMA,IAAAI,UAAA,GAAAJ,OAAA;AAIO,MAAMK,IAAI,GAAG;EAClBC,KAAK,EAAEC,+BAAiB;EACxBC,KAAK,EAAEC,oBAAS;EAChBC,KAAK,EAAEC;AACT,CAAC;AAACC,OAAA,CAAAP,IAAA,GAAAA,IAAA"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFocusOrder = exports.useDynamicFocusOrder = exports.useA11yOrderManager = exports.A11yOrder = exports.A11y = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _A11yIndex = require("./components/A11yIndex/A11yIndex.web");
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated The method should not be used
|
|
12
|
+
* This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
|
|
13
|
+
*/
|
|
14
|
+
const useFocusOrder = () => ({
|
|
15
|
+
a11yOrder: {
|
|
16
|
+
ref: /*#__PURE__*/(0, _react.createRef)(),
|
|
17
|
+
onLayout: () => {}
|
|
18
|
+
},
|
|
19
|
+
refs: [],
|
|
20
|
+
reset: () => {},
|
|
21
|
+
setOrder: () => {}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated The method should not be used
|
|
26
|
+
* This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
|
|
27
|
+
*/
|
|
28
|
+
exports.useFocusOrder = useFocusOrder;
|
|
29
|
+
const useDynamicFocusOrder = () => ({
|
|
30
|
+
a11yOrder: {
|
|
31
|
+
ref: /*#__PURE__*/(0, _react.createRef)(),
|
|
32
|
+
onLayout: () => {}
|
|
33
|
+
},
|
|
34
|
+
registerOrder: () => _react.createRef,
|
|
35
|
+
reset: () => {},
|
|
36
|
+
setOrder: () => {}
|
|
37
|
+
});
|
|
38
|
+
exports.useDynamicFocusOrder = useDynamicFocusOrder;
|
|
39
|
+
const useA11yOrderManager = () => ({
|
|
40
|
+
registerOrderRef: () => () => {},
|
|
41
|
+
updateRefList: () => {},
|
|
42
|
+
reset: () => {},
|
|
43
|
+
setOrder: () => {}
|
|
44
|
+
});
|
|
45
|
+
exports.useA11yOrderManager = useA11yOrderManager;
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated The method should not be used
|
|
48
|
+
* This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
|
|
49
|
+
*/
|
|
50
|
+
const A11yOrder = _reactNative.View;
|
|
51
|
+
exports.A11yOrder = A11yOrder;
|
|
52
|
+
const A11y = {
|
|
53
|
+
Order: _reactNative.View,
|
|
54
|
+
Group: _reactNative.View,
|
|
55
|
+
Index: _A11yIndex.A11yIndex
|
|
56
|
+
};
|
|
57
|
+
exports.A11y = A11y;
|
|
58
|
+
//# sourceMappingURL=index.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_A11yIndex","useFocusOrder","a11yOrder","ref","createRef","onLayout","refs","reset","setOrder","exports","useDynamicFocusOrder","registerOrder","useA11yOrderManager","registerOrderRef","updateRefList","A11yOrder","View","A11y","Order","Group","Index","A11yIndex"],"sourceRoot":"../../src","sources":["index.web.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEA;AACA;AACA;AACA;AACO,MAAMG,aAAa,G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sourceRoot":"../../../src","sources":["types/A11yGroup.types.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/A11yIndex.types.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/A11yModule.types.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/A11yOrder.types.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["findNodeHandle","setA11yOrder","setA11yElementsOrder","_ref","tag","views","targetView","current","tags","map","view","filter","Boolean"],"sourceRoot":"../../../src","sources":["A11yModule/helper.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["findNodeHandle","setA11yOrder","setA11yElementsOrder","_ref","tag","views","targetView","current","tags","map","view","filter","Boolean"],"sourceRoot":"../../../src","sources":["A11yModule/helper.ts"],"mappings":"AAAA,SAASA,cAAc,QAAQ,cAAc;AAE7C,SAASC,YAAY,QAAQ,UAAU;AAGvC,OAAO,MAAMC,oBAAoB,GAAGC,IAAA,IAGZ;EAAA,IAHwC;IAC9DC,GAAG;IACHC;EACgB,CAAC,GAAAF,IAAA;EACjB,IAAI,CAACC,GAAG,EAAE;EAEV,MAAME,UAAU,GAAGN,cAAc,CAACI,GAAG,CAACG,OAA0B,CAAC;EACjE,IAAI,CAACD,UAAU,EAAE;EAEjB,MAAME,IAAI,GAAGH,KAAK,CACfI,GAAG,CAAEC,IAAI,IAAKV,cAAc,CAACU,IAAuB,CAAC,CAAC,CACtDC,MAAM,CAAED,IAAI,IAAKE,OAAO,CAACF,IAAI,CAAC,CAAa;EAE9CT,YAAY,aAAZA,YAAY,uBAAZA,YAAY,CAAGO,IAAI,EAAEF,UAAU,CAAC;AAClC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useId","View","A11yGroup","props","id","createElement","_extends","nativeID"],"sourceRoot":"../../../../src","sources":["components/A11yGroup/A11yGroup.android.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,KAAK,QAAQ,OAAO;AACpC,SAASC,IAAI,QAAQ,cAAc;
|
|
1
|
+
{"version":3,"names":["React","useId","View","A11yGroup","props","id","createElement","_extends","nativeID"],"sourceRoot":"../../../../src","sources":["components/A11yGroup/A11yGroup.android.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,KAAK,QAAQ,OAAO;AACpC,SAASC,IAAI,QAAQ,cAAc;AAInC,OAAO,MAAMC,SAAS,GAAIC,KAAqB,IAAK;EAClD,MAAMC,EAAE,GAAGJ,KAAK,CAAC,CAAC;EAClB,oBAAOD,KAAA,CAAAM,aAAA,CAACJ,IAAI,EAAAK,QAAA;IAACC,QAAQ,EAAEH;EAAG,GAAKD,KAAK,CAAG,CAAC;AAC1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","A11yDirectionView","A11yGroup","props","createElement"],"sourceRoot":"../../../../src","sources":["components/A11yGroup/A11yGroup.ios.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,iBAAiB,MAAM,4CAA4C;AAG1E,OAAO,MAAMC,SAAS,GAAIC,
|
|
1
|
+
{"version":3,"names":["React","A11yDirectionView","A11yGroup","props","createElement"],"sourceRoot":"../../../../src","sources":["components/A11yGroup/A11yGroup.ios.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,iBAAiB,MAAM,4CAA4C;AAG1E,OAAO,MAAMC,SAAS,GAAIC,KAAqB,iBAC7CH,KAAA,CAAAI,aAAA,CAACH,iBAAiB,EAAKE,KAAQ,CAChC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useImperativeHandle","useRef","View","A11ySequenceOrderContext","A11yIndexView","Commands","A11yIndex","memo","forwardRef","_ref","ref","children","index","props","orderKey","useContext","Error","indexRef","focus","current","isSingleChild","Children","count","createElement","_extends","orderIndex","nativeID"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,mBAAmB,EAAEC,MAAM,QAAQ,OAAO;AAC1D,SAASC,IAAI,
|
|
1
|
+
{"version":3,"names":["React","useImperativeHandle","useRef","View","A11ySequenceOrderContext","A11yIndexView","Commands","A11yIndex","memo","forwardRef","_ref","ref","children","index","props","orderKey","useContext","Error","indexRef","focus","current","isSingleChild","Children","count","createElement","_extends","orderIndex","nativeID"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,mBAAmB,EAAEC,MAAM,QAAQ,OAAO;AAC1D,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,wBAAwB,QAAQ,wCAAwC;AACjF,OAAOC,aAAa,IAClBC,QAAQ,QACH,4CAA4C;AAGnD,OAAO,MAAMC,SAAS,gBAAGP,KAAK,CAACQ,IAAI,eACjCR,KAAK,CAACS,UAAU,CACd,CAAAC,IAAA,EAAgCC,GAAG,KAAK;EAAA,IAAvC;IAAEC,QAAQ;IAAEC,KAAK;IAAE,GAAGC;EAAM,CAAC,GAAAJ,IAAA;EAC5B,MAAMK,QAAQ,GAAGf,KAAK,CAACgB,UAAU,CAACZ,wBAAwB,CAAC;EAC3D,IAAI,CAACW,QAAQ,EAAE;IACb,MAAM,IAAIE,KAAK,CACb,oEACF,CAAC;EACH;EAEA,MAAMC,QAAQ,GAAGhB,MAAM,CAAwC,IAAI,CAAC;EAEpED,mBAAmB,CAACU,GAAG,EAAE,OAAO;IAC9BQ,KAAK,EAAEA,CAAA,KAAM;MACX,IAAID,QAAQ,CAACE,OAAO,EAAE;QACpBd,QAAQ,CAACa,KAAK,CAACD,QAAQ,CAACE,OAAO,CAAC;MAClC;IACF;EACF,CAAC,CAAC,CAAC;EAEH,MAAMC,aAAa,GAAGrB,KAAK,CAACsB,QAAQ,CAACC,KAAK,CAACX,QAAQ,CAAC,KAAK,CAAC;EAE1D,oBACEZ,KAAA,CAAAwB,aAAA,CAACnB,aAAa,EAAAoB,QAAA;IACZd,GAAG,EAAEO,QAAS;IACdQ,UAAU,EAAEb,KAAM;IAClBE,QAAQ,EAAEA;EAAS,GACfD,KAAK,GAERO,aAAa,IAAIT,QAAQ,EACzB,CAACS,aAAa,iBAAIrB,KAAA,CAAAwB,aAAA,CAACrB,IAAI;IAACwB,QAAQ,EAAEZ;EAAS,GAAEH,QAAe,CAChD,CAAC;AAEpB,CACF,CACF,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { forwardRef, useImperativeHandle, useRef } from 'react';
|
|
4
|
+
import { UIManager } from 'react-native';
|
|
5
|
+
import { View } from 'react-native';
|
|
6
|
+
const WebUiMeneger = UIManager;
|
|
7
|
+
export const A11yIndex = /*#__PURE__*/forwardRef((props, ref) => {
|
|
8
|
+
const viewRef = useRef(null);
|
|
9
|
+
useImperativeHandle(ref, () => ({
|
|
10
|
+
focus: () => {
|
|
11
|
+
if (viewRef.current) {
|
|
12
|
+
WebUiMeneger.focus(viewRef.current);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}));
|
|
16
|
+
return /*#__PURE__*/React.createElement(View, _extends({}, props, {
|
|
17
|
+
ref: viewRef
|
|
18
|
+
}));
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=A11yIndex.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useImperativeHandle","useRef","UIManager","View","WebUiMeneger","A11yIndex","props","ref","viewRef","focus","current","createElement","_extends"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.web.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,mBAAmB,EAAEC,MAAM,QAAQ,OAAO;AAE/D,SAASC,SAAS,QAAQ,cAAc;AACxC,SAASC,IAAI,QAAQ,cAAc;AAEnC,MAAMC,YAAY,GAAGF,SAEpB;AAED,OAAO,MAAMG,SAAS,gBAAGN,UAAU,CACjC,CAACO,KAAK,EAAEC,GAAG,KAAK;EACd,MAAMC,OAAO,GAAGP,MAAM,CAAO,IAAI,CAAC;EAClCD,mBAAmB,CAACO,GAAG,EAAE,OAAO;IAC9BE,KAAK,EAAEA,CAAA,KAAM;MACX,IAAID,OAAO,CAACE,OAAO,EAAE;QACnBN,YAAY,CAACK,KAAK,CAACD,OAAO,CAACE,OAAO,CAAC;MACrC;IACF;EACF,CAAC,CAAC,CAAC;EAEH,oBAAOZ,KAAA,CAAAa,aAAA,CAACR,IAAI,EAAAS,QAAA,KAAKN,KAAK;IAAEC,GAAG,EAAEC;EAAQ,EAAE,CAAC;AAC1C,CACF,CAAC"}
|
package/lib/module/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { A11yIndex } from './components/A11yIndex/A11yIndex';
|
|
|
2
2
|
import { A11yIndexSequence } from './components/A11ySequence/A11ySequence';
|
|
3
3
|
import { A11yGroup } from './components/A11yGroup/A11yGroup';
|
|
4
4
|
export { useFocusOrder, useDynamicFocusOrder, useA11yOrderManager } from './hooks';
|
|
5
|
-
export { A11yOrder } from './components';
|
|
5
|
+
export { A11yOrder } from './components/A11yOrder/A11yOrder';
|
|
6
6
|
export const A11y = {
|
|
7
7
|
Order: A11yIndexSequence,
|
|
8
8
|
Index: A11yIndex,
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["A11yIndex","A11yIndexSequence","A11yGroup","useFocusOrder","useDynamicFocusOrder","useA11yOrderManager","A11yOrder","A11y","Order","Index","Group"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"AAAA,SAASA,SAAS,QAAQ,kCAAkC;AAC5D,SAASC,iBAAiB,QAAQ,wCAAwC;AAC1E,SAASC,SAAS,QAAQ,kCAAkC;AAE5D,SACEC,aAAa,EACbC,oBAAoB,EACpBC,mBAAmB,QACd,SAAS;AAEhB,SAASC,SAAS,QAAQ,
|
|
1
|
+
{"version":3,"names":["A11yIndex","A11yIndexSequence","A11yGroup","useFocusOrder","useDynamicFocusOrder","useA11yOrderManager","A11yOrder","A11y","Order","Index","Group"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"AAAA,SAASA,SAAS,QAAQ,kCAAkC;AAC5D,SAASC,iBAAiB,QAAQ,wCAAwC;AAC1E,SAASC,SAAS,QAAQ,kCAAkC;AAE5D,SACEC,aAAa,EACbC,oBAAoB,EACpBC,mBAAmB,QACd,SAAS;AAEhB,SAASC,SAAS,QAAQ,kCAAkC;AAI5D,OAAO,MAAMC,IAAI,GAAG;EAClBC,KAAK,EAAEP,iBAAiB;EACxBQ,KAAK,EAAET,SAAS;EAChBU,KAAK,EAAER;AACT,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { createRef } from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { A11yIndex } from './components/A11yIndex/A11yIndex.web';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated The method should not be used
|
|
7
|
+
* This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
|
|
8
|
+
*/
|
|
9
|
+
export const useFocusOrder = () => ({
|
|
10
|
+
a11yOrder: {
|
|
11
|
+
ref: /*#__PURE__*/createRef(),
|
|
12
|
+
onLayout: () => {}
|
|
13
|
+
},
|
|
14
|
+
refs: [],
|
|
15
|
+
reset: () => {},
|
|
16
|
+
setOrder: () => {}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated The method should not be used
|
|
21
|
+
* This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
|
|
22
|
+
*/
|
|
23
|
+
export const useDynamicFocusOrder = () => ({
|
|
24
|
+
a11yOrder: {
|
|
25
|
+
ref: /*#__PURE__*/createRef(),
|
|
26
|
+
onLayout: () => {}
|
|
27
|
+
},
|
|
28
|
+
registerOrder: () => createRef,
|
|
29
|
+
reset: () => {},
|
|
30
|
+
setOrder: () => {}
|
|
31
|
+
});
|
|
32
|
+
export const useA11yOrderManager = () => ({
|
|
33
|
+
registerOrderRef: () => () => {},
|
|
34
|
+
updateRefList: () => {},
|
|
35
|
+
reset: () => {},
|
|
36
|
+
setOrder: () => {}
|
|
37
|
+
});
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated The method should not be used
|
|
40
|
+
* This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
|
|
41
|
+
*/
|
|
42
|
+
export const A11yOrder = View;
|
|
43
|
+
export const A11y = {
|
|
44
|
+
Order: View,
|
|
45
|
+
Group: View,
|
|
46
|
+
Index: A11yIndex
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=index.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createRef","View","A11yIndex","useFocusOrder","a11yOrder","ref","onLayout","refs","reset","setOrder","useDynamicFocusOrder","registerOrder","useA11yOrderManager","registerOrderRef","updateRefList","A11yOrder","A11y","Order","Group","Index"],"sourceRoot":"../../src","sources":["index.web.ts"],"mappings":"AAAA,SAASA,SAAS,QAAQ,OAAO;AACjC,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,SAAS,QAAQ,sCAAsC;;AAEhE;AACA;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GAAGA,CAAA,MAAO;EAClCC,SAAS,EAAE;IACTC,GAAG,eAAEL,SAAS,CAAC,CAAC;IAChBM,QAAQ,EAAEA,CAAA,KAAM,CAAC;EACnB,CAAC;EACDC,IAAI,EAAE,EAAE;EACRC,KAAK,EAAEA,CAAA,KAAM,CAAC,CAAC;EACfC,QAAQ,EAAEA,CAAA,KAAM,CAAC;AACnB,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AACA,OAAO,MAAMC,oBAAoB,GAAGA,CAAA,MAAO;EACzCN,SAAS,EAAE;IACTC,GAAG,eAAEL,SAAS,CAAC,CAAC;IAChBM,QAAQ,EAAEA,CAAA,KAAM,CAAC;EACnB,CAAC;EACDK,aAAa,EAAEA,CAAA,KAAMX,SAAS;EAC9BQ,KAAK,EAAEA,CAAA,KAAM,CAAC,CAAC;EACfC,QAAQ,EAAEA,CAAA,KAAM,CAAC;AACnB,CAAC,CAAC;AAEF,OAAO,MAAMG,mBAAmB,GAAGA,CAAA,MAAO;EACxCC,gBAAgB,EAAEA,CAAA,KAAM,MAAM,CAAC,CAAC;EAChCC,aAAa,EAAEA,CAAA,KAAM,CAAC,CAAC;EACvBN,KAAK,EAAEA,CAAA,KAAM,CAAC,CAAC;EACfC,QAAQ,EAAEA,CAAA,KAAM,CAAC;AACnB,CAAC,CAAC;AAKF;AACA;AACA;AACA;AACA,OAAO,MAAMM,SAAS,GAAGd,IAAI;AAE7B,OAAO,MAAMe,IAAI,GAAG;EAClBC,KAAK,EAAEhB,IAAI;EACXiB,KAAK,EAAEjB,IAAI;EACXkB,KAAK,EAAEjB;AACT,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/A11yGroup.types.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/A11yIndex.types.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/A11yModule.types.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/A11yOrder.types.ts"],"mappings":""}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
export type A11yOrderInfo<T> = {
|
|
4
|
-
tag?: RefObject<View>;
|
|
5
|
-
views: (T | null)[];
|
|
6
|
-
};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { A11yOrderInfo } from '../types/A11yModule.types';
|
|
7
3
|
export declare const setA11yElementsOrder: <T extends import("react").Component<{}, {}, any>>({ tag, views, }: A11yOrderInfo<T>) => void;
|
|
8
4
|
//# sourceMappingURL=helper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../src/A11yModule/helper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../src/A11yModule/helper.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,eAAO,MAAM,oBAAoB,+FAchC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
export declare const A11yGroup: (props:
|
|
2
|
+
import { A11yGroupProps } from '../../types/A11yGroup.types';
|
|
3
|
+
export declare const A11yGroup: (props: A11yGroupProps) => React.JSX.Element;
|
|
4
4
|
//# sourceMappingURL=A11yGroup.android.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A11yGroup.android.d.ts","sourceRoot":"","sources":["../../../../src/components/A11yGroup/A11yGroup.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"A11yGroup.android.d.ts","sourceRoot":"","sources":["../../../../src/components/A11yGroup/A11yGroup.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgB,MAAM,OAAO,CAAC;AAGrC,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,eAAO,MAAM,SAAS,UAAW,cAAc,sBAG9C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
export declare const A11yGroup: (props:
|
|
2
|
+
import { A11yGroupProps } from '../../types/A11yGroup.types';
|
|
3
|
+
export declare const A11yGroup: (props: A11yGroupProps) => React.JSX.Element;
|
|
4
4
|
//# sourceMappingURL=A11yGroup.ios.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A11yGroup.ios.d.ts","sourceRoot":"","sources":["../../../../src/components/A11yGroup/A11yGroup.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,
|
|
1
|
+
{"version":3,"file":"A11yGroup.ios.d.ts","sourceRoot":"","sources":["../../../../src/components/A11yGroup/A11yGroup.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,eAAO,MAAM,SAAS,UAAW,cAAc,sBAE9C,CAAC"}
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export type IndexCommands = {
|
|
4
|
-
focus: () => void;
|
|
5
|
-
};
|
|
6
|
-
export type A11yIndexProps = {
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
index: number;
|
|
9
|
-
} & ViewProps;
|
|
2
|
+
import { IndexCommands } from '../../types/A11yIndex.types';
|
|
10
3
|
export declare const A11yIndex: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
|
|
11
4
|
children: React.ReactNode;
|
|
12
5
|
index: number;
|
|
13
|
-
} & ViewProps & React.RefAttributes<IndexCommands>>>;
|
|
6
|
+
} & import("react-native").ViewProps & React.RefAttributes<IndexCommands>>>;
|
|
14
7
|
//# sourceMappingURL=A11yIndex.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A11yIndex.d.ts","sourceRoot":"","sources":["../../../../src/components/A11yIndex/A11yIndex.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"A11yIndex.d.ts","sourceRoot":"","sources":["../../../../src/components/A11yIndex/A11yIndex.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAM3D,OAAO,EAAkB,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5E,eAAO,MAAM,SAAS;;;2EAmCrB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IndexCommands } from '../../types/A11yIndex.types';
|
|
3
|
+
export declare const A11yIndex: React.ForwardRefExoticComponent<{
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
index: number;
|
|
6
|
+
} & import("react-native").ViewProps & React.RefAttributes<IndexCommands>>;
|
|
7
|
+
//# sourceMappingURL=A11yIndex.web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A11yIndex.web.d.ts","sourceRoot":"","sources":["../../../../src/components/A11yIndex/A11yIndex.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAkB,MAAM,6BAA6B,CAAC;AAQ5E,eAAO,MAAM,SAAS;;;0EAarB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { A11yOrderProps } from '
|
|
2
|
+
import type { A11yOrderProps } from '../../types/A11yOrder.types';
|
|
3
3
|
/**
|
|
4
4
|
* @deprecated The method should not be used
|
|
5
5
|
* This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A11yOrder.d.ts","sourceRoot":"","sources":["../../../../src/components/A11yOrder/A11yOrder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAElD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"A11yOrder.d.ts","sourceRoot":"","sources":["../../../../src/components/A11yOrder/A11yOrder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAElD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAElE;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA6B9C,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export { useFocusOrder, useDynamicFocusOrder, useA11yOrderManager, } from './hooks';
|
|
3
|
-
export { A11yOrder } from './components';
|
|
4
|
-
export type { A11yOrderProps } from './
|
|
5
|
-
export type { IndexCommands } from './
|
|
3
|
+
export { A11yOrder } from './components/A11yOrder/A11yOrder';
|
|
4
|
+
export type { A11yOrderProps } from './types/A11yOrder.types';
|
|
5
|
+
export type { IndexCommands } from './types/A11yIndex.types';
|
|
6
6
|
export declare const A11y: {
|
|
7
7
|
Order: import("react").NamedExoticComponent<import("react-native").ViewProps>;
|
|
8
8
|
Index: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<{
|
|
9
9
|
children: import("react").ReactNode;
|
|
10
10
|
index: number;
|
|
11
|
-
} & import("react-native").ViewProps & import("react").RefAttributes<import("./
|
|
11
|
+
} & import("react-native").ViewProps & import("react").RefAttributes<import("./types/A11yIndex.types").IndexCommands>>>;
|
|
12
12
|
Group: typeof import("react-native").View;
|
|
13
13
|
};
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAIA,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAIA,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,YAAY,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,eAAO,MAAM,IAAI;;;;;;;CAIhB,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { createRef } from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated The method should not be used
|
|
5
|
+
* This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
|
|
6
|
+
*/
|
|
7
|
+
export declare const useFocusOrder: () => {
|
|
8
|
+
a11yOrder: {
|
|
9
|
+
ref: import("react").RefObject<unknown>;
|
|
10
|
+
onLayout: () => void;
|
|
11
|
+
};
|
|
12
|
+
refs: never[];
|
|
13
|
+
reset: () => void;
|
|
14
|
+
setOrder: () => void;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated The method should not be used
|
|
18
|
+
* This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
|
|
19
|
+
*/
|
|
20
|
+
export declare const useDynamicFocusOrder: () => {
|
|
21
|
+
a11yOrder: {
|
|
22
|
+
ref: import("react").RefObject<unknown>;
|
|
23
|
+
onLayout: () => void;
|
|
24
|
+
};
|
|
25
|
+
registerOrder: () => typeof createRef;
|
|
26
|
+
reset: () => void;
|
|
27
|
+
setOrder: () => void;
|
|
28
|
+
};
|
|
29
|
+
export declare const useA11yOrderManager: () => {
|
|
30
|
+
registerOrderRef: () => () => void;
|
|
31
|
+
updateRefList: () => void;
|
|
32
|
+
reset: () => void;
|
|
33
|
+
setOrder: () => void;
|
|
34
|
+
};
|
|
35
|
+
export type { A11yOrderProps } from './types/A11yOrder.types';
|
|
36
|
+
export type { IndexCommands } from './types/A11yIndex.types';
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated The method should not be used
|
|
39
|
+
* This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
|
|
40
|
+
*/
|
|
41
|
+
export declare const A11yOrder: typeof View;
|
|
42
|
+
export declare const A11y: {
|
|
43
|
+
Order: typeof View;
|
|
44
|
+
Group: typeof View;
|
|
45
|
+
Index: import("react").ForwardRefExoticComponent<{
|
|
46
|
+
children: import("react").ReactNode;
|
|
47
|
+
index: number;
|
|
48
|
+
} & import("react-native").ViewProps & import("react").RefAttributes<import("./types/A11yIndex.types").IndexCommands>>;
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=index.web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../src/index.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGpC;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;;;;CAQxB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;CAQ/B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;CAK9B,CAAC;AAEH,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,YAAY,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D;;;GAGG;AACH,eAAO,MAAM,SAAS,aAAO,CAAC;AAE9B,eAAO,MAAM,IAAI;;;;;;;CAIhB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A11yGroup.types.d.ts","sourceRoot":"","sources":["../../../src/types/A11yGroup.types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ViewProps } from 'react-native';
|
|
3
|
+
export type IndexCommands = {
|
|
4
|
+
focus: () => void;
|
|
5
|
+
};
|
|
6
|
+
export type A11yIndexProps = {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
index: number;
|
|
9
|
+
} & ViewProps;
|
|
10
|
+
//# sourceMappingURL=A11yIndex.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A11yIndex.types.d.ts","sourceRoot":"","sources":["../../../src/types/A11yIndex.types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,MAAM,aAAa,GAAG;IAAE,KAAK,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC;AAElD,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A11yModule.types.d.ts","sourceRoot":"","sources":["../../../src/types/A11yModule.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI;IAC7B,GAAG,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;IACtB,KAAK,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;CACrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A11yOrder.types.d.ts","sourceRoot":"","sources":["../../../src/types/A11yOrder.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE;QACT,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAC3B,QAAQ,EAAE,MAAM,IAAI,CAAC;KACtB,CAAC;IACF,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,SAAS,CAAC"}
|
package/package.json
CHANGED
package/src/A11yModule/helper.ts
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import type { RefObject } from 'react';
|
|
2
|
-
import type { View } from 'react-native';
|
|
3
1
|
import { findNodeHandle } from 'react-native';
|
|
4
2
|
|
|
5
3
|
import { setA11yOrder } from './module';
|
|
6
|
-
|
|
7
|
-
export type A11yOrderInfo<T> = {
|
|
8
|
-
tag?: RefObject<View>;
|
|
9
|
-
views: (T | null)[];
|
|
10
|
-
};
|
|
4
|
+
import { A11yOrderInfo } from '../types/A11yModule.types';
|
|
11
5
|
|
|
12
6
|
export const setA11yElementsOrder = <T extends React.Component>({
|
|
13
7
|
tag,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React, { useId } from 'react';
|
|
2
2
|
import { View } from 'react-native';
|
|
3
|
-
import type { ViewProps } from 'react-native';
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
import { A11yGroupProps } from '../../types/A11yGroup.types';
|
|
5
|
+
|
|
6
|
+
export const A11yGroup = (props: A11yGroupProps) => {
|
|
6
7
|
const id = useId();
|
|
7
8
|
return <View nativeID={id} {...props} />;
|
|
8
9
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import A11yDirectionView from '../../nativeSpecs/A11yGroupNativeComponent';
|
|
3
|
-
import
|
|
3
|
+
import { A11yGroupProps } from '../../types/A11yGroup.types';
|
|
4
4
|
|
|
5
|
-
export const A11yGroup = (props:
|
|
5
|
+
export const A11yGroup = (props: A11yGroupProps) => (
|
|
6
6
|
<A11yDirectionView {...props} />
|
|
7
7
|
);
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import React, { useImperativeHandle, useRef } from 'react';
|
|
2
|
-
import { View
|
|
2
|
+
import { View } from 'react-native';
|
|
3
3
|
import { A11ySequenceOrderContext } from '../../context/A11ySequenceOrderContext';
|
|
4
4
|
import A11yIndexView, {
|
|
5
5
|
Commands,
|
|
6
6
|
} from '../../nativeSpecs/A11yIndexNativeComponent';
|
|
7
|
-
|
|
8
|
-
export type IndexCommands = { focus: () => void };
|
|
9
|
-
|
|
10
|
-
export type A11yIndexProps = {
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
index: number;
|
|
13
|
-
} & ViewProps;
|
|
7
|
+
import { A11yIndexProps, IndexCommands } from '../../types/A11yIndex.types';
|
|
14
8
|
|
|
15
9
|
export const A11yIndex = React.memo(
|
|
16
10
|
React.forwardRef<IndexCommands, A11yIndexProps>(
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { forwardRef, useImperativeHandle, useRef } from 'react';
|
|
3
|
+
import { IndexCommands, A11yIndexProps } from '../../types/A11yIndex.types';
|
|
4
|
+
import { UIManager } from 'react-native';
|
|
5
|
+
import { View } from 'react-native';
|
|
6
|
+
|
|
7
|
+
const WebUiMeneger = UIManager as unknown as {
|
|
8
|
+
focus: (v: View) => void;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const A11yIndex = forwardRef<IndexCommands, A11yIndexProps>(
|
|
12
|
+
(props, ref) => {
|
|
13
|
+
const viewRef = useRef<View>(null);
|
|
14
|
+
useImperativeHandle(ref, () => ({
|
|
15
|
+
focus: () => {
|
|
16
|
+
if (viewRef.current) {
|
|
17
|
+
WebUiMeneger.focus(viewRef.current);
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
}));
|
|
21
|
+
|
|
22
|
+
return <View {...props} ref={viewRef} />;
|
|
23
|
+
}
|
|
24
|
+
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useId } from 'react';
|
|
2
2
|
import { View, LayoutChangeEvent } from 'react-native';
|
|
3
|
-
import type { A11yOrderProps } from '
|
|
3
|
+
import type { A11yOrderProps } from '../../types/A11yOrder.types';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated The method should not be used
|
package/src/index.ts
CHANGED
|
@@ -8,9 +8,9 @@ export {
|
|
|
8
8
|
useA11yOrderManager,
|
|
9
9
|
} from './hooks';
|
|
10
10
|
|
|
11
|
-
export { A11yOrder } from './components';
|
|
12
|
-
export type { A11yOrderProps } from './
|
|
13
|
-
export type { IndexCommands } from './
|
|
11
|
+
export { A11yOrder } from './components/A11yOrder/A11yOrder';
|
|
12
|
+
export type { A11yOrderProps } from './types/A11yOrder.types';
|
|
13
|
+
export type { IndexCommands } from './types/A11yIndex.types';
|
|
14
14
|
|
|
15
15
|
export const A11y = {
|
|
16
16
|
Order: A11yIndexSequence,
|
package/src/index.web.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { createRef } from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { A11yIndex } from './components/A11yIndex/A11yIndex.web';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated The method should not be used
|
|
7
|
+
* This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
|
|
8
|
+
*/
|
|
9
|
+
export const useFocusOrder = () => ({
|
|
10
|
+
a11yOrder: {
|
|
11
|
+
ref: createRef(),
|
|
12
|
+
onLayout: () => {},
|
|
13
|
+
},
|
|
14
|
+
refs: [],
|
|
15
|
+
reset: () => {},
|
|
16
|
+
setOrder: () => {},
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated The method should not be used
|
|
21
|
+
* This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
|
|
22
|
+
*/
|
|
23
|
+
export const useDynamicFocusOrder = () => ({
|
|
24
|
+
a11yOrder: {
|
|
25
|
+
ref: createRef(),
|
|
26
|
+
onLayout: () => {},
|
|
27
|
+
},
|
|
28
|
+
registerOrder: () => createRef,
|
|
29
|
+
reset: () => {},
|
|
30
|
+
setOrder: () => {},
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export const useA11yOrderManager = () => ({
|
|
34
|
+
registerOrderRef: () => () => {},
|
|
35
|
+
updateRefList: () => {},
|
|
36
|
+
reset: () => {},
|
|
37
|
+
setOrder: () => {},
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export type { A11yOrderProps } from './types/A11yOrder.types';
|
|
41
|
+
export type { IndexCommands } from './types/A11yIndex.types';
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated The method should not be used
|
|
45
|
+
* This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
|
|
46
|
+
*/
|
|
47
|
+
export const A11yOrder = View;
|
|
48
|
+
|
|
49
|
+
export const A11y = {
|
|
50
|
+
Order: View,
|
|
51
|
+
Group: View,
|
|
52
|
+
Index: A11yIndex,
|
|
53
|
+
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/A11yOrder/A11yOrder.types.ts"],"mappings":""}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "A11yOrder", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _A11yOrder.A11yOrder;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _A11yOrder = require("./A11yOrder");
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_A11yOrder","require"],"sourceRoot":"../../../../src","sources":["components/A11yOrder/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "A11yOrder", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _A11yOrder.A11yOrder;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _A11yOrder = require("./A11yOrder");
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_A11yOrder","require"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/A11yOrder/A11yOrder.types.ts"],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["A11yOrder"],"sourceRoot":"../../../../src","sources":["components/A11yOrder/index.ts"],"mappings":"AAAA,SAASA,SAAS,QAAQ,aAAa"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["A11yOrder"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":"AAAA,SAASA,SAAS,QAAQ,aAAa"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"A11yOrder.types.d.ts","sourceRoot":"","sources":["../../../../src/components/A11yOrder/A11yOrder.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE;QACT,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAC3B,QAAQ,EAAE,MAAM,IAAI,CAAC;KACtB,CAAC;IACF,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/A11yOrder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
package/src/components/index.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|