@acvl/frontend-components 0.0.50 → 0.0.52

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;
@@ -13,6 +13,11 @@ export interface DetailPageV2Props {
13
13
  mutation: any;
14
14
  args?: any;
15
15
  disable?: boolean;
16
+ postAction?: {
17
+ after: "create" | "edit" | "both";
18
+ type: string;
19
+ node: ReactNode;
20
+ };
16
21
  };
17
22
  delete?: {
18
23
  mutation: any;
@@ -30,7 +35,10 @@ export interface DetailPageV2Props {
30
35
  button?: ReactNode;
31
36
  extraButtons?: {
32
37
  pageType: PageType | "all";
33
- render: (id: number) => ReactNode;
38
+ title: string;
39
+ icon: ReactNode;
40
+ onClick: (data: any) => void;
41
+ display?: (data: any) => boolean;
34
42
  }[];
35
43
  badge?: string;
36
44
  };
package/dist/index.d.ts CHANGED
@@ -1143,6 +1143,11 @@ interface DetailPageV2Props {
1143
1143
  mutation: any;
1144
1144
  args?: any;
1145
1145
  disable?: boolean;
1146
+ postAction?: {
1147
+ after: "create" | "edit" | "both";
1148
+ type: string;
1149
+ node: ReactNode;
1150
+ };
1146
1151
  };
1147
1152
  delete?: {
1148
1153
  mutation: any;
@@ -1160,7 +1165,10 @@ interface DetailPageV2Props {
1160
1165
  button?: ReactNode;
1161
1166
  extraButtons?: {
1162
1167
  pageType: PageType | "all";
1163
- render: (id: number) => ReactNode;
1168
+ title: string;
1169
+ icon: ReactNode;
1170
+ onClick: (data: any) => void;
1171
+ display?: (data: any) => boolean;
1164
1172
  }[];
1165
1173
  badge?: string;
1166
1174
  };
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.52",
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",