@workday/canvas-kit-docs 7.3.13 → 7.3.15
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/commonjs/lib/specs.js +97 -1
- package/dist/es6/lib/specs.js +97 -1
- package/dist/mdx/react/modal/examples/Basic.tsx +14 -9
- package/dist/mdx/react/modal/examples/BodyOverflow.tsx +71 -32
- package/dist/mdx/react/modal/examples/CustomFocus.tsx +9 -9
- package/dist/mdx/react/modal/examples/CustomTarget.tsx +7 -2
- package/dist/mdx/react/modal/examples/FullOverflow.tsx +71 -32
- package/package.json +3 -3
|
@@ -1996,7 +1996,7 @@ module.exports = {specifications: [
|
|
|
1996
1996
|
},
|
|
1997
1997
|
{
|
|
1998
1998
|
"type": "it",
|
|
1999
|
-
"name": "should transfer focus to the
|
|
1999
|
+
"name": "should transfer focus to the Acknowledge button element"
|
|
2000
2000
|
},
|
|
2001
2001
|
{
|
|
2002
2002
|
"type": "it",
|
|
@@ -2778,6 +2778,102 @@ module.exports = {specifications: [
|
|
|
2778
2778
|
}
|
|
2779
2779
|
]
|
|
2780
2780
|
},
|
|
2781
|
+
{
|
|
2782
|
+
"type": "describe",
|
|
2783
|
+
"name": "given the [Testing/React/Popups/Popup, MixedPopupTypes] story is rendered",
|
|
2784
|
+
"children": [
|
|
2785
|
+
{
|
|
2786
|
+
"type": "describe",
|
|
2787
|
+
"name": "when the \"Open Popup\" is clicked",
|
|
2788
|
+
"children": [
|
|
2789
|
+
{
|
|
2790
|
+
"type": "describe",
|
|
2791
|
+
"name": "when the user clicks outside",
|
|
2792
|
+
"children": [
|
|
2793
|
+
{
|
|
2794
|
+
"type": "it",
|
|
2795
|
+
"name": "should focus the \"Open Popup\" button"
|
|
2796
|
+
}
|
|
2797
|
+
]
|
|
2798
|
+
},
|
|
2799
|
+
{
|
|
2800
|
+
"type": "describe",
|
|
2801
|
+
"name": "when the user clicks the input",
|
|
2802
|
+
"children": [
|
|
2803
|
+
{
|
|
2804
|
+
"type": "it",
|
|
2805
|
+
"name": "should not focus the \"Open Popup\" button"
|
|
2806
|
+
}
|
|
2807
|
+
]
|
|
2808
|
+
},
|
|
2809
|
+
{
|
|
2810
|
+
"type": "describe",
|
|
2811
|
+
"name": "when the user scrolls to the top",
|
|
2812
|
+
"children": [
|
|
2813
|
+
{
|
|
2814
|
+
"type": "describe",
|
|
2815
|
+
"name": "when the user clicks outside",
|
|
2816
|
+
"children": [
|
|
2817
|
+
{
|
|
2818
|
+
"type": "it",
|
|
2819
|
+
"name": "should not focus the \"Open Popup\" button"
|
|
2820
|
+
}
|
|
2821
|
+
]
|
|
2822
|
+
}
|
|
2823
|
+
]
|
|
2824
|
+
},
|
|
2825
|
+
{
|
|
2826
|
+
"type": "describe",
|
|
2827
|
+
"name": "when the user scrolls to the bottom",
|
|
2828
|
+
"children": [
|
|
2829
|
+
{
|
|
2830
|
+
"type": "describe",
|
|
2831
|
+
"name": "when the user clicks outside",
|
|
2832
|
+
"children": [
|
|
2833
|
+
{
|
|
2834
|
+
"type": "it",
|
|
2835
|
+
"name": "should not focus the \"Open Popup\" button"
|
|
2836
|
+
}
|
|
2837
|
+
]
|
|
2838
|
+
}
|
|
2839
|
+
]
|
|
2840
|
+
},
|
|
2841
|
+
{
|
|
2842
|
+
"type": "describe",
|
|
2843
|
+
"name": "when the user scrolls to the right",
|
|
2844
|
+
"children": [
|
|
2845
|
+
{
|
|
2846
|
+
"type": "describe",
|
|
2847
|
+
"name": "when the user clicks outside",
|
|
2848
|
+
"children": [
|
|
2849
|
+
{
|
|
2850
|
+
"type": "it",
|
|
2851
|
+
"name": "should not focus the \"Open Popup\" button"
|
|
2852
|
+
}
|
|
2853
|
+
]
|
|
2854
|
+
}
|
|
2855
|
+
]
|
|
2856
|
+
},
|
|
2857
|
+
{
|
|
2858
|
+
"type": "describe",
|
|
2859
|
+
"name": "when the user scrolls to the left",
|
|
2860
|
+
"children": [
|
|
2861
|
+
{
|
|
2862
|
+
"type": "describe",
|
|
2863
|
+
"name": "when the user clicks outside",
|
|
2864
|
+
"children": [
|
|
2865
|
+
{
|
|
2866
|
+
"type": "it",
|
|
2867
|
+
"name": "should not focus the \"Open Popup\" button"
|
|
2868
|
+
}
|
|
2869
|
+
]
|
|
2870
|
+
}
|
|
2871
|
+
]
|
|
2872
|
+
}
|
|
2873
|
+
]
|
|
2874
|
+
}
|
|
2875
|
+
]
|
|
2876
|
+
},
|
|
2781
2877
|
{
|
|
2782
2878
|
"type": "describe",
|
|
2783
2879
|
"name": "given the [Testing/React/Popups/Popup, TooltipReturnFocus] example is rendered",
|
package/dist/es6/lib/specs.js
CHANGED
|
@@ -1996,7 +1996,7 @@ module.exports = {specifications: [
|
|
|
1996
1996
|
},
|
|
1997
1997
|
{
|
|
1998
1998
|
"type": "it",
|
|
1999
|
-
"name": "should transfer focus to the
|
|
1999
|
+
"name": "should transfer focus to the Acknowledge button element"
|
|
2000
2000
|
},
|
|
2001
2001
|
{
|
|
2002
2002
|
"type": "it",
|
|
@@ -2778,6 +2778,102 @@ module.exports = {specifications: [
|
|
|
2778
2778
|
}
|
|
2779
2779
|
]
|
|
2780
2780
|
},
|
|
2781
|
+
{
|
|
2782
|
+
"type": "describe",
|
|
2783
|
+
"name": "given the [Testing/React/Popups/Popup, MixedPopupTypes] story is rendered",
|
|
2784
|
+
"children": [
|
|
2785
|
+
{
|
|
2786
|
+
"type": "describe",
|
|
2787
|
+
"name": "when the \"Open Popup\" is clicked",
|
|
2788
|
+
"children": [
|
|
2789
|
+
{
|
|
2790
|
+
"type": "describe",
|
|
2791
|
+
"name": "when the user clicks outside",
|
|
2792
|
+
"children": [
|
|
2793
|
+
{
|
|
2794
|
+
"type": "it",
|
|
2795
|
+
"name": "should focus the \"Open Popup\" button"
|
|
2796
|
+
}
|
|
2797
|
+
]
|
|
2798
|
+
},
|
|
2799
|
+
{
|
|
2800
|
+
"type": "describe",
|
|
2801
|
+
"name": "when the user clicks the input",
|
|
2802
|
+
"children": [
|
|
2803
|
+
{
|
|
2804
|
+
"type": "it",
|
|
2805
|
+
"name": "should not focus the \"Open Popup\" button"
|
|
2806
|
+
}
|
|
2807
|
+
]
|
|
2808
|
+
},
|
|
2809
|
+
{
|
|
2810
|
+
"type": "describe",
|
|
2811
|
+
"name": "when the user scrolls to the top",
|
|
2812
|
+
"children": [
|
|
2813
|
+
{
|
|
2814
|
+
"type": "describe",
|
|
2815
|
+
"name": "when the user clicks outside",
|
|
2816
|
+
"children": [
|
|
2817
|
+
{
|
|
2818
|
+
"type": "it",
|
|
2819
|
+
"name": "should not focus the \"Open Popup\" button"
|
|
2820
|
+
}
|
|
2821
|
+
]
|
|
2822
|
+
}
|
|
2823
|
+
]
|
|
2824
|
+
},
|
|
2825
|
+
{
|
|
2826
|
+
"type": "describe",
|
|
2827
|
+
"name": "when the user scrolls to the bottom",
|
|
2828
|
+
"children": [
|
|
2829
|
+
{
|
|
2830
|
+
"type": "describe",
|
|
2831
|
+
"name": "when the user clicks outside",
|
|
2832
|
+
"children": [
|
|
2833
|
+
{
|
|
2834
|
+
"type": "it",
|
|
2835
|
+
"name": "should not focus the \"Open Popup\" button"
|
|
2836
|
+
}
|
|
2837
|
+
]
|
|
2838
|
+
}
|
|
2839
|
+
]
|
|
2840
|
+
},
|
|
2841
|
+
{
|
|
2842
|
+
"type": "describe",
|
|
2843
|
+
"name": "when the user scrolls to the right",
|
|
2844
|
+
"children": [
|
|
2845
|
+
{
|
|
2846
|
+
"type": "describe",
|
|
2847
|
+
"name": "when the user clicks outside",
|
|
2848
|
+
"children": [
|
|
2849
|
+
{
|
|
2850
|
+
"type": "it",
|
|
2851
|
+
"name": "should not focus the \"Open Popup\" button"
|
|
2852
|
+
}
|
|
2853
|
+
]
|
|
2854
|
+
}
|
|
2855
|
+
]
|
|
2856
|
+
},
|
|
2857
|
+
{
|
|
2858
|
+
"type": "describe",
|
|
2859
|
+
"name": "when the user scrolls to the left",
|
|
2860
|
+
"children": [
|
|
2861
|
+
{
|
|
2862
|
+
"type": "describe",
|
|
2863
|
+
"name": "when the user clicks outside",
|
|
2864
|
+
"children": [
|
|
2865
|
+
{
|
|
2866
|
+
"type": "it",
|
|
2867
|
+
"name": "should not focus the \"Open Popup\" button"
|
|
2868
|
+
}
|
|
2869
|
+
]
|
|
2870
|
+
}
|
|
2871
|
+
]
|
|
2872
|
+
}
|
|
2873
|
+
]
|
|
2874
|
+
}
|
|
2875
|
+
]
|
|
2876
|
+
},
|
|
2781
2877
|
{
|
|
2782
2878
|
"type": "describe",
|
|
2783
2879
|
"name": "given the [Testing/React/Popups/Popup, TooltipReturnFocus] example is rendered",
|
|
@@ -1,31 +1,36 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import {Modal} from '@workday/canvas-kit-react/modal';
|
|
4
|
-
import {
|
|
4
|
+
import {PrimaryButton} from '@workday/canvas-kit-react/button';
|
|
5
5
|
import {HStack, Box} from '@workday/canvas-kit-react/layout';
|
|
6
6
|
|
|
7
7
|
export default () => {
|
|
8
|
-
const
|
|
9
|
-
console.log('
|
|
8
|
+
const handleAcknowledge = () => {
|
|
9
|
+
console.log('License Acknowledged');
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const handleCancel = () => {
|
|
13
|
+
console.log('Cancel clicked');
|
|
10
14
|
};
|
|
11
15
|
|
|
12
16
|
return (
|
|
13
17
|
<Modal>
|
|
14
|
-
<Modal.Target as={
|
|
18
|
+
<Modal.Target as={PrimaryButton}>Open License</Modal.Target>
|
|
15
19
|
<Modal.Overlay>
|
|
16
20
|
<Modal.Card>
|
|
17
21
|
<Modal.CloseIcon aria-label="Close" />
|
|
18
|
-
<Modal.Heading>
|
|
22
|
+
<Modal.Heading>MIT License</Modal.Heading>
|
|
19
23
|
<Modal.Body>
|
|
20
24
|
<Box as="p" marginY="zero">
|
|
21
|
-
|
|
25
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this
|
|
26
|
+
software and associated documentation files (the "Software").
|
|
22
27
|
</Box>
|
|
23
28
|
</Modal.Body>
|
|
24
29
|
<HStack spacing="s" padding="xxs" marginTop="xxs">
|
|
25
|
-
<Modal.CloseButton as={
|
|
26
|
-
|
|
30
|
+
<Modal.CloseButton as={PrimaryButton} onClick={handleAcknowledge}>
|
|
31
|
+
Acknowledge
|
|
27
32
|
</Modal.CloseButton>
|
|
28
|
-
<Modal.CloseButton>Cancel</Modal.CloseButton>
|
|
33
|
+
<Modal.CloseButton onClick={handleCancel}>Cancel</Modal.CloseButton>
|
|
29
34
|
</HStack>
|
|
30
35
|
</Modal.Card>
|
|
31
36
|
</Modal.Overlay>
|
|
@@ -1,52 +1,91 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import {Modal} from '@workday/canvas-kit-react/modal';
|
|
4
|
-
import {
|
|
4
|
+
import {PrimaryButton} from '@workday/canvas-kit-react/button';
|
|
5
5
|
import {HStack} from '@workday/canvas-kit-react/layout';
|
|
6
6
|
|
|
7
7
|
export default () => {
|
|
8
|
-
const
|
|
9
|
-
console.log('
|
|
8
|
+
const handleAcknowledge = () => {
|
|
9
|
+
console.log('License Acknowledged');
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const handleCancel = () => {
|
|
13
|
+
console.log('Cancel clicked');
|
|
10
14
|
};
|
|
11
15
|
|
|
12
16
|
return (
|
|
13
17
|
<Modal>
|
|
14
|
-
<Modal.Target as={
|
|
18
|
+
<Modal.Target as={PrimaryButton}>Open License</Modal.Target>
|
|
15
19
|
<Modal.Overlay>
|
|
16
20
|
<Modal.Card>
|
|
17
21
|
<Modal.CloseIcon aria-label="Close" />
|
|
18
|
-
<Modal.Heading>
|
|
22
|
+
<Modal.Heading>MIT License</Modal.Heading>
|
|
19
23
|
<Modal.Body>
|
|
20
|
-
<p
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
<p>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<p>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<p>
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
24
|
+
<p style={{marginTop: 0}}>
|
|
25
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this
|
|
26
|
+
software and associated documentation files (the "Software"), to deal in the Software
|
|
27
|
+
without restriction, including without limitation the rights to use, copy, modify,
|
|
28
|
+
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
|
|
29
|
+
permit persons to whom the Software is furnished to do so, subject to the following
|
|
30
|
+
conditions:
|
|
31
|
+
</p>
|
|
32
|
+
<p>
|
|
33
|
+
The above copyright notice and this permission notice shall be included in all copies
|
|
34
|
+
or substantial portions of the Software.
|
|
35
|
+
</p>
|
|
36
|
+
<p>
|
|
37
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
38
|
+
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
39
|
+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
40
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
|
41
|
+
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
|
|
42
|
+
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
43
|
+
</p>
|
|
44
|
+
<p>
|
|
45
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
|
|
46
|
+
incididunt ut labore et dolore magna aliqua. Amet massa vitae tortor condimentum
|
|
47
|
+
lacinia quis. Fermentum odio eu feugiat pretium nibh ipsum consequat nisl. Sed lectus
|
|
48
|
+
vestibulum mattis ullamcorper velit sed. Rutrum tellus pellentesque eu tincidunt
|
|
49
|
+
tortor aliquam nulla. Vitae turpis massa sed elementum tempus egestas sed sed risus.
|
|
50
|
+
Cursus vitae congue mauris rhoncus aenean vel elit scelerisque mauris. Id neque
|
|
51
|
+
aliquam vestibulum morbi blandit cursus risus at. Vel eros donec ac odio tempor orci.
|
|
52
|
+
Ac felis donec et odio pellentesque diam volutpat. Laoreet non curabitur gravida arcu
|
|
53
|
+
ac tortor dignissim. Rhoncus urna neque viverra justo nec ultrices dui. Bibendum arcu
|
|
54
|
+
vitae elementum curabitur vitae nunc sed velit dignissim. Sed risus pretium quam
|
|
55
|
+
vulputate dignissim suspendisse in est. Curabitur gravida arcu ac tortor. Nam libero
|
|
56
|
+
justo laoreet sit amet cursus sit amet. Arcu dui vivamus arcu felis bibendum ut
|
|
57
|
+
tristique et egestas. Eros donec ac odio tempor orci dapibus ultrices. At erat
|
|
58
|
+
pellentesque adipiscing commodo elit at. Dignissim cras tincidunt lobortis feugiat
|
|
59
|
+
vivamus at augue.
|
|
60
|
+
</p>
|
|
61
|
+
<p>
|
|
62
|
+
Amet commodo nulla facilisi nullam vehicula ipsum. Blandit libero volutpat sed cras.
|
|
63
|
+
Quam lacus suspendisse faucibus interdum posuere. Aenean euismod elementum nisi quis
|
|
64
|
+
eleifend. Orci nulla pellentesque dignissim enim sit amet venenatis. Diam vel quam
|
|
65
|
+
elementum pulvinar etiam non quam lacus. Sit amet dictum sit amet justo donec enim
|
|
66
|
+
diam vulputate. Tincidunt ornare massa eget egestas purus. Pulvinar neque laoreet
|
|
67
|
+
suspendisse interdum consectetur libero id faucibus. Morbi tincidunt augue interdum
|
|
68
|
+
velit. Nullam non nisi est sit amet.
|
|
69
|
+
</p>
|
|
70
|
+
<p style={{marginBottom: 0}}>
|
|
71
|
+
Aliquet enim tortor at auctor urna nunc id cursus metus. Leo urna molestie at
|
|
72
|
+
elementum eu facilisis. Consectetur purus ut faucibus pulvinar elementum integer.
|
|
73
|
+
Volutpat est velit egestas dui id ornare arcu odio. At consectetur lorem donec massa
|
|
74
|
+
sapien. Condimentum vitae sapien pellentesque habitant. Pellentesque habitant morbi
|
|
75
|
+
tristique senectus. Et molestie ac feugiat sed lectus vestibulum. Arcu risus quis
|
|
76
|
+
varius quam quisque. Turpis massa tincidunt dui ut ornare lectus sit amet. Magna eget
|
|
77
|
+
est lorem ipsum dolor sit. Suspendisse faucibus interdum posuere lorem ipsum. Nisi
|
|
78
|
+
vitae suscipit tellus mauris a diam maecenas sed. Ipsum dolor sit amet consectetur
|
|
79
|
+
adipiscing. Ultricies integer quis auctor elit sed. Scelerisque varius morbi enim nunc
|
|
80
|
+
faucibus a. Tortor consequat id porta nibh venenatis cras. Consectetur adipiscing elit
|
|
81
|
+
ut aliquam purus sit.
|
|
82
|
+
</p>
|
|
44
83
|
</Modal.Body>
|
|
45
84
|
<HStack spacing="s" padding="xxs" marginTop="xxs">
|
|
46
|
-
<Modal.CloseButton as={
|
|
47
|
-
|
|
85
|
+
<Modal.CloseButton as={PrimaryButton} onClick={handleAcknowledge}>
|
|
86
|
+
Acknowledge
|
|
48
87
|
</Modal.CloseButton>
|
|
49
|
-
<Modal.CloseButton>Cancel</Modal.CloseButton>
|
|
88
|
+
<Modal.CloseButton onClick={handleCancel}>Cancel</Modal.CloseButton>
|
|
50
89
|
</HStack>
|
|
51
90
|
</Modal.Card>
|
|
52
91
|
</Modal.Overlay>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import {Modal, useModalModel} from '@workday/canvas-kit-react/modal';
|
|
3
|
-
import {
|
|
3
|
+
import {PrimaryButton} from '@workday/canvas-kit-react/button';
|
|
4
4
|
import FormField from '@workday/canvas-kit-react/form-field';
|
|
5
5
|
import TextInput from '@workday/canvas-kit-react/text-input';
|
|
6
6
|
import {HStack, Box} from '@workday/canvas-kit-react/layout';
|
|
@@ -12,28 +12,28 @@ export default () => {
|
|
|
12
12
|
initialFocusRef: ref,
|
|
13
13
|
});
|
|
14
14
|
|
|
15
|
-
const
|
|
16
|
-
console.log('
|
|
15
|
+
const handleAcknowledge = () => {
|
|
16
|
+
console.log('Acknowledged license');
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
return (
|
|
20
20
|
<Modal model={model}>
|
|
21
|
-
<Modal.Target as={
|
|
21
|
+
<Modal.Target as={PrimaryButton}>Acknowledge License</Modal.Target>
|
|
22
22
|
<Modal.Overlay>
|
|
23
23
|
<Modal.Card>
|
|
24
24
|
<Modal.CloseIcon aria-label="Close" />
|
|
25
|
-
<Modal.Heading>
|
|
25
|
+
<Modal.Heading>Acknowledge License</Modal.Heading>
|
|
26
26
|
<Modal.Body>
|
|
27
27
|
<Box as="p" marginTop={0} marginBottom="m">
|
|
28
|
-
Enter
|
|
28
|
+
Enter your initials to acknowledge the license.
|
|
29
29
|
</Box>
|
|
30
|
-
<FormField label="
|
|
30
|
+
<FormField label="Initials" style={{marginBottom: 0}}>
|
|
31
31
|
<TextInput ref={ref} value={value} onChange={e => setValue(e.currentTarget.value)} />
|
|
32
32
|
</FormField>
|
|
33
33
|
</Modal.Body>
|
|
34
34
|
<HStack spacing="s" padding="xxs" marginTop="xxs">
|
|
35
|
-
<Modal.CloseButton as={
|
|
36
|
-
|
|
35
|
+
<Modal.CloseButton as={PrimaryButton} onClick={handleAcknowledge}>
|
|
36
|
+
Acknowledge
|
|
37
37
|
</Modal.CloseButton>
|
|
38
38
|
<Modal.CloseButton>Cancel</Modal.CloseButton>
|
|
39
39
|
</HStack>
|
|
@@ -17,8 +17,13 @@ export default () => {
|
|
|
17
17
|
<Modal.Overlay>
|
|
18
18
|
<Modal.Card>
|
|
19
19
|
<Modal.CloseIcon aria-label="Close" />
|
|
20
|
-
<Modal.Heading>Modal</Modal.Heading>
|
|
21
|
-
<Modal.Body>
|
|
20
|
+
<Modal.Heading>Modal Heading</Modal.Heading>
|
|
21
|
+
<Modal.Body>
|
|
22
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec semper facilisis dolor
|
|
23
|
+
quis facilisis. Aenean tempor eget quam et semper. Nam malesuada rhoncus euismod.
|
|
24
|
+
Quisque vel urna feugiat, dictum risus sed, pulvinar nulla. Sed gravida, elit non
|
|
25
|
+
iaculis blandit, ligula tortor posuere mauris, vitae cursus turpis nunc non arcu.
|
|
26
|
+
</Modal.Body>
|
|
22
27
|
</Modal.Card>
|
|
23
28
|
</Modal.Overlay>
|
|
24
29
|
</Modal>
|
|
@@ -1,52 +1,91 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import {Modal} from '@workday/canvas-kit-react/modal';
|
|
4
|
-
import {
|
|
4
|
+
import {PrimaryButton} from '@workday/canvas-kit-react/button';
|
|
5
5
|
import {HStack} from '@workday/canvas-kit-react/layout';
|
|
6
6
|
|
|
7
7
|
export default () => {
|
|
8
|
-
const
|
|
9
|
-
console.log('
|
|
8
|
+
const handleAcknowledge = () => {
|
|
9
|
+
console.log('License Acknowledged');
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const handleCancel = () => {
|
|
13
|
+
console.log('Cancel clicked');
|
|
10
14
|
};
|
|
11
15
|
|
|
12
16
|
return (
|
|
13
17
|
<Modal>
|
|
14
|
-
<Modal.Target as={
|
|
18
|
+
<Modal.Target as={PrimaryButton}>Open License</Modal.Target>
|
|
15
19
|
<Modal.OverflowOverlay>
|
|
16
20
|
<Modal.Card maxHeight="inherit" height="inherit">
|
|
17
21
|
<Modal.CloseIcon aria-label="Close" />
|
|
18
|
-
<Modal.Heading>
|
|
22
|
+
<Modal.Heading>MIT License</Modal.Heading>
|
|
19
23
|
<Modal.Body>
|
|
20
|
-
<p
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
<p>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<p>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<p>
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
24
|
+
<p style={{marginTop: 0}}>
|
|
25
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this
|
|
26
|
+
software and associated documentation files (the "Software"), to deal in the Software
|
|
27
|
+
without restriction, including without limitation the rights to use, copy, modify,
|
|
28
|
+
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
|
|
29
|
+
permit persons to whom the Software is furnished to do so, subject to the following
|
|
30
|
+
conditions:
|
|
31
|
+
</p>
|
|
32
|
+
<p>
|
|
33
|
+
The above copyright notice and this permission notice shall be included in all copies
|
|
34
|
+
or substantial portions of the Software.
|
|
35
|
+
</p>
|
|
36
|
+
<p>
|
|
37
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
38
|
+
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
39
|
+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
40
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
|
41
|
+
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
|
|
42
|
+
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
43
|
+
</p>
|
|
44
|
+
<p>
|
|
45
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
|
|
46
|
+
incididunt ut labore et dolore magna aliqua. Amet massa vitae tortor condimentum
|
|
47
|
+
lacinia quis. Fermentum odio eu feugiat pretium nibh ipsum consequat nisl. Sed lectus
|
|
48
|
+
vestibulum mattis ullamcorper velit sed. Rutrum tellus pellentesque eu tincidunt
|
|
49
|
+
tortor aliquam nulla. Vitae turpis massa sed elementum tempus egestas sed sed risus.
|
|
50
|
+
Cursus vitae congue mauris rhoncus aenean vel elit scelerisque mauris. Id neque
|
|
51
|
+
aliquam vestibulum morbi blandit cursus risus at. Vel eros donec ac odio tempor orci.
|
|
52
|
+
Ac felis donec et odio pellentesque diam volutpat. Laoreet non curabitur gravida arcu
|
|
53
|
+
ac tortor dignissim. Rhoncus urna neque viverra justo nec ultrices dui. Bibendum arcu
|
|
54
|
+
vitae elementum curabitur vitae nunc sed velit dignissim. Sed risus pretium quam
|
|
55
|
+
vulputate dignissim suspendisse in est. Curabitur gravida arcu ac tortor. Nam libero
|
|
56
|
+
justo laoreet sit amet cursus sit amet. Arcu dui vivamus arcu felis bibendum ut
|
|
57
|
+
tristique et egestas. Eros donec ac odio tempor orci dapibus ultrices. At erat
|
|
58
|
+
pellentesque adipiscing commodo elit at. Dignissim cras tincidunt lobortis feugiat
|
|
59
|
+
vivamus at augue.
|
|
60
|
+
</p>
|
|
61
|
+
<p>
|
|
62
|
+
Amet commodo nulla facilisi nullam vehicula ipsum. Blandit libero volutpat sed cras.
|
|
63
|
+
Quam lacus suspendisse faucibus interdum posuere. Aenean euismod elementum nisi quis
|
|
64
|
+
eleifend. Orci nulla pellentesque dignissim enim sit amet venenatis. Diam vel quam
|
|
65
|
+
elementum pulvinar etiam non quam lacus. Sit amet dictum sit amet justo donec enim
|
|
66
|
+
diam vulputate. Tincidunt ornare massa eget egestas purus. Pulvinar neque laoreet
|
|
67
|
+
suspendisse interdum consectetur libero id faucibus. Morbi tincidunt augue interdum
|
|
68
|
+
velit. Nullam non nisi est sit amet.
|
|
69
|
+
</p>
|
|
70
|
+
<p style={{marginBottom: 0}}>
|
|
71
|
+
Aliquet enim tortor at auctor urna nunc id cursus metus. Leo urna molestie at
|
|
72
|
+
elementum eu facilisis. Consectetur purus ut faucibus pulvinar elementum integer.
|
|
73
|
+
Volutpat est velit egestas dui id ornare arcu odio. At consectetur lorem donec massa
|
|
74
|
+
sapien. Condimentum vitae sapien pellentesque habitant. Pellentesque habitant morbi
|
|
75
|
+
tristique senectus. Et molestie ac feugiat sed lectus vestibulum. Arcu risus quis
|
|
76
|
+
varius quam quisque. Turpis massa tincidunt dui ut ornare lectus sit amet. Magna eget
|
|
77
|
+
est lorem ipsum dolor sit. Suspendisse faucibus interdum posuere lorem ipsum. Nisi
|
|
78
|
+
vitae suscipit tellus mauris a diam maecenas sed. Ipsum dolor sit amet consectetur
|
|
79
|
+
adipiscing. Ultricies integer quis auctor elit sed. Scelerisque varius morbi enim nunc
|
|
80
|
+
faucibus a. Tortor consequat id porta nibh venenatis cras. Consectetur adipiscing elit
|
|
81
|
+
ut aliquam purus sit.
|
|
82
|
+
</p>
|
|
44
83
|
</Modal.Body>
|
|
45
84
|
<HStack spacing="s" padding="xxs" marginTop="xxs">
|
|
46
|
-
<Modal.CloseButton as={
|
|
47
|
-
|
|
85
|
+
<Modal.CloseButton as={PrimaryButton} onClick={handleAcknowledge}>
|
|
86
|
+
Acknowledge
|
|
48
87
|
</Modal.CloseButton>
|
|
49
|
-
<Modal.CloseButton>Cancel</Modal.CloseButton>
|
|
88
|
+
<Modal.CloseButton onClick={handleCancel}>Cancel</Modal.CloseButton>
|
|
50
89
|
</HStack>
|
|
51
90
|
</Modal.Card>
|
|
52
91
|
</Modal.OverflowOverlay>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.15",
|
|
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.3.
|
|
45
|
+
"@workday/canvas-kit-react": "^7.3.15"
|
|
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": "fd5ab8a8e931a200a15f7fa2640f917805b044e9"
|
|
54
54
|
}
|