@grupor5/raya 0.2.45 → 0.2.46

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.js CHANGED
@@ -4147,6 +4147,10 @@ function DatePickerSingle({
4147
4147
  setInputValue(e.target.value);
4148
4148
  };
4149
4149
  const handleInputBlur = () => {
4150
+ if (inputValue === "") {
4151
+ onDateChange(void 0);
4152
+ return;
4153
+ }
4150
4154
  if (inputValue.length !== 10) return;
4151
4155
  const parsed = dateFns.parse(inputValue, "dd/MM/yyyy", /* @__PURE__ */ new Date());
4152
4156
  if (dateFns.isValid(parsed)) {
package/dist/index.mjs CHANGED
@@ -4116,6 +4116,10 @@ function DatePickerSingle({
4116
4116
  setInputValue(e.target.value);
4117
4117
  };
4118
4118
  const handleInputBlur = () => {
4119
+ if (inputValue === "") {
4120
+ onDateChange(void 0);
4121
+ return;
4122
+ }
4119
4123
  if (inputValue.length !== 10) return;
4120
4124
  const parsed = parse(inputValue, "dd/MM/yyyy", /* @__PURE__ */ new Date());
4121
4125
  if (isValid(parsed)) {
@@ -796,6 +796,10 @@ function DatePickerSingle({
796
796
  setInputValue(e.target.value);
797
797
  };
798
798
  const handleInputBlur = () => {
799
+ if (inputValue === "") {
800
+ onDateChange(void 0);
801
+ return;
802
+ }
799
803
  if (inputValue.length !== 10) return;
800
804
  const parsed = dateFns.parse(inputValue, "dd/MM/yyyy", /* @__PURE__ */ new Date());
801
805
  if (dateFns.isValid(parsed)) {
@@ -774,6 +774,10 @@ function DatePickerSingle({
774
774
  setInputValue(e.target.value);
775
775
  };
776
776
  const handleInputBlur = () => {
777
+ if (inputValue === "") {
778
+ onDateChange(void 0);
779
+ return;
780
+ }
777
781
  if (inputValue.length !== 10) return;
778
782
  const parsed = parse(inputValue, "dd/MM/yyyy", /* @__PURE__ */ new Date());
779
783
  if (isValid(parsed)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grupor5/raya",
3
- "version": "0.2.45",
3
+ "version": "0.2.46",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",