"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.DropdownButton = exports.DropdownMenu = exports.DropdownContainer = exports.MaxLabel = exports.Root = void 0;

var _styles = require("../styles");

var _menu = require("../menu");

var _button = require("../button");

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var Root = (0, _styles.styled)('div', {
  display: 'flex',
  alignItems: 'center'
});
exports.Root = Root;
var MaxLabel = (0, _styles.styled)('span', function (_ref) {
  var $theme = _ref.$theme;
  return _objectSpread({}, $theme.typography.font300, {
    marginLeft: $theme.sizing.scale300,
    marginRight: $theme.sizing.scale600
  });
});
exports.MaxLabel = MaxLabel;
var DropdownContainer = (0, _styles.styled)('div', function (_ref2) {
  var $theme = _ref2.$theme;
  return {
    position: 'relative',
    marginLeft: $theme.sizing.scale600,
    marginRight: $theme.sizing.scale300
  };
});
exports.DropdownContainer = DropdownContainer;
var DropdownMenu = (0, _styles.styled)(_menu.StyledList, function (_ref3) {
  var $theme = _ref3.$theme;
  return {
    position: 'absolute',
    overflow: 'auto',
    maxHeight: '200px',
    top: 'auto',
    marginTop: $theme.sizing.scale300,
    left: 0,
    right: 0
  };
});
exports.DropdownMenu = DropdownMenu;
var DropdownButton = (0, _styles.styled)(_button.StyledBaseButton, function (_ref4) {
  var $theme = _ref4.$theme;
  return {
    color: $theme.colors.foreground,
    minWidth: "calc(".concat($theme.sizing.scale1600, " + ").concat($theme.sizing.scale400, ")")
  };
});
exports.DropdownButton = DropdownButton;