elseware-ui 2.12.0 → 2.12.1
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/advanced-table/AdvancedTable.d.ts +11 -13
- package/build/components/data-display/advanced-table/AdvancedTableContent.d.ts +16 -0
- package/build/components/data-display/table/Table.d.ts +1 -1
- package/build/index.d.ts +3 -1
- package/build/index.es.js +57583 -57518
- package/build/index.js +57582 -57516
- package/package.json +1 -1
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
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>[];
|
|
1
|
+
import { AdvancedTableColumnConfig } from "./AdvancedTableContent";
|
|
2
|
+
export interface AdvancedTableProps<T> {
|
|
3
|
+
title?: string;
|
|
4
|
+
columns: AdvancedTableColumnConfig<T>[];
|
|
11
5
|
data: T[];
|
|
12
6
|
defaultPageSize?: number;
|
|
13
7
|
pageSizeOptions?: (number | "All")[];
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
isSuccess?: boolean;
|
|
10
|
+
isError?: boolean;
|
|
11
|
+
error?: string;
|
|
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;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 {};
|
|
@@ -11,5 +11,5 @@ export interface TableProps {
|
|
|
11
11
|
enableSelect: boolean;
|
|
12
12
|
maxRowCount?: number;
|
|
13
13
|
}
|
|
14
|
-
declare function Table({ title, headers, data, isLoading, isSuccess, isError, error, enableSelect, maxRowCount }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function Table({ title, headers, data, isLoading, isSuccess, isError, error, enableSelect, maxRowCount, }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export default Table;
|
package/build/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import "./styles/gradients.css";
|
|
2
2
|
import "./styles/index.css";
|
|
3
|
+
import AdvancedTable from "./components/data-display/advanced-table/AdvancedTable";
|
|
4
|
+
import { AdvancedTableColumnConfig } from "./components/data-display/advanced-table/AdvancedTableContent";
|
|
3
5
|
import { Avatar } from "./components/data-display/avatar/Avatar";
|
|
4
6
|
import { Badge } from "./components/data-display/badge/Badge";
|
|
5
7
|
import TitleBanner from "./components/data-display/banners/TitleBanner";
|
|
@@ -62,4 +64,4 @@ import useModal from "./utils/hooks/components/useModal";
|
|
|
62
64
|
import useDrawer from "./utils/hooks/components/useDrawer";
|
|
63
65
|
import useClickOutside from "./utils/hooks/useClickOutside";
|
|
64
66
|
import useIsMobile from "./utils/hooks/useIsMobile";
|
|
65
|
-
export { Avatar, Badge, TitleBanner, Brand, BarChart, LineChart, PieChart, Chip, Image, CloudinaryImage, Info, List, ListItem, PriceTag, StarRating, StarRatingDistribution, Slider, Table, Tag, Typography, Chapter, Section, Paragraph, Quote, YoutubeVideoPlayer, Button, Checkbox, DateSelector, Form, FormResponse, ImageInput, InputResponse, InputLabel, Input, InputFile, InputList, InputListGroup, MultiImageInput, Radio, StarRatingInput, Select, Switch, Tags, TextArea, Backdrop, Skeleton, Toast, sendToast, Transition, ContentArea, Sidebar, Flex, FlexCol, FlexRow, Grid, Layout, Header, Content, Footer, MarkdownEditor, MarkdownViewer, Breadcrumb, BreadcrumbItem, Drawer, DrawerToggler, FooterNav, FooterNavGroup, FooterNavItem, FooterNavItemTitle, FooterNavItemContext, HeaderNav, HeaderNavGroup, HeaderNavItem, HeaderNavItemTitle, HeaderNavItemContext, Link, Menu, MenuGroup, MenuItem, MenuItemTitle, RouteTab, RouteTabs, Modal, Accordion, Card, CardHeader, CardContent, CardFooter, ThemeContext, ThemeProvider, ThemeSwitch, AsyncComponentWrapper, ShowMore, useModal, useDrawer, useClickOutside, useIsMobile, };
|
|
67
|
+
export { AdvancedTable, AdvancedTableColumnConfig, Avatar, Badge, TitleBanner, Brand, BarChart, LineChart, PieChart, Chip, Image, CloudinaryImage, Info, List, ListItem, PriceTag, StarRating, StarRatingDistribution, Slider, Table, Tag, Typography, Chapter, Section, Paragraph, Quote, YoutubeVideoPlayer, Button, Checkbox, DateSelector, Form, FormResponse, ImageInput, InputResponse, InputLabel, Input, InputFile, InputList, InputListGroup, MultiImageInput, Radio, StarRatingInput, Select, Switch, Tags, TextArea, Backdrop, Skeleton, Toast, sendToast, Transition, ContentArea, Sidebar, Flex, FlexCol, FlexRow, Grid, Layout, Header, Content, Footer, MarkdownEditor, MarkdownViewer, Breadcrumb, BreadcrumbItem, Drawer, DrawerToggler, FooterNav, FooterNavGroup, FooterNavItem, FooterNavItemTitle, FooterNavItemContext, HeaderNav, HeaderNavGroup, HeaderNavItem, HeaderNavItemTitle, HeaderNavItemContext, Link, Menu, MenuGroup, MenuItem, MenuItemTitle, RouteTab, RouteTabs, Modal, Accordion, Card, CardHeader, CardContent, CardFooter, ThemeContext, ThemeProvider, ThemeSwitch, AsyncComponentWrapper, ShowMore, useModal, useDrawer, useClickOutside, useIsMobile, };
|