@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 +9 -3
- package/formik.cjs.js.map +1 -1
- package/formik.js +9 -3
- package/formik.js.map +1 -1
- package/index.cjs.js +9 -3
- package/index.cjs.js.map +1 -1
- package/index.js +9 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -20202,7 +20202,7 @@ var Input$1 = /*#__PURE__*/React$5.forwardRef(function (_ref, ref) {
|
|
|
20202
20202
|
className: "neeto-ui-input__prefix"
|
|
20203
20203
|
}, prefix), /*#__PURE__*/React__default["default"].createElement("input", _extends$4({
|
|
20204
20204
|
"aria-invalid": !!error,
|
|
20205
|
-
"data-cy": "input-field",
|
|
20205
|
+
"data-cy": "".concat(hyphenize(label), "-input-field"),
|
|
20206
20206
|
disabled: disabled,
|
|
20207
20207
|
id: id,
|
|
20208
20208
|
ref: ref,
|
|
@@ -27035,6 +27035,12 @@ var CustomValueContainer = function CustomValueContainer(_ref2) {
|
|
|
27035
27035
|
style: "secondary"
|
|
27036
27036
|
}), rest);
|
|
27037
27037
|
};
|
|
27038
|
+
var CustomClearIndicator = function CustomClearIndicator(prop) {
|
|
27039
|
+
return /*#__PURE__*/React__default["default"].createElement(components.ClearIndicator, prop, /*#__PURE__*/React__default["default"].createElement(neetoIcons.Close, {
|
|
27040
|
+
className: "cursor-pointer",
|
|
27041
|
+
size: 16
|
|
27042
|
+
}));
|
|
27043
|
+
};
|
|
27038
27044
|
var EMAIL_REGEX = new RegExp("^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}$", "i");
|
|
27039
27045
|
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;
|
|
27040
27046
|
var EMAIL_SEPARATION_REGEX = /[^\s,]+/g;
|
|
@@ -27050,10 +27056,10 @@ var CUSTOM_STYLES = {
|
|
|
27050
27056
|
};
|
|
27051
27057
|
var CUSTOM_COMPONENTS = {
|
|
27052
27058
|
DropdownIndicator: CustomDropdownIndicator,
|
|
27053
|
-
ClearIndicator: null,
|
|
27054
27059
|
Control: CustomControl,
|
|
27055
27060
|
MultiValueRemove: MultiValueRemove$1,
|
|
27056
|
-
ValueContainer: CustomValueContainer
|
|
27061
|
+
ValueContainer: CustomValueContainer,
|
|
27062
|
+
ClearIndicator: CustomClearIndicator
|
|
27057
27063
|
};
|
|
27058
27064
|
|
|
27059
27065
|
var formatEmailInputOptions = function formatEmailInputOptions(label) {
|