@fluentui/react-tabster 9.0.0-alpha.72 → 9.0.0-nightly.25435def33.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 CHANGED
@@ -2,7 +2,127 @@
2
2
  "name": "@fluentui/react-tabster",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 05 Oct 2021 09:26:55 GMT",
5
+ "date": "Thu, 21 Oct 2021 09:18:06 GMT",
6
+ "tag": "@fluentui/react-tabster_v9.0.0-nightly.25435def33.0",
7
+ "version": "9.0.0-nightly.25435def33.0",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "email not defined",
12
+ "package": "@fluentui/react-tabster",
13
+ "comment": "Release nightly v9",
14
+ "commit": "fb58116bf4cb0469b316999385bdbc960b02d2a3"
15
+ },
16
+ {
17
+ "author": "peter@draxler.ml",
18
+ "package": "@fluentui/react-tabster",
19
+ "comment": "added styling of documentation",
20
+ "commit": "fb58116bf4cb0469b316999385bdbc960b02d2a3"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-tabster",
25
+ "comment": "Bump @fluentui/make-styles to v9.0.0-nightly.25435def33.0",
26
+ "commit": "fb58116bf4cb0469b316999385bdbc960b02d2a3"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-tabster",
31
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-nightly.25435def33.0",
32
+ "commit": "fb58116bf4cb0469b316999385bdbc960b02d2a3"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-tabster",
37
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-nightly.25435def33.0",
38
+ "commit": "fb58116bf4cb0469b316999385bdbc960b02d2a3"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-tabster",
43
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-nightly.25435def33.0",
44
+ "commit": "fb58116bf4cb0469b316999385bdbc960b02d2a3"
45
+ }
46
+ ]
47
+ }
48
+ },
49
+ {
50
+ "date": "Tue, 12 Oct 2021 19:45:58 GMT",
51
+ "tag": "@fluentui/react-tabster_v9.0.0-beta.2",
52
+ "version": "9.0.0-beta.2",
53
+ "comments": {
54
+ "prerelease": [
55
+ {
56
+ "author": "andredias@microsoft.com",
57
+ "package": "@fluentui/react-tabster",
58
+ "comment": "Add useFocusableGroup hook",
59
+ "commit": "bdd19e2bb827fc1d8eb329e6ed48cd0542048358"
60
+ }
61
+ ]
62
+ }
63
+ },
64
+ {
65
+ "date": "Wed, 06 Oct 2021 10:37:22 GMT",
66
+ "tag": "@fluentui/react-tabster_v9.0.0-beta.1",
67
+ "version": "9.0.0-beta.1",
68
+ "comments": {
69
+ "prerelease": [
70
+ {
71
+ "author": "lingfangao@hotmail.com",
72
+ "package": "@fluentui/react-tabster",
73
+ "comment": "Bump all v9 components to beta prerelease tag",
74
+ "commit": "5553164c190a4beb4780745d0e6403109e057913"
75
+ },
76
+ {
77
+ "author": "beachball",
78
+ "package": "@fluentui/react-tabster",
79
+ "comment": "Bump @fluentui/make-styles to v9.0.0-beta.1",
80
+ "commit": "5553164c190a4beb4780745d0e6403109e057913"
81
+ },
82
+ {
83
+ "author": "beachball",
84
+ "package": "@fluentui/react-tabster",
85
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.1",
86
+ "commit": "5553164c190a4beb4780745d0e6403109e057913"
87
+ },
88
+ {
89
+ "author": "beachball",
90
+ "package": "@fluentui/react-tabster",
91
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.1",
92
+ "commit": "5553164c190a4beb4780745d0e6403109e057913"
93
+ },
94
+ {
95
+ "author": "beachball",
96
+ "package": "@fluentui/react-tabster",
97
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.1",
98
+ "commit": "5553164c190a4beb4780745d0e6403109e057913"
99
+ }
100
+ ]
101
+ }
102
+ },
103
+ {
104
+ "date": "Tue, 05 Oct 2021 12:47:58 GMT",
105
+ "tag": "@fluentui/react-tabster_v9.0.0-alpha.73",
106
+ "version": "9.0.0-alpha.73",
107
+ "comments": {
108
+ "prerelease": [
109
+ {
110
+ "author": "beachball",
111
+ "package": "@fluentui/react-tabster",
112
+ "comment": "Bump @fluentui/make-styles to v9.0.0-alpha.35",
113
+ "commit": "c41b8f8996acd5b970d894fc910cc4d661f8e3cb"
114
+ },
115
+ {
116
+ "author": "beachball",
117
+ "package": "@fluentui/react-tabster",
118
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-alpha.78",
119
+ "commit": "c41b8f8996acd5b970d894fc910cc4d661f8e3cb"
120
+ }
121
+ ]
122
+ }
123
+ },
124
+ {
125
+ "date": "Tue, 05 Oct 2021 09:28:07 GMT",
6
126
  "tag": "@fluentui/react-tabster_v9.0.0-alpha.72",
7
127
  "version": "9.0.0-alpha.72",
8
128
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,58 @@
1
1
  # Change Log - @fluentui/react-tabster
2
2
 
3
- This log was last generated on Tue, 05 Oct 2021 09:26:55 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 21 Oct 2021 09:18:06 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.0-nightly.25435def33.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabster_v9.0.0-nightly.25435def33.0)
8
+
9
+ Thu, 21 Oct 2021 09:18:06 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabster_v9.0.0-beta.2..@fluentui/react-tabster_v9.0.0-nightly.25435def33.0)
11
+
12
+ ### Changes
13
+
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/fb58116bf4cb0469b316999385bdbc960b02d2a3) by email not defined)
15
+ - added styling of documentation ([commit](https://github.com/microsoft/fluentui/commit/fb58116bf4cb0469b316999385bdbc960b02d2a3) by peter@draxler.ml)
16
+ - Bump @fluentui/make-styles to v9.0.0-nightly.25435def33.0 ([commit](https://github.com/microsoft/fluentui/commit/fb58116bf4cb0469b316999385bdbc960b02d2a3) by beachball)
17
+ - Bump @fluentui/react-make-styles to v9.0.0-nightly.25435def33.0 ([commit](https://github.com/microsoft/fluentui/commit/fb58116bf4cb0469b316999385bdbc960b02d2a3) by beachball)
18
+ - Bump @fluentui/react-shared-contexts to v9.0.0-nightly.25435def33.0 ([commit](https://github.com/microsoft/fluentui/commit/fb58116bf4cb0469b316999385bdbc960b02d2a3) by beachball)
19
+ - Bump @fluentui/react-utilities to v9.0.0-nightly.25435def33.0 ([commit](https://github.com/microsoft/fluentui/commit/fb58116bf4cb0469b316999385bdbc960b02d2a3) by beachball)
20
+
21
+ ## [9.0.0-beta.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabster_v9.0.0-beta.2)
22
+
23
+ Tue, 12 Oct 2021 19:45:58 GMT
24
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabster_v9.0.0-beta.1..@fluentui/react-tabster_v9.0.0-beta.2)
25
+
26
+ ### Changes
27
+
28
+ - Add useFocusableGroup hook ([PR #20132](https://github.com/microsoft/fluentui/pull/20132) by andredias@microsoft.com)
29
+
30
+ ## [9.0.0-beta.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabster_v9.0.0-beta.1)
31
+
32
+ Wed, 06 Oct 2021 10:37:22 GMT
33
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabster_v9.0.0-alpha.73..@fluentui/react-tabster_v9.0.0-beta.1)
34
+
35
+ ### Changes
36
+
37
+ - Bump all v9 components to beta prerelease tag ([PR #20106](https://github.com/microsoft/fluentui/pull/20106) by lingfangao@hotmail.com)
38
+ - Bump @fluentui/make-styles to v9.0.0-beta.1 ([PR #20106](https://github.com/microsoft/fluentui/pull/20106) by beachball)
39
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.1 ([PR #20106](https://github.com/microsoft/fluentui/pull/20106) by beachball)
40
+ - Bump @fluentui/react-shared-contexts to v9.0.0-beta.1 ([PR #20106](https://github.com/microsoft/fluentui/pull/20106) by beachball)
41
+ - Bump @fluentui/react-utilities to v9.0.0-beta.1 ([PR #20106](https://github.com/microsoft/fluentui/pull/20106) by beachball)
42
+
43
+ ## [9.0.0-alpha.73](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabster_v9.0.0-alpha.73)
44
+
45
+ Tue, 05 Oct 2021 12:47:58 GMT
46
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabster_v9.0.0-alpha.72..@fluentui/react-tabster_v9.0.0-alpha.73)
47
+
48
+ ### Changes
49
+
50
+ - Bump @fluentui/make-styles to v9.0.0-alpha.35 ([PR #20108](https://github.com/microsoft/fluentui/pull/20108) by beachball)
51
+ - Bump @fluentui/react-make-styles to v9.0.0-alpha.78 ([PR #20108](https://github.com/microsoft/fluentui/pull/20108) by beachball)
52
+
7
53
  ## [9.0.0-alpha.72](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabster_v9.0.0-alpha.72)
8
54
 
9
- Tue, 05 Oct 2021 09:26:55 GMT
55
+ Tue, 05 Oct 2021 09:28:07 GMT
10
56
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabster_v9.0.0-alpha.71..@fluentui/react-tabster_v9.0.0-alpha.72)
11
57
 
12
58
  ### Changes
@@ -28,6 +28,21 @@ export declare const createFocusOutlineStyle: (theme: Theme, options?: {
28
28
  style: Partial<FocusOutlineStyleOptions>;
29
29
  } & CreateFocusIndicatorStyleRuleOptions) => MakeStyles;
30
30
 
31
+ export declare enum FocusableGroupTabBehavior {
32
+ /**
33
+ * Tab will cycle into and out of the groupper content.
34
+ */
35
+ Unlimited,
36
+ /**
37
+ * Tab will cycle out of the container, but not into it.
38
+ */
39
+ Limited,
40
+ /**
41
+ * Tab only cycles the inner elements.
42
+ */
43
+ LimitedTrapFocus
44
+ }
45
+
31
46
  export declare type FocusOutlineOffset = Record<'top' | 'bottom' | 'left' | 'right', string>;
32
47
 
33
48
  export declare type FocusOutlineStyleOptions = {
@@ -64,6 +79,19 @@ export declare interface UseArrowNavigationGroupOptions {
64
79
  memorizeCurrent?: boolean;
65
80
  }
66
81
 
82
+ /**
83
+ * A hook that returns the necessary tabster attributes to support groupping.
84
+ * @param options - Options to configure keyboard navigation
85
+ */
86
+ export declare const useFocusableGroup: (options?: UseFocusableGroupOptions | undefined) => Types.TabsterDOMAttribute;
87
+
88
+ export declare interface UseFocusableGroupOptions {
89
+ /**
90
+ * Type of TAB key interaction.
91
+ */
92
+ tabBehavior?: FocusableGroupTabBehavior;
93
+ }
94
+
67
95
  /**
68
96
  * Returns a set of helper functions that will traverse focusable elements in the context of a root DOM element
69
97
  */
@@ -4,3 +4,4 @@ export * from './useModalAttributes';
4
4
  export * from './useTabsterAttributes';
5
5
  export * from './useFocusIndicatorStyle';
6
6
  export * from './useKeyboardNavAttribute';
7
+ export * from './useFocusableGroup';
@@ -4,4 +4,5 @@ export * from './useModalAttributes';
4
4
  export * from './useTabsterAttributes';
5
5
  export * from './useFocusIndicatorStyle';
6
6
  export * from './useKeyboardNavAttribute';
7
+ export * from './useFocusableGroup';
7
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { Types } from 'tabster';
2
+ export declare enum FocusableGroupTabBehavior {
3
+ /**
4
+ * Tab will cycle into and out of the groupper content.
5
+ */
6
+ Unlimited,
7
+ /**
8
+ * Tab will cycle out of the container, but not into it.
9
+ */
10
+ Limited,
11
+ /**
12
+ * Tab only cycles the inner elements.
13
+ */
14
+ LimitedTrapFocus
15
+ }
16
+ export interface UseFocusableGroupOptions {
17
+ /**
18
+ * Type of TAB key interaction.
19
+ */
20
+ tabBehavior?: FocusableGroupTabBehavior;
21
+ }
22
+ /**
23
+ * A hook that returns the necessary tabster attributes to support groupping.
24
+ * @param options - Options to configure keyboard navigation
25
+ */
26
+ export declare const useFocusableGroup: (options?: UseFocusableGroupOptions | undefined) => Types.TabsterDOMAttribute;
@@ -0,0 +1,41 @@
1
+ import { Types, getGroupper } from 'tabster';
2
+ import { useTabsterAttributes } from './useTabsterAttributes';
3
+ import { useTabster } from './useTabster';
4
+ export var FocusableGroupTabBehavior;
5
+
6
+ (function (FocusableGroupTabBehavior) {
7
+ /**
8
+ * Tab will cycle into and out of the groupper content.
9
+ */
10
+ FocusableGroupTabBehavior[FocusableGroupTabBehavior["Unlimited"] = Types.GroupperTabbabilities.Unlimited] = "Unlimited";
11
+ /**
12
+ * Tab will cycle out of the container, but not into it.
13
+ */
14
+
15
+ FocusableGroupTabBehavior[FocusableGroupTabBehavior["Limited"] = Types.GroupperTabbabilities.Limited] = "Limited";
16
+ /**
17
+ * Tab only cycles the inner elements.
18
+ */
19
+
20
+ FocusableGroupTabBehavior[FocusableGroupTabBehavior["LimitedTrapFocus"] = Types.GroupperTabbabilities.LimitedTrapFocus] = "LimitedTrapFocus";
21
+ })(FocusableGroupTabBehavior || (FocusableGroupTabBehavior = {}));
22
+ /**
23
+ * A hook that returns the necessary tabster attributes to support groupping.
24
+ * @param options - Options to configure keyboard navigation
25
+ */
26
+
27
+
28
+ export var useFocusableGroup = function (options) {
29
+ var tabster = useTabster();
30
+
31
+ if (tabster) {
32
+ getGroupper(tabster);
33
+ }
34
+
35
+ return useTabsterAttributes({
36
+ groupper: {
37
+ tabbability: options === null || options === void 0 ? void 0 : options.tabBehavior
38
+ }
39
+ });
40
+ };
41
+ //# sourceMappingURL=useFocusableGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/hooks/useFocusableGroup.ts"],"names":[],"mappings":"AAAA,SAAS,KAAT,EAAgB,WAAhB,QAAmC,SAAnC;AACA,SAAS,oBAAT,QAAqC,wBAArC;AACA,SAAS,UAAT,QAA2B,cAA3B;AAEA,OAAA,IAAY,yBAAZ;;AAAA,CAAA,UAAY,yBAAZ,EAAqC;AACnC;;AAEG;AACH,EAAA,yBAAA,CAAA,yBAAA,CAAA,WAAA,CAAA,GAAY,KAAK,CAAC,qBAAN,CAA4B,SAAxC,CAAA,GAAiD,WAAjD;AACA;;AAEG;;AACH,EAAA,yBAAA,CAAA,yBAAA,CAAA,SAAA,CAAA,GAAU,KAAK,CAAC,qBAAN,CAA4B,OAAtC,CAAA,GAA6C,SAA7C;AACA;;AAEG;;AACH,EAAA,yBAAA,CAAA,yBAAA,CAAA,kBAAA,CAAA,GAAmB,KAAK,CAAC,qBAAN,CAA4B,gBAA/C,CAAA,GAA+D,kBAA/D;AACD,CAbD,EAAY,yBAAyB,KAAzB,yBAAyB,GAAA,EAAA,CAArC;AAsBA;;;AAGG;;;AACH,OAAO,IAAM,iBAAiB,GAAG,UAAC,OAAD,EAAmC;AAClE,MAAM,OAAO,GAAG,UAAU,EAA1B;;AAEA,MAAI,OAAJ,EAAa;AACX,IAAA,WAAW,CAAC,OAAD,CAAX;AACD;;AAED,SAAO,oBAAoB,CAAC;AAC1B,IAAA,QAAQ,EAAE;AACR,MAAA,WAAW,EAAE,OAAO,KAAA,IAAP,IAAA,OAAO,KAAA,KAAA,CAAP,GAAO,KAAA,CAAP,GAAA,OAAO,CAAE;AADd;AADgB,GAAD,CAA3B;AAKD,CAZM","sourceRoot":""}
@@ -4,3 +4,4 @@ export * from './useModalAttributes';
4
4
  export * from './useTabsterAttributes';
5
5
  export * from './useFocusIndicatorStyle';
6
6
  export * from './useKeyboardNavAttribute';
7
+ export * from './useFocusableGroup';
@@ -17,4 +17,6 @@ tslib_1.__exportStar(require("./useTabsterAttributes"), exports);
17
17
  tslib_1.__exportStar(require("./useFocusIndicatorStyle"), exports);
18
18
 
19
19
  tslib_1.__exportStar(require("./useKeyboardNavAttribute"), exports);
20
+
21
+ tslib_1.__exportStar(require("./useFocusableGroup"), exports);
20
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/hooks/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,2BAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,mBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,sBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,wBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,0BAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,2BAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/hooks/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,2BAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,mBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,sBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,wBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,0BAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,2BAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,qBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -0,0 +1,26 @@
1
+ import { Types } from 'tabster';
2
+ export declare enum FocusableGroupTabBehavior {
3
+ /**
4
+ * Tab will cycle into and out of the groupper content.
5
+ */
6
+ Unlimited,
7
+ /**
8
+ * Tab will cycle out of the container, but not into it.
9
+ */
10
+ Limited,
11
+ /**
12
+ * Tab only cycles the inner elements.
13
+ */
14
+ LimitedTrapFocus
15
+ }
16
+ export interface UseFocusableGroupOptions {
17
+ /**
18
+ * Type of TAB key interaction.
19
+ */
20
+ tabBehavior?: FocusableGroupTabBehavior;
21
+ }
22
+ /**
23
+ * A hook that returns the necessary tabster attributes to support groupping.
24
+ * @param options - Options to configure keyboard navigation
25
+ */
26
+ export declare const useFocusableGroup: (options?: UseFocusableGroupOptions | undefined) => Types.TabsterDOMAttribute;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useFocusableGroup = exports.FocusableGroupTabBehavior = void 0;
7
+
8
+ var tabster_1 = /*#__PURE__*/require("tabster");
9
+
10
+ var useTabsterAttributes_1 = /*#__PURE__*/require("./useTabsterAttributes");
11
+
12
+ var useTabster_1 = /*#__PURE__*/require("./useTabster");
13
+
14
+ var FocusableGroupTabBehavior;
15
+
16
+ (function (FocusableGroupTabBehavior) {
17
+ /**
18
+ * Tab will cycle into and out of the groupper content.
19
+ */
20
+ FocusableGroupTabBehavior[FocusableGroupTabBehavior["Unlimited"] = tabster_1.Types.GroupperTabbabilities.Unlimited] = "Unlimited";
21
+ /**
22
+ * Tab will cycle out of the container, but not into it.
23
+ */
24
+
25
+ FocusableGroupTabBehavior[FocusableGroupTabBehavior["Limited"] = tabster_1.Types.GroupperTabbabilities.Limited] = "Limited";
26
+ /**
27
+ * Tab only cycles the inner elements.
28
+ */
29
+
30
+ FocusableGroupTabBehavior[FocusableGroupTabBehavior["LimitedTrapFocus"] = tabster_1.Types.GroupperTabbabilities.LimitedTrapFocus] = "LimitedTrapFocus";
31
+ })(FocusableGroupTabBehavior = exports.FocusableGroupTabBehavior || (exports.FocusableGroupTabBehavior = {}));
32
+ /**
33
+ * A hook that returns the necessary tabster attributes to support groupping.
34
+ * @param options - Options to configure keyboard navigation
35
+ */
36
+
37
+
38
+ var useFocusableGroup = function (options) {
39
+ var tabster = useTabster_1.useTabster();
40
+
41
+ if (tabster) {
42
+ tabster_1.getGroupper(tabster);
43
+ }
44
+
45
+ return useTabsterAttributes_1.useTabsterAttributes({
46
+ groupper: {
47
+ tabbability: options === null || options === void 0 ? void 0 : options.tabBehavior
48
+ }
49
+ });
50
+ };
51
+
52
+ exports.useFocusableGroup = useFocusableGroup;
53
+ //# sourceMappingURL=useFocusableGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/hooks/useFocusableGroup.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,SAAA,gBAAA,OAAA,CAAA,SAAA,CAAA;;AACA,IAAA,sBAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AACA,IAAA,YAAA,gBAAA,OAAA,CAAA,cAAA,CAAA;;AAEA,IAAY,yBAAZ;;AAAA,CAAA,UAAY,yBAAZ,EAAqC;AACnC;;AAEG;AACH,EAAA,yBAAA,CAAA,yBAAA,CAAA,WAAA,CAAA,GAAY,SAAA,CAAA,KAAA,CAAM,qBAAN,CAA4B,SAAxC,CAAA,GAAiD,WAAjD;AACA;;AAEG;;AACH,EAAA,yBAAA,CAAA,yBAAA,CAAA,SAAA,CAAA,GAAU,SAAA,CAAA,KAAA,CAAM,qBAAN,CAA4B,OAAtC,CAAA,GAA6C,SAA7C;AACA;;AAEG;;AACH,EAAA,yBAAA,CAAA,yBAAA,CAAA,kBAAA,CAAA,GAAmB,SAAA,CAAA,KAAA,CAAM,qBAAN,CAA4B,gBAA/C,CAAA,GAA+D,kBAA/D;AACD,CAbD,EAAY,yBAAyB,GAAzB,OAAA,CAAA,yBAAA,KAAA,OAAA,CAAA,yBAAA,GAAyB,EAAzB,CAAZ;AAsBA;;;AAGG;;;AACI,IAAM,iBAAiB,GAAG,UAAC,OAAD,EAAmC;AAClE,MAAM,OAAO,GAAG,YAAA,CAAA,UAAA,EAAhB;;AAEA,MAAI,OAAJ,EAAa;AACX,IAAA,SAAA,CAAA,WAAA,CAAY,OAAZ;AACD;;AAED,SAAO,sBAAA,CAAA,oBAAA,CAAqB;AAC1B,IAAA,QAAQ,EAAE;AACR,MAAA,WAAW,EAAE,OAAO,KAAA,IAAP,IAAA,OAAO,KAAA,KAAA,CAAP,GAAO,KAAA,CAAP,GAAA,OAAO,CAAE;AADd;AADgB,GAArB,CAAP;AAKD,CAZM;;AAAM,OAAA,CAAA,iBAAA,GAAiB,iBAAjB","sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-tabster",
3
- "version": "9.0.0-alpha.72",
3
+ "version": "9.0.0-nightly.25435def33.0",
4
4
  "description": "Utilities for focus management and facade for tabster",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -34,10 +34,10 @@
34
34
  "react-test-renderer": "^16.3.0"
35
35
  },
36
36
  "dependencies": {
37
- "@fluentui/make-styles": "9.0.0-alpha.34",
38
- "@fluentui/react-make-styles": "9.0.0-alpha.77",
39
- "@fluentui/react-shared-contexts": "9.0.0-alpha.28",
40
- "@fluentui/react-utilities": "9.0.0-alpha.56",
37
+ "@fluentui/make-styles": "9.0.0-nightly.25435def33.0",
38
+ "@fluentui/react-make-styles": "9.0.0-nightly.25435def33.0",
39
+ "@fluentui/react-shared-contexts": "9.0.0-nightly.25435def33.0",
40
+ "@fluentui/react-utilities": "9.0.0-nightly.25435def33.0",
41
41
  "keyborg": "^1.0.0",
42
42
  "tabster": "^1.0.0",
43
43
  "tslib": "^2.1.0"
@@ -49,7 +49,7 @@
49
49
  "react-dom": ">=16.8.0 <18.0.0"
50
50
  },
51
51
  "beachball": {
52
- "tag": "alpha",
52
+ "tag": "beta",
53
53
  "disallowedChangeTypes": [
54
54
  "major",
55
55
  "minor",