"use client";
const require_create_split_props = require("../../utils/create-split-props.cjs");
const require_factory = require("../factory.cjs");
const require_use_steps_context = require("./use-steps-context.cjs");
const require_use_steps_item_props_context = require("./use-steps-item-props-context.cjs");
const require_use_steps_item_context = require("./use-steps-item-context.cjs");
let react = require("react");
let _zag_js_react = require("@zag-js/react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/steps/steps-item.tsx
var splitItemProps = require_create_split_props.createSplitProps();
var StepsItem = (0, react.forwardRef)((props, ref) => {
	const [itemProps, localProps] = splitItemProps(props, ["index"]);
	const steps = require_use_steps_context.useStepsContext();
	const mergedProps = (0, _zag_js_react.mergeProps)(steps.getItemProps(itemProps), localProps);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_steps_item_props_context.StepsItemPropsProvider, {
		value: itemProps,
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_steps_item_context.StepsItemProvider, {
			value: steps.getItemState(itemProps),
			children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
				...mergedProps,
				ref
			})
		})
	});
});
StepsItem.displayName = "StepsItem";
//#endregion
exports.StepsItem = StepsItem;
