@hoosei/voxweave-react
Version:
A customizable and interactive voice UI component for React applications
3 lines (2 loc) • 2.77 kB
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),m=require("./index87.js"),n=require("./index8.js"),t=require("react/jsx-runtime"),f=require("./index46.js");function y(o){if(o&&o.__esModule)return o;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const a in o)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(o,a);Object.defineProperty(e,a,r.get?r:{enumerable:!0,get:()=>o[a]})}}return e.default=o,Object.freeze(e)}const d=y(u),x=d.forwardRef(({className:o,...e},a)=>t.jsx(m.Command,{ref:a,className:n.cn("vox-flex vox-h-full vox-w-full vox-flex-col vox-overflow-hidden vox-rounded-md vox-bg-white vox-text-popover-foreground",o),...e}));x.displayName=m.Command.displayName;const s=d.forwardRef(({className:o,...e},a)=>t.jsxs("div",{className:"vox-flex vox-items-center vox-border-b vox-px-3","cmdk-input-wrapper":"",children:[t.jsx(f.default,{className:"vox-mr-2 vox-h-4 vox-w-4 vox-shrink-0 vox-opacity-50"}),t.jsx(m.Command.Input,{ref:a,className:n.cn("vox-flex vox-h-11 vox-w-full vox-rounded-md vox-bg-white vox-py-3 vox-text-sm vox-outline-none placeholder:vox-text-muted-foreground disabled:vox-cursor-not-allowed disabled:vox-opacity-50",o),...e})]}));s.displayName=m.Command.Input.displayName;const l=d.forwardRef(({className:o,...e},a)=>t.jsx(m.Command.List,{ref:a,className:n.cn("vox-max-h-[300px] vox-overflow-y-auto vox-overflow-x-hidden",o),...e}));l.displayName=m.Command.List.displayName;const v=d.forwardRef((o,e)=>t.jsx(m.Command.Empty,{ref:e,className:"vox-py-6 vox-text-center vox-text-sm",...o}));v.displayName=m.Command.Empty.displayName;const c=d.forwardRef(({className:o,...e},a)=>t.jsx(m.Command.Group,{ref:a,className:n.cn("vox-overflow-hidden vox-p-1 vox-text-foreground [&_[cmdk-group-heading]]:vox-px-2 [&_[cmdk-group-heading]]:vox-py-1.5 [&_[cmdk-group-heading]]:vox-text-xs [&_[cmdk-group-heading]]:vox-font-medium [&_[cmdk-group-heading]]:vox-text-muted-foreground",o),...e}));c.displayName=m.Command.Group.displayName;const i=d.forwardRef(({className:o,...e},a)=>t.jsx(m.Command.Separator,{ref:a,className:n.cn("vox--mx-1 vox-h-px vox-bg-border",o),...e}));i.displayName=m.Command.Separator.displayName;const p=d.forwardRef(({className:o,...e},a)=>t.jsx(m.Command.Item,{ref:a,className:n.cn("vox-relative vox-flex vox-cursor-default vox-select-none vox-items-center vox-rounded-sm vox-px-2 vox-py-1.5 vox-text-sm vox-outline-none aria-selected:vox-bg-accent aria-selected:vox-text-accent-foreground",o),...e}));p.displayName=m.Command.Item.displayName;exports.Command=x;exports.CommandEmpty=v;exports.CommandGroup=c;exports.CommandInput=s;exports.CommandItem=p;exports.CommandList=l;exports.CommandSeparator=i;
//# sourceMappingURL=index56.js.map