@eclass/ui-kit 1.54.4 → 1.54.5

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.
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { IModal } from '../types';
3
- export declare const Modal: ({ buttons, buttonsCenter, buttonsColumn, buttonsInside, children, closeOnOverlayClick, fixedSubtitle, isOpen, onClose, title, withoutMargin, scrollBehavior, }: IModal) => JSX.Element;
3
+ export declare const uiKitModalIsDesktop = 641;
4
+ export declare const Modal: ({ children, closeOnOverlayClick, fixedSubtitle, isOpen, onClose, title, withoutMargin, scrollBehavior, fixedButtons, }: IModal) => JSX.Element;
4
5
  //# sourceMappingURL=Modal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../../src/organisms/Modals/Modal/Modal.tsx"],"names":[],"mappings":";AAaA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,eAAO,MAAM,KAAK,mKAaf,MAAM,KAAG,WA4GX,CAAA"}
1
+ {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../../src/organisms/Modals/Modal/Modal.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,eAAO,MAAM,mBAAmB,MAAM,CAAA;AAEtC,eAAO,MAAM,KAAK,2HAUf,MAAM,KAAG,WAqFX,CAAA"}
@@ -1,4 +1,16 @@
1
1
  /// <reference types="react" />
2
2
  import { IModalButtons } from '../types';
3
- export declare const ModalButtons: ({ buttons, buttonsCenter, buttonsColumn, buttonsInside, isDesktop, px, py, }: IModalButtons) => JSX.Element;
3
+ /**
4
+ * Componente que renderiza los botones de un modal.
5
+ * @example
6
+ * <ModalButtons>
7
+ * <BtnPrimary as="button" onClick={() => onClose()}>Aceptar</BtnPrimary>
8
+ * <BtnSecondary as="button" onClick={() => onClose()}>Cancelar</BtnSecondary>
9
+ * </ModalButtons>
10
+ */
11
+ export declare const ModalButtons: ({ children, buttonsCenter, buttonsColumn, }: IModalButtons) => JSX.Element;
12
+ export declare const ModalContent: ({ children, pb, }: {
13
+ children: React.ReactNode;
14
+ pb?: string | undefined;
15
+ }) => JSX.Element;
4
16
  //# sourceMappingURL=ModalButtons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModalButtons.d.ts","sourceRoot":"","sources":["../../../../src/organisms/Modals/Modal/ModalButtons.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAIxC,eAAO,MAAM,YAAY,iFAQtB,aAAa,KAAG,WA+ClB,CAAA"}
1
+ {"version":3,"file":"ModalButtons.d.ts","sourceRoot":"","sources":["../../../../src/organisms/Modals/Modal/ModalButtons.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAMxC;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,gDAItB,aAAa,KAAG,WAuBlB,CAAA;AAED,eAAO,MAAM,YAAY;cAIb,MAAM,SAAS;;MAEvB,WAMH,CAAA"}
@@ -1,4 +1,15 @@
1
1
  /// <reference types="react" />
2
2
  import { IModalAlert } from '../types';
3
- export declare const ModalAlertNew: ({ type, isOpen, onClose, title, description, buttons, status, }: IModalAlert) => JSX.Element;
3
+ export declare const ModalAlertNew: ({ type, isOpen, onClose, children, title, description, status, }: IModalAlert) => JSX.Element;
4
+ /**
5
+ * Componente que renderiza los botones de un modal alert.
6
+ * @example
7
+ * <ModalAlertButtons>
8
+ * <BtnLink as="button" onClick={() => onClose()}>Cancelar</BtnLink>
9
+ * <BtnLink as="button" onClick={() => onClose()}>Aceptar</BtnLink>
10
+ * </ModalAlertButtons>
11
+ */
12
+ export declare const ModalAlertButtons: ({ children }: {
13
+ children: React.ReactNode;
14
+ }) => JSX.Element;
4
15
  //# sourceMappingURL=ModalAlert.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModalAlert.d.ts","sourceRoot":"","sources":["../../../../src/organisms/Modals/ModalAlert/ModalAlert.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAMtC,eAAO,MAAM,aAAa,oEAQvB,WAAW,KAAG,WA+EhB,CAAA"}
1
+ {"version":3,"file":"ModalAlert.d.ts","sourceRoot":"","sources":["../../../../src/organisms/Modals/ModalAlert/ModalAlert.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAMtC,eAAO,MAAM,aAAa,qEAQvB,WAAW,KAAG,WAqDhB,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB;cAA8B,MAAM,SAAS;MAAK,WAyB/E,CAAA"}
@@ -1,3 +1,4 @@
1
1
  export { Modal } from './Modal/Modal';
2
- export { ModalAlertNew } from './ModalAlert/ModalAlert';
2
+ export { ModalButtons, ModalContent } from './Modal/ModalButtons';
3
+ export { ModalAlertNew, ModalAlertButtons } from './ModalAlert/ModalAlert';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organisms/Modals/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organisms/Modals/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA"}
@@ -4,6 +4,7 @@ export declare const overlay: {
4
4
  };
5
5
  export declare const dialog: {
6
6
  boxShadow: string;
7
+ bg: string;
7
8
  borderRadius: string;
8
9
  };
9
10
  //# sourceMappingURL=resetStyleModal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resetStyleModal.d.ts","sourceRoot":"","sources":["../../../src/organisms/Modals/resetStyleModal.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO;;;CAGnB,CAAA;AACD,eAAO,MAAM,MAAM;;;CAGlB,CAAA"}
1
+ {"version":3,"file":"resetStyleModal.d.ts","sourceRoot":"","sources":["../../../src/organisms/Modals/resetStyleModal.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO;;;CAGnB,CAAA;AACD,eAAO,MAAM,MAAM;;;;CAIlB,CAAA"}
@@ -1,17 +1,4 @@
1
1
  export interface IModal {
2
- buttons?: Array<{
3
- type?: 'primary' | 'secondary'
4
- action: () => void
5
- text: string
6
- isLoading?: boolean
7
- isDisabled?: boolean
8
- }>
9
- /** Si es un solo botón tiene la opción de centrar este */
10
- buttonsCenter?: boolean
11
- /** muestran en columna en mobile, por defecto es true */
12
- buttonsColumn?: boolean
13
- /** Si esta activo los botones se muestran dentro del contenido, le afecta el scroll */
14
- buttonsInside?: boolean
15
2
  children: React.ReactNode
16
3
  /** Por defecto esta activo y permite cerrar el modal haciendo click fuera del modal */
17
4
  closeOnOverlayClick?: boolean
@@ -24,24 +11,25 @@ export interface IModal {
24
11
  withoutMargin?: boolean
25
12
  /** Como quiero el scroll, dentro del modal o el modal incluido (por defecto es el último) */
26
13
  scrollBehavior?: 'inside' | 'outside'
14
+ /** Si esta activo se fija el footer */
15
+ fixedButtons?: boolean
27
16
  }
28
17
 
29
18
  export interface IModalButtons {
30
- buttons: IModal['buttons']
31
- buttonsCenter?: IModal['buttonsCenter']
32
- buttonsColumn?: IModal['buttonsColumn']
33
- buttonsInside?: boolean
19
+ children: React.ReactNode
20
+ buttonsCenter?: boolean
21
+ px?: string | number
22
+ py?: string | number
23
+ buttonsColumn?: boolean
34
24
  isDesktop?: boolean
35
- px: string
36
- py: string
37
25
  }
38
26
 
39
27
  export interface IModalAlert {
28
+ children?: React.ReactNode
40
29
  isOpen: boolean
41
30
  onClose: () => void
42
31
  title?: string
43
32
  description?: string
44
33
  type: 'info' | 'loading'
45
34
  status?: 'success' | 'error' | 'warning' | 'info'
46
- buttons?: Array<{ action: () => void; text: string }>
47
35
  }