import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import React from "react";
import { Table } from "@alicloudfe/components";
import cls from "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 = _objectWithoutProperties(props, ["className", "size", "hasborder"]);

  return /*#__PURE__*/React.createElement(Table, _extends({
    hasBorder: hasborder,
    className: cls(className, {
      'next-table-small': size === "small",
      'next-table-medium': size === "medium",
      'next-table-large': size === "large"
    })
  }, rest));
};

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