@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/index.cjs.js
CHANGED
|
@@ -20122,7 +20122,7 @@ var SIZES$5 = {
|
|
|
20122
20122
|
medium: "medium",
|
|
20123
20123
|
large: "large"
|
|
20124
20124
|
};
|
|
20125
|
-
var Input$
|
|
20125
|
+
var Input$2 = /*#__PURE__*/React$5.forwardRef(function (_ref, ref) {
|
|
20126
20126
|
var _ref2, _otherProps$value, _classnames;
|
|
20127
20127
|
var _ref$size = _ref.size,
|
|
20128
20128
|
size = _ref$size === void 0 ? SIZES$5.medium : _ref$size,
|
|
@@ -20229,7 +20229,7 @@ var Input$1 = /*#__PURE__*/React$5.forwardRef(function (_ref, ref) {
|
|
|
20229
20229
|
style: "body3"
|
|
20230
20230
|
}, helpText));
|
|
20231
20231
|
});
|
|
20232
|
-
Input$
|
|
20232
|
+
Input$2.displayName = "Input";
|
|
20233
20233
|
|
|
20234
20234
|
var _excluded$o = ["keyName", "className"];
|
|
20235
20235
|
var Kbd = function Kbd(_ref) {
|
|
@@ -23473,7 +23473,7 @@ var containerCSS = function containerCSS(_ref) {
|
|
|
23473
23473
|
position: 'relative'
|
|
23474
23474
|
};
|
|
23475
23475
|
};
|
|
23476
|
-
var SelectContainer = function SelectContainer(props) {
|
|
23476
|
+
var SelectContainer$1 = function SelectContainer(props) {
|
|
23477
23477
|
var children = props.children,
|
|
23478
23478
|
className = props.className,
|
|
23479
23479
|
cx = props.cx,
|
|
@@ -23900,7 +23900,7 @@ var inputStyle = function inputStyle(isHidden) {
|
|
|
23900
23900
|
width: '100%'
|
|
23901
23901
|
}, spacingStyle);
|
|
23902
23902
|
};
|
|
23903
|
-
var Input = function Input(props) {
|
|
23903
|
+
var Input$1 = function Input(props) {
|
|
23904
23904
|
var className = props.className,
|
|
23905
23905
|
cx = props.cx,
|
|
23906
23906
|
getStyles = props.getStyles,
|
|
@@ -24156,7 +24156,7 @@ var components = {
|
|
|
24156
24156
|
GroupHeading: GroupHeading,
|
|
24157
24157
|
IndicatorsContainer: IndicatorsContainer,
|
|
24158
24158
|
IndicatorSeparator: IndicatorSeparator,
|
|
24159
|
-
Input: Input,
|
|
24159
|
+
Input: Input$1,
|
|
24160
24160
|
LoadingIndicator: LoadingIndicator,
|
|
24161
24161
|
Menu: Menu$1,
|
|
24162
24162
|
MenuList: MenuList,
|
|
@@ -24169,7 +24169,7 @@ var components = {
|
|
|
24169
24169
|
MultiValueRemove: MultiValueRemove$2,
|
|
24170
24170
|
Option: Option,
|
|
24171
24171
|
Placeholder: Placeholder$1,
|
|
24172
|
-
SelectContainer: SelectContainer,
|
|
24172
|
+
SelectContainer: SelectContainer$1,
|
|
24173
24173
|
SingleValue: SingleValue,
|
|
24174
24174
|
ValueContainer: ValueContainer$1
|
|
24175
24175
|
};
|
|
@@ -27014,7 +27014,9 @@ var CustomDropdownIndicator = function CustomDropdownIndicator(props) {
|
|
|
27014
27014
|
}, suffix)) : null;
|
|
27015
27015
|
};
|
|
27016
27016
|
var MultiValueRemove$1 = function MultiValueRemove(props) {
|
|
27017
|
-
return /*#__PURE__*/React__default["default"].createElement(components.MultiValueRemove,
|
|
27017
|
+
return /*#__PURE__*/React__default["default"].createElement(components.MultiValueRemove, _extends$4({}, props, {
|
|
27018
|
+
innerProps: _objectSpread$c(_objectSpread$c({}, props.innerProps), {}, _defineProperty$7({}, "data-cy", "".concat(hyphenize(props.data.label), "-remove-icon")))
|
|
27019
|
+
}), /*#__PURE__*/React__default["default"].createElement(neetoIcons.Close, {
|
|
27018
27020
|
size: 16
|
|
27019
27021
|
}));
|
|
27020
27022
|
};
|
|
@@ -27030,17 +27032,31 @@ var CustomValueContainer = function CustomValueContainer(_ref2) {
|
|
|
27030
27032
|
firstChild = _children[0],
|
|
27031
27033
|
rest = _children.slice(1);
|
|
27032
27034
|
var shouldCollapse = !isFocused && value.length > visibleEmailsCount;
|
|
27033
|
-
return /*#__PURE__*/React__default["default"].createElement(components.ValueContainer,
|
|
27035
|
+
return /*#__PURE__*/React__default["default"].createElement(components.ValueContainer, _extends$4({}, props, {
|
|
27036
|
+
innerProps: _objectSpread$c(_objectSpread$c({}, props.innerProps), {}, _defineProperty$7({}, "data-cy", "multi-email-input-container"))
|
|
27037
|
+
}), shouldCollapse ? firstChild.slice(0, visibleEmailsCount) : firstChild, shouldCollapse && /*#__PURE__*/React__default["default"].createElement(Tag, {
|
|
27034
27038
|
label: "".concat(value.length - visibleEmailsCount, " more"),
|
|
27035
27039
|
style: "secondary"
|
|
27036
27040
|
}), rest);
|
|
27037
27041
|
};
|
|
27038
|
-
var CustomClearIndicator = function CustomClearIndicator(
|
|
27039
|
-
return /*#__PURE__*/React__default["default"].createElement(components.ClearIndicator,
|
|
27042
|
+
var CustomClearIndicator = function CustomClearIndicator(props) {
|
|
27043
|
+
return /*#__PURE__*/React__default["default"].createElement(components.ClearIndicator, _extends$4({}, props, {
|
|
27044
|
+
innerProps: _objectSpread$c(_objectSpread$c({}, props.innerProps), {}, _defineProperty$7({}, "data-cy", "clear-all-button"))
|
|
27045
|
+
}), /*#__PURE__*/React__default["default"].createElement(neetoIcons.Close, {
|
|
27040
27046
|
className: "cursor-pointer",
|
|
27041
27047
|
size: 16
|
|
27042
27048
|
}));
|
|
27043
27049
|
};
|
|
27050
|
+
var SelectContainer = function SelectContainer(props) {
|
|
27051
|
+
return /*#__PURE__*/React__default["default"].createElement(components.SelectContainer, _extends$4({}, props, {
|
|
27052
|
+
innerProps: _objectSpread$c(_objectSpread$c({}, props.innerProps), {}, _defineProperty$7({}, "data-cy", "multi-email-select-container"))
|
|
27053
|
+
}));
|
|
27054
|
+
};
|
|
27055
|
+
var Input = function Input(props) {
|
|
27056
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Input, _extends$4({}, props, {
|
|
27057
|
+
"data-cy": "email-select-input-field"
|
|
27058
|
+
}));
|
|
27059
|
+
};
|
|
27044
27060
|
var EMAIL_REGEX = new RegExp("^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}$", "i");
|
|
27045
27061
|
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;
|
|
27046
27062
|
var EMAIL_SEPARATION_REGEX = /[^\s,]+/g;
|
|
@@ -27059,7 +27075,9 @@ var CUSTOM_COMPONENTS = {
|
|
|
27059
27075
|
Control: CustomControl,
|
|
27060
27076
|
MultiValueRemove: MultiValueRemove$1,
|
|
27061
27077
|
ValueContainer: CustomValueContainer,
|
|
27062
|
-
ClearIndicator: CustomClearIndicator
|
|
27078
|
+
ClearIndicator: CustomClearIndicator,
|
|
27079
|
+
SelectContainer: SelectContainer,
|
|
27080
|
+
Input: Input
|
|
27063
27081
|
};
|
|
27064
27082
|
|
|
27065
27083
|
var formatEmailInputOptions = function formatEmailInputOptions(label) {
|
|
@@ -27980,6 +27998,7 @@ var Select = function Select(_ref) {
|
|
|
27980
27998
|
htmlFor: inputId,
|
|
27981
27999
|
required: required
|
|
27982
28000
|
}, labelProps), label), /*#__PURE__*/React__default["default"].createElement(Parent, _extends$4({
|
|
28001
|
+
blurInputOnSelect: false,
|
|
27983
28002
|
classNamePrefix: "neeto-ui-react-select",
|
|
27984
28003
|
"data-cy": "".concat(hyphenize(label), "-select-container"),
|
|
27985
28004
|
defaultValue: findInOptions(defaultValue),
|
|
@@ -37850,7 +37869,7 @@ exports.Checkbox = Checkbox;
|
|
|
37850
37869
|
exports.ColorPicker = ColorPicker;
|
|
37851
37870
|
exports.DatePicker = DatePicker;
|
|
37852
37871
|
exports.Dropdown = Dropdown;
|
|
37853
|
-
exports.Input = Input$
|
|
37872
|
+
exports.Input = Input$2;
|
|
37854
37873
|
exports.Kbd = Kbd;
|
|
37855
37874
|
exports.Label = Label;
|
|
37856
37875
|
exports.Modal = Modal;
|