@bigbinary/neetoui 5.2.46 → 6.0.0
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 +47 -45
- package/formik.cjs.js.map +1 -1
- package/formik.js +47 -45
- package/formik.js.map +1 -1
- package/index.cjs.js +222 -107
- package/index.cjs.js.map +1 -1
- package/index.css +1 -3
- package/index.js +221 -106
- package/index.js.map +1 -1
- package/layouts.cjs.js +10 -10
- package/layouts.cjs.js.map +1 -1
- package/layouts.js +10 -10
- package/layouts.js.map +1 -1
- package/package.json +2 -1
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(
|
|
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(
|
|
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
|
-
|
|
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,13 +24832,13 @@ 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-
|
|
24835
|
+
className: "neeto-ui-input__wrapper neeto-ui-email-input__wrapper"
|
|
24839
24836
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
24840
|
-
className: "neeto-ui-
|
|
24837
|
+
className: "neeto-ui-email-input__label-wrapper"
|
|
24841
24838
|
}, label && /*#__PURE__*/React__default.createElement(Label, _extends$2({
|
|
24839
|
+
required: required,
|
|
24842
24840
|
className: "neeto-ui-email-input__label",
|
|
24843
|
-
"data-cy": "".concat(hyphenize(label), "-input-label")
|
|
24844
|
-
required: required
|
|
24841
|
+
"data-cy": "".concat(hyphenize(label), "-input-label")
|
|
24845
24842
|
}, labelProps), label), isCounterVisible && /*#__PURE__*/React__default.createElement(Typography, {
|
|
24846
24843
|
className: "neeto-ui-email-input__counter",
|
|
24847
24844
|
"data-cy": "".concat(hyphenize(label), "-email-counter"),
|
|
@@ -24851,14 +24848,8 @@ var MultiEmailInput = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
|
|
|
24851
24848
|
required: true,
|
|
24852
24849
|
classNamePrefix: "neeto-ui-react-select",
|
|
24853
24850
|
components: CUSTOM_COMPONENTS,
|
|
24854
|
-
inputValue: inputValue,
|
|
24855
24851
|
isDisabled: disabled,
|
|
24856
|
-
|
|
24857
|
-
placeholder: placeholder,
|
|
24858
|
-
ref: ref,
|
|
24859
|
-
value: value,
|
|
24860
|
-
visibleEmailsCount: visibleEmailsCount,
|
|
24861
|
-
className: classnames$1("neeto-ui-react-select__container neeto-ui-email-input__select", {
|
|
24852
|
+
className: classnames$1("neeto-ui-react-select__container neeto-ui-react-select__container--medium neeto-ui-email-input__select", {
|
|
24862
24853
|
"neeto-ui-react-select__container--error": !!error
|
|
24863
24854
|
}),
|
|
24864
24855
|
styles: _objectSpread$5(_objectSpread$5({}, CUSTOM_STYLES), {}, {
|
|
@@ -24868,7 +24859,6 @@ var MultiEmailInput = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
|
|
|
24868
24859
|
})
|
|
24869
24860
|
}),
|
|
24870
24861
|
onBlur: handleBlur,
|
|
24871
|
-
onChange: onChange,
|
|
24872
24862
|
onFocus: function onFocus() {
|
|
24873
24863
|
return setIsFocused(true);
|
|
24874
24864
|
},
|
|
@@ -24876,22 +24866,31 @@ var MultiEmailInput = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
|
|
|
24876
24866
|
return setInputValue(inputValue);
|
|
24877
24867
|
},
|
|
24878
24868
|
onKeyDown: handleKeyDown
|
|
24869
|
+
}, _objectSpread$5(_objectSpread$5(_objectSpread$5({
|
|
24870
|
+
inputValue: inputValue,
|
|
24871
|
+
isFocused: isFocused,
|
|
24872
|
+
onChange: onChange,
|
|
24873
|
+
placeholder: placeholder,
|
|
24874
|
+
ref: ref,
|
|
24875
|
+
value: value,
|
|
24876
|
+
visibleEmailsCount: visibleEmailsCount
|
|
24879
24877
|
}, !isOptionsPresent && {
|
|
24880
24878
|
menuIsOpen: false
|
|
24881
|
-
}, otherProps, overrideProps)), /*#__PURE__*/React__default.createElement(
|
|
24882
|
-
className: "neeto-ui-email-input__bottom-info"
|
|
24883
|
-
}, !!error && /*#__PURE__*/React__default.createElement(Typography, {
|
|
24879
|
+
}), otherProps), overrideProps))), !!error && /*#__PURE__*/React__default.createElement(Typography, {
|
|
24884
24880
|
className: "neeto-ui-input__error",
|
|
24885
24881
|
"data-cy": "".concat(hyphenize(label), "-input-error"),
|
|
24886
24882
|
style: "body3"
|
|
24887
|
-
}, error, isFilterEmailsLinkVisible && /*#__PURE__*/React__default.createElement(
|
|
24888
|
-
className: "
|
|
24883
|
+
}, error, isFilterEmailsLinkVisible && /*#__PURE__*/React__default.createElement(Typography, {
|
|
24884
|
+
className: "cursor-pointer",
|
|
24885
|
+
component: "span",
|
|
24886
|
+
style: "body3",
|
|
24887
|
+
weight: "semibold",
|
|
24889
24888
|
onClick: handleFilterEmails
|
|
24890
24889
|
}, "\xA0", filterInvalidEmails.label ? filterInvalidEmails.label : "Click here to remove invalid emails.")), !!helpText && /*#__PURE__*/React__default.createElement(Typography, {
|
|
24891
24890
|
className: "neeto-ui-input__help-text",
|
|
24892
24891
|
"data-cy": "".concat(hyphenize(label), "-input-help"),
|
|
24893
24892
|
style: "body3"
|
|
24894
|
-
}, helpText))
|
|
24893
|
+
}, helpText));
|
|
24895
24894
|
});
|
|
24896
24895
|
MultiEmailInput.displayName = "MultiEmailInput";
|
|
24897
24896
|
|
|
@@ -25171,27 +25170,33 @@ var AsyncCreatableSelect = /*#__PURE__*/forwardRef$1(function (props, ref) {
|
|
|
25171
25170
|
}, selectProps));
|
|
25172
25171
|
});
|
|
25173
25172
|
|
|
25173
|
+
var SPINNER_SIZES = {
|
|
25174
|
+
small: "small",
|
|
25175
|
+
medium: "medium"
|
|
25176
|
+
};
|
|
25174
25177
|
var Spinner = function Spinner(_ref) {
|
|
25175
25178
|
var _ref$theme = _ref.theme,
|
|
25176
25179
|
theme = _ref$theme === void 0 ? "dark" : _ref$theme,
|
|
25180
|
+
_ref$size = _ref.size,
|
|
25181
|
+
size = _ref$size === void 0 ? SPINNER_SIZES.medium : _ref$size,
|
|
25177
25182
|
_ref$className = _ref.className,
|
|
25178
25183
|
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
25184
|
return /*#__PURE__*/React__default.createElement("span", {
|
|
25185
|
-
|
|
25186
|
-
|
|
25185
|
+
"data-testid": "spinner",
|
|
25186
|
+
className: classnames$1("neeto-ui-spinner", {
|
|
25187
|
+
"neeto-ui-spinner--dark": theme === "dark",
|
|
25188
|
+
"neeto-ui-spinner--light": theme === "light",
|
|
25189
|
+
"neeto-ui-spinner--size-small": size === SPINNER_SIZES.small,
|
|
25190
|
+
"neeto-ui-spinner--size-medium": size === SPINNER_SIZES.medium
|
|
25191
|
+
}, [className])
|
|
25187
25192
|
}, /*#__PURE__*/React__default.createElement("i", {
|
|
25188
|
-
className:
|
|
25193
|
+
className: "neeto-ui-spinner__item"
|
|
25189
25194
|
}), /*#__PURE__*/React__default.createElement("i", {
|
|
25190
|
-
className:
|
|
25195
|
+
className: "neeto-ui-spinner__item"
|
|
25191
25196
|
}), /*#__PURE__*/React__default.createElement("i", {
|
|
25192
|
-
className:
|
|
25197
|
+
className: "neeto-ui-spinner__item"
|
|
25193
25198
|
}), /*#__PURE__*/React__default.createElement("i", {
|
|
25194
|
-
className:
|
|
25199
|
+
className: "neeto-ui-spinner__item"
|
|
25195
25200
|
}));
|
|
25196
25201
|
};
|
|
25197
25202
|
|
|
@@ -25764,8 +25769,7 @@ var Textarea = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
|
|
|
25764
25769
|
required: required,
|
|
25765
25770
|
"data-cy": "".concat(hyphenize(label), "-label"),
|
|
25766
25771
|
htmlFor: id
|
|
25767
|
-
}, labelProps), label), isCharacterLimitVisible && /*#__PURE__*/React__default.createElement(
|
|
25768
|
-
style: "body2",
|
|
25772
|
+
}, labelProps), label), isCharacterLimitVisible && /*#__PURE__*/React__default.createElement("p", {
|
|
25769
25773
|
className: classnames$1("neeto-ui-input__max-length", {
|
|
25770
25774
|
"neeto-ui-input__max-length--error": maxLengthError
|
|
25771
25775
|
})
|
|
@@ -25789,15 +25793,13 @@ var Textarea = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
|
|
|
25789
25793
|
}), otherProps), {}, {
|
|
25790
25794
|
onChange: onChange,
|
|
25791
25795
|
value: value
|
|
25792
|
-
})))), !!error && /*#__PURE__*/React__default.createElement(
|
|
25796
|
+
})))), !!error && /*#__PURE__*/React__default.createElement("p", {
|
|
25793
25797
|
className: "neeto-ui-input__error",
|
|
25794
25798
|
"data-cy": "".concat(hyphenize(label), "-input-error"),
|
|
25795
|
-
id: errorId
|
|
25796
|
-
|
|
25797
|
-
}, error), helpText && /*#__PURE__*/React__default.createElement(Typography, {
|
|
25799
|
+
id: errorId
|
|
25800
|
+
}, error), helpText && /*#__PURE__*/React__default.createElement("p", {
|
|
25798
25801
|
className: "neeto-ui-input__help-text",
|
|
25799
|
-
id: helpTextId
|
|
25800
|
-
style: "body3"
|
|
25802
|
+
id: helpTextId
|
|
25801
25803
|
}, helpText));
|
|
25802
25804
|
});
|
|
25803
25805
|
Textarea.displayName = "Textarea";
|