@acvl/frontend-components 0.0.50 → 0.0.51

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.
@@ -0,0 +1,17 @@
1
+ import { type ReactNode } from "react";
2
+ export interface ActionsMenuProps {
3
+ delete?: {
4
+ mutation: any;
5
+ disableNavBack?: boolean;
6
+ };
7
+ historial?: {
8
+ endpoint?: string;
9
+ };
10
+ extraButtons?: {
11
+ title: string;
12
+ icon: ReactNode;
13
+ onClick: () => void;
14
+ }[];
15
+ }
16
+ declare const ActionsMenu: (props: ActionsMenuProps) => import("react/jsx-runtime").JSX.Element;
17
+ export default ActionsMenu;
@@ -30,7 +30,10 @@ export interface DetailPageV2Props {
30
30
  button?: ReactNode;
31
31
  extraButtons?: {
32
32
  pageType: PageType | "all";
33
- render: (id: number) => ReactNode;
33
+ title: string;
34
+ icon: ReactNode;
35
+ onClick: (data: any) => void;
36
+ display?: (data: any) => boolean;
34
37
  }[];
35
38
  badge?: string;
36
39
  };
package/dist/index.d.ts CHANGED
@@ -1160,7 +1160,10 @@ interface DetailPageV2Props {
1160
1160
  button?: ReactNode;
1161
1161
  extraButtons?: {
1162
1162
  pageType: PageType | "all";
1163
- render: (id: number) => ReactNode;
1163
+ title: string;
1164
+ icon: ReactNode;
1165
+ onClick: (data: any) => void;
1166
+ display?: (data: any) => boolean;
1164
1167
  }[];
1165
1168
  badge?: string;
1166
1169
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acvl/frontend-components",
3
- "version": "0.0.50",
3
+ "version": "0.0.51",
4
4
  "description": "Component library for ACV frontend projects.",
5
5
  "homepage": "https://github.com/ACV-Logistics/acv-frontend-components#readme",
6
6
  "access": "public",