@workday/canvas-kit-docs 6.3.2 → 6.3.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.
Files changed (35) hide show
  1. package/dist/mdx/preview-react/_examples/SelectWithFormik.mdx +8 -0
  2. package/dist/mdx/preview-react/_examples/TextInputWithFormik.mdx +8 -0
  3. package/dist/mdx/preview-react/_examples/examples/SelectWithFormik.tsx +47 -0
  4. package/dist/mdx/preview-react/{text-input/examples/LoginForm.tsx → _examples/examples/TextInputWithFormik.tsx} +3 -3
  5. package/dist/mdx/preview-react/form-field/FormField.mdx +15 -3
  6. package/dist/mdx/preview-react/form-field/examples/Custom.tsx +1 -1
  7. package/dist/mdx/preview-react/form-field/examples/Select.tsx +50 -0
  8. package/dist/mdx/preview-react/text-area/examples/Alert.tsx +8 -3
  9. package/dist/mdx/preview-react/text-area/examples/Basic.tsx +1 -1
  10. package/dist/mdx/preview-react/text-area/examples/Disabled.tsx +1 -1
  11. package/dist/mdx/preview-react/text-area/examples/Error.tsx +1 -1
  12. package/dist/mdx/preview-react/text-area/examples/Grow.tsx +1 -1
  13. package/dist/mdx/preview-react/text-area/examples/HiddenLabel.tsx +3 -3
  14. package/dist/mdx/preview-react/text-area/examples/LabelPositionHorizontal.tsx +1 -1
  15. package/dist/mdx/preview-react/text-area/examples/LabelPositionVertical.tsx +1 -1
  16. package/dist/mdx/preview-react/text-area/examples/Placeholder.tsx +2 -6
  17. package/dist/mdx/preview-react/text-area/examples/RefForwarding.tsx +3 -3
  18. package/dist/mdx/preview-react/text-area/examples/Required.tsx +1 -1
  19. package/dist/mdx/preview-react/text-area/examples/ResizeConstraints.tsx +1 -1
  20. package/dist/mdx/preview-react/text-input/TextInput.mdx +0 -7
  21. package/dist/mdx/preview-react/text-input/examples/Alert.tsx +2 -7
  22. package/dist/mdx/preview-react/text-input/examples/Basic.tsx +1 -1
  23. package/dist/mdx/preview-react/text-input/examples/Disabled.tsx +1 -1
  24. package/dist/mdx/preview-react/text-input/examples/Error.tsx +1 -1
  25. package/dist/mdx/preview-react/text-input/examples/Grow.tsx +1 -1
  26. package/dist/mdx/preview-react/text-input/examples/HiddenLabel.tsx +3 -3
  27. package/dist/mdx/preview-react/text-input/examples/LabelPositionHorizontal.tsx +1 -1
  28. package/dist/mdx/preview-react/text-input/examples/LabelPositionVertical.tsx +1 -1
  29. package/dist/mdx/preview-react/text-input/examples/Password.tsx +1 -1
  30. package/dist/mdx/preview-react/text-input/examples/Placeholder.tsx +1 -1
  31. package/dist/mdx/preview-react/text-input/examples/RefForwarding.tsx +3 -3
  32. package/dist/mdx/preview-react/text-input/examples/Required.tsx +1 -1
  33. package/dist/mdx/preview-react/text-input/examples/ThemedAlert.tsx +1 -1
  34. package/dist/mdx/preview-react/text-input/examples/ThemedError.tsx +2 -4
  35. package/package.json +3 -3
@@ -0,0 +1,8 @@
1
+ import SelectWithFormik from './examples/SelectWithFormik';
2
+
3
+
4
+ # Canvas Kit Examples
5
+
6
+ ## Select With Formik
7
+
8
+ <ExampleCodeBlock code={SelectWithFormik} />
@@ -0,0 +1,8 @@
1
+ import TextInputWithFormik from './examples/TextInputWithFormik';
2
+
3
+
4
+ # Canvas Kit Examples
5
+
6
+ ## Text Input With Formik
7
+
8
+ <ExampleCodeBlock code={TextInputWithFormik} />
@@ -0,0 +1,47 @@
1
+ import * as React from 'react';
2
+ import {useFormik} from 'formik';
3
+ import {Select} from '@workday/canvas-kit-preview-react/select';
4
+ import {
5
+ FormField,
6
+ useFormFieldInput,
7
+ useFormFieldModel,
8
+ } from '@workday/canvas-kit-preview-react/form-field';
9
+
10
+ export default () => {
11
+ const formik = useFormik({
12
+ initialValues: {
13
+ selectedBook: '',
14
+ },
15
+ onSubmit: data => {
16
+ console.log(data);
17
+ },
18
+ });
19
+
20
+ const model = useFormFieldModel();
21
+ const formFieldInputProps = useFormFieldInput(model);
22
+
23
+ return (
24
+ <form onSubmit={formik.handleSubmit}>
25
+ <FormField orientation="vertical" alignItems="stretch">
26
+ <FormField.Label>Choose a book</FormField.Label>
27
+ <Select
28
+ name="selectedBook"
29
+ options={bookList}
30
+ onChange={event => formik.setFieldValue('selectedBook', event.currentTarget.value)}
31
+ value={formik.values.selectedBook}
32
+ grow
33
+ {...formFieldInputProps}
34
+ />
35
+ </FormField>
36
+ </form>
37
+ );
38
+ };
39
+
40
+ const bookList = [
41
+ {label: 'Dessert Person by Claire Saffitz', value: 'dessert person'},
42
+ {label: 'Elements of Pizza by Ken Forkish', value: 'the elements of pizza'},
43
+ {label: 'Flour Water Salt Yeast by Ken Forkish', value: 'flour water salt yeast'},
44
+ {label: 'Mastering Pasta by Marc Verti', value: 'mastering pasta'},
45
+ {label: 'Patisserie by Christophe Felder', value: 'patisserie'},
46
+ {label: 'Tartine by Elisabeth Prueitt & Chad Robertson', value: 'tartine'},
47
+ ];
@@ -48,9 +48,9 @@ export default () => {
48
48
 
49
49
  return (
50
50
  <form onSubmit={formik.handleSubmit} action=".">
51
- <VStack spacing='xs' alignItems='flex-start'>
51
+ <VStack spacing="xs" alignItems="flex-start">
52
52
  <TextInput
53
- orientation='vertical'
53
+ orientation="vertical"
54
54
  isRequired={true}
55
55
  hasError={formik.touched.email && !!formik.errors.email}
56
56
  >
@@ -66,7 +66,7 @@ export default () => {
66
66
  <TextInput.Hint>{formik.touched.email && formik.errors.email}</TextInput.Hint>
67
67
  </TextInput>
68
68
  <TextInput
69
- orientation='vertical'
69
+ orientation="vertical"
70
70
  id={passwordId}
71
71
  hasError={formik.touched.password && !!formik.errors.password}
72
72
  isRequired={true}
@@ -3,6 +3,7 @@ import {Specifications} from '@workday/canvas-kit-docs';
3
3
  import {FormField} from '@workday/canvas-kit-preview-react/form-field';
4
4
 
5
5
  import Custom from './examples/Custom';
6
+ import WithSelect from './examples/Select';
6
7
 
7
8
 
8
9
  # Canvas Kit Form Field
@@ -20,8 +21,19 @@ yarn add @workday/canvas-kit-preview-react
20
21
 
21
22
  ### Customizing With Behavior Hooks Example
22
23
 
23
- If you need full customization you can use the form field behavior hooks to build your own solution.
24
- It is also easy it work with custom components or third party libraries and get the CKR
24
+ If you need full customization you can use the `FormField` behavior hooks to build your own
25
+ solution. It is also easy it work with custom components or third party libraries and get the CKR
25
26
  accessibility guarantees by using the `as` prop.
26
27
 
27
- <ExampleCodeBlock code={Custom} />
28
+ <ExampleCodeBlock code={Custom} />
29
+
30
+ ### Use with Select
31
+
32
+ For some custom inputs, such as Canvas Kit's `Select`, you won't be able to reliably cast the
33
+ `FormField.Input` with the `as` prop. Instead you'll want to use `FormField`'s hooks for the
34
+ implementation. In the example below, we're using the `useFormFieldModel` hook to hoist the model
35
+ and providing it to the `useFormFieldInput` behavior hook. Then we pass the model to the `FormField`
36
+ component and the input props to `Select`. This connects `Select` to the `FormField` components and
37
+ provides it with all the accessible attributes it needs.
38
+
39
+ <ExampleCodeBlock code={WithSelect} />
@@ -45,7 +45,7 @@ export default () => {
45
45
 
46
46
  const model = useFormFieldModel({isRequired: true});
47
47
 
48
- const layoutProps = useFormFieldOrientation('vertical')
48
+ const layoutProps = useFormFieldOrientation('vertical');
49
49
 
50
50
  return (
51
51
  <Stack {...layoutProps}>
@@ -0,0 +1,50 @@
1
+ import * as React from 'react';
2
+ import {
3
+ FormField,
4
+ useFormFieldInput,
5
+ useFormFieldModel,
6
+ } from '@workday/canvas-kit-preview-react/form-field';
7
+ import {Select} from '@workday/canvas-kit-preview-react/select';
8
+
9
+ export default () => {
10
+ const [selected, setSelected] = React.useState(wineList[0].value);
11
+ // Hoist the FormField model so we can pass it to `useFormFieldInput`
12
+ const model = useFormFieldModel({isRequired: true});
13
+ // Get all the FormField-related input props to pass to `Select`
14
+ const formFieldInputProps = useFormFieldInput(model);
15
+
16
+ return (
17
+ <FormField orientation="vertical" model={model}>
18
+ <FormField.Label>Choose a wine</FormField.Label>
19
+ <Select
20
+ options={wineList}
21
+ value={selected}
22
+ onChange={event => setSelected(event.currentTarget.value)}
23
+ {...formFieldInputProps}
24
+ />
25
+ <FormField.Hint>When in doubt, go with the Chianti.</FormField.Hint>
26
+ </FormField>
27
+ );
28
+ };
29
+
30
+ export default [
31
+ {label: 'Beaujolais', value: 'beaujolais'},
32
+ {label: 'Bordeaux', value: 'bordeaux'},
33
+ {label: 'Cabernet Sauvignon', value: 'cabernet sauvignon'},
34
+ {label: 'Champagne', value: 'champagne'},
35
+ {label: 'Chardonnay', value: 'chardonnay'},
36
+ {label: 'Chianti', value: 'chianti'},
37
+ {label: 'Malbec', value: 'malbec'},
38
+ {label: 'Merlot', value: 'merlot'},
39
+ {label: 'Pinot Grigio', value: 'pinot grigio'},
40
+ {label: 'Pinot Gris', value: 'pinot gris'},
41
+ {label: 'Pinot Noir', value: 'pinot noir'},
42
+ {label: 'Primitivo', value: 'primitivo'},
43
+ {label: 'Prosecco', value: 'prosecco'},
44
+ {label: 'Riesling', value: 'riesling'},
45
+ {label: 'Rioja', value: 'rioja'},
46
+ {label: 'Rosé', value: 'rosé'},
47
+ {label: 'Sauvignon Blanc', value: 'sauvignon blanc'},
48
+ {label: 'Syrah', value: 'syrah'},
49
+ {label: 'Zinfandel', value: 'zinfandel'},
50
+ ];
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { jsx } from '@emotion/core'
2
+ import {jsx} from '@emotion/core';
3
3
  import React from 'react';
4
4
  import {TextArea} from '@workday/canvas-kit-preview-react/text-area';
5
5
  import {useThemedRing} from '@workday/canvas-kit-labs-react/common';
@@ -16,10 +16,15 @@ export default () => {
16
16
  value.length < 3 ? 'success' : value.length < 7 ? 'alert' : 'error'
17
17
  );
18
18
 
19
- const hintColor = value.length < 3 ? colors.greenApple600 : value.length < 7 ? colors.cantaloupe600 : colors.cinnamon500
19
+ const hintColor =
20
+ value.length < 3
21
+ ? colors.greenApple600
22
+ : value.length < 7
23
+ ? colors.cantaloupe600
24
+ : colors.cinnamon500;
20
25
 
21
26
  return (
22
- <TextArea orientation='vertical'>
27
+ <TextArea orientation="vertical">
23
28
  <TextArea.Label>Add a comment</TextArea.Label>
24
29
  <TextArea.Field css={alertStyles} onChange={handleChange} value={value} />
25
30
  <TextArea.Hint paddingTop={space.xxs}>
@@ -9,7 +9,7 @@ export default () => {
9
9
  };
10
10
 
11
11
  return (
12
- <TextArea orientation='vertical'>
12
+ <TextArea orientation="vertical">
13
13
  <TextArea.Label>Leave a review</TextArea.Label>
14
14
  <TextArea.Field onChange={handleChange} value={value} />
15
15
  </TextArea>
@@ -9,7 +9,7 @@ export default () => {
9
9
  };
10
10
 
11
11
  return (
12
- <TextArea orientation='vertical'>
12
+ <TextArea orientation="vertical">
13
13
  <TextArea.Label>Leave a review</TextArea.Label>
14
14
  <TextArea.Field disabled onChange={handleChange} value={value} />
15
15
  </TextArea>
@@ -31,7 +31,7 @@ export default () => {
31
31
  };
32
32
 
33
33
  return (
34
- <TextArea hasError={hasError} orientation='vertical'>
34
+ <TextArea hasError={hasError} orientation="vertical">
35
35
  <TextArea.Label>A three letter word</TextArea.Label>
36
36
  <TextArea.Field onChange={handleChange} value={value} />
37
37
  <TextArea.Hint paddingTop={space.xxs}>{hint}</TextArea.Hint>
@@ -9,7 +9,7 @@ export default () => {
9
9
  };
10
10
 
11
11
  return (
12
- <TextArea orientation='vertical' alignItems='stretch'>
12
+ <TextArea orientation="vertical" alignItems="stretch">
13
13
  <TextArea.Label>Leave a review</TextArea.Label>
14
14
  <TextArea.Field onChange={handleChange} value={value} />
15
15
  </TextArea>
@@ -1,8 +1,8 @@
1
1
  /** @jsx jsx */
2
- import { jsx } from '@emotion/core'
2
+ import {jsx} from '@emotion/core';
3
3
  import React from 'react';
4
4
  import {TextArea} from '@workday/canvas-kit-preview-react/text-area';
5
- import { accessibleHide } from '@workday/canvas-kit-react/common';
5
+ import {accessibleHide} from '@workday/canvas-kit-react/common';
6
6
 
7
7
  export default () => {
8
8
  const [value, setValue] = React.useState('');
@@ -12,7 +12,7 @@ export default () => {
12
12
  };
13
13
 
14
14
  return (
15
- <TextArea orientation='vertical' spacing='zero'>
15
+ <TextArea orientation="vertical" spacing="zero">
16
16
  <TextArea.Label css={{...accessibleHide}}>Email</TextArea.Label>
17
17
  <TextArea.Field onChange={handleChange} value={value} />
18
18
  </TextArea>
@@ -9,7 +9,7 @@ export default () => {
9
9
  };
10
10
 
11
11
  return (
12
- <TextArea orientation='horizontal'>
12
+ <TextArea orientation="horizontal">
13
13
  <TextArea.Label>Leave a review</TextArea.Label>
14
14
  <TextArea.Field onChange={handleChange} value={value} />
15
15
  </TextArea>
@@ -9,7 +9,7 @@ export default () => {
9
9
  };
10
10
 
11
11
  return (
12
- <TextArea orientation='vertical' spacing='xxxs'>
12
+ <TextArea orientation="vertical" spacing="xxxs">
13
13
  <TextArea.Label>Leave a review</TextArea.Label>
14
14
  <TextArea.Field onChange={handleChange} value={value} />
15
15
  </TextArea>
@@ -9,13 +9,9 @@ export default () => {
9
9
  };
10
10
 
11
11
  return (
12
- <TextArea orientation='vertical'>
12
+ <TextArea orientation="vertical">
13
13
  <TextArea.Label>Leave a review</TextArea.Label>
14
- <TextArea.Field
15
- placeholder="Let us know how we did!"
16
- onChange={handleChange}
17
- value={value}
18
- />
14
+ <TextArea.Field placeholder="Let us know how we did!" onChange={handleChange} value={value} />
19
15
  </TextArea>
20
16
  );
21
17
  };
@@ -13,12 +13,12 @@ export default () => {
13
13
  };
14
14
 
15
15
  const handleClick = () => {
16
- changeFocus(ref.current)
16
+ changeFocus(ref.current);
17
17
  };
18
18
 
19
19
  return (
20
- <VStack spacing='xxxs' alignItems='flex-start'>
21
- <TextArea orientation='vertical'>
20
+ <VStack spacing="xxxs" alignItems="flex-start">
21
+ <TextArea orientation="vertical">
22
22
  <TextArea.Label>Leave a review</TextArea.Label>
23
23
  <TextArea.Field onChange={handleChange} value={value} ref={ref} />
24
24
  </TextArea>
@@ -9,7 +9,7 @@ export default () => {
9
9
  };
10
10
 
11
11
  return (
12
- <TextArea isRequired={true} orientation='vertical'>
12
+ <TextArea isRequired={true} orientation="vertical">
13
13
  <TextArea.Label>Leave a review</TextArea.Label>
14
14
  <TextArea.Field onChange={handleChange} value={value} />
15
15
  </TextArea>
@@ -14,7 +14,7 @@ export default () => {
14
14
  };
15
15
 
16
16
  return (
17
- <TextArea orientation='vertical'>
17
+ <TextArea orientation="vertical">
18
18
  <TextArea.Label>Leave a review</TextArea.Label>
19
19
  <StyledField onChange={handleChange} value={value} />
20
20
  </TextArea>
@@ -16,7 +16,6 @@ import ThemedAlert from './examples/ThemedAlert';
16
16
  import ThemedError from './examples/ThemedError';
17
17
  import Error from './examples/Error';
18
18
  import Alert from './examples/Alert';
19
- import LoginForm from './examples/LoginForm';
20
19
 
21
20
 
22
21
  # Canvas Kit Text Input
@@ -128,12 +127,6 @@ used in an outer ring.
128
127
 
129
128
  <ExampleCodeBlock code={ThemedAlert} />
130
129
 
131
- #### Full example
132
-
133
- Login Form using Formik
134
-
135
- <ExampleCodeBlock code={LoginForm} />
136
-
137
130
  ## Props
138
131
 
139
132
  Undocumented props are spread to the underlying `<input>` element.
@@ -17,14 +17,9 @@ export default () => {
17
17
  );
18
18
 
19
19
  return (
20
- <TextInput orientation='vertical'>
20
+ <TextInput orientation="vertical">
21
21
  <TextInput.Label>Password</TextInput.Label>
22
- <TextInput.Field
23
- css={alertStyles}
24
- onChange={handleChange}
25
- value={value}
26
- type="password"
27
- />
22
+ <TextInput.Field css={alertStyles} onChange={handleChange} value={value} type="password" />
28
23
  <TextInput.Hint paddingTop={space.xxs}>
29
24
  <strong>Password Strength: </strong>
30
25
  {value.length < 3 ? (
@@ -9,7 +9,7 @@ export default () => {
9
9
  };
10
10
 
11
11
  return (
12
- <TextInput orientation='vertical'>
12
+ <TextInput orientation="vertical">
13
13
  <TextInput.Label>Email</TextInput.Label>
14
14
  <TextInput.Field onChange={handleChange} value={value} />
15
15
  </TextInput>
@@ -9,7 +9,7 @@ export default () => {
9
9
  };
10
10
 
11
11
  return (
12
- <TextInput orientation='vertical'>
12
+ <TextInput orientation="vertical">
13
13
  <TextInput.Label>Email</TextInput.Label>
14
14
  <TextInput.Field onChange={handleChange} value={value} disabled />
15
15
  </TextInput>
@@ -31,7 +31,7 @@ export default () => {
31
31
  };
32
32
 
33
33
  return (
34
- <TextInput hasError={hasError} orientation='vertical'>
34
+ <TextInput hasError={hasError} orientation="vertical">
35
35
  <TextInput.Label>A three letter word</TextInput.Label>
36
36
  <TextInput.Field onChange={handleChange} value={value} />
37
37
  <TextInput.Hint paddingTop={space.xxs}>{hint}</TextInput.Hint>
@@ -9,7 +9,7 @@ export default () => {
9
9
  };
10
10
 
11
11
  return (
12
- <TextInput orientation='vertical' alignItems='stretch'>
12
+ <TextInput orientation="vertical" alignItems="stretch">
13
13
  <TextInput.Label>Street Address</TextInput.Label>
14
14
  <TextInput.Field onChange={handleChange} value={value} />
15
15
  </TextInput>
@@ -1,8 +1,8 @@
1
1
  /** @jsx jsx */
2
- import { jsx } from '@emotion/core'
2
+ import {jsx} from '@emotion/core';
3
3
  import React from 'react';
4
4
  import {TextInput} from '@workday/canvas-kit-preview-react/text-input';
5
- import { accessibleHide } from '@workday/canvas-kit-react/common';
5
+ import {accessibleHide} from '@workday/canvas-kit-react/common';
6
6
 
7
7
  export default () => {
8
8
  const [value, setValue] = React.useState('');
@@ -12,7 +12,7 @@ export default () => {
12
12
  };
13
13
 
14
14
  return (
15
- <TextInput orientation='vertical' spacing='zero'>
15
+ <TextInput orientation="vertical" spacing="zero">
16
16
  <TextInput.Label css={{...accessibleHide}}>Email</TextInput.Label>
17
17
  <TextInput.Field onChange={handleChange} value={value} />
18
18
  </TextInput>
@@ -9,7 +9,7 @@ export default () => {
9
9
  };
10
10
 
11
11
  return (
12
- <TextInput orientation='horizontal'>
12
+ <TextInput orientation="horizontal">
13
13
  <TextInput.Label>Email</TextInput.Label>
14
14
  <TextInput.Field onChange={handleChange} value={value} />
15
15
  </TextInput>
@@ -9,7 +9,7 @@ export default () => {
9
9
  };
10
10
 
11
11
  return (
12
- <TextInput orientation='vertical' spacing='xxxs'>
12
+ <TextInput orientation="vertical" spacing="xxxs">
13
13
  <TextInput.Label>Email</TextInput.Label>
14
14
  <TextInput.Field onChange={handleChange} value={value} />
15
15
  </TextInput>
@@ -9,7 +9,7 @@ export default () => {
9
9
  };
10
10
 
11
11
  return (
12
- <TextInput orientation='vertical'>
12
+ <TextInput orientation="vertical">
13
13
  <TextInput.Label>Password</TextInput.Label>
14
14
  <TextInput.Field onChange={handleChange} value={value} type="password" />
15
15
  </TextInput>
@@ -9,7 +9,7 @@ export default () => {
9
9
  };
10
10
 
11
11
  return (
12
- <TextInput orientation='vertical'>
12
+ <TextInput orientation="vertical">
13
13
  <TextInput.Label>Email</TextInput.Label>
14
14
  <TextInput.Field onChange={handleChange} value={value} placeholder="user@email.com" />
15
15
  </TextInput>
@@ -13,12 +13,12 @@ export default () => {
13
13
  };
14
14
 
15
15
  const handleClick = () => {
16
- changeFocus(ref.current)
16
+ changeFocus(ref.current);
17
17
  };
18
18
 
19
19
  return (
20
- <VStack spacing='xxxs' alignItems='flex-start'>
21
- <TextInput orientation='vertical'>
20
+ <VStack spacing="xxxs" alignItems="flex-start">
21
+ <TextInput orientation="vertical">
22
22
  <TextInput.Label>Email</TextInput.Label>
23
23
  <TextInput.Field onChange={handleChange} value={value} ref={ref} />
24
24
  </TextInput>
@@ -9,7 +9,7 @@ export default () => {
9
9
  };
10
10
 
11
11
  return (
12
- <TextInput isRequired={true} orientation='vertical'>
12
+ <TextInput isRequired={true} orientation="vertical">
13
13
  <TextInput.Label>Email</TextInput.Label>
14
14
  <TextInput.Field onChange={handleChange} value={value} />
15
15
  </TextInput>
@@ -37,7 +37,7 @@ const AlertInput = () => {
37
37
  const alertStyles = useThemedRing('alert');
38
38
 
39
39
  return (
40
- <TextInput orientation='vertical'>
40
+ <TextInput orientation="vertical">
41
41
  <TextInput.Label>Email</TextInput.Label>
42
42
  <TextInput.Field css={alertStyles} onChange={handleChange} value={value} />
43
43
  <TextInput.Hint paddingTop={space.xxs}>Please enter a valid email.</TextInput.Hint>
@@ -25,12 +25,10 @@ export default () => {
25
25
 
26
26
  return (
27
27
  <CanvasProvider theme={theme}>
28
- <TextInput hasError={!value} isRequired={true} orientation='vertical'>
28
+ <TextInput hasError={!value} isRequired={true} orientation="vertical">
29
29
  <TextInput.Label>Email</TextInput.Label>
30
30
  <TextInput.Field onChange={handleChange} value={value} />
31
- <TextInput.Hint paddingTop={space.xxs}>
32
- {!value && 'Please enter an email.'}
33
- </TextInput.Hint>
31
+ <TextInput.Hint paddingTop={space.xxs}>{!value && 'Please enter an email.'}</TextInput.Hint>
34
32
  </TextInput>
35
33
  </CanvasProvider>
36
34
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-docs",
3
- "version": "6.3.2",
3
+ "version": "6.3.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",
@@ -50,7 +50,7 @@
50
50
  ],
51
51
  "dependencies": {
52
52
  "@storybook/csf": "0.0.1",
53
- "@workday/canvas-kit-react": "^6.3.2"
53
+ "@workday/canvas-kit-react": "^6.3.6"
54
54
  },
55
55
  "devDependencies": {
56
56
  "fs-extra": "^10.0.0",
@@ -58,5 +58,5 @@
58
58
  "mkdirp": "^1.0.3",
59
59
  "typescript": "^3.8.3"
60
60
  },
61
- "gitHead": "5f58fc1dee07c295db44d0b064b6ef384dcdc9c8"
61
+ "gitHead": "3322ef6ba113940373412840edd14d35a7a3093c"
62
62
  }