"use client";
const require_create_split_props = require("../../utils/create-split-props.cjs");
const require_factory = require("../factory.cjs");
const require_use_color_picker_context = require("./use-color-picker-context.cjs");
const require_use_color_picker_swatch_props_context = require("./use-color-picker-swatch-props-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/color-picker/color-picker-swatch.tsx
var splitSwatchProps = require_create_split_props.createSplitProps();
var ColorPickerSwatch = (0, react.forwardRef)((props, ref) => {
	const [swatwchProps, localProps] = splitSwatchProps(props, ["respectAlpha", "value"]);
	const mergedProps = (0, _zag_js_react.mergeProps)(require_use_color_picker_context.useColorPickerContext().getSwatchProps(swatwchProps), localProps);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_color_picker_swatch_props_context.ColorPickerSwatchPropsProvider, {
		value: swatwchProps,
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
			...mergedProps,
			ref
		})
	});
});
ColorPickerSwatch.displayName = "ColorPickerSwatch";
//#endregion
exports.ColorPickerSwatch = ColorPickerSwatch;
