Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
269 additions
and
98 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
dist | ||
demo/bundle.js | ||
demo/index.html | ||
demo/ui/index.html | ||
|
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
import React from 'react' | ||
import { Box, Heading } from 'axs-ui' | ||
|
||
import components from './ui-components' | ||
import ExamplePre from './ExamplePre' | ||
|
||
const UiComponents = () => ( | ||
<Box> | ||
{components.map((comp, i) => ( | ||
<Box key={i} id={comp.name} py3> | ||
<Heading level={3} mb2 children={comp.name} /> | ||
<ExamplePre example={comp.example} /> | ||
</Box> | ||
))} | ||
</Box> | ||
) | ||
|
||
export default UiComponents | ||
|
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,26 @@ | ||
|
||
import React from 'react' | ||
import { | ||
Box, | ||
Heading, | ||
Text | ||
} from 'axs-ui' | ||
import Pre from './Pre' | ||
|
||
const UiHeader = () => ( | ||
<Box py3> | ||
<Heading level={1} grape> | ||
Axs UI | ||
</Heading> | ||
<Text bold size={3} grape> | ||
UI Component Primitives | ||
</Text> | ||
<Pre size={4} p0 py2>npm i axs-ui</Pre> | ||
<Text py2> | ||
In addition to the core Box and Text components, | ||
the optional <code>axs-ui</code> package includes several pre-styled UI component primitives. | ||
</Text> | ||
</Box> | ||
) | ||
|
||
export default UiHeader |
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,23 @@ | ||
|
||
import React from 'react' | ||
import { Box } from 'axs' | ||
import components from './ui-components' | ||
import Link from './Link' | ||
|
||
const UiNav = (props) => ( | ||
<Box {...props}> | ||
{components.map((comp, i) => ( | ||
<Link | ||
key={i} | ||
display='block' | ||
py0 | ||
mb1 | ||
href={`#${comp.name}`}> | ||
{comp.name} | ||
</Link> | ||
))} | ||
</Box> | ||
) | ||
|
||
export default UiNav | ||
|
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
Oops, something went wrong.