@bigbinary/neetoui 5.2.2 → 5.2.4

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
@@ -20172,7 +20172,7 @@ var Input$1 = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
20172
20172
  className: "neeto-ui-input__prefix"
20173
20173
  }, prefix), /*#__PURE__*/React__default.createElement("input", _extends$4({
20174
20174
  "aria-invalid": !!error,
20175
- "data-cy": "input-field",
20175
+ "data-cy": "".concat(hyphenize(label), "-input-field"),
20176
20176
  disabled: disabled,
20177
20177
  id: id,
20178
20178
  ref: ref,
@@ -27005,6 +27005,12 @@ var CustomValueContainer = function CustomValueContainer(_ref2) {
27005
27005
  style: "secondary"
27006
27006
  }), rest);
27007
27007
  };
27008
+ var CustomClearIndicator = function CustomClearIndicator(prop) {
27009
+ return /*#__PURE__*/React__default.createElement(components.ClearIndicator, prop, /*#__PURE__*/React__default.createElement(Close, {
27010
+ className: "cursor-pointer",
27011
+ size: 16
27012
+ }));
27013
+ };
27008
27014
  var EMAIL_REGEX = new RegExp("^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}$", "i");
27009
27015
  var UNSTRICT_EMAIL_REGEX = /(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/g;
27010
27016
  var EMAIL_SEPARATION_REGEX = /[^\s,]+/g;
@@ -27020,10 +27026,10 @@ var CUSTOM_STYLES = {
27020
27026
  };
27021
27027
  var CUSTOM_COMPONENTS = {
27022
27028
  DropdownIndicator: CustomDropdownIndicator,
27023
- ClearIndicator: null,
27024
27029
  Control: CustomControl,
27025
27030
  MultiValueRemove: MultiValueRemove$1,
27026
- ValueContainer: CustomValueContainer
27031
+ ValueContainer: CustomValueContainer,
27032
+ ClearIndicator: CustomClearIndicator
27027
27033
  };
27028
27034
 
27029
27035
  var formatEmailInputOptions = function formatEmailInputOptions(label) {