funda-ui 1.0.577 → 1.0.578
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.
|
@@ -15,7 +15,7 @@ declare type MultipleCheckboxesProps = {
|
|
|
15
15
|
id?: string;
|
|
16
16
|
style?: React.CSSProperties;
|
|
17
17
|
[key: `data-${string}`]: string | undefined;
|
|
18
|
-
onChange?: (data: any) => void;
|
|
18
|
+
onChange?: (e: any, data: any) => void;
|
|
19
19
|
};
|
|
20
20
|
declare const MultipleCheckboxes: React.ForwardRefExoticComponent<MultipleCheckboxesProps & React.RefAttributes<unknown>>;
|
|
21
21
|
export default MultipleCheckboxes;
|
|
@@ -647,7 +647,7 @@ var MultipleCheckboxes = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forw
|
|
|
647
647
|
});
|
|
648
648
|
if (index !== -1) newData.splice(index, 1);
|
|
649
649
|
var _res = val ? Array.from(new Set([e.target.value].concat(_toConsumableArray(newData)))) : newData;
|
|
650
|
-
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_res);
|
|
650
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(e, _res);
|
|
651
651
|
return _res;
|
|
652
652
|
});
|
|
653
653
|
},
|
|
@@ -15,7 +15,7 @@ declare type MultipleCheckboxesProps = {
|
|
|
15
15
|
id?: string;
|
|
16
16
|
style?: React.CSSProperties;
|
|
17
17
|
[key: `data-${string}`]: string | undefined;
|
|
18
|
-
onChange?: (data: any) => void;
|
|
18
|
+
onChange?: (e: any, data: any) => void;
|
|
19
19
|
};
|
|
20
20
|
declare const MultipleCheckboxes: React.ForwardRefExoticComponent<MultipleCheckboxesProps & React.RefAttributes<unknown>>;
|
|
21
21
|
export default MultipleCheckboxes;
|
|
@@ -647,7 +647,7 @@ var MultipleCheckboxes = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forw
|
|
|
647
647
|
});
|
|
648
648
|
if (index !== -1) newData.splice(index, 1);
|
|
649
649
|
var _res = val ? Array.from(new Set([e.target.value].concat(_toConsumableArray(newData)))) : newData;
|
|
650
|
-
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_res);
|
|
650
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(e, _res);
|
|
651
651
|
return _res;
|
|
652
652
|
});
|
|
653
653
|
},
|
|
@@ -21,7 +21,7 @@ type MultipleCheckboxesProps = {
|
|
|
21
21
|
id?: string;
|
|
22
22
|
style?: React.CSSProperties;
|
|
23
23
|
[key: `data-${string}`]: string | undefined;
|
|
24
|
-
onChange?: (data: any) => void;
|
|
24
|
+
onChange?: (e: any, data: any) => void;
|
|
25
25
|
|
|
26
26
|
};
|
|
27
27
|
|
|
@@ -151,7 +151,7 @@ const MultipleCheckboxes = forwardRef((props: MultipleCheckboxesProps, ref: any)
|
|
|
151
151
|
|
|
152
152
|
const _res = (val) ? Array.from(new Set([e.target.value, ...newData])) : newData;
|
|
153
153
|
|
|
154
|
-
onChange?.(_res);
|
|
154
|
+
onChange?.(e, _res);
|
|
155
155
|
|
|
156
156
|
return _res;
|
|
157
157
|
});
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "UIUX Lab",
|
|
3
3
|
"email": "uiuxlab@gmail.com",
|
|
4
4
|
"name": "funda-ui",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.578",
|
|
6
6
|
"description": "React components using pure Bootstrap 5+ which does not contain any external style and script libraries.",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|