@workday/canvas-kit-react 7.2.11 → 7.3.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.
|
@@ -12,15 +12,9 @@ export const isFocusable = (element: HTMLElement) => {
|
|
|
12
12
|
const validAnchor = nodeName === 'a' && element.hasAttribute('href');
|
|
13
13
|
const validAudioVideo = ['audio', 'video'].includes(nodeName) && element.hasAttribute('controls');
|
|
14
14
|
const validImgObject = ['img', 'object'].includes(nodeName) && element.hasAttribute('usemap');
|
|
15
|
-
const validNativelyFocusable =
|
|
16
|
-
'button',
|
|
17
|
-
'
|
|
18
|
-
'embed',
|
|
19
|
-
'iframe',
|
|
20
|
-
'select',
|
|
21
|
-
'textarea',
|
|
22
|
-
].includes(nodeName) &&
|
|
23
|
-
element.getAttribute('tabindex') !== '-1';
|
|
15
|
+
const validNativelyFocusable =
|
|
16
|
+
['button', 'details', 'embed', 'iframe', 'select', 'textarea'].includes(nodeName) &&
|
|
17
|
+
element.getAttribute('tabindex') !== '-1';
|
|
24
18
|
const hasTabIndex = element.getAttribute('tabindex') === '0';
|
|
25
19
|
|
|
26
20
|
return (
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elements.d.ts","sourceRoot":"","sources":["../../../../../common/lib/utils/elements.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,WAAW,YAAa,WAAW,
|
|
1
|
+
{"version":3,"file":"elements.d.ts","sourceRoot":"","sources":["../../../../../common/lib/utils/elements.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,WAAW,YAAa,WAAW,mBAuB/C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,cAAe,WAAW,KAAG,WAAW,GAAG,IAW/E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,cAAe,WAAW,KAAG,WAAW,GAAG,IAW9E,CAAC"}
|
|
@@ -14,14 +14,7 @@ var isFocusable = function (element) {
|
|
|
14
14
|
var validAnchor = nodeName === 'a' && element.hasAttribute('href');
|
|
15
15
|
var validAudioVideo = ['audio', 'video'].includes(nodeName) && element.hasAttribute('controls');
|
|
16
16
|
var validImgObject = ['img', 'object'].includes(nodeName) && element.hasAttribute('usemap');
|
|
17
|
-
var validNativelyFocusable = [
|
|
18
|
-
'button',
|
|
19
|
-
'details',
|
|
20
|
-
'embed',
|
|
21
|
-
'iframe',
|
|
22
|
-
'select',
|
|
23
|
-
'textarea',
|
|
24
|
-
].includes(nodeName) &&
|
|
17
|
+
var validNativelyFocusable = ['button', 'details', 'embed', 'iframe', 'select', 'textarea'].includes(nodeName) &&
|
|
25
18
|
element.getAttribute('tabindex') !== '-1';
|
|
26
19
|
var hasTabIndex = element.getAttribute('tabindex') === '0';
|
|
27
20
|
return (validInput ||
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elements.d.ts","sourceRoot":"","sources":["../../../../../common/lib/utils/elements.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,WAAW,YAAa,WAAW,
|
|
1
|
+
{"version":3,"file":"elements.d.ts","sourceRoot":"","sources":["../../../../../common/lib/utils/elements.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,WAAW,YAAa,WAAW,mBAuB/C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,cAAe,WAAW,KAAG,WAAW,GAAG,IAW/E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,cAAe,WAAW,KAAG,WAAW,GAAG,IAW9E,CAAC"}
|
|
@@ -11,14 +11,7 @@ export var isFocusable = function (element) {
|
|
|
11
11
|
var validAnchor = nodeName === 'a' && element.hasAttribute('href');
|
|
12
12
|
var validAudioVideo = ['audio', 'video'].includes(nodeName) && element.hasAttribute('controls');
|
|
13
13
|
var validImgObject = ['img', 'object'].includes(nodeName) && element.hasAttribute('usemap');
|
|
14
|
-
var validNativelyFocusable = [
|
|
15
|
-
'button',
|
|
16
|
-
'details',
|
|
17
|
-
'embed',
|
|
18
|
-
'iframe',
|
|
19
|
-
'select',
|
|
20
|
-
'textarea',
|
|
21
|
-
].includes(nodeName) &&
|
|
14
|
+
var validNativelyFocusable = ['button', 'details', 'embed', 'iframe', 'select', 'textarea'].includes(nodeName) &&
|
|
22
15
|
element.getAttribute('tabindex') !== '-1';
|
|
23
16
|
var hasTabIndex = element.getAttribute('tabindex') === '0';
|
|
24
17
|
return (validInput ||
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-react",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
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",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@emotion/styled": "^11.6.0",
|
|
50
50
|
"@popperjs/core": "^2.5.4",
|
|
51
51
|
"@workday/canvas-colors-web": "^2.0.0",
|
|
52
|
-
"@workday/canvas-kit-popup-stack": "^7.
|
|
52
|
+
"@workday/canvas-kit-popup-stack": "^7.3.0",
|
|
53
53
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
54
54
|
"@workday/design-assets-types": "^0.2.8",
|
|
55
55
|
"chroma-js": "^2.1.0",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"@workday/canvas-accent-icons-web": "^3.0.0",
|
|
69
69
|
"@workday/canvas-applet-icons-web": "^2.0.0"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "ea5edda9b7a9f66cf7238bfdc1de77ad822db7b2"
|
|
72
72
|
}
|