@segmentify/ui 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,14 @@
1
+ import { type Control, type FieldValues, type Path } from 'react-hook-form';
1
2
  import type { ClassValue } from 'clsx';
2
- type Props = {
3
+ type Props<TFieldValues extends FieldValues = FieldValues> = {
4
+ name: Path<TFieldValues>;
3
5
  label: string;
6
+ placeholder?: string;
7
+ control?: Control<TFieldValues>;
4
8
  containerClassName?: ClassValue;
5
- name: string;
6
- placeholder: string;
7
9
  description?: string;
8
10
  tooltipContent?: string;
9
11
  hasRequiredIndicator?: boolean;
10
12
  };
11
- export declare const FormInput: ({ label, containerClassName, name, description, placeholder, tooltipContent, hasRequiredIndicator, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const FormInput: <TFieldValues extends FieldValues>({ label, containerClassName, name, description, placeholder, tooltipContent, hasRequiredIndicator, control, ...props }: Props<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
12
14
  export {};