This repository was archived by the owner on Mar 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
docs(props): put props on a single page, fix props links #1892
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
10a343a
initial commit
lucivpav d3dd76d
Merge branch 'master' into fix/props-links
lucivpav d3ad8ac
update changelog
lucivpav 4388e1a
Merge branch 'master' into fix/props-links
lucivpav bc706c4
fix changelog
lucivpav 06aef45
Merge branch 'master' into fix/props-links
lucivpav c0de921
Merge branch 'master' into fix/props-links
lucivpav df40917
put all props on a single page
lucivpav 2b0448a
update changelog
lucivpav 27d51c5
Merge branch 'master' into fix/props-links
lucivpav 63fdd7f
Add key to outline element
lucivpav 45f7384
use TS types instead
lucivpav f28feac
remove cruft
lucivpav 4a07632
remove Flex.Item wrapper
lucivpav f155edf
one liner
lucivpav 6065d36
React.FC
lucivpav 0bec8b8
Merge branch 'master' into fix/props-links
lucivpav 760a133
remove getUrlWithoutHash()
lucivpav 15732df
Merge branch 'master' into fix/props-links
lucivpav File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
22 changes: 22 additions & 0 deletions
22
docs/src/components/ComponentDoc/ComponentProps/ComponentPropCard.tsx
This file contains hidden or 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,22 @@ | ||
| import * as React from 'react' | ||
| import ComponentTableProps from '../ComponentPropsTable' | ||
| import { Divider, Segment } from '@stardust-ui/react/src' | ||
|
|
||
| export const cardStyle: React.CSSProperties = { | ||
| boxShadow: '0 1px 2px rgba(0, 0, 0, 0.2)', | ||
| } | ||
|
|
||
| type ComponentPropCardProps = { | ||
| name: string | ||
| description: string | ||
| } | ||
|
|
||
| const ComponentPropCard: React.FC<ComponentPropCardProps> = ({ name, description }) => ( | ||
| <Segment styles={cardStyle}> | ||
| <div>{description}</div> | ||
| <Divider /> | ||
| <ComponentTableProps componentName={name} /> | ||
| </Segment> | ||
| ) | ||
|
|
||
| export default ComponentPropCard |
This file contains hidden or 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
42 changes: 0 additions & 42 deletions
42
docs/src/components/ComponentDoc/ComponentProps/ComponentPropsComponents.tsx
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
docs/src/components/ComponentDoc/ComponentProps/ComponentPropsDescription.tsx
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
docs/src/components/ComponentDoc/ComponentProps/ComponentPropsOutline.tsx
This file contains hidden or 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,22 @@ | ||
| import * as _ from 'lodash' | ||
| import * as React from 'react' | ||
| import { link } from 'docs/src/utils/helpers' | ||
|
|
||
| const ComponentPropsOutline: any = (props: ComponentPropsOutlineProps) => { | ||
| const { displayNames } = props | ||
| if (displayNames.length < 2) return null | ||
|
|
||
| return ( | ||
| <ul> | ||
| {_.map(displayNames, item => ( | ||
| <li key={item}>{link(item, `#${_.kebabCase(item)}`)}</li> | ||
| ))} | ||
| </ul> | ||
| ) | ||
| } | ||
|
|
||
| export interface ComponentPropsOutlineProps { | ||
| displayNames: string[] | ||
| } | ||
|
|
||
| export default ComponentPropsOutline |
This file contains hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.