@ztwoint/z-ui 0.1.34 → 0.1.35
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/components/table/components/table-footer.js +1 -1
- package/dist/components/table/components/table-header/table-header.js +1 -1
- package/dist/components/table/table.const.d.ts +1 -1
- package/dist/components/table/table.const.js +1 -1
- package/dist/components/table-card/index.d.ts +1 -1
- package/dist/components/table-card/table-card.js +73 -64
- package/dist/components/table-card/table-card.type.d.ts +19 -27
- package/dist/css/config/colors/semantic-colors.css +28 -27
- package/dist/css/styles/tailwind.css +1 -1
- package/dist/types/components/table/table.const.d.ts +1 -1
- package/dist/types/components/table-card/index.d.ts +1 -1
- package/dist/types/components/table-card/table-card.type.d.ts +19 -27
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const DEFAULT_EMPTY_MESSAGE = "No data available";
|
|
2
2
|
export declare const TABLE_CSS_CLASSES: {
|
|
3
3
|
readonly table: "w-full";
|
|
4
|
-
readonly header: "bg-neutral-
|
|
4
|
+
readonly header: "bg-background-neutral-medium text-text-neutral-secondary";
|
|
5
5
|
readonly cell: {
|
|
6
6
|
readonly default: "px-4 py-3 text-sm";
|
|
7
7
|
readonly cellHeight: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as TableCard } from './table-card';
|
|
2
|
-
export type { TableCardProps
|
|
2
|
+
export type { TableCardProps } from './table-card.type';
|
|
@@ -1,36 +1,28 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableProps, TableSchema, TableFilter, TableSearch, TableSort } from '../table/table.type';
|
|
2
3
|
import { PaginationProps, PaginationInfoProps, PaginationQuickJumperProps } from '../table/components/pagination/pagination.type';
|
|
3
|
-
export interface
|
|
4
|
-
className?: string;
|
|
5
|
-
}
|
|
6
|
-
export type TableCardFilter = Partial<TableFilterType>;
|
|
7
|
-
export type TableCardPaginationInfo = Partial<PaginationInfoProps>;
|
|
8
|
-
export type TableCardPaginationQuickJumper = Partial<PaginationQuickJumperProps>;
|
|
9
|
-
export type TableCardPagination = Partial<PaginationProps>;
|
|
10
|
-
export type TableCardBodyProps = Pick<TableProps, 'cell' | 'sort'> & {
|
|
11
|
-
className?: string;
|
|
12
|
-
stickyHeader?: boolean;
|
|
13
|
-
};
|
|
14
|
-
export interface TableCardProps extends Omit<TableProps, 'filter' | 'pagination' | 'sort'> {
|
|
4
|
+
export interface TableCardProps {
|
|
15
5
|
dataSource: Record<string, unknown>[];
|
|
16
6
|
schema: TableSchema;
|
|
17
7
|
className?: string;
|
|
18
8
|
showHeader?: boolean;
|
|
19
9
|
headerClassName?: string;
|
|
20
|
-
search?:
|
|
21
|
-
|
|
22
|
-
|
|
10
|
+
search?: Partial<TableSearch> & {
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
filter?: Partial<TableFilter>;
|
|
14
|
+
headerActions?: React.ReactNode;
|
|
15
|
+
body?: {
|
|
16
|
+
cell?: TableProps['cell'];
|
|
17
|
+
sort?: TableSort;
|
|
18
|
+
className?: string;
|
|
19
|
+
stickyHeader?: boolean;
|
|
20
|
+
};
|
|
23
21
|
showFooter?: boolean;
|
|
24
22
|
footerClassName?: string;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
filter?: Partial<TableCardFilter>;
|
|
31
|
-
body?: Partial<TableCardBodyProps>;
|
|
32
|
-
paginationInfo?: Partial<TableCardPaginationInfo>;
|
|
33
|
-
paginationQuickJumper?: Partial<TableCardPaginationQuickJumper>;
|
|
34
|
-
pagination?: Partial<TableCardPagination>;
|
|
35
|
-
};
|
|
23
|
+
pagination?: Partial<PaginationProps>;
|
|
24
|
+
paginationInfo?: Partial<PaginationInfoProps>;
|
|
25
|
+
paginationQuickJumper?: Partial<PaginationQuickJumperProps>;
|
|
26
|
+
loading?: boolean;
|
|
27
|
+
emptyMessage?: string;
|
|
36
28
|
}
|