@apexcura/ui-components 0.0.13-Beta14 → 0.0.13-Beta17
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.
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -243,10 +243,10 @@ var CheckboxElement = (props) => {
|
|
|
243
243
|
const [checkedList, setCheckedList] = (0, import_react7.useState)(defaultCheckedList);
|
|
244
244
|
const checkAll = props.options && props.options.length === checkedList.length;
|
|
245
245
|
const handleChange = (list) => {
|
|
246
|
-
const toggledOption = list.find((option) => !checkedList.includes(option)) || checkedList.find((option) => !list.includes(option));
|
|
247
246
|
setCheckedList(list);
|
|
248
247
|
if (props.onChange) {
|
|
249
|
-
props.
|
|
248
|
+
const selectedOptions = props.options && props.options.filter((option) => list.includes(option.value));
|
|
249
|
+
props.onChange(selectedOptions);
|
|
250
250
|
}
|
|
251
251
|
};
|
|
252
252
|
const onHandleAllChanges = (e) => {
|
|
@@ -806,7 +806,7 @@ var import_antd17 = require("antd");
|
|
|
806
806
|
var uploadProps = {
|
|
807
807
|
name: "file",
|
|
808
808
|
multiple: true,
|
|
809
|
-
action:
|
|
809
|
+
// action: 'https://660d2bd96ddfa2943b33731c.mockapi.io/api/upload',
|
|
810
810
|
headers: {
|
|
811
811
|
authorization: "authorization-text"
|
|
812
812
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -190,10 +190,10 @@ var CheckboxElement = (props) => {
|
|
|
190
190
|
const [checkedList, setCheckedList] = useState3(defaultCheckedList);
|
|
191
191
|
const checkAll = props.options && props.options.length === checkedList.length;
|
|
192
192
|
const handleChange = (list) => {
|
|
193
|
-
const toggledOption = list.find((option) => !checkedList.includes(option)) || checkedList.find((option) => !list.includes(option));
|
|
194
193
|
setCheckedList(list);
|
|
195
194
|
if (props.onChange) {
|
|
196
|
-
props.
|
|
195
|
+
const selectedOptions = props.options && props.options.filter((option) => list.includes(option.value));
|
|
196
|
+
props.onChange(selectedOptions);
|
|
197
197
|
}
|
|
198
198
|
};
|
|
199
199
|
const onHandleAllChanges = (e) => {
|
|
@@ -753,7 +753,7 @@ import { Button as Button4, message, Upload } from "antd";
|
|
|
753
753
|
var uploadProps = {
|
|
754
754
|
name: "file",
|
|
755
755
|
multiple: true,
|
|
756
|
-
action:
|
|
756
|
+
// action: 'https://660d2bd96ddfa2943b33731c.mockapi.io/api/upload',
|
|
757
757
|
headers: {
|
|
758
758
|
authorization: "authorization-text"
|
|
759
759
|
},
|