arengibook 2.4.667 → 2.4.668

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -39948,16 +39948,17 @@ var MultiSelect = function MultiSelect(props) {
39948
39948
  var luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255;
39949
39949
  return luminance > 0.18 ? '#000000' : '#FFFFFF';
39950
39950
  };
39951
-
39952
- // const handleChange = (e) => {
39953
- // setSelectedOptions(e.value);
39954
- // if (onChange) onChange(e.value);
39955
- // };
39956
-
39957
39951
  var handleChange = function handleChange(e) {
39958
39952
  var ids = Array.isArray(e.value) ? e.value : [e.value];
39959
39953
  setSelectedOptions(ids);
39960
- if (onChange) onChange(ids);
39954
+ if (typeof onChange === 'function') {
39955
+ onChange(ids);
39956
+ return;
39957
+ }
39958
+ if (typeof onChange === 'string' && typeof window[onChange] === 'function') {
39959
+ window[onChange](ids);
39960
+ return;
39961
+ }
39961
39962
  };
39962
39963
  var selectedItemTemplate = function selectedItemTemplate(option) {
39963
39964
  if (isSelectMeta) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "arengibook",
3
3
  "private": false,
4
- "version": "2.4.667",
4
+ "version": "2.4.668",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "exports": {