@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/formik.cjs.js CHANGED
@@ -17997,7 +17997,7 @@ var Input$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
17997
17997
  className: "neeto-ui-input__prefix"
17998
17998
  }, prefix), /*#__PURE__*/React__default["default"].createElement("input", _extends$2({
17999
17999
  "aria-invalid": !!error,
18000
- "data-cy": "input-field",
18000
+ "data-cy": "".concat(hyphenize(label), "-input-field"),
18001
18001
  disabled: disabled,
18002
18002
  id: id,
18003
18003
  ref: ref,
@@ -24828,6 +24828,12 @@ var CustomValueContainer = function CustomValueContainer(_ref2) {
24828
24828
  style: "secondary"
24829
24829
  }), rest);
24830
24830
  };
24831
+ var CustomClearIndicator = function CustomClearIndicator(prop) {
24832
+ return /*#__PURE__*/React__default["default"].createElement(components.ClearIndicator, prop, /*#__PURE__*/React__default["default"].createElement(neetoIcons.Close, {
24833
+ className: "cursor-pointer",
24834
+ size: 16
24835
+ }));
24836
+ };
24831
24837
  var EMAIL_REGEX = new RegExp("^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}$", "i");
24832
24838
  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;
24833
24839
  var EMAIL_SEPARATION_REGEX = /[^\s,]+/g;
@@ -24843,10 +24849,10 @@ var CUSTOM_STYLES = {
24843
24849
  };
24844
24850
  var CUSTOM_COMPONENTS = {
24845
24851
  DropdownIndicator: CustomDropdownIndicator,
24846
- ClearIndicator: null,
24847
24852
  Control: CustomControl,
24848
24853
  MultiValueRemove: MultiValueRemove$1,
24849
- ValueContainer: CustomValueContainer
24854
+ ValueContainer: CustomValueContainer,
24855
+ ClearIndicator: CustomClearIndicator
24850
24856
  };
24851
24857
 
24852
24858
  var formatEmailInputOptions = function formatEmailInputOptions(label) {