beesoft-components 0.12.0-0 → 0.12.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.
- package/dist/beesoft-components.css +1 -1
- package/dist/beesoft-components.css.gz +0 -0
- package/dist/index.es.js +34050 -7139
- package/dist/index.es.js.gz +0 -0
- package/dist/index.umd.js +230 -2
- package/dist/index.umd.js.gz +0 -0
- package/package.json +1 -1
- package/types/index.d.ts +56 -0
package/dist/index.umd.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -24,6 +24,62 @@ import { TypeOrArray } from '@beesoft/common';
|
|
|
24
24
|
|
|
25
25
|
export declare function applyBeeSoftTheme(theme: Record<string, unknown>): void;
|
|
26
26
|
|
|
27
|
+
export declare const AvatarEditor: ({ width, height, label, source, showPreviewOnFileLoad, cropRadius, cropColor, closeColor, shadingColor, shadingOpacity, onEdit, onRemove }: AvatarEditorProps) => JSX_2.Element;
|
|
28
|
+
|
|
29
|
+
declare interface AvatarEditorProps {
|
|
30
|
+
/**
|
|
31
|
+
* The visible width of the display area; this will be used to resize the loaded image to a viewable size. If width is
|
|
32
|
+
* set do not set the height.
|
|
33
|
+
*/
|
|
34
|
+
width?: number;
|
|
35
|
+
/**
|
|
36
|
+
* The visible height of the display area; this will be used to resize the loaded image to a viewable size. If height
|
|
37
|
+
* is set do not set the width.
|
|
38
|
+
*/
|
|
39
|
+
height?: number;
|
|
40
|
+
/**
|
|
41
|
+
* The text to display when no file is loaded.
|
|
42
|
+
*/
|
|
43
|
+
label?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The base64 encoded image to show in the editor.
|
|
46
|
+
*/
|
|
47
|
+
source?: string;
|
|
48
|
+
/**
|
|
49
|
+
* When true (the default) a preview cropped image is created when the file first loads.
|
|
50
|
+
*/
|
|
51
|
+
showPreviewOnFileLoad?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* The default size of the crop radius circle.
|
|
54
|
+
*/
|
|
55
|
+
cropRadius?: number;
|
|
56
|
+
/**
|
|
57
|
+
* The color of the crop circle and adjustment icon (default gray).
|
|
58
|
+
*/
|
|
59
|
+
cropColor?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The color of the close/remove icon (default gray).
|
|
62
|
+
*/
|
|
63
|
+
closeColor?: string;
|
|
64
|
+
/**
|
|
65
|
+
* The color of the non-cropped part of the image (default gray).
|
|
66
|
+
*/
|
|
67
|
+
shadingColor?: string;
|
|
68
|
+
/**
|
|
69
|
+
* The opacity level applied to the shader (default 0.4).
|
|
70
|
+
*/
|
|
71
|
+
shadingOpacity?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Event fired when an edit operation is performed.
|
|
74
|
+
* @param data {string} - The resulting image as a Base64 string.
|
|
75
|
+
*/
|
|
76
|
+
onEdit?: (data?: string) => void;
|
|
77
|
+
/**
|
|
78
|
+
* Event fired when the loaded image is removed.
|
|
79
|
+
*/
|
|
80
|
+
onRemove?: () => void;
|
|
81
|
+
}
|
|
82
|
+
|
|
27
83
|
declare interface BeeSoftContextProps {
|
|
28
84
|
overlayKeepOnScreen?: boolean;
|
|
29
85
|
useAnimations?: boolean;
|