@linzjs/lui 17.41.3 → 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,10 @@
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
+
1
8
  ## [17.41.3](https://github.com/linz/lui/compare/v17.41.2...v17.41.3) (2023-03-09)
2
9
 
3
10
 
@@ -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 | undefined;
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 (_a) {
15653
- return;
15653
+ catch (_b) {
15654
+ return '';
15654
15655
  }
15655
15656
  };
15656
15657