Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore[QTM-620]: EvalutationForm #537

Merged
merged 18 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion stories/Accordion/Accordion.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import {
Default,
KeepOnlyOneOpen,
} from './Accordion.stories.jsx';
import EvaluationForm from '../../stories/shared/EvaluationForm';


<Meta title="Accordion" component={Accordion} />

Expand Down Expand Up @@ -39,4 +41,6 @@ import Accordion from '@catho/quantum/Accordion';

<Canvas>
<Story of={KeepOnlyOneOpen} />
</Canvas>
</Canvas>

<EvaluationForm componentName="Accordion" />
7 changes: 6 additions & 1 deletion stories/Alert/Alert.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ import {
WithIcon
} from './Alert.stories.jsx';

import EvaluationForm from '../../stories/shared/EvaluationForm'


<Meta title="Alert" component={Alert} />

<Header title="Alert">
Expand Down Expand Up @@ -60,4 +63,6 @@ import Alert from '@catho/quantum/Alert';

<Canvas>
<Story of={WithIcon} />
</Canvas>
</Canvas>

<EvaluationForm componentName="Alert" />
4 changes: 4 additions & 0 deletions stories/AutoComplete/AutoComplete.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { Meta, Canvas, Story, ArgsTable } from '@storybook/addon-docs';
import { Header } from '../shared';
import AutoComplete from '../../components/AutoComplete';
import { Default, Required, Disabled, WithHelperText, WithLabel, WithError, WithSkin } from './AutoComplete.stories.jsx';
import EvaluationForm from '../../stories/shared/EvaluationForm'


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

Expand Down Expand Up @@ -64,3 +66,5 @@ import AutoComplete from '@catho/quantum/AutoComplete';
<Canvas>
<Story of={WithSkin}/>
</Canvas>

<EvaluationForm componentName="AutoComplete" />
4 changes: 4 additions & 0 deletions stories/Avatar/Avatar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import {
WithHrefAndToggleAndIcon,
CombinedWithPopover,
} from './Avatar.stories.jsx';
import EvaluationForm from '../../stories/shared/EvaluationForm'


<Meta title="Avatar" component={Avatar} />

Expand Down Expand Up @@ -68,3 +70,5 @@ import Avatar from '@catho/quantum/Avatar';
<Canvas>
<Story of={CombinedWithPopover} />
</Canvas>

<EvaluationForm componentName="Avatar" />
3 changes: 3 additions & 0 deletions stories/Badge/Badge.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import {
Dot,
Inverted
} from './Badge.stories.jsx';
import EvaluationForm from '../../stories/shared/EvaluationForm'


<Meta title="Badge" component={Badge} />

Expand Down Expand Up @@ -69,3 +71,4 @@ import Badge from '@catho/quantum/Badge';
<Story of={Inverted} />
</Canvas>

<EvaluationForm componentName="Badge" />
5 changes: 5 additions & 0 deletions stories/Breadcrumbs/Breadcrumbs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import {
Default
} from './Breadcrumbs.stories.jsx';

import EvaluationForm from '../../stories/shared/EvaluationForm'


<Meta title="Breadcrumbs" component={Breadcrumbs} />

<Header title="Breadcrumbs">
Expand Down Expand Up @@ -36,3 +39,5 @@ import Breadcrumbs from '@catho/quantum/Breadcrumbs';
<Canvas>
<Story of={Default} />
</Canvas>

<EvaluationForm componentName="Breadcrumbs" />
6 changes: 5 additions & 1 deletion stories/Breakpoints/Breakpoints.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Meta } from '@storybook/addon-docs';
import { Alert } from '../../components';
import { Header } from '../shared'
import { StyledDivExample } from './styles'
import EvaluationForm from '../../stories/shared/EvaluationForm'


<Meta title="Foundation/Breakpoints" />

Expand Down Expand Up @@ -61,4 +63,6 @@ const StyledDiv = styled.div`

Test the div in different sizes:

<StyledDivExample>Test me in different sizes =)</StyledDivExample>
<StyledDivExample>Test me in different sizes =)</StyledDivExample>

<EvaluationForm componentName="Breakpoints" />
5 changes: 5 additions & 0 deletions stories/Button/Button.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import {
WithIcon
} from './Button.stories.jsx';

import EvaluationForm from '../../stories/shared/EvaluationForm'


<Meta title="Button" component={Button} />

<Header title="Button">
Expand Down Expand Up @@ -76,3 +79,5 @@ The full catalogue of icons can be found [here](?path=/docs/foundation-icons--pa
<Canvas>
<Story of={WithIcon}/>
</Canvas>

<EvaluationForm componentName="Button" />
6 changes: 5 additions & 1 deletion stories/Button/SocialButton.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import {
Google,
Facebook
} from './SocialButton.stories.jsx';
import EvaluationForm from '../../stories/shared/EvaluationForm'


<Meta title="Button/Social" component={SocialButton} />

Expand Down Expand Up @@ -38,4 +40,6 @@ import SocialButton from '@catho/quantum/SocialButton';

<Canvas>
<Story of={Facebook}/>
</Canvas>
</Canvas>

<EvaluationForm componentName="SocialButton" />
4 changes: 4 additions & 0 deletions stories/Card/Card.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import {
CompoundComponentsList,
AdvancedCard
} from './Card.stories.jsx';
import EvaluationForm from '../../stories/shared/EvaluationForm'


<Meta title="Card" component={Card} />

Expand Down Expand Up @@ -66,3 +68,5 @@ We provide a few components to build your Card.
<Canvas>
<Story of={AdvancedCard}/>
</Canvas>

<EvaluationForm componentName="Card" />
4 changes: 4 additions & 0 deletions stories/Carousel/Carousel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import Carousel from '../../components/Carousel';
import Alert from '../../components/Alert';
import { Default, WithSmallCards, WithLargeCards, WithEllipsisForLongTexts } from './Carousel.stories.jsx';
import { Header } from '../shared';
import EvaluationForm from '../../stories/shared/EvaluationForm'


<Meta title="Carousel" component={Carousel} />

Expand Down Expand Up @@ -83,3 +85,5 @@ import Carousel from '@catho/quantum/Carousel';
<Canvas>
<Story of={WithEllipsisForLongTexts}/>
</Canvas>

<EvaluationForm componentName="Carousel" />
4 changes: 4 additions & 0 deletions stories/ChargeBar/ChargeBar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Meta, Canvas, Story, ArgsTable } from '@storybook/addon-docs';
import { Header } from '../shared';
import ChargeBar from '../../components/ChargeBar';
import { Default, WithSkin, WithProgressPercent, WithLabel } from './ChargeBar.stories.jsx';
import EvaluationForm from '../../stories/shared/EvaluationForm'


<Meta title="ChargeBar" component={ChargeBar} />

Expand Down Expand Up @@ -47,3 +49,5 @@ import ChargeBar from '@catho/quantum/ChargeBar';
<Canvas>
<Story of={WithLabel}/>
</Canvas>

<EvaluationForm componentName="ChargeBar" />
6 changes: 5 additions & 1 deletion stories/Checkbox/Checkbox.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import {
Checked,
Disabled,
} from './Checkbox.stories.jsx';
import EvaluationForm from '../../stories/shared/EvaluationForm'


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

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

<Canvas>
<Story of={Disabled} />
</Canvas>
</Canvas>

<EvaluationForm componentName="Checkbox" />
7 changes: 6 additions & 1 deletion stories/Checkbox/CheckboxGroup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import {
ControlledGroup,
} from './CheckboxGroup.stories.jsx';

import EvaluationForm from '../../stories/shared/EvaluationForm'


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

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

<Canvas>
<Story of={ControlledGroup} />
</Canvas>
</Canvas>

<EvaluationForm componentName="CheckboxGroup" />
4 changes: 4 additions & 0 deletions stories/Colors/Colors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { Meta } from '@storybook/addon-docs';

import { Header } from '../shared'
import Colors from './Colors'
import EvaluationForm from '../../stories/shared/EvaluationForm'


<Meta title="Foundation/Colors" />

Expand Down Expand Up @@ -37,3 +39,5 @@ console.log(Colors.secondary['500'])
```
## <a id="examples"></a>Examples
<Colors />

<EvaluationForm componentName="Colors" />
6 changes: 6 additions & 0 deletions stories/Dialog/Dialog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {
CloseOnTime,
DisableClickOutside
} from './Dialog.stories.jsx';
import EvaluationForm from '../../stories/shared/EvaluationForm'



<Meta title="Dialog" component={Dialog} />

Expand Down Expand Up @@ -93,3 +96,6 @@ export default function SimpleDialog() {
<Canvas withSource="none">
<Story of={DisableClickOutside}/>
</Canvas>


<EvaluationForm componentName="Dialog" />
7 changes: 6 additions & 1 deletion stories/Dropdown/Dropdown.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import {
Controlled
} from './Dropdown.stories.jsx';

import EvaluationForm from '../../stories/shared/EvaluationForm'


<Meta title="Forms/Dropdown" component={Dropdown} />

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

<Canvas>
<Story of={Controlled}/>
</Canvas>
</Canvas>

<EvaluationForm componentName="Dropdown" />
4 changes: 4 additions & 0 deletions stories/DropdownLight/DropdownLight.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ import {
SelectedItemControlled
} from './DropdownLight.stories.jsx';

import EvaluationForm from '../../stories/shared/EvaluationForm'


<Meta title="Forms/DropdownLight" component={DropdownLight} />

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

<EvaluationForm componentName="DropdownLight" />
7 changes: 6 additions & 1 deletion stories/Form/Form.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import {
WithCustomValidation
} from './Form.stories.jsx';

import EvaluationForm from '../../stories/shared/EvaluationForm'


<Meta title="Forms/Form" component={Form} />

<Header title="Form">
Expand Down Expand Up @@ -60,4 +63,6 @@ messages.

<Canvas>
<Story of={WithCustomValidation}/>
</Canvas>
</Canvas>

<EvaluationForm componentName="Form" />
7 changes: 6 additions & 1 deletion stories/Grid/Grid.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Meta } from '@storybook/addon-docs';

import Header from '../shared/Header';
import { SizesTable, HorizontalExample, MobileDesktopExample, NoGuttersExample, HideExample, OffsetExample, OffsetWithTwoColumnsExample } from './Grid';
import EvaluationForm from '../../stories/shared/EvaluationForm'


<Meta title="Foundation/Grid" />

Expand Down Expand Up @@ -242,4 +244,7 @@ When setting a "offset" value, it is important to consider the space occupied by

In the example above, the space occupied by the first column is the sum of the "small" and "small-offset" props. The result must also be added to the desired gap value for the column.
Therefore, the value of the "offset" prop of the second column is composed of:
2 ("small" of the 1st column) + 1 ("small-offset" of the 1st column) + 2 (desired gap betwen the 2nd column) = 5.
2 ("small" of the 1st column) + 1 ("small-offset" of the 1st column) + 2 (desired gap betwen the 2nd column) = 5.


<EvaluationForm componentName="Grid" />
6 changes: 5 additions & 1 deletion stories/Hamburger/Hamburguer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { Meta, Canvas, Story, ArgsTable } from '@storybook/addon-docs';
import { Header } from '../shared';
import { Hamburger } from '../../components';
import { Default, Opened, Inverted, WithNotificationIcon } from './Hamburger.stories.jsx';
import EvaluationForm from '../../stories/shared/EvaluationForm'


<Meta title="Hamburger" component={Hamburger} />

Expand Down Expand Up @@ -45,4 +47,6 @@ import { Hamburger } from '@catho/quantum/Hamburger';

<Canvas>
<Story of={WithNotificationIcon} />
</Canvas>
</Canvas>

<EvaluationForm componentName="Hamburguer" />
7 changes: 6 additions & 1 deletion stories/Hooks/Hooks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ import { Meta } from '@storybook/addon-docs';

import { Header } from '../shared';
import { Alert } from '../../components';
import EvaluationForm from '../../stories/shared/EvaluationForm';


<Meta title="Hooks/useMaxWithMediaQuery" />

<Header title="UseMaxWithMediaQuery" />


- [Importing](#importing)
- [Usage](#usage)

Expand Down Expand Up @@ -64,4 +67,6 @@ const Component = () => {
}

export default Component;
```
```

<EvaluationForm componentName="Hooks/useMaxWithMediaQuery" />
6 changes: 5 additions & 1 deletion stories/Icon/Icon.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Meta, Story } from '@storybook/addon-docs';
import Header from '../shared/Header';
import { ExampleIcons, ExampleIncorrectIcons } from './ExampleIcons';
import Catalogue from './Catalogue';
import EvaluationForm from '../../stories/shared/EvaluationForm'


<Meta title="Foundation/Icons" />

Expand Down Expand Up @@ -65,4 +67,6 @@ element and no icon will render.

### Available Icons

<Catalogue/>
<Catalogue/>

<EvaluationForm componentName="Icons" />
Loading
Loading