reactive-bulma 4.2.0 → 4.2.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -161,7 +161,7 @@ export interface SelectOption {
|
|
161
161
|
name: string;
|
162
162
|
selected?: boolean;
|
163
163
|
}
|
164
|
-
export interface SelectProps extends ComposedElementProps,
|
164
|
+
export interface SelectProps extends ComposedElementProps, InteractiveOnChangeProps, NamedInputProps {
|
165
165
|
/** `Attribute` Indicates the options contained on the select */
|
166
166
|
options?: SelectOption[];
|
167
167
|
/** `Attribute` Indicates how many options will be shown at first glance (before looking for the whole list */
|
@@ -18,21 +18,21 @@ export interface ComposedElementProps extends ElementProps, ContainerProps {
|
|
18
18
|
}
|
19
19
|
export interface ClickeableProps {
|
20
20
|
/** `Function` Reffers to each time the user click the element. Alone does not nothing, but can be reused for other components */
|
21
|
-
onClick?: () => void;
|
21
|
+
onClick?: (event: React.MouseEvent) => void;
|
22
22
|
}
|
23
23
|
export interface ChangeableProps {
|
24
24
|
/** `Function` Reffers to each time the user press a key. Alone does not nothing, but can be reused for other components */
|
25
|
-
onChange?: () => void;
|
25
|
+
onChange?: (event: React.ChangeEvent) => void;
|
26
26
|
}
|
27
27
|
export interface BlureableProps {
|
28
28
|
/** `Function` Reffers to each time the user focus out the element. Alone does not nothing, but can be reused for other components */
|
29
|
-
onBlur?: () => void;
|
29
|
+
onBlur?: (event: React.FocusEvent) => void;
|
30
30
|
}
|
31
31
|
export interface InteractiveProps extends ClickeableProps, ChangeableProps, BlureableProps {
|
32
32
|
}
|
33
33
|
export interface InteractiveOnChangeProps extends Omit<InteractiveProps, 'onChange'> {
|
34
34
|
/** `Function` Reffers to each time the user click the element (I recommend using this one rather than the `onClick` method). Alone does not nothing, but can be reused for other components */
|
35
|
-
onChange?: () => void;
|
35
|
+
onChange?: (event: React.ChangeEvent | React.FormEvent) => void;
|
36
36
|
}
|
37
37
|
export interface NamedInputProps {
|
38
38
|
/** `Attribute` Used to reference the input in a form */
|