@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.js
CHANGED
|
@@ -17797,11 +17797,15 @@ var Input$2 = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
|
|
|
17797
17797
|
onChange(e);
|
|
17798
17798
|
};
|
|
17799
17799
|
var handleChange = rejectCharsRegex ? handleRegexChange : onChange;
|
|
17800
|
+
var handleTrimmedChangeOnBlur = function handleTrimmedChangeOnBlur(e) {
|
|
17801
|
+
if (disableTrimOnBlur || typeof value !== "string") return;
|
|
17802
|
+
var trimmedValue = value.trim();
|
|
17803
|
+
if (value === trimmedValue) return;
|
|
17804
|
+
e.target.value = trimmedValue;
|
|
17805
|
+
handleChange(e);
|
|
17806
|
+
};
|
|
17800
17807
|
var handleOnBlur = function handleOnBlur(e) {
|
|
17801
|
-
|
|
17802
|
-
e.target.value = value.trim();
|
|
17803
|
-
handleChange(e);
|
|
17804
|
-
}
|
|
17808
|
+
handleTrimmedChangeOnBlur(e);
|
|
17805
17809
|
onBlur === null || onBlur === void 0 || onBlur(e);
|
|
17806
17810
|
};
|
|
17807
17811
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -25211,9 +25215,10 @@ var STRATEGIES = {
|
|
|
25211
25215
|
var Control = function Control(_ref) {
|
|
25212
25216
|
var children = _ref.children,
|
|
25213
25217
|
props = _objectWithoutProperties$1(_ref, _excluded$9);
|
|
25214
|
-
var selectProps = props.selectProps
|
|
25215
|
-
|
|
25216
|
-
|
|
25218
|
+
var selectProps = props.selectProps,
|
|
25219
|
+
hasValue = props.hasValue;
|
|
25220
|
+
return /*#__PURE__*/React__default.createElement(components.Control, props, hasValue && selectProps.isMulti && /*#__PURE__*/React__default.createElement("span", {
|
|
25221
|
+
className: "neeto-ui-btn neeto-ui-btn--style-secondary neeto-ui-react-select__add-btn"
|
|
25217
25222
|
}, selectProps.addButtonLabel || "Add"), " ", children);
|
|
25218
25223
|
};
|
|
25219
25224
|
var DropdownIndicator = function DropdownIndicator(props) {
|