-
Notifications
You must be signed in to change notification settings - Fork 3
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 #342 from dabapps/upgrade-transition-group
Upgrade transition group
- Loading branch information
Showing
13 changed files
with
265 additions
and
83 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import * as React from 'react'; | ||
import { PureComponent } from 'react'; | ||
|
||
import { | ||
Button, | ||
Modal, | ||
ModalBody, | ||
ModalCloseIcon, | ||
ModalFooter, | ||
ModalHeader, | ||
SpacedGroup, | ||
} from '../src/ts'; | ||
|
||
interface ExampleModalProps { | ||
onClickClose: () => void; | ||
} | ||
|
||
export default class ExampleModal extends PureComponent<ExampleModalProps> { | ||
public render() { | ||
return ( | ||
<Modal onClickOutside={this.props.onClickClose}> | ||
<ModalHeader> | ||
<ModalCloseIcon /> | ||
<h1>Hello</h1> | ||
</ModalHeader> | ||
<ModalBody> | ||
<p>I am a modal!</p> | ||
</ModalBody> | ||
<ModalFooter> | ||
<SpacedGroup block className="margin-vertical-large"> | ||
<Button onClick={this.props.onClickClose}>Cancel</Button> | ||
<Button onClick={this.props.onClickClose} className="primary"> | ||
Done | ||
</Button> | ||
</SpacedGroup> | ||
</ModalFooter> | ||
</Modal> | ||
); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@dabapps/roe", | ||
"version": "0.11.3", | ||
"version": "0.12.0", | ||
"description": "A collection of React components, styles, mixins, and atomic CSS classes to aid with the development of web applications.", | ||
"main": "dist/js/index.js", | ||
"types": "dist/js/index.d.ts", | ||
|
@@ -10,7 +10,7 @@ | |
"dist": "./scripts/dist", | ||
"prettier": "prettier --write '**/*.{ts,tsx,js,jsx,json,md}'", | ||
"prettier-check": "prettier --check '**/*.{ts,tsx,js,jsx,json,md}'", | ||
"lint-js": "eslint ./*.js docs/**/*.js && tslint --project tsconfig.json '@(src|tests|types|docs)/**/*.@(ts|tsx)'", | ||
"lint-js": "eslint ./*.js docs/**/*.js && tslint --project tsconfig.json '@(src|tests|types|docs|examples)/**/*.@(ts|tsx)'", | ||
"lint-less": "lesshint 'src/less/' 'docs/less/'", | ||
"lint": "npm run lint-js && npm run lint-less", | ||
"test-dist-react-16": "npm i @types/[email protected] @types/[email protected] --no-save && tsc --project 'tsconfig.json' --noEmit && npm run dist", | ||
|
@@ -52,14 +52,14 @@ | |
"@types/random-seed": "^0.3.2", | ||
"@types/react": ">= 15", | ||
"@types/react-dom": ">= 15", | ||
"@types/react-transition-group": "^1.1.4", | ||
"@types/react-transition-group": "^2.9.2", | ||
"classnames": "^2.2.5", | ||
"cookie": "^0.3.1", | ||
"normalize.css": "^8.0.1", | ||
"random-seed": "^0.3.0", | ||
"react": ">= 15", | ||
"react-dom": ">= 15", | ||
"react-transition-group": "^1.2.1" | ||
"react-transition-group": "^2.9.0" | ||
}, | ||
"devDependencies": { | ||
"@types/enzyme": "^3.1.5", | ||
|
@@ -107,7 +107,7 @@ | |
"normalize.css": "8", | ||
"react": ">= 15", | ||
"react-dom": ">= 15", | ||
"react-transition-group": "1" | ||
"react-transition-group": "2" | ||
}, | ||
"jest": { | ||
"testURL": "http://localhost/", | ||
|
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
Oops, something went wrong.