UNPKG

koval-ui

Version:

React components collection with minimalistic design. Supports theming, layout, and input validation.

37 lines (36 loc) 869 B
"use client"; import { jsx as m } from "react/jsx-runtime"; import { forwardRef as l } from "react"; import o from "classnames"; import { ActionsTree as f } from "./ActionsTree.js"; import { Variants as i } from "./Variants.js"; import r from "./Actions.module.css.js"; const d = l( ({ children: A, className: t, actions: e = [], variant: s = i.primary, classNameAction: a, classNameRow: c, ...n }, p) => /* @__PURE__ */ m("div", { ...n, className: o(r.actions, t), ref: p, children: /* @__PURE__ */ m( f, { actions: e, classNameAction: o( { [r.primaryAction]: s === i.primary, [r.invertedAction]: s === i.inverted }, a ), classNameRow: o(r.actionRow, c) } ) }) ); d.displayName = "Actions"; export { d as Actions }; //# sourceMappingURL=Actions.js.map