@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/index.js
CHANGED
|
@@ -21113,11 +21113,15 @@ var Input$3 = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
|
|
|
21113
21113
|
onChange(e);
|
|
21114
21114
|
};
|
|
21115
21115
|
var handleChange = rejectCharsRegex ? handleRegexChange : onChange;
|
|
21116
|
+
var handleTrimmedChangeOnBlur = function handleTrimmedChangeOnBlur(e) {
|
|
21117
|
+
if (disableTrimOnBlur || typeof value !== "string") return;
|
|
21118
|
+
var trimmedValue = value.trim();
|
|
21119
|
+
if (value === trimmedValue) return;
|
|
21120
|
+
e.target.value = trimmedValue;
|
|
21121
|
+
handleChange(e);
|
|
21122
|
+
};
|
|
21116
21123
|
var handleOnBlur = function handleOnBlur(e) {
|
|
21117
|
-
|
|
21118
|
-
e.target.value = value.trim();
|
|
21119
|
-
handleChange(e);
|
|
21120
|
-
}
|
|
21124
|
+
handleTrimmedChangeOnBlur(e);
|
|
21121
21125
|
onBlur === null || onBlur === void 0 || onBlur(e);
|
|
21122
21126
|
};
|
|
21123
21127
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -28865,9 +28869,10 @@ var STRATEGIES = {
|
|
|
28865
28869
|
var Control = function Control(_ref) {
|
|
28866
28870
|
var children = _ref.children,
|
|
28867
28871
|
props = _objectWithoutProperties$1(_ref, _excluded$d);
|
|
28868
|
-
var selectProps = props.selectProps
|
|
28869
|
-
|
|
28870
|
-
|
|
28872
|
+
var selectProps = props.selectProps,
|
|
28873
|
+
hasValue = props.hasValue;
|
|
28874
|
+
return /*#__PURE__*/React__default.createElement(components.Control, props, hasValue && selectProps.isMulti && /*#__PURE__*/React__default.createElement("span", {
|
|
28875
|
+
className: "neeto-ui-btn neeto-ui-btn--style-secondary neeto-ui-react-select__add-btn"
|
|
28871
28876
|
}, selectProps.addButtonLabel || "Add"), " ", children);
|
|
28872
28877
|
};
|
|
28873
28878
|
var DropdownIndicator = function DropdownIndicator(props) {
|