@zimyo/manage 0.3.10 → 0.3.11

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,18 @@
1
+ import { default as React } from 'react';
2
+
3
+ interface Transaction {
4
+ id: string;
5
+ date: string;
6
+ description: string;
7
+ method: string;
8
+ amount: string;
9
+ status: 'Completed' | 'Pending';
10
+ invoice: string | null;
11
+ type?: 'Payment' | 'Refund' | 'Subscription';
12
+ amountLabel?: 'Charged' | 'Refunded';
13
+ }
14
+ interface TransactionCardsProps {
15
+ transactions: Transaction[];
16
+ }
17
+ declare const CardView: React.FC<TransactionCardsProps>;
18
+ export default CardView;
@@ -1 +1,16 @@
1
- export {};
1
+ import { default as React } from 'react';
2
+
3
+ interface Transaction {
4
+ id: string;
5
+ date: string;
6
+ description: string;
7
+ method: string;
8
+ amount: string;
9
+ status: 'Completed' | 'Pending';
10
+ invoice: string | null;
11
+ }
12
+ interface TransactionTableProps {
13
+ transactions: Transaction[];
14
+ }
15
+ declare const TableView: React.FC<TransactionTableProps>;
16
+ export default TableView;
@@ -1,10 +1,10 @@
1
1
  declare function TextReducingTooltipComponent({ data, limit, doNotShowTooltip, arrow, endAdornment, startAdornment, styleOverrides }: {
2
- data?: string;
3
- limit?: number;
4
- doNotShowTooltip?: boolean;
5
- arrow?: boolean;
6
- endAdornment?: string;
7
- startAdornment?: string;
8
- styleOverrides?: {};
2
+ data?: string | undefined;
3
+ limit?: number | undefined;
4
+ doNotShowTooltip?: boolean | undefined;
5
+ arrow?: boolean | undefined;
6
+ endAdornment?: string | undefined;
7
+ startAdornment?: string | undefined;
8
+ styleOverrides?: {} | undefined;
9
9
  }): import("react/jsx-runtime").JSX.Element;
10
10
  export default TextReducingTooltipComponent;
@@ -0,0 +1,27 @@
1
+ import { ClassValue } from 'clsx';
2
+
3
+ declare function cn(...inputs: ClassValue[]): string;
4
+ declare const getS3FileNameAndPathPerf: (org_id: string | number, system_name_file?: string, uploadLocation?: string) => {
5
+ fileName: string;
6
+ filePath: string;
7
+ };
8
+ declare function appendAwsBaseUrl(relativeUrl: string, params?: {}): string;
9
+ declare const getFileExtension: (file: string) => string;
10
+ declare function getFileIcon(extension: string): string;
11
+ declare const downloadFile: (setLoading: (state: {
12
+ isLoading: boolean;
13
+ }) => void, file: any, FileWithAWSBaseUrl: string, file_name: string, dispatchError: (message: string) => void) => Promise<void>;
14
+ type GetIds = {
15
+ object: {
16
+ [key: string]: string | number | boolean;
17
+ };
18
+ id: string | number | boolean;
19
+ };
20
+ declare const getIdsObject: ({ object, id, }: GetIds) => (string | number | boolean)[];
21
+ declare const getFilterParsedValues: (values: Record<string, any>) => {
22
+ [key: string]: any;
23
+ };
24
+ declare const roundCurrencyValue: (currencyString: string, decimals?: number) => string;
25
+ declare const getAssetPath: (path: string) => string;
26
+ declare function isValidDate(dateString: string): boolean;
27
+ export { appendAwsBaseUrl, cn, downloadFile, getAssetPath, getFileExtension, getFileIcon, getFilterParsedValues, getIdsObject, getS3FileNameAndPathPerf, isValidDate, roundCurrencyValue };