import { cs } from "../utils/styles.js";
import vui from "../core/vui.js";
import Box from "../box/box.js";
import { boldTitles, stepClassName, titleColor } from "./consts.js";
import { jsx } from "react/jsx-runtime";

//#region src/stepperHorizontal/stepHorizontalTitle.tsx
/**
* Implements Horizontal stepper tail (the Horizontal line) **
*/
const StepHorizontalTitle = vui((props, ref) => {
	const { children, className, size = "md", variant = "active", ...rest } = props;
	return /* @__PURE__ */ jsx(Box, {
		className: cs(stepClassName + "Title"),
		color: titleColor[variant],
		display: "block",
		fontSize: `${size === "md" ? 16 : 14}px`,
		fontWeight: boldTitles.includes(variant) ? 600 : void 0,
		pt: `${size === "md" ? 4 : 2}px`,
		textAlign: "center",
		whiteSpace: "nowrap",
		...rest,
		children
	});
});
StepHorizontalTitle.displayName = "StepHorizontalTitle";

//#endregion
export { StepHorizontalTitle as default };
globalThis.__vuiVersion__ = "4.0.0"
//# sourceMappingURL=stepHorizontalTitle.js.map