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

//#region src/divider/divider.tsx
const DividerBase = styled.hrBox`
  border-color: sandstone.90;
`;
/** Visually separates content with a horizontal or vertical line. */
const Divider = vui((props, ref) => {
	const { className, isVertical, width, ...rest } = omitThemingProps(props);
	const styles = useStyleConfig("Divider", props);
	const borderWidth = `border${isVertical ? "Right" : "Bottom"}Width`;
	const height = isVertical ? "100%" : "";
	const aliasedProps = filterUndefined({ [borderWidth]: width ?? 1 });
	return /* @__PURE__ */ jsx(DividerBase, {
		className: cs("vui-divider", className),
		h: height,
		ref,
		...styles,
		...aliasedProps,
		...rest
	});
});
Divider.displayName = "Divider";
var divider_default = Divider;

//#endregion
export { Divider, DividerBase, divider_default as default };
globalThis.__vuiVersion__ = "4.0.0-beta.1"
//# sourceMappingURL=divider.js.map