@bigbinary/neetoui 5.2.39 → 5.2.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/formik.cjs.js +12 -7
- package/formik.cjs.js.map +1 -1
- package/formik.js +12 -7
- package/formik.js.map +1 -1
- package/index.cjs.js +12 -7
- package/index.cjs.js.map +1 -1
- package/index.js +12 -7
- package/index.js.map +1 -1
- package/package.json +1 -1
package/formik.cjs.js
CHANGED
|
@@ -17827,11 +17827,15 @@ var Input$2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
17827
17827
|
onChange(e);
|
|
17828
17828
|
};
|
|
17829
17829
|
var handleChange = rejectCharsRegex ? handleRegexChange : onChange;
|
|
17830
|
+
var handleTrimmedChangeOnBlur = function handleTrimmedChangeOnBlur(e) {
|
|
17831
|
+
if (disableTrimOnBlur || typeof value !== "string") return;
|
|
17832
|
+
var trimmedValue = value.trim();
|
|
17833
|
+
if (value === trimmedValue) return;
|
|
17834
|
+
e.target.value = trimmedValue;
|
|
17835
|
+
handleChange(e);
|
|
17836
|
+
};
|
|
17830
17837
|
var handleOnBlur = function handleOnBlur(e) {
|
|
17831
|
-
|
|
17832
|
-
e.target.value = value.trim();
|
|
17833
|
-
handleChange(e);
|
|
17834
|
-
}
|
|
17838
|
+
handleTrimmedChangeOnBlur(e);
|
|
17835
17839
|
onBlur === null || onBlur === void 0 || onBlur(e);
|
|
17836
17840
|
};
|
|
17837
17841
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -25241,9 +25245,10 @@ var STRATEGIES = {
|
|
|
25241
25245
|
var Control = function Control(_ref) {
|
|
25242
25246
|
var children = _ref.children,
|
|
25243
25247
|
props = _objectWithoutProperties$1(_ref, _excluded$9);
|
|
25244
|
-
var selectProps = props.selectProps
|
|
25245
|
-
|
|
25246
|
-
|
|
25248
|
+
var selectProps = props.selectProps,
|
|
25249
|
+
hasValue = props.hasValue;
|
|
25250
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Control, props, hasValue && selectProps.isMulti && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
25251
|
+
className: "neeto-ui-btn neeto-ui-btn--style-secondary neeto-ui-react-select__add-btn"
|
|
25247
25252
|
}, selectProps.addButtonLabel || "Add"), " ", children);
|
|
25248
25253
|
};
|
|
25249
25254
|
var DropdownIndicator = function DropdownIndicator(props) {
|