Skip to content

Commit aabb0cb

Browse files
committed
docs: Includes EvaluationForm in Form components
1 parent 71f75d8 commit aabb0cb

File tree

14 files changed

+71
-9
lines changed

14 files changed

+71
-9
lines changed

stories/AutoComplete/AutoComplete.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { Meta, Canvas, Story, ArgsTable } from '@storybook/addon-docs';
22
import { Header } from '../shared';
33
import AutoComplete from '../../components/AutoComplete';
44
import { Default, Required, Disabled, WithHelperText, WithLabel, WithError, WithSkin } from './AutoComplete.stories.jsx';
5+
import EvaluationForm from '../../stories/shared/EvaluationForm'
6+
57

68
<Meta title="Forms/AutoComplete" component={AutoComplete} />
79

@@ -64,3 +66,5 @@ import AutoComplete from '@catho/quantum/AutoComplete';
6466
<Canvas>
6567
<Story of={WithSkin}/>
6668
</Canvas>
69+
70+
<EvaluationForm componentName="AutoComplete" />

stories/Breakpoints/Breakpoints.mdx

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { Meta } from '@storybook/addon-docs';
33
import { Alert } from '../../components';
44
import { Header } from '../shared'
55
import { StyledDivExample } from './styles'
6+
import EvaluationForm from '../../stories/shared/EvaluationForm'
7+
68

79
<Meta title="Foundation/Breakpoints" />
810

@@ -61,4 +63,6 @@ const StyledDiv = styled.div`
6163

6264
Test the div in different sizes:
6365

64-
<StyledDivExample>Test me in different sizes =)</StyledDivExample>
66+
<StyledDivExample>Test me in different sizes =)</StyledDivExample>
67+
68+
<EvaluationForm componentName="Breakpoints" />

stories/Checkbox/Checkbox.mdx

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import {
99
Checked,
1010
Disabled,
1111
} from './Checkbox.stories.jsx';
12+
import EvaluationForm from '../../stories/shared/EvaluationForm'
13+
1214

1315
<Meta title="Forms/Checkbox" component={Checkbox} />
1416

@@ -46,4 +48,6 @@ import Checkbox from '@catho/quantum/Checkbox';
4648

4749
<Canvas>
4850
<Story of={Disabled} />
49-
</Canvas>
51+
</Canvas>
52+
53+
<EvaluationForm componentName="Checkbox" />

stories/Checkbox/CheckboxGroup.mdx

+6-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ import {
1414
ControlledGroup,
1515
} from './CheckboxGroup.stories.jsx';
1616

17+
import EvaluationForm from '../../stories/shared/EvaluationForm'
18+
19+
1720
<Meta title="Forms/Checkbox/CheckboxGroup" component={CheckboxGroup} />
1821

1922
<Header title="Checkbox Group">
@@ -80,4 +83,6 @@ import CheckboxGroup from '@catho/quantum/Checkbox/CheckboxGroup';
8083

8184
<Canvas>
8285
<Story of={ControlledGroup} />
83-
</Canvas>
86+
</Canvas>
87+
88+
<EvaluationForm componentName="CheckboxGroup" />

stories/Dropdown/Dropdown.mdx

+6-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ import {
1414
Controlled
1515
} from './Dropdown.stories.jsx';
1616

17+
import EvaluationForm from '../../stories/shared/EvaluationForm'
18+
19+
1720
<Meta title="Forms/Dropdown" component={Dropdown} />
1821

1922
<Header title="Dropdown">
@@ -99,4 +102,6 @@ import Dropdown from '@catho/quantum/Dropdown';
99102

100103
<Canvas>
101104
<Story of={Controlled}/>
102-
</Canvas>
105+
</Canvas>
106+
107+
<EvaluationForm componentName="Dropdown" />

stories/DropdownLight/DropdownLight.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ import {
1818
SelectedItemControlled
1919
} from './DropdownLight.stories.jsx';
2020

21+
import EvaluationForm from '../../stories/shared/EvaluationForm'
22+
23+
2124
<Meta title="Forms/DropdownLight" component={DropdownLight} />
2225

2326
<Header title="DropdownLight">
@@ -106,3 +109,4 @@ import DropdownLight from '@catho/quantum/DropdownLight';
106109
<Story of={SelectedItemControlled}/>
107110
</Canvas>
108111

112+
<EvaluationForm componentName="DropdownLight" />

stories/Form/Form.mdx

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ import {
88
WithCustomValidation
99
} from './Form.stories.jsx';
1010

11+
import EvaluationForm from '../../stories/shared/EvaluationForm'
12+
13+
1114
<Meta title="Forms/Form" component={Form} />
1215

1316
<Header title="Form">
@@ -60,4 +63,6 @@ messages.
6063

6164
<Canvas>
6265
<Story of={WithCustomValidation}/>
63-
</Canvas>
66+
</Canvas>
67+
68+
<EvaluationForm componentName="Form" />

stories/Icon/Icon.mdx

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { Meta, Story } from '@storybook/addon-docs';
33
import Header from '../shared/Header';
44
import { ExampleIcons, ExampleIncorrectIcons } from './ExampleIcons';
55
import Catalogue from './Catalogue';
6+
import EvaluationForm from '../../stories/shared/EvaluationForm'
7+
68

79
<Meta title="Foundation/Icons" />
810

@@ -65,4 +67,6 @@ element and no icon will render.
6567

6668
### Available Icons
6769

68-
<Catalogue/>
70+
<Catalogue/>
71+
72+
<EvaluationForm componentName="Icons" />

stories/Input/Input.mdx

+6
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ import {
2222
ControlledExample,
2323
} from './Input.stories.jsx';
2424

25+
import EvaluationForm from '../../stories/shared/EvaluationForm'
26+
27+
28+
2529
<Meta title="Forms/Input" component={Input} />
2630

2731
<Header title="Input">
@@ -125,3 +129,5 @@ import Input from '@catho/quantum/Input';
125129
<Canvas>
126130
<Story of={ControlledExample} />
127131
</Canvas>
132+
133+
<EvaluationForm componentName="Input" />

stories/RadioGroup/RadioGroup.mdx

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ import {
1313
Button,
1414
} from './RadioGroup.stories.jsx';
1515

16+
import EvaluationForm from '../../stories/shared/EvaluationForm'
17+
18+
1619
<Meta title="Forms/RadioGroup" component={RadioGroup} />
1720

1821
<Header title="Radio group">
@@ -68,3 +71,5 @@ import RadioGroup from '@catho/quantum/RadioGroup';
6871
<Canvas>
6972
<Story of={Inline} />
7073
</Canvas>
74+
75+
<EvaluationForm componentName="RadioGroup" />

stories/RangeSlider/RangeSlider.mdx

+6-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ import {
1414
ControlledExample,
1515
} from './RangeSlider.stories.jsx';
1616

17+
import EvaluationForm from '../../stories/shared/EvaluationForm'
18+
19+
1720
<Meta title="Forms/RangeSlider" component={RangeSlider} />
1821

1922
<Header title="RangeSlider">
@@ -85,4 +88,6 @@ The same is applied when an object is used in value prop.
8588

8689
<Canvas>
8790
<Story of={ControlledExample} />
88-
</Canvas>
91+
</Canvas>
92+
93+
<EvaluationForm componentName="RangeSlider" />

stories/TextArea/TextArea.mdx

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { Meta, Canvas, Story, ArgsTable } from '@storybook/addon-docs';
22
import { Header } from '../shared';
33
import TextArea from '../../components/TextArea';
44
import { Default, Disabled, Required, WithAutoSize, WithCustomAutoSize, WithHelperText, WithError, WithLabel } from './TextArea.stories.jsx';
5+
import EvaluationForm from '../../stories/shared/EvaluationForm'
6+
57

68
<Meta title="Forms/TextArea" component={TextArea} />
79

@@ -70,4 +72,6 @@ import TextArea from '@catho/quantum/TextArea';
7072

7173
<Canvas>
7274
<Story of={WithError}/>
73-
</Canvas>
75+
</Canvas>
76+
77+
<EvaluationForm componentName="TextArea" />

stories/Theme/Theme.mdx

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { Meta } from '@storybook/addon-docs';
33
import { Header } from '../shared'
44

55
import { BreakpointsProperties, ColorIntensity, SpacingValues } from './Theme';
6+
import EvaluationForm from '../../stories/shared/EvaluationForm'
7+
68

79
<Meta title="Foundation/Theme" />
810

@@ -129,4 +131,6 @@ badge: {
129131
},
130132
},
131133
}
132-
```
134+
```
135+
136+
<EvaluationForm componentName="Theme" />

stories/Toggle/Toogle.mdx

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { Meta, Canvas, Story, ArgsTable } from '@storybook/addon-docs';
33
import Toggle from '../../components/Toggle';
44
import { Default, Checked, WithLeftLabel, WithRightLabel } from './Toggle.stories.jsx';
55
import { Header } from '../shared';
6+
import EvaluationForm from '../../stories/shared/EvaluationForm'
7+
68

79
<Meta title="Forms/Toggle" component={Toggle} />
810

@@ -50,3 +52,4 @@ import Toggle from '@catho/quantum/Toggle';
5052
</Canvas>
5153

5254

55+
<EvaluationForm componentName="Toggle" />

0 commit comments

Comments
 (0)