@bigbinary/neetoui 5.2.4 → 5.2.6
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 +31 -12
- package/formik.cjs.js.map +1 -1
- package/formik.js +31 -12
- package/formik.js.map +1 -1
- package/index.cjs.js +31 -12
- package/index.cjs.js.map +1 -1
- package/index.js +31 -12
- package/index.js.map +1 -1
- package/package.json +1 -1
package/formik.js
CHANGED
|
@@ -17890,7 +17890,7 @@ var SIZES$3 = {
|
|
|
17890
17890
|
medium: "medium",
|
|
17891
17891
|
large: "large"
|
|
17892
17892
|
};
|
|
17893
|
-
var Input$
|
|
17893
|
+
var Input$2 = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
|
|
17894
17894
|
var _ref2, _otherProps$value, _classnames;
|
|
17895
17895
|
var _ref$size = _ref.size,
|
|
17896
17896
|
size = _ref$size === void 0 ? SIZES$3.medium : _ref$size,
|
|
@@ -17997,7 +17997,7 @@ var Input$1 = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
|
|
|
17997
17997
|
style: "body3"
|
|
17998
17998
|
}, helpText));
|
|
17999
17999
|
});
|
|
18000
|
-
Input$
|
|
18000
|
+
Input$2.displayName = "Input";
|
|
18001
18001
|
|
|
18002
18002
|
var _excluded$i = ["name"];
|
|
18003
18003
|
var FormikInput = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
|
|
@@ -18008,7 +18008,7 @@ var FormikInput = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
|
|
|
18008
18008
|
}, function (_ref2) {
|
|
18009
18009
|
var field = _ref2.field,
|
|
18010
18010
|
meta = _ref2.meta;
|
|
18011
|
-
return /*#__PURE__*/React__default.createElement(Input$
|
|
18011
|
+
return /*#__PURE__*/React__default.createElement(Input$2, _extends$2({
|
|
18012
18012
|
ref: ref
|
|
18013
18013
|
}, field, {
|
|
18014
18014
|
error: meta.touched ? meta.error : ""
|
|
@@ -21239,7 +21239,7 @@ var containerCSS = function containerCSS(_ref) {
|
|
|
21239
21239
|
position: 'relative'
|
|
21240
21240
|
};
|
|
21241
21241
|
};
|
|
21242
|
-
var SelectContainer = function SelectContainer(props) {
|
|
21242
|
+
var SelectContainer$1 = function SelectContainer(props) {
|
|
21243
21243
|
var children = props.children,
|
|
21244
21244
|
className = props.className,
|
|
21245
21245
|
cx = props.cx,
|
|
@@ -21666,7 +21666,7 @@ var inputStyle = function inputStyle(isHidden) {
|
|
|
21666
21666
|
width: '100%'
|
|
21667
21667
|
}, spacingStyle);
|
|
21668
21668
|
};
|
|
21669
|
-
var Input = function Input(props) {
|
|
21669
|
+
var Input$1 = function Input(props) {
|
|
21670
21670
|
var className = props.className,
|
|
21671
21671
|
cx = props.cx,
|
|
21672
21672
|
getStyles = props.getStyles,
|
|
@@ -21922,7 +21922,7 @@ var components = {
|
|
|
21922
21922
|
GroupHeading: GroupHeading,
|
|
21923
21923
|
IndicatorsContainer: IndicatorsContainer,
|
|
21924
21924
|
IndicatorSeparator: IndicatorSeparator,
|
|
21925
|
-
Input: Input,
|
|
21925
|
+
Input: Input$1,
|
|
21926
21926
|
LoadingIndicator: LoadingIndicator,
|
|
21927
21927
|
Menu: Menu$1,
|
|
21928
21928
|
MenuList: MenuList,
|
|
@@ -21935,7 +21935,7 @@ var components = {
|
|
|
21935
21935
|
MultiValueRemove: MultiValueRemove$2,
|
|
21936
21936
|
Option: Option,
|
|
21937
21937
|
Placeholder: Placeholder$1,
|
|
21938
|
-
SelectContainer: SelectContainer,
|
|
21938
|
+
SelectContainer: SelectContainer$1,
|
|
21939
21939
|
SingleValue: SingleValue,
|
|
21940
21940
|
ValueContainer: ValueContainer$1
|
|
21941
21941
|
};
|
|
@@ -24780,7 +24780,9 @@ var CustomDropdownIndicator = function CustomDropdownIndicator(props) {
|
|
|
24780
24780
|
}, suffix)) : null;
|
|
24781
24781
|
};
|
|
24782
24782
|
var MultiValueRemove$1 = function MultiValueRemove(props) {
|
|
24783
|
-
return /*#__PURE__*/React__default.createElement(components.MultiValueRemove,
|
|
24783
|
+
return /*#__PURE__*/React__default.createElement(components.MultiValueRemove, _extends$2({}, props, {
|
|
24784
|
+
innerProps: _objectSpread$3(_objectSpread$3({}, props.innerProps), {}, _defineProperty$1({}, "data-cy", "".concat(hyphenize(props.data.label), "-remove-icon")))
|
|
24785
|
+
}), /*#__PURE__*/React__default.createElement(Close, {
|
|
24784
24786
|
size: 16
|
|
24785
24787
|
}));
|
|
24786
24788
|
};
|
|
@@ -24796,17 +24798,31 @@ var CustomValueContainer = function CustomValueContainer(_ref2) {
|
|
|
24796
24798
|
firstChild = _children[0],
|
|
24797
24799
|
rest = _children.slice(1);
|
|
24798
24800
|
var shouldCollapse = !isFocused && value.length > visibleEmailsCount;
|
|
24799
|
-
return /*#__PURE__*/React__default.createElement(components.ValueContainer,
|
|
24801
|
+
return /*#__PURE__*/React__default.createElement(components.ValueContainer, _extends$2({}, props, {
|
|
24802
|
+
innerProps: _objectSpread$3(_objectSpread$3({}, props.innerProps), {}, _defineProperty$1({}, "data-cy", "multi-email-input-container"))
|
|
24803
|
+
}), shouldCollapse ? firstChild.slice(0, visibleEmailsCount) : firstChild, shouldCollapse && /*#__PURE__*/React__default.createElement(Tag, {
|
|
24800
24804
|
label: "".concat(value.length - visibleEmailsCount, " more"),
|
|
24801
24805
|
style: "secondary"
|
|
24802
24806
|
}), rest);
|
|
24803
24807
|
};
|
|
24804
|
-
var CustomClearIndicator = function CustomClearIndicator(
|
|
24805
|
-
return /*#__PURE__*/React__default.createElement(components.ClearIndicator,
|
|
24808
|
+
var CustomClearIndicator = function CustomClearIndicator(props) {
|
|
24809
|
+
return /*#__PURE__*/React__default.createElement(components.ClearIndicator, _extends$2({}, props, {
|
|
24810
|
+
innerProps: _objectSpread$3(_objectSpread$3({}, props.innerProps), {}, _defineProperty$1({}, "data-cy", "clear-all-button"))
|
|
24811
|
+
}), /*#__PURE__*/React__default.createElement(Close, {
|
|
24806
24812
|
className: "cursor-pointer",
|
|
24807
24813
|
size: 16
|
|
24808
24814
|
}));
|
|
24809
24815
|
};
|
|
24816
|
+
var SelectContainer = function SelectContainer(props) {
|
|
24817
|
+
return /*#__PURE__*/React__default.createElement(components.SelectContainer, _extends$2({}, props, {
|
|
24818
|
+
innerProps: _objectSpread$3(_objectSpread$3({}, props.innerProps), {}, _defineProperty$1({}, "data-cy", "multi-email-select-container"))
|
|
24819
|
+
}));
|
|
24820
|
+
};
|
|
24821
|
+
var Input = function Input(props) {
|
|
24822
|
+
return /*#__PURE__*/React__default.createElement(components.Input, _extends$2({}, props, {
|
|
24823
|
+
"data-cy": "email-select-input-field"
|
|
24824
|
+
}));
|
|
24825
|
+
};
|
|
24810
24826
|
var EMAIL_REGEX = new RegExp("^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}$", "i");
|
|
24811
24827
|
var UNSTRICT_EMAIL_REGEX = /(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/g;
|
|
24812
24828
|
var EMAIL_SEPARATION_REGEX = /[^\s,]+/g;
|
|
@@ -24825,7 +24841,9 @@ var CUSTOM_COMPONENTS = {
|
|
|
24825
24841
|
Control: CustomControl,
|
|
24826
24842
|
MultiValueRemove: MultiValueRemove$1,
|
|
24827
24843
|
ValueContainer: CustomValueContainer,
|
|
24828
|
-
ClearIndicator: CustomClearIndicator
|
|
24844
|
+
ClearIndicator: CustomClearIndicator,
|
|
24845
|
+
SelectContainer: SelectContainer,
|
|
24846
|
+
Input: Input
|
|
24829
24847
|
};
|
|
24830
24848
|
|
|
24831
24849
|
var formatEmailInputOptions = function formatEmailInputOptions(label) {
|
|
@@ -25431,6 +25449,7 @@ var Select = function Select(_ref) {
|
|
|
25431
25449
|
htmlFor: inputId,
|
|
25432
25450
|
required: required
|
|
25433
25451
|
}, labelProps), label), /*#__PURE__*/React__default.createElement(Parent, _extends$2({
|
|
25452
|
+
blurInputOnSelect: false,
|
|
25434
25453
|
classNamePrefix: "neeto-ui-react-select",
|
|
25435
25454
|
"data-cy": "".concat(hyphenize(label), "-select-container"),
|
|
25436
25455
|
defaultValue: findInOptions(defaultValue),
|