Skip to content

Commit

Permalink
Add List to kitchen sink and fix website build
Browse files Browse the repository at this point in the history
  • Loading branch information
moroshko committed Feb 1, 2020
1 parent 19addfa commit c47d2ea
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 1 deletion.
62 changes: 62 additions & 0 deletions website/src/components/kitchen-sink/List.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import React from "react";
import { Container, List, Text, Link } from "basis";
import Layout from "./Layout";

function KitchenSinkList() {
return (
<Layout name="List">
<Container padding="4" width="20">
<Text textStyle="heading4" margin="0 0 4 0">
Unordered list:
</Text>
<List>
<List.Item>
<Text>Short item</Text>
</List.Item>
<List.Item>
<Text>
Very long item with a{" "}
<Link href="#" newTab={false}>
link
</Link>{" "}
and a <b>bold text</b> that demonstrates a multi-line paragraph.
</Text>
<Text textStyle="legal" margin="4 0 0 0">
{`Note that you can override List's textStyle.`}
</Text>
</List.Item>
<List.Item>
<Text>
<strong>Nested list</strong>
</Text>
<List textStyle="body2" margin="3 0 0 0">
<List.Item>First</List.Item>
<List.Item>Second</List.Item>
<List.Item>Third</List.Item>
</List>
</List.Item>
</List>
</Container>
<Container padding="4" width="20" bg="grey.t05">
<Text textStyle="heading4" margin="0 0 4 0">
Ordered list:
</Text>
<List type="ordered" textStyle="subtitle2">
<List.Item>First item</List.Item>
<List.Item>Second item</List.Item>
<List.Item>
<Text>
<b>Nested list</b>
</Text>
<List type="ordered" textStyle="body2" margin="3 0 0 0">
<List.Item>Hello</List.Item>
<List.Item>World</List.Item>
</List>
</List.Item>
</List>
</Container>
</Layout>
);
}

export default KitchenSinkList;
2 changes: 2 additions & 0 deletions website/src/pages/kitchen-sink/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Grid from "../../components/kitchen-sink/Grid";
import Header from "../../components/kitchen-sink/Header";
import Input from "../../components/kitchen-sink/Input";
import Link from "../../components/kitchen-sink/Link";
import List from "../../components/kitchen-sink/List";
import RadioGroup from "../../components/kitchen-sink/RadioGroup";
import Section from "../../components/kitchen-sink/Section";
import Select from "../../components/kitchen-sink/Select";
Expand All @@ -34,6 +35,7 @@ function KitchenSink() {
<Header />
<Input />
<Link />
<List />
<RadioGroup />
<Section />
<Select />
Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/playground/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import useLocalStorage from "../../hooks/useLocalStorage";
import useCanary from "../../hooks/useCanary";
import ComponentPreview from "../../components/ComponentPreview";
import DemoBlock from "../../components/DemoBlock";
import InspectIcon from "../../components/icons/Inspect";
import InspectIcon from "../../components/icons/inspect";

import "../../utils/meta";

Expand Down

1 comment on commit c47d2ea

@vercel
Copy link

@vercel vercel bot commented on c47d2ea Feb 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.