text: "use strict";
  
  exports.__esModule = true;
  exports["default"] = void 0;
  
  var _anatomy = require("@chakra-ui/anatomy");
  
  var _themeTools = require("@chakra-ui/theme-tools");
  
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
  
  var baseStyle = {
    table: {
      fontVariantNumeric: "lining-nums tabular-nums",
      borderCollapse: "collapse",
      width: "full"
    },
    th: {
      fontFamily: "heading",
      fontWeight: "bold",
      textTransform: "uppercase",
      letterSpacing: "wider",
      textAlign: "start"
    },
    td: {
      textAlign: "start"
    },
    caption: {
      mt: 4,
      fontFamily: "heading",
      textAlign: "center",
      fontWeight: "medium"
    }
  };
  var numericStyles = {
    "&[data-is-numeric=true]": {
      textAlign: "end"
    }
  };
  
  var variantSimple = function variantSimple(props) {
    var c = props.colorScheme;
    return {
      th: _extends({
        color: (0, _themeTools.mode)("gray.600", "gray.400")(props),
        borderBottom: "1px",
        borderColor: (0, _themeTools.mode)(c + ".100", c + ".700")(props)
      }, numericStyles),
      td: _extends({
        borderBottom: "1px",
        borderColor: (0, _themeTools.mode)(c + ".100", c + ".700")(props)
      }, numericStyles),
      caption: {
        color: (0, _themeTools.mode)("gray.600", "gray.100")(props)
      },
      tfoot: {
        tr: {
          "&:last-of-type": {
            th: {
              borderBottomWidth: 0
            }
          }
        }
      }
    };
  };
  
  var variantStripe = function variantStripe(props) {
    var c = props.colorScheme;
    return {
      th: _extends({
        color: (0, _themeTools.mode)("gray.600", "gray.400")(props),
        borderBottom: "1px",
        borderColor: (0, _themeTools.mode)(c + ".100", c + ".700")(props)
      }, numericStyles),
      td: _extends({
        borderBottom: "1px",
        borderColor: (0, _themeTools.mode)(c + ".100", c + ".700")(props)
      }, numericStyles),
      caption: {
        color: (0, _themeTools.mode)("gray.600", "gray.100")(props)
      },
      tbody: {
        tr: {
          "&:nth-of-type(odd)": {
            "th, td": {
              borderBottomWidth: "1px",
              borderColor: (0, _themeTools.mode)(c + ".100", c + ".700")(props)
            },
            td: {
              background: (0, _themeTools.mode)(c + ".100", c + ".700")(props)
            }
          }
        }
      },
      tfoot: {
        tr: {
          "&:last-of-type": {
            th: {
              borderBottomWidth: 0
            }
          }
        }
      }
    };
  };
  
  var variants = {
    simple: variantSimple,
    striped: variantStripe,
    unstyled: {}
  };
  var sizes = {
    sm: {
      th: {
        px: "4",
        py: "1",
        lineHeight: "4",
        fontSize: "xs"
      },
      td: {
        px: "4",
        py: "2",
        fontSize: "sm",
        lineHeight: "4"
      },
      caption: {
        px: "4",
        py: "2",
        fontSize: "xs"
      }
    },
    md: {
      th: {
        px: "6",
        py: "3",
        lineHeight: "4",
        fontSize: "xs"
      },
      td: {
        px: "6",
        py: "4",
        lineHeight: "5"
      },
      caption: {
        px: "6",
        py: "2",
        fontSize: "sm"
      }
    },
    lg: {
      th: {
        px: "8",
        py: "4",
        lineHeight: "5",
        fontSize: "sm"
      },
      td: {
        px: "8",
        py: "5",
        lineHeight: "6"
      },
      caption: {
        px: "6",
        py: "2",
        fontSize: "md"
      }
    }
  };
  var defaultProps = {
    variant: "simple",
    size: "md",
    colorScheme: "gray"
  };
  var _default = {
    parts: _anatomy.tableAnatomy.keys,
    baseStyle: baseStyle,
    variants: variants,
    sizes: sizes,
    defaultProps: defaultProps
  };
  exports["default"] = _default;
  //# sourceMappingURL=table.js.map