helppeople-ui 1.9.6 → 1.10.0
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.
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Image as AntImage, ImageProps as AntImageProps } from 'antd';
|
|
3
|
+
export interface CustomImageConfig extends AntImageProps {
|
|
4
|
+
/**
|
|
5
|
+
* URL de la imagen
|
|
6
|
+
*/
|
|
7
|
+
src?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Ancho de la imagen
|
|
10
|
+
*/
|
|
11
|
+
width?: string | number;
|
|
12
|
+
/**
|
|
13
|
+
* Alto de la imagen
|
|
14
|
+
*/
|
|
15
|
+
height?: string | number;
|
|
16
|
+
/**
|
|
17
|
+
* Texto alternativo
|
|
18
|
+
*/
|
|
19
|
+
alt?: string;
|
|
20
|
+
/**
|
|
21
|
+
* URL de imagen fallback cuando falla la carga
|
|
22
|
+
*/
|
|
23
|
+
fallback?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Placeholder mientras carga la imagen (true para placeholder por defecto)
|
|
26
|
+
*/
|
|
27
|
+
placeholder?: React.ReactNode | boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Habilitar o configurar la vista previa
|
|
30
|
+
*/
|
|
31
|
+
preview?: boolean | AntImageProps["preview"];
|
|
32
|
+
/**
|
|
33
|
+
* Estilos personalizados
|
|
34
|
+
*/
|
|
35
|
+
style?: React.CSSProperties;
|
|
36
|
+
/**
|
|
37
|
+
* Clases CSS adicionales
|
|
38
|
+
*/
|
|
39
|
+
className?: string;
|
|
40
|
+
}
|
|
41
|
+
declare const CustomImage: React.FC<CustomImageConfig>;
|
|
42
|
+
export interface CustomImagePreviewGroupConfig {
|
|
43
|
+
/**
|
|
44
|
+
* Contenido children (imágenes)
|
|
45
|
+
*/
|
|
46
|
+
children?: React.ReactNode;
|
|
47
|
+
/**
|
|
48
|
+
* Habilitar o configurar la vista previa del grupo
|
|
49
|
+
*/
|
|
50
|
+
preview?: boolean | Parameters<typeof AntImage.PreviewGroup>[0]["preview"];
|
|
51
|
+
/**
|
|
52
|
+
* URL de las imágenes para preview (alternativa a children)
|
|
53
|
+
*/
|
|
54
|
+
items?: string[];
|
|
55
|
+
/**
|
|
56
|
+
* URL de imagen fallback para el grupo
|
|
57
|
+
*/
|
|
58
|
+
fallback?: string;
|
|
59
|
+
}
|
|
60
|
+
declare const CustomImagePreviewGroup: React.FC<CustomImagePreviewGroupConfig>;
|
|
61
|
+
export default CustomImage;
|
|
62
|
+
export { CustomImagePreviewGroup as ImagePreviewGroup };
|
package/dist/index.d.ts
CHANGED
|
@@ -76,4 +76,7 @@ export type { CustomTreeProps, CustomDirectoryTreeProps, } from './components/Cu
|
|
|
76
76
|
export type { CustomAvatarConfig, CustomAvatarGroupConfig } from './components/CustomAvatar/CustomAvatar';
|
|
77
77
|
export { default as Badge } from './components/CustomBadge/CustomBadge';
|
|
78
78
|
export type { CustomBadgeConfig } from './components/CustomBadge/CustomBadge';
|
|
79
|
+
export { default as Image } from './components/CustomImage/CustomImage';
|
|
80
|
+
export { ImagePreviewGroup } from './components/CustomImage/CustomImage';
|
|
81
|
+
export type { CustomImageConfig, CustomImagePreviewGroupConfig } from './components/CustomImage/CustomImage';
|
|
79
82
|
export type { TableColumnsType } from 'antd';
|