UNPKG

@uva-glass/component-library

Version:

React components UvA

28 lines (27 loc) 720 B
import { jsx as o } from "react/jsx-runtime"; import { Children as e } from "react"; import { SortableItem as b } from "./components/SortableItem.js"; import { S as n } from "../../SortableProvider-Ck_XnBVq.js"; const S = ({ children: t, ItemHandlePlacement: m = "left", scrollable: a, disabled: l, onSort: i }) => /* @__PURE__ */ o( n, { items: t, scrollable: a, onSort: i, children: t.map((s, r) => /* @__PURE__ */ o( b, { handlePlacement: m, disabled: l || e.count(t) <= 1, index: r, children: s }, `sortable-item-${r}` )) }, `sortable-with-children-${e.count(t)}` ); export { S as Sortable }; //# sourceMappingURL=Sortable.js.map