"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ChipTrigger = exports.ChipLabel = exports.ChipContainer = exports.ChipCloseIcon = void 0;
var _styledComponents = _interopRequireWildcard(require("styled-components"));
var _BoxSizingStyle = require("../BoxSizingStyle");
var _FontStyle = require("../FontStyle");
var _Icons = require("../Icons");
var _Trigger = require("../Trigger");
var _Styles = require("../Typography/Styles");
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
// prettier-ignore
var ChipContainer = exports.ChipContainer = _styledComponents.default.div.withConfig({
  displayName: "Styles__ChipContainer",
  componentId: "sc-7s0bd1-0"
})(["align-items:center;border-radius:0.25rem;display:flex;height:1.5rem;max-width:220px;overflow:hidden;padding-left:0.375rem;", " ", " background-color:var(--color-theme-400);color:var(--color-theme-900);font-size:0.875rem;font-weight:400;letter-spacing:0.02em;line-height:1.375;", "{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}", " ", " ", " ", " ", " ", " ", ""], _FontStyle.FontStyle, _BoxSizingStyle.BoxSizingStyle, _Styles.StyledTypography, function (_ref) {
  var color = _ref.color;
  return color && (0, _styledComponents.css)(["", "{color:", ";}"], _Styles.StyledTypography, color);
}, function (_ref2) {
  var backgroundColor = _ref2.backgroundColor;
  return backgroundColor && (0, _styledComponents.css)(["background-color:", ";"], backgroundColor);
}, function (props) {
  return props.showClose ? null : (0, _styledComponents.css)(["padding-right:0.375rem;"]);
}, function (props) {
  return props.size === "regular" && (0, _styledComponents.css)(["height:24px;"]);
}, function (props) {
  return props.size === "small" && (0, _styledComponents.css)(["height:18px;"]);
}, function (props) {
  return props.size === "big" && (0, _styledComponents.css)(["height:30px;"]);
}, function (props) {
  return props.size === "biggest" && (0, _styledComponents.css)(["height:40px;"]);
});
ChipContainer.displayName = "ChipContainer";
var ChipLabel = exports.ChipLabel = _styledComponents.default.span.withConfig({
  displayName: "Styles__ChipLabel",
  componentId: "sc-7s0bd1-1"
})(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;"]);
ChipLabel.displayName = "ChipLabel";
var ChipTrigger = exports.ChipTrigger = (0, _styledComponents.default)(_Trigger.Trigger).withConfig({
  displayName: "Styles__ChipTrigger",
  componentId: "sc-7s0bd1-2"
})(["align-items:center;display:flex;justify-content:center;margin-left:0.125rem;&:hover{background-color:var(--color-theme-transparent-400);}", " ", " ", " ", ""], function (props) {
  return props.size === "regular" && (0, _styledComponents.css)(["height:24px;width:24px;"]);
}, function (props) {
  return props.size === "small" && (0, _styledComponents.css)(["height:18px;width:18px;"]);
}, function (props) {
  return props.size === "big" && (0, _styledComponents.css)(["height:30px;width:30px;"]);
}, function (props) {
  return props.size === "biggest" && (0, _styledComponents.css)(["height:40px;width:40px;"]);
});
ChipTrigger.displayName = "ChipTrigger";
var ChipCloseIcon = exports.ChipCloseIcon = (0, _styledComponents.default)(_Icons.CloseSmallIcon).withConfig({
  displayName: "Styles__ChipCloseIcon",
  componentId: "sc-7s0bd1-3"
})(["color:var(--color-theme-700);"]);
ChipCloseIcon.displayName = "ChipCloseIcon";
//# sourceMappingURL=Styles.js.map