import { createVNode } from 'vue';
import '../../../utils/index.mjs';
import ATypographyBase from './Base.mjs';
import { textProps } from './props.mjs';
import { devWarning } from '../../../utils/log.mjs';
import { omit } from '../../../utils/lang/omit.mjs';

const Text = (props, {
  slots,
  attrs
}) => {
  const {
    ellipsis
  } = props;
  devWarning(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(ellipsis, ["expandable", "rows"]) : ellipsis,
    component: "span",
    ...attrs
  };
  return createVNode(ATypographyBase, textProps2, slots);
};
Text.displayName = "ATypographyText";
Text.inheritAttrs = false;
Text.props = textProps();

export { Text as default };
//# sourceMappingURL=Text.mjs.map
