@workday/canvas-kit-docs 9.0.5 → 9.0.7

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.
@@ -10,7 +10,7 @@ const StyledPanel = styled(SidePanel)({
10
10
  zIndex: 1,
11
11
  });
12
12
 
13
- export default () => {
13
+ export const WithOverlay = () => {
14
14
  const {labelProps} = useSidePanel();
15
15
 
16
16
  return (
@@ -38,7 +38,7 @@ Radio Group should be used in tandem with [Form Field](/components/inputs/form-f
38
38
 
39
39
  ### Disabled
40
40
 
41
- Set the `disabled` prop of the Radio Button to prevent users from interacting with it.
41
+ Set the `disabled` prop of the Radio Button to prevent users from interacting with it. Be careful not to disable a pre-selected Radio Button, this will block keyboard access from the entire Radio Group.
42
42
 
43
43
  <ExampleCodeBlock code={Disabled} />
44
44
 
@@ -14,12 +14,12 @@ export default () => {
14
14
  <FormField
15
15
  error={FormField.ErrorType.Alert}
16
16
  hintId="hint-alert"
17
- hintText="Deep Dish is no longer available. Please select a different crust."
17
+ hintText="Deep dish is an extra $2.99"
18
18
  label="Choose Your Pizza Crust"
19
19
  useFieldset={true}
20
20
  >
21
21
  <RadioGroup name={useUniqueId()} onChange={handleChange} value={value}>
22
- <Radio disabled={true} label="Deep dish (sold out)" value="deep-dish" />
22
+ <Radio label="Deep dish" value="deep-dish" />
23
23
  <Radio label="Thin" value="thin" />
24
24
  <Radio label="Gluten free" value="gluten-free" />
25
25
  <Radio label="Cauliflower" value="cauliflower" />
@@ -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
- <StyledFormField label="Choose Your Pizza Crust" useFieldset={true}>
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
- </StyledFormField>
23
+ </FormField>
29
24
  );
30
25
  };
@@ -14,12 +14,12 @@ export default () => {
14
14
  <FormField
15
15
  error={FormField.ErrorType.Error}
16
16
  hintId="hint-error"
17
- hintText="Deep Dish is no longer available. Please select a different crust."
17
+ hintText="Deep Dish is currently sold out."
18
18
  label="Choose Your Pizza Crust"
19
19
  useFieldset={true}
20
20
  >
21
21
  <RadioGroup name={useUniqueId()} onChange={handleChange} value={value}>
22
- <Radio disabled={true} label="Deep dish (sold out)" value="deep-dish" />
22
+ <Radio label="Deep dish" value="deep-dish" />
23
23
  <Radio label="Thin" value="thin" />
24
24
  <Radio label="Gluten free" value="gluten-free" />
25
25
  <Radio label="Cauliflower" value="cauliflower" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-docs",
3
- "version": "9.0.5",
3
+ "version": "9.0.7",
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.5",
48
- "@workday/canvas-kit-preview-react": "^9.0.5",
49
- "@workday/canvas-kit-react": "^9.0.5",
47
+ "@workday/canvas-kit-labs-react": "^9.0.7",
48
+ "@workday/canvas-kit-preview-react": "^9.0.7",
49
+ "@workday/canvas-kit-react": "^9.0.7",
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": "d16d097c799705aeb34bf970ce52d9be167f2e18"
60
+ "gitHead": "0b1d3eb35d37235a50cab96470f7b460afd6ea09"
61
61
  }