-
Notifications
You must be signed in to change notification settings - Fork 0
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
36 changed files
with
183 additions
and
493 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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
|
||
import * as React from 'react'; | ||
import { styles } from 'styles/css'; | ||
import { Draggable } from 'drag-drop/draggable'; | ||
import { vars } from 'styles/css'; | ||
import { Link } from 'link/link'; | ||
|
||
export interface DropDrageeProps { | ||
text: string, | ||
locationStrategy: "top-left" | "centroid" | "mouse", | ||
}; | ||
|
||
export class DropDragee extends React.PureComponent<DropDrageeProps, {}> { | ||
render() { | ||
return ( | ||
<div {...style.gap}> | ||
<Draggable contextName="demo" monitor={{}} onDrop={() => {}} touchStrategy={"waitForTime"} mouseStrategy={"instant"}> | ||
<Link to="ima-link" css={style.item}>{this.props.text}</Link> | ||
</Draggable> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
const style = styles({ | ||
gap: { | ||
width: 300, | ||
height: 100, | ||
margin: 4, | ||
}, | ||
item: { | ||
fontSize: 20, | ||
width: 300, | ||
height: 100, | ||
padding: 20, | ||
margin: '4px 0', | ||
backgroundColor: "#fff", | ||
boxShadow: vars.shadow.boxShadow, | ||
cursor: 'pointer', | ||
display: 'block', | ||
textDecoration: 'none', | ||
transition: 'box-shadow 125ms', | ||
':focus': { | ||
outline: 'none', | ||
boxShadow: vars.shadow.deepShadow, | ||
textShadow: 'none' | ||
}, | ||
':hover': { | ||
boxShadow: vars.shadow.deepShadow, | ||
zIndex: 1 | ||
} | ||
} | ||
}) |
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,47 @@ | ||
|
||
import * as React from 'react'; | ||
import { styles, css } from 'styles/css'; | ||
import { DragContext } from 'drag-drop/drag-context'; | ||
import { DropDragee } from './drop-dragee'; | ||
|
||
export interface DropDemoProps { | ||
title: JSX.Element | ||
locationStrategy: "top-left" | "centroid" | "mouse", | ||
}; | ||
|
||
export class DropDemo extends React.PureComponent<DropDemoProps, {}> { | ||
render() { | ||
return ( | ||
<DragContext contextName="demo" css={css({maxHeight: '100%', overflow:'auto'})}> | ||
<div {...style.slide}> | ||
<h2 {...style.title}>{this.props.title}</h2> | ||
<DropDragee text="" {...this.props} /> | ||
<DropDragee text="" {...this.props} /> | ||
<DropDragee text="The Troubles begin in Northern Ireland" {...this.props} /> | ||
<DropDragee text="Death of Vladimir Lenin" {...this.props} /> | ||
<DropDragee text="The first modern trampoline" {...this.props} /> | ||
<DropDragee text="Tim Berners-Lee invents the World Wide Web" {...this.props} /> | ||
<DropDragee text="The United States occupation of Haiti begins" {...this.props} /> | ||
<DropDragee text="Triangle Shirtwaist Factory fire" {...this.props} /> | ||
<DropDragee text="Woodstock" {...this.props} /> | ||
<DropDragee text="The teddy bear is invented" {...this.props} /> | ||
<DropDragee text="First controlled heavier-than-air flight of the Wright Brothers" {...this.props} /> | ||
<DropDragee text="The discovery of penicillin" {...this.props} /> | ||
</div> | ||
</DragContext> | ||
); | ||
} | ||
} | ||
|
||
const style = styles({ | ||
slide: { | ||
margin: '0 auto', | ||
maxWidth: 320, | ||
padding: 10, | ||
}, | ||
title: { | ||
fontSize: 40, | ||
padding: '20px 0', | ||
fontWeight: 300 | ||
} | ||
}) |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
13 changes: 0 additions & 13 deletions
13
presentation/normal-estimate-histogram/normal-estimate-histogram.component.spec.tsx
This file was deleted.
Oops, something went wrong.
44 changes: 0 additions & 44 deletions
44
presentation/normal-estimate-histogram/normal-estimate-histogram.component.tsx
This file was deleted.
Oops, something went wrong.
Empty file.
Oops, something went wrong.