import { createVNode } from 'vue';
import omit from '../_util/omit.mjs';
import warning from '../_util/warning.mjs';
import Base, { baseProps } from './Base.mjs';

const textProps = () => ({
  ...omit(baseProps(), ["component"]),
  ellipsis: {
    type: [Boolean, Object],
    default: void 0
  }
});
const Text = (props, {
  slots,
  attrs
}) => {
  const {
    ellipsis
  } = props;
  warning(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(Base, textProps2, slots);
};
Text.displayName = "ATypographyText";
Text.inheritAttrs = false;
Text.props = textProps();

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