Latest updates from IceHrmPro
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
# 2.1.0
|
||||
|
||||
Add focus() blur() and autoFocus.
|
||||
|
||||
# 1.5.0
|
||||
|
||||
- Refactor dom structure for better focus style.
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
The MIT License (MIT) Copyright (c) 2016 React Components
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
+119
@@ -0,0 +1,119 @@
|
||||
# rc-checkbox
|
||||
---
|
||||
|
||||
React Checkbox
|
||||
|
||||
[![NPM version][npm-image]][npm-url]
|
||||
[![build status][travis-image]][travis-url]
|
||||
[![Test coverage][coveralls-image]][coveralls-url]
|
||||
[](https://david-dm.org/react-component/checkbox)
|
||||
[](https://david-dm.org/react-component/checkbox?type=dev)
|
||||
[![npm download][download-image]][download-url]
|
||||
|
||||
[npm-image]: http://img.shields.io/npm/v/rc-checkbox.svg?style=flat-square
|
||||
[npm-url]: http://npmjs.org/package/rc-checkbox
|
||||
[travis-image]: https://img.shields.io/travis/react-component/checkbox.svg?style=flat-square
|
||||
[travis-url]: https://travis-ci.org/react-component/checkbox
|
||||
[coveralls-image]: https://img.shields.io/coveralls/react-component/checkbox.svg?style=flat-square
|
||||
[coveralls-url]: https://coveralls.io/r/react-component/checkbox?branch=master
|
||||
[download-image]: https://img.shields.io/npm/dm/rc-checkbox.svg?style=flat-square
|
||||
[download-url]: https://npmjs.org/package/rc-checkbox
|
||||
|
||||
## install
|
||||
|
||||
[](https://npmjs.org/package/rc-checkbox)
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
require('rc-checkbox/assets/index.css');
|
||||
const Checkbox = require('rc-checkbox');
|
||||
const React = require('react');
|
||||
const ReactDOM = require('react-dom');
|
||||
ReactDOM.render(<Checkbox />, container);
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### props
|
||||
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 100px;">name</th>
|
||||
<th style="width: 50px;">type</th>
|
||||
<th style="width: 50px;">default</th>
|
||||
<th>description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>prefixCls</td>
|
||||
<td>String</td>
|
||||
<td>rc-checkbox</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>className</td>
|
||||
<td>String</td>
|
||||
<td>''</td>
|
||||
<td>additional class name of root node</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>name</td>
|
||||
<td>String</td>
|
||||
<td></td>
|
||||
<td>same with native input checkbox</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>checked</td>
|
||||
<td>enum: 0,1,2</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>defaultChecked</td>
|
||||
<td>enum: 0,1,2</td>
|
||||
<td>0</td>
|
||||
<td>same with native input checkbox</td>
|
||||
<tr>
|
||||
<td>onChange</td>
|
||||
<td>Function(e:Event, checked:Number)</td>
|
||||
<td></td>
|
||||
<td>called when checkbox is changed. e is native event, checked is original checked state.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
## Development
|
||||
|
||||
```
|
||||
npm install
|
||||
npm start
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
http://localhost:8001/examples/
|
||||
|
||||
online example: http://react-component.github.io/checkbox/examples/simple.html
|
||||
|
||||
## Test Case
|
||||
|
||||
```
|
||||
npm test
|
||||
npm run chrome-test
|
||||
```
|
||||
|
||||
## Coverage
|
||||
|
||||
```
|
||||
npm run coverage
|
||||
```
|
||||
|
||||
open coverage/ dir
|
||||
|
||||
|
||||
## License
|
||||
|
||||
rc-checkbox is released under the MIT license.
|
||||
+134
@@ -0,0 +1,134 @@
|
||||
/* Default state */
|
||||
.rc-checkbox {
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
line-height: 1;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.rc-checkbox:hover .rc-checkbox-inner,
|
||||
.rc-checkbox-input:focus + .rc-checkbox-inner {
|
||||
border-color: #3dbcf6;
|
||||
}
|
||||
.rc-checkbox-inner {
|
||||
position: relative;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: inline-block;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-radius: 3px;
|
||||
border-color: #d9d9d9;
|
||||
background-color: #ffffff;
|
||||
transition: border-color 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), background-color 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
|
||||
}
|
||||
.rc-checkbox-inner:after {
|
||||
-webkit-transform: rotate(45deg);
|
||||
transform: rotate(45deg);
|
||||
position: absolute;
|
||||
left: 4px;
|
||||
top: 1px;
|
||||
display: table;
|
||||
width: 5px;
|
||||
height: 8px;
|
||||
border: 2px solid #ffffff;
|
||||
border-top: 0;
|
||||
border-left: 0;
|
||||
content: ' ';
|
||||
animation-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);
|
||||
animation-duration: 0.3s;
|
||||
animation-name: amCheckboxOut;
|
||||
}
|
||||
.rc-checkbox-input {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
z-index: 9999;
|
||||
cursor: pointer;
|
||||
opacity: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
}
|
||||
/* Checked state */
|
||||
.rc-checkbox-checked:hover .rc-checkbox-inner {
|
||||
border-color: #3dbcf6;
|
||||
}
|
||||
.rc-checkbox-checked .rc-checkbox-inner {
|
||||
border-color: #3dbcf6;
|
||||
background-color: #3dbcf6;
|
||||
}
|
||||
.rc-checkbox-checked .rc-checkbox-inner:after {
|
||||
transform: rotate(45deg);
|
||||
position: absolute;
|
||||
left: 4px;
|
||||
top: 1px;
|
||||
display: table;
|
||||
width: 5px;
|
||||
height: 8px;
|
||||
border: 2px solid #ffffff;
|
||||
border-top: 0;
|
||||
border-left: 0;
|
||||
content: ' ';
|
||||
animation-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);
|
||||
animation-duration: 0.3s;
|
||||
animation-name: amCheckboxOut;
|
||||
}
|
||||
@media print {
|
||||
.rc-checkbox-checked .rc-checkbox-inner {
|
||||
box-shadow: inset 0 0 0 16px #3dbcf6;
|
||||
}
|
||||
}
|
||||
.rc-checkbox-disabled.rc-checkbox-checked:hover .rc-checkbox-inner {
|
||||
border-color: #d9d9d9;
|
||||
}
|
||||
.rc-checkbox-disabled.rc-checkbox-checked .rc-checkbox-inner {
|
||||
background-color: #f3f3f3;
|
||||
border-color: #d9d9d9;
|
||||
}
|
||||
.rc-checkbox-disabled.rc-checkbox-checked .rc-checkbox-inner:after {
|
||||
animation-name: none;
|
||||
border-color: #cccccc;
|
||||
}
|
||||
@media print {
|
||||
.rc-checkbox-disabled.rc-checkbox-checked .rc-checkbox-inner {
|
||||
box-shadow: inset 0 0 0 16px #f3f3f3;
|
||||
}
|
||||
}
|
||||
.rc-checkbox-disabled:hover .rc-checkbox-inner {
|
||||
border-color: #d9d9d9;
|
||||
}
|
||||
.rc-checkbox-disabled .rc-checkbox-inner {
|
||||
border-color: #d9d9d9;
|
||||
background-color: #f3f3f3;
|
||||
}
|
||||
.rc-checkbox-disabled .rc-checkbox-inner:after {
|
||||
animation-name: none;
|
||||
border-color: #f3f3f3;
|
||||
}
|
||||
.rc-checkbox-disabled .rc-checkbox-inner-input {
|
||||
cursor: default;
|
||||
}
|
||||
@keyframes amCheckboxIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform-origin: 50% 50%;
|
||||
transform: scale(0, 0) rotate(45deg);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform-origin: 50% 50%;
|
||||
transform: scale(1, 1) rotate(45deg);
|
||||
}
|
||||
}
|
||||
@keyframes amCheckboxOut {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
+149
@@ -0,0 +1,149 @@
|
||||
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
|
||||
import _extends from 'babel-runtime/helpers/extends';
|
||||
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
|
||||
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
|
||||
import _inherits from 'babel-runtime/helpers/inherits';
|
||||
/* eslint-disable react/prop-types */
|
||||
import React, { Component } from 'react';
|
||||
import classNames from 'classnames';
|
||||
|
||||
var Checkbox = function (_Component) {
|
||||
_inherits(Checkbox, _Component);
|
||||
|
||||
function Checkbox(props) {
|
||||
_classCallCheck(this, Checkbox);
|
||||
|
||||
var _this = _possibleConstructorReturn(this, _Component.call(this, props));
|
||||
|
||||
_this.handleChange = function (e) {
|
||||
var _this$props = _this.props,
|
||||
disabled = _this$props.disabled,
|
||||
onChange = _this$props.onChange;
|
||||
|
||||
if (disabled) {
|
||||
return;
|
||||
}
|
||||
if (!('checked' in _this.props)) {
|
||||
_this.setState({
|
||||
checked: e.target.checked
|
||||
});
|
||||
}
|
||||
if (onChange) {
|
||||
onChange({
|
||||
target: _extends({}, _this.props, {
|
||||
checked: e.target.checked
|
||||
}),
|
||||
stopPropagation: function stopPropagation() {
|
||||
e.stopPropagation();
|
||||
},
|
||||
preventDefault: function preventDefault() {
|
||||
e.preventDefault();
|
||||
},
|
||||
|
||||
nativeEvent: e.nativeEvent
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
_this.saveInput = function (node) {
|
||||
_this.input = node;
|
||||
};
|
||||
|
||||
var checked = 'checked' in props ? props.checked : props.defaultChecked;
|
||||
|
||||
_this.state = {
|
||||
checked: checked
|
||||
};
|
||||
return _this;
|
||||
}
|
||||
|
||||
Checkbox.getDerivedStateFromProps = function getDerivedStateFromProps(props, state) {
|
||||
if ('checked' in props) {
|
||||
return _extends({}, state, {
|
||||
checked: props.checked
|
||||
});
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
Checkbox.prototype.focus = function focus() {
|
||||
this.input.focus();
|
||||
};
|
||||
|
||||
Checkbox.prototype.blur = function blur() {
|
||||
this.input.blur();
|
||||
};
|
||||
|
||||
Checkbox.prototype.render = function render() {
|
||||
var _classNames;
|
||||
|
||||
var _props = this.props,
|
||||
prefixCls = _props.prefixCls,
|
||||
className = _props.className,
|
||||
style = _props.style,
|
||||
name = _props.name,
|
||||
id = _props.id,
|
||||
type = _props.type,
|
||||
disabled = _props.disabled,
|
||||
readOnly = _props.readOnly,
|
||||
tabIndex = _props.tabIndex,
|
||||
onClick = _props.onClick,
|
||||
onFocus = _props.onFocus,
|
||||
onBlur = _props.onBlur,
|
||||
autoFocus = _props.autoFocus,
|
||||
value = _props.value,
|
||||
required = _props.required,
|
||||
others = _objectWithoutProperties(_props, ['prefixCls', 'className', 'style', 'name', 'id', 'type', 'disabled', 'readOnly', 'tabIndex', 'onClick', 'onFocus', 'onBlur', 'autoFocus', 'value', 'required']);
|
||||
|
||||
var globalProps = Object.keys(others).reduce(function (prev, key) {
|
||||
if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {
|
||||
prev[key] = others[key];
|
||||
}
|
||||
return prev;
|
||||
}, {});
|
||||
|
||||
var checked = this.state.checked;
|
||||
|
||||
var classString = classNames(prefixCls, className, (_classNames = {}, _classNames[prefixCls + '-checked'] = checked, _classNames[prefixCls + '-disabled'] = disabled, _classNames));
|
||||
|
||||
return React.createElement(
|
||||
'span',
|
||||
{ className: classString, style: style },
|
||||
React.createElement('input', _extends({
|
||||
name: name,
|
||||
id: id,
|
||||
type: type,
|
||||
required: required,
|
||||
readOnly: readOnly,
|
||||
disabled: disabled,
|
||||
tabIndex: tabIndex,
|
||||
className: prefixCls + '-input',
|
||||
checked: !!checked,
|
||||
onClick: onClick,
|
||||
onFocus: onFocus,
|
||||
onBlur: onBlur,
|
||||
onChange: this.handleChange,
|
||||
autoFocus: autoFocus,
|
||||
ref: this.saveInput,
|
||||
value: value
|
||||
}, globalProps)),
|
||||
React.createElement('span', { className: prefixCls + '-inner' })
|
||||
);
|
||||
};
|
||||
|
||||
return Checkbox;
|
||||
}(Component);
|
||||
|
||||
Checkbox.defaultProps = {
|
||||
prefixCls: 'rc-checkbox',
|
||||
className: '',
|
||||
style: {},
|
||||
type: 'checkbox',
|
||||
defaultChecked: false,
|
||||
onFocus: function onFocus() {},
|
||||
onBlur: function onBlur() {},
|
||||
onChange: function onChange() {}
|
||||
};
|
||||
|
||||
|
||||
export default Checkbox;
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
import * as React from "react";
|
||||
|
||||
export interface Props {
|
||||
prefixCls?: string;
|
||||
className?: string;
|
||||
style?: React.CSSProperties;
|
||||
name?: string;
|
||||
id?: string;
|
||||
type?: string;
|
||||
defaultChecked?: number | boolean;
|
||||
checked?: number | boolean;
|
||||
disabled?: boolean;
|
||||
onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
||||
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
||||
onChange?: (e: Event) => void;
|
||||
onClick?: (e: React.MouseEvent<HTMLInputElement>) => void;
|
||||
tabIndex?: string | number;
|
||||
readOnly?: boolean;
|
||||
required?: boolean;
|
||||
autoFocus?: boolean;
|
||||
value?: any;
|
||||
}
|
||||
|
||||
export default class CheckBox extends React.Component<Props> {}
|
||||
+175
@@ -0,0 +1,175 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
|
||||
|
||||
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
|
||||
|
||||
var _extends2 = require('babel-runtime/helpers/extends');
|
||||
|
||||
var _extends3 = _interopRequireDefault(_extends2);
|
||||
|
||||
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
|
||||
|
||||
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
||||
|
||||
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
|
||||
|
||||
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
|
||||
|
||||
var _inherits2 = require('babel-runtime/helpers/inherits');
|
||||
|
||||
var _inherits3 = _interopRequireDefault(_inherits2);
|
||||
|
||||
var _react = require('react');
|
||||
|
||||
var _react2 = _interopRequireDefault(_react);
|
||||
|
||||
var _classnames = require('classnames');
|
||||
|
||||
var _classnames2 = _interopRequireDefault(_classnames);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
||||
|
||||
/* eslint-disable react/prop-types */
|
||||
var Checkbox = function (_Component) {
|
||||
(0, _inherits3['default'])(Checkbox, _Component);
|
||||
|
||||
function Checkbox(props) {
|
||||
(0, _classCallCheck3['default'])(this, Checkbox);
|
||||
|
||||
var _this = (0, _possibleConstructorReturn3['default'])(this, _Component.call(this, props));
|
||||
|
||||
_this.handleChange = function (e) {
|
||||
var _this$props = _this.props,
|
||||
disabled = _this$props.disabled,
|
||||
onChange = _this$props.onChange;
|
||||
|
||||
if (disabled) {
|
||||
return;
|
||||
}
|
||||
if (!('checked' in _this.props)) {
|
||||
_this.setState({
|
||||
checked: e.target.checked
|
||||
});
|
||||
}
|
||||
if (onChange) {
|
||||
onChange({
|
||||
target: (0, _extends3['default'])({}, _this.props, {
|
||||
checked: e.target.checked
|
||||
}),
|
||||
stopPropagation: function stopPropagation() {
|
||||
e.stopPropagation();
|
||||
},
|
||||
preventDefault: function preventDefault() {
|
||||
e.preventDefault();
|
||||
},
|
||||
|
||||
nativeEvent: e.nativeEvent
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
_this.saveInput = function (node) {
|
||||
_this.input = node;
|
||||
};
|
||||
|
||||
var checked = 'checked' in props ? props.checked : props.defaultChecked;
|
||||
|
||||
_this.state = {
|
||||
checked: checked
|
||||
};
|
||||
return _this;
|
||||
}
|
||||
|
||||
Checkbox.getDerivedStateFromProps = function getDerivedStateFromProps(props, state) {
|
||||
if ('checked' in props) {
|
||||
return (0, _extends3['default'])({}, state, {
|
||||
checked: props.checked
|
||||
});
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
Checkbox.prototype.focus = function focus() {
|
||||
this.input.focus();
|
||||
};
|
||||
|
||||
Checkbox.prototype.blur = function blur() {
|
||||
this.input.blur();
|
||||
};
|
||||
|
||||
Checkbox.prototype.render = function render() {
|
||||
var _classNames;
|
||||
|
||||
var _props = this.props,
|
||||
prefixCls = _props.prefixCls,
|
||||
className = _props.className,
|
||||
style = _props.style,
|
||||
name = _props.name,
|
||||
id = _props.id,
|
||||
type = _props.type,
|
||||
disabled = _props.disabled,
|
||||
readOnly = _props.readOnly,
|
||||
tabIndex = _props.tabIndex,
|
||||
onClick = _props.onClick,
|
||||
onFocus = _props.onFocus,
|
||||
onBlur = _props.onBlur,
|
||||
autoFocus = _props.autoFocus,
|
||||
value = _props.value,
|
||||
required = _props.required,
|
||||
others = (0, _objectWithoutProperties3['default'])(_props, ['prefixCls', 'className', 'style', 'name', 'id', 'type', 'disabled', 'readOnly', 'tabIndex', 'onClick', 'onFocus', 'onBlur', 'autoFocus', 'value', 'required']);
|
||||
|
||||
|
||||
var globalProps = Object.keys(others).reduce(function (prev, key) {
|
||||
if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {
|
||||
prev[key] = others[key];
|
||||
}
|
||||
return prev;
|
||||
}, {});
|
||||
|
||||
var checked = this.state.checked;
|
||||
|
||||
var classString = (0, _classnames2['default'])(prefixCls, className, (_classNames = {}, _classNames[prefixCls + '-checked'] = checked, _classNames[prefixCls + '-disabled'] = disabled, _classNames));
|
||||
|
||||
return _react2['default'].createElement(
|
||||
'span',
|
||||
{ className: classString, style: style },
|
||||
_react2['default'].createElement('input', (0, _extends3['default'])({
|
||||
name: name,
|
||||
id: id,
|
||||
type: type,
|
||||
required: required,
|
||||
readOnly: readOnly,
|
||||
disabled: disabled,
|
||||
tabIndex: tabIndex,
|
||||
className: prefixCls + '-input',
|
||||
checked: !!checked,
|
||||
onClick: onClick,
|
||||
onFocus: onFocus,
|
||||
onBlur: onBlur,
|
||||
onChange: this.handleChange,
|
||||
autoFocus: autoFocus,
|
||||
ref: this.saveInput,
|
||||
value: value
|
||||
}, globalProps)),
|
||||
_react2['default'].createElement('span', { className: prefixCls + '-inner' })
|
||||
);
|
||||
};
|
||||
|
||||
return Checkbox;
|
||||
}(_react.Component);
|
||||
|
||||
Checkbox.defaultProps = {
|
||||
prefixCls: 'rc-checkbox',
|
||||
className: '',
|
||||
style: {},
|
||||
type: 'checkbox',
|
||||
defaultChecked: false,
|
||||
onFocus: function onFocus() {},
|
||||
onBlur: function onBlur() {},
|
||||
onChange: function onChange() {}
|
||||
};
|
||||
exports['default'] = Checkbox;
|
||||
module.exports = exports['default'];
|
||||
+99
@@ -0,0 +1,99 @@
|
||||
{
|
||||
"_from": "rc-checkbox@~2.2.0",
|
||||
"_id": "rc-checkbox@2.2.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-Wjh/nutLA8iIPTT1P9I9KOqlUblVe+CWa3SxMibFySnLyYbMxKNtPhwNcbADPOqzNU0AsCntTduNeJg1n0B5fg==",
|
||||
"_location": "/rc-checkbox",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "rc-checkbox@~2.2.0",
|
||||
"name": "rc-checkbox",
|
||||
"escapedName": "rc-checkbox",
|
||||
"rawSpec": "~2.2.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "~2.2.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/antd"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/rc-checkbox/-/rc-checkbox-2.2.0.tgz",
|
||||
"_shasum": "a0ce95c34f05e0eb882664174518cd4baa36dce9",
|
||||
"_spec": "rc-checkbox@~2.2.0",
|
||||
"_where": "/Users/thilina/TestProjects/icehrm-pro/web/node_modules/antd",
|
||||
"bugs": {
|
||||
"url": "http://github.com/react-component/checkbox/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"config": {
|
||||
"port": 8001
|
||||
},
|
||||
"dependencies": {
|
||||
"babel-runtime": "^6.23.0",
|
||||
"classnames": "2.x"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "checkbox ui component for react",
|
||||
"devDependencies": {
|
||||
"core-js": "^2.5.1",
|
||||
"coveralls": "^3.0.0",
|
||||
"enzyme": "^3.1.0",
|
||||
"enzyme-adapter-react-16": "^1.0.1",
|
||||
"jest": "^21.2.1",
|
||||
"pre-commit": "1.x",
|
||||
"rc-tools": "^7.0.3",
|
||||
"react": "^16.0.0",
|
||||
"react-dom": "^16.0.0",
|
||||
"react-test-renderer": "^16.0.0"
|
||||
},
|
||||
"files": [
|
||||
"lib",
|
||||
"es",
|
||||
"assets/*.css",
|
||||
"index.d.ts"
|
||||
],
|
||||
"homepage": "http://github.com/react-component/checkbox",
|
||||
"jest": {
|
||||
"setupFiles": [
|
||||
"./tests/setup.js"
|
||||
],
|
||||
"collectCoverageFrom": [
|
||||
"src/*"
|
||||
],
|
||||
"transform": {
|
||||
"\\.tsx?$": "./node_modules/rc-tools/scripts/jestPreprocessor.js",
|
||||
"\\.jsx?$": "./node_modules/rc-tools/scripts/jestPreprocessor.js"
|
||||
}
|
||||
},
|
||||
"keywords": [
|
||||
"react",
|
||||
"react-component",
|
||||
"react-checkbox",
|
||||
"checkbox"
|
||||
],
|
||||
"licenses": "MIT",
|
||||
"main": "lib/index",
|
||||
"module": "es/index",
|
||||
"name": "rc-checkbox",
|
||||
"pre-commit": [
|
||||
"lint"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+ssh://git@github.com/react-component/checkbox.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "rc-tools run build",
|
||||
"compile": "rc-tools run compile --babel-runtime",
|
||||
"coverage": "jest --coverage && cat ./coverage/lcov.info | coveralls",
|
||||
"gh-pages": "rc-tools run gh-pages",
|
||||
"lint": "rc-tools run lint",
|
||||
"prepublish": "rc-tools run guard",
|
||||
"pub": "rc-tools run pub --babel-runtime",
|
||||
"start": "rc-tools run server",
|
||||
"test": "jest"
|
||||
},
|
||||
"types": "index.d.ts",
|
||||
"version": "2.2.0"
|
||||
}
|
||||
Reference in New Issue
Block a user