@chainberry/ui-components 1.0.8 → 1.0.9
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/index.cjs +1 -1
- package/dist/index.d.ts +15 -8
- package/dist/index.mjs +1514 -1446
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1288,10 +1288,11 @@ export declare function PasswordGate({ children }: {
|
|
|
1288
1288
|
children: ReactNode;
|
|
1289
1289
|
}): JSX.Element;
|
|
1290
1290
|
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1291
|
+
declare type PaymentDirection = "in" | "out" | "neutral";
|
|
1292
|
+
|
|
1293
|
+
export declare function PaymentType({ direction, label, }: {
|
|
1294
|
+
direction: PaymentDirection;
|
|
1295
|
+
label: string;
|
|
1295
1296
|
}): JSX.Element;
|
|
1296
1297
|
|
|
1297
1298
|
export declare function PeriodPicker({ value, onChange, today, className, }: {
|
|
@@ -1684,7 +1685,8 @@ declare const STATUS_META: Record<TxStatus, {
|
|
|
1684
1685
|
tone: BadgeTone;
|
|
1685
1686
|
}>;
|
|
1686
1687
|
|
|
1687
|
-
/** Display order (reading order) for status lists
|
|
1688
|
+
/** Display order (reading order) for status lists — grouped by lifecycle:
|
|
1689
|
+
intake → in-progress/pending → success → problems. */
|
|
1688
1690
|
declare const STATUS_ORDER: TxStatus[];
|
|
1689
1691
|
|
|
1690
1692
|
export declare function StatusBadge({ children, tone, className, }: {
|
|
@@ -1927,7 +1929,7 @@ export declare namespace transactionsStatuses {
|
|
|
1927
1929
|
}
|
|
1928
1930
|
}
|
|
1929
1931
|
|
|
1930
|
-
export declare function TransactionsTable({ data, loading, onRowClick, columnVisibility, presets, }: TransactionsTableProps): JSX.Element;
|
|
1932
|
+
export declare function TransactionsTable({ data, loading, onRowClick, columnVisibility, presets, pageSize, totalTransactions, currentPage, onPageChange, }: TransactionsTableProps): JSX.Element;
|
|
1931
1933
|
|
|
1932
1934
|
export declare function TransactionsTableOptions({ search, onSearchChange, searchScopes, searchScope, onSearchScopeChange, searchPlaceholder, segment, onSegmentChange, tabs, tabCounts, onFilter, filterCount, columns, columnVisibility, onColumnChange, onRefresh, refreshing, onDownload, show, className, }: {
|
|
1933
1935
|
search: string;
|
|
@@ -1969,6 +1971,11 @@ export declare type TransactionsTableProps = {
|
|
|
1969
1971
|
columnVisibility?: Record<string, boolean>;
|
|
1970
1972
|
/** the SavedPresetsBar row, rendered just above the table */
|
|
1971
1973
|
presets?: ReactNode;
|
|
1974
|
+
/** pagination */
|
|
1975
|
+
pageSize?: number;
|
|
1976
|
+
totalTransactions?: number;
|
|
1977
|
+
currentPage?: number;
|
|
1978
|
+
onPageChange?: (page: number) => void;
|
|
1972
1979
|
};
|
|
1973
1980
|
|
|
1974
1981
|
export declare namespace transactionsTypes {
|
|
@@ -2003,9 +2010,9 @@ declare type TxFilter = {
|
|
|
2003
2010
|
to?: string;
|
|
2004
2011
|
};
|
|
2005
2012
|
|
|
2006
|
-
declare type TxStatus = "created" | "
|
|
2013
|
+
declare type TxStatus = "created" | "processing" | "kyt-in-progress" | "pending-approval" | "rejected" | "confirmed" | "failed" | "conversion-in-progress" | "refund-in-progress" | "pending-verification" | "partially-completed" | "currency-mismatch";
|
|
2007
2014
|
|
|
2008
|
-
declare type TxType = "deposit" | "
|
|
2015
|
+
declare type TxType = "unknown" | "deposit" | "withdrawal" | "checkout" | "manual-deposit" | "manual-withdrawal" | "auto-conversion-deposit" | "auto-conversion-withdrawal" | "automatic-withdrawal";
|
|
2009
2016
|
|
|
2010
2017
|
declare const TYPE_OPTIONS: {
|
|
2011
2018
|
value: TxType;
|