@workday/canvas-kit-docs 13.1.6 → 13.1.7
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/es6/lib/docs.js
CHANGED
|
@@ -128309,17 +128309,8 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
128309
128309
|
"name": "data-focus-id",
|
|
128310
128310
|
"required": true,
|
|
128311
128311
|
"type": {
|
|
128312
|
-
"kind": "
|
|
128313
|
-
"value":
|
|
128314
|
-
{
|
|
128315
|
-
"kind": "primitive",
|
|
128316
|
-
"value": "any"
|
|
128317
|
-
},
|
|
128318
|
-
{
|
|
128319
|
-
"kind": "primitive",
|
|
128320
|
-
"value": "any"
|
|
128321
|
-
}
|
|
128322
|
-
]
|
|
128312
|
+
"kind": "primitive",
|
|
128313
|
+
"value": "string"
|
|
128323
128314
|
},
|
|
128324
128315
|
"description": "",
|
|
128325
128316
|
"tags": {},
|
|
@@ -128601,17 +128592,8 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
128601
128592
|
"name": "data-focus-id",
|
|
128602
128593
|
"required": true,
|
|
128603
128594
|
"type": {
|
|
128604
|
-
"kind": "
|
|
128605
|
-
"value":
|
|
128606
|
-
{
|
|
128607
|
-
"kind": "primitive",
|
|
128608
|
-
"value": "any"
|
|
128609
|
-
},
|
|
128610
|
-
{
|
|
128611
|
-
"kind": "primitive",
|
|
128612
|
-
"value": "any"
|
|
128613
|
-
}
|
|
128614
|
-
]
|
|
128595
|
+
"kind": "primitive",
|
|
128596
|
+
"value": "string"
|
|
128615
128597
|
},
|
|
128616
128598
|
"description": "",
|
|
128617
128599
|
"tags": {},
|
|
@@ -186119,7 +186101,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
186119
186101
|
{
|
|
186120
186102
|
"name": "useUniqueId",
|
|
186121
186103
|
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/utils/useUniqueId.ts",
|
|
186122
|
-
"description": "Generate a unique ID if one is not provided. The generated ID will be stable across renders",
|
|
186104
|
+
"description": "Generate a unique ID if one is not provided. The generated ID will be stable across renders. Uses\n`React.useId()` if available.",
|
|
186123
186105
|
"declarations": [
|
|
186124
186106
|
{
|
|
186125
186107
|
"name": "useUniqueId",
|
|
@@ -249817,7 +249799,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
249817
249799
|
{
|
|
249818
249800
|
"kind": "symbol",
|
|
249819
249801
|
"name": "BehaviorHook",
|
|
249820
|
-
"value": "BehaviorHook<Model<any, any>, { readonly onKeyDown: (event: KeyboardEvent<HTMLElement>) => void; readonly onClick: () => void; readonly 'data-focus-id':
|
|
249802
|
+
"value": "BehaviorHook<Model<any, any>, { readonly onKeyDown: (event: KeyboardEvent<HTMLElement>) => void; readonly onClick: () => void; readonly 'data-focus-id': string; readonly tabIndex: 0 | -1; }>"
|
|
249821
249803
|
},
|
|
249822
249804
|
{
|
|
249823
249805
|
"kind": "function",
|
|
@@ -18,11 +18,11 @@ export const packageJSONFile = `{
|
|
|
18
18
|
"@emotion/react": "11.11.4",
|
|
19
19
|
"@types/react": "18.2.60",
|
|
20
20
|
"@types/react-dom": "18.2.19",
|
|
21
|
-
"@workday/canvas-kit-labs-react": "13.1.
|
|
22
|
-
"@workday/canvas-kit-preview-react": "13.1.
|
|
23
|
-
"@workday/canvas-kit-react": "13.1.
|
|
24
|
-
"@workday/canvas-kit-react-fonts": "^13.1.
|
|
25
|
-
"@workday/canvas-kit-styling": "13.1.
|
|
21
|
+
"@workday/canvas-kit-labs-react": "13.1.7",
|
|
22
|
+
"@workday/canvas-kit-preview-react": "13.1.7",
|
|
23
|
+
"@workday/canvas-kit-react": "13.1.7",
|
|
24
|
+
"@workday/canvas-kit-react-fonts": "^13.1.7",
|
|
25
|
+
"@workday/canvas-kit-styling": "13.1.7",
|
|
26
26
|
"@workday/canvas-system-icons-web": "3.0.22",
|
|
27
27
|
"@workday/canvas-tokens-web": "2.0.0"
|
|
28
28
|
},
|
|
@@ -18,11 +18,11 @@ export const packageJSONFile = `{
|
|
|
18
18
|
"@emotion/react": "11.11.4",
|
|
19
19
|
"@types/react": "18.2.60",
|
|
20
20
|
"@types/react-dom": "18.2.19",
|
|
21
|
-
"@workday/canvas-kit-labs-react": "13.1.
|
|
22
|
-
"@workday/canvas-kit-preview-react": "13.1.
|
|
23
|
-
"@workday/canvas-kit-react": "13.1.
|
|
24
|
-
"@workday/canvas-kit-react-fonts": "^13.1.
|
|
25
|
-
"@workday/canvas-kit-styling": "13.1.
|
|
21
|
+
"@workday/canvas-kit-labs-react": "13.1.7",
|
|
22
|
+
"@workday/canvas-kit-preview-react": "13.1.7",
|
|
23
|
+
"@workday/canvas-kit-react": "13.1.7",
|
|
24
|
+
"@workday/canvas-kit-react-fonts": "^13.1.7",
|
|
25
|
+
"@workday/canvas-kit-styling": "13.1.7",
|
|
26
26
|
"@workday/canvas-system-icons-web": "3.0.22",
|
|
27
27
|
"@workday/canvas-tokens-web": "2.0.0"
|
|
28
28
|
},
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
+
import {slugify} from '@workday/canvas-kit-react/common';
|
|
3
4
|
import {isCursor} from '@workday/canvas-kit-react/collection';
|
|
4
5
|
import {Tabs, useTabsModel} from '@workday/canvas-kit-react/tabs';
|
|
5
6
|
|
|
@@ -46,13 +47,15 @@ export default () => {
|
|
|
46
47
|
|
|
47
48
|
// wait for stabilization of state
|
|
48
49
|
requestAnimationFrame(() => {
|
|
49
|
-
document
|
|
50
|
+
document
|
|
51
|
+
.querySelector<HTMLElement>(`[id="${slugify(`${model.state.id}-${nextId}`)}"]`)
|
|
52
|
+
?.focus();
|
|
50
53
|
});
|
|
51
54
|
}
|
|
52
55
|
};
|
|
53
56
|
|
|
54
57
|
const onKeyDown = (id: string) => (e: React.KeyboardEvent<HTMLElement>) => {
|
|
55
|
-
if (e.key === 'Delete' && id !== 'add') {
|
|
58
|
+
if ((e.key === 'Delete' || e.key === 'Backspace') && id !== 'add') {
|
|
56
59
|
setTabs(tabs.filter(item => item.id !== id));
|
|
57
60
|
const model = modelRef.current;
|
|
58
61
|
removeItem(id, model);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "13.1.
|
|
3
|
+
"version": "13.1.7",
|
|
4
4
|
"description": "Documentation components of Canvas Kit components",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"@emotion/styled": "^11.6.0",
|
|
46
46
|
"@stackblitz/sdk": "^1.11.0",
|
|
47
47
|
"@storybook/csf": "0.0.1",
|
|
48
|
-
"@workday/canvas-kit-labs-react": "^13.1.
|
|
49
|
-
"@workday/canvas-kit-preview-react": "^13.1.
|
|
50
|
-
"@workday/canvas-kit-react": "^13.1.
|
|
51
|
-
"@workday/canvas-kit-styling": "^13.1.
|
|
48
|
+
"@workday/canvas-kit-labs-react": "^13.1.7",
|
|
49
|
+
"@workday/canvas-kit-preview-react": "^13.1.7",
|
|
50
|
+
"@workday/canvas-kit-react": "^13.1.7",
|
|
51
|
+
"@workday/canvas-kit-styling": "^13.1.7",
|
|
52
52
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
53
53
|
"@workday/canvas-tokens-web": "^2.1.1",
|
|
54
54
|
"markdown-to-jsx": "^7.2.0",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"mkdirp": "^1.0.3",
|
|
62
62
|
"typescript": "5.0"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "7a01b146074ec8508bfd2fc3c90c9a5183bde716"
|
|
65
65
|
}
|