Skip to content

Commit b8448f5

Browse files
committed
Merge branch 'master' into react-14
2 parents 2ec8528 + df01f05 commit b8448f5

File tree

128 files changed

+3836
-2374
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+3836
-2374
lines changed

.babelrc

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"optional": [
3-
"es7.objectRestSpread"
4-
]
2+
"stage": 1,
3+
"optional": ["runtime"],
4+
"loose": ["all"]
55
}

.eslintrc

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"extends": ["defaults"],
23
"env": {
34
"browser": true,
45
"node": true
@@ -24,6 +25,8 @@
2425
"babel/object-shorthand": 2,
2526
"quotes": [2, "single", "avoid-escape"],
2627
"react/display-name": 0,
28+
"react/jsx-boolean-value": [2, "never"],
29+
"react/jsx-no-duplicate-props": 2,
2730
"react/jsx-no-undef": 2,
2831
"react/jsx-uses-react": 2,
2932
"react/no-did-mount-set-state": 2,
@@ -34,8 +37,7 @@
3437
"react/self-closing-comp": 2,
3538
"react/wrap-multilines": 2,
3639
"react/jsx-uses-vars": 2,
37-
/* disable till https://github.com/eslint/eslint/issues/3016 is resolved */
38-
"space-infix-ops": 0,
40+
"space-infix-ops": 2,
3941
"strict": [2, "never"]
4042
}
4143
}

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
*~
22
.DS_Store
3-
npm-debug.log
3+
npm-debug.log*
44
node_modules
55
amd/
66
!tools/amd/

CHANGELOG.md

+87
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,90 @@
1+
v0.24.4 - Mon, 10 Aug 2015 19:33:35 GMT
2+
---------------------------------------
3+
4+
- [b688014](../../commit/b688014) [added] custom feedback icons for Input
5+
- [83cdaa3](../../commit/83cdaa3) [added] formControlFeedback prop to Glyphicon
6+
- [2ecac68](../../commit/2ecac68) [fixed] Modal uses provided className again
7+
- [47bd7f6](../../commit/47bd7f6) [fixed] disabled pagination buttons should not fire 'onSelect'
8+
- [c60dc03](../../commit/c60dc03) [fixed] only add aria-expanded to Collapse when an ARIA role is present
9+
10+
11+
12+
v0.24.3 - Fri, 31 Jul 2015 18:09:54 GMT
13+
---------------------------------------
14+
15+
- [02f8966](../../commit/02f8966) [changed] Update dependencies
16+
- [bae8ba9](../../commit/bae8ba9) [fixed] Carousel checks if it is mounted before setting state
17+
- [fd8d4d2](../../commit/fd8d4d2) [fixed] regression when clicking "static" modal backdrops
18+
- [0f46a97](../../commit/0f46a97) [added] Allow custom Modal dialog components
19+
- [a4ce7e1](../../commit/a4ce7e1) [fixed] added finalisation for the Modal when it was unbound from the tree
20+
- [d89d5f3](../../commit/d89d5f3) [fixed] Modal error when backdrop is `false`
21+
- [f410904](../../commit/f410904) [added] 'xs, sm, md, lg' values for 'bsSize'
22+
- [2558f32](../../commit/2558f32) [fixed] TabbedArea panes rendering with animation
23+
- [90aece6](../../commit/90aece6) [changed] Simplify 'styleMaps.STYLES' to be of Array type
24+
- [860d168](../../commit/860d168) [fixed] allow totally custom styles via 'bsStyle'
25+
- [74da76a](../../commit/74da76a) [fixed] Prevent click on PageItem if disabled
26+
27+
28+
29+
v0.24.2 - Sat, 25 Jul 2015 00:47:07 GMT
30+
---------------------------------------
31+
32+
- [4271eb3](../../commit/4271eb3) [fixed] add lodash as direct dependency
33+
34+
35+
36+
v0.24.1 - Fri, 24 Jul 2015 23:12:09 GMT
37+
---------------------------------------
38+
39+
- [e5155c6](../../commit/e5155c6) [fixed] ensure last focused item can be focused
40+
- [6a541ff](../../commit/6a541ff) [added] buttonComponentClass prop for Pagination
41+
- [29fe417](../../commit/29fe417) [fixed] overlay classNames are maintained by overlayTrigget
42+
- [d272389](../../commit/d272389) [added] Overlay and OverlayTrigger accept Transition callbacks
43+
- [596f40c](../../commit/596f40c) [fixed] Modal uses bsClass prop to set its classes
44+
- [86d3feb](../../commit/86d3feb) [fixed] added missed 'aria-label' prop type validation for 'ModalHeader'
45+
- [58eaab0](../../commit/58eaab0) [changed] pass transition callbacks to Modal Transition
46+
- [abccff9](../../commit/abccff9) [changed] expose static Modal Dialog component
47+
- [b5c1893](../../commit/b5c1893) [changed] unfix 'babel' back.
48+
49+
50+
51+
v0.24.0 - Tue, 21 Jul 2015 22:13:05 GMT
52+
---------------------------------------
53+
54+
- [924f8fb](../../commit/924f8fb) [fixed] Tooltip accepts a style prop
55+
- [dd064ad](../../commit/dd064ad) [fixed] remove extraneous styling
56+
- [c837d8d](../../commit/c837d8d) [fixed] Only calculate overlay position on display
57+
- [fbf9ed6](../../commit/fbf9ed6) [changed] Add deprecation warning that factories will be removed
58+
- [a4385d3](../../commit/a4385d3) [fixed] Portal doesn't mount extra node
59+
- [6744b94](../../commit/6744b94) [fixed] 'modalClassName' property for 'ModalTitle'
60+
- [3e6523a](../../commit/3e6523a) [added] ListGroup supports iterator as child
61+
- [ec368f0](../../commit/ec368f0) [added] Fade Component, replaces FadeMixin
62+
- [0503507](../../commit/0503507) [added] Collapse Component, replaces CollapsibleMixin
63+
- [4fb7e0d](../../commit/4fb7e0d) [changed] Remove Overlay and Modal deprecations
64+
- [0683df7](../../commit/0683df7) [fixed] 'stacked' progress with 'active' and 'striped' children
65+
- [a3c5400](../../commit/a3c5400) [fixed] Add missed 'type' property React.PropTypes.<type> checking
66+
- [a4c065e](../../commit/a4c065e) [added] links to every component / example on Components page
67+
- [eb0c323](../../commit/eb0c323) [fixed] Position.js typo `componentDidUpate`
68+
- [9feddf9](../../commit/9feddf9) [fixed] 'componentWillReceiveProps' method name of Position component
69+
- [c64679f](../../commit/c64679f) [fixed] Active Next and Last button in Pagination when ellipsis=true and items=0
70+
- [9dae734](../../commit/9dae734) [fixed] Negative page number in Pagination when ellipsis=true and items=1
71+
- [ffbcf39](../../commit/ffbcf39) [fixed] html id and class attributes handling for Nav
72+
- [89ea6ed](../../commit/89ea6ed) [fixed] Add missed propType validation for Button 'type' property
73+
- [b1b6a4c](../../commit/b1b6a4c) [changed] Add two-release deprecation policy
74+
- [e89b9bc](../../commit/e89b9bc) [removed] Don't need to disable Babel cache
75+
- [d12d59e](../../commit/d12d59e) [changed] Enabled "loose" Babel transpilation
76+
- [01c547f](../../commit/01c547f) [fixed] Do not use Babel cache for release build
77+
- [b67081b](../../commit/b67081b) [fixed] rootClose behavior on replaced elements
78+
- [fbbb344](../../commit/fbbb344) [fixed] bower template.
79+
- [fafe46f](../../commit/fafe46f) [changed] Use named exports in index files
80+
- [6e985b0](../../commit/6e985b0) [removed] Individual files in bower release
81+
- [598b9d8](../../commit/598b9d8) [fixed] SafeAnchor event ordering
82+
- [beaa1fa](../../commit/beaa1fa) [changed] `PaginationButton` to use `SafeAnchor`
83+
- [9c09e2a](../../commit/9c09e2a) [fixed] Keyboard accessibility for anchors serving as buttons
84+
- [ce5b436](../../commit/ce5b436) [removed] Input type=submit deprecation warning.
85+
86+
87+
188
v0.23.7 - Wed, 01 Jul 2015 15:18:30 GMT
289
---------------------------------------
390

CONTRIBUTING.md

+10
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,16 @@ Also Bootstrap mentions http://getbootstrap.com/getting-started/#examples
124124
as examples of things you can do, but they are not part of the core library,
125125
therefore this project is the wrong place to implement them.
126126

127+
## Breaking changes
128+
129+
Breaking changes should be accompanied with deprecations of removed
130+
functionality. Prior to the 1.0.0 release, we aim to follow React's example of
131+
taking two Minor releases to break old functionality. As such, changes that
132+
intend to remove or change public APIs should be be submitted against the
133+
`vX-rc` branch, and should be accompanied with deprecation warnings on the old
134+
APIs. The deprecated APIs themselves should not be removed until the Minor
135+
release after that.
136+
127137
## Notes for lodash functions usage in the code
128138

129139
You can use `lodash` but keep it to things where it actually needs it, i.e. don't use `lodash`'s `forEach` when `Array.prototype.forEach` is fine.

MAINTAINING.md

+10-9
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ publish` BY ITSELF__. The release script will do that. We want to prevent issues
7171
like [#325](https://github.com/react-bootstrap/react-bootstrap/issues/325) and
7272
[#218](https://github.com/react-bootstrap/react-bootstrap/issues/218) from ever
7373
happening again. In order to run the release script you will need permission to
74-
publish to the package to npm. Those with this permission are in the [publishers
74+
publish the package to npm. Those with this permission are in the [publishers
7575
team](https://github.com/orgs/react-bootstrap/teams/publishers)
7676

7777
*Note: The publishers team does exist. If you see 404 that means you just have no permissions to publish.*
@@ -82,7 +82,8 @@ Example usages of the release script:
8282
$ ./tools/release patch
8383
$ ./tools/release minor
8484
$ ./tools/release major
85-
$ ./tools/release minor --preid beta
85+
$ ./tools/release minor --preid beta Use both bump and preid for first prerelease
86+
$ ./tools/release --preid beta For follow on prereleases of the next version just use this
8687
```
8788

8889
Note that the above commands will bump the [semver](http://semver.org) version
@@ -95,13 +96,13 @@ then be re-applied and released with the proper version bump.
9596
### Release Candidates
9697

9798
In an effort to reduce the frequency with which we introduce breaking changes we
98-
should do our best to first push deprecation warnings in a Minor or Patch
99-
release. Also, Pull Requests with breaking changes should be submitted against
100-
the `vX-rc` branch, where X is the next Major version. Which we will in turn
101-
release as an `alpha` release of the next Major version. When we are ready to
102-
release the next Major version bump we will merge the `vX-rc` branch into the
103-
`master` branch and cut a `beta` release. Once bugs have been addressed with
104-
the `beta` release then we will release the Major version bump.
99+
should do our best to first push deprecation warnings in a Minor release. Also,
100+
Pull Requests with breaking changes should be submitted against the `vX-rc`
101+
branch, where X is the next Major version. Which we will in turn release as an
102+
`alpha` release of the next Major version. When we are ready to release the next
103+
Major version bump we will merge the `vX-rc` branch into the `master` branch and
104+
cut a `beta` release. Once bugs have been addressed with the `beta` release
105+
then we will release the Major version bump.
105106

106107
### Live releasing the documentation
107108

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
[![devDependency Status][dev-deps-badge]][dev-deps]
1717
[![peerDependency Status][peer-deps-badge]][peer-deps]
1818

19-
__Under active development - APIs will change.__ Check out the [1.0.0 Roadmap](https://github.com/react-bootstrap/react-bootstrap/wiki#100-roadmap) and [Contributing Guidelines][contributing] to see where you can help out. Prior to the 1.0.0 release, breaking changes should result in a Minor version bump.
19+
__Under active development - APIs will change.__ Check out the [1.0.0 Roadmap](https://github.com/react-bootstrap/react-bootstrap/wiki#100-roadmap) and [Contributing Guidelines][contributing] to see where you can help out. Prior to the 1.0.0 release, deprecations or breaking changes should result in a Minor version bump.
2020

2121
## Docs
2222

docs/assets/style.css

+6-1
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,14 @@ body {
188188
left: -0.8em;
189189
opacity: 0;
190190
}
191+
191192
h1:hover .anchor-icon,
193+
h1 a:focus .anchor-icon,
192194
h2:hover .anchor-icon,
195+
h2 a:focus .anchor-icon,
193196
h3:hover .anchor-icon,
194-
h4:hover .anchor-icon {
197+
h3 a:focus .anchor-icon,
198+
h4:hover .anchor-icon,
199+
h4 a:focus .anchor-icon {
195200
opacity: 0.5;
196201
}

docs/build.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint no-console: 0 */
2+
13
import React from 'react';
24
import path from 'path';
35
import Router from 'react-router';
@@ -35,9 +37,11 @@ function generateHTML(fileName, propData) {
3537
});
3638
}
3739

38-
export default function BuildDocs({ dev }) {
40+
export default function BuildDocs({dev}) {
3941
console.log('Building: '.cyan + 'docs'.green + (dev ? ' [DEV]'.grey : ''));
4042

43+
const devOption = dev ? '' : '-p';
44+
4145
return exec(`rimraf ${docsBuilt}`)
4246
.then(() => fsp.mkdir(docsBuilt))
4347
.then(metadata)
@@ -46,7 +50,7 @@ export default function BuildDocs({ dev }) {
4650
let pagesGenerators = Root.getPages().map( page => generateHTML(page, propData));
4751

4852
return Promise.all(pagesGenerators.concat([
49-
exec(`webpack --config webpack.docs.js ${dev ? '' : '-p '}--bail`),
53+
exec(`webpack --config webpack.docs.js --bail ${devOption}`),
5054
copy(license, docsBuilt),
5155
copy(readmeSrc, readmeDest)
5256
]));

docs/examples/.eslintrc

+3-1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252
"TabPane",
5353
"Tooltip",
5454
"Well",
55-
"Thumbnail"
55+
"Thumbnail",
56+
"Collapse",
57+
"Fade"
5658
}
5759
}

docs/examples/Collapse.js

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
class Example extends React.Component {
2+
constructor(...args){
3+
super(...args);
4+
5+
this.state = {};
6+
}
7+
8+
render(){
9+
10+
return (
11+
<div>
12+
<Button onClick={ ()=> this.setState({ open: !this.state.open })}>
13+
click
14+
</Button>
15+
<Collapse in={this.state.open}>
16+
<div>
17+
<Well>
18+
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid.
19+
Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.
20+
</Well>
21+
</div>
22+
</Collapse>
23+
</div>
24+
);
25+
}
26+
}
27+
28+
React.render(<Example/>, mountNode);

docs/examples/CollapsibleParagraph.js

-37
This file was deleted.

docs/examples/DropdownButtonBasic.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function renderDropdownButton (title, i) {
55
<DropdownButton bsStyle={title.toLowerCase()} title={title} key={i}>
66
<MenuItem eventKey='1'>Action</MenuItem>
77
<MenuItem eventKey='2'>Another action</MenuItem>
8-
<MenuItem eventKey='3' active={true}>Active Item</MenuItem>
8+
<MenuItem eventKey='3' active>Active Item</MenuItem>
99
<MenuItem divider />
1010
<MenuItem eventKey='4'>Separated link</MenuItem>
1111
</DropdownButton>

docs/examples/Fade.js

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
class Example extends React.Component {
3+
4+
constructor(...args){
5+
super(...args);
6+
this.state = {};
7+
}
8+
9+
render(){
10+
11+
return (
12+
<div>
13+
<Button onClick={()=> this.setState({ open: !this.state.open })}>
14+
click
15+
</Button>
16+
<Fade in={this.state.open}>
17+
<div>
18+
<Well>
19+
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid.
20+
Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.
21+
</Well>
22+
</div>
23+
</Fade>
24+
</div>
25+
);
26+
}
27+
}
28+
29+
React.render(<Example/>, mountNode);
File renamed without changes.

0 commit comments

Comments
 (0)