"use client";
import { createSplitProps } from "../../utils/create-split-props.js";
import { ark } from "../factory.js";
import { StepsProvider } from "./use-steps-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/steps/steps-root-provider.tsx
var splitRootProviderProps = createSplitProps();
var StepsRootProvider = forwardRef((props, ref) => {
	const [{ value: steps }, rootProps] = splitRootProviderProps(props, ["value"]);
	const mergedProps = mergeProps(steps.getRootProps(), rootProps);
	return /* @__PURE__ */ jsx(StepsProvider, {
		value: steps,
		children: /* @__PURE__ */ jsx(ark.div, {
			...mergedProps,
			ref,
			children: props.children
		})
	});
});
StepsRootProvider.displayName = "StepsRootProvider";
//#endregion
export { StepsRootProvider };
