reactive-bulma 4.2.0 → 4.2.1

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.
@@ -161,7 +161,7 @@ export interface SelectOption {
161
161
  name: string;
162
162
  selected?: boolean;
163
163
  }
164
- export interface SelectProps extends ComposedElementProps, InteractiveProps, NamedInputProps {
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 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reactive-bulma",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "type": "module",
5
5
  "description": "A component library based on React, Bulma, Typescript and Vite",
6
6
  "keywords": [