@rocket.chat/fuselage 0.72.0 → 0.72.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/components/Button/ActionButton.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/fuselage.development.js +1 -1
- package/dist/fuselage.development.js.map +1 -1
- package/dist/fuselage.production.js +1 -1
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ declare const ActionButton: import("react").ForwardRefExoticComponent<import("..
|
|
|
24
24
|
square?: boolean;
|
|
25
25
|
external?: boolean;
|
|
26
26
|
icon?: IconProps["name"];
|
|
27
|
-
} & Omit<import("react").AllHTMLAttributes<
|
|
27
|
+
} & Omit<import("react").AllHTMLAttributes<HTMLButtonElement | HTMLAnchorElement>, "is" | "size" | "className"> & ButtonSize & {
|
|
28
28
|
icon: IconProps["name"];
|
|
29
29
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
30
30
|
export default ActionButton;
|
|
@@ -34,6 +34,6 @@ declare const Button: import("react").ForwardRefExoticComponent<BoxProps & {
|
|
|
34
34
|
square?: boolean;
|
|
35
35
|
external?: boolean;
|
|
36
36
|
icon?: IconProps["name"];
|
|
37
|
-
} & Omit<AllHTMLAttributes<
|
|
37
|
+
} & Omit<AllHTMLAttributes<HTMLButtonElement | HTMLAnchorElement>, "is" | "size" | "className"> & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
38
38
|
export default Button;
|
|
39
39
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -4,7 +4,7 @@ export type IconProps = Omit<BoxProps, 'name' | 'size'> & {
|
|
|
4
4
|
name: IconName;
|
|
5
5
|
size?: BoxProps['width'];
|
|
6
6
|
};
|
|
7
|
-
declare const Icon: import("react").ForwardRefExoticComponent<Omit<BoxProps, "
|
|
7
|
+
declare const Icon: import("react").ForwardRefExoticComponent<Omit<BoxProps, "name" | "size"> & {
|
|
8
8
|
name: IconName;
|
|
9
9
|
size?: BoxProps["width"];
|
|
10
10
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -9,7 +9,7 @@ export type SelectProps<T, V extends Key> = Omit<AriaSelectProps<T>, 'value' | '
|
|
|
9
9
|
options: SelectOption[];
|
|
10
10
|
small?: boolean;
|
|
11
11
|
} & Omit<AllHTMLAttributes<HTMLElement>, 'value' | 'onChange'>;
|
|
12
|
-
declare const Select: import("react").ForwardRefExoticComponent<Omit<AriaSelectProps<object>, "value" | "
|
|
12
|
+
declare const Select: import("react").ForwardRefExoticComponent<Omit<AriaSelectProps<object>, "value" | "onChange" | "children"> & {
|
|
13
13
|
error?: string;
|
|
14
14
|
placeholder?: string;
|
|
15
15
|
value?: Key | null | undefined;
|
|
@@ -3410,7 +3410,7 @@ const InputBox = (0, react_1.forwardRef)(function InputBox({ className, addon, e
|
|
|
3410
3410
|
if (addon && innerRef.current && innerRef.current.parentElement) {
|
|
3411
3411
|
innerRef.current.parentElement.classList.toggle('invalid', !innerRef.current.checkValidity());
|
|
3412
3412
|
}
|
|
3413
|
-
}, []);
|
|
3413
|
+
}, [addon, error]);
|
|
3414
3414
|
const handleChange = (0, react_1.useCallback)((event) => {
|
|
3415
3415
|
if (addon && innerRef.current && innerRef.current.parentElement) {
|
|
3416
3416
|
innerRef.current.parentElement.classList.toggle('invalid', !innerRef.current.checkValidity());
|