@konstructio/ui
Version:
A set of reusable and customizable React components built for konstruct.io
41 lines (40 loc) • 1.23 kB
JavaScript
import { jsx as o, jsxs as i } from "react/jsx-runtime";
import { R as s, D as p } from "../../index-DLYwlPRZ.js";
import { V as l } from "../../index--EmNlyHx.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
};