@moda/om 21.10.0 → 21.12.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/dist/index.esm.js CHANGED
@@ -11156,13 +11156,15 @@ var MultiSelect = function MultiSelect(_ref) {
11156
11156
  }));
11157
11157
  };
11158
11158
 
11159
- var _excluded$i = ["className", "children", "error", "label", "placeholder"];
11159
+ var _excluded$i = ["className", "children", "error", "label", "placeholder", "showErrorIcon"];
11160
11160
  var Field = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
11161
11161
  var className = _ref.className,
11162
11162
  children = _ref.children,
11163
11163
  error = _ref.error,
11164
11164
  label = _ref.label,
11165
11165
  placeholder = _ref.placeholder,
11166
+ _ref$showErrorIcon = _ref.showErrorIcon,
11167
+ showErrorIcon = _ref$showErrorIcon === void 0 ? true : _ref$showErrorIcon,
11166
11168
  rest = _objectWithoutProperties(_ref, _excluded$i);
11167
11169
  var id = useId();
11168
11170
  var errorId = "".concat(id, "-error");
@@ -11189,7 +11191,7 @@ var Field = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
11189
11191
  label: label,
11190
11192
  shiftIconLeftwards: error && children.type === Select,
11191
11193
  'aria-describedby': ariaDescribedBy
11192
- }, rest), children.props)), error && /*#__PURE__*/React__default.createElement("span", {
11194
+ }, rest), children.props)), error && showErrorIcon && /*#__PURE__*/React__default.createElement("span", {
11193
11195
  className: "Field__icon"
11194
11196
  }, /*#__PURE__*/React__default.createElement(Warning16, null))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(TextInput, _extends$1({
11195
11197
  ref: ref,