// packages/components/src/color-picker/color-input.tsx
import { RgbInput } from "./rgb-input.js";
import { HslInput } from "./hsl-input.js";
import { HexInput } from "./hex-input.js";
import { jsx as _jsx } from "react/jsx-runtime";
var ColorInput = ({
  colorType,
  color,
  onChange,
  enableAlpha
}) => {
  const props = {
    color,
    onChange,
    enableAlpha
  };
  switch (colorType) {
    case "hsl":
      return /* @__PURE__ */ _jsx(HslInput, {
        ...props
      });
    case "rgb":
      return /* @__PURE__ */ _jsx(RgbInput, {
        ...props
      });
    default:
    case "hex":
      return /* @__PURE__ */ _jsx(HexInput, {
        ...props
      });
  }
};
export {
  ColorInput
};
//# sourceMappingURL=color-input.js.map
