@linzjs/lui 17.41.2 → 17.41.4
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.41.4](https://github.com/linz/lui/compare/v17.41.3...v17.41.4) (2023-03-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **LuiDateInput:** Update args types for date parsing fn ([#883](https://github.com/linz/lui/issues/883)) ([f95baff](https://github.com/linz/lui/commit/f95baff5c859b33f39fedb7f7dcde1a8c51a644a))
|
|
7
|
+
|
|
8
|
+
## [17.41.3](https://github.com/linz/lui/compare/v17.41.2...v17.41.3) (2023-03-09)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* added title and labels to modal header buttons ([#880](https://github.com/linz/lui/issues/880)) ([9d5edf7](https://github.com/linz/lui/commit/9d5edf7062ef1fcd107de8ab9088d4ab3ccee4d7))
|
|
14
|
+
|
|
1
15
|
## [17.41.2](https://github.com/linz/lui/compare/v17.41.1...v17.41.2) (2023-03-09)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
declare type ParseOptions = {
|
|
3
3
|
allowTwoDigitYear?: boolean;
|
|
4
4
|
};
|
|
5
|
-
export declare const parseTextDate: (value: JSX.IntrinsicElements['input']['value'], options?: ParseOptions) => string
|
|
5
|
+
export declare const parseTextDate: (value: JSX.IntrinsicElements['input']['value'] | null, options?: ParseOptions) => string;
|
|
6
6
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -15643,14 +15643,15 @@ var parse$2 = function (value, options) {
|
|
|
15643
15643
|
return isValidDate ? result : undefined;
|
|
15644
15644
|
};
|
|
15645
15645
|
var parseTextDate = function (value, options) {
|
|
15646
|
+
var _a;
|
|
15646
15647
|
if (!value || typeof value !== 'string') {
|
|
15647
|
-
return;
|
|
15648
|
+
return '';
|
|
15648
15649
|
}
|
|
15649
15650
|
try {
|
|
15650
|
-
return parse$2(value, options);
|
|
15651
|
+
return (_a = parse$2(value, options)) !== null && _a !== void 0 ? _a : '';
|
|
15651
15652
|
}
|
|
15652
|
-
catch (
|
|
15653
|
-
return;
|
|
15653
|
+
catch (_b) {
|
|
15654
|
+
return '';
|
|
15654
15655
|
}
|
|
15655
15656
|
};
|
|
15656
15657
|
|
|
@@ -42451,9 +42452,9 @@ var LuiModalHeader = function (props) {
|
|
|
42451
42452
|
return (React__default["default"].createElement("header", { className: "lui-modal-header-".concat(headerStyle) }, props.headingText && (React__default["default"].createElement("div", { className: "lui-modal-header-title" },
|
|
42452
42453
|
React__default["default"].createElement("h1", null, props.headingText),
|
|
42453
42454
|
React__default["default"].createElement("div", { className: "lui-modal-header-buttons" },
|
|
42454
|
-
props.helpLink && (React__default["default"].createElement("button", { className: "lui-modal-header-help-btn", onClick: function () { return window.open(props.helpLink); } },
|
|
42455
|
+
props.helpLink && (React__default["default"].createElement("button", { "aria-label": 'Modal Help', title: 'Help', className: "lui-modal-header-help-btn", onClick: function () { return window.open(props.helpLink); } },
|
|
42455
42456
|
React__default["default"].createElement(LuiIcon, { name: "ic_help_outline", alt: "Help", size: "lg" }))),
|
|
42456
|
-
headerStyle === 'default' && props.onClose && (React__default["default"].createElement("button", { className: "lui-modal-header-close-btn", onClick: props.onClose },
|
|
42457
|
+
headerStyle === 'default' && props.onClose && (React__default["default"].createElement("button", { "aria-label": 'Modal Close', title: 'Close', className: "lui-modal-header-close-btn", onClick: props.onClose },
|
|
42457
42458
|
React__default["default"].createElement(LuiIcon, { name: "ic_clear", alt: "Help", size: "lg" }))))))));
|
|
42458
42459
|
};
|
|
42459
42460
|
|