@workday/canvas-kit-labs-react 6.5.0-next.0 → 6.5.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/combobox/lib/Status.tsx +2 -2
- package/dist/commonjs/combobox/lib/Status.d.ts +1 -1
- package/dist/commonjs/combobox/lib/Status.js +2 -2
- package/dist/es6/combobox/lib/Status.d.ts +1 -1
- package/dist/es6/combobox/lib/Status.js +2 -2
- package/package.json +4 -4
- package/ts3.5/dist/commonjs/combobox/lib/Status.d.ts +1 -1
- package/ts3.5/dist/es6/combobox/lib/Status.d.ts +1 -1
package/combobox/lib/Status.tsx
CHANGED
|
@@ -15,11 +15,11 @@ const Container = styled('div')(accessibleHide);
|
|
|
15
15
|
|
|
16
16
|
const Status = ({
|
|
17
17
|
ariaLive = 'polite',
|
|
18
|
-
role = '
|
|
19
|
-
ariaAtomic = false,
|
|
18
|
+
role = 'status',
|
|
20
19
|
ariaRelevant = 'additions',
|
|
21
20
|
expireMilliseconds = 500,
|
|
22
21
|
announcementText = '',
|
|
22
|
+
ariaAtomic,
|
|
23
23
|
}: StatusProps) => {
|
|
24
24
|
const [displayText, setDisplayText] = useState(announcementText);
|
|
25
25
|
useEffect(() => {
|
|
@@ -6,6 +6,6 @@ export interface StatusProps {
|
|
|
6
6
|
expireMilliseconds?: number;
|
|
7
7
|
announcementText?: string;
|
|
8
8
|
}
|
|
9
|
-
declare const Status: ({ ariaLive, role,
|
|
9
|
+
declare const Status: ({ ariaLive, role, ariaRelevant, expireMilliseconds, announcementText, ariaAtomic, }: StatusProps) => JSX.Element;
|
|
10
10
|
export default Status;
|
|
11
11
|
//# sourceMappingURL=Status.d.ts.map
|
|
@@ -15,8 +15,8 @@ var styled_1 = __importDefault(require("@emotion/styled"));
|
|
|
15
15
|
var common_1 = require("@workday/canvas-kit-react/common");
|
|
16
16
|
var Container = styled_1.default('div')(common_1.accessibleHide);
|
|
17
17
|
var Status = function (_a) {
|
|
18
|
-
var _b = _a.ariaLive, ariaLive = _b === void 0 ? 'polite' : _b, _c = _a.role, role = _c === void 0 ? '
|
|
19
|
-
var
|
|
18
|
+
var _b = _a.ariaLive, ariaLive = _b === void 0 ? 'polite' : _b, _c = _a.role, role = _c === void 0 ? 'status' : _c, _d = _a.ariaRelevant, ariaRelevant = _d === void 0 ? 'additions' : _d, _e = _a.expireMilliseconds, expireMilliseconds = _e === void 0 ? 500 : _e, _f = _a.announcementText, announcementText = _f === void 0 ? '' : _f, ariaAtomic = _a.ariaAtomic;
|
|
19
|
+
var _g = react_1.useState(announcementText), displayText = _g[0], setDisplayText = _g[1];
|
|
20
20
|
react_1.useEffect(function () {
|
|
21
21
|
if (!announcementText) {
|
|
22
22
|
return;
|
|
@@ -6,6 +6,6 @@ export interface StatusProps {
|
|
|
6
6
|
expireMilliseconds?: number;
|
|
7
7
|
announcementText?: string;
|
|
8
8
|
}
|
|
9
|
-
declare const Status: ({ ariaLive, role,
|
|
9
|
+
declare const Status: ({ ariaLive, role, ariaRelevant, expireMilliseconds, announcementText, ariaAtomic, }: StatusProps) => JSX.Element;
|
|
10
10
|
export default Status;
|
|
11
11
|
//# sourceMappingURL=Status.d.ts.map
|
|
@@ -3,8 +3,8 @@ import styled from '@emotion/styled';
|
|
|
3
3
|
import { accessibleHide } from '@workday/canvas-kit-react/common';
|
|
4
4
|
var Container = styled('div')(accessibleHide);
|
|
5
5
|
var Status = function (_a) {
|
|
6
|
-
var _b = _a.ariaLive, ariaLive = _b === void 0 ? 'polite' : _b, _c = _a.role, role = _c === void 0 ? '
|
|
7
|
-
var
|
|
6
|
+
var _b = _a.ariaLive, ariaLive = _b === void 0 ? 'polite' : _b, _c = _a.role, role = _c === void 0 ? 'status' : _c, _d = _a.ariaRelevant, ariaRelevant = _d === void 0 ? 'additions' : _d, _e = _a.expireMilliseconds, expireMilliseconds = _e === void 0 ? 500 : _e, _f = _a.announcementText, announcementText = _f === void 0 ? '' : _f, ariaAtomic = _a.ariaAtomic;
|
|
7
|
+
var _g = useState(announcementText), displayText = _g[0], setDisplayText = _g[1];
|
|
8
8
|
useEffect(function () {
|
|
9
9
|
if (!announcementText) {
|
|
10
10
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-labs-react",
|
|
3
|
-
"version": "6.5.0
|
|
3
|
+
"version": "6.5.0",
|
|
4
4
|
"description": "Canvas Kit Labs is an incubator for new and experimental components. Since we have a rather rigorous process for getting components in at a production level, it can be valuable to make them available earlier while we continuously iterate on the API/functionality. The Labs modules allow us to do that as needed.",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"@emotion/core": "^10.0.28",
|
|
56
56
|
"@emotion/is-prop-valid": "^0.8.2",
|
|
57
57
|
"@emotion/styled": "^10.0.27",
|
|
58
|
-
"@workday/canvas-kit-preview-react": "^6.5.0
|
|
59
|
-
"@workday/canvas-kit-react": "^6.5.0
|
|
58
|
+
"@workday/canvas-kit-preview-react": "^6.5.0",
|
|
59
|
+
"@workday/canvas-kit-react": "^6.5.0",
|
|
60
60
|
"@workday/canvas-system-icons-web": "1.0.41",
|
|
61
61
|
"chroma-js": "^2.1.0",
|
|
62
62
|
"csstype": "^2.6.17",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@types/lodash.flatten": "^4.4.6"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "a358edb5121104ad39aca2d51c717addce8a1ef2"
|
|
70
70
|
}
|
|
@@ -6,6 +6,6 @@ export interface StatusProps {
|
|
|
6
6
|
expireMilliseconds?: number;
|
|
7
7
|
announcementText?: string;
|
|
8
8
|
}
|
|
9
|
-
declare const Status: ({ ariaLive, role,
|
|
9
|
+
declare const Status: ({ ariaLive, role, ariaRelevant, expireMilliseconds, announcementText, ariaAtomic, }: StatusProps) => JSX.Element;
|
|
10
10
|
export default Status;
|
|
11
11
|
//# sourceMappingURL=Status.d.ts.map
|
|
@@ -6,6 +6,6 @@ export interface StatusProps {
|
|
|
6
6
|
expireMilliseconds?: number;
|
|
7
7
|
announcementText?: string;
|
|
8
8
|
}
|
|
9
|
-
declare const Status: ({ ariaLive, role,
|
|
9
|
+
declare const Status: ({ ariaLive, role, ariaRelevant, expireMilliseconds, announcementText, ariaAtomic, }: StatusProps) => JSX.Element;
|
|
10
10
|
export default Status;
|
|
11
11
|
//# sourceMappingURL=Status.d.ts.map
|