@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.js CHANGED
@@ -17812,8 +17812,7 @@ var Input$2 = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
17812
17812
  required: required,
17813
17813
  "data-cy": "".concat(hyphenize(label), "-input-label"),
17814
17814
  htmlFor: id
17815
- }, labelProps), label), isCharacterLimitVisible && /*#__PURE__*/React__default.createElement(Typography, {
17816
- style: "body2",
17815
+ }, labelProps), label), isCharacterLimitVisible && /*#__PURE__*/React__default.createElement("p", {
17817
17816
  className: classnames$1("neeto-ui-input__max-length", {
17818
17817
  "neeto-ui-input__max-length--error": maxLengthError
17819
17818
  })
@@ -17848,16 +17847,14 @@ var Input$2 = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
17848
17847
  onChange: handleChange
17849
17848
  })), suffix && /*#__PURE__*/React__default.createElement("div", {
17850
17849
  className: "neeto-ui-input__suffix"
17851
- }, suffix)), !!error && /*#__PURE__*/React__default.createElement(Typography, {
17850
+ }, suffix)), !!error && /*#__PURE__*/React__default.createElement("p", {
17852
17851
  className: "neeto-ui-input__error",
17853
17852
  "data-cy": "".concat(hyphenize(label), "-input-error"),
17854
- id: errorId,
17855
- style: "body3"
17856
- }, error), helpText && /*#__PURE__*/React__default.createElement(Typography, {
17853
+ id: errorId
17854
+ }, error), helpText && /*#__PURE__*/React__default.createElement("p", {
17857
17855
  className: "neeto-ui-input__help-text",
17858
17856
  "data-cy": "".concat(hyphenize(label), "-input-help"),
17859
- id: helpTextId,
17860
- style: "body3"
17857
+ id: helpTextId
17861
17858
  }, helpText));
17862
17859
  });
17863
17860
  Input$2.displayName = "Input";
@@ -24835,9 +24832,9 @@ var MultiEmailInput = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
24835
24832
  }
24836
24833
  var isFilterEmailsLinkVisible = !!filterInvalidEmails && value.length > getValidEmailsCount(value);
24837
24834
  return /*#__PURE__*/React__default.createElement("div", {
24838
- className: "neeto-ui-flex neeto-ui-flex-col neeto-ui-email-input"
24835
+ className: "neeto-ui-input__wrapper neeto-ui-email-input__wrapper"
24839
24836
  }, /*#__PURE__*/React__default.createElement("div", {
24840
- className: "neeto-ui-flex neeto-ui-justify-between neeto-ui-email-input__title-row"
24837
+ className: "neeto-ui-email-input__label-wrapper"
24841
24838
  }, label && /*#__PURE__*/React__default.createElement(Label, _extends$2({
24842
24839
  className: "neeto-ui-email-input__label",
24843
24840
  "data-cy": "".concat(hyphenize(label), "-input-label"),
@@ -24858,7 +24855,7 @@ var MultiEmailInput = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
24858
24855
  ref: ref,
24859
24856
  value: value,
24860
24857
  visibleEmailsCount: visibleEmailsCount,
24861
- className: classnames$1("neeto-ui-react-select__container neeto-ui-email-input__select", {
24858
+ className: classnames$1("neeto-ui-react-select__container neeto-ui-react-select__container--medium neeto-ui-email-input__select", {
24862
24859
  "neeto-ui-react-select__container--error": !!error
24863
24860
  }),
24864
24861
  styles: _objectSpread$5(_objectSpread$5({}, CUSTOM_STYLES), {}, {
@@ -24878,20 +24875,21 @@ var MultiEmailInput = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
24878
24875
  onKeyDown: handleKeyDown
24879
24876
  }, !isOptionsPresent && {
24880
24877
  menuIsOpen: false
24881
- }, otherProps, overrideProps)), /*#__PURE__*/React__default.createElement("div", {
24882
- className: "neeto-ui-email-input__bottom-info"
24883
- }, !!error && /*#__PURE__*/React__default.createElement(Typography, {
24878
+ }, otherProps, overrideProps)), !!error && /*#__PURE__*/React__default.createElement(Typography, {
24884
24879
  className: "neeto-ui-input__error",
24885
24880
  "data-cy": "".concat(hyphenize(label), "-input-error"),
24886
24881
  style: "body3"
24887
- }, error, isFilterEmailsLinkVisible && /*#__PURE__*/React__default.createElement("span", {
24888
- className: "neeto-ui-typography neeto-ui-text-body3 neeto-ui-font-semibold cursor-pointer",
24882
+ }, error, isFilterEmailsLinkVisible && /*#__PURE__*/React__default.createElement(Typography, {
24883
+ className: "cursor-pointer",
24884
+ component: "span",
24885
+ style: "body3",
24886
+ weight: "semibold",
24889
24887
  onClick: handleFilterEmails
24890
24888
  }, "\xA0", filterInvalidEmails.label ? filterInvalidEmails.label : "Click here to remove invalid emails.")), !!helpText && /*#__PURE__*/React__default.createElement(Typography, {
24891
24889
  className: "neeto-ui-input__help-text",
24892
24890
  "data-cy": "".concat(hyphenize(label), "-input-help"),
24893
24891
  style: "body3"
24894
- }, helpText)));
24892
+ }, helpText));
24895
24893
  });
24896
24894
  MultiEmailInput.displayName = "MultiEmailInput";
24897
24895
 
@@ -25171,27 +25169,33 @@ var AsyncCreatableSelect = /*#__PURE__*/forwardRef$1(function (props, ref) {
25171
25169
  }, selectProps));
25172
25170
  });
25173
25171
 
25172
+ var SPINNER_SIZES = {
25173
+ small: "small",
25174
+ medium: "medium"
25175
+ };
25174
25176
  var Spinner = function Spinner(_ref) {
25175
25177
  var _ref$theme = _ref.theme,
25176
25178
  theme = _ref$theme === void 0 ? "dark" : _ref$theme,
25179
+ _ref$size = _ref.size,
25180
+ size = _ref$size === void 0 ? SPINNER_SIZES.medium : _ref$size,
25177
25181
  _ref$className = _ref.className,
25178
25182
  className = _ref$className === void 0 ? "" : _ref$className;
25179
- var spinnerItemClassName = classnames$1("neeto-ui-spinner__item", {
25180
- "neeto-ui-bg-gray-800": theme === "dark"
25181
- }, {
25182
- "neeto-ui-bg-white": theme === "light"
25183
- });
25184
25183
  return /*#__PURE__*/React__default.createElement("span", {
25185
- className: classnames$1("neeto-ui-spinner", [className]),
25186
- "data-testid": "spinner"
25184
+ "data-testid": "spinner",
25185
+ className: classnames$1("neeto-ui-spinner", {
25186
+ "neeto-ui-spinner--dark": theme === "dark",
25187
+ "neeto-ui-spinner--light": theme === "light",
25188
+ "neeto-ui-spinner--size-small": size === SPINNER_SIZES.small,
25189
+ "neeto-ui-spinner--size-medium": size === SPINNER_SIZES.medium
25190
+ }, [className])
25187
25191
  }, /*#__PURE__*/React__default.createElement("i", {
25188
- className: spinnerItemClassName
25192
+ className: "neeto-ui-spinner__item"
25189
25193
  }), /*#__PURE__*/React__default.createElement("i", {
25190
- className: spinnerItemClassName
25194
+ className: "neeto-ui-spinner__item"
25191
25195
  }), /*#__PURE__*/React__default.createElement("i", {
25192
- className: spinnerItemClassName
25196
+ className: "neeto-ui-spinner__item"
25193
25197
  }), /*#__PURE__*/React__default.createElement("i", {
25194
- className: spinnerItemClassName
25198
+ className: "neeto-ui-spinner__item"
25195
25199
  }));
25196
25200
  };
25197
25201
 
@@ -25764,8 +25768,7 @@ var Textarea = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
25764
25768
  required: required,
25765
25769
  "data-cy": "".concat(hyphenize(label), "-label"),
25766
25770
  htmlFor: id
25767
- }, labelProps), label), isCharacterLimitVisible && /*#__PURE__*/React__default.createElement(Typography, {
25768
- style: "body2",
25771
+ }, labelProps), label), isCharacterLimitVisible && /*#__PURE__*/React__default.createElement("p", {
25769
25772
  className: classnames$1("neeto-ui-input__max-length", {
25770
25773
  "neeto-ui-input__max-length--error": maxLengthError
25771
25774
  })
@@ -25789,15 +25792,13 @@ var Textarea = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
25789
25792
  }), otherProps), {}, {
25790
25793
  onChange: onChange,
25791
25794
  value: value
25792
- })))), !!error && /*#__PURE__*/React__default.createElement(Typography, {
25795
+ })))), !!error && /*#__PURE__*/React__default.createElement("p", {
25793
25796
  className: "neeto-ui-input__error",
25794
25797
  "data-cy": "".concat(hyphenize(label), "-input-error"),
25795
- id: errorId,
25796
- style: "body3"
25797
- }, error), helpText && /*#__PURE__*/React__default.createElement(Typography, {
25798
+ id: errorId
25799
+ }, error), helpText && /*#__PURE__*/React__default.createElement("p", {
25798
25800
  className: "neeto-ui-input__help-text",
25799
- id: helpTextId,
25800
- style: "body3"
25801
+ id: helpTextId
25801
25802
  }, helpText));
25802
25803
  });
25803
25804
  Textarea.displayName = "Textarea";