"use strict";

exports.__esModule = true;
exports.propTypes = void 0;
var _propTypes = _interopRequireDefault(require("prop-types"));
var _statusItem = _interopRequireDefault(require("../../atom/status-item"));
var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
var _bulletPointMenuButton = _interopRequireDefault(require("../bullet-point-menu-button"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const columnProptypes = _propTypes.default.shape({
  title: _propTypes.default.string.isRequired
});
const rowProptypes = _propTypes.default.shape({
  fields: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({
    ..._statusItem.default.propTypes,
    type: _propTypes.default.oneOf(['status'])
  })])),
  isRowExpandible: _propTypes.default.bool,
  lastField: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({
    ..._bulletPointMenuButton.default.propTypes,
    type: _propTypes.default.oneOf(['menu'])
  })])
});
const propTypes = exports.propTypes = {
  columns: _propTypes.default.arrayOf(columnProptypes),
  rows: _propTypes.default.arrayOf(rowProptypes),
  stickyFirstColumn: _propTypes.default.bool,
  stickyLastColumn: _propTypes.default.bool,
  columnWidth: _propTypes.default.string,
  ariaDescribedby: _propTypes.default.string,
  lastField: _propTypes.default.oneOfType([_propTypes.default.shape({
    ..._buttonLink.default.propTypes,
    componentType: _propTypes.default.oneOf(['button-link'])
  }), _propTypes.default.shape({
    ..._bulletPointMenuButton.default.propTypes,
    componentType: _propTypes.default.oneOf(['menu'])
  })]),
  isNestedTable: _propTypes.default.bool,
  emptyStateFirstMessage: _propTypes.default.string,
  emptyStateSecondMessage: _propTypes.default.string
};
//# sourceMappingURL=types.js.map