@mp-front/components 0.0.1-next-6 → 0.0.1-next-8
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/modal/modal.component.d.ts +28 -1
- package/dist/components/modal/modal.component.d.ts.map +1 -1
- package/dist/components/modal/modal.overlay.d.ts +16 -1
- package/dist/components/modal/modal.overlay.d.ts.map +1 -1
- package/dist/lang/es_MX/index.d.ts +3 -14
- package/dist/lang/es_MX/index.d.ts.map +1 -1
- package/dist/lang/i18n.d.ts +2 -123
- package/dist/lang/i18n.d.ts.map +1 -1
- package/dist/lang/layout/login/index.d.ts +0 -1
- package/dist/lang/layout/login/index.d.ts.map +1 -1
- package/dist/layout/content.component.d.ts.map +1 -1
- package/dist/layout/root-layout.component.d.ts +1 -1
- package/dist/layout/root-layout.component.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/ui-components-hooks.cjs +1 -1
- package/dist/ui-components-hooks.js +1 -1
- package/dist/ui-components-index.cjs +5 -6
- package/dist/ui-components-index.js +9 -9
- package/dist/ui-components-layout.cjs +33 -37
- package/dist/ui-components-layout.js +7722 -6279
- package/dist/useTranslation-QicPQnlv.cjs +1 -0
- package/dist/{useTranslation-DlVfOUdM.js → useTranslation-tTfk6apO.js} +43 -33
- package/package.json +3 -3
- package/dist/lang/components/customer-name-card/en_EN/index.d.ts +0 -8
- package/dist/lang/components/customer-name-card/en_EN/index.d.ts.map +0 -1
- package/dist/lang/components/customer-name-card/es_MX/index.d.ts +0 -8
- package/dist/lang/components/customer-name-card/es_MX/index.d.ts.map +0 -1
- package/dist/lang/components/customer-name-card/index.d.ts +0 -3
- package/dist/lang/components/customer-name-card/index.d.ts.map +0 -1
- package/dist/lang/components/index.d.ts +0 -2
- package/dist/lang/components/index.d.ts.map +0 -1
- package/dist/lang/en_US/index.d.ts +0 -44
- package/dist/lang/en_US/index.d.ts.map +0 -1
- package/dist/lang/layout/login/en_EN/index.d.ts +0 -7
- package/dist/lang/layout/login/en_EN/index.d.ts.map +0 -1
- package/dist/useTranslation-CnSCmJou.cjs +0 -1
|
@@ -1,4 +1,31 @@
|
|
|
1
1
|
import { IModalProps } from '../../interfaces';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Componente Modal principal que gestiona la visualización y comportamiento del modal.
|
|
4
|
+
*
|
|
5
|
+
* @component
|
|
6
|
+
* @param {IModalProps} props - Props del componente Modal
|
|
7
|
+
* @param {boolean} props.isOpen - Si el modal está abierto
|
|
8
|
+
* @param {() => void} [props.onClose] - Función para cerrar el modal
|
|
9
|
+
* @param {React.ReactNode} [props.children] - Contenido adicional del modal
|
|
10
|
+
* @param {React.ReactNode} [props.header] - Encabezado personalizado
|
|
11
|
+
* @param {string} [props.title] - Título del modal
|
|
12
|
+
* @param {string} [props.message] - Mensaje del modal
|
|
13
|
+
* @param {string} [props.type] - Tipo de modal
|
|
14
|
+
* @param {string} [props.titleAlign] - Alineación del título
|
|
15
|
+
* @param {React.ReactNode} [props.buttonOk] - Botón de confirmación
|
|
16
|
+
* @param {React.ReactNode} [props.buttonCancel] - Botón de cancelación
|
|
17
|
+
* @param {boolean} [props.isCloseAble] - Si el modal se puede cerrar
|
|
18
|
+
* @param {string} [props.className] - Clase personalizada para el panel
|
|
19
|
+
* @param {boolean} [props.blur] - Si es true aplica desenfoque (por defecto true)
|
|
20
|
+
* @returns {JSX.Element} El componente Modal renderizado
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* <Modal isOpen={true} title="Título" blur={false} />
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
declare const Modal: ({ isOpen, onClose, children, header, title, message, type, titleAlign, buttonOk, buttonCancel, isCloseAble, className: panelClassName, blur, }: IModalProps & {
|
|
28
|
+
blur?: boolean;
|
|
29
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
3
30
|
export default Modal;
|
|
4
31
|
//# sourceMappingURL=modal.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.component.d.ts","sourceRoot":"","sources":["../../../src/lib/components/modal/modal.component.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE1C,QAAA,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"modal.component.d.ts","sourceRoot":"","sources":["../../../src/lib/components/modal/modal.component.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,QAAA,MAAM,KAAK,mJAcR,WAAW,GAAG;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,4CA+BlC,CAAA;AAED,eAAe,KAAK,CAAA"}
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Componente de overlay para el modal, permite activar o desactivar el desenfoque del fondo.
|
|
3
|
+
*
|
|
4
|
+
* @component
|
|
5
|
+
* @param {object} props - Props del componente
|
|
6
|
+
* @param {boolean} [props.blur=true] - Si es true aplica desenfoque (backdrop-blur-sm), si es false no aplica desenfoque
|
|
7
|
+
* @returns {JSX.Element} Overlay animado del modal
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <ModalOverlay blur={false} />
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
declare const ModalOverlay: ({ blur }: {
|
|
15
|
+
blur?: boolean;
|
|
16
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
2
17
|
export default ModalOverlay;
|
|
3
18
|
//# sourceMappingURL=modal.overlay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.overlay.d.ts","sourceRoot":"","sources":["../../../src/lib/components/modal/modal.overlay.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"modal.overlay.d.ts","sourceRoot":"","sources":["../../../src/lib/components/modal/modal.overlay.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,YAAY,aAAqB;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,4CAiBxD,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
declare const es: {
|
|
2
2
|
translation: {
|
|
3
|
-
customerNameCard: {
|
|
4
|
-
label: string;
|
|
5
|
-
unknown: string;
|
|
6
|
-
};
|
|
7
3
|
layout: {
|
|
4
|
+
header: {
|
|
5
|
+
store: string;
|
|
6
|
+
};
|
|
8
7
|
login: {
|
|
9
8
|
btnLabel: string;
|
|
10
9
|
};
|
|
@@ -18,16 +17,6 @@ declare const es: {
|
|
|
18
17
|
continueSessionPrefix: string;
|
|
19
18
|
continueSessionSuffix: string;
|
|
20
19
|
};
|
|
21
|
-
errorPages: {
|
|
22
|
-
title401: string;
|
|
23
|
-
title403: string;
|
|
24
|
-
title404: string;
|
|
25
|
-
message401: string;
|
|
26
|
-
message403: string;
|
|
27
|
-
message404: string;
|
|
28
|
-
goLogin: string;
|
|
29
|
-
goMenu: string;
|
|
30
|
-
};
|
|
31
20
|
common: {
|
|
32
21
|
yes: string;
|
|
33
22
|
accept: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/lang/es_MX/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/lang/es_MX/index.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuDP,CAAA;AAED,eAAe,EAAE,CAAA"}
|
package/dist/lang/i18n.d.ts
CHANGED
|
@@ -1,124 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
es: {
|
|
4
|
-
translation: {
|
|
5
|
-
customerNameCard: {
|
|
6
|
-
label: string;
|
|
7
|
-
unknown: string;
|
|
8
|
-
};
|
|
9
|
-
layout: {
|
|
10
|
-
login: {
|
|
11
|
-
btnLabel: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
header: {
|
|
15
|
-
signOut: string;
|
|
16
|
-
store: string;
|
|
17
|
-
cashRegister: string;
|
|
18
|
-
roleName: string;
|
|
19
|
-
sessionExp: string;
|
|
20
|
-
continueSessionPrefix: string;
|
|
21
|
-
continueSessionSuffix: string;
|
|
22
|
-
};
|
|
23
|
-
errorPages: {
|
|
24
|
-
title401: string;
|
|
25
|
-
title403: string;
|
|
26
|
-
title404: string;
|
|
27
|
-
message401: string;
|
|
28
|
-
message403: string;
|
|
29
|
-
message404: string;
|
|
30
|
-
goLogin: string;
|
|
31
|
-
goMenu: string;
|
|
32
|
-
};
|
|
33
|
-
common: {
|
|
34
|
-
yes: string;
|
|
35
|
-
accept: string;
|
|
36
|
-
no: string;
|
|
37
|
-
cancel: string;
|
|
38
|
-
send: string;
|
|
39
|
-
save: string;
|
|
40
|
-
name: string;
|
|
41
|
-
names: string;
|
|
42
|
-
lastName: string;
|
|
43
|
-
secondName: string;
|
|
44
|
-
street: string;
|
|
45
|
-
extNumber: string;
|
|
46
|
-
colony: string;
|
|
47
|
-
CP: string;
|
|
48
|
-
upload: string;
|
|
49
|
-
goBack: string;
|
|
50
|
-
goForward: string;
|
|
51
|
-
goToLoginButton: string;
|
|
52
|
-
search: string;
|
|
53
|
-
htmlTitle: string;
|
|
54
|
-
themedark: string;
|
|
55
|
-
goToMenu: string;
|
|
56
|
-
closeMenu: string;
|
|
57
|
-
step: string;
|
|
58
|
-
changeCenter: string;
|
|
59
|
-
closeSession: string;
|
|
60
|
-
yesForward: string;
|
|
61
|
-
blackList: {
|
|
62
|
-
title: string;
|
|
63
|
-
message: string;
|
|
64
|
-
};
|
|
65
|
-
messageChangeCenter: string;
|
|
66
|
-
messageCloseSession: string;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
en: {
|
|
71
|
-
translation: {
|
|
72
|
-
customerNameCard: {
|
|
73
|
-
label: string;
|
|
74
|
-
unknown: string;
|
|
75
|
-
};
|
|
76
|
-
header: {
|
|
77
|
-
signOut: string;
|
|
78
|
-
store: string;
|
|
79
|
-
cashRegister: string;
|
|
80
|
-
roleName: string;
|
|
81
|
-
sessionExp: string;
|
|
82
|
-
continueSessionPrefix: string;
|
|
83
|
-
continueSessionSuffix: string;
|
|
84
|
-
};
|
|
85
|
-
common: {
|
|
86
|
-
yes: string;
|
|
87
|
-
accept: string;
|
|
88
|
-
no: string;
|
|
89
|
-
cancel: string;
|
|
90
|
-
send: string;
|
|
91
|
-
save: string;
|
|
92
|
-
name: string;
|
|
93
|
-
names: string;
|
|
94
|
-
lastName: string;
|
|
95
|
-
secondName: string;
|
|
96
|
-
street: string;
|
|
97
|
-
extNumber: string;
|
|
98
|
-
colony: string;
|
|
99
|
-
CP: string;
|
|
100
|
-
upload: string;
|
|
101
|
-
goBack: string;
|
|
102
|
-
goForward: string;
|
|
103
|
-
goToLoginButton: string;
|
|
104
|
-
search: string;
|
|
105
|
-
htmlTitle: string;
|
|
106
|
-
themedark: string;
|
|
107
|
-
goToMenu: string;
|
|
108
|
-
closeMenu: string;
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
interface ITranslation {
|
|
114
|
-
translation: {
|
|
115
|
-
[namespace: string]: ResourceKey;
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
interface IResources {
|
|
119
|
-
es: ITranslation;
|
|
120
|
-
en: ITranslation;
|
|
121
|
-
}
|
|
122
|
-
export declare const getConfigI18n: (params: IResources) => import('i18next').i18n;
|
|
123
|
-
export {};
|
|
1
|
+
import { default as i18n } from 'i18next';
|
|
2
|
+
export default i18n;
|
|
124
3
|
//# sourceMappingURL=i18n.d.ts.map
|
package/dist/lang/i18n.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/lib/lang/i18n.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/lib/lang/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,SAAS,CAAA;AAY1B,eAAe,IAAI,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/lang/layout/login/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,SAAS,CAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/lang/layout/login/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.component.d.ts","sourceRoot":"","sources":["../../src/lib/layout/content.component.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAE3C;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,OAAO,sCAIjB,cAAc,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"content.component.d.ts","sourceRoot":"","sources":["../../src/lib/layout/content.component.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAE3C;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,OAAO,sCAIjB,cAAc,CAAC,KAAK,CAAC,4CAYvB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-layout.component.d.ts","sourceRoot":"","sources":["../../src/lib/layout/root-layout.component.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"root-layout.component.d.ts","sourceRoot":"","sources":["../../src/lib/layout/root-layout.component.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAK5D;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,QAAA,MAAM,UAAU;sCAAqC,eAAe;;;;;;;;;;;;;CAenE,CAAA;AAMD,OAAO,EAAE,UAAU,EAAE,CAAA"}
|