"use client";
const require_create_split_props = require("../../utils/create-split-props.cjs");
const require_factory = require("../factory.cjs");
const require_use_toggle_group_context = require("./use-toggle-group-context.cjs");
const require_use_toggle_group = require("./use-toggle-group.cjs");
let react = require("react");
let _zag_js_react = require("@zag-js/react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/toggle-group/toggle-group-root.tsx
var splitRootProps = require_create_split_props.createSplitProps();
var ToggleGroupRoot = (0, react.forwardRef)((props, ref) => {
	const [useToggleGroupProps, localProps] = splitRootProps(props, [
		"defaultValue",
		"deselectable",
		"disabled",
		"id",
		"ids",
		"loopFocus",
		"multiple",
		"onValueChange",
		"orientation",
		"rovingFocus",
		"value"
	]);
	const togglegroup = require_use_toggle_group.useToggleGroup(useToggleGroupProps);
	const mergedProps = (0, _zag_js_react.mergeProps)(togglegroup.getRootProps(), localProps);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_toggle_group_context.ToggleGroupProvider, {
		value: togglegroup,
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
			...mergedProps,
			ref
		})
	});
});
ToggleGroupRoot.displayName = "ToggleGroupRoot";
//#endregion
exports.ToggleGroupRoot = ToggleGroupRoot;
