elseware-ui 2.10.1 → 2.12.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.
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ export type ColumnConfig<T> = {
3
+ key: keyof T;
4
+ header: string;
5
+ render: (value: T[keyof T], record: T) => React.ReactNode;
6
+ sortable?: boolean;
7
+ };
8
+ type AdvancedTableProps<T> = {
9
+ title: string;
10
+ columns: ColumnConfig<T>[];
11
+ data: T[];
12
+ defaultPageSize?: number;
13
+ pageSizeOptions?: (number | "All")[];
14
+ };
15
+ export declare function AdvancedTable<T extends Record<string, any>>({ title, columns, data, defaultPageSize, pageSizeOptions, }: AdvancedTableProps<T>): import("react/jsx-runtime").JSX.Element;
16
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ export type FlagProps = {
3
+ code: string;
4
+ width?: number | string;
5
+ height?: number | string;
6
+ className?: string;
7
+ };
8
+ declare const Flag: React.FC<FlagProps>;
9
+ export default Flag;