@yamada-ui/file-button 0.3.22 → 0.3.24

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.
@@ -33,7 +33,7 @@ var FileButton = forwardRef(
33
33
  const onChange = useCallback(
34
34
  (ev) => {
35
35
  var _a;
36
- const files = !isNull(ev.currentTarget.files) ? Array.from(ev.currentTarget.files) : null;
36
+ const files = !isNull(ev.currentTarget.files) ? Array.from(ev.currentTarget.files) : void 0;
37
37
  (_a = rest.onChange) == null ? void 0 : _a.call(rest, files);
38
38
  },
39
39
  [rest]
@@ -18,7 +18,7 @@ type FileButtonOptions = {
18
18
  /**
19
19
  * Function to be called when a file change event occurs.
20
20
  */
21
- onChange?: (files: File[] | null) => void;
21
+ onChange?: (files: File[] | undefined) => void;
22
22
  children?: ReactNode | ((props: Props) => ReactNode);
23
23
  /**
24
24
  * Ref to a reset function.
@@ -18,7 +18,7 @@ type FileButtonOptions = {
18
18
  /**
19
19
  * Function to be called when a file change event occurs.
20
20
  */
21
- onChange?: (files: File[] | null) => void;
21
+ onChange?: (files: File[] | undefined) => void;
22
22
  children?: ReactNode | ((props: Props) => ReactNode);
23
23
  /**
24
24
  * Ref to a reset function.
@@ -44,7 +44,7 @@ var FileButton = (0, import_core.forwardRef)(
44
44
  const onChange = (0, import_react.useCallback)(
45
45
  (ev) => {
46
46
  var _a;
47
- const files = !(0, import_utils.isNull)(ev.currentTarget.files) ? Array.from(ev.currentTarget.files) : null;
47
+ const files = !(0, import_utils.isNull)(ev.currentTarget.files) ? Array.from(ev.currentTarget.files) : void 0;
48
48
  (_a = rest.onChange) == null ? void 0 : _a.call(rest, files);
49
49
  },
50
50
  [rest]
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  import {
3
3
  FileButton
4
- } from "./chunk-O5GKUPY5.mjs";
4
+ } from "./chunk-4TI7BRKM.mjs";
5
5
  export {
6
6
  FileButton
7
7
  };
package/dist/index.js CHANGED
@@ -46,7 +46,7 @@ var FileButton = (0, import_core.forwardRef)(
46
46
  const onChange = (0, import_react.useCallback)(
47
47
  (ev) => {
48
48
  var _a;
49
- const files = !(0, import_utils.isNull)(ev.currentTarget.files) ? Array.from(ev.currentTarget.files) : null;
49
+ const files = !(0, import_utils.isNull)(ev.currentTarget.files) ? Array.from(ev.currentTarget.files) : void 0;
50
50
  (_a = rest.onChange) == null ? void 0 : _a.call(rest, files);
51
51
  },
52
52
  [rest]
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  import {
3
3
  FileButton
4
- } from "./chunk-O5GKUPY5.mjs";
4
+ } from "./chunk-4TI7BRKM.mjs";
5
5
  export {
6
6
  FileButton
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/file-button",
3
- "version": "0.3.22",
3
+ "version": "0.3.24",
4
4
  "description": "Yamada UI file button component",
5
5
  "keywords": [
6
6
  "yamada",
@@ -35,10 +35,10 @@
35
35
  "url": "https://github.com/hirotomoyamada/yamada-ui/issues"
36
36
  },
37
37
  "dependencies": {
38
- "@yamada-ui/core": "0.12.7",
38
+ "@yamada-ui/core": "0.12.8",
39
39
  "@yamada-ui/utils": "0.3.3",
40
- "@yamada-ui/form-control": "0.3.20",
41
- "@yamada-ui/button": "0.3.19"
40
+ "@yamada-ui/form-control": "0.3.21",
41
+ "@yamada-ui/button": "0.3.20"
42
42
  },
43
43
  "devDependencies": {
44
44
  "react": "^18.0.0",