"use strict";

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

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

var _styles = require("@vincent_za/styles");

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

function _templateObject3() {
  var data = _taggedTemplateLiteral(["\n  color: ", ";\n  padding: ", " ", " ", " ", ";\n  text-align: ", ";\n\n  ", ";\n"]);

  _templateObject3 = function _templateObject3() {
    return data;
  };

  return data;
}

function _templateObject2() {
  var data = _taggedTemplateLiteral([""]);

  _templateObject2 = function _templateObject2() {
    return data;
  };

  return data;
}

function _templateObject() {
  var data = _taggedTemplateLiteral(["\n  display: ", ";\n"]);

  _templateObject = function _templateObject() {
    return data;
  };

  return data;
}

function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }

var Table = _styledComponents.default.table(_templateObject(), function (props) {
  return props.isHidden ? 'none' : 'table';
});

exports.Table = Table;

var Row = _styledComponents.default.tr(_templateObject2());

exports.Row = Row;

var Cell = _styledComponents.default.td(_templateObject3(), _styles.SONIC_SILVER, _styles.REM_UNIT_XSM, _styles.REM_UNIT_SM, _styles.REM_UNIT_XSM, _styles.REM_UNIT_LG, function (props) {
  return props.isRight ? 'right' : 'left';
}, function (props) {
  return props.isValue && "\n    padding-right: ".concat(_styles.REM_UNIT_LG, ";\n    padding-left: ").concat(_styles.REM_UNIT_SM, ";\n  ");
});

exports.Cell = Cell;