@fluentui/react-tabster 0.0.0-nightly-20230317-1454.1 → 0.0.0-nightly-20230321-0440.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/CHANGELOG.json +9 -9
- package/CHANGELOG.md +7 -7
- package/lib/focus/constants.js +4 -4
- package/lib/focus/constants.js.map +1 -1
- package/lib/focus/createCustomFocusIndicatorStyle.js +7 -7
- package/lib/focus/createCustomFocusIndicatorStyle.js.map +1 -1
- package/lib/focus/createFocusOutlineStyle.js +15 -14
- package/lib/focus/createFocusOutlineStyle.js.map +1 -1
- package/lib/focus/focusVisiblePolyfill.js +7 -7
- package/lib/focus/focusVisiblePolyfill.js.map +1 -1
- package/lib/focus/focusWithinPolyfill.js +6 -6
- package/lib/focus/focusWithinPolyfill.js.map +1 -1
- package/lib/focus/index.js +4 -4
- package/lib/focus/index.js.map +1 -1
- package/lib/hooks/index.js +8 -8
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/useArrowNavigationGroup.js +8 -8
- package/lib/hooks/useArrowNavigationGroup.js.map +1 -1
- package/lib/hooks/useFocusFinders.js +7 -7
- package/lib/hooks/useFocusFinders.js.map +1 -1
- package/lib/hooks/useFocusVisible.js +6 -5
- package/lib/hooks/useFocusVisible.js.map +1 -1
- package/lib/hooks/useFocusWithin.js +4 -4
- package/lib/hooks/useFocusWithin.js.map +1 -1
- package/lib/hooks/useFocusableGroup.js +7 -7
- package/lib/hooks/useFocusableGroup.js.map +1 -1
- package/lib/hooks/useKeyboardNavAttribute.js +5 -5
- package/lib/hooks/useKeyboardNavAttribute.js.map +1 -1
- package/lib/hooks/useModalAttributes.js +5 -5
- package/lib/hooks/useModalAttributes.js.map +1 -1
- package/lib/hooks/useTabster.js +5 -5
- package/lib/hooks/useTabster.js.map +1 -1
- package/lib/hooks/useTabsterAttributes.js +2 -2
- package/lib/hooks/useTabsterAttributes.js.map +1 -1
- package/lib/index.js +3 -3
- package/lib/index.js.map +1 -1
- package/lib-commonjs/focus/constants.js +17 -23
- package/lib-commonjs/focus/constants.js.map +1 -1
- package/lib-commonjs/focus/createCustomFocusIndicatorStyle.js +31 -23
- package/lib-commonjs/focus/createCustomFocusIndicatorStyle.js.map +1 -1
- package/lib-commonjs/focus/createFocusOutlineStyle.js +57 -42
- package/lib-commonjs/focus/createFocusOutlineStyle.js.map +1 -1
- package/lib-commonjs/focus/focusVisiblePolyfill.js +68 -65
- package/lib-commonjs/focus/focusVisiblePolyfill.js.map +1 -1
- package/lib-commonjs/focus/focusWithinPolyfill.js +47 -44
- package/lib-commonjs/focus/focusWithinPolyfill.js.map +1 -1
- package/lib-commonjs/focus/index.js +7 -8
- package/lib-commonjs/focus/index.js.map +1 -1
- package/lib-commonjs/hooks/index.js +11 -12
- package/lib-commonjs/hooks/index.js.map +1 -1
- package/lib-commonjs/hooks/useArrowNavigationGroup.js +51 -42
- package/lib-commonjs/hooks/useArrowNavigationGroup.js.map +1 -1
- package/lib-commonjs/hooks/useFocusFinders.js +58 -64
- package/lib-commonjs/hooks/useFocusFinders.js.map +1 -1
- package/lib-commonjs/hooks/useFocusVisible.js +18 -23
- package/lib-commonjs/hooks/useFocusVisible.js.map +1 -1
- package/lib-commonjs/hooks/useFocusWithin.js +23 -22
- package/lib-commonjs/hooks/useFocusWithin.js.map +1 -1
- package/lib-commonjs/hooks/useFocusableGroup.js +32 -30
- package/lib-commonjs/hooks/useFocusableGroup.js.map +1 -1
- package/lib-commonjs/hooks/useKeyboardNavAttribute.js +38 -37
- package/lib-commonjs/hooks/useKeyboardNavAttribute.js.map +1 -1
- package/lib-commonjs/hooks/useModalAttributes.js +44 -35
- package/lib-commonjs/hooks/useModalAttributes.js.map +1 -1
- package/lib-commonjs/hooks/useTabster.js +38 -36
- package/lib-commonjs/hooks/useTabster.js.map +1 -1
- package/lib-commonjs/hooks/useTabsterAttributes.js +16 -14
- package/lib-commonjs/hooks/useTabsterAttributes.js.map +1 -1
- package/lib-commonjs/index.js +73 -25
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +7 -6
- package/.swcrc +0 -39
@@ -1,68 +1,62 @@
|
|
1
1
|
"use strict";
|
2
|
+
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
3
|
-
|
4
|
-
});
|
5
|
-
Object.defineProperty(exports, "useFocusFinders", {
|
6
|
-
enumerable: true,
|
7
|
-
get: ()=>useFocusFinders
|
4
|
+
value: true
|
8
5
|
});
|
9
|
-
|
10
|
-
const
|
11
|
-
const
|
12
|
-
const
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
}
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
};
|
66
|
-
}; //# sourceMappingURL=useFocusFinders.js.map
|
67
|
-
|
6
|
+
exports.useFocusFinders = void 0;
|
7
|
+
const React = /*#__PURE__*/require("react");
|
8
|
+
const react_shared_contexts_1 = /*#__PURE__*/require("@fluentui/react-shared-contexts");
|
9
|
+
const useTabster_1 = /*#__PURE__*/require("./useTabster");
|
10
|
+
/**
|
11
|
+
* Returns a set of helper functions that will traverse focusable elements in the context of a root DOM element
|
12
|
+
*/
|
13
|
+
const useFocusFinders = () => {
|
14
|
+
const tabster = useTabster_1.useTabster();
|
15
|
+
const {
|
16
|
+
targetDocument
|
17
|
+
} = react_shared_contexts_1.useFluent_unstable();
|
18
|
+
// Narrow props for now and let need dictate additional props in the future
|
19
|
+
const findAllFocusable = React.useCallback((container, acceptCondition) => (tabster === null || tabster === void 0 ? void 0 : tabster.focusable.findAll({
|
20
|
+
container,
|
21
|
+
acceptCondition
|
22
|
+
})) || [], [tabster]);
|
23
|
+
const findFirstFocusable = React.useCallback(container => tabster === null || tabster === void 0 ? void 0 : tabster.focusable.findFirst({
|
24
|
+
container
|
25
|
+
}), [tabster]);
|
26
|
+
const findLastFocusable = React.useCallback(container => tabster === null || tabster === void 0 ? void 0 : tabster.focusable.findLast({
|
27
|
+
container
|
28
|
+
}), [tabster]);
|
29
|
+
const findNextFocusable = React.useCallback((currentElement, options = {}) => {
|
30
|
+
if (!tabster || !targetDocument) {
|
31
|
+
return null;
|
32
|
+
}
|
33
|
+
const {
|
34
|
+
container = targetDocument.body
|
35
|
+
} = options;
|
36
|
+
return tabster.focusable.findNext({
|
37
|
+
currentElement,
|
38
|
+
container
|
39
|
+
});
|
40
|
+
}, [tabster, targetDocument]);
|
41
|
+
const findPrevFocusable = React.useCallback((currentElement, options = {}) => {
|
42
|
+
if (!tabster || !targetDocument) {
|
43
|
+
return null;
|
44
|
+
}
|
45
|
+
const {
|
46
|
+
container = targetDocument.body
|
47
|
+
} = options;
|
48
|
+
return tabster.focusable.findPrev({
|
49
|
+
currentElement,
|
50
|
+
container
|
51
|
+
});
|
52
|
+
}, [tabster, targetDocument]);
|
53
|
+
return {
|
54
|
+
findAllFocusable,
|
55
|
+
findFirstFocusable,
|
56
|
+
findLastFocusable,
|
57
|
+
findNextFocusable,
|
58
|
+
findPrevFocusable
|
59
|
+
};
|
60
|
+
};
|
61
|
+
exports.useFocusFinders = useFocusFinders;
|
68
62
|
//# sourceMappingURL=useFocusFinders.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"names":["React","require","react_shared_contexts_1","useTabster_1","useFocusFinders","tabster","useTabster","targetDocument","useFluent_unstable","findAllFocusable","useCallback","container","acceptCondition","focusable","findAll","findFirstFocusable","findFirst","findLastFocusable","findLast","findNextFocusable","currentElement","options","body","findNext","findPrevFocusable","findPrev","exports"],"sources":["../../../../../../../../packages/react-components/react-tabster/src/hooks/useFocusFinders.ts"],"sourcesContent":["import * as React from 'react';\nimport { Types as TabsterTypes } from 'tabster';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\nimport { useTabster } from './useTabster';\n\n/**\n * Returns a set of helper functions that will traverse focusable elements in the context of a root DOM element\n */\nexport const useFocusFinders = () => {\n const tabster = useTabster();\n const { targetDocument } = useFluent();\n\n // Narrow props for now and let need dictate additional props in the future\n const findAllFocusable = React.useCallback(\n (container: HTMLElement, acceptCondition?: (el: HTMLElement) => boolean) =>\n tabster?.focusable.findAll({ container, acceptCondition }) || [],\n [tabster],\n );\n\n const findFirstFocusable = React.useCallback(\n (container: HTMLElement) => tabster?.focusable.findFirst({ container }),\n [tabster],\n );\n\n const findLastFocusable = React.useCallback(\n (container: HTMLElement) => tabster?.focusable.findLast({ container }),\n [tabster],\n );\n\n const findNextFocusable = React.useCallback(\n (currentElement: HTMLElement, options: Pick<Partial<TabsterTypes.FindNextProps>, 'container'> = {}) => {\n if (!tabster || !targetDocument) {\n return null;\n }\n\n const { container = targetDocument.body } = options;\n\n return tabster.focusable.findNext({ currentElement, container });\n },\n [tabster, targetDocument],\n );\n\n const findPrevFocusable = React.useCallback(\n (currentElement: HTMLElement, options: Pick<Partial<TabsterTypes.FindNextProps>, 'container'> = {}) => {\n if (!tabster || !targetDocument) {\n return null;\n }\n\n const { container = targetDocument.body } = options;\n\n return tabster.focusable.findPrev({ currentElement, container });\n },\n [tabster, targetDocument],\n );\n\n return {\n findAllFocusable,\n findFirstFocusable,\n findLastFocusable,\n findNextFocusable,\n findPrevFocusable,\n };\n};\n"],"mappings":";;;;;;AAAA,MAAAA,KAAA,gBAAAC,OAAA;AAEA,MAAAC,uBAAA,gBAAAD,OAAA;AACA,MAAAE,YAAA,gBAAAF,OAAA;AAEA;;;AAGO,MAAMG,eAAe,GAAGA,CAAA,KAAK;EAClC,MAAMC,OAAO,GAAGF,YAAA,CAAAG,UAAU,EAAE;EAC5B,MAAM;IAAEC;EAAc,CAAE,GAAGL,uBAAA,CAAAM,kBAAS,EAAE;EAEtC;EACA,MAAMC,gBAAgB,GAAGT,KAAK,CAACU,WAAW,CACxC,CAACC,SAAsB,EAAEC,eAA8C,KACrE,CAAAP,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEQ,SAAS,CAACC,OAAO,CAAC;IAAEH,SAAS;IAAEC;EAAe,CAAE,CAAC,KAAI,EAAE,EAClE,CAACP,OAAO,CAAC,CACV;EAED,MAAMU,kBAAkB,GAAGf,KAAK,CAACU,WAAW,CACzCC,SAAsB,IAAKN,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEQ,SAAS,CAACG,SAAS,CAAC;IAAEL;EAAS,CAAE,CAAC,EACvE,CAACN,OAAO,CAAC,CACV;EAED,MAAMY,iBAAiB,GAAGjB,KAAK,CAACU,WAAW,CACxCC,SAAsB,IAAKN,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEQ,SAAS,CAACK,QAAQ,CAAC;IAAEP;EAAS,CAAE,CAAC,EACtE,CAACN,OAAO,CAAC,CACV;EAED,MAAMc,iBAAiB,GAAGnB,KAAK,CAACU,WAAW,CACzC,CAACU,cAA2B,EAAEC,OAAA,GAAkE,EAAE,KAAI;IACpG,IAAI,CAAChB,OAAO,IAAI,CAACE,cAAc,EAAE;MAC/B,OAAO,IAAI;;IAGb,MAAM;MAAEI,SAAS,GAAGJ,cAAc,CAACe;IAAI,CAAE,GAAGD,OAAO;IAEnD,OAAOhB,OAAO,CAACQ,SAAS,CAACU,QAAQ,CAAC;MAAEH,cAAc;MAAET;IAAS,CAAE,CAAC;EAClE,CAAC,EACD,CAACN,OAAO,EAAEE,cAAc,CAAC,CAC1B;EAED,MAAMiB,iBAAiB,GAAGxB,KAAK,CAACU,WAAW,CACzC,CAACU,cAA2B,EAAEC,OAAA,GAAkE,EAAE,KAAI;IACpG,IAAI,CAAChB,OAAO,IAAI,CAACE,cAAc,EAAE;MAC/B,OAAO,IAAI;;IAGb,MAAM;MAAEI,SAAS,GAAGJ,cAAc,CAACe;IAAI,CAAE,GAAGD,OAAO;IAEnD,OAAOhB,OAAO,CAACQ,SAAS,CAACY,QAAQ,CAAC;MAAEL,cAAc;MAAET;IAAS,CAAE,CAAC;EAClE,CAAC,EACD,CAACN,OAAO,EAAEE,cAAc,CAAC,CAC1B;EAED,OAAO;IACLE,gBAAgB;IAChBM,kBAAkB;IAClBE,iBAAiB;IACjBE,iBAAiB;IACjBK;GACD;AACH,CAAC;AAtDYE,OAAA,CAAAtB,eAAe,GAAAA,eAAA"}
|
@@ -1,28 +1,23 @@
|
|
1
1
|
"use strict";
|
2
|
+
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
3
|
-
|
4
|
-
});
|
5
|
-
Object.defineProperty(exports, "useFocusVisible", {
|
6
|
-
enumerable: true,
|
7
|
-
get: ()=>useFocusVisible
|
4
|
+
value: true
|
8
5
|
});
|
9
|
-
|
10
|
-
const
|
11
|
-
const
|
12
|
-
const
|
6
|
+
exports.useFocusVisible = void 0;
|
7
|
+
const React = /*#__PURE__*/require("react");
|
8
|
+
const react_shared_contexts_1 = /*#__PURE__*/require("@fluentui/react-shared-contexts");
|
9
|
+
const focusVisiblePolyfill_1 = /*#__PURE__*/require("../focus/focusVisiblePolyfill");
|
13
10
|
function useFocusVisible(options = {}) {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
}
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
} //# sourceMappingURL=useFocusVisible.js.map
|
27
|
-
|
11
|
+
var _a;
|
12
|
+
const contentValue = react_shared_contexts_1.useFluent_unstable();
|
13
|
+
const scopeRef = React.useRef(null);
|
14
|
+
const targetDocument = (_a = options.targetDocument) !== null && _a !== void 0 ? _a : contentValue.targetDocument;
|
15
|
+
React.useEffect(() => {
|
16
|
+
if ((targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.defaultView) && scopeRef.current) {
|
17
|
+
return focusVisiblePolyfill_1.applyFocusVisiblePolyfill(scopeRef.current, targetDocument.defaultView);
|
18
|
+
}
|
19
|
+
}, [scopeRef, targetDocument]);
|
20
|
+
return scopeRef;
|
21
|
+
}
|
22
|
+
exports.useFocusVisible = useFocusVisible;
|
28
23
|
//# sourceMappingURL=useFocusVisible.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"names":["React","require","react_shared_contexts_1","focusVisiblePolyfill_1","useFocusVisible","options","contentValue","useFluent_unstable","scopeRef","useRef","targetDocument","_a","useEffect","defaultView","current","applyFocusVisiblePolyfill","exports"],"sources":["../../../../../../../../packages/react-components/react-tabster/src/hooks/useFocusVisible.ts"],"sourcesContent":["import * as React from 'react';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\n\nimport { applyFocusVisiblePolyfill } from '../focus/focusVisiblePolyfill';\n\ntype UseFocusVisibleOptions = {\n targetDocument?: HTMLDocument;\n};\n\nexport function useFocusVisible<TElement extends HTMLElement = HTMLElement>(options: UseFocusVisibleOptions = {}) {\n const contentValue = useFluent();\n const scopeRef = React.useRef<TElement>(null);\n\n const targetDocument = options.targetDocument ?? contentValue.targetDocument;\n\n React.useEffect(() => {\n if (targetDocument?.defaultView && scopeRef.current) {\n return applyFocusVisiblePolyfill(scopeRef.current, targetDocument.defaultView);\n }\n }, [scopeRef, targetDocument]);\n\n return scopeRef;\n}\n"],"mappings":";;;;;;AAAA,MAAAA,KAAA,gBAAAC,OAAA;AACA,MAAAC,uBAAA,gBAAAD,OAAA;AAEA,MAAAE,sBAAA,gBAAAF,OAAA;AAMA,SAAgBG,eAAeA,CAA6CC,OAAA,GAAkC,EAAE;;EAC9G,MAAMC,YAAY,GAAGJ,uBAAA,CAAAK,kBAAS,EAAE;EAChC,MAAMC,QAAQ,GAAGR,KAAK,CAACS,MAAM,CAAW,IAAI,CAAC;EAE7C,MAAMC,cAAc,GAAG,CAAAC,EAAA,GAAAN,OAAO,CAACK,cAAc,cAAAC,EAAA,cAAAA,EAAA,GAAIL,YAAY,CAACI,cAAc;EAE5EV,KAAK,CAACY,SAAS,CAAC,MAAK;IACnB,IAAI,CAAAF,cAAc,aAAdA,cAAc,uBAAdA,cAAc,CAAEG,WAAW,KAAIL,QAAQ,CAACM,OAAO,EAAE;MACnD,OAAOX,sBAAA,CAAAY,yBAAyB,CAACP,QAAQ,CAACM,OAAO,EAAEJ,cAAc,CAACG,WAAW,CAAC;;EAElF,CAAC,EAAE,CAACL,QAAQ,EAAEE,cAAc,CAAC,CAAC;EAE9B,OAAOF,QAAQ;AACjB;AAbAQ,OAAA,CAAAZ,eAAA,GAAAA,eAAA"}
|
@@ -1,27 +1,28 @@
|
|
1
1
|
"use strict";
|
2
|
+
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
3
|
-
|
4
|
-
});
|
5
|
-
Object.defineProperty(exports, "useFocusWithin", {
|
6
|
-
enumerable: true,
|
7
|
-
get: ()=>useFocusWithin
|
4
|
+
value: true
|
8
5
|
});
|
9
|
-
|
10
|
-
const
|
11
|
-
const
|
12
|
-
const
|
6
|
+
exports.useFocusWithin = void 0;
|
7
|
+
const React = /*#__PURE__*/require("react");
|
8
|
+
const react_shared_contexts_1 = /*#__PURE__*/require("@fluentui/react-shared-contexts");
|
9
|
+
const focusWithinPolyfill_1 = /*#__PURE__*/require("../focus/focusWithinPolyfill");
|
10
|
+
/**
|
11
|
+
* A ponyfill that allows `:focus-within` to support visibility based on keyboard/mouse navigation
|
12
|
+
* like `:focus-visible` https://github.com/WICG/focus-visible/issues/151
|
13
|
+
* @returns ref to the element that uses `:focus-within` styles
|
14
|
+
*/
|
13
15
|
function useFocusWithin() {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
16
|
+
const {
|
17
|
+
targetDocument
|
18
|
+
} = react_shared_contexts_1.useFluent_unstable();
|
19
|
+
const elementRef = React.useRef(null);
|
20
|
+
React.useEffect(() => {
|
21
|
+
if ((targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.defaultView) && elementRef.current) {
|
22
|
+
return focusWithinPolyfill_1.applyFocusWithinPolyfill(elementRef.current, targetDocument.defaultView);
|
23
|
+
}
|
24
|
+
}, [elementRef, targetDocument]);
|
25
|
+
return elementRef;
|
26
|
+
}
|
27
|
+
exports.useFocusWithin = useFocusWithin;
|
27
28
|
//# sourceMappingURL=useFocusWithin.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"names":["React","require","react_shared_contexts_1","focusWithinPolyfill_1","useFocusWithin","targetDocument","useFluent_unstable","elementRef","useRef","useEffect","defaultView","current","applyFocusWithinPolyfill","exports"],"sources":["../../../../../../../../packages/react-components/react-tabster/src/hooks/useFocusWithin.ts"],"sourcesContent":["import * as React from 'react';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\nimport { applyFocusWithinPolyfill } from '../focus/focusWithinPolyfill';\n\n/**\n * A ponyfill that allows `:focus-within` to support visibility based on keyboard/mouse navigation\n * like `:focus-visible` https://github.com/WICG/focus-visible/issues/151\n * @returns ref to the element that uses `:focus-within` styles\n */\nexport function useFocusWithin<TElement extends HTMLElement = HTMLElement>() {\n const { targetDocument } = useFluent();\n const elementRef = React.useRef<TElement>(null);\n\n React.useEffect(() => {\n if (targetDocument?.defaultView && elementRef.current) {\n return applyFocusWithinPolyfill(elementRef.current, targetDocument.defaultView);\n }\n }, [elementRef, targetDocument]);\n\n return elementRef;\n}\n"],"mappings":";;;;;;AAAA,MAAAA,KAAA,gBAAAC,OAAA;AACA,MAAAC,uBAAA,gBAAAD,OAAA;AACA,MAAAE,qBAAA,gBAAAF,OAAA;AAEA;;;;;AAKA,SAAgBG,cAAcA,CAAA;EAC5B,MAAM;IAAEC;EAAc,CAAE,GAAGH,uBAAA,CAAAI,kBAAS,EAAE;EACtC,MAAMC,UAAU,GAAGP,KAAK,CAACQ,MAAM,CAAW,IAAI,CAAC;EAE/CR,KAAK,CAACS,SAAS,CAAC,MAAK;IACnB,IAAI,CAAAJ,cAAc,aAAdA,cAAc,uBAAdA,cAAc,CAAEK,WAAW,KAAIH,UAAU,CAACI,OAAO,EAAE;MACrD,OAAOR,qBAAA,CAAAS,wBAAwB,CAACL,UAAU,CAACI,OAAO,EAAEN,cAAc,CAACK,WAAW,CAAC;;EAEnF,CAAC,EAAE,CAACH,UAAU,EAAEF,cAAc,CAAC,CAAC;EAEhC,OAAOE,UAAU;AACnB;AAXAM,OAAA,CAAAT,cAAA,GAAAA,cAAA"}
|
@@ -1,36 +1,38 @@
|
|
1
1
|
"use strict";
|
2
|
+
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
3
|
-
|
4
|
-
});
|
5
|
-
Object.defineProperty(exports, "useFocusableGroup", {
|
6
|
-
enumerable: true,
|
7
|
-
get: ()=>useFocusableGroup
|
4
|
+
value: true
|
8
5
|
});
|
9
|
-
|
10
|
-
const
|
11
|
-
const
|
12
|
-
const
|
13
|
-
|
14
|
-
|
15
|
-
|
6
|
+
exports.useFocusableGroup = void 0;
|
7
|
+
const tabster_1 = /*#__PURE__*/require("tabster");
|
8
|
+
const useTabsterAttributes_1 = /*#__PURE__*/require("./useTabsterAttributes");
|
9
|
+
const useTabster_1 = /*#__PURE__*/require("./useTabster");
|
10
|
+
/**
|
11
|
+
* A hook that returns the necessary tabster attributes to support groupping.
|
12
|
+
* @param options - Options to configure keyboard navigation
|
13
|
+
*/
|
14
|
+
const useFocusableGroup = options => {
|
15
|
+
const tabster = useTabster_1.useTabster();
|
16
|
+
if (tabster) {
|
17
|
+
tabster_1.getGroupper(tabster);
|
18
|
+
}
|
19
|
+
return useTabsterAttributes_1.useTabsterAttributes({
|
20
|
+
groupper: {
|
21
|
+
tabbability: getTabbability(options === null || options === void 0 ? void 0 : options.tabBehavior)
|
16
22
|
}
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
23
|
+
});
|
24
|
+
};
|
25
|
+
exports.useFocusableGroup = useFocusableGroup;
|
26
|
+
const getTabbability = tabBehavior => {
|
27
|
+
switch (tabBehavior) {
|
28
|
+
case 'unlimited':
|
29
|
+
return tabster_1.Types.GroupperTabbabilities.Unlimited;
|
30
|
+
case 'limited':
|
31
|
+
return tabster_1.Types.GroupperTabbabilities.Limited;
|
32
|
+
case 'limited-trap-focus':
|
33
|
+
return tabster_1.Types.GroupperTabbabilities.LimitedTrapFocus;
|
34
|
+
default:
|
35
|
+
return undefined;
|
36
|
+
}
|
22
37
|
};
|
23
|
-
const getTabbability = (tabBehavior)=>{
|
24
|
-
switch(tabBehavior){
|
25
|
-
case "unlimited":
|
26
|
-
return _tabster.Types.GroupperTabbabilities.Unlimited;
|
27
|
-
case "limited":
|
28
|
-
return _tabster.Types.GroupperTabbabilities.Limited;
|
29
|
-
case "limited-trap-focus":
|
30
|
-
return _tabster.Types.GroupperTabbabilities.LimitedTrapFocus;
|
31
|
-
default:
|
32
|
-
return undefined;
|
33
|
-
}
|
34
|
-
}; //# sourceMappingURL=useFocusableGroup.js.map
|
35
|
-
|
36
38
|
//# sourceMappingURL=useFocusableGroup.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"names":["tabster_1","require","useTabsterAttributes_1","useTabster_1","useFocusableGroup","options","tabster","useTabster","getGroupper","useTabsterAttributes","groupper","tabbability","getTabbability","tabBehavior","exports","Types","GroupperTabbabilities","Unlimited","Limited","LimitedTrapFocus","undefined"],"sources":["../../../../../../../../packages/react-components/react-tabster/src/hooks/useFocusableGroup.ts"],"sourcesContent":["import { Types, getGroupper } from 'tabster';\nimport { useTabsterAttributes } from './useTabsterAttributes';\nimport { useTabster } from './useTabster';\n\nexport interface UseFocusableGroupOptions {\n /**\n * Behavior for the Tab key.\n */\n tabBehavior?: 'unlimited' | 'limited' | 'limited-trap-focus';\n}\n\n/**\n * A hook that returns the necessary tabster attributes to support groupping.\n * @param options - Options to configure keyboard navigation\n */\nexport const useFocusableGroup = (options?: UseFocusableGroupOptions): Types.TabsterDOMAttribute => {\n const tabster = useTabster();\n\n if (tabster) {\n getGroupper(tabster);\n }\n\n return useTabsterAttributes({\n groupper: {\n tabbability: getTabbability(options?.tabBehavior),\n },\n });\n};\n\nconst getTabbability = (\n tabBehavior?: UseFocusableGroupOptions['tabBehavior'],\n): Types.GroupperTabbability | undefined => {\n switch (tabBehavior) {\n case 'unlimited':\n return Types.GroupperTabbabilities.Unlimited;\n case 'limited':\n return Types.GroupperTabbabilities.Limited;\n case 'limited-trap-focus':\n return Types.GroupperTabbabilities.LimitedTrapFocus;\n default:\n return undefined;\n }\n};\n"],"mappings":";;;;;;AAAA,MAAAA,SAAA,gBAAAC,OAAA;AACA,MAAAC,sBAAA,gBAAAD,OAAA;AACA,MAAAE,YAAA,gBAAAF,OAAA;AASA;;;;AAIO,MAAMG,iBAAiB,GAAIC,OAAkC,IAA+B;EACjG,MAAMC,OAAO,GAAGH,YAAA,CAAAI,UAAU,EAAE;EAE5B,IAAID,OAAO,EAAE;IACXN,SAAA,CAAAQ,WAAW,CAACF,OAAO,CAAC;;EAGtB,OAAOJ,sBAAA,CAAAO,oBAAoB,CAAC;IAC1BC,QAAQ,EAAE;MACRC,WAAW,EAAEC,cAAc,CAACP,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEQ,WAAW;;GAEnD,CAAC;AACJ,CAAC;AAZYC,OAAA,CAAAV,iBAAiB,GAAAA,iBAAA;AAc9B,MAAMQ,cAAc,GAClBC,WAAqD,IACZ;EACzC,QAAQA,WAAW;IACjB,KAAK,WAAW;MACd,OAAOb,SAAA,CAAAe,KAAK,CAACC,qBAAqB,CAACC,SAAS;IAC9C,KAAK,SAAS;MACZ,OAAOjB,SAAA,CAAAe,KAAK,CAACC,qBAAqB,CAACE,OAAO;IAC5C,KAAK,oBAAoB;MACvB,OAAOlB,SAAA,CAAAe,KAAK,CAACC,qBAAqB,CAACG,gBAAgB;IACrD;MACE,OAAOC,SAAS;EAAC;AAEvB,CAAC"}
|
@@ -1,44 +1,45 @@
|
|
1
1
|
"use strict";
|
2
|
+
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
3
|
-
|
4
|
-
});
|
5
|
-
Object.defineProperty(exports, "useKeyboardNavAttribute", {
|
6
|
-
enumerable: true,
|
7
|
-
get: ()=>useKeyboardNavAttribute
|
4
|
+
value: true
|
8
5
|
});
|
9
|
-
|
10
|
-
const
|
11
|
-
const
|
12
|
-
const
|
6
|
+
exports.useKeyboardNavAttribute = void 0;
|
7
|
+
const keyborg_1 = /*#__PURE__*/require("keyborg");
|
8
|
+
const react_1 = /*#__PURE__*/require("react");
|
9
|
+
const constants_1 = /*#__PURE__*/require("../focus/constants");
|
10
|
+
const react_shared_contexts_1 = /*#__PURE__*/require("@fluentui/react-shared-contexts");
|
11
|
+
/**
|
12
|
+
* Instantiates [keyborg](https://github.com/microsoft/keyborg) and adds `data-keyboard-nav`
|
13
|
+
* attribute to a referenced element to ensure keyboard navigation awareness
|
14
|
+
* synced to keyborg logic without having to cause a re-render on react tree.
|
15
|
+
*/
|
13
16
|
function useKeyboardNavAttribute() {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
]);
|
31
|
-
return ref;
|
17
|
+
const {
|
18
|
+
targetDocument
|
19
|
+
} = react_shared_contexts_1.useFluent_unstable();
|
20
|
+
const keyborg = react_1.useMemo(() => targetDocument && keyborg_1.createKeyborg(targetDocument.defaultView), [targetDocument]);
|
21
|
+
const ref = react_1.useRef(null);
|
22
|
+
react_1.useEffect(() => {
|
23
|
+
if (keyborg) {
|
24
|
+
setBooleanAttribute(ref, constants_1.KEYBOARD_NAV_ATTRIBUTE, keyborg.isNavigatingWithKeyboard());
|
25
|
+
const cb = next => {
|
26
|
+
setBooleanAttribute(ref, constants_1.KEYBOARD_NAV_ATTRIBUTE, next);
|
27
|
+
};
|
28
|
+
keyborg.subscribe(cb);
|
29
|
+
return () => keyborg.unsubscribe(cb);
|
30
|
+
}
|
31
|
+
}, [keyborg]);
|
32
|
+
return ref;
|
32
33
|
}
|
34
|
+
exports.useKeyboardNavAttribute = useKeyboardNavAttribute;
|
33
35
|
function setBooleanAttribute(elementRef, attribute, value) {
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
}
|
43
|
-
|
36
|
+
if (!elementRef.current) {
|
37
|
+
return;
|
38
|
+
}
|
39
|
+
if (value) {
|
40
|
+
elementRef.current.setAttribute(attribute, '');
|
41
|
+
} else {
|
42
|
+
elementRef.current.removeAttribute(attribute);
|
43
|
+
}
|
44
|
+
}
|
44
45
|
//# sourceMappingURL=useKeyboardNavAttribute.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"names":["keyborg_1","require","react_1","constants_1","react_shared_contexts_1","useKeyboardNavAttribute","targetDocument","useFluent_unstable","keyborg","useMemo","createKeyborg","defaultView","ref","useRef","useEffect","setBooleanAttribute","KEYBOARD_NAV_ATTRIBUTE","isNavigatingWithKeyboard","cb","next","subscribe","unsubscribe","exports","elementRef","attribute","value","current","setAttribute","removeAttribute"],"sources":["../../../../../../../../packages/react-components/react-tabster/src/hooks/useKeyboardNavAttribute.ts"],"sourcesContent":["import { createKeyborg } from 'keyborg';\nimport { useEffect, useMemo, useRef } from 'react';\nimport { KEYBOARD_NAV_ATTRIBUTE } from '../focus/constants';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\nimport type { KeyborgCallback } from 'keyborg';\nimport type { RefObject } from 'react';\n\n/**\n * Instantiates [keyborg](https://github.com/microsoft/keyborg) and adds `data-keyboard-nav`\n * attribute to a referenced element to ensure keyboard navigation awareness\n * synced to keyborg logic without having to cause a re-render on react tree.\n */\nexport function useKeyboardNavAttribute<E extends HTMLElement>() {\n const { targetDocument } = useFluent();\n const keyborg = useMemo(() => targetDocument && createKeyborg(targetDocument.defaultView!), [targetDocument]);\n const ref = useRef<E>(null);\n useEffect(() => {\n if (keyborg) {\n setBooleanAttribute(ref, KEYBOARD_NAV_ATTRIBUTE, keyborg.isNavigatingWithKeyboard());\n const cb: KeyborgCallback = next => {\n setBooleanAttribute(ref, KEYBOARD_NAV_ATTRIBUTE, next);\n };\n keyborg.subscribe(cb);\n return () => keyborg.unsubscribe(cb);\n }\n }, [keyborg]);\n return ref;\n}\n\nfunction setBooleanAttribute(elementRef: RefObject<HTMLElement>, attribute: string, value: boolean) {\n if (!elementRef.current) {\n return;\n }\n if (value) {\n elementRef.current.setAttribute(attribute, '');\n } else {\n elementRef.current.removeAttribute(attribute);\n }\n}\n"],"mappings":";;;;;;AAAA,MAAAA,SAAA,gBAAAC,OAAA;AACA,MAAAC,OAAA,gBAAAD,OAAA;AACA,MAAAE,WAAA,gBAAAF,OAAA;AACA,MAAAG,uBAAA,gBAAAH,OAAA;AAIA;;;;;AAKA,SAAgBI,uBAAuBA,CAAA;EACrC,MAAM;IAAEC;EAAc,CAAE,GAAGF,uBAAA,CAAAG,kBAAS,EAAE;EACtC,MAAMC,OAAO,GAAGN,OAAA,CAAAO,OAAO,CAAC,MAAMH,cAAc,IAAIN,SAAA,CAAAU,aAAa,CAACJ,cAAc,CAACK,WAAY,CAAC,EAAE,CAACL,cAAc,CAAC,CAAC;EAC7G,MAAMM,GAAG,GAAGV,OAAA,CAAAW,MAAM,CAAI,IAAI,CAAC;EAC3BX,OAAA,CAAAY,SAAS,CAAC,MAAK;IACb,IAAIN,OAAO,EAAE;MACXO,mBAAmB,CAACH,GAAG,EAAET,WAAA,CAAAa,sBAAsB,EAAER,OAAO,CAACS,wBAAwB,EAAE,CAAC;MACpF,MAAMC,EAAE,GAAoBC,IAAI,IAAG;QACjCJ,mBAAmB,CAACH,GAAG,EAAET,WAAA,CAAAa,sBAAsB,EAAEG,IAAI,CAAC;MACxD,CAAC;MACDX,OAAO,CAACY,SAAS,CAACF,EAAE,CAAC;MACrB,OAAO,MAAMV,OAAO,CAACa,WAAW,CAACH,EAAE,CAAC;;EAExC,CAAC,EAAE,CAACV,OAAO,CAAC,CAAC;EACb,OAAOI,GAAG;AACZ;AAfAU,OAAA,CAAAjB,uBAAA,GAAAA,uBAAA;AAiBA,SAASU,mBAAmBA,CAACQ,UAAkC,EAAEC,SAAiB,EAAEC,KAAc;EAChG,IAAI,CAACF,UAAU,CAACG,OAAO,EAAE;IACvB;;EAEF,IAAID,KAAK,EAAE;IACTF,UAAU,CAACG,OAAO,CAACC,YAAY,CAACH,SAAS,EAAE,EAAE,CAAC;GAC/C,MAAM;IACLD,UAAU,CAACG,OAAO,CAACE,eAAe,CAACJ,SAAS,CAAC;;AAEjD"}
|
@@ -1,40 +1,49 @@
|
|
1
1
|
"use strict";
|
2
|
+
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
3
|
-
|
4
|
-
});
|
5
|
-
Object.defineProperty(exports, "useModalAttributes", {
|
6
|
-
enumerable: true,
|
7
|
-
get: ()=>useModalAttributes
|
4
|
+
value: true
|
8
5
|
});
|
9
|
-
|
10
|
-
const
|
11
|
-
const
|
12
|
-
const
|
13
|
-
const
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
6
|
+
exports.useModalAttributes = void 0;
|
7
|
+
const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
|
8
|
+
const useTabsterAttributes_1 = /*#__PURE__*/require("./useTabsterAttributes");
|
9
|
+
const tabster_1 = /*#__PURE__*/require("tabster");
|
10
|
+
const useTabster_1 = /*#__PURE__*/require("./useTabster");
|
11
|
+
/**
|
12
|
+
* Applies modal dialog behaviour through DOM attributes
|
13
|
+
* Modal element will focus trap and hide other content on the page
|
14
|
+
* The trigger element will be focused if focus is lost after the modal element is removed
|
15
|
+
*
|
16
|
+
* @returns DOM attributes to apply to the modal element and its trigger
|
17
|
+
*/
|
18
|
+
const useModalAttributes = (options = {}) => {
|
19
|
+
const {
|
20
|
+
trapFocus,
|
21
|
+
alwaysFocusable,
|
22
|
+
legacyTrapFocus
|
23
|
+
} = options;
|
24
|
+
const tabster = useTabster_1.useTabster();
|
25
|
+
// Initializes the modalizer and deloser APIs
|
26
|
+
if (tabster) {
|
27
|
+
tabster_1.getModalizer(tabster);
|
28
|
+
tabster_1.getDeloser(tabster);
|
29
|
+
}
|
30
|
+
const id = react_utilities_1.useId('modal-', options.id);
|
31
|
+
const modalAttributes = useTabsterAttributes_1.useTabsterAttributes({
|
32
|
+
deloser: {},
|
33
|
+
modalizer: {
|
34
|
+
id,
|
35
|
+
isOthersAccessible: !trapFocus,
|
36
|
+
isAlwaysAccessible: alwaysFocusable,
|
37
|
+
isTrapped: legacyTrapFocus && trapFocus
|
20
38
|
}
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
const triggerAttributes = (0, _useTabsterAttributes.useTabsterAttributes)({
|
32
|
-
deloser: {}
|
33
|
-
});
|
34
|
-
return {
|
35
|
-
modalAttributes,
|
36
|
-
triggerAttributes
|
37
|
-
};
|
38
|
-
}; //# sourceMappingURL=useModalAttributes.js.map
|
39
|
-
|
39
|
+
});
|
40
|
+
const triggerAttributes = useTabsterAttributes_1.useTabsterAttributes({
|
41
|
+
deloser: {}
|
42
|
+
});
|
43
|
+
return {
|
44
|
+
modalAttributes,
|
45
|
+
triggerAttributes
|
46
|
+
};
|
47
|
+
};
|
48
|
+
exports.useModalAttributes = useModalAttributes;
|
40
49
|
//# sourceMappingURL=useModalAttributes.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"names":["react_utilities_1","require","useTabsterAttributes_1","tabster_1","useTabster_1","useModalAttributes","options","trapFocus","alwaysFocusable","legacyTrapFocus","tabster","useTabster","getModalizer","getDeloser","id","useId","modalAttributes","useTabsterAttributes","deloser","modalizer","isOthersAccessible","isAlwaysAccessible","isTrapped","triggerAttributes","exports"],"sources":["../../../../../../../../packages/react-components/react-tabster/src/hooks/useModalAttributes.ts"],"sourcesContent":["import { useId } from '@fluentui/react-utilities';\nimport { useTabsterAttributes } from './useTabsterAttributes';\nimport { getDeloser, getModalizer, Types as TabsterTypes } from 'tabster';\nimport { useTabster } from './useTabster';\n\nexport interface UseModalAttributesOptions {\n /**\n * Traps focus inside the elements the attributes are applied.\n * Prefer this to `legacyTrapFocus`\n * it forbids users to tab out of the focus trap into the actual browser.\n */\n trapFocus?: boolean;\n\n /**\n * Traps focus inside the elements the attributes are applied.\n * This prop enables legacy behavior to match previous versions of Fluent and is not\n * recommended for general use.\n * Enabling `legacyTrapFocus` prevents users from tabbing out of the focus trap and into\n * the actual browser. Prefer using `trapFocus` instead of this prop.\n */\n legacyTrapFocus?: boolean;\n\n /**\n * Always reachabled in Tab order\n */\n alwaysFocusable?: boolean;\n\n /**\n * Id to use for the modalizer. An id will be generated if not provided.\n */\n id?: string;\n}\n\n/**\n * Applies modal dialog behaviour through DOM attributes\n * Modal element will focus trap and hide other content on the page\n * The trigger element will be focused if focus is lost after the modal element is removed\n *\n * @returns DOM attributes to apply to the modal element and its trigger\n */\nexport const useModalAttributes = (\n options: UseModalAttributesOptions = {},\n): { modalAttributes: TabsterTypes.TabsterDOMAttribute; triggerAttributes: TabsterTypes.TabsterDOMAttribute } => {\n const { trapFocus, alwaysFocusable, legacyTrapFocus } = options;\n const tabster = useTabster();\n // Initializes the modalizer and deloser APIs\n if (tabster) {\n getModalizer(tabster);\n getDeloser(tabster);\n }\n\n const id = useId('modal-', options.id);\n const modalAttributes = useTabsterAttributes({\n deloser: {},\n modalizer: {\n id,\n isOthersAccessible: !trapFocus,\n isAlwaysAccessible: alwaysFocusable,\n isTrapped: legacyTrapFocus && trapFocus,\n },\n });\n\n const triggerAttributes = useTabsterAttributes({\n deloser: {},\n });\n\n return { modalAttributes, triggerAttributes };\n};\n"],"mappings":";;;;;;AAAA,MAAAA,iBAAA,gBAAAC,OAAA;AACA,MAAAC,sBAAA,gBAAAD,OAAA;AACA,MAAAE,SAAA,gBAAAF,OAAA;AACA,MAAAG,YAAA,gBAAAH,OAAA;AA8BA;;;;;;;AAOO,MAAMI,kBAAkB,GAAGA,CAChCC,OAAA,GAAqC,EAAE,KACuE;EAC9G,MAAM;IAAEC,SAAS;IAAEC,eAAe;IAAEC;EAAe,CAAE,GAAGH,OAAO;EAC/D,MAAMI,OAAO,GAAGN,YAAA,CAAAO,UAAU,EAAE;EAC5B;EACA,IAAID,OAAO,EAAE;IACXP,SAAA,CAAAS,YAAY,CAACF,OAAO,CAAC;IACrBP,SAAA,CAAAU,UAAU,CAACH,OAAO,CAAC;;EAGrB,MAAMI,EAAE,GAAGd,iBAAA,CAAAe,KAAK,CAAC,QAAQ,EAAET,OAAO,CAACQ,EAAE,CAAC;EACtC,MAAME,eAAe,GAAGd,sBAAA,CAAAe,oBAAoB,CAAC;IAC3CC,OAAO,EAAE,EAAE;IACXC,SAAS,EAAE;MACTL,EAAE;MACFM,kBAAkB,EAAE,CAACb,SAAS;MAC9Bc,kBAAkB,EAAEb,eAAe;MACnCc,SAAS,EAAEb,eAAe,IAAIF;;GAEjC,CAAC;EAEF,MAAMgB,iBAAiB,GAAGrB,sBAAA,CAAAe,oBAAoB,CAAC;IAC7CC,OAAO,EAAE;GACV,CAAC;EAEF,OAAO;IAAEF,eAAe;IAAEO;EAAiB,CAAE;AAC/C,CAAC;AA3BYC,OAAA,CAAAnB,kBAAkB,GAAAA,kBAAA"}
|