pge-front-common 14.1.40 → 14.1.41

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/lib/index.js CHANGED
@@ -8749,7 +8749,7 @@ var selectColourStyles$1 = function (isInvalid, isDarkMode, isMobile) { return (
8749
8749
  menuList: function (base) { return (__assign(__assign({}, base), { backgroundColor: isDarkMode ? "#4B4B4C" : "#fff", padding: "0.5rem 0", borderRadius: "8px" })); },
8750
8750
  }); };
8751
8751
  var BasicSelect = function (_a) {
8752
- var name = _a.name, optionsSelect = _a.optionsSelect, placeholder = _a.placeholder, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, label = _a.label, _c = _a.hasError, hasError = _c === void 0 ? false : _c, handleChange = _a.handleChange, isRequired = _a.isRequired, value = _a.value;
8752
+ var name = _a.name, optionsSelect = _a.optionsSelect, placeholder = _a.placeholder, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, label = _a.label, _c = _a.hasError, hasError = _c === void 0 ? false : _c, handleChange = _a.handleChange, isRequired = _a.isRequired, value = _a.value, _d = _a.isClearable, isClearable = _d === void 0 ? true : _d;
8753
8753
  var isDarkMode = useDarkMode();
8754
8754
  useIsMobile();
8755
8755
  var CustomDropdownIndicator = function () { return (React__namespace.createElement("div", { className: styles$l.contentIcon },
@@ -8759,7 +8759,7 @@ var BasicSelect = function (_a) {
8759
8759
  label,
8760
8760
  isRequired ? React__namespace.createElement("span", { className: styles$l.errorRequired }, "*") : null)),
8761
8761
  React__namespace.createElement("div", { className: styles$l.selectElement },
8762
- React__namespace.createElement(StateManagedSelect$1, { inputId: name, isMulti: false, isDisabled: isDisabled, options: optionsSelect, value: optionsSelect.find(function (opt) { return opt.value === value; }) || value, onChange: handleChange, placeholder: placeholder, styles: selectColourStyles$1(hasError, isDarkMode), isSearchable: true, isClearable: true, noOptionsMessage: function () { return "Nenhuma opção disponível"; }, components: {
8762
+ React__namespace.createElement(StateManagedSelect$1, { inputId: name, isMulti: false, isDisabled: isDisabled, options: optionsSelect, value: optionsSelect.find(function (opt) { return opt.value === value; }) || value, onChange: handleChange, placeholder: placeholder, styles: selectColourStyles$1(hasError, isDarkMode), isSearchable: true, isClearable: isClearable, noOptionsMessage: function () { return "Nenhuma opção disponível"; }, components: {
8763
8763
  DropdownIndicator: CustomDropdownIndicator,
8764
8764
  ClearIndicator: CustomClearIndicator,
8765
8765
  }, "aria-label": typeof label === "string"