@eclass/ui-kit 1.56.0 → 1.57.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/eclass-ui-kit.es.js +36 -20
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +29 -29
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/organisms/Alerts/FlashNotification.d.ts +0 -13
- package/dist/organisms/Alerts/FlashNotification.d.ts.map +1 -1
- package/dist/organisms/Alerts/types.d.ts +1 -2
- package/dist/organisms/Alerts/utils/useFlashNotification.d.ts +1 -1
- package/dist/organisms/Alerts/utils/useFlashNotification.d.ts.map +1 -1
- package/dist/organisms/Modals/Modal/Modal.d.ts.map +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IFlashNotificationProps } from './types.d';
|
|
3
|
-
/**
|
|
4
|
-
* Componente de notificación flash que se muestra centrada en la parte superior de la pantalla.
|
|
5
|
-
* Para implementarlo, se usa en conjunto con el hook useFlashNotification.
|
|
6
|
-
* @example Llamado useFlashNotification y asignación de props
|
|
7
|
-
* const { show, active, config } = useFlashNotification({
|
|
8
|
-
* state: 'info',
|
|
9
|
-
* message: 'Respuesta guardada',
|
|
10
|
-
*})
|
|
11
|
-
* @example Definición de trigger que activa la notificación
|
|
12
|
-
* <button onClick={() => { active()}}> Activar notificación </button>
|
|
13
|
-
* @example Componente FlashNotification recibiendo argumentos
|
|
14
|
-
* <FlashNotification {...config} show={show} />
|
|
15
|
-
*/
|
|
16
3
|
export declare function FlashNotification({ message, state, show, m, width, }: IFlashNotificationProps): JSX.Element;
|
|
17
4
|
//# sourceMappingURL=FlashNotification.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlashNotification.d.ts","sourceRoot":"","sources":["../../../src/organisms/Alerts/FlashNotification.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"FlashNotification.d.ts","sourceRoot":"","sources":["../../../src/organisms/Alerts/FlashNotification.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAA;AA2BnD,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,KAAK,EACL,IAAI,EACJ,CAAC,EACD,KAAK,GACN,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAwDvC"}
|
|
@@ -51,8 +51,8 @@ export interface IAlertProps {
|
|
|
51
51
|
// agrega el link al final del texto
|
|
52
52
|
endTextLink?: string
|
|
53
53
|
onClickLink?: () => void
|
|
54
|
-
maxContent?: boolean
|
|
55
54
|
width?: string
|
|
55
|
+
maxContent?: boolean
|
|
56
56
|
sx?: CSSObject
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -76,6 +76,5 @@ export interface IFlashNotificationProps {
|
|
|
76
76
|
*/
|
|
77
77
|
state: TState
|
|
78
78
|
show?: boolean
|
|
79
|
-
maxContent?: boolean
|
|
80
79
|
width?: string
|
|
81
80
|
}
|
|
@@ -15,5 +15,5 @@ import { IFlashNotificationProps } from '../types';
|
|
|
15
15
|
* @example Componente FlashNotification recibiendo argumentos
|
|
16
16
|
* <FlashNotification {...config} show={show} />
|
|
17
17
|
*/
|
|
18
|
-
export declare const useFlashNotification: ({ state, message,
|
|
18
|
+
export declare const useFlashNotification: ({ state, message, width }: IFlashNotificationProps) => any;
|
|
19
19
|
//# sourceMappingURL=useFlashNotification.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFlashNotification.d.ts","sourceRoot":"","sources":["../../../../src/organisms/Alerts/utils/useFlashNotification.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAA;AAGlD;;;;;;;;;;;;;;;GAeG;AAEH,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"useFlashNotification.d.ts","sourceRoot":"","sources":["../../../../src/organisms/Alerts/utils/useFlashNotification.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAA;AAGlD;;;;;;;;;;;;;;;GAeG;AAEH,eAAO,MAAM,oBAAoB,8BAA+B,uBAAuB,KAAG,GAiCzF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../../src/organisms/Modals/Modal/Modal.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAIjC,eAAO,MAAM,mBAAmB,MAAM,CAAA;AACtC,eAAO,MAAM,YAAY;;;CAGxB,CAAA;AAED,eAAO,MAAM,KAAK,sIAWf,MAAM,KAAG,
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../../src/organisms/Modals/Modal/Modal.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAIjC,eAAO,MAAM,mBAAmB,MAAM,CAAA;AACtC,eAAO,MAAM,YAAY;;;CAGxB,CAAA;AAED,eAAO,MAAM,KAAK,sIAWf,MAAM,KAAG,WAgDX,CAAA"}
|