// packages/components/src/custom-select-control-v2/index.tsx
import * as Ariakit from "@ariakit/react";
import _CustomSelect from "./custom-select.js";
import Item from "./item.js";
import { jsx as _jsx } from "react/jsx-runtime";
function CustomSelectControlV2(props) {
  const {
    defaultValue,
    onChange,
    value,
    ...restProps
  } = props;
  const store = Ariakit.useSelectStore({
    setValue: (nextValue) => onChange?.(nextValue),
    defaultValue,
    value
  });
  return /* @__PURE__ */ _jsx(_CustomSelect, {
    ...restProps,
    store
  });
}
CustomSelectControlV2.Item = Item;
var custom_select_control_v2_default = CustomSelectControlV2;
export {
  custom_select_control_v2_default as default
};
//# sourceMappingURL=index.js.map
