UNPKG

@konstructio/ui

Version:

A set of reusable and customizable React components built for konstruct.io

41 lines (40 loc) 1.23 kB
import { jsx as o, jsxs as i } from "react/jsx-runtime"; import { R as s, D as p } from "../../index-Ds6U2x4Z.js"; import { V as l } from "../../index-DrWQH0QF.js"; import { cn as m } from "../../utils/index.js"; import { wrapperVariants as f } from "./Command.variants.js"; import { DialogContent as c } from "./components/DialogContent.js"; import { Command as h } from "./components/Command.js"; import { CommandGroup as b } from "./components/CommandGroup.js"; import { CommandItem as y } from "./components/CommandItem.js"; import { CommandSeparator as H } from "./components/CommandSeparator.js"; const j = ({ children: r, title: a, titleClassName: e, wrapperClassName: n, theme: t, ...d }) => /* @__PURE__ */ o(s, { ...d, children: /* @__PURE__ */ i( c, { className: "overflow-hidden p-0 border-0 !rounded-none", "data-theme": t, children: [ /* @__PURE__ */ o(p, { className: m("hidden", e), children: /* @__PURE__ */ o(l, { children: a }) }), /* @__PURE__ */ o( h, { className: m(f({ className: n })), children: r } ) ] } ) }); export { j as Command, b as CommandGroup, y as CommandItem, H as CommandSeparator };