@zenkigen-inc/component-ui 1.20.0 → 1.20.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/dist/index.js CHANGED
@@ -907,11 +907,10 @@ var DatePicker = ({
907
907
  setIsOpen(false);
908
908
  };
909
909
  const handleSelect = (selected) => {
910
- if (!selected) {
911
- return;
910
+ if (selected != null) {
911
+ const selectedKey2 = formatLocalDateKey(selected);
912
+ onChange(createDateFromKey(selectedKey2, timeZone));
912
913
  }
913
- const selectedKey2 = formatLocalDateKey(selected);
914
- onChange(createDateFromKey(selectedKey2, timeZone));
915
914
  setIsOpen(false);
916
915
  };
917
916
  const handleClear = () => {
package/dist/index.mjs CHANGED
@@ -839,11 +839,10 @@ var DatePicker = ({
839
839
  setIsOpen(false);
840
840
  };
841
841
  const handleSelect = (selected) => {
842
- if (!selected) {
843
- return;
842
+ if (selected != null) {
843
+ const selectedKey2 = formatLocalDateKey(selected);
844
+ onChange(createDateFromKey(selectedKey2, timeZone));
844
845
  }
845
- const selectedKey2 = formatLocalDateKey(selected);
846
- onChange(createDateFromKey(selectedKey2, timeZone));
847
846
  setIsOpen(false);
848
847
  };
849
848
  const handleClear = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenkigen-inc/component-ui",
3
- "version": "1.20.0",
3
+ "version": "1.20.1",
4
4
  "repository": "https://github.com/zenkigen/zenkigen-component",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -25,23 +25,23 @@
25
25
  "test:ci": "vitest run"
26
26
  },
27
27
  "devDependencies": {
28
- "@testing-library/jest-dom": "6.4.0",
29
- "@testing-library/react": "16.3.0",
28
+ "@testing-library/jest-dom": "6.9.1",
29
+ "@testing-library/react": "16.3.2",
30
30
  "@testing-library/user-event": "14.6.1",
31
31
  "hygen": "6.2.11",
32
- "tsup": "8.5.0",
33
- "typescript": "5.8.3"
32
+ "tsup": "8.5.1",
33
+ "typescript": "5.9.3"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "react": "^18.0.0 || ^19.0.0",
37
37
  "react-dom": "^18.0.0 || ^19.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@floating-ui/react": "0.27.16",
41
- "@zenkigen-inc/component-config": "1.20.0",
42
- "@zenkigen-inc/component-icons": "1.20.0",
43
- "@zenkigen-inc/component-theme": "1.20.0",
40
+ "@floating-ui/react": "0.27.19",
41
+ "@zenkigen-inc/component-config": "1.20.1",
42
+ "@zenkigen-inc/component-icons": "1.20.1",
43
+ "@zenkigen-inc/component-theme": "1.20.1",
44
44
  "clsx": "2.1.1",
45
- "react-day-picker": "9.13.0"
45
+ "react-day-picker": "9.14.0"
46
46
  }
47
47
  }