@bigbinary/neetoui 5.2.40 → 6.0.0-beta

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 CHANGED
@@ -17842,8 +17842,7 @@ var Input$2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
17842
17842
  required: required,
17843
17843
  "data-cy": "".concat(hyphenize(label), "-input-label"),
17844
17844
  htmlFor: id
17845
- }, labelProps), label), isCharacterLimitVisible && /*#__PURE__*/React__default["default"].createElement(Typography, {
17846
- style: "body2",
17845
+ }, labelProps), label), isCharacterLimitVisible && /*#__PURE__*/React__default["default"].createElement("p", {
17847
17846
  className: classnames$1("neeto-ui-input__max-length", {
17848
17847
  "neeto-ui-input__max-length--error": maxLengthError
17849
17848
  })
@@ -17878,16 +17877,14 @@ var Input$2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
17878
17877
  onChange: handleChange
17879
17878
  })), suffix && /*#__PURE__*/React__default["default"].createElement("div", {
17880
17879
  className: "neeto-ui-input__suffix"
17881
- }, suffix)), !!error && /*#__PURE__*/React__default["default"].createElement(Typography, {
17880
+ }, suffix)), !!error && /*#__PURE__*/React__default["default"].createElement("p", {
17882
17881
  className: "neeto-ui-input__error",
17883
17882
  "data-cy": "".concat(hyphenize(label), "-input-error"),
17884
- id: errorId,
17885
- style: "body3"
17886
- }, error), helpText && /*#__PURE__*/React__default["default"].createElement(Typography, {
17883
+ id: errorId
17884
+ }, error), helpText && /*#__PURE__*/React__default["default"].createElement("p", {
17887
17885
  className: "neeto-ui-input__help-text",
17888
17886
  "data-cy": "".concat(hyphenize(label), "-input-help"),
17889
- id: helpTextId,
17890
- style: "body3"
17887
+ id: helpTextId
17891
17888
  }, helpText));
17892
17889
  });
17893
17890
  Input$2.displayName = "Input";
@@ -24865,9 +24862,9 @@ var MultiEmailInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
24865
24862
  }
24866
24863
  var isFilterEmailsLinkVisible = !!filterInvalidEmails && value.length > getValidEmailsCount(value);
24867
24864
  return /*#__PURE__*/React__default["default"].createElement("div", {
24868
- className: "neeto-ui-flex neeto-ui-flex-col neeto-ui-email-input"
24865
+ className: "neeto-ui-input__wrapper neeto-ui-email-input__wrapper"
24869
24866
  }, /*#__PURE__*/React__default["default"].createElement("div", {
24870
- className: "neeto-ui-flex neeto-ui-justify-between neeto-ui-email-input__title-row"
24867
+ className: "neeto-ui-email-input__label-wrapper"
24871
24868
  }, label && /*#__PURE__*/React__default["default"].createElement(Label, _extends$2({
24872
24869
  className: "neeto-ui-email-input__label",
24873
24870
  "data-cy": "".concat(hyphenize(label), "-input-label"),
@@ -24888,7 +24885,7 @@ var MultiEmailInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
24888
24885
  ref: ref,
24889
24886
  value: value,
24890
24887
  visibleEmailsCount: visibleEmailsCount,
24891
- className: classnames$1("neeto-ui-react-select__container neeto-ui-email-input__select", {
24888
+ className: classnames$1("neeto-ui-react-select__container neeto-ui-react-select__container--medium neeto-ui-email-input__select", {
24892
24889
  "neeto-ui-react-select__container--error": !!error
24893
24890
  }),
24894
24891
  styles: _objectSpread$5(_objectSpread$5({}, CUSTOM_STYLES), {}, {
@@ -24908,20 +24905,21 @@ var MultiEmailInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
24908
24905
  onKeyDown: handleKeyDown
24909
24906
  }, !isOptionsPresent && {
24910
24907
  menuIsOpen: false
24911
- }, otherProps, overrideProps)), /*#__PURE__*/React__default["default"].createElement("div", {
24912
- className: "neeto-ui-email-input__bottom-info"
24913
- }, !!error && /*#__PURE__*/React__default["default"].createElement(Typography, {
24908
+ }, otherProps, overrideProps)), !!error && /*#__PURE__*/React__default["default"].createElement(Typography, {
24914
24909
  className: "neeto-ui-input__error",
24915
24910
  "data-cy": "".concat(hyphenize(label), "-input-error"),
24916
24911
  style: "body3"
24917
- }, error, isFilterEmailsLinkVisible && /*#__PURE__*/React__default["default"].createElement("span", {
24918
- className: "neeto-ui-typography neeto-ui-text-body3 neeto-ui-font-semibold cursor-pointer",
24912
+ }, error, isFilterEmailsLinkVisible && /*#__PURE__*/React__default["default"].createElement(Typography, {
24913
+ className: "cursor-pointer",
24914
+ component: "span",
24915
+ style: "body3",
24916
+ weight: "semibold",
24919
24917
  onClick: handleFilterEmails
24920
24918
  }, "\xA0", filterInvalidEmails.label ? filterInvalidEmails.label : "Click here to remove invalid emails.")), !!helpText && /*#__PURE__*/React__default["default"].createElement(Typography, {
24921
24919
  className: "neeto-ui-input__help-text",
24922
24920
  "data-cy": "".concat(hyphenize(label), "-input-help"),
24923
24921
  style: "body3"
24924
- }, helpText)));
24922
+ }, helpText));
24925
24923
  });
24926
24924
  MultiEmailInput.displayName = "MultiEmailInput";
24927
24925
 
@@ -25201,27 +25199,33 @@ var AsyncCreatableSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
25201
25199
  }, selectProps));
25202
25200
  });
25203
25201
 
25202
+ var SPINNER_SIZES = {
25203
+ small: "small",
25204
+ medium: "medium"
25205
+ };
25204
25206
  var Spinner = function Spinner(_ref) {
25205
25207
  var _ref$theme = _ref.theme,
25206
25208
  theme = _ref$theme === void 0 ? "dark" : _ref$theme,
25209
+ _ref$size = _ref.size,
25210
+ size = _ref$size === void 0 ? SPINNER_SIZES.medium : _ref$size,
25207
25211
  _ref$className = _ref.className,
25208
25212
  className = _ref$className === void 0 ? "" : _ref$className;
25209
- var spinnerItemClassName = classnames$1("neeto-ui-spinner__item", {
25210
- "neeto-ui-bg-gray-800": theme === "dark"
25211
- }, {
25212
- "neeto-ui-bg-white": theme === "light"
25213
- });
25214
25213
  return /*#__PURE__*/React__default["default"].createElement("span", {
25215
- className: classnames$1("neeto-ui-spinner", [className]),
25216
- "data-testid": "spinner"
25214
+ "data-testid": "spinner",
25215
+ className: classnames$1("neeto-ui-spinner", {
25216
+ "neeto-ui-spinner--dark": theme === "dark",
25217
+ "neeto-ui-spinner--light": theme === "light",
25218
+ "neeto-ui-spinner--size-small": size === SPINNER_SIZES.small,
25219
+ "neeto-ui-spinner--size-medium": size === SPINNER_SIZES.medium
25220
+ }, [className])
25217
25221
  }, /*#__PURE__*/React__default["default"].createElement("i", {
25218
- className: spinnerItemClassName
25222
+ className: "neeto-ui-spinner__item"
25219
25223
  }), /*#__PURE__*/React__default["default"].createElement("i", {
25220
- className: spinnerItemClassName
25224
+ className: "neeto-ui-spinner__item"
25221
25225
  }), /*#__PURE__*/React__default["default"].createElement("i", {
25222
- className: spinnerItemClassName
25226
+ className: "neeto-ui-spinner__item"
25223
25227
  }), /*#__PURE__*/React__default["default"].createElement("i", {
25224
- className: spinnerItemClassName
25228
+ className: "neeto-ui-spinner__item"
25225
25229
  }));
25226
25230
  };
25227
25231
 
@@ -25794,8 +25798,7 @@ var Textarea = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
25794
25798
  required: required,
25795
25799
  "data-cy": "".concat(hyphenize(label), "-label"),
25796
25800
  htmlFor: id
25797
- }, labelProps), label), isCharacterLimitVisible && /*#__PURE__*/React__default["default"].createElement(Typography, {
25798
- style: "body2",
25801
+ }, labelProps), label), isCharacterLimitVisible && /*#__PURE__*/React__default["default"].createElement("p", {
25799
25802
  className: classnames$1("neeto-ui-input__max-length", {
25800
25803
  "neeto-ui-input__max-length--error": maxLengthError
25801
25804
  })
@@ -25819,15 +25822,13 @@ var Textarea = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
25819
25822
  }), otherProps), {}, {
25820
25823
  onChange: onChange,
25821
25824
  value: value
25822
- })))), !!error && /*#__PURE__*/React__default["default"].createElement(Typography, {
25825
+ })))), !!error && /*#__PURE__*/React__default["default"].createElement("p", {
25823
25826
  className: "neeto-ui-input__error",
25824
25827
  "data-cy": "".concat(hyphenize(label), "-input-error"),
25825
- id: errorId,
25826
- style: "body3"
25827
- }, error), helpText && /*#__PURE__*/React__default["default"].createElement(Typography, {
25828
+ id: errorId
25829
+ }, error), helpText && /*#__PURE__*/React__default["default"].createElement("p", {
25828
25830
  className: "neeto-ui-input__help-text",
25829
- id: helpTextId,
25830
- style: "body3"
25831
+ id: helpTextId
25831
25832
  }, helpText));
25832
25833
  });
25833
25834
  Textarea.displayName = "Textarea";