"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));

var _react = _interopRequireDefault(require("react"));

var _components = require("@alicloudfe/components");

var _classnames = _interopRequireDefault(require("classnames"));

// console.log({...Checkbox});
var BDesignCheckbox = function BDesignCheckbox(props) {
  console.log(props, 'props');
  var className = props.className,
      size = props.size,
      rest = (0, _objectWithoutProperties2.default)(props, ["className", "size"]);
  console.log(className, 'className');
  console.log(size);
  return /*#__PURE__*/_react.default.createElement(_components.Checkbox, (0, _extends2.default)({
    className: (0, _classnames.default)(className, {
      'next-checkbox-small': size === "small",
      'next-checkbox-medium': size === 'medium',
      'next-checkbox-large': size === 'large'
    })
  }, rest));
};

var BDesignGroup = function BDesignGroup(props) {
  var className = props.className,
      type = props.type,
      size = props.size,
      rest = (0, _objectWithoutProperties2.default)(props, ["className", "type", "size"]);
  return /*#__PURE__*/_react.default.createElement(_components.Checkbox.Group, (0, _extends2.default)({
    className: (0, _classnames.default)(className, {
      'next-checkbox-group-small': size === "small",
      'next-checkbox-group-medium': size === 'medium',
      'next-checkbox-group-large': size === 'large'
    })
  }, rest));
};

BDesignCheckbox.Group = BDesignGroup;
var _default = BDesignCheckbox;
exports.default = _default;