-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add progress bar page using inDevelopment component
- Loading branch information
Showing
4 changed files
with
67 additions
and
7 deletions.
There are no files selected for viewing
Empty file.
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
55 changes: 55 additions & 0 deletions
55
packages/paste-website/src/pages/components/progress-bar/index.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,55 @@ | ||
export const meta = { | ||
title: 'Meter', | ||
package: '@twilio-paste/meter', | ||
description: 'Meter is a visual representation of a numerical value within a known range.', | ||
slug: '/components/meter/', | ||
}; | ||
|
||
import Changelog from '@twilio-paste/progress-bar/CHANGELOG.md'; | ||
import packageJson from '@twilio-paste/progress-bar/package.json'; | ||
|
||
import {InDevelopment} from '../../../components/empty-state/InDevelopment'; | ||
import DefaultLayout from '../../../layouts/DefaultLayout'; | ||
import {SidebarCategoryRoutes} from '../../../constants'; | ||
import {getFeature, getNavigationData} from '../../../utils/api'; | ||
|
||
export default DefaultLayout; | ||
|
||
export const getStaticProps = async () => { | ||
const navigationData = await getNavigationData(); | ||
const feature = await getFeature('Progress bar'); | ||
return { | ||
props: { | ||
data: { | ||
...packageJson, | ||
...feature, | ||
}, | ||
navigationData, | ||
}, | ||
}; | ||
}; | ||
|
||
<NormalizedComponentHeader | ||
categoryRoute={SidebarCategoryRoutes.COMPONENTS} | ||
storybookUrl="/?path=/story/components-progressbar--default" | ||
githubUrl="https://github.com/twilio-labs/paste/tree/main/packages/paste-core/components/progress-bar" | ||
data={props.data} | ||
/> | ||
|
||
--- | ||
|
||
<contentwrapper> | ||
|
||
<PageAside data={mdxHeadings} /> | ||
|
||
<content> | ||
|
||
<InDevelopment showBreadcrumb={false} /> | ||
|
||
<ChangelogRevealer> | ||
<Changelog /> | ||
</ChangelogRevealer> | ||
|
||
</content> | ||
|
||
</contentwrapper> |