"use client";
import { createSplitProps } from "../../utils/create-split-props.js";
import { ark } from "../factory.js";
import { useColorPickerContext } from "./use-color-picker-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/color-picker/color-picker-swatch-trigger.tsx
var splitSwatchTriggerProps = createSplitProps();
var ColorPickerSwatchTrigger = forwardRef((props, ref) => {
	const [triggerProps, localProps] = splitSwatchTriggerProps(props, ["value", "disabled"]);
	const mergedProps = mergeProps(useColorPickerContext().getSwatchTriggerProps(triggerProps), localProps);
	return /* @__PURE__ */ jsx(ark.button, {
		...mergedProps,
		ref
	});
});
ColorPickerSwatchTrigger.displayName = "ColorPickerSwatchTrigger";
//#endregion
export { ColorPickerSwatchTrigger };
