@conatel-sa/react-ui 0.2.4 → 0.2.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/cards.umd.js CHANGED
@@ -33,6 +33,7 @@ var ReactLibraryCards = (() => {
33
33
  var {
34
34
  useContext,
35
35
  useEffect,
36
+ useLayoutEffect,
36
37
  useMemo,
37
38
  useState,
38
39
  useRef,
package/dist/forms.d.ts CHANGED
@@ -34,10 +34,31 @@ export type PasswordInputProps = {
34
34
  className?: string;
35
35
  minLength?: number;
36
36
  'data-testid'?: string;
37
+ leftIcon?: string;
37
38
  };
38
39
 
39
40
  export declare function PasswordInput(props: PasswordInputProps): JSX.Element;
40
41
 
42
+ export type EmailInputProps = {
43
+ value: string;
44
+ onChange: (next: string) => void;
45
+ placeholder?: string;
46
+ label?: string;
47
+ hint?: string;
48
+ error?: string;
49
+ disabled?: boolean;
50
+ required?: boolean;
51
+ ariaLabel?: string;
52
+ id?: string;
53
+ leftIcon?: string;
54
+ className?: string;
55
+ inputClassName?: string;
56
+ autoComplete?: string;
57
+ 'data-testid'?: string;
58
+ };
59
+
60
+ export declare function EmailInput(props: EmailInputProps): JSX.Element;
61
+
41
62
  export type MultiSelectOption = { value: string; label: string };
42
63
 
43
64
  export type MultiSelectDropdownProps = {
@@ -52,10 +73,32 @@ export type MultiSelectDropdownProps = {
52
73
  allowAllNone?: boolean;
53
74
  allLabel?: string;
54
75
  noneLabel?: string;
55
- maxLabels?: number;
56
- labelStyle?: import('react').CSSProperties;
57
76
  style?: import('react').CSSProperties;
58
77
  buttonClassName?: string;
78
+ className?: string;
59
79
  };
60
80
 
61
81
  export declare function MultiSelectDropdown(props: MultiSelectDropdownProps): JSX.Element;
82
+
83
+ export type SingleSelectOption = { value: string; label: string };
84
+
85
+ export type SingleSelectDropdownProps = {
86
+ options: SingleSelectOption[];
87
+ value?: string | null;
88
+ selected?: string | null;
89
+ onChange: (value: string | null) => void;
90
+ placeholder?: string;
91
+ emptyValue?: string;
92
+ allowEmptyOption?: boolean;
93
+ disabled?: boolean;
94
+ label?: string;
95
+ buttonClassName?: string;
96
+ style?: import('react').CSSProperties;
97
+ dataTestId?: string;
98
+ title?: string;
99
+ ariaLabel?: string;
100
+ buttonStyle?: import('react').CSSProperties;
101
+ className?: string;
102
+ };
103
+
104
+ export declare function SingleSelectDropdown(props: SingleSelectDropdownProps): JSX.Element;