@tap-payments/os-micro-frontend-shared 0.0.48 → 0.0.49
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.
|
@@ -9,8 +9,8 @@ declare const viewsOptions: {
|
|
|
9
9
|
custom: {};
|
|
10
10
|
};
|
|
11
11
|
export type View = keyof typeof viewsOptions;
|
|
12
|
-
export type AvailableStatus = StatusButtonProps & {
|
|
13
|
-
status: TableHeaderStatus | TableHeaderStatus[];
|
|
12
|
+
export type AvailableStatus<T = undefined> = StatusButtonProps & {
|
|
13
|
+
status: T | TableHeaderStatus | (TableHeaderStatus | T)[];
|
|
14
14
|
};
|
|
15
15
|
export interface TableHeaderProps {
|
|
16
16
|
availableStatuses?: AvailableStatus[];
|
package/build/types/table.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export interface TableStatus<T> {
|
|
|
17
17
|
filterStatus: T;
|
|
18
18
|
totalCount?: number;
|
|
19
19
|
}
|
|
20
|
-
export type TableHeaderStatus = 'all' | 'initiated' | 'captured' | 'unCaptured' | 'inProgress' | 'abandoned' | 'cancelled' | 'reversed' | 'unsettled' | 'unauthorized' | 'completed' | 'authorized' | 'refunded' | 'paidOut' | 'pending' | 'cleared' | 'open' | 'revered' | 'unauthenticated' | 'authenticated' | 'issued' | 'drafted' | 'scheduled' | 'paid' | 'outstanding' | 'draft' | 'expired' | 'transacted' | 'settled' | 'unSettled' | 'summary' | 'chargeSettlements' | 'refundSettlements' | 'destinationSettlements' | 'chargebackSettlements' | 'used' | 'active' | 'expired' | 'consumed' | 'notActive' | 'signedUp' | undefined;
|
|
20
|
+
export type TableHeaderStatus = 'all' | 'initiated' | 'captured' | 'unCaptured' | 'inProgress' | 'abandoned' | 'cancelled' | 'reversed' | 'unsettled' | 'unauthorized' | 'completed' | 'authorized' | 'refunded' | 'paidOut' | 'pending' | 'cleared' | 'open' | 'revered' | 'unauthenticated' | 'authenticated' | 'issued' | 'drafted' | 'scheduled' | 'paid' | 'outstanding' | 'draft' | 'expired' | 'transacted' | 'settled' | 'unSettled' | 'summary' | 'chargeSettlements' | 'refundSettlements' | 'destinationSettlements' | 'chargebackSettlements' | 'used' | 'active' | 'expired' | 'consumed' | 'notActive' | 'signedUp' | (string & {}) | undefined;
|
|
21
21
|
export interface IColumnProps<R = any> {
|
|
22
22
|
header?: string | (() => React.ReactNode);
|
|
23
23
|
render?: (props: IRenderAttr<R, IColumnProps<R>>) => React.ReactNode;
|
package/package.json
CHANGED