"use strict";

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

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

var _styledComponents = _interopRequireDefault(require("styled-components"));

var _behaviors = require("../../../behaviors");

var _index = require("../../../icon/ellipsis/index");

var _branding = require("../../../../mixins/branding");

var _focus = require("../../../../mixins/focus");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var EllipsisButtonWrapper = (0, _styledComponents["default"])(_behaviors.UnstyledButton).withConfig({
  displayName: "EllipsisButtonWrapper",
  componentId: "sc-1yh7h75-0"
})(["display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background-color:", ";", " ", "{box-shadow:", ",", " ", ";}&:hover{background:", ";}&:active{background:", ";}"], (0, _branding.getPaletteColor)('white'), (0, _focus.getBaseFocusState)({}), _focus.FOCUS_VISIBLE_SELECTOR, _focus.focusedBoxShadow, _focus.focusedBorderShadow, _focus.focusedBorderColor, _focus.hoverBackgroundColor, _focus.activeBackgroundColor);

var EllipsisButton = function EllipsisButton(_ref) {
  var onClick = _ref.onClick;
  return _react["default"].createElement(EllipsisButtonWrapper, {
    "aria-haspopup": true,
    insetFocus: true,
    onClick: onClick
  }, _react["default"].createElement(_index.Ellipsis, {
    "aria-hidden": true,
    colorName: "white"
  }));
};

exports.EllipsisButton = EllipsisButton;