@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.cjs.js
CHANGED
|
@@ -21147,11 +21147,15 @@ var Input$3 = /*#__PURE__*/React$3.forwardRef(function (_ref, ref) {
|
|
|
21147
21147
|
onChange(e);
|
|
21148
21148
|
};
|
|
21149
21149
|
var handleChange = rejectCharsRegex ? handleRegexChange : onChange;
|
|
21150
|
+
var handleTrimmedChangeOnBlur = function handleTrimmedChangeOnBlur(e) {
|
|
21151
|
+
if (disableTrimOnBlur || typeof value !== "string") return;
|
|
21152
|
+
var trimmedValue = value.trim();
|
|
21153
|
+
if (value === trimmedValue) return;
|
|
21154
|
+
e.target.value = trimmedValue;
|
|
21155
|
+
handleChange(e);
|
|
21156
|
+
};
|
|
21150
21157
|
var handleOnBlur = function handleOnBlur(e) {
|
|
21151
|
-
|
|
21152
|
-
e.target.value = value.trim();
|
|
21153
|
-
handleChange(e);
|
|
21154
|
-
}
|
|
21158
|
+
handleTrimmedChangeOnBlur(e);
|
|
21155
21159
|
onBlur === null || onBlur === void 0 || onBlur(e);
|
|
21156
21160
|
};
|
|
21157
21161
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -28899,9 +28903,10 @@ var STRATEGIES = {
|
|
|
28899
28903
|
var Control = function Control(_ref) {
|
|
28900
28904
|
var children = _ref.children,
|
|
28901
28905
|
props = _objectWithoutProperties$1(_ref, _excluded$d);
|
|
28902
|
-
var selectProps = props.selectProps
|
|
28903
|
-
|
|
28904
|
-
|
|
28906
|
+
var selectProps = props.selectProps,
|
|
28907
|
+
hasValue = props.hasValue;
|
|
28908
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Control, props, hasValue && selectProps.isMulti && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
28909
|
+
className: "neeto-ui-btn neeto-ui-btn--style-secondary neeto-ui-react-select__add-btn"
|
|
28905
28910
|
}, selectProps.addButtonLabel || "Add"), " ", children);
|
|
28906
28911
|
};
|
|
28907
28912
|
var DropdownIndicator = function DropdownIndicator(props) {
|