'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.SIZE = undefined;

var _styledComponents = require('styled-components');

var _styledComponents2 = _interopRequireDefault(_styledComponents);

var _themeGet = require('../../../extensions/themeGet');

var _themeGet2 = _interopRequireDefault(_themeGet);

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

var SIZE = exports.SIZE = '30px';

exports.default = _styledComponents2.default.li.withConfig({
  displayName: 'PaginationItem'
})(['float:left;margin:0;padding:0;width:', ';height:', ';line-height:', ';text-align:center;cursor:pointer;border-width:', ';border-style:solid;border-color:', ';border-right:none;user-select:none;background:', ';color:', ';', ' &:active{background:', ';}&:first-of-type{border-radius:3px 0px 0px 3px;}&:last-of-type{border-radius:0px 3px 3px 0px;border-right:', ' solid ', ';}'], SIZE, SIZE, SIZE, (0, _themeGet2.default)('thicknesses.normal'), (0, _themeGet2.default)('colors.border.medium'), (0, _themeGet2.default)('colors.background.default'), (0, _themeGet2.default)('colors.text.default'), function (props) {
  return props.selected ? '\n      background: ' + (0, _themeGet2.default)('colors.primary.default')(props) + ';\n      border-color: ' + (0, _themeGet2.default)('colors.primary.default')(props) + ';\n      color: ' + (0, _themeGet2.default)('colors.text.inverted')(props) + ';\n\n      & + li {\n        border-left-color: ' + (0, _themeGet2.default)('colors.primary.default')(props) + ';\n      }\n    ' : '\n      &:hover {\n        background: ' + (0, _themeGet2.default)('colors.primary.light')(props) + ';\n      }\n    ';
}, (0, _themeGet2.default)('colors.primary.default'), (0, _themeGet2.default)('thicknesses.normal'), (0, _themeGet2.default)('colors.border.medium'));