helppeople-ui 1.6.0 → 1.7.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/components/CustomSubToolbar/CustomSubToolbar.d.ts +22 -0
- package/dist/components/CustomToolbar/CustomToolbar.d.ts +20 -0
- package/dist/examples/CustomSubToolbarExample/CustomSubToolbarExample.d.ts +3 -0
- package/dist/examples/CustomSubToolbarExample/index.d.ts +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/my-library.cjs.js +8 -8
- package/dist/my-library.es.js +1051 -910
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CustomButtonConfig } from '../CustomToolbar/CustomToolbar';
|
|
3
|
+
export interface CustomSubToolbarProps {
|
|
4
|
+
/**
|
|
5
|
+
* Título de la sub-página
|
|
6
|
+
*/
|
|
7
|
+
title: string;
|
|
8
|
+
/**
|
|
9
|
+
* Callback para el botón de retroceso. Si no se define, no se muestra la flecha.
|
|
10
|
+
*/
|
|
11
|
+
onBack?: () => void;
|
|
12
|
+
/**
|
|
13
|
+
* Botones de acción (ej. "+ Nueva Solicitud")
|
|
14
|
+
*/
|
|
15
|
+
actions?: CustomButtonConfig[];
|
|
16
|
+
/**
|
|
17
|
+
* Si es true, la barra se fija al tope al hacer scroll
|
|
18
|
+
*/
|
|
19
|
+
sticky?: boolean;
|
|
20
|
+
}
|
|
21
|
+
declare const CustomSubToolbar: React.FC<CustomSubToolbarProps>;
|
|
22
|
+
export default CustomSubToolbar;
|
|
@@ -9,6 +9,20 @@ export interface CustomButtonConfig {
|
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
style?: React.CSSProperties;
|
|
11
11
|
}
|
|
12
|
+
export interface PageHeaderConfig {
|
|
13
|
+
/**
|
|
14
|
+
* Título de la sub-página (ej. "Mis Solicitudes")
|
|
15
|
+
*/
|
|
16
|
+
title: string;
|
|
17
|
+
/**
|
|
18
|
+
* Callback para el botón de "Volver". Si no se define, no se muestra la flecha.
|
|
19
|
+
*/
|
|
20
|
+
onBack?: () => void;
|
|
21
|
+
/**
|
|
22
|
+
* Botones de acción de la página (ej. "+ Nueva Solicitud")
|
|
23
|
+
*/
|
|
24
|
+
actions?: CustomButtonConfig[];
|
|
25
|
+
}
|
|
12
26
|
export interface CustomToolbarProps {
|
|
13
27
|
/**
|
|
14
28
|
* Título de la pantalla
|
|
@@ -55,6 +69,12 @@ export interface CustomToolbarProps {
|
|
|
55
69
|
* (después de los botones). Ideal para notificaciones, avatares, etc.
|
|
56
70
|
*/
|
|
57
71
|
rightActions?: React.ReactNode;
|
|
72
|
+
/**
|
|
73
|
+
* Configura una segunda fila contextual con título de sub-página,
|
|
74
|
+
* botón de retroceso y acciones propias de la página.
|
|
75
|
+
* Si no se define, no se renderiza la segunda fila.
|
|
76
|
+
*/
|
|
77
|
+
pageHeader?: PageHeaderConfig;
|
|
58
78
|
}
|
|
59
79
|
declare const CustomToolbar: React.FC<CustomToolbarProps>;
|
|
60
80
|
export default CustomToolbar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './CustomSubToolbarExample';
|
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export { default as Pagination } from './components/CustomPagination/CustomPagin
|
|
|
18
18
|
export { default as Table } from './components/CustomTable/CustomTable';
|
|
19
19
|
export { default as Tabs } from './components/CustomTabs/CustomTabs';
|
|
20
20
|
export { default as Toolbar } from './components/CustomToolbar/CustomToolbar';
|
|
21
|
+
export { default as SubToolbar } from './components/CustomSubToolbar/CustomSubToolbar';
|
|
21
22
|
export { default as Tooltip } from './components/CustomTooltip/CustomTooltip';
|
|
22
23
|
export { default as Upload } from './components/CustomUpload/CustomUpload';
|
|
23
24
|
export { default as Input } from './components/Inputs/CustomInput/Input';
|
|
@@ -58,6 +59,8 @@ export type { CustomTimelineProps, TimelineItemData, TimelineItem, TimelineItemD
|
|
|
58
59
|
export { default as Empty } from './components/CustomEmpty/CustomEmpty';
|
|
59
60
|
export { default as List } from './components/CustomList/CustomList';
|
|
60
61
|
export { default as LibraryThemeProvider } from './theme/LibraryThemeProvider';
|
|
62
|
+
export type { CustomButtonConfig, CustomToolbarProps, PageHeaderConfig, } from './components/CustomToolbar/CustomToolbar';
|
|
63
|
+
export type { CustomSubToolbarProps } from './components/CustomSubToolbar/CustomSubToolbar';
|
|
61
64
|
export { default as Message } from './components/CustomMessage/CustomMessage';
|
|
62
65
|
export * from './components/Icons/CustomIcon';
|
|
63
66
|
export type { CustomPaginationProps } from './components/CustomPagination/CustomPagination';
|