import { filterUndefined } from "../utils/object.js";
import { cs } from "../utils/styles.js";
import { omitThemingProps, useStyleConfig } from "../core/theme.js";
import styled from "../core/styled.js";
import vui from "../core/vui.js";
import { jsx } from "react/jsx-runtime";

//#region src/p/p.tsx
const PBase = styled.pBox`
  transition-duration: fast;

  .vui-link {
    line-height: inherit;
  }
`;
/** Displays a paragraph of text. */
const P = vui((props, ref) => {
	const { align, casing, children, className, decoration, text, weight, ...rest } = omitThemingProps(props);
	const styles = useStyleConfig("P", props);
	const aliasedProps = filterUndefined({
		fontWeight: weight,
		textAlign: align,
		textDecoration: decoration,
		textTransform: casing
	});
	return /* @__PURE__ */ jsx(PBase, {
		className: cs("vui-p", className),
		ref,
		...styles,
		...aliasedProps,
		...rest,
		children: children ?? text
	});
});
P.displayName = "P";

//#endregion
export { PBase, P as default };
globalThis.__vuiVersion__ = "4.0.1"
//# sourceMappingURL=p.js.map