@linzjs/lui 17.41.5 → 17.41.6

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.6](https://github.com/linz/lui/compare/v17.41.5...v17.41.6) (2023-03-14)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **LuiDateInput:** remove unnecessary & buggy parse fn on value ([#885](https://github.com/linz/lui/issues/885)) ([aa26b2e](https://github.com/linz/lui/commit/aa26b2e721f5cd09698ba9ba44e0f82f68db8663))
7
+
1
8
  ## [17.41.5](https://github.com/linz/lui/compare/v17.41.4...v17.41.5) (2023-03-13)
2
9
 
3
10
 
package/dist/index.js CHANGED
@@ -15657,8 +15657,7 @@ var parseTextDate = function (value, options) {
15657
15657
 
15658
15658
  var DateInput = React$1.forwardRef(function (props, ref) {
15659
15659
  var valueProp = props.value, onChangeProp = props.onChange, onPasteProp = props.onPaste, inputProps = __rest$1(props, ["value", "onChange", "onPaste"]);
15660
- var value = parseTextDate(valueProp);
15661
- return (React__default["default"].createElement("input", __assign$3({}, inputProps, { ref: ref, pattern: "d{2}/d{2}/d{4}", placeholder: "dd/mm/yyyy", type: 'date', value: value, onChange: function (e) { return onChangeProp === null || onChangeProp === void 0 ? void 0 : onChangeProp(e); }, onPaste: function (e) {
15660
+ return (React__default["default"].createElement("input", __assign$3({}, inputProps, { ref: ref, pattern: "d{2}/d{2}/d{4}", placeholder: "dd/mm/yyyy", type: 'date', value: valueProp, onChange: function (e) { return onChangeProp === null || onChangeProp === void 0 ? void 0 : onChangeProp(e); }, onPaste: function (e) {
15662
15661
  var data = e.clipboardData.getData('text');
15663
15662
  var parsedValue = parseTextDate(data, { allowTwoDigitYear: true });
15664
15663
  if (parsedValue) {