helppeople-ui 1.12.3 → 1.12.5
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,5 +33,5 @@ interface CustomButtonProps {
|
|
|
33
33
|
/** Texto o contenido a mostrar en el tooltip al hacer hover (opcional) */
|
|
34
34
|
tooltip?: React.ReactNode;
|
|
35
35
|
}
|
|
36
|
-
declare const CustomButton: React.
|
|
36
|
+
declare const CustomButton: React.ForwardRefExoticComponent<CustomButtonProps & React.RefAttributes<HTMLElement>>;
|
|
37
37
|
export default CustomButton;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { Dropdown as AntDropdown, DropdownProps, MenuProps } from 'antd';
|
|
3
|
+
type DropdownClassNames = {
|
|
4
|
+
root?: string;
|
|
5
|
+
[key: string]: string | undefined;
|
|
6
|
+
};
|
|
3
7
|
export interface CustomDropdownProps extends DropdownProps {
|
|
4
8
|
/**
|
|
5
9
|
* Opciones del menú desplegable
|
|
@@ -9,6 +13,10 @@ export interface CustomDropdownProps extends DropdownProps {
|
|
|
9
13
|
* Texto para el tooltip (opcional)
|
|
10
14
|
*/
|
|
11
15
|
tooltip?: React.ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Semantic popup class names supported by newer Ant Design versions.
|
|
18
|
+
*/
|
|
19
|
+
classNames?: DropdownClassNames;
|
|
12
20
|
}
|
|
13
21
|
interface CustomDropdownComponent extends React.FC<CustomDropdownProps> {
|
|
14
22
|
Button: typeof AntDropdown.Button;
|