-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(documentation,demo): Create a compatibility table (#2159)
Pages to check: https://preview-2159--swisspost-web-frontend.netlify.app/#/home https://preview-2159--swisspost-web-frontend.netlify.app/#/post-samples/intranet-layout https://preview-2159--swisspost-design-system-next.netlify.app/?path=/docs/getting-started-compatibility--docs --------- Co-authored-by: Philipp Gfeller <[email protected]>
- Loading branch information
Showing
5 changed files
with
227 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
107 changes: 107 additions & 0 deletions
107
.../documentation/src/stories/getting-started/compatibility/compatibility.docs.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
import { Meta } from '@storybook/blocks'; | ||
import * as GettingStartedStories from './compatibility.stories'; | ||
|
||
<Meta of={GettingStartedStories} /> | ||
|
||
# Compatibility | ||
|
||
<p id="compatibility-desc">List of compatible version numbers with external dependencies.</p> | ||
|
||
## Intranet-header | ||
|
||
<div className="table-responsive"> | ||
<table aria-describedby="compatibility-desc" className="table caption-top"> | ||
<caption>Package @swisspost/design-system-intranet-header</caption> | ||
<thead> | ||
<tr> | ||
<th>Version</th> | ||
<th>Bootstrap</th> | ||
<th>Angular</th> | ||
<th>Ng-Bootstrap</th> | ||
</tr> | ||
</thead> | ||
|
||
<tbody> | ||
<tr> | ||
<th scope="row">3.x</th> | ||
<td>4.x</td> | ||
<td>14.x</td> | ||
<td>13.x</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">4.x</th> | ||
<td>5.2</td> | ||
<td>15.x</td> | ||
<td>14.x</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">5.x</th> | ||
<td>5.2</td> | ||
<td>16.x</td> | ||
<td>15.x</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
|
||
## Styles | ||
|
||
<div className="table-responsive"> | ||
<table aria-describedby="compatibility-desc" className="table caption-top"> | ||
<caption>Package @swisspost/design-system-styles</caption> | ||
<thead> | ||
<tr> | ||
<th scope="col">Version</th> | ||
<th scope="col">Bootstrap</th> | ||
<th scope="col">Angular</th> | ||
<th scope="col">Ng-Bootstrap</th> | ||
</tr> | ||
</thead> | ||
|
||
<tbody> | ||
<tr> | ||
<th scope="col">5.x</th> | ||
<td>5.0</td> | ||
<td>14.x</td> | ||
<td>13.x</td> | ||
</tr> | ||
<tr> | ||
<th scope="col">6.2</th> | ||
<td>5.2</td> | ||
<td>15.x</td> | ||
<td>14.x</td> | ||
</tr> | ||
<tr> | ||
<th scope="col">6.4</th> | ||
<td>5.3</td> | ||
<td>16.x</td> | ||
<td>15.x</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
|
||
## Common Web Frontend | ||
|
||
<div className="table-responsive"> | ||
<table aria-describedby="compatibility-desc" className="table caption-top"> | ||
<caption>Package @.../common-web-frontend</caption> | ||
<thead> | ||
<tr> | ||
<th scope="col">Version</th> | ||
<th scope="col">Bootstrap</th> | ||
<th scope="col">Angular</th> | ||
<th scope="col">Ng-Bootstrap</th> | ||
</tr> | ||
</thead> | ||
|
||
<tbody> | ||
<tr> | ||
<th scope="col">4.x</th> | ||
<td>4.6</td> | ||
<td>12.x</td> | ||
<td>9.x</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> |
15 changes: 15 additions & 0 deletions
15
packages/documentation/src/stories/getting-started/compatibility/compatibility.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Meta, StoryObj } from '@storybook/web-components'; | ||
import { BADGE } from '../../../../.storybook/constants'; | ||
|
||
const meta: Meta = { | ||
title: 'Getting Started/Compatibility', | ||
parameters: { | ||
badges: [BADGE.NEEDS_REVISION], | ||
}, | ||
}; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj; | ||
|
||
export const Default: Story = {}; |