@bigbinary/neetoui 5.2.39 → 5.2.40

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/index.js CHANGED
@@ -28865,9 +28865,10 @@ var STRATEGIES = {
28865
28865
  var Control = function Control(_ref) {
28866
28866
  var children = _ref.children,
28867
28867
  props = _objectWithoutProperties$1(_ref, _excluded$d);
28868
- var selectProps = props.selectProps;
28869
- return /*#__PURE__*/React__default.createElement(components.Control, props, selectProps.isMulti && /*#__PURE__*/React__default.createElement("span", {
28870
- className: "neeto-ui-btn neeto-ui-btn--style-primary neeto-ui-react-select__add-btn"
28868
+ var selectProps = props.selectProps,
28869
+ hasValue = props.hasValue;
28870
+ return /*#__PURE__*/React__default.createElement(components.Control, props, hasValue && selectProps.isMulti && /*#__PURE__*/React__default.createElement("span", {
28871
+ className: "neeto-ui-btn neeto-ui-btn--style-secondary neeto-ui-react-select__add-btn"
28871
28872
  }, selectProps.addButtonLabel || "Add"), " ", children);
28872
28873
  };
28873
28874
  var DropdownIndicator = function DropdownIndicator(props) {