@beweco/aurora-ui 0.0.8 → 0.0.10
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/assets/css/styles.css +1 -1
- package/dist/index.cjs.js +514 -4
- package/dist/index.esm.js +516 -7
- package/dist/types/components/UploadFile/UploadFile.d.ts +20 -0
- package/dist/types/components/UploadFile/UploadFile.d.ts.map +1 -0
- package/dist/types/components/UploadFile/UploadFile.types.d.ts +104 -0
- package/dist/types/components/UploadFile/UploadFile.types.d.ts.map +1 -0
- package/dist/types/components/UploadFile/index.d.ts +3 -0
- package/dist/types/components/UploadFile/index.d.ts.map +1 -0
- package/dist/types/components/phone/Phone.d.ts +10 -0
- package/dist/types/components/phone/Phone.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Traducciones para el componente UploadFile
|
|
3
|
+
*/
|
|
4
|
+
export interface UploadFileTranslations {
|
|
5
|
+
/** Texto principal del área de carga */
|
|
6
|
+
uploadText?: string;
|
|
7
|
+
/** Texto secundario o de ayuda */
|
|
8
|
+
subText?: string;
|
|
9
|
+
/** Texto cuando se arrastra un archivo */
|
|
10
|
+
dragText?: string;
|
|
11
|
+
/** Mensaje de error por múltiples archivos */
|
|
12
|
+
multipleFilesError?: string;
|
|
13
|
+
/** Mensaje de error por límite de archivos excedido */
|
|
14
|
+
maxFilesError?: string;
|
|
15
|
+
/** Mensaje de error por tipo de archivo no válido */
|
|
16
|
+
invalidFileTypeError?: string;
|
|
17
|
+
/** Mensaje de error por tamaño de archivo excedido */
|
|
18
|
+
maxFileSizeError?: string;
|
|
19
|
+
/** Etiqueta ARIA para el botón de remover archivo */
|
|
20
|
+
removeFileAriaLabel?: string;
|
|
21
|
+
/** Etiqueta ARIA para el área de carga */
|
|
22
|
+
uploadAreaAriaLabel?: string;
|
|
23
|
+
/** Título del modal de recorte */
|
|
24
|
+
cropModalTitle?: string;
|
|
25
|
+
/** Texto del botón de guardar recorte */
|
|
26
|
+
cropSaveButton?: string;
|
|
27
|
+
/** Texto del botón de cancelar recorte */
|
|
28
|
+
cropCancelButton?: string;
|
|
29
|
+
/** Etiqueta para el control de zoom */
|
|
30
|
+
cropZoomLabel?: string;
|
|
31
|
+
/** Instrucciones de recorte */
|
|
32
|
+
cropInstructions?: string;
|
|
33
|
+
/** Etiqueta para el color de fondo */
|
|
34
|
+
cropBackgroundLabel?: string;
|
|
35
|
+
/** Opciones de color de fondo */
|
|
36
|
+
cropBackgroundWhite?: string;
|
|
37
|
+
cropBackgroundBlack?: string;
|
|
38
|
+
cropBackgroundTransparent?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Configuración para recorte de imagen
|
|
42
|
+
*/
|
|
43
|
+
export interface CropConfig {
|
|
44
|
+
/** Ancho objetivo de la imagen recortada */
|
|
45
|
+
targetWidth: number;
|
|
46
|
+
/** Alto objetivo de la imagen recortada */
|
|
47
|
+
targetHeight: number;
|
|
48
|
+
/** Texto del botón de guardar recorte */
|
|
49
|
+
textButton?: string;
|
|
50
|
+
/** Color del botón de guardar recorte */
|
|
51
|
+
colorButton?: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Props del componente UploadFile
|
|
55
|
+
*/
|
|
56
|
+
export interface UploadFileProps {
|
|
57
|
+
/** Texto principal del área de carga */
|
|
58
|
+
text?: string;
|
|
59
|
+
/** Color del texto principal */
|
|
60
|
+
textColor?: string;
|
|
61
|
+
/** Texto secundario o de ayuda */
|
|
62
|
+
subText?: string;
|
|
63
|
+
/** Color del borde */
|
|
64
|
+
borderColor?: string;
|
|
65
|
+
/** Color del icono */
|
|
66
|
+
iconColor?: string;
|
|
67
|
+
/** Color de fondo */
|
|
68
|
+
backgroundColor?: string;
|
|
69
|
+
/** Ancho del componente */
|
|
70
|
+
width?: string;
|
|
71
|
+
/** Alto del componente */
|
|
72
|
+
height?: string;
|
|
73
|
+
/** Permitir múltiples archivos */
|
|
74
|
+
multiple?: boolean;
|
|
75
|
+
/** Número máximo de archivos */
|
|
76
|
+
maxFiles?: number;
|
|
77
|
+
/** Tamaño máximo de archivo en bytes */
|
|
78
|
+
maxFileSize?: number;
|
|
79
|
+
/** Tipos de archivo aceptados */
|
|
80
|
+
acceptedFiles?: string | string[];
|
|
81
|
+
/** Icono a mostrar */
|
|
82
|
+
icon?: string;
|
|
83
|
+
/** Función callback al subir archivos */
|
|
84
|
+
onUpload: (files: File[]) => void;
|
|
85
|
+
/** Función callback para manejar errores de validación */
|
|
86
|
+
onError?: (message: string) => void;
|
|
87
|
+
/** Estado de error */
|
|
88
|
+
error?: boolean;
|
|
89
|
+
/** Estado de éxito */
|
|
90
|
+
success?: boolean;
|
|
91
|
+
/** Estado deshabilitado */
|
|
92
|
+
disabled?: boolean;
|
|
93
|
+
/** Texto del mensaje de error */
|
|
94
|
+
errorText?: string;
|
|
95
|
+
/** Configuración para recorte de imagen */
|
|
96
|
+
cropConfig?: CropConfig;
|
|
97
|
+
/** Archivo de imagen preseleccionado */
|
|
98
|
+
image?: File;
|
|
99
|
+
/** Clases CSS adicionales */
|
|
100
|
+
className?: string;
|
|
101
|
+
/** Traducciones para i18n */
|
|
102
|
+
translations?: UploadFileTranslations;
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=UploadFile.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UploadFile.types.d.ts","sourceRoot":"","sources":["../../../../src/components/UploadFile/UploadFile.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACtC,wCAAwC;IACxC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8CAA8C;IAC9C,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AAe,EACf,sBAAsB,EACtB,UAAU,GACV,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
+
export interface PhoneTranslations {
|
|
3
|
+
label?: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
searchPlaceholder?: string;
|
|
6
|
+
selectCountryAriaLabel?: string;
|
|
7
|
+
expandListAriaLabel?: string;
|
|
8
|
+
noCountriesFound?: string;
|
|
9
|
+
}
|
|
2
10
|
export interface PhoneInputProps {
|
|
3
11
|
label?: string;
|
|
4
12
|
required?: boolean;
|
|
@@ -6,8 +14,10 @@ export interface PhoneInputProps {
|
|
|
6
14
|
errorText?: string;
|
|
7
15
|
value?: string;
|
|
8
16
|
onChange?: (value: string) => void;
|
|
17
|
+
onBlur?: () => void;
|
|
9
18
|
disabled?: boolean;
|
|
10
19
|
name?: string;
|
|
20
|
+
translations?: PhoneTranslations;
|
|
11
21
|
}
|
|
12
22
|
export declare const Phone: React.FC<PhoneInputProps>;
|
|
13
23
|
export default Phone;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Phone.d.ts","sourceRoot":"","sources":["../../../../src/components/phone/Phone.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Phone.d.ts","sourceRoot":"","sources":["../../../../src/components/phone/Phone.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiD/B,MAAM,WAAW,iBAAiB;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC1B;AAWD,MAAM,WAAW,eAAe;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,iBAAiB,CAAC;CACjC;AAED,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAwM3C,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from "./components/button";
|
|
|
3
3
|
export * from "./components/icon";
|
|
4
4
|
export * from "./components/menu";
|
|
5
5
|
export * from "./components/phone";
|
|
6
|
+
export * from "./components/UploadFile";
|
|
6
7
|
export { themeColors } from "./styles/colors.default";
|
|
7
8
|
export * from "./providers/theme";
|
|
8
9
|
export * from "./contexts/theme";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AAExC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
|