@yamada-ui/file-button 0.3.19 → 0.3.20
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/file-button.d.mts +3 -3
- package/dist/file-button.d.ts +3 -3
- package/package.json +4 -4
package/dist/file-button.d.mts
CHANGED
|
@@ -14,7 +14,7 @@ type FileButtonOptions = {
|
|
|
14
14
|
/**
|
|
15
15
|
* The border color when the button is invalid.
|
|
16
16
|
*/
|
|
17
|
-
errorBorderColor?: ColorModeToken<CSS.Property.BorderColor,
|
|
17
|
+
errorBorderColor?: ColorModeToken<CSS.Property.BorderColor, "colors">;
|
|
18
18
|
/**
|
|
19
19
|
* Function to be called when a file change event occurs.
|
|
20
20
|
*/
|
|
@@ -25,8 +25,8 @@ type FileButtonOptions = {
|
|
|
25
25
|
*/
|
|
26
26
|
resetRef?: ForwardedRef<() => void>;
|
|
27
27
|
};
|
|
28
|
-
type InputProps = Partial<Pick<HTMLInputElement,
|
|
29
|
-
type FileButtonProps = Omit<ButtonProps,
|
|
28
|
+
type InputProps = Partial<Pick<HTMLInputElement, "accept" | "multiple">>;
|
|
29
|
+
type FileButtonProps = Omit<ButtonProps, "onChange" | "children"> & InputProps & FileButtonOptions & FormControlOptions;
|
|
30
30
|
declare const FileButton: _yamada_ui_core.Component<"input", FileButtonProps>;
|
|
31
31
|
|
|
32
32
|
export { FileButton, FileButtonProps };
|
package/dist/file-button.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ type FileButtonOptions = {
|
|
|
14
14
|
/**
|
|
15
15
|
* The border color when the button is invalid.
|
|
16
16
|
*/
|
|
17
|
-
errorBorderColor?: ColorModeToken<CSS.Property.BorderColor,
|
|
17
|
+
errorBorderColor?: ColorModeToken<CSS.Property.BorderColor, "colors">;
|
|
18
18
|
/**
|
|
19
19
|
* Function to be called when a file change event occurs.
|
|
20
20
|
*/
|
|
@@ -25,8 +25,8 @@ type FileButtonOptions = {
|
|
|
25
25
|
*/
|
|
26
26
|
resetRef?: ForwardedRef<() => void>;
|
|
27
27
|
};
|
|
28
|
-
type InputProps = Partial<Pick<HTMLInputElement,
|
|
29
|
-
type FileButtonProps = Omit<ButtonProps,
|
|
28
|
+
type InputProps = Partial<Pick<HTMLInputElement, "accept" | "multiple">>;
|
|
29
|
+
type FileButtonProps = Omit<ButtonProps, "onChange" | "children"> & InputProps & FileButtonOptions & FormControlOptions;
|
|
30
30
|
declare const FileButton: _yamada_ui_core.Component<"input", FileButtonProps>;
|
|
31
31
|
|
|
32
32
|
export { FileButton, FileButtonProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/file-button",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.20",
|
|
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.
|
|
38
|
+
"@yamada-ui/core": "0.12.6",
|
|
39
39
|
"@yamada-ui/utils": "0.3.3",
|
|
40
|
-
"@yamada-ui/form-control": "0.3.
|
|
41
|
-
"@yamada-ui/button": "0.3.
|
|
40
|
+
"@yamada-ui/form-control": "0.3.19",
|
|
41
|
+
"@yamada-ui/button": "0.3.17"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"react": "^18.0.0",
|