"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Label = exports.CloseHandle = exports.DragHandle = exports.Item = exports.List = exports.Root = void 0;

var _index = require("../styles/index.js");

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; }

/**
 * Main component container element
 */
var Root = (0, _index.styled)('div', function (_ref) {
  var $theme = _ref.$theme;
  return {
    color: $theme.colors.mono1000,
    width: '100%'
  };
});
exports.Root = Root;
Root.displayName = "Root";
Root.displayName = 'StyledRoot';
var List = (0, _index.styled)('ul', function (_ref2) {
  var $isDragged = _ref2.$isDragged;
  return {
    paddingLeft: 0,
    cursor: $isDragged ? 'grabbing' : null
  };
});
exports.List = List;
List.displayName = "List";
List.displayName = 'StyledList';
var Item = (0, _index.styled)('li', function (_ref3) {
  var $isDragged = _ref3.$isDragged,
      $isSelected = _ref3.$isSelected,
      $theme = _ref3.$theme;
  return {
    ':hover': !$isDragged && !$isSelected ? {
      borderTopWidth: '2px',
      borderBottomWidth: '2px',
      borderLeftWidth: '2px',
      borderRightWidth: '2px',
      borderTopStyle: 'solid',
      borderBottomStyle: 'solid',
      borderLeftStyle: 'solid',
      borderRightStyle: 'solid',
      borderTopColor: $theme.colors.primary100,
      borderBottomColor: $theme.colors.primary100,
      borderLeftColor: $theme.colors.primary100,
      borderRightColor: $theme.colors.primary100,
      color: $theme.colors.primary
    } : {},
    paddingTop: $theme.sizing.scale600,
    paddingBottom: $theme.sizing.scale600,
    paddingLeft: $theme.sizing.scale600,
    paddingRight: $theme.sizing.scale600,
    display: 'flex',
    justifyContent: 'space-between',
    alignItems: 'center',
    listStyle: 'none',
    cursor: $isDragged ? 'grabbing' : 'grab',
    backgroundColor: $theme.colors.mono100,
    boxShadow: $isDragged ? '0px 2px 6px rgba(39, 110, 241, 0.32)' : null,
    borderTopWidth: '2px',
    borderBottomWidth: '2px',
    borderLeftWidth: '2px',
    borderRightWidth: '2px',
    borderTopStyle: 'solid',
    borderBottomStyle: 'solid',
    borderLeftStyle: 'solid',
    borderRightStyle: 'solid',
    borderTopColor: $isDragged || $isSelected ? $theme.colors.primary : 'transparent',
    borderBottomColor: $isDragged || $isSelected ? $theme.colors.primary : 'transparent',
    borderLeftColor: $isDragged || $isSelected ? $theme.colors.primary : 'transparent',
    borderRightColor: $isDragged || $isSelected ? $theme.colors.primary : 'transparent'
  };
});
exports.Item = Item;
Item.displayName = "Item";
List.displayName = 'StyledItem';
var DragHandle = (0, _index.styled)('div', function (_ref4) {
  var $theme = _ref4.$theme;
  return {
    marginRight: $theme.sizing.scale600,
    width: $theme.sizing.scale800,
    display: 'flex',
    alignItems: 'center'
  };
});
exports.DragHandle = DragHandle;
DragHandle.displayName = "DragHandle";
DragHandle.displayName = 'StyledDragHandle';
var CloseHandle = (0, _index.styled)('button', function (_ref5) {
  var $theme = _ref5.$theme;
  return {
    border: 'none',
    paddingTop: 0,
    paddingBottom: 0,
    paddingLeft: 0,
    paddingRight: 0,
    overflow: 'visible',
    cursor: 'pointer',
    backgroundColor: 'transparent',
    marginLeft: $theme.sizing.scale600,
    width: $theme.sizing.scale800,
    display: 'flex',
    alignItems: 'center'
  };
});
exports.CloseHandle = CloseHandle;
CloseHandle.displayName = "CloseHandle";
CloseHandle.displayName = 'StyledCloseHandle';
var Label = (0, _index.styled)('div', function (_ref6) {
  var $theme = _ref6.$theme;
  return _objectSpread({
    flexGrow: 1
  }, $theme.typography.font400);
});
exports.Label = Label;
Label.displayName = "Label";
Label.displayName = 'StyledLabel';