@ztwoint/z-ui 0.1.116 → 0.1.118
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/assets/icons/double-chevron-left.js +1 -2
- package/dist/components/assets/icons/double-chevron-right.js +1 -2
- package/dist/components/dynamic-table/z2-table-pagination.d.ts +2 -0
- package/dist/components/dynamic-table/z2-table-pagination.js +113 -64
- package/dist/components/dynamic-table/z2-table.js +162 -137
- package/dist/components/skeleton/skeleton.js +5 -5
- package/dist/components/table/table.const.d.ts +3 -3
- package/dist/components/table/table.const.js +6 -6
- package/dist/components/table-filter/table-filter-column-button.js +22 -22
- package/dist/css/styles/tailwind.css +1 -1
- package/dist/types/components/dynamic-table/z2-table-pagination.d.ts +2 -0
- package/dist/types/components/table/table.const.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
interface Z2TablePaginationProps {
|
|
3
|
+
showSizeToggle?: boolean;
|
|
3
4
|
sizes?: number[];
|
|
4
5
|
sizesInfo?: string;
|
|
5
6
|
sizesLabel?: string;
|
|
@@ -14,6 +15,7 @@ interface Z2TablePaginationProps {
|
|
|
14
15
|
previousPageLabel?: string;
|
|
15
16
|
nextPageLabel?: string;
|
|
16
17
|
ellipsisText?: string;
|
|
18
|
+
showGoToPage?: boolean;
|
|
17
19
|
}
|
|
18
20
|
declare function Z2TablePagination(props: Z2TablePaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
19
21
|
export { Z2TablePagination, type Z2TablePaginationProps };
|
|
@@ -5,7 +5,7 @@ export declare const TABLE_CSS_CLASSES: {
|
|
|
5
5
|
readonly true: "[&_td:first-child]:border-l-1 [&_th:first-child]:border-l-1 ";
|
|
6
6
|
readonly false: "";
|
|
7
7
|
};
|
|
8
|
-
readonly header: "bg-background-neutral-
|
|
8
|
+
readonly header: "bg-background-neutral-light text-text-neutral-secondary table-fixed";
|
|
9
9
|
readonly cell: {
|
|
10
10
|
readonly default: "p-0 align-middle relative h-4 ";
|
|
11
11
|
readonly hasBorder: {
|
|
@@ -14,13 +14,13 @@ export declare const TABLE_CSS_CLASSES: {
|
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
readonly headerCell: {
|
|
17
|
-
readonly default: "
|
|
17
|
+
readonly default: "p-3 text-left text-xs font-medium tracking-wider border-stroke-solid-light";
|
|
18
18
|
readonly hasBorder: {
|
|
19
19
|
readonly true: " [box-shadow:inset_-1px_0_0_0_var(--color-stroke-solid-light),_inset_0_-1px_0_0_var(--color-stroke-solid-light)] border-stroke-solid-light dark:shadow-none dark:border-0";
|
|
20
20
|
readonly false: "border-stroke-solid-light ";
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
-
readonly sortableHeaderCell: "p-3 text-left text-xs font-medium
|
|
23
|
+
readonly sortableHeaderCell: "p-3 text-left text-xs font-medium tracking-wider cursor-pointer transition-colors duration-200";
|
|
24
24
|
readonly headerCellContent: "flex items-center justify-between";
|
|
25
25
|
readonly sortIcon: "ml-2 w-4 h-4 text-gray-400";
|
|
26
26
|
readonly sortIconActive: "ml-2 w-4 h-4 text-gray-600";
|