@workday/canvas-kit-docs 7.4.0 → 7.4.2
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.
|
@@ -5,7 +5,6 @@ import {HStack} from '@workday/canvas-kit-react/layout';
|
|
|
5
5
|
import {plusIcon, caretDownIcon} from '@workday/canvas-system-icons-web';
|
|
6
6
|
import {space, colors} from '@workday/canvas-kit-react/tokens';
|
|
7
7
|
import {CanvasProvider} from '@workday/canvas-kit-react/common';
|
|
8
|
-
import {customColorTheme} from '../../../../../../utils/storybook';
|
|
9
8
|
import styled from '@emotion/styled';
|
|
10
9
|
|
|
11
10
|
const getDropdownColors = () => {
|
|
@@ -30,6 +29,30 @@ const StyledPrimaryButton = styled(PrimaryButton)({
|
|
|
30
29
|
padding: space.xxs,
|
|
31
30
|
});
|
|
32
31
|
|
|
32
|
+
const customColorTheme = {
|
|
33
|
+
palette: {
|
|
34
|
+
primary: {
|
|
35
|
+
main: 'purple',
|
|
36
|
+
contrast: 'turquoise',
|
|
37
|
+
},
|
|
38
|
+
alert: {
|
|
39
|
+
main: 'coral',
|
|
40
|
+
},
|
|
41
|
+
error: {
|
|
42
|
+
main: 'crimson',
|
|
43
|
+
},
|
|
44
|
+
success: {
|
|
45
|
+
main: 'aquamarine',
|
|
46
|
+
},
|
|
47
|
+
neutral: {
|
|
48
|
+
main: 'gray',
|
|
49
|
+
},
|
|
50
|
+
common: {
|
|
51
|
+
focusOutline: 'turquoise',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
|
|
33
56
|
export default () => (
|
|
34
57
|
<HStack spacing="s" padding="s">
|
|
35
58
|
<PrimaryButton
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
+
multiSelectionManager,
|
|
4
5
|
useListItemRegister,
|
|
5
6
|
useListItemRovingFocus,
|
|
6
7
|
useListItemSelect,
|
|
@@ -9,7 +10,6 @@ import {
|
|
|
9
10
|
ListBox,
|
|
10
11
|
} from '@workday/canvas-kit-react/collection';
|
|
11
12
|
import {composeHooks, createSubcomponent} from '@workday/canvas-kit-react/common';
|
|
12
|
-
import {multiSelectionManager} from '../../lib/useSelectionListModel';
|
|
13
13
|
|
|
14
14
|
const useMultiSelectItem = composeHooks(
|
|
15
15
|
useListItemSelect,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.2",
|
|
4
4
|
"description": "Documentation components of Canvas Kit components",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@storybook/csf": "0.0.1",
|
|
45
|
-
"@workday/canvas-kit-react": "^7.4.
|
|
45
|
+
"@workday/canvas-kit-react": "^7.4.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"fs-extra": "^10.0.0",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"mkdirp": "^1.0.3",
|
|
51
51
|
"typescript": "4.1"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "feeef81b1ceba7ef4f0ff7b286772cfbadd265ef"
|
|
54
54
|
}
|