@vacano/ui 1.4.3 → 1.4.5

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.
package/dist/index.d.ts CHANGED
@@ -8,6 +8,42 @@ import { ReactElement } from 'react';
8
8
  import { ReactNode } from 'react';
9
9
  import { ReactPortal } from 'react';
10
10
  import { Ref } from 'react';
11
+ import { TextareaHTMLAttributes } from 'react';
12
+
13
+ export declare const Autocomplete: ({ className, classnames, disabled, fullWidth, label, ref, size, variant, value, onChange, onSearch, debounceMs, minChars, noResultsMessage, ...rest }: AutocompleteProps) => JSX.Element;
14
+
15
+ export declare type AutocompleteClassNames = {
16
+ input?: string;
17
+ label?: string;
18
+ dropdown?: string;
19
+ item?: string;
20
+ };
21
+
22
+ export declare type AutocompleteProps = VacanoComponentProps<HTMLInputElement, AutocompleteClassNames> & Omit<InputHTMLAttributes<HTMLInputElement>, 'className' | 'size' | 'onChange' | 'value'> & {
23
+ value?: AutocompleteValue;
24
+ onChange?: (value: AutocompleteValue) => void;
25
+ onSearch: (query: string) => Promise<AutocompleteSuggestion[]>;
26
+ debounceMs?: number;
27
+ minChars?: number;
28
+ fullWidth?: boolean;
29
+ label?: string;
30
+ size?: VacanoComponentSize;
31
+ variant?: AutocompleteVariant;
32
+ noResultsMessage?: string;
33
+ };
34
+
35
+ export declare type AutocompleteSuggestion = {
36
+ id: string;
37
+ value: string;
38
+ image_url: string | null;
39
+ };
40
+
41
+ export declare type AutocompleteValue = {
42
+ value: string;
43
+ image_url: string | null;
44
+ };
45
+
46
+ export declare type AutocompleteVariant = 'normal' | 'error';
11
47
 
12
48
  export declare const Button: ({ children, className, classnames, disabled, fullWidth, icon, loading, onClick, ref, keyBindings, size, type, variant, ...rest }: ButtonProps) => JSX.Element;
13
49
 
@@ -668,6 +704,21 @@ export declare type TagsProps = VacanoComponentProps<HTMLDivElement, TagsClassNa
668
704
 
669
705
  export declare type TagsVariant = 'normal' | 'error';
670
706
 
707
+ export declare const Textarea: ({ className, classnames, disabled, fullWidth, label, ref, variant, rows, ...rest }: TextareaProps) => JSX.Element;
708
+
709
+ export declare type TextareaClassNames = {
710
+ textarea?: string;
711
+ label?: string;
712
+ };
713
+
714
+ export declare type TextareaProps = VacanoComponentProps<HTMLTextAreaElement, TextareaClassNames> & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'className'> & {
715
+ fullWidth?: boolean;
716
+ label?: string;
717
+ variant?: TextareaVariant;
718
+ };
719
+
720
+ export declare type TextareaVariant = 'normal' | 'error';
721
+
671
722
  export declare type Toast = {
672
723
  id: string;
673
724
  message: string;