|
| 1 | +/* eslint react/no-multi-comp: 0, react/prop-types: 0 */ |
| 2 | +import React from 'react'; |
| 3 | +import { PrismCode } from 'react-prism'; |
| 4 | +import Helmet from 'react-helmet'; |
| 5 | + |
| 6 | +import FormExample from '../examples/Form'; |
| 7 | +const FormExampleSource = require('!!raw!../examples/Form.jsx'); |
| 8 | + |
| 9 | +import FormGridExample from '../examples/FormGrid'; |
| 10 | +const FormGridExampleSource = require('!!raw!../examples/FormGrid.jsx'); |
| 11 | + |
| 12 | +import FormInlineExample from '../examples/FormInline'; |
| 13 | +const FormInlineExampleSource = require('!!raw!../examples/FormInline.jsx'); |
| 14 | + |
| 15 | +import FormFeedbackExample from '../examples/FormFeedback'; |
| 16 | +const FormFeedbackExampleSource = require('!!raw!../examples/FormFeedback.jsx'); |
| 17 | + |
| 18 | +import InputTypeExample from '../examples/InputType'; |
| 19 | +const InputTypeExampleSource = require('!!raw!../examples/InputType.jsx'); |
| 20 | + |
| 21 | +import InputSizingExample from '../examples/InputSizing'; |
| 22 | +const InputSizingExampleSource = require('!!raw!../examples/InputSizing.jsx'); |
| 23 | + |
| 24 | +import InputGridSizingExample from '../examples/InputGridSizing'; |
| 25 | +const InputGridSizingExampleSource = require('!!raw!../examples/InputGridSizing.jsx'); |
| 26 | + |
| 27 | +import LabelHiddenExample from '../examples/LabelHidden'; |
| 28 | +const LabelHiddenExampleSource = require('!!raw!../examples/LabelHidden.jsx'); |
| 29 | + |
| 30 | +export default class FormPage extends React.Component { |
| 31 | + render() { |
| 32 | + return ( |
| 33 | + <div> |
| 34 | + <Helmet title="Form" /> |
| 35 | + <h3>Form</h3> |
| 36 | + <div className="docs-example"> |
| 37 | + <FormExample /> |
| 38 | + </div> |
| 39 | + <pre> |
| 40 | + <PrismCode className="language-jsx"> |
| 41 | + {FormExampleSource} |
| 42 | + </PrismCode> |
| 43 | + </pre> |
| 44 | + |
| 45 | + <h3>Form Grid</h3> |
| 46 | + <div className="docs-example"> |
| 47 | + <FormGridExample /> |
| 48 | + </div> |
| 49 | + <pre> |
| 50 | + <PrismCode className="language-jsx"> |
| 51 | + {FormGridExampleSource} |
| 52 | + </PrismCode> |
| 53 | + </pre> |
| 54 | + |
| 55 | + <h3>Inline Form</h3> |
| 56 | + <div className="docs-example"> |
| 57 | + <FormInlineExample /> |
| 58 | + </div> |
| 59 | + <pre> |
| 60 | + <PrismCode className="language-jsx"> |
| 61 | + {FormInlineExampleSource} |
| 62 | + </PrismCode> |
| 63 | + </pre> |
| 64 | + |
| 65 | + <h3>Form Feedback</h3> |
| 66 | + <div className="docs-example"> |
| 67 | + <FormFeedbackExample /> |
| 68 | + </div> |
| 69 | + <pre> |
| 70 | + <PrismCode className="language-jsx"> |
| 71 | + {FormFeedbackExampleSource} |
| 72 | + </PrismCode> |
| 73 | + </pre> |
| 74 | + |
| 75 | + <h3>Input Types</h3> |
| 76 | + <div className="docs-example"> |
| 77 | + <InputTypeExample /> |
| 78 | + </div> |
| 79 | + <pre> |
| 80 | + <PrismCode className="language-jsx"> |
| 81 | + {InputTypeExampleSource} |
| 82 | + </PrismCode> |
| 83 | + </pre> |
| 84 | + |
| 85 | + <h3>Input Sizing</h3> |
| 86 | + <div className="docs-example"> |
| 87 | + <InputSizingExample /> |
| 88 | + </div> |
| 89 | + <pre> |
| 90 | + <PrismCode className="language-jsx"> |
| 91 | + {InputSizingExampleSource} |
| 92 | + </PrismCode> |
| 93 | + </pre> |
| 94 | + |
| 95 | + <h3>Input Grid Sizing</h3> |
| 96 | + <div className="docs-example"> |
| 97 | + <InputGridSizingExample /> |
| 98 | + </div> |
| 99 | + <pre> |
| 100 | + <PrismCode className="language-jsx"> |
| 101 | + {InputGridSizingExampleSource} |
| 102 | + </PrismCode> |
| 103 | + </pre> |
| 104 | + |
| 105 | + <h3>Hidden Labels</h3> |
| 106 | + <div className="docs-example"> |
| 107 | + <LabelHiddenExample /> |
| 108 | + </div> |
| 109 | + <pre> |
| 110 | + <PrismCode className="language-jsx"> |
| 111 | + {LabelHiddenExampleSource} |
| 112 | + </PrismCode> |
| 113 | + </pre> |
| 114 | + </div> |
| 115 | + ); |
| 116 | + } |
| 117 | +} |
0 commit comments