import { jsx as c } from "react/jsx-runtime";
import { t as u } from "../../classix-DG18itHa.js";
import { w as r } from "../../helpers-D56OHkFI.js";
import '../../assets/index38.css';const w = "_horizontal_1w5i6_1", f = "_list_1w5i6_12", p = "_columns_1w5i6_53", t = {
  horizontal: w,
  list: f,
  columns: p
};
function y({
  children: o,
  className: m,
  columns: s = 1,
  horizontal: e,
  ordered: h,
  style: _,
  ...l
}) {
  const i = Number.isFinite(s) ? Math.max(1, Math.floor(s)) : 1, n = u(m, t.list, i > 1 && t.columns, e && t.horizontal), a = {
    ..._,
    "--list-columns": i
  };
  return h ? /* @__PURE__ */ c("ol", { className: n, style: a, ...l, "data-component": "list", children: r(o) }) : /* @__PURE__ */ c("ul", { className: n, style: a, ...l, "data-component": "list", children: r(o) });
}
export {
  y as List
};
//# sourceMappingURL=index.js.map
