@workday/canvas-kit-docs 16.0.0-alpha.0463-next.0 → 16.0.0-alpha.0465-next.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/dist/es6/lib/docs.js +812 -704
- package/dist/mdx/16.0-UPGRADE-GUIDE.mdx +34 -1
- package/dist/mdx/labs-react/kbd/KBD.mdx +13 -0
- package/dist/mdx/labs-react/kbd/examples/InTooltip.tsx +38 -0
- package/dist/mdx/react/dialog/examples/Basic.tsx +4 -6
- package/dist/mdx/react/dialog/examples/DialogWithFallbackPlacements.tsx +13 -37
- package/dist/mdx/react/dialog/examples/Focus.tsx +4 -10
- package/dist/mdx/react/modal/examples/Basic.tsx +4 -5
- package/dist/mdx/react/modal/examples/BodyOverflow.tsx +3 -3
- package/dist/mdx/react/modal/examples/CustomFocus.tsx +6 -5
- package/dist/mdx/react/modal/examples/FormModal.tsx +5 -13
- package/dist/mdx/react/modal/examples/FullOverflow.tsx +3 -3
- package/dist/mdx/react/modal/examples/IframeTest.tsx +3 -5
- package/dist/mdx/react/modal/examples/ModalWithPopup.tsx +6 -8
- package/dist/mdx/react/modal/examples/ModalWithPopupRTL.tsx +6 -6
- package/dist/mdx/react/modal/examples/NoTargetRTL.tsx +3 -3
- package/dist/mdx/react/modal/examples/ReturnFocus.tsx +2 -7
- package/dist/mdx/react/modal/examples/StackedModals.tsx +6 -8
- package/dist/mdx/react/modal/examples/WithTooltips.tsx +22 -20
- package/dist/mdx/react/modal/examples/WithoutCloseIcon.tsx +3 -4
- package/dist/mdx/react/popup/examples/Basic.tsx +4 -10
- package/dist/mdx/react/popup/examples/FocusRedirect.tsx +3 -3
- package/dist/mdx/react/popup/examples/FocusTrap.tsx +3 -3
- package/dist/mdx/react/popup/examples/InitialFocus.tsx +7 -12
- package/dist/mdx/react/popup/examples/InlinePopup.tsx +2 -2
- package/dist/mdx/react/popup/examples/MultiplePopups.tsx +2 -2
- package/dist/mdx/react/popup/examples/NestedPopups.tsx +2 -2
- package/dist/mdx/react/popup/examples/PopupWithFallbackPlacements.tsx +13 -13
- package/dist/mdx/react/popup/examples/RTL.tsx +3 -3
- package/dist/mdx/react/toast/examples/Basic.tsx +1 -1
- package/dist/mdx/react/toast/examples/RTL.tsx +1 -1
- package/dist/mdx/react/toast/examples/ToastAlert.tsx +1 -1
- package/dist/mdx/react/toast/examples/ToastDialog.tsx +1 -1
- package/dist/mdx/react/toast/examples/WithActionLinkAndCloseIcon.tsx +1 -1
- package/dist/mdx/react/toast/examples/WithPopper.tsx +1 -1
- package/dist/mdx/react/tooltip/Tooltip.mdx +1 -1
- package/package.json +6 -6
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
|
|
3
|
-
import {Flex} from '@workday/canvas-kit-react/layout';
|
|
4
3
|
import {Modal, useModalModel} from '@workday/canvas-kit-react/modal';
|
|
5
4
|
import {Popup, useCloseOnOutsideClick, usePopupModel} from '@workday/canvas-kit-react/popup';
|
|
6
5
|
import {Tooltip} from '@workday/canvas-kit-react/tooltip';
|
|
7
|
-
import {system} from '@workday/canvas-tokens-web';
|
|
8
6
|
|
|
9
7
|
export default () => {
|
|
10
8
|
const modal = useModalModel();
|
|
@@ -24,13 +22,13 @@ export default () => {
|
|
|
24
22
|
<Modal.Heading>Open Modal</Modal.Heading>
|
|
25
23
|
<Modal.Body>
|
|
26
24
|
<p>Open a hidable and non-hidable popups</p>
|
|
27
|
-
<
|
|
28
|
-
<Popup.Target model={popup1}>Hidable Popup</Popup.Target>
|
|
29
|
-
<Popup.Target model={popup2}>Non-hidable Popup</Popup.Target>
|
|
25
|
+
<Modal.ButtonGroup>
|
|
30
26
|
<Tooltip title="Not so sure" type="muted">
|
|
31
27
|
<Popup.CloseButton onClick={closeModal}>Cancel</Popup.CloseButton>
|
|
32
28
|
</Tooltip>
|
|
33
|
-
|
|
29
|
+
<Popup.Target model={popup1}>Hidable Popup</Popup.Target>
|
|
30
|
+
<Popup.Target model={popup2}>Non-hidable Popup</Popup.Target>
|
|
31
|
+
</Modal.ButtonGroup>
|
|
34
32
|
</Modal.Body>
|
|
35
33
|
</Modal.Card>
|
|
36
34
|
</Modal.Overlay>
|
|
@@ -42,13 +40,15 @@ export default () => {
|
|
|
42
40
|
<Popup.Heading>Hidable Popup</Popup.Heading>
|
|
43
41
|
<Popup.Body>
|
|
44
42
|
<p>Pressing 'OK' will close the modal</p>
|
|
45
|
-
<
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
43
|
+
<Modal.ButtonGroup>
|
|
44
|
+
<Tooltip
|
|
45
|
+
placement="left"
|
|
46
|
+
title="Really, Really, Really, Really, Really sure"
|
|
47
|
+
type="muted"
|
|
48
|
+
>
|
|
49
|
+
<Popup.CloseButton onClick={closeModal}>OK</Popup.CloseButton>
|
|
50
|
+
</Tooltip>
|
|
51
|
+
</Modal.ButtonGroup>
|
|
52
52
|
</Popup.Body>
|
|
53
53
|
</Popup.Card>
|
|
54
54
|
</Popup.Popper>
|
|
@@ -60,13 +60,15 @@ export default () => {
|
|
|
60
60
|
<Popup.Heading>Non-hidable Popup</Popup.Heading>
|
|
61
61
|
<Popup.Body>
|
|
62
62
|
<p>Pressing 'OK' will close the modal</p>
|
|
63
|
-
<
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
<Modal.ButtonGroup>
|
|
64
|
+
<Tooltip
|
|
65
|
+
placement="left"
|
|
66
|
+
title="Really, Really, Really, Really, Really sure"
|
|
67
|
+
type="muted"
|
|
68
|
+
>
|
|
69
|
+
<Popup.CloseButton onClick={closeModal}>OK</Popup.CloseButton>
|
|
70
|
+
</Tooltip>
|
|
71
|
+
</Modal.ButtonGroup>
|
|
70
72
|
</Popup.Body>
|
|
71
73
|
</Popup.Card>
|
|
72
74
|
</Popup.Popper>
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import {DeleteButton} from '@workday/canvas-kit-react/button';
|
|
4
4
|
import {useUniqueId} from '@workday/canvas-kit-react/common';
|
|
5
|
-
import {Box
|
|
5
|
+
import {Box} from '@workday/canvas-kit-react/layout';
|
|
6
6
|
import {Modal} from '@workday/canvas-kit-react/modal';
|
|
7
7
|
import {
|
|
8
8
|
useAssistiveHideSiblings,
|
|
@@ -12,7 +12,6 @@ import {
|
|
|
12
12
|
usePopupModel,
|
|
13
13
|
useReturnFocus,
|
|
14
14
|
} from '@workday/canvas-kit-react/popup';
|
|
15
|
-
import {system} from '@workday/canvas-tokens-web';
|
|
16
15
|
|
|
17
16
|
export default () => {
|
|
18
17
|
const longDescId = useUniqueId();
|
|
@@ -42,12 +41,12 @@ export default () => {
|
|
|
42
41
|
Are you sure you want to delete the item?
|
|
43
42
|
</Box>
|
|
44
43
|
</Modal.Body>
|
|
45
|
-
<
|
|
44
|
+
<Modal.ButtonGroup>
|
|
46
45
|
<Modal.CloseButton ref={cancelBtnRef}>Cancel</Modal.CloseButton>
|
|
47
46
|
<Modal.CloseButton as={DeleteButton} onClick={handleDelete}>
|
|
48
47
|
Delete
|
|
49
48
|
</Modal.CloseButton>
|
|
50
|
-
</
|
|
49
|
+
</Modal.ButtonGroup>
|
|
51
50
|
</Modal.Card>
|
|
52
51
|
</Modal.Overlay>
|
|
53
52
|
</Modal>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {DeleteButton} from '@workday/canvas-kit-react/button';
|
|
2
|
-
import {Box
|
|
2
|
+
import {Box} from '@workday/canvas-kit-react/layout';
|
|
3
3
|
import {
|
|
4
4
|
Popup,
|
|
5
5
|
useCloseOnEscape,
|
|
@@ -10,7 +10,6 @@ import {
|
|
|
10
10
|
useReturnFocus,
|
|
11
11
|
} from '@workday/canvas-kit-react/popup';
|
|
12
12
|
import {createStyles, px2rem} from '@workday/canvas-kit-styling';
|
|
13
|
-
import {system} from '@workday/canvas-tokens-web';
|
|
14
13
|
|
|
15
14
|
const cardStyles = createStyles({
|
|
16
15
|
width: px2rem(400),
|
|
@@ -20,11 +19,6 @@ const bodyStyles = createStyles({
|
|
|
20
19
|
marginBlock: '0',
|
|
21
20
|
});
|
|
22
21
|
|
|
23
|
-
const flexStyles = createStyles({
|
|
24
|
-
gap: system.gap.md,
|
|
25
|
-
padding: system.padding.xs,
|
|
26
|
-
});
|
|
27
|
-
|
|
28
22
|
export default () => {
|
|
29
23
|
const model = usePopupModel();
|
|
30
24
|
|
|
@@ -50,12 +44,12 @@ export default () => {
|
|
|
50
44
|
Are you sure you'd like to delete the item titled 'My Item'?
|
|
51
45
|
</Box>
|
|
52
46
|
</Popup.Body>
|
|
53
|
-
<
|
|
47
|
+
<Popup.ButtonGroup>
|
|
48
|
+
<Popup.CloseButton>Cancel</Popup.CloseButton>
|
|
54
49
|
<Popup.CloseButton as={DeleteButton} onClick={handleDelete}>
|
|
55
50
|
Delete
|
|
56
51
|
</Popup.CloseButton>
|
|
57
|
-
|
|
58
|
-
</Flex>
|
|
52
|
+
</Popup.ButtonGroup>
|
|
59
53
|
</Popup.Card>
|
|
60
54
|
</Popup.Popper>
|
|
61
55
|
</Popup>
|
|
@@ -63,12 +63,12 @@ export default () => {
|
|
|
63
63
|
Are you sure you'd like to delete the item titled 'My Item'?
|
|
64
64
|
</Box>
|
|
65
65
|
</Popup.Body>
|
|
66
|
-
<
|
|
66
|
+
<Popup.ButtonGroup>
|
|
67
|
+
<Popup.CloseButton>Cancel</Popup.CloseButton>
|
|
67
68
|
<Popup.CloseButton as={DeleteButton} onClick={handleDelete}>
|
|
68
69
|
Delete
|
|
69
70
|
</Popup.CloseButton>
|
|
70
|
-
|
|
71
|
-
</Flex>
|
|
71
|
+
</Popup.ButtonGroup>
|
|
72
72
|
</Popup.Card>
|
|
73
73
|
</Popup.Popper>
|
|
74
74
|
<SecondaryButton>Next Focusable Button</SecondaryButton>
|
|
@@ -49,12 +49,12 @@ export default () => {
|
|
|
49
49
|
Are you sure you'd like to delete the item titled 'My Item'?
|
|
50
50
|
</Box>
|
|
51
51
|
</Popup.Body>
|
|
52
|
-
<
|
|
52
|
+
<Popup.ButtonGroup>
|
|
53
|
+
<Popup.CloseButton>Cancel</Popup.CloseButton>
|
|
53
54
|
<Popup.CloseButton as={DeleteButton} onClick={handleDelete}>
|
|
54
55
|
Delete
|
|
55
56
|
</Popup.CloseButton>
|
|
56
|
-
|
|
57
|
-
</Flex>
|
|
57
|
+
</Popup.ButtonGroup>
|
|
58
58
|
</Popup.Card>
|
|
59
59
|
</Popup.Popper>
|
|
60
60
|
<SecondaryButton>Next Focusable Button</SecondaryButton>
|
|
@@ -26,11 +26,6 @@ const bodyStyles = createStyles({
|
|
|
26
26
|
marginBlock: '0',
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
const flexStyles = createStyles({
|
|
30
|
-
gap: system.gap.md,
|
|
31
|
-
padding: system.padding.xs,
|
|
32
|
-
});
|
|
33
|
-
|
|
34
29
|
const columnStyles = createStyles({
|
|
35
30
|
gap: system.gap.md,
|
|
36
31
|
alignItems: 'flex-start',
|
|
@@ -60,11 +55,11 @@ const InitialFocusOnButton = () => {
|
|
|
60
55
|
Your message has been sent!
|
|
61
56
|
</Text>
|
|
62
57
|
</Popup.Body>
|
|
63
|
-
<
|
|
58
|
+
<Popup.ButtonGroup>
|
|
64
59
|
<Popup.CloseButton as={PrimaryButton} ref={initialFocusRef}>
|
|
65
60
|
OK
|
|
66
61
|
</Popup.CloseButton>
|
|
67
|
-
</
|
|
62
|
+
</Popup.ButtonGroup>
|
|
68
63
|
</Popup.Card>
|
|
69
64
|
</Popup.Popper>
|
|
70
65
|
</Popup>
|
|
@@ -96,10 +91,10 @@ const InitialFocusOnTextInput = () => {
|
|
|
96
91
|
<FormField.Input as={TextInput} ref={initialFocusRef} />
|
|
97
92
|
</FormField>
|
|
98
93
|
</Popup.Body>
|
|
99
|
-
<
|
|
100
|
-
<Popup.CloseButton as={PrimaryButton}>Send</Popup.CloseButton>
|
|
94
|
+
<Popup.ButtonGroup>
|
|
101
95
|
<Popup.CloseButton>Cancel</Popup.CloseButton>
|
|
102
|
-
|
|
96
|
+
<Popup.CloseButton as={PrimaryButton}>Send</Popup.CloseButton>
|
|
97
|
+
</Popup.ButtonGroup>
|
|
103
98
|
</Popup.Card>
|
|
104
99
|
</Popup.Popper>
|
|
105
100
|
</Popup>
|
|
@@ -129,9 +124,9 @@ const InitialFocusOnHeading = () => {
|
|
|
129
124
|
<Popup.Body>
|
|
130
125
|
<Text cs={bodyStyles}>Review the summary below before continuing.</Text>
|
|
131
126
|
</Popup.Body>
|
|
132
|
-
<
|
|
127
|
+
<Popup.ButtonGroup>
|
|
133
128
|
<Popup.CloseButton as={PrimaryButton}>Continue</Popup.CloseButton>
|
|
134
|
-
</
|
|
129
|
+
</Popup.ButtonGroup>
|
|
135
130
|
</Popup.Card>
|
|
136
131
|
</Popup.Popper>
|
|
137
132
|
</Popup>
|
|
@@ -90,10 +90,10 @@ function SingleInlinePopup({
|
|
|
90
90
|
<Popup.Body>
|
|
91
91
|
<Box as="p">Are you sure you'd like to delete the item titled 'My Item'?</Box>
|
|
92
92
|
</Popup.Body>
|
|
93
|
-
<
|
|
93
|
+
<Popup.ButtonGroup>
|
|
94
94
|
<Popup.CloseButton ref={initialFocusRef}>Cancel</Popup.CloseButton>
|
|
95
95
|
<Popup.CloseButton as={DeleteButton}>Delete</Popup.CloseButton>
|
|
96
|
-
</
|
|
96
|
+
</Popup.ButtonGroup>
|
|
97
97
|
</Popup.Card>
|
|
98
98
|
</Popup.Popper>
|
|
99
99
|
</Popup>
|
|
@@ -46,12 +46,12 @@ export default () => {
|
|
|
46
46
|
<Popup.Body>
|
|
47
47
|
<p style={{marginBlockStart: 0, marginBlockEnd: 0}}>Contents of Popup 2</p>
|
|
48
48
|
</Popup.Body>
|
|
49
|
-
<
|
|
49
|
+
<Popup.ButtonGroup>
|
|
50
50
|
<Popup.CloseButton as={Popup.CloseButton} model={popup1}>
|
|
51
51
|
Close Both (as)
|
|
52
52
|
</Popup.CloseButton>
|
|
53
53
|
<SecondaryButton {...closeBothProps}>Close Both (props)</SecondaryButton>
|
|
54
|
-
</
|
|
54
|
+
</Popup.ButtonGroup>
|
|
55
55
|
</Popup.Card>
|
|
56
56
|
</Popup.Popper>
|
|
57
57
|
</Popup>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {DeleteButton} from '@workday/canvas-kit-react/button';
|
|
2
|
-
import {
|
|
2
|
+
import {Grid} from '@workday/canvas-kit-react/layout';
|
|
3
3
|
import {
|
|
4
4
|
Popup,
|
|
5
5
|
useCloseOnEscape,
|
|
@@ -63,12 +63,12 @@ export default () => {
|
|
|
63
63
|
This is Popup heading
|
|
64
64
|
</Popup.Heading>
|
|
65
65
|
<Popup.Body>Are you sure you'd like to delete the item titled 'My Item'?</Popup.Body>
|
|
66
|
-
<
|
|
66
|
+
<Popup.ButtonGroup>
|
|
67
|
+
<Popup.CloseButton>Cancel</Popup.CloseButton>
|
|
67
68
|
<Popup.CloseButton as={DeleteButton} onClick={handleDelete}>
|
|
68
69
|
Delete
|
|
69
70
|
</Popup.CloseButton>
|
|
70
|
-
|
|
71
|
-
</Flex>
|
|
71
|
+
</Popup.ButtonGroup>
|
|
72
72
|
</Popup.Card>
|
|
73
73
|
</Popup.Popper>
|
|
74
74
|
</Popup>
|
|
@@ -83,12 +83,12 @@ export default () => {
|
|
|
83
83
|
This is Popup heading
|
|
84
84
|
</Popup.Heading>
|
|
85
85
|
<Popup.Body>Are you sure you'd like to delete the item titled 'My Item'?</Popup.Body>
|
|
86
|
-
<
|
|
86
|
+
<Popup.ButtonGroup>
|
|
87
|
+
<Popup.CloseButton>Cancel</Popup.CloseButton>
|
|
87
88
|
<Popup.CloseButton as={DeleteButton} onClick={handleDelete}>
|
|
88
89
|
Delete
|
|
89
90
|
</Popup.CloseButton>
|
|
90
|
-
|
|
91
|
-
</Flex>
|
|
91
|
+
</Popup.ButtonGroup>
|
|
92
92
|
</Popup.Card>
|
|
93
93
|
</Popup.Popper>
|
|
94
94
|
</Popup>
|
|
@@ -103,12 +103,12 @@ export default () => {
|
|
|
103
103
|
This is Popup heading
|
|
104
104
|
</Popup.Heading>
|
|
105
105
|
<Popup.Body>Are you sure you'd like to delete the item titled 'My Item'?</Popup.Body>
|
|
106
|
-
<
|
|
106
|
+
<Popup.ButtonGroup>
|
|
107
|
+
<Popup.CloseButton>Cancel</Popup.CloseButton>
|
|
107
108
|
<Popup.CloseButton as={DeleteButton} onClick={handleDelete}>
|
|
108
109
|
Delete
|
|
109
110
|
</Popup.CloseButton>
|
|
110
|
-
|
|
111
|
-
</Flex>
|
|
111
|
+
</Popup.ButtonGroup>
|
|
112
112
|
</Popup.Card>
|
|
113
113
|
</Popup.Popper>
|
|
114
114
|
</Popup>
|
|
@@ -123,12 +123,12 @@ export default () => {
|
|
|
123
123
|
This is Popup heading
|
|
124
124
|
</Popup.Heading>
|
|
125
125
|
<Popup.Body>Are you sure you'd like to delete the item titled 'My Item'?</Popup.Body>
|
|
126
|
-
<
|
|
126
|
+
<Popup.ButtonGroup>
|
|
127
|
+
<Popup.CloseButton>Cancel</Popup.CloseButton>
|
|
127
128
|
<Popup.CloseButton as={DeleteButton} onClick={handleDelete}>
|
|
128
129
|
Delete
|
|
129
130
|
</Popup.CloseButton>
|
|
130
|
-
|
|
131
|
-
</Flex>
|
|
131
|
+
</Popup.ButtonGroup>
|
|
132
132
|
</Popup.Card>
|
|
133
133
|
</Popup.Popper>
|
|
134
134
|
</Popup>
|
|
@@ -16,10 +16,10 @@ export default () => {
|
|
|
16
16
|
האם ברצונך למחוק פריט זה
|
|
17
17
|
</Box>
|
|
18
18
|
</Popup.Body>
|
|
19
|
-
<
|
|
20
|
-
<DeleteButton>לִמְחוֹק</DeleteButton>
|
|
19
|
+
<Popup.ButtonGroup>
|
|
21
20
|
<SecondaryButton>לְבַטֵל</SecondaryButton>
|
|
22
|
-
|
|
21
|
+
<DeleteButton>לִמְחוֹק</DeleteButton>
|
|
22
|
+
</Popup.ButtonGroup>
|
|
23
23
|
</Popup.Card>
|
|
24
24
|
</CanvasProvider>
|
|
25
25
|
);
|
|
@@ -5,7 +5,7 @@ import {system} from '@workday/canvas-tokens-web';
|
|
|
5
5
|
export default () => {
|
|
6
6
|
return (
|
|
7
7
|
<Toast>
|
|
8
|
-
<Toast.Icon icon={checkIcon} color={system.color.fg.
|
|
8
|
+
<Toast.Icon icon={checkIcon} color={system.color.brand.fg.positive.default} />
|
|
9
9
|
<Toast.Body>
|
|
10
10
|
<Toast.Message>Your workbook was successfully processed.</Toast.Message>
|
|
11
11
|
</Toast.Body>
|
|
@@ -9,7 +9,7 @@ export default () => {
|
|
|
9
9
|
return (
|
|
10
10
|
<CanvasProvider dir="rtl">
|
|
11
11
|
<Toast>
|
|
12
|
-
<Toast.Icon icon={checkIcon} color={system.color.fg.
|
|
12
|
+
<Toast.Icon icon={checkIcon} color={system.color.brand.fg.positive.default} />
|
|
13
13
|
<Toast.Body>
|
|
14
14
|
<Toast.Message>Your workbook was successfully processed.</Toast.Message>
|
|
15
15
|
</Toast.Body>
|
|
@@ -4,7 +4,7 @@ import {system} from '@workday/canvas-tokens-web';
|
|
|
4
4
|
|
|
5
5
|
export default () => (
|
|
6
6
|
<Toast mode="alert">
|
|
7
|
-
<Toast.Icon icon={exclamationCircleIcon} color={system.color.fg.
|
|
7
|
+
<Toast.Icon icon={exclamationCircleIcon} color={system.color.brand.fg.caution.default} />
|
|
8
8
|
<Toast.Body>
|
|
9
9
|
<Toast.Message>There was an error with your workbook.</Toast.Message>
|
|
10
10
|
</Toast.Body>
|
|
@@ -4,7 +4,7 @@ import {system} from '@workday/canvas-tokens-web';
|
|
|
4
4
|
|
|
5
5
|
export default () => (
|
|
6
6
|
<Toast mode="dialog" aria-label="notification">
|
|
7
|
-
<Toast.Icon icon={checkIcon} color={system.color.fg.
|
|
7
|
+
<Toast.Icon icon={checkIcon} color={system.color.brand.fg.positive.default} />
|
|
8
8
|
<Toast.Body>
|
|
9
9
|
<Toast.Message>Your workbook was successfully processed.</Toast.Message>
|
|
10
10
|
<Toast.Link href="#hreflink">Custom Link</Toast.Link>
|
|
@@ -7,7 +7,7 @@ export default () => {
|
|
|
7
7
|
|
|
8
8
|
return (
|
|
9
9
|
<Toast mode="dialog" aria-label="notification">
|
|
10
|
-
<Toast.Icon icon={checkIcon} color={system.color.fg.
|
|
10
|
+
<Toast.Icon icon={checkIcon} color={system.color.brand.fg.positive.default} />
|
|
11
11
|
<Toast.Body>
|
|
12
12
|
<Toast.Message>Your workbook was successfully</Toast.Message>
|
|
13
13
|
<Toast.Link href="#hyperlink">Custom Link</Toast.Link>
|
|
@@ -23,7 +23,7 @@ export default () => {
|
|
|
23
23
|
<SecondaryButton onClick={handleOpen}>Show Toast</SecondaryButton>
|
|
24
24
|
<Popper placement="bottom-end" open={open} anchorElement={containerRef}>
|
|
25
25
|
<Toast mode="dialog" aria-label="notification">
|
|
26
|
-
<Toast.Icon icon={checkIcon} color={system.color.fg.
|
|
26
|
+
<Toast.Icon icon={checkIcon} color={system.color.brand.fg.positive.default} />
|
|
27
27
|
<Toast.Body>
|
|
28
28
|
<Toast.Message>Your workbook was successfully processed.</Toast.Message>
|
|
29
29
|
</Toast.Body>
|
|
@@ -72,7 +72,7 @@ and focus events.
|
|
|
72
72
|
{' '}
|
|
73
73
|
Caution: Describe type has been deprecated{' '}
|
|
74
74
|
</InformationHighlight.Heading>
|
|
75
|
-
<InformationHighlight.Body>
|
|
75
|
+
<InformationHighlight.Body cs={{'p': {display: 'inline-block'}}}>
|
|
76
76
|
Assistive technology may ignore{' '}
|
|
77
77
|
<StatusIndicator variant="gray">
|
|
78
78
|
<StatusIndicator.Label cs={{textTransform: 'lowercase'}}>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "16.0.0-alpha.
|
|
3
|
+
"version": "16.0.0-alpha.0465-next.0",
|
|
4
4
|
"description": "Documentation components of Canvas Kit components",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"@stackblitz/sdk": "^1.11.0",
|
|
48
48
|
"@storybook/csf": "0.0.1",
|
|
49
49
|
"@workday/canvas-expressive-icons-web": "1.0.2",
|
|
50
|
-
"@workday/canvas-kit-labs-react": "^16.0.0-alpha.
|
|
51
|
-
"@workday/canvas-kit-preview-react": "^16.0.0-alpha.
|
|
52
|
-
"@workday/canvas-kit-react": "^16.0.0-alpha.
|
|
53
|
-
"@workday/canvas-kit-styling": "^16.0.0-alpha.
|
|
50
|
+
"@workday/canvas-kit-labs-react": "^16.0.0-alpha.0465-next.0",
|
|
51
|
+
"@workday/canvas-kit-preview-react": "^16.0.0-alpha.0465-next.0",
|
|
52
|
+
"@workday/canvas-kit-react": "^16.0.0-alpha.0465-next.0",
|
|
53
|
+
"@workday/canvas-kit-styling": "^16.0.0-alpha.0465-next.0",
|
|
54
54
|
"@workday/canvas-system-icons-web": "4.0.4",
|
|
55
55
|
"@workday/canvas-tokens-web": "4.4.0-beta.6",
|
|
56
56
|
"markdown-to-jsx": "^7.2.0",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"mkdirp": "^1.0.3",
|
|
64
64
|
"typescript": "5.0"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "02dd284d77ccf92991d5526190f453d442ccebcc"
|
|
67
67
|
}
|