@workday/canvas-kit-react 6.0.1 → 6.0.5
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/dist/commonjs/popup/lib/hooks/useReturnFocus.d.ts +1 -1
- package/dist/commonjs/popup/lib/hooks/useReturnFocus.js +1 -1
- package/dist/commonjs/tabs/lib/overflow/useOverflowTarget.js +1 -1
- package/dist/es6/popup/lib/hooks/useReturnFocus.d.ts +1 -1
- package/dist/es6/popup/lib/hooks/useReturnFocus.js +1 -1
- package/dist/es6/tabs/lib/overflow/useOverflowTarget.js +1 -1
- package/package.json +5 -5
- package/popup/lib/hooks/useReturnFocus.tsx +1 -1
- package/tabs/lib/overflow/useOverflowTarget.tsx +1 -1
- package/ts3.5/dist/commonjs/popup/lib/hooks/useReturnFocus.d.ts +1 -1
- package/ts3.5/dist/es6/popup/lib/hooks/useReturnFocus.d.ts +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* `useInitialFocus`. This should be used with `useFocusRedirect` or `useFocusTrap` for a complete
|
|
4
4
|
* focus management solution.
|
|
5
5
|
*
|
|
6
|
-
* This should
|
|
6
|
+
* This should be used on popup elements that use `useInitialFocus`.
|
|
7
7
|
*/
|
|
8
8
|
export declare const useReturnFocus: (model: import("../../../common").Model<import("./usePopupModel").PopupState, import("./usePopupModel").PopupEvents>, elemProps?: {}) => {};
|
|
9
9
|
//# sourceMappingURL=useReturnFocus.d.ts.map
|
|
@@ -10,7 +10,7 @@ var common_1 = require("@workday/canvas-kit-react/common");
|
|
|
10
10
|
* `useInitialFocus`. This should be used with `useFocusRedirect` or `useFocusTrap` for a complete
|
|
11
11
|
* focus management solution.
|
|
12
12
|
*
|
|
13
|
-
* This should
|
|
13
|
+
* This should be used on popup elements that use `useInitialFocus`.
|
|
14
14
|
*/
|
|
15
15
|
exports.useReturnFocus = function (model, elemProps) {
|
|
16
16
|
if (elemProps === void 0) { elemProps = {}; }
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* `useInitialFocus`. This should be used with `useFocusRedirect` or `useFocusTrap` for a complete
|
|
4
4
|
* focus management solution.
|
|
5
5
|
*
|
|
6
|
-
* This should
|
|
6
|
+
* This should be used on popup elements that use `useInitialFocus`.
|
|
7
7
|
*/
|
|
8
8
|
export declare const useReturnFocus: (model: import("../../../common").Model<import("./usePopupModel").PopupState, import("./usePopupModel").PopupEvents>, elemProps?: {}) => {};
|
|
9
9
|
//# sourceMappingURL=useReturnFocus.d.ts.map
|
|
@@ -5,7 +5,7 @@ import { changeFocus } from '@workday/canvas-kit-react/common';
|
|
|
5
5
|
* `useInitialFocus`. This should be used with `useFocusRedirect` or `useFocusTrap` for a complete
|
|
6
6
|
* focus management solution.
|
|
7
7
|
*
|
|
8
|
-
* This should
|
|
8
|
+
* This should be used on popup elements that use `useInitialFocus`.
|
|
9
9
|
*/
|
|
10
10
|
export var useReturnFocus = function (model, elemProps) {
|
|
11
11
|
if (elemProps === void 0) { elemProps = {}; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-react",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.5",
|
|
4
4
|
"description": "The parent module that contains all Workday Canvas Kit React components",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"@emotion/styled": "^10.0.27",
|
|
57
57
|
"@popperjs/core": "^2.5.4",
|
|
58
58
|
"@workday/canvas-colors-web": "^2.0.0",
|
|
59
|
-
"@workday/canvas-kit-labs-react": "^6.0.
|
|
60
|
-
"@workday/canvas-kit-popup-stack": "^6.0.
|
|
61
|
-
"@workday/canvas-kit-preview-react": "^6.0.
|
|
59
|
+
"@workday/canvas-kit-labs-react": "^6.0.5",
|
|
60
|
+
"@workday/canvas-kit-popup-stack": "^6.0.5",
|
|
61
|
+
"@workday/canvas-kit-preview-react": "^6.0.5",
|
|
62
62
|
"@workday/canvas-system-icons-web": "1.0.41",
|
|
63
63
|
"@workday/design-assets-types": "^0.2.4",
|
|
64
64
|
"chroma-js": "^2.1.0",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"@workday/canvas-accent-icons-web": "^1.0.0",
|
|
77
77
|
"@workday/canvas-applet-icons-web": "^0.17.50"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "57439ccf19ad8753d7260730a1c83589b07c22a2"
|
|
80
80
|
}
|
|
@@ -8,7 +8,7 @@ import {changeFocus} from '@workday/canvas-kit-react/common';
|
|
|
8
8
|
* `useInitialFocus`. This should be used with `useFocusRedirect` or `useFocusTrap` for a complete
|
|
9
9
|
* focus management solution.
|
|
10
10
|
*
|
|
11
|
-
* This should
|
|
11
|
+
* This should be used on popup elements that use `useInitialFocus`.
|
|
12
12
|
*/
|
|
13
13
|
export const useReturnFocus = (model: PopupModel, elemProps = {}) => {
|
|
14
14
|
const visible = model.state.visibility !== 'hidden';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* `useInitialFocus`. This should be used with `useFocusRedirect` or `useFocusTrap` for a complete
|
|
4
4
|
* focus management solution.
|
|
5
5
|
*
|
|
6
|
-
* This should
|
|
6
|
+
* This should be used on popup elements that use `useInitialFocus`.
|
|
7
7
|
*/
|
|
8
8
|
export declare const useReturnFocus: (model: import("../../../common").Model<import("./usePopupModel").PopupState, import("./usePopupModel").PopupEvents>, elemProps?: {}) => {};
|
|
9
9
|
//# sourceMappingURL=useReturnFocus.d.ts.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* `useInitialFocus`. This should be used with `useFocusRedirect` or `useFocusTrap` for a complete
|
|
4
4
|
* focus management solution.
|
|
5
5
|
*
|
|
6
|
-
* This should
|
|
6
|
+
* This should be used on popup elements that use `useInitialFocus`.
|
|
7
7
|
*/
|
|
8
8
|
export declare const useReturnFocus: (model: import("../../../common").Model<import("./usePopupModel").PopupState, import("./usePopupModel").PopupEvents>, elemProps?: {}) => {};
|
|
9
9
|
//# sourceMappingURL=useReturnFocus.d.ts.map
|