import styled, { css } from "styled-components";
import { BoxSizingStyle } from "../BoxSizingStyle";
import { FontStyle } from "../FontStyle";
import { Typography } from "../Typography/Typography";
export const StyledDiv = styled.div.withConfig({
  displayName: "Styles__StyledDiv",
  componentId: "sc-1wapx2a-0"
})(["", " ", " ", " ", ""], FontStyle, BoxSizingStyle, {
  "position": "relative",
  "display": "inline-block",
  "maxWidth": "100%"
}, _ref => {
  let {
    $multiline
  } = _ref;
  return $multiline && css(["position:relative;display:flex;"]);
});
export const StyledSpan = styled(Typography).withConfig({
  displayName: "Styles__StyledSpan",
  componentId: "sc-1wapx2a-1"
})(["visibility:hidden;display:block;padding-left:4px;padding-right:4px;padding-top:1px;padding-bottom:1px;position:relative;border:1px solid transparent;border-radius:6px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:pre;font-variant-numeric:tabular-nums;", " ", " &:empty:before{content:\" \";}"], _ref2 => {
  let {
    $disabled
  } = _ref2;
  return $disabled && css(["visibility:visible;cursor:default !important;"]);
}, _ref3 => {
  let {
    invalid
  } = _ref3;
  return invalid && css(["border:1px solid var(--red-alert);"]);
});
StyledSpan.displayName = "StyledSpan";
export const StyledInput = styled(Typography).withConfig({
  displayName: "Styles__StyledInput",
  componentId: "sc-1wapx2a-2"
})(["", " background-color:inherit;padding-left:4px;padding-right:4px;padding-top:1px;padding-bottom:1px;text-overflow:ellipsis;font-variant-numeric:tabular-nums;&:focus-whitin{text-overflow:clip;}outline-width:0px;outline:none;&:disabled{opacity:0;}", ""], {
  "position": "absolute",
  "inset": "0px",
  "boxSizing": "border-box",
  "width": "100%",
  "overflow": "hidden",
  "whiteSpace": "nowrap",
  "borderRadius": "0.375rem",
  "borderWidth": "1px",
  "borderStyle": "solid",
  "borderColor": "transparent",
  ":focus-within": {
    "overflow": "scroll",
    "borderColor": "var(--color-theme-700)"
  },
  ":hover": {
    "borderColor": "var(--color-theme-700)"
  }
}, _ref4 => {
  let {
    invalid
  } = _ref4;
  return invalid && css(["border-color:var(--red-alert) !important;"]);
});
StyledInput.displayName = "StyledInput";
export const StyledMultilineSpan = styled(StyledSpan).withConfig({
  displayName: "Styles__StyledMultilineSpan",
  componentId: "sc-1wapx2a-3"
})(["cursor:", ";z-index:2;width:100%;visibility:visible !important;&:hover{border-color:", ";}"], _ref5 => {
  let {
    $disabled
  } = _ref5;
  return $disabled ? "default" : "text !important";
}, _ref6 => {
  let {
    invalid,
    $disabled
  } = _ref6;
  return invalid ? "var(--red-alert)" : $disabled ? "transparent" : "var(--border-primary)";
});
StyledMultilineSpan.displayName = "StyledMultilineSpan";
export const StyledTextareaSpan = styled(Typography).withConfig({
  displayName: "Styles__StyledTextareaSpan",
  componentId: "sc-1wapx2a-4"
})(["", " background-color:var(--input-background-color);border-color:var(--color-theme-500);padding-left:4px;padding-right:4px;padding-top:1px;padding-bottom:1px;font-variant-numeric:tabular-nums;outline-width:0px;outline:none;resize:none;white-space:pre-wrap;overflow-wrap:break-word;height:calc(1.5em * 3 + 2px);min-height:calc(1.5em * 3 + 2px);opacity:0;pointer-events:none;z-index:1;&:focus{opacity:1;pointer-events:auto;background-color:var(--input-background-color);border-color:var(--color-primary);outline:none;z-index:3;}&:disabled{opacity:0;pointer-events:none;}", ""], {
  "position": "absolute",
  "inset": "0px",
  "boxSizing": "border-box",
  "width": "100%",
  "borderRadius": "0.375rem",
  "borderWidth": "1px",
  "borderStyle": "solid"
}, _ref7 => {
  let {
    invalid
  } = _ref7;
  return invalid && css(["border-color:var(--red-alert) !important;"]);
});
StyledTextareaSpan.displayName = "StyledTextareaSpan";
//# sourceMappingURL=Styles.js.map