@useblu/ocean-react 1.73.0 → 1.75.0

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/index.js CHANGED
@@ -48227,7 +48227,7 @@ var Options = function (_a) {
48227
48227
  };
48228
48228
 
48229
48229
  var Chips = function (_a) {
48230
- var label = _a.label, icon = _a.icon, disabled = _a.disabled, defaultValue = _a.defaultValue, _b = _a.options, options = _b === void 0 ? [] : _b, _c = _a.multiChoice, multiChoice = _c === void 0 ? false : _c, _d = _a.clearLabel, clearLabel = _d === void 0 ? 'Limpar' : _d, _e = _a.filterLabel, filterLabel = _e === void 0 ? 'Filtrar' : _e, initialCounter = _a.initialCounter, actived = _a.actived, selectedValue = _a.selectedValue, onClick = _a.onClick, onChange = _a.onChange, onClose = _a.onClose;
48230
+ var label = _a.label, icon = _a.icon, disabled = _a.disabled, defaultValue = _a.defaultValue, _b = _a.options, options = _b === void 0 ? [] : _b, _c = _a.multiChoice, multiChoice = _c === void 0 ? false : _c, _d = _a.clearLabel, clearLabel = _d === void 0 ? 'Limpar' : _d, _e = _a.filterLabel, filterLabel = _e === void 0 ? 'Filtrar' : _e, initialCounter = _a.initialCounter, actived = _a.actived, selectedValue = _a.selectedValue, onClick = _a.onClick, onChange = _a.onChange, onClose = _a.onClose, onConfirm = _a.onConfirm, onClean = _a.onClean;
48231
48231
  var wrapperRef = e.useRef(null);
48232
48232
  var _f = e__default["default"].useState(0), counter = _f[0], setCounter = _f[1];
48233
48233
  var _g = e__default["default"].useState(false), selectionIsOpen = _g[0], setSelectionIsOpen = _g[1];
@@ -48298,13 +48298,17 @@ var Chips = function (_a) {
48298
48298
  setSelectedOptions([]);
48299
48299
  setCounter(0);
48300
48300
  setSelectionIsOpen(false);
48301
- if (onClose)
48302
- onClose();
48303
48301
  if (onChange)
48304
48302
  onChange([]);
48303
+ if (onClean)
48304
+ onClean();
48305
+ if (onClose)
48306
+ onClose();
48305
48307
  };
48306
48308
  var filterOptions = function () {
48307
48309
  setSelectionIsOpen(false);
48310
+ if (onConfirm)
48311
+ onConfirm(selectedOptions);
48308
48312
  if (onClose)
48309
48313
  onClose();
48310
48314
  };