UNPKG

800 BJavaScriptView Raw
1import _extends from 'babel-runtime/helpers/extends';
2import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
3import Checkbox from './checkbox';
4import Group from './checkbox-group';
5import ConfigProvider from '../config-provider';
6
7Checkbox.Group = ConfigProvider.config(Group, {
8 transform: /* istanbul ignore next */function transform(props, deprecated) {
9 if ('itemDirection' in props) {
10 deprecated('itemDirection', 'direction', 'Checkbox');
11
12 var _props = props,
13 itemDirection = _props.itemDirection,
14 others = _objectWithoutProperties(_props, ['itemDirection']);
15
16 props = _extends({ direction: itemDirection }, others);
17 }
18
19 return props;
20 }
21});
22
23export default Checkbox;
\No newline at end of file