-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #191 from reapit/develop
Create Pull request for Resolve conflict
- Loading branch information
Showing
22 changed files
with
1,641 additions
and
136 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
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 |
---|---|---|
|
@@ -24,7 +24,13 @@ export const FormExample: React.SFC = () => ( | |
<FormSection> | ||
<FormHeading>Section One</FormHeading> | ||
<FormSubHeading>Information about this section to help the user</FormSubHeading> | ||
<Input id="text" type="text" placeholder="Some text here" name="text" labelText="Text" /> | ||
<Input | ||
id="text-1-section-1" | ||
type="text" | ||
placeholder="Some text here" | ||
name="text-1-section-1" | ||
labelText="Text" | ||
/> | ||
<Input id="email" type="email" placeholder="[email protected]" name="email" labelText="Email" /> | ||
<Input id="tel" type="tel" placeholder="0800 800 800" name="tel" labelText="Telephone" /> | ||
</FormSection> | ||
|
@@ -36,7 +42,7 @@ export const FormExample: React.SFC = () => ( | |
id="passwordConfirm" | ||
type="password" | ||
placeholder="********" | ||
name="password" | ||
name="passwordConfirm" | ||
labelText="Password Confirm" | ||
/> | ||
</FormSection> | ||
|
@@ -46,7 +52,13 @@ export const FormExample: React.SFC = () => ( | |
<FormSection> | ||
<FormHeading>Section Three</FormHeading> | ||
<FormSubHeading>Information about this section to help the user</FormSubHeading> | ||
<Input id="text" type="text" placeholder="Some text here" name="text" labelText="Text" /> | ||
<Input | ||
id="text-1-section-3" | ||
type="text" | ||
placeholder="Some text here" | ||
name="text-1-section-3" | ||
labelText="Text" | ||
/> | ||
<div className="control"> | ||
<label className="label">Label for editor</label> | ||
<Editor | ||
|
@@ -58,14 +70,14 @@ export const FormExample: React.SFC = () => ( | |
</div> | ||
</FormSection> | ||
<FormSection> | ||
<FormHeading>Section Three</FormHeading> | ||
<FormHeading>Section Four</FormHeading> | ||
<FormSubHeading>Information about this section to help the user</FormSubHeading> | ||
<TextArea id="text" placeholder="Some text here" name="primary" labelText="Details" /> | ||
</FormSection> | ||
</GridItem> | ||
</Grid> | ||
<FormSection> | ||
<FormHeading>Section Four</FormHeading> | ||
<FormHeading>Section Five</FormHeading> | ||
<FormSubHeading>Information about this section to help the user</FormSubHeading> | ||
<Grid> | ||
<GridItem> | ||
|
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,84 @@ | ||
import * as React from 'react' | ||
import { Cell, SelectedMatrix } from '../types' | ||
import ReactDataSheet from 'react-datasheet' | ||
|
||
export const data: Cell[][] = [ | ||
[ | ||
{ readOnly: true, value: 'Office Name' }, | ||
{ readOnly: true, value: 'Building Name' }, | ||
{ readOnly: true, value: 'Building No.' }, | ||
{ readOnly: true, value: 'Address 1' }, | ||
{ readOnly: true, value: 'Address 2' }, | ||
{ readOnly: true, value: 'Address 3' }, | ||
{ readOnly: true, value: 'Address 4' }, | ||
{ readOnly: true, value: 'Post Code' }, | ||
{ readOnly: true, value: 'Telephone' }, | ||
{ readOnly: true, value: 'Fax' }, | ||
{ readOnly: true, value: 'Email' } | ||
], | ||
[ | ||
{ value: 'London' }, | ||
{ value: 'The White House' }, | ||
{ value: '15' }, | ||
{ value: 'London 1' }, | ||
{ value: '' }, | ||
{ value: 'Londom 3' }, | ||
{ value: '' }, | ||
{ value: 'EC12NH' }, | ||
{ value: '0845 0000' }, | ||
{ value: '' }, | ||
{ value: '[email protected]' } | ||
], | ||
[ | ||
{ value: 'London2' }, | ||
{ value: 'The Black House' }, | ||
{ value: '11' }, | ||
{ value: '' }, | ||
{ value: '' }, | ||
{ value: 'Adress 3' }, | ||
{ value: '' }, | ||
{ value: 'EC12NH' }, | ||
{ value: '087 471 929' }, | ||
{ value: '' }, | ||
{ value: '[email protected]' } | ||
], | ||
[ | ||
{ value: 'New York' }, | ||
{ value: 'Building A' }, | ||
{ value: '11' }, | ||
{ value: '' }, | ||
{ value: '' }, | ||
{ value: 'City Z' }, | ||
{ value: '' }, | ||
{ value: 'AL7187' }, | ||
{ value: '017 7162 9121' }, | ||
{ value: '' }, | ||
{ value: '[email protected]' } | ||
] | ||
] | ||
|
||
export const cellRenderProps: ReactDataSheet.CellRendererProps<Cell> = { | ||
row: 3, | ||
col: 10, | ||
cell: { value: '[email protected]' }, | ||
selected: false, | ||
editing: false, | ||
updated: false, | ||
attributesRenderer: jest.fn() as ReactDataSheet.AttributesRenderer<Cell>, | ||
className: 'cell', | ||
style: { background: 'red' }, | ||
onMouseDown: jest.fn(), | ||
onMouseOver: jest.fn(), | ||
onDoubleClick: jest.fn(), | ||
onContextMenu: jest.fn(), | ||
children: <div>hi</div> | ||
} | ||
|
||
export const setData: React.Dispatch<Cell[][]> = jest.fn() | ||
|
||
export const setSelected: React.Dispatch<SelectedMatrix> = jest.fn() | ||
|
||
export const selectedMatrix = { | ||
start: { i: 0, j: 1 }, | ||
end: { i: 2, j: 3 } | ||
} |
Oops, something went wrong.