diff --git a/packages/ui/package.json b/packages/ui/package.json index 258cc56..351301d 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@continha/ui", - "version": "1.14.17", + "version": "1.14.18", "private": false, "main": "dist/index.js", "module": "dist/esm/index.js", diff --git a/packages/ui/src/components/ui/command.tsx b/packages/ui/src/components/ui/command.tsx index fc10b5a..7cd6d9e 100644 --- a/packages/ui/src/components/ui/command.tsx +++ b/packages/ui/src/components/ui/command.tsx @@ -25,13 +25,8 @@ Root.displayName = CommandPrimitive.displayName; const Input = React.forwardRef< React.ElementRef, - Omit< - React.ComponentPropsWithoutRef, - "onSearch" - > & { - onSearch?: (newvalue: string) => void; - } ->(({ onSearch, className, ...props }, ref) => ( + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => (
{ - props.onValueChange?.(search); - onSearch?.(search); - }} {...props} />
diff --git a/packages/ui/src/components/ui/form/selector/content.tsx b/packages/ui/src/components/ui/form/selector/content.tsx index b6d032d..e43efe7 100644 --- a/packages/ui/src/components/ui/form/selector/content.tsx +++ b/packages/ui/src/components/ui/form/selector/content.tsx @@ -1,8 +1,10 @@ "use client"; +import { Search } from "lucide-react"; import { cn } from "../../../../lib/utils"; import { Command } from "../../command"; import { PageLoader } from "../../page-loader"; import { Popover } from "../../popover"; +import { Input } from "../input"; import type { SelectorCommonProps, SelectorMessages, TOption } from "./model"; type SelectorContentProps