demio-ui 1.0.30 → 1.0.31

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.
@@ -5,11 +5,16 @@ type Props = {
5
5
  id: string;
6
6
  defaultChecked?: boolean;
7
7
  checked?: boolean;
8
- onChange?: (checked: boolean) => void;
8
+ onChange?: (event: {
9
+ checked: boolean;
10
+ name: string;
11
+ value: string;
12
+ }) => void;
9
13
  name?: string;
14
+ value?: string;
10
15
  };
11
16
  /**
12
17
  * Checkbox component documentation.
13
18
  **/
14
- declare function Checkbox({ children, id, checked, onChange, disabled, defaultChecked, name, ...props }: Props): React.JSX.Element;
19
+ declare function Checkbox({ children, id, checked, onChange, disabled, defaultChecked, name, value, ...props }: Props): React.JSX.Element;
15
20
  export default Checkbox;
package/dist/types.d.ts CHANGED
@@ -166,13 +166,18 @@ type Props$2 = {
166
166
  id: string;
167
167
  defaultChecked?: boolean;
168
168
  checked?: boolean;
169
- onChange?: (checked: boolean) => void;
169
+ onChange?: (event: {
170
+ checked: boolean;
171
+ name: string;
172
+ value: string;
173
+ }) => void;
170
174
  name?: string;
175
+ value?: string;
171
176
  };
172
177
  /**
173
178
  * Checkbox component documentation.
174
179
  **/
175
- declare function Checkbox({ children, id, checked, onChange, disabled, defaultChecked, name, ...props }: Props$2): React__default.JSX.Element;
180
+ declare function Checkbox({ children, id, checked, onChange, disabled, defaultChecked, name, value, ...props }: Props$2): React__default.JSX.Element;
176
181
 
177
182
  type Props$1 = {
178
183
  items: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "demio-ui",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",