forked from react-component/collapse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
94 lines (94 loc) · 6.2 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"_args": [
[
"https://github.com/PromonLogicalis/collapse/tarball/1.6.3",
"D:\\victor_workspaces\\R42\\r42-ng-frontend-client"
]
],
"_from": "https://github.com/PromonLogicalis/collapse/tarball/1.6.3",
"_id": "[email protected]",
"_inCache": true,
"_installable": true,
"_location": "/rc-collapse",
"_phantomChildren": {},
"_requested": {
"name": null,
"raw": "https://github.com/PromonLogicalis/collapse/tarball/1.6.3",
"rawSpec": "https://github.com/PromonLogicalis/collapse/tarball/1.6.3",
"scope": null,
"spec": "https://github.com/PromonLogicalis/collapse/tarball/1.6.3",
"type": "remote"
},
"_requiredBy": [
"/"
],
"_resolved": "https://github.com/PromonLogicalis/collapse/tarball/1.6.3",
"_shasum": "e6f3fa368f0994cfd7bb61df7c6f03311bab9c7d",
"_shrinkwrap": null,
"_spec": "https://github.com/PromonLogicalis/collapse/tarball/1.6.3",
"_where": "D:\\victor_workspaces\\R42\\r42-ng-frontend-client",
"author": {
"name": "[email protected]"
},
"bugs": {
"url": "http://github.com/react-component/collapse/issues"
},
"config": {
"port": 8002
},
"dependencies": {
"classnames": "2.x",
"css-animation": "1.x",
"rc-animate": "2.x"
},
"description": "rc-collapse ui component for react",
"devDependencies": {
"expect.js": "0.3.x",
"jquery": "1.x",
"pre-commit": "1.x",
"rc-tools": "5.x",
"react": "15.x",
"react-addons-test-utils": "15.x",
"react-dom": "15.x",
"string.prototype.repeat": "^0.2.0"
},
"files": [
"assets/*.css",
"lib"
],
"homepage": "http://github.com/react-component/collapse",
"keywords": [
"accordion",
"collapse",
"rc-collapse",
"react",
"react-component",
"react-rc-collapse"
],
"license": "MIT",
"main": "./lib/index",
"name": "rc-collapse",
"optionalDependencies": {},
"pre-commit": [
"lint"
],
"readme": "# rc-collapse\n---\n\nrc-collapse ui component for react\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: http://img.shields.io/npm/v/rc-collapse.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/rc-collapse\n[travis-image]: https://img.shields.io/travis/react-component/collapse.svg?style=flat-square\n[travis-url]: https://travis-ci.org/react-component/collapse\n[coveralls-image]: https://img.shields.io/coveralls/react-component/collapse.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/react-component/collapse?branch=master\n[download-image]: https://img.shields.io/npm/dm/rc-collapse.svg?style=flat-square\n[download-url]: https://npmjs.org/package/rc-collapse\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\n## Example\n\nhttp://localhost:8000/examples/\n\nonline example: http://react-component.github.io/collapse/\n\n\n## Features\n\n* support ie8,ie8+,chrome,firefox,safari\n\n## Install\n\n[![rc-collapse](https://nodei.co/npm/rc-collapse.png)](https://npmjs.org/package/rc-collapse)\n\n## Usage\n\n```js\nvar Collapse = require('rc-collapse');\nvar Panel = Collapse.Panel;\nvar React = require('react');\nvar ReactDOM = require('react-dom');\nvar collapse = (\n <Collapse accordion={true}>\n <Panel header=\"hello\">this is panel content</Panel>\n <Panel header=\"title2\">this is panel content2 or other</Panel>\n </Collapse>\n);\nReactDOM.render(collapse, container);\n```\n\n## API\n\n### Collapse\n\n#### props:\n\n<table class=\"table table-bordered table-striped\">\n <thead>\n <tr>\n <th style=\"width: 100px;\">name</th>\n <th style=\"width: 50px;\">type</th>\n <th>default</th>\n <th>description</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>activeKey</td>\n <td>Array<String>|String</td>\n <th>The first panel key</th>\n <td>current active Panel key</td>\n </tr>\n <tr>\n <td>defaultActiveKey</td>\n <td>Array<String>|String</td>\n <th>null</th>\n <td>default active key</td>\n </tr>\n <tr>\n <td>accordion</td>\n <td>Boolean</td>\n <th>false</th>\n <td>accordion mode, default is null, is collapse mode</td>\n </tr>\n <tr>\n <td>onChange</td>\n <td>Function(key)</td>\n <th>noop</th>\n <td>called when collapse Panel is changed</td>\n </tr>\n </tbody>\n</table>\n\nIf `accordion` is null or false, every panel can open. Opening another panel will not close any of the other panels\n`activekey` should be an array, a string will work fine, activekey will be an\narray, and the only item is the activeKey string provided.\n\nIf `accordion` is true, only one panel can be open. Opening any one panel will cause the previously opened panel to close.\n`activekey` should be an string, but array is support too, just use the first\nitem.\n\n### Collapse.Panel\n\n#### props\n\n<table class=\"table table-bordered table-striped\">\n <thead>\n <tr>\n <th style=\"width: 100px;\">name</th>\n <th style=\"width: 50px;\">type</th>\n <th>default</th>\n <th>description</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>header</td>\n <td>String or node</td>\n <th></th>\n <td>header content of Panel</td>\n </tr>\n </tbody>\n</table>\n\n#### key\n\nIf `key` is not provided, the panel's index will be used instead.\n\n## Test Case\n\n```\nnpm test\nnpm run chrome-test\n```\n\n## Coverage\n\n```\nnpm run coverage\n```\n\nopen coverage/ dir\n\n## License\n\nrc-collapse is released under the MIT license.\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/react-component/collapse.git"
},
"scripts": {
"build": "rc-tools run build",
"chrome-test": "rc-tools run chrome-test",
"coverage": "rc-tools run coverage",
"gh-pages": "rc-tools run gh-pages",
"karma": "rc-tools run karma",
"lint": "rc-tools run lint",
"pub": "rc-tools run pub",
"saucelabs": "rc-tools run saucelabs",
"start": "rc-tools run server",
"test": "rc-tools run test"
},
"version": "1.6.3-pl-0"
}