@bigbinary/neetoui 5.2.21 → 5.2.23

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
@@ -17519,10 +17519,11 @@ var getScrollbarWidth = function getScrollbarWidth() {
17519
17519
  return scrollbarWidth;
17520
17520
  };
17521
17521
  var noop$1 = function noop() {};
17522
- var hyphenize = function hyphenize(string) {
17522
+ var hyphenize = function hyphenize(input) {
17523
17523
  var fallbackString = "nui";
17524
- if (string && typeof string === "string" && string.replace) {
17525
- return string.replace(/[\s_]/g, "-").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/-+/g, "-").toLowerCase();
17524
+ if (typeof input === "number") return String(input);
17525
+ if (input && typeof input === "string" && input.replace) {
17526
+ return input.replace(/[\s_]/g, "-").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/-+/g, "-").toLowerCase();
17526
17527
  }
17527
17528
  return fallbackString;
17528
17529
  };
@@ -22902,7 +22903,7 @@ var css = function css(_ref) {
22902
22903
  whiteSpace: 'nowrap'
22903
22904
  };
22904
22905
  };
22905
- var SingleValue = function SingleValue(props) {
22906
+ var SingleValue$1 = function SingleValue(props) {
22906
22907
  var children = props.children,
22907
22908
  className = props.className,
22908
22909
  cx = props.cx,
@@ -22942,7 +22943,7 @@ var components = {
22942
22943
  Option: Option,
22943
22944
  Placeholder: Placeholder$1,
22944
22945
  SelectContainer: SelectContainer$1,
22945
- SingleValue: SingleValue,
22946
+ SingleValue: SingleValue$1,
22946
22947
  ValueContainer: ValueContainer$1
22947
22948
  };
22948
22949
  var defaultComponents = function defaultComponents(props) {
@@ -25751,6 +25752,7 @@ var Tag = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
25751
25752
  "data-testid": "class-icon"
25752
25753
  }, /*#__PURE__*/React__default.createElement(Icon, null)), renderLabel, onClose && /*#__PURE__*/React__default.createElement("span", {
25753
25754
  className: "neeto-ui-tag__close",
25755
+ "data-cy": "tag-close-icon",
25754
25756
  "data-testid": "tag-close-button",
25755
25757
  onClick: !disabled ? onClose : null
25756
25758
  }, /*#__PURE__*/React__default.createElement(Close, null)));
@@ -26350,7 +26352,9 @@ var STRATEGIES = {
26350
26352
  fixed: "fixed"
26351
26353
  };
26352
26354
  var DropdownIndicator = function DropdownIndicator(props) {
26353
- return /*#__PURE__*/React__default.createElement(components.DropdownIndicator, props, /*#__PURE__*/React__default.createElement(Down, {
26355
+ return /*#__PURE__*/React__default.createElement(components.DropdownIndicator, _extends$2({}, props, {
26356
+ innerProps: _objectSpread$2(_objectSpread$2({}, props.innerProps), {}, _defineProperty$1({}, "data-cy", "action-select-indicator"))
26357
+ }), /*#__PURE__*/React__default.createElement(Down, {
26354
26358
  size: 16
26355
26359
  }));
26356
26360
  };
@@ -26395,6 +26399,13 @@ var Menu = function Menu(props) {
26395
26399
  })
26396
26400
  }));
26397
26401
  };
26402
+ var SingleValue = function SingleValue(props) {
26403
+ return /*#__PURE__*/React__default.createElement(components.SingleValue, _extends$2({}, props, {
26404
+ innerProps: _objectSpread$2(_objectSpread$2({}, props.innerProps), {}, {
26405
+ "data-cy": "select-single-value"
26406
+ })
26407
+ }));
26408
+ };
26398
26409
  var ValueContainer = function ValueContainer(props) {
26399
26410
  var selectProps = props.selectProps;
26400
26411
  return /*#__PURE__*/React__default.createElement(components.ValueContainer, _extends$2({}, props, {
@@ -26538,7 +26549,8 @@ var Select = function Select(_ref) {
26538
26549
  Placeholder: Placeholder,
26539
26550
  Menu: Menu,
26540
26551
  ValueContainer: ValueContainer,
26541
- MenuList: MenuList
26552
+ MenuList: MenuList,
26553
+ SingleValue: SingleValue
26542
26554
  }, componentOverrides)
26543
26555
  }, portalProps, otherProps)), !!error && /*#__PURE__*/React__default.createElement("p", {
26544
26556
  className: "neeto-ui-input__error",