@workday/canvas-kit-docs 7.1.1 → 7.1.4
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import {FormField} from '@workday/canvas-kit-react/form-field';
|
|
3
3
|
import {Radio, RadioGroup} from '@workday/canvas-kit-react/radio';
|
|
4
|
+
import styled from '@emotion/styled';
|
|
4
5
|
|
|
5
6
|
export default () => {
|
|
6
7
|
const [value, setValue] = React.useState<string | number>('deep-dish');
|
|
@@ -9,14 +10,22 @@ export default () => {
|
|
|
9
10
|
setValue(value);
|
|
10
11
|
};
|
|
11
12
|
|
|
13
|
+
const StyledFormField = styled(FormField)({
|
|
14
|
+
width: '161px',
|
|
15
|
+
});
|
|
16
|
+
|
|
12
17
|
return (
|
|
13
|
-
<
|
|
18
|
+
<StyledFormField label="Choose Your Pizza Crust" useFieldset={true}>
|
|
14
19
|
<RadioGroup name="crust" onChange={handleChange} value={value}>
|
|
15
20
|
<Radio label="Deep dish" value="deep-dish" />
|
|
16
21
|
<Radio label="Thin" value="thin" />
|
|
17
22
|
<Radio label="Gluten free" value="gluten-free" />
|
|
18
23
|
<Radio label="Cauliflower" value="cauliflower" />
|
|
24
|
+
<Radio
|
|
25
|
+
label="My favorite pizza crust flavor is butter because it's the best thing to put on bread"
|
|
26
|
+
value="cauliflower"
|
|
27
|
+
/>
|
|
19
28
|
</RadioGroup>
|
|
20
|
-
</
|
|
29
|
+
</StyledFormField>
|
|
21
30
|
);
|
|
22
31
|
};
|
|
@@ -79,7 +79,29 @@ export default () => {
|
|
|
79
79
|
<Card>
|
|
80
80
|
<Card.Body>
|
|
81
81
|
<Box minHeight={180} position="relative">
|
|
82
|
-
{
|
|
82
|
+
{loading ? (
|
|
83
|
+
<StyledSimulation
|
|
84
|
+
position="absolute"
|
|
85
|
+
top={0}
|
|
86
|
+
left={0}
|
|
87
|
+
width="100%"
|
|
88
|
+
animation={!loading ? `${fadeOut} 150ms ease-out forwards` : undefined}
|
|
89
|
+
>
|
|
90
|
+
<Skeleton>
|
|
91
|
+
<Flex alignItems="center">
|
|
92
|
+
<Skeleton.Shape
|
|
93
|
+
width={space.xl}
|
|
94
|
+
height={space.xl}
|
|
95
|
+
borderRadius={borderRadius.circle}
|
|
96
|
+
/>
|
|
97
|
+
<Box flex={1} marginLeft="xs">
|
|
98
|
+
<Skeleton.Header />
|
|
99
|
+
</Box>
|
|
100
|
+
</Flex>
|
|
101
|
+
<Skeleton.Text lineCount={3} />
|
|
102
|
+
</Skeleton>
|
|
103
|
+
</StyledSimulation>
|
|
104
|
+
) : (
|
|
83
105
|
<Box>
|
|
84
106
|
<Flex alignItems="center" display="inline-flex" marginBottom="s">
|
|
85
107
|
<SystemIconCircle icon={patternIcon} />
|
|
@@ -100,28 +122,6 @@ export default () => {
|
|
|
100
122
|
</p>
|
|
101
123
|
</Box>
|
|
102
124
|
)}
|
|
103
|
-
|
|
104
|
-
<StyledSimulation
|
|
105
|
-
position="absolute"
|
|
106
|
-
top={0}
|
|
107
|
-
left={0}
|
|
108
|
-
width="100%"
|
|
109
|
-
animation={!loading ? `${fadeOut} 150ms ease-out forwards` : undefined}
|
|
110
|
-
>
|
|
111
|
-
<Skeleton>
|
|
112
|
-
<Flex alignItems="center">
|
|
113
|
-
<Skeleton.Shape
|
|
114
|
-
width={space.xl}
|
|
115
|
-
height={space.xl}
|
|
116
|
-
borderRadius={borderRadius.circle}
|
|
117
|
-
/>
|
|
118
|
-
<Box flex={1} marginLeft="xs">
|
|
119
|
-
<Skeleton.Header />
|
|
120
|
-
</Box>
|
|
121
|
-
</Flex>
|
|
122
|
-
<Skeleton.Text lineCount={3} />
|
|
123
|
-
</Skeleton>
|
|
124
|
-
</StyledSimulation>
|
|
125
125
|
</Box>
|
|
126
126
|
</Card.Body>
|
|
127
127
|
</Card>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.4",
|
|
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.1.
|
|
45
|
+
"@workday/canvas-kit-react": "^7.1.4"
|
|
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": "1bc3124ba0dd585b0f6079e0c42f8141293f0f0b"
|
|
54
54
|
}
|