'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vue = require('vue');
var omit = require('../_util/omit.js');
var warning = require('../_util/warning.js');
var Base = require('./Base.js');

const textProps = () => ({
  ...omit.default(Base.baseProps(), ["component"]),
  ellipsis: {
    type: [Boolean, Object],
    default: void 0
  }
});
const Text = (props, {
  slots,
  attrs
}) => {
  const {
    ellipsis
  } = props;
  warning.default(typeof ellipsis !== "object" || !ellipsis || !("expandable" in ellipsis) && !("rows" in ellipsis), "Typography.Text", "`ellipsis` do not support `expandable` or `rows` props.");
  const textProps2 = {
    ...props,
    ellipsis: ellipsis && typeof ellipsis === "object" ? omit.default(ellipsis, ["expandable", "rows"]) : ellipsis,
    component: "span",
    ...attrs
  };
  return vue.createVNode(Base.default, textProps2, slots);
};
Text.displayName = "ATypographyText";
Text.inheritAttrs = false;
Text.props = textProps();

exports.default = Text;
exports.textProps = textProps;
//# sourceMappingURL=Text.js.map
