@helpdice/ui 1.3.4 → 1.3.6

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.
@@ -1,10 +1,10 @@
1
- import React from 'react';
1
+ import React, { InputHTMLAttributes } from 'react';
2
2
  import { NormalTypes } from '../utils/prop-types';
3
3
  export type CheckboxTypes = NormalTypes;
4
4
  export interface CheckboxEventTarget {
5
5
  checked: boolean;
6
6
  }
7
- export interface CheckboxEvent {
7
+ export interface CheckboxEvent extends InputHTMLAttributes<any> {
8
8
  target: CheckboxEventTarget;
9
9
  stopPropagation: () => void;
10
10
  preventDefault: () => void;
@@ -1323,9 +1323,9 @@ var CheckboxComponent = function CheckboxComponent(_ref) {
1323
1323
  var changeHandle = React.useCallback(function (ev) {
1324
1324
  if (isDisabled) return;
1325
1325
  var selfEvent = {
1326
- target: {
1326
+ target: _objectSpread2(_objectSpread2({}, ev.target), {}, {
1327
1327
  checked: !selfChecked
1328
- },
1328
+ }),
1329
1329
  stopPropagation: ev.stopPropagation,
1330
1330
  preventDefault: ev.preventDefault,
1331
1331
  nativeEvent: ev