const require_runtime = require("../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_index = require("../DragSortList/index.js");
let react = require("react");
react = require_runtime.__toESM(react);
//#region src/components/sortableList/index.tsx
const defaultActivationConstraint = { distance: 5 };
const SortableList = (props) => {
	const { dataSource, onChange, rowKey, renderItem, activationConstraint = defaultActivationConstraint } = props;
	return /* @__PURE__ */ react.default.createElement(require_index.default, {
		list: dataSource,
		rowKey,
		onChange,
		activationConstraint
	}, (params) => {
		const { item, index, props: p, attributes, listeners, style } = params;
		return /* @__PURE__ */ react.default.createElement("div", require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, p), attributes), listeners), {}, { style }), renderItem === null || renderItem === void 0 ? void 0 : renderItem(item, index));
	});
};
//#endregion
exports.default = SortableList;
