@acvl/frontend-components 0.0.11 → 0.0.12
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/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/v1/drawers/HistorialDrawer/index.d.ts +4 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/v1/drawers/HistorialDrawer/index.d.ts +4 -1
- package/dist/index.d.ts +4 -2
- package/package.json +1 -1
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { IconButtonProps } from "@mui/material";
|
|
1
2
|
import React from "react";
|
|
2
3
|
import { _HistorialDrawerProps } from "./_HistorialDrawer";
|
|
3
|
-
|
|
4
|
+
interface HistorialDrawerProps extends Pick<_HistorialDrawerProps, 'endpoint'> {
|
|
5
|
+
iconButtonProps?: IconButtonProps;
|
|
6
|
+
}
|
|
4
7
|
declare const HistorialDrawer: React.FC<HistorialDrawerProps>;
|
|
5
8
|
export default HistorialDrawer;
|
package/dist/esm/index.js
CHANGED
|
@@ -25842,7 +25842,7 @@ const _HistorialDrawer = (props) => {
|
|
|
25842
25842
|
const [getHistorial, { data, isLoading, isFetching }] = api.useLazyGetHistorialQuery();
|
|
25843
25843
|
useEffect(() => {
|
|
25844
25844
|
if (props.open)
|
|
25845
|
-
getHistorial({ endpoint:
|
|
25845
|
+
getHistorial({ endpoint: props.endpoint || pathname });
|
|
25846
25846
|
}, [getHistorial, pathname, props.endpoint, props.open]);
|
|
25847
25847
|
return (jsx(MainDrawer, { open: props.open, drawerToggle: props.handleDrawer, title: 'Historial', children: jsx(LoadingComponent, { height: '50vh', isLoading: isLoading || isFetching, children: jsx(Timeline, { sx: {
|
|
25848
25848
|
pr: 0,
|
|
@@ -25904,7 +25904,7 @@ const HistorialDrawer = (props) => {
|
|
|
25904
25904
|
return (jsxs(Fragment, { children: [jsx(Tooltip, { title: 'Historial', children: jsx(IconButton, { color: 'primary', onClick: handleDrawer, sx: {
|
|
25905
25905
|
position: 'absolute',
|
|
25906
25906
|
right: 0,
|
|
25907
|
-
}, children: jsx(HistoryIcon, {}) }) }), jsx(_HistorialDrawer, { open: open, handleDrawer: handleDrawer,
|
|
25907
|
+
}, ...props.iconButtonProps, children: jsx(HistoryIcon, {}) }) }), jsx(_HistorialDrawer, { open: open, handleDrawer: handleDrawer, endpoint: props.endpoint })] }));
|
|
25908
25908
|
};
|
|
25909
25909
|
|
|
25910
25910
|
const buildListItems = (content) => {
|