@moda/om 21.10.0 → 21.11.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.cjs.js +4 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/src/components/Field/Field.d.ts +2 -0
- package/dist/src/components/PasswordInput/PasswordInput.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/Field/Field.tsx +3 -2
package/dist/index.cjs.js
CHANGED
|
@@ -11176,13 +11176,15 @@ var MultiSelect = function MultiSelect(_ref) {
|
|
|
11176
11176
|
}));
|
|
11177
11177
|
};
|
|
11178
11178
|
|
|
11179
|
-
var _excluded$i = ["className", "children", "error", "label", "placeholder"];
|
|
11179
|
+
var _excluded$i = ["className", "children", "error", "label", "placeholder", "showErrorIcon"];
|
|
11180
11180
|
var Field = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11181
11181
|
var className = _ref.className,
|
|
11182
11182
|
children = _ref.children,
|
|
11183
11183
|
error = _ref.error,
|
|
11184
11184
|
label = _ref.label,
|
|
11185
11185
|
placeholder = _ref.placeholder,
|
|
11186
|
+
_ref$showErrorIcon = _ref.showErrorIcon,
|
|
11187
|
+
showErrorIcon = _ref$showErrorIcon === void 0 ? true : _ref$showErrorIcon,
|
|
11186
11188
|
rest = _objectWithoutProperties(_ref, _excluded$i);
|
|
11187
11189
|
var id = React.useId();
|
|
11188
11190
|
var errorId = "".concat(id, "-error");
|
|
@@ -11209,7 +11211,7 @@ var Field = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
11209
11211
|
label: label,
|
|
11210
11212
|
shiftIconLeftwards: error && children.type === Select,
|
|
11211
11213
|
'aria-describedby': ariaDescribedBy
|
|
11212
|
-
}, rest), children.props)), error && /*#__PURE__*/React.createElement("span", {
|
|
11214
|
+
}, rest), children.props)), error && showErrorIcon && /*#__PURE__*/React.createElement("span", {
|
|
11213
11215
|
className: "Field__icon"
|
|
11214
11216
|
}, /*#__PURE__*/React.createElement(Warning16, null))) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TextInput, _extends$1({
|
|
11215
11217
|
ref: ref,
|