summaryrefslogtreecommitdiffstats
path: root/front/odiparpack/app/containers/UiElements/List.js
blob: 665cd082c39d0c7e29bb8fd7a05fa0bf36f96a2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import React from 'react';
import { Helmet } from 'react-helmet';
import brand from 'ba-api/brand';
import { SourceReader, PapperBlock } from 'ba-components';
import {
  ListBasic,
  ListMenu,
  PinnedList,
  ListControl,
  ListInteractive
} from './demos';

class List extends React.Component {
  render() {
    const title = brand.name + ' - UI Elements';
    const description = brand.desc;
    const docSrc = 'containers/UiElements/demos/List/';
    return (
      <div>
        <Helmet>
          <title>{title}</title>
          <meta name="description" content={description} />
          <meta property="og:title" content={title} />
          <meta property="og:description" content={description} />
          <meta property="twitter:title" content={title} />
          <meta property="twitter:description" content={description} />
        </Helmet>
        <PapperBlock title="List Basic" desc="The divider renders as a <hr> by default. You can save rendering this DOM element by using the divider property on the ListItem component.">
          <div>
            <ListBasic />
            <SourceReader componentName={docSrc + 'ListBasic.js'} />
          </div>
        </PapperBlock>
        <PapperBlock title="List Menu" desc="Lists are made up of a continuous column of rows. Each row contains a tile. Primary actions fill the tile, and supplemental actions are represented by icons and text.">
          <div>
            <ListMenu />
            <SourceReader componentName={docSrc + 'ListMenu.js'} />
          </div>
        </PapperBlock>
        <PapperBlock title="Pinned Subheader List" desc="Upon scrolling, subheaders remain pinned to the top of the screen until pushed off screen by the next subheader.">
          <div>
            <PinnedList />
            <SourceReader componentName={docSrc + 'PinnedList.js'} />
          </div>
        </PapperBlock>
        <PapperBlock title="List Controls" desc="The checkbox is the primary action and the state indicator for the list item. The comment button is a secondary action and a separate target.">
          <div>
            <ListControl />
            <SourceReader componentName={docSrc + 'ListControl.js'} />
          </div>
        </PapperBlock>
        <PapperBlock title="Interactive" desc="Below is an interactive demo that lets you explore the visual results of the different settings:">
          <div>
            <ListInteractive />
            <SourceReader componentName={docSrc + 'ListInteractive.js'} />
          </div>
        </PapperBlock>
      </div>
    );
  }
}

export default List;