@gobolt/genesis 0.4.14 → 0.4.17

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,2 +1,3 @@
1
1
  import { InfiniteScrollTableProps } from './types';
2
- export declare const InfiniteScrollTable: <T>({ instanceId, columns: initialColumns, fetchService, title, scrollHeight, scrollWidth, }: InfiniteScrollTableProps<T>) => import("react/jsx-runtime").JSX.Element;
2
+ declare const InfiniteScrollTable: <T>({ columns: initialColumns, fetchService, scrollHeight, scrollWidth, onChange, }: InfiniteScrollTableProps<T>) => import("react/jsx-runtime").JSX.Element;
3
+ export default InfiniteScrollTable;
@@ -0,0 +1,2 @@
1
+ export { default } from './InfiniteScrollTable';
2
+ export type { InfiniteScrollTableProps } from './types';
@@ -0,0 +1,21 @@
1
+ import { ApiResponse } from './types';
2
+ interface UseInfiniteQueryOptions<T> {
3
+ queryKey: string[];
4
+ queryFn: (params: {
5
+ pageParam: number;
6
+ }) => Promise<ApiResponse<T>>;
7
+ initialPageParam: number;
8
+ getNextPageParam: (lastPage: ApiResponse<T>) => number | undefined;
9
+ }
10
+ interface UseInfiniteQueryResult<T> {
11
+ data: {
12
+ pages: ApiResponse<T>[];
13
+ } | undefined;
14
+ error: Error | null;
15
+ fetchNextPage: () => void;
16
+ hasNextPage: boolean;
17
+ isFetchingNextPage: boolean;
18
+ status: "pending" | "error" | "success";
19
+ }
20
+ export declare const useInfiniteQuery: <T>({ queryKey, queryFn, initialPageParam, getNextPageParam, }: UseInfiniteQueryOptions<T>) => UseInfiniteQueryResult<T>;
21
+ export {};
@@ -1,4 +1,5 @@
1
1
  import { Change } from '../Table';
2
+ import { InfiniteScrollChangeEvent } from '../InfiniteScrollTable/types';
2
3
  export type Groups = {
3
4
  [key: string]: string[];
4
5
  };
@@ -6,6 +7,7 @@ export interface SecondaryTableControlsRowProps {
6
7
  groups: Groups | null;
7
8
  totalRecords: number | null;
8
9
  onChange?: Change;
10
+ infiniteScrollData?: InfiniteScrollChangeEvent;
9
11
  }
10
- declare const SecondaryTableControlsRow: ({ groups, totalRecords, onChange, }: SecondaryTableControlsRowProps) => import("react/jsx-runtime").JSX.Element;
12
+ declare const SecondaryTableControlsRow: ({ groups, totalRecords, onChange, infiniteScrollData, }: SecondaryTableControlsRowProps) => import("react/jsx-runtime").JSX.Element;
11
13
  export default SecondaryTableControlsRow;
@@ -7,6 +7,12 @@ export interface AppointmentWithSimpleAddress {
7
7
  address: {
8
8
  nickname: string;
9
9
  address: string;
10
+ } | {
11
+ nickname: string;
12
+ street: string;
13
+ city: string;
14
+ state: string;
15
+ zip: string;
10
16
  };
11
17
  job_subtype: "delivery" | "pickup";
12
18
  progress?: {
@@ -20,6 +26,31 @@ export interface AppointmentWithSimpleAddress {
20
26
  status: string;
21
27
  value: number;
22
28
  };
29
+ } | {
30
+ currentStep: number;
31
+ totalSteps: number;
32
+ steps: {
33
+ pickup: {
34
+ text: string;
35
+ status: string;
36
+ value: number;
37
+ };
38
+ transit: {
39
+ text: string;
40
+ status: string;
41
+ value: number;
42
+ };
43
+ delivery: {
44
+ text: string;
45
+ status: string;
46
+ value: number;
47
+ };
48
+ quality: {
49
+ text: string;
50
+ status: string;
51
+ value: number;
52
+ };
53
+ };
23
54
  };
24
55
  }
25
56
  export interface MockDataSource {