@linzjs/lui 17.44.0 → 17.45.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [17.45.1](https://github.com/linz/lui/compare/v17.45.0...v17.45.1) (2023-03-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * updating splash update modal styles ([#900](https://github.com/linz/lui/issues/900)) ([03efd9d](https://github.com/linz/lui/commit/03efd9d7f6f7734b26909c90fd37b268e030306d))
7
+
8
+ # [17.45.0](https://github.com/linz/lui/compare/v17.44.0...v17.45.0) (2023-03-22)
9
+
10
+
11
+ ### Features
12
+
13
+ * **LuiTextAreaInput:** Add warning message support for LuiTextAreaInput ([#901](https://github.com/linz/lui/issues/901)) ([296206d](https://github.com/linz/lui/commit/296206d7d07ec2f1d6b4953668117306110252aa))
14
+
1
15
  # [17.44.0](https://github.com/linz/lui/compare/v17.43.3...v17.44.0) (2023-03-22)
2
16
 
3
17
 
@@ -6,5 +6,6 @@ export interface LuiTextAreaInputProps {
6
6
  onChange?: ChangeEventHandler<HTMLTextAreaElement>;
7
7
  value: string;
8
8
  error?: string | boolean;
9
+ warning?: string;
9
10
  }
10
11
  export declare const LuiTextAreaInput: (props: LuiTextAreaInputProps) => JSX.Element;
package/dist/index.js CHANGED
@@ -15778,7 +15778,7 @@ var LuiSelectInput = function (props) {
15778
15778
  var LuiTextAreaInput = function (props) {
15779
15779
  var _a, _b;
15780
15780
  var id = useGenerateOrDefaultId((_a = props.inputProps) === null || _a === void 0 ? void 0 : _a.id);
15781
- return (React__default["default"].createElement("div", { className: clsx$1('LuiTextAreaInput', ((_b = props.inputProps) === null || _b === void 0 ? void 0 : _b.disabled) ? 'isDisabled' : '', (props === null || props === void 0 ? void 0 : props.error) ? 'hasError' : '') },
15781
+ return (React__default["default"].createElement("div", { className: clsx$1('LuiTextAreaInput', ((_b = props.inputProps) === null || _b === void 0 ? void 0 : _b.disabled) ? 'isDisabled' : '', props.error ? 'hasError' : '', props.warning ? 'hasWarning' : '') },
15782
15782
  React__default["default"].createElement("label", { htmlFor: id },
15783
15783
  props.mandatory && (React__default["default"].createElement("span", { className: "LuiTextAreaInput-mandatory" }, "*")),
15784
15784
  React__default["default"].createElement("span", { className: "LuiTextAreaInput-label" }, props.label),
@@ -15787,7 +15787,10 @@ var LuiTextAreaInput = function (props) {
15787
15787
  React__default["default"].createElement("textarea", __assign$3({ id: id, value: props.value, onChange: props.onChange, rows: 5 }, props.inputProps)))),
15788
15788
  props.error && (React__default["default"].createElement("span", { className: "LuiTextAreaInput-error" },
15789
15789
  React__default["default"].createElement(LuiIcon, { alt: "error", name: "ic_error", className: "LuiTextAreaInput-error-icon", size: "sm", status: "error" }),
15790
- props.error))));
15790
+ props.error)),
15791
+ props.warning && (React__default["default"].createElement("span", { className: "LuiTextAreaInput-warning" },
15792
+ React__default["default"].createElement(LuiIcon, { alt: "warning", name: "ic_warning", className: "LuiTextAreaInput-warning-icon", size: "sm", status: "warning" }),
15793
+ props.warning))));
15791
15794
  };
15792
15795
 
15793
15796
  var LuiDateInput = function (_a) {
@@ -42388,7 +42391,7 @@ var LuiUpdatesSplashModal = function (props) {
42388
42391
  }
42389
42392
  return (React__default["default"].createElement(Modal, { isOpen: props.enabled &&
42390
42393
  showModal &&
42391
- props.releaseVersion.trim() !== currentVersion, shouldCloseOnEsc: true, onRequestClose: handleClose, shouldCloseOnOverlayClick: true, contentLabel: "Recent updates", className: "lui-splash-content", overlayClassName: "splash_overlay" },
42394
+ props.releaseVersion.trim() !== currentVersion, shouldCloseOnEsc: true, onRequestClose: handleClose, shouldCloseOnOverlayClick: true, contentLabel: "Recent updates", className: "lui-splash-content lui-box-shadow", overlayClassName: "splash_overlay" },
42392
42395
  React__default["default"].createElement("div", { className: clsx$1('lui-large-feature-notification', props.wrapperClass) },
42393
42396
  React__default["default"].createElement("div", { className: "lui-feature-header" },
42394
42397
  React__default["default"].createElement("h1", null, props.header),