@workday/canvas-kit-docs 9.0.4 → 9.0.6
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,9 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import styled from '@emotion/styled';
|
|
3
2
|
import {FormField} from '@workday/canvas-kit-react/form-field';
|
|
4
3
|
import {Radio, RadioGroup} from '@workday/canvas-kit-react/radio';
|
|
5
|
-
import {space} from '@workday/canvas-kit-react/tokens';
|
|
6
4
|
import {useUniqueId} from '@workday/canvas-kit-react/common';
|
|
5
|
+
import {space} from '@workday/canvas-kit-react/tokens';
|
|
7
6
|
|
|
8
7
|
export default () => {
|
|
9
8
|
const [value, setValue] = React.useState<string | number>('deep-dish');
|
|
@@ -12,12 +11,8 @@ export default () => {
|
|
|
12
11
|
setValue(value);
|
|
13
12
|
};
|
|
14
13
|
|
|
15
|
-
const StyledFormField = styled(FormField)({
|
|
16
|
-
width: space.xl,
|
|
17
|
-
});
|
|
18
|
-
|
|
19
14
|
return (
|
|
20
|
-
<
|
|
15
|
+
<FormField label="Choose Your Pizza Crust" useFieldset={true} style={{width: space.xl}}>
|
|
21
16
|
<RadioGroup name={useUniqueId()} onChange={handleChange} value={value}>
|
|
22
17
|
<Radio label="Deep dish" value="deep-dish" />
|
|
23
18
|
<Radio label="Thin" value="thin" />
|
|
@@ -25,6 +20,6 @@ export default () => {
|
|
|
25
20
|
<Radio label="Cauliflower" value="cauliflower" />
|
|
26
21
|
<Radio label="Butter - the best thing to put on bread" value="butter" />
|
|
27
22
|
</RadioGroup>
|
|
28
|
-
</
|
|
23
|
+
</FormField>
|
|
29
24
|
);
|
|
30
25
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.6",
|
|
4
4
|
"description": "Documentation components of Canvas Kit components",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@emotion/styled": "^11.6.0",
|
|
46
46
|
"@storybook/csf": "0.0.1",
|
|
47
|
-
"@workday/canvas-kit-labs-react": "^9.0.
|
|
48
|
-
"@workday/canvas-kit-preview-react": "^9.0.
|
|
49
|
-
"@workday/canvas-kit-react": "^9.0.
|
|
47
|
+
"@workday/canvas-kit-labs-react": "^9.0.6",
|
|
48
|
+
"@workday/canvas-kit-preview-react": "^9.0.6",
|
|
49
|
+
"@workday/canvas-kit-react": "^9.0.6",
|
|
50
50
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
51
51
|
"markdown-to-jsx": "^6.10.3",
|
|
52
52
|
"ts-node": "^10.9.1"
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"mkdirp": "^1.0.3",
|
|
58
58
|
"typescript": "4.2"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "203dc9c110505a5fd1e1766bec8a231112cd0604"
|
|
61
61
|
}
|