UNPKG

@konstructio/ui

Version:

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

33 lines (32 loc) 1.14 kB
import { jsx as o, jsxs as i } from "react/jsx-runtime"; import { R as t, D as s } from "../../index-DyKo5ZJT.js"; import { V as p } from "../../index-CbTU3cnP.js"; import { cn as r } from "../../utils/index.js"; import { wrapperVariants as l } from "./Command.variants.js"; import { DialogContent as f } from "./components/DialogContent.js"; import { Command as c } from "./components/Command.js"; import { CommandGroup as R } from "./components/CommandGroup.js"; import { CommandItem as v } from "./components/CommandItem.js"; import { CommandSeparator as G } from "./components/CommandSeparator.js"; const g = ({ children: m, title: a, titleClassName: e, wrapperClassName: n, ...d }) => /* @__PURE__ */ o(t, { ...d, children: /* @__PURE__ */ i(f, { className: "overflow-hidden p-0 border-0 !rounded-none", children: [ /* @__PURE__ */ o(s, { className: r("hidden", e), children: /* @__PURE__ */ o(p, { children: a }) }), /* @__PURE__ */ o( c, { className: r(l({ className: n })), children: m } ) ] }) }); export { g as Command, R as CommandGroup, v as CommandItem, G as CommandSeparator };