@fluentui-react-native/focus-zone 0.16.14 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +30 -0
- package/CHANGELOG.md +17 -1
- package/lib/FocusZone.d.ts +5 -0
- package/lib/FocusZone.d.ts.map +1 -1
- package/lib/FocusZone.js +6 -2
- package/lib/FocusZone.js.map +1 -1
- package/lib/FocusZoneNativeComponent.d.ts +19 -0
- package/lib/FocusZoneNativeComponent.d.ts.map +1 -0
- package/lib/FocusZoneNativeComponent.js +8 -0
- package/lib/FocusZoneNativeComponent.js.map +1 -0
- package/lib-commonjs/FocusZone.d.ts +5 -0
- package/lib-commonjs/FocusZone.d.ts.map +1 -1
- package/lib-commonjs/FocusZone.js +10 -3
- package/lib-commonjs/FocusZone.js.map +1 -1
- package/lib-commonjs/FocusZoneNativeComponent.d.ts +19 -0
- package/lib-commonjs/FocusZoneNativeComponent.d.ts.map +1 -0
- package/lib-commonjs/FocusZoneNativeComponent.js +13 -0
- package/lib-commonjs/FocusZoneNativeComponent.js.map +1 -0
- package/package.json +13 -13
- package/src/FocusZone.ts +7 -3
- package/src/FocusZoneNativeComponent.ts +22 -0
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/focus-zone",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"date": "Thu, 11 Apr 2024 18:02:34 GMT",
|
|
6
|
+
"version": "0.17.0",
|
|
7
|
+
"tag": "@fluentui-react-native/focus-zone_v0.17.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"author": "30809111+acoates-ms@users.noreply.github.com",
|
|
12
|
+
"package": "@fluentui-react-native/focus-zone",
|
|
13
|
+
"commit": "6164473627c321b03d301376c48227f4abd8e947",
|
|
14
|
+
"comment": "Update to RN 0.73"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Fri, 29 Mar 2024 18:07:00 GMT",
|
|
21
|
+
"version": "0.16.15",
|
|
22
|
+
"tag": "@fluentui-react-native/focus-zone_v0.16.15",
|
|
23
|
+
"comments": {
|
|
24
|
+
"patch": [
|
|
25
|
+
{
|
|
26
|
+
"author": "30809111+acoates-ms@users.noreply.github.com",
|
|
27
|
+
"package": "@fluentui-react-native/focus-zone",
|
|
28
|
+
"commit": "a722aa94799f4afee55baa03a5a754b0d4b2fdce",
|
|
29
|
+
"comment": "Use codegenNativeComponent so JS View configs can be generated for all native components"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
4
34
|
{
|
|
5
35
|
"date": "Fri, 15 Mar 2024 16:26:19 GMT",
|
|
6
36
|
"version": "0.16.13",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/focus-zone
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 11 Apr 2024 18:02:34 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.17.0
|
|
8
|
+
|
|
9
|
+
Thu, 11 Apr 2024 18:02:34 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- Update to RN 0.73 (30809111+acoates-ms@users.noreply.github.com)
|
|
14
|
+
|
|
15
|
+
## 0.16.15
|
|
16
|
+
|
|
17
|
+
Fri, 29 Mar 2024 18:07:00 GMT
|
|
18
|
+
|
|
19
|
+
### Patches
|
|
20
|
+
|
|
21
|
+
- Use codegenNativeComponent so JS View configs can be generated for all native components (30809111+acoates-ms@users.noreply.github.com)
|
|
22
|
+
|
|
7
23
|
## 0.16.13
|
|
8
24
|
|
|
9
25
|
Fri, 15 Mar 2024 16:26:19 GMT
|
package/lib/FocusZone.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
* @format
|
|
5
|
+
*/
|
|
1
6
|
import * as React from 'react';
|
|
2
7
|
import type { FocusZoneProps, FocusZoneSlotProps } from './FocusZone.types';
|
|
3
8
|
export declare const FocusZone: import("@uifabricshared/foundation-composable").IWithComposable<React.FunctionComponent<FocusZoneProps>, import("@uifabricshared/foundation-composable").IComposable<FocusZoneProps, FocusZoneSlotProps, import("./FocusZone.types").FocusZoneState>>;
|
package/lib/FocusZone.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusZone.d.ts","sourceRoot":"","sources":["../src/FocusZone.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FocusZone.d.ts","sourceRoot":"","sources":["../src/FocusZone.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAiB,MAAM,mBAAmB,CAAC;AAK3F,eAAO,MAAM,SAAS,uPA6BpB,CAAC"}
|
package/lib/FocusZone.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
* @format
|
|
5
|
+
*/
|
|
1
6
|
var __assign = (this && this.__assign) || function () {
|
|
2
7
|
__assign = Object.assign || function(t) {
|
|
3
8
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -22,11 +27,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
27
|
};
|
|
23
28
|
import * as React from 'react';
|
|
24
29
|
import { findNodeHandle } from 'react-native';
|
|
25
|
-
import { ensureNativeComponent } from '@fluentui-react-native/component-cache';
|
|
26
30
|
import { useViewCommandFocus } from '@fluentui-react-native/interactive-hooks';
|
|
27
31
|
import { composable } from '@uifabricshared/foundation-composable';
|
|
28
32
|
import { mergeSettings } from '@uifabricshared/foundation-settings';
|
|
29
|
-
|
|
33
|
+
import RCTFocusZone from './FocusZoneNativeComponent';
|
|
30
34
|
var filterOutComponentRef = function (propName) { return propName !== 'componentRef'; };
|
|
31
35
|
export var FocusZone = composable({
|
|
32
36
|
usePrepareProps: function (userProps, useStyling) {
|
package/lib/FocusZone.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusZone.js","sourceRoot":"","sources":["../src/FocusZone.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FocusZone.js","sourceRoot":"","sources":["../src/FocusZone.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAE/E,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAGpE,OAAO,YAAY,MAAM,4BAA4B,CAAC;AAEtD,IAAM,qBAAqB,GAAG,UAAC,QAAQ,IAAK,OAAA,QAAQ,KAAK,cAAc,EAA3B,CAA2B,CAAC;AAExE,MAAM,CAAC,IAAM,SAAS,GAAG,UAAU,CAAgB;IACjD,eAAe,EAAE,UAAC,SAAyB,EAAE,UAAsC;QACzE,IAAA,YAAY,GAA4D,SAAS,aAArE,EAAE,sBAAsB,GAAoC,SAAS,uBAA7C,EAAE,oBAAoB,GAAc,SAAS,qBAAvB,EAAK,IAAI,UAAK,SAAS,EAAnF,kEAAuE,CAAF,CAAe;QAE1F,IAAM,MAAM,GAAG,mBAAmB,CAAC,YAAY,CAAC,CAAC;QAE3C,IAAA,KAAwC,KAAK,CAAC,QAAQ,CAAS,SAAS,CAAC,EAAxE,eAAe,QAAA,EAAE,kBAAkB,QAAqC,CAAC;QAChF,KAAK,CAAC,eAAe,CAAC;YACpB,IAAI,sBAAsB,aAAtB,sBAAsB,uBAAtB,sBAAsB,CAAE,OAAO,EAAE;gBACnC,kBAAkB,CAAC,cAAc,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC;aACpE;iBAAM;gBACL,kBAAkB,CAAC,SAAS,CAAC,CAAC;aAC/B;QACH,CAAC,EAAE,CAAC,sBAAsB,CAAC,CAAC,CAAC;QAE7B,OAAO;YACL,SAAS,EAAE,aAAa,CAAqB,UAAU,CAAC,SAAS,CAAC,EAAE;gBAClE,IAAI,sBACF,aAAa,EAAE,oBAAoB,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,oBAAoB,IACxE,IAAI,KACP,sBAAsB,EAAE,eAAe,EACvC,GAAG,EAAE,MAAM,GACZ;aACF,CAAC;SACH,CAAC;IACJ,CAAC;IACD,KAAK,EAAE;QACL,IAAI,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,qBAAqB,EAAE;KAChE;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
* @format
|
|
5
|
+
*/
|
|
6
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
7
|
+
import type { Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
|
|
8
|
+
export interface NativeProps extends ViewProps {
|
|
9
|
+
navigateAtEnd?: WithDefault<'NavigateStopAtEnds' | 'NavigateWrap' | 'NavigateContinue', 'NavigateStopAtEnds'>;
|
|
10
|
+
defaultTabbableElement?: Int32;
|
|
11
|
+
focusZoneDirection?: WithDefault<'bidirectional' | 'vertical' | 'horizontal' | 'none', 'bidirectional'>;
|
|
12
|
+
use2DNavigation?: boolean;
|
|
13
|
+
tabKeyNavigation?: WithDefault<'None' | 'NavigateWrap' | 'NavigateStopAtEnds' | 'Normal', 'None'>;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
isTabNavigation?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const _default: HostComponent<NativeProps>;
|
|
18
|
+
export default _default;
|
|
19
|
+
//# sourceMappingURL=FocusZoneNativeComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FocusZoneNativeComponent.d.ts","sourceRoot":"","sources":["../src/FocusZoneNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAGpF,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,aAAa,CAAC,EAAE,WAAW,CAAC,oBAAoB,GAAG,cAAc,GAAG,kBAAkB,EAAE,oBAAoB,CAAC,CAAC;IAC9G,sBAAsB,CAAC,EAAE,KAAK,CAAC;IAC/B,kBAAkB,CAAC,EAAE,WAAW,CAAC,eAAe,GAAG,UAAU,GAAG,YAAY,GAAG,MAAM,EAAE,eAAe,CAAC,CAAC;IACxG,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,WAAW,CAAC,MAAM,GAAG,cAAc,GAAG,oBAAoB,GAAG,QAAQ,EAAE,MAAM,CAAC,CAAC;IAClG,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;;AAED,wBAAiG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
* @format
|
|
5
|
+
*/
|
|
6
|
+
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
7
|
+
export default codegenNativeComponent('RCTFocusZone');
|
|
8
|
+
//# sourceMappingURL=FocusZoneNativeComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FocusZoneNativeComponent.js","sourceRoot":"","sources":["../src/FocusZoneNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,sBAAsB,MAAM,yDAAyD,CAAC;AAY7F,eAAe,sBAAsB,CAAc,cAAc,CAA+B,CAAC"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
* @format
|
|
5
|
+
*/
|
|
1
6
|
import * as React from 'react';
|
|
2
7
|
import type { FocusZoneProps, FocusZoneSlotProps } from './FocusZone.types';
|
|
3
8
|
export declare const FocusZone: import("@uifabricshared/foundation-composable").IWithComposable<React.FunctionComponent<FocusZoneProps>, import("@uifabricshared/foundation-composable").IComposable<FocusZoneProps, FocusZoneSlotProps, import("./FocusZone.types").FocusZoneState>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusZone.d.ts","sourceRoot":"","sources":["../src/FocusZone.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FocusZone.d.ts","sourceRoot":"","sources":["../src/FocusZone.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAiB,MAAM,mBAAmB,CAAC;AAK3F,eAAO,MAAM,SAAS,uPA6BpB,CAAC"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
* @format
|
|
6
|
+
*/
|
|
2
7
|
var __assign = (this && this.__assign) || function () {
|
|
3
8
|
__assign = Object.assign || function(t) {
|
|
4
9
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -44,15 +49,17 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
44
49
|
}
|
|
45
50
|
return t;
|
|
46
51
|
};
|
|
52
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
53
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
54
|
+
};
|
|
47
55
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
56
|
exports.FocusZone = void 0;
|
|
49
57
|
var React = __importStar(require("react"));
|
|
50
58
|
var react_native_1 = require("react-native");
|
|
51
|
-
var component_cache_1 = require("@fluentui-react-native/component-cache");
|
|
52
59
|
var interactive_hooks_1 = require("@fluentui-react-native/interactive-hooks");
|
|
53
60
|
var foundation_composable_1 = require("@uifabricshared/foundation-composable");
|
|
54
61
|
var foundation_settings_1 = require("@uifabricshared/foundation-settings");
|
|
55
|
-
var
|
|
62
|
+
var FocusZoneNativeComponent_1 = __importDefault(require("./FocusZoneNativeComponent"));
|
|
56
63
|
var filterOutComponentRef = function (propName) { return propName !== 'componentRef'; };
|
|
57
64
|
exports.FocusZone = (0, foundation_composable_1.composable)({
|
|
58
65
|
usePrepareProps: function (userProps, useStyling) {
|
|
@@ -74,7 +81,7 @@ exports.FocusZone = (0, foundation_composable_1.composable)({
|
|
|
74
81
|
};
|
|
75
82
|
},
|
|
76
83
|
slots: {
|
|
77
|
-
root: { slotType:
|
|
84
|
+
root: { slotType: FocusZoneNativeComponent_1.default, filter: filterOutComponentRef },
|
|
78
85
|
},
|
|
79
86
|
});
|
|
80
87
|
//# sourceMappingURL=FocusZone.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusZone.js","sourceRoot":"","sources":["../src/FocusZone.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FocusZone.js","sourceRoot":"","sources":["../src/FocusZone.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,2CAA+B;AAC/B,6CAA8C;AAE9C,8EAA+E;AAE/E,+EAAmE;AACnE,2EAAoE;AAGpE,wFAAsD;AAEtD,IAAM,qBAAqB,GAAG,UAAC,QAAQ,IAAK,OAAA,QAAQ,KAAK,cAAc,EAA3B,CAA2B,CAAC;AAE3D,QAAA,SAAS,GAAG,IAAA,kCAAU,EAAgB;IACjD,eAAe,EAAE,UAAC,SAAyB,EAAE,UAAsC;QACzE,IAAA,YAAY,GAA4D,SAAS,aAArE,EAAE,sBAAsB,GAAoC,SAAS,uBAA7C,EAAE,oBAAoB,GAAc,SAAS,qBAAvB,EAAK,IAAI,UAAK,SAAS,EAAnF,kEAAuE,CAAF,CAAe;QAE1F,IAAM,MAAM,GAAG,IAAA,uCAAmB,EAAC,YAAY,CAAC,CAAC;QAE3C,IAAA,KAAwC,KAAK,CAAC,QAAQ,CAAS,SAAS,CAAC,EAAxE,eAAe,QAAA,EAAE,kBAAkB,QAAqC,CAAC;QAChF,KAAK,CAAC,eAAe,CAAC;YACpB,IAAI,sBAAsB,aAAtB,sBAAsB,uBAAtB,sBAAsB,CAAE,OAAO,EAAE;gBACnC,kBAAkB,CAAC,IAAA,6BAAc,EAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC;aACpE;iBAAM;gBACL,kBAAkB,CAAC,SAAS,CAAC,CAAC;aAC/B;QACH,CAAC,EAAE,CAAC,sBAAsB,CAAC,CAAC,CAAC;QAE7B,OAAO;YACL,SAAS,EAAE,IAAA,mCAAa,EAAqB,UAAU,CAAC,SAAS,CAAC,EAAE;gBAClE,IAAI,sBACF,aAAa,EAAE,oBAAoB,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,oBAAoB,IACxE,IAAI,KACP,sBAAsB,EAAE,eAAe,EACvC,GAAG,EAAE,MAAM,GACZ;aACF,CAAC;SACH,CAAC;IACJ,CAAC;IACD,KAAK,EAAE;QACL,IAAI,EAAE,EAAE,QAAQ,EAAE,kCAAY,EAAE,MAAM,EAAE,qBAAqB,EAAE;KAChE;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
* @format
|
|
5
|
+
*/
|
|
6
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
7
|
+
import type { Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
|
|
8
|
+
export interface NativeProps extends ViewProps {
|
|
9
|
+
navigateAtEnd?: WithDefault<'NavigateStopAtEnds' | 'NavigateWrap' | 'NavigateContinue', 'NavigateStopAtEnds'>;
|
|
10
|
+
defaultTabbableElement?: Int32;
|
|
11
|
+
focusZoneDirection?: WithDefault<'bidirectional' | 'vertical' | 'horizontal' | 'none', 'bidirectional'>;
|
|
12
|
+
use2DNavigation?: boolean;
|
|
13
|
+
tabKeyNavigation?: WithDefault<'None' | 'NavigateWrap' | 'NavigateStopAtEnds' | 'Normal', 'None'>;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
isTabNavigation?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const _default: HostComponent<NativeProps>;
|
|
18
|
+
export default _default;
|
|
19
|
+
//# sourceMappingURL=FocusZoneNativeComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FocusZoneNativeComponent.d.ts","sourceRoot":"","sources":["../src/FocusZoneNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAGpF,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,aAAa,CAAC,EAAE,WAAW,CAAC,oBAAoB,GAAG,cAAc,GAAG,kBAAkB,EAAE,oBAAoB,CAAC,CAAC;IAC9G,sBAAsB,CAAC,EAAE,KAAK,CAAC;IAC/B,kBAAkB,CAAC,EAAE,WAAW,CAAC,eAAe,GAAG,UAAU,GAAG,YAAY,GAAG,MAAM,EAAE,eAAe,CAAC,CAAC;IACxG,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,WAAW,CAAC,MAAM,GAAG,cAAc,GAAG,oBAAoB,GAAG,QAAQ,EAAE,MAAM,CAAC,CAAC;IAClG,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;;AAED,wBAAiG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
* @format
|
|
6
|
+
*/
|
|
7
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
var codegenNativeComponent_1 = __importDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
|
|
12
|
+
exports.default = (0, codegenNativeComponent_1.default)('RCTFocusZone');
|
|
13
|
+
//# sourceMappingURL=FocusZoneNativeComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FocusZoneNativeComponent.js","sourceRoot":"","sources":["../src/FocusZoneNativeComponent.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;AAKH,mHAA6F;AAY7F,kBAAe,IAAA,gCAAsB,EAAc,cAAc,CAA+B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/focus-zone",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "A cross-platform FocusZone component using the Fluent Design System",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -22,25 +22,25 @@
|
|
|
22
22
|
"directory": "packages/components/FocusZone"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@fluentui-react-native/
|
|
26
|
-
"@
|
|
27
|
-
"@uifabricshared/foundation-
|
|
28
|
-
"@uifabricshared/foundation-settings": "0.14.1"
|
|
25
|
+
"@fluentui-react-native/interactive-hooks": "0.27.0",
|
|
26
|
+
"@uifabricshared/foundation-composable": "0.13.0",
|
|
27
|
+
"@uifabricshared/foundation-settings": "0.15.0"
|
|
29
28
|
},
|
|
30
29
|
"devDependencies": {
|
|
31
30
|
"@fluentui-react-native/eslint-config-rules": "0.1.1",
|
|
32
31
|
"@fluentui-react-native/scripts": "0.1.1",
|
|
33
|
-
"@office-iss/react-native-win32": "^0.
|
|
34
|
-
"@react-native/
|
|
32
|
+
"@office-iss/react-native-win32": "^0.73.0",
|
|
33
|
+
"@react-native/babel-preset": "^0.73.0",
|
|
34
|
+
"@react-native/metro-config": "^0.73.0",
|
|
35
35
|
"react": "18.2.0",
|
|
36
|
-
"react-native": "^0.
|
|
36
|
+
"react-native": "^0.73.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@office-iss/react-native-win32": "^0.
|
|
39
|
+
"@office-iss/react-native-win32": "^0.73.0",
|
|
40
40
|
"react": "18.2.0",
|
|
41
|
-
"react-native": "^0.
|
|
42
|
-
"react-native-macos": "^0.
|
|
43
|
-
"react-native-windows": "^0.
|
|
41
|
+
"react-native": "^0.73.0",
|
|
42
|
+
"react-native-macos": "^0.73.0",
|
|
43
|
+
"react-native-windows": "^0.73.0"
|
|
44
44
|
},
|
|
45
45
|
"author": "",
|
|
46
46
|
"license": "MIT",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"microsoft/react-native"
|
|
52
52
|
],
|
|
53
53
|
"requirements": [
|
|
54
|
-
"react-native@0.
|
|
54
|
+
"react-native@0.73"
|
|
55
55
|
],
|
|
56
56
|
"capabilities": [
|
|
57
57
|
"core",
|
package/src/FocusZone.ts
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
* @format
|
|
5
|
+
*/
|
|
6
|
+
|
|
1
7
|
import * as React from 'react';
|
|
2
8
|
import { findNodeHandle } from 'react-native';
|
|
3
9
|
|
|
4
|
-
import { ensureNativeComponent } from '@fluentui-react-native/component-cache';
|
|
5
10
|
import { useViewCommandFocus } from '@fluentui-react-native/interactive-hooks';
|
|
6
11
|
import type { IUseStyling } from '@uifabricshared/foundation-composable';
|
|
7
12
|
import { composable } from '@uifabricshared/foundation-composable';
|
|
8
13
|
import { mergeSettings } from '@uifabricshared/foundation-settings';
|
|
9
14
|
|
|
10
15
|
import type { FocusZoneProps, FocusZoneSlotProps, FocusZoneType } from './FocusZone.types';
|
|
11
|
-
|
|
12
|
-
const RCTFocusZone = ensureNativeComponent('RCTFocusZone');
|
|
16
|
+
import RCTFocusZone from './FocusZoneNativeComponent';
|
|
13
17
|
|
|
14
18
|
const filterOutComponentRef = (propName) => propName !== 'componentRef';
|
|
15
19
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
* @format
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
8
|
+
|
|
9
|
+
import type { Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
|
|
10
|
+
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
11
|
+
|
|
12
|
+
export interface NativeProps extends ViewProps {
|
|
13
|
+
navigateAtEnd?: WithDefault<'NavigateStopAtEnds' | 'NavigateWrap' | 'NavigateContinue', 'NavigateStopAtEnds'>;
|
|
14
|
+
defaultTabbableElement?: Int32;
|
|
15
|
+
focusZoneDirection?: WithDefault<'bidirectional' | 'vertical' | 'horizontal' | 'none', 'bidirectional'>;
|
|
16
|
+
use2DNavigation?: boolean;
|
|
17
|
+
tabKeyNavigation?: WithDefault<'None' | 'NavigateWrap' | 'NavigateStopAtEnds' | 'Normal', 'None'>;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
isTabNavigation?: boolean;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export default codegenNativeComponent<NativeProps>('RCTFocusZone') as HostComponent<NativeProps>;
|