@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.cjs.js
CHANGED
|
@@ -17917,7 +17917,7 @@ var SIZES$3 = {
|
|
|
17917
17917
|
medium: "medium",
|
|
17918
17918
|
large: "large"
|
|
17919
17919
|
};
|
|
17920
|
-
var Input$
|
|
17920
|
+
var Input$2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
17921
17921
|
var _ref2, _otherProps$value, _classnames;
|
|
17922
17922
|
var _ref$size = _ref.size,
|
|
17923
17923
|
size = _ref$size === void 0 ? SIZES$3.medium : _ref$size,
|
|
@@ -18024,7 +18024,7 @@ var Input$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
18024
18024
|
style: "body3"
|
|
18025
18025
|
}, helpText));
|
|
18026
18026
|
});
|
|
18027
|
-
Input$
|
|
18027
|
+
Input$2.displayName = "Input";
|
|
18028
18028
|
|
|
18029
18029
|
var _excluded$i = ["name"];
|
|
18030
18030
|
var FormikInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
@@ -18035,7 +18035,7 @@ var FormikInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
18035
18035
|
}, function (_ref2) {
|
|
18036
18036
|
var field = _ref2.field,
|
|
18037
18037
|
meta = _ref2.meta;
|
|
18038
|
-
return /*#__PURE__*/React__default["default"].createElement(Input$
|
|
18038
|
+
return /*#__PURE__*/React__default["default"].createElement(Input$2, _extends$2({
|
|
18039
18039
|
ref: ref
|
|
18040
18040
|
}, field, {
|
|
18041
18041
|
error: meta.touched ? meta.error : ""
|
|
@@ -21266,7 +21266,7 @@ var containerCSS = function containerCSS(_ref) {
|
|
|
21266
21266
|
position: 'relative'
|
|
21267
21267
|
};
|
|
21268
21268
|
};
|
|
21269
|
-
var SelectContainer = function SelectContainer(props) {
|
|
21269
|
+
var SelectContainer$1 = function SelectContainer(props) {
|
|
21270
21270
|
var children = props.children,
|
|
21271
21271
|
className = props.className,
|
|
21272
21272
|
cx = props.cx,
|
|
@@ -21693,7 +21693,7 @@ var inputStyle = function inputStyle(isHidden) {
|
|
|
21693
21693
|
width: '100%'
|
|
21694
21694
|
}, spacingStyle);
|
|
21695
21695
|
};
|
|
21696
|
-
var Input = function Input(props) {
|
|
21696
|
+
var Input$1 = function Input(props) {
|
|
21697
21697
|
var className = props.className,
|
|
21698
21698
|
cx = props.cx,
|
|
21699
21699
|
getStyles = props.getStyles,
|
|
@@ -21949,7 +21949,7 @@ var components = {
|
|
|
21949
21949
|
GroupHeading: GroupHeading,
|
|
21950
21950
|
IndicatorsContainer: IndicatorsContainer,
|
|
21951
21951
|
IndicatorSeparator: IndicatorSeparator,
|
|
21952
|
-
Input: Input,
|
|
21952
|
+
Input: Input$1,
|
|
21953
21953
|
LoadingIndicator: LoadingIndicator,
|
|
21954
21954
|
Menu: Menu$1,
|
|
21955
21955
|
MenuList: MenuList,
|
|
@@ -21962,7 +21962,7 @@ var components = {
|
|
|
21962
21962
|
MultiValueRemove: MultiValueRemove$2,
|
|
21963
21963
|
Option: Option,
|
|
21964
21964
|
Placeholder: Placeholder$1,
|
|
21965
|
-
SelectContainer: SelectContainer,
|
|
21965
|
+
SelectContainer: SelectContainer$1,
|
|
21966
21966
|
SingleValue: SingleValue,
|
|
21967
21967
|
ValueContainer: ValueContainer$1
|
|
21968
21968
|
};
|
|
@@ -24807,7 +24807,9 @@ var CustomDropdownIndicator = function CustomDropdownIndicator(props) {
|
|
|
24807
24807
|
}, suffix)) : null;
|
|
24808
24808
|
};
|
|
24809
24809
|
var MultiValueRemove$1 = function MultiValueRemove(props) {
|
|
24810
|
-
return /*#__PURE__*/React__default["default"].createElement(components.MultiValueRemove,
|
|
24810
|
+
return /*#__PURE__*/React__default["default"].createElement(components.MultiValueRemove, _extends$2({}, props, {
|
|
24811
|
+
innerProps: _objectSpread$3(_objectSpread$3({}, props.innerProps), {}, _defineProperty$1({}, "data-cy", "".concat(hyphenize(props.data.label), "-remove-icon")))
|
|
24812
|
+
}), /*#__PURE__*/React__default["default"].createElement(neetoIcons.Close, {
|
|
24811
24813
|
size: 16
|
|
24812
24814
|
}));
|
|
24813
24815
|
};
|
|
@@ -24823,17 +24825,31 @@ var CustomValueContainer = function CustomValueContainer(_ref2) {
|
|
|
24823
24825
|
firstChild = _children[0],
|
|
24824
24826
|
rest = _children.slice(1);
|
|
24825
24827
|
var shouldCollapse = !isFocused && value.length > visibleEmailsCount;
|
|
24826
|
-
return /*#__PURE__*/React__default["default"].createElement(components.ValueContainer,
|
|
24828
|
+
return /*#__PURE__*/React__default["default"].createElement(components.ValueContainer, _extends$2({}, props, {
|
|
24829
|
+
innerProps: _objectSpread$3(_objectSpread$3({}, props.innerProps), {}, _defineProperty$1({}, "data-cy", "multi-email-input-container"))
|
|
24830
|
+
}), shouldCollapse ? firstChild.slice(0, visibleEmailsCount) : firstChild, shouldCollapse && /*#__PURE__*/React__default["default"].createElement(Tag, {
|
|
24827
24831
|
label: "".concat(value.length - visibleEmailsCount, " more"),
|
|
24828
24832
|
style: "secondary"
|
|
24829
24833
|
}), rest);
|
|
24830
24834
|
};
|
|
24831
|
-
var CustomClearIndicator = function CustomClearIndicator(
|
|
24832
|
-
return /*#__PURE__*/React__default["default"].createElement(components.ClearIndicator,
|
|
24835
|
+
var CustomClearIndicator = function CustomClearIndicator(props) {
|
|
24836
|
+
return /*#__PURE__*/React__default["default"].createElement(components.ClearIndicator, _extends$2({}, props, {
|
|
24837
|
+
innerProps: _objectSpread$3(_objectSpread$3({}, props.innerProps), {}, _defineProperty$1({}, "data-cy", "clear-all-button"))
|
|
24838
|
+
}), /*#__PURE__*/React__default["default"].createElement(neetoIcons.Close, {
|
|
24833
24839
|
className: "cursor-pointer",
|
|
24834
24840
|
size: 16
|
|
24835
24841
|
}));
|
|
24836
24842
|
};
|
|
24843
|
+
var SelectContainer = function SelectContainer(props) {
|
|
24844
|
+
return /*#__PURE__*/React__default["default"].createElement(components.SelectContainer, _extends$2({}, props, {
|
|
24845
|
+
innerProps: _objectSpread$3(_objectSpread$3({}, props.innerProps), {}, _defineProperty$1({}, "data-cy", "multi-email-select-container"))
|
|
24846
|
+
}));
|
|
24847
|
+
};
|
|
24848
|
+
var Input = function Input(props) {
|
|
24849
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Input, _extends$2({}, props, {
|
|
24850
|
+
"data-cy": "email-select-input-field"
|
|
24851
|
+
}));
|
|
24852
|
+
};
|
|
24837
24853
|
var EMAIL_REGEX = new RegExp("^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}$", "i");
|
|
24838
24854
|
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;
|
|
24839
24855
|
var EMAIL_SEPARATION_REGEX = /[^\s,]+/g;
|
|
@@ -24852,7 +24868,9 @@ var CUSTOM_COMPONENTS = {
|
|
|
24852
24868
|
Control: CustomControl,
|
|
24853
24869
|
MultiValueRemove: MultiValueRemove$1,
|
|
24854
24870
|
ValueContainer: CustomValueContainer,
|
|
24855
|
-
ClearIndicator: CustomClearIndicator
|
|
24871
|
+
ClearIndicator: CustomClearIndicator,
|
|
24872
|
+
SelectContainer: SelectContainer,
|
|
24873
|
+
Input: Input
|
|
24856
24874
|
};
|
|
24857
24875
|
|
|
24858
24876
|
var formatEmailInputOptions = function formatEmailInputOptions(label) {
|
|
@@ -25458,6 +25476,7 @@ var Select = function Select(_ref) {
|
|
|
25458
25476
|
htmlFor: inputId,
|
|
25459
25477
|
required: required
|
|
25460
25478
|
}, labelProps), label), /*#__PURE__*/React__default["default"].createElement(Parent, _extends$2({
|
|
25479
|
+
blurInputOnSelect: false,
|
|
25461
25480
|
classNamePrefix: "neeto-ui-react-select",
|
|
25462
25481
|
"data-cy": "".concat(hyphenize(label), "-select-container"),
|
|
25463
25482
|
defaultValue: findInOptions(defaultValue),
|