elseware-ui 2.15.3 → 2.16.0
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/build/components/data-display/avatar/Avatar.d.ts +1 -1
- package/build/components/data-display/badge/Badge.d.ts +2 -1
- package/build/components/data-display/image/CloudinaryImage.d.ts +2 -1
- package/build/components/data-display/table/Table.d.ts +7 -8
- package/build/components/data-display/table/TableContent.d.ts +15 -10
- package/build/components/data-entry/button/Button.d.ts +1 -1
- package/build/components/data-entry/input/input/Input.d.ts +5 -2
- package/build/components/index.d.ts +2 -3
- package/build/data/enums.d.ts +1 -2
- package/build/data/meta/country.d.ts +2 -1
- package/build/data/meta/currency.d.ts +1 -1
- package/build/data/styles.d.ts +6 -0
- package/build/data/test/images/index.d.ts +7 -0
- package/build/data/test/test-user-data.d.ts +7 -0
- package/build/index.es.js +33487 -33571
- package/build/index.js +33537 -33622
- package/build/utils/currency.d.ts +1 -0
- package/package.json +1 -1
- package/build/components/data-display/advanced-table/AdvancedTable.d.ts +0 -14
- package/build/components/data-display/advanced-table/AdvancedTableContent.d.ts +0 -16
- package/build/components/data-display/table/TableRow.d.ts +0 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getCurrencySymbol: (code: string) => string | null;
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AdvancedTableColumnConfig } from "./AdvancedTableContent";
|
|
2
|
-
export interface AdvancedTableProps<T> {
|
|
3
|
-
title?: string;
|
|
4
|
-
columns: AdvancedTableColumnConfig<T>[];
|
|
5
|
-
data: T[];
|
|
6
|
-
defaultPageSize?: number;
|
|
7
|
-
pageSizeOptions?: (number | "All")[];
|
|
8
|
-
isLoading?: boolean;
|
|
9
|
-
isSuccess?: boolean;
|
|
10
|
-
isError?: boolean;
|
|
11
|
-
error?: unknown;
|
|
12
|
-
}
|
|
13
|
-
declare function AdvancedTable<T extends Record<string, any>>({ title, columns, data, defaultPageSize, pageSizeOptions, isLoading, isSuccess, isError, error, }: AdvancedTableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export default AdvancedTable;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export type AdvancedTableColumnConfig<T> = {
|
|
3
|
-
key: keyof T;
|
|
4
|
-
header: string;
|
|
5
|
-
render: (value: T[keyof T], record: T) => React.ReactNode;
|
|
6
|
-
sortable?: boolean;
|
|
7
|
-
};
|
|
8
|
-
type AdvancedTableContentProps<T> = {
|
|
9
|
-
title?: string;
|
|
10
|
-
columns: AdvancedTableColumnConfig<T>[];
|
|
11
|
-
data: T[];
|
|
12
|
-
defaultPageSize?: number;
|
|
13
|
-
pageSizeOptions?: (number | "All")[];
|
|
14
|
-
};
|
|
15
|
-
export declare function AdvancedTableContent<T extends Record<string, any>>({ title, columns, data, defaultPageSize, pageSizeOptions, }: AdvancedTableContentProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export {};
|