@bigbinary/neetoui 6.1.1 → 6.1.3

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/README.md CHANGED
@@ -26,7 +26,7 @@ working, please import the neetoUI stylesheet to your main `scss` entry point.
26
26
  properly. Install the peer dependencies using the below command:
27
27
 
28
28
  ```
29
- yarn add react-toastify@9.0.1 formik@2.2.0 react-router-dom@5.2.0 @bigbinary/neeto-icons antd@4.24.3 i18next@21.7.0
29
+ yarn add react-toastify@9.0.1 formik@2.2.0 react-router-dom@5.2.0 @bigbinary/neeto-icons antd@5.9.2 i18next@21.7.0
30
30
  ```
31
31
 
32
32
  ### `react-toastify`
package/formik.cjs.js CHANGED
@@ -26497,7 +26497,7 @@ var renderDefaultText = function renderDefaultText(count) {
26497
26497
  return count === 1 ? "email" : "emails";
26498
26498
  };
26499
26499
 
26500
- var _excluded$f = ["label", "placeholder", "helpText", "value", "onChange", "error", "onBlur", "filterInvalidEmails", "counter", "disabled", "maxHeight", "required", "labelProps", "visibleEmailsCount"];
26500
+ var _excluded$f = ["label", "placeholder", "helpText", "value", "onChange", "error", "onBlur", "filterInvalidEmails", "counter", "disabled", "maxHeight", "required", "labelProps", "visibleEmailsCount", "isCreateable"];
26501
26501
  function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
26502
26502
  function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
26503
26503
  var MultiEmailInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
@@ -26526,6 +26526,8 @@ var MultiEmailInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
26526
26526
  labelProps = _ref.labelProps,
26527
26527
  _ref$visibleEmailsCou = _ref.visibleEmailsCount,
26528
26528
  visibleEmailsCount = _ref$visibleEmailsCou === void 0 ? 3 : _ref$visibleEmailsCou,
26529
+ _ref$isCreateable = _ref.isCreateable,
26530
+ isCreateable = _ref$isCreateable === void 0 ? true : _ref$isCreateable,
26529
26531
  otherProps = _objectWithoutProperties$1(_ref, _excluded$f);
26530
26532
  var _useState = React.useState(""),
26531
26533
  _useState2 = _slicedToArray$2(_useState, 2),
@@ -26582,6 +26584,7 @@ var MultiEmailInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
26582
26584
  var overrideProps = {};
26583
26585
  if (isOptionsPresent) {
26584
26586
  var isValidNewOption = function isValidNewOption(inputValue, _, selectOptions) {
26587
+ if (!isCreateable) return false;
26585
26588
  var isInputEmpty = ramda.isEmpty(inputValue.trim());
26586
26589
  var doesInputContainSeparator = inputValue.includes(",") || inputValue.includes(" ");
26587
26590
  var isInputPresentInOptions = selectOptions.find(function (option) {