"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"));

var BDesignTable = function BDesignTable(props) {
  var className = props.className,
      size = props.size,
      _props$hasborder = props.hasborder,
      hasborder = _props$hasborder === void 0 ? false : _props$hasborder,
      rest = (0, _objectWithoutProperties2.default)(props, ["className", "size", "hasborder"]);
  return /*#__PURE__*/_react.default.createElement(_components.Table, (0, _extends2.default)({
    hasBorder: hasborder,
    className: (0, _classnames.default)(className, {
      'next-table-small': size === "small",
      'next-table-medium': size === "medium",
      'next-table-large': size === "large"
    })
  }, rest));
};

BDesignTable.Base = _components.Table.Base;
BDesignTable.Body = _components.Table.Body;
BDesignTable.Cell = _components.Table.Cell;
BDesignTable.Column = _components.Table.Column;
BDesignTable.ColumnGroup = _components.Table.ColumnGroup;
BDesignTable.ExpandedRow = _components.Table.ExpandedRow;
BDesignTable.Filter = _components.Table.Filter;
BDesignTable.FixedBody = _components.Table.FixedBody;
BDesignTable.FixedHeader = _components.Table.FixedHeader;
BDesignTable.FixedWrapper = _components.Table.FixedWrapper;
BDesignTable.GroupFooter = _components.Table.GroupFooter;
BDesignTable.GroupHeader = _components.Table.GroupHeader;
BDesignTable.Header = _components.Table.Header;
BDesignTable.ListBody = _components.Table.ListBody;
BDesignTable.ListFooter = _components.Table.ListFooter;
BDesignTable.ListHeader = _components.Table.ListHeader;
BDesignTable.ListRow = _components.Table.ListRow;
BDesignTable.LockBody = _components.Table.LockBody;
BDesignTable.LockHeader = _components.Table.LockHeader;
BDesignTable.LockRow = _components.Table.LockRow;
BDesignTable.Row = _components.Table.Row;
BDesignTable.SelectionRow = _components.Table.SelectionRow;
BDesignTable.Sort = _components.Table.Sort;
BDesignTable.StickyHeader = _components.Table.StickyHeader;
BDesignTable.StickyLock = _components.Table.StickyLock;
BDesignTable.TreeCell = _components.Table.TreeCell;
BDesignTable.TreeRow = _components.Table.TreeRow;
BDesignTable.VirtualBody = _components.Table.VirtualBody;
BDesignTable.Wrapper = _components.Table.Wrapper;
var _default = BDesignTable;
exports.default = _default;