@mw-kit/mw-ui 1.7.28 → 1.7.30

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.
@@ -14387,7 +14387,7 @@ var useSelect = function useSelect(props) {
14387
14387
 
14388
14388
  var selectedOption = getSelected(props.value, options);
14389
14389
  var inputContent = selectedOption ? getInputContent(props, selectedOption) : props.value;
14390
- return {
14390
+ var parsed = {
14391
14391
  parsedOptions: parsedOptions,
14392
14392
  options: [options, setOptions],
14393
14393
  inputContent: inputContent,
@@ -14404,11 +14404,13 @@ var useSelect = function useSelect(props) {
14404
14404
  options: options
14405
14405
  })
14406
14406
  }, children);
14407
- },
14408
- onClear: function onClear() {
14409
- return props.onClear('');
14410
14407
  }
14411
14408
  };
14409
+ var onClear = props.onClear;
14410
+ if (onClear) parsed.onClear = function () {
14411
+ return onClear('');
14412
+ };
14413
+ return parsed;
14412
14414
  };
14413
14415
 
14414
14416
  var Provider$1 = React__default.createContext({});
@@ -14526,9 +14528,9 @@ var Label$2 = function Label(props) {
14526
14528
  var _context$checked = context.checked,
14527
14529
  checked = _context$checked[0],
14528
14530
  setChecked = _context$checked[1];
14529
- var _props$option$data = props.option.data,
14530
- disabled = _props$option$data.disabled,
14531
- value = _props$option$data.value;
14531
+ var _props$option = props.option,
14532
+ disabled = _props$option.disabled,
14533
+ value = _props$option.value;
14532
14534
  var LabelComponent = props.label;
14533
14535
  return React__default.createElement(Checkbox, {
14534
14536
  type: 'checkbox',