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

docs [QTM-613] Includes EvaluationForm in Infinite Scroll, Hooks/useMaxWithMediaQuery & Accordion #542

Merged
merged 4 commits into from
Feb 1, 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" />
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" />
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" />
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" />
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" />
7 changes: 6 additions & 1 deletion stories/InfiniteScroll/InfiniteScroll.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import {
WithLoaderIndicator
} from './InfiniteScroll.stories.jsx';

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


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

<Header title="InfiniteScroll">
Expand Down Expand Up @@ -102,4 +105,6 @@ export default function InfiniteScrollWithLoader() {
```
<Canvas withSource="none">
<Story of={WithLoaderIndicator} />
</Canvas>
</Canvas>

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

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


<Meta
title="Foundation/Link"
component={Link}
Expand Down Expand Up @@ -44,4 +47,6 @@ import Link from '@catho/quantum/Link';

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

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

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


<Meta
title="Foundation/List"
component={List}
Expand Down Expand Up @@ -66,4 +69,6 @@ import List from '@catho/quantum/List';

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

<EvaluationForm componentName="List" />
6 changes: 5 additions & 1 deletion stories/Theme/Theme.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'

import { BreakpointsProperties, ColorIntensity, SpacingValues } from './Theme';
import EvaluationForm from '../../stories/shared/EvaluationForm'


<Meta title="Foundation/Theme" />

Expand Down Expand Up @@ -129,4 +131,6 @@ badge: {
},
},
}
```
```

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

import { Header } from '../shared'
import { Headings, Texts, Lists } from './Components'
import EvaluationForm from '../../stories/shared/EvaluationForm'


<Meta title="Foundation/Typography" />

Expand Down Expand Up @@ -66,4 +68,6 @@ const exampleItemsDefault = [
];
```

<Lists />
<Lists />

<EvaluationForm componentName="Typography" />
Loading