"use client";
const require_checkbox_anatomy = require("./checkbox.anatomy.cjs");
const require_create_split_props = require("../../utils/create-split-props.cjs");
const require_factory = require("../factory.cjs");
const require_use_checkbox_group_context = require("./use-checkbox-group-context.cjs");
let react = require("react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/checkbox/checkbox-group-provider.tsx
var splitProviderProps = require_create_split_props.createSplitProps();
var CheckboxGroupProvider = (0, react.forwardRef)((props, ref) => {
	const [localProps, restProps] = splitProviderProps(props, ["value"]);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_checkbox_group_context.CheckboxGroupContextProvider, {
		value: localProps.value,
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
			ref,
			role: "group",
			...restProps,
			...require_checkbox_anatomy.checkboxAnatomy.build().group.attrs
		})
	});
});
CheckboxGroupProvider.displayName = "CheckboxGroupProvider";
//#endregion
exports.CheckboxGroupProvider = CheckboxGroupProvider;
