h2o-library 1.5.0 → 1.5.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/dist/components/src/chart-heatmap.d.ts +4 -1
- package/dist/components/src/chart-line.d.ts +1 -0
- package/dist/components/src/table.d.ts +3 -1
- package/dist/css/src/charts.css +15 -0
- package/dist/css/src/table.css +7 -0
- package/dist/esm/components/src/chart-heatmap.d.ts +4 -1
- package/dist/esm/components/src/chart-line.d.ts +1 -0
- package/dist/esm/components/src/table.d.ts +3 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/package.json +1 -1
|
@@ -11,5 +11,8 @@ export interface HeatmapData {
|
|
|
11
11
|
export interface HeatmapChartProps {
|
|
12
12
|
data: HeatmapData;
|
|
13
13
|
showPercentage?: boolean;
|
|
14
|
+
height?: string | number;
|
|
15
|
+
showValue?: boolean;
|
|
16
|
+
showPercentageInTooltip?: boolean;
|
|
14
17
|
}
|
|
15
|
-
export declare const HeatmapChart: ({ data, showPercentage, }: HeatmapChartProps) => React.JSX.Element;
|
|
18
|
+
export declare const HeatmapChart: ({ data, showPercentage, height, showValue, showPercentageInTooltip, }: HeatmapChartProps) => React.JSX.Element;
|
|
@@ -33,5 +33,7 @@ export interface TableProps<T extends Record<string, any>> {
|
|
|
33
33
|
visibleColumns?: string[];
|
|
34
34
|
onVisibleColumnsChange?: (keys: string[]) => void;
|
|
35
35
|
maxVisibleColumns?: number;
|
|
36
|
+
defaultVisibleColumns?: string[];
|
|
37
|
+
pinnedColumns?: string[];
|
|
36
38
|
}
|
|
37
|
-
export declare function Table<T extends Record<string, any>>({ columns, data, isLoading, className, rowHeight, sortKey, sortDirection, onSort, currentPage, totalPages, perPage, perPageOptions, onPageChange, onPerPageChange, maxHeight, columnsEditable, containerClassName, visibleColumns, onVisibleColumnsChange, maxVisibleColumns, }: TableProps<T>): React.JSX.Element;
|
|
39
|
+
export declare function Table<T extends Record<string, any>>({ columns, data, isLoading, className, rowHeight, sortKey, sortDirection, onSort, currentPage, totalPages, perPage, perPageOptions, onPageChange, onPerPageChange, maxHeight, columnsEditable, containerClassName, visibleColumns, onVisibleColumnsChange, maxVisibleColumns, defaultVisibleColumns, pinnedColumns, }: TableProps<T>): React.JSX.Element;
|
package/dist/css/src/charts.css
CHANGED
|
@@ -50,11 +50,14 @@
|
|
|
50
50
|
.heatmap-container {
|
|
51
51
|
width: 100%;
|
|
52
52
|
padding: 1rem;
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: column;
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
.heatmap-grid {
|
|
56
58
|
display: grid;
|
|
57
59
|
gap: 0.5rem;
|
|
60
|
+
flex-grow: 1;
|
|
58
61
|
}
|
|
59
62
|
|
|
60
63
|
.heatmap-col-header {
|
|
@@ -79,6 +82,11 @@
|
|
|
79
82
|
.heatmap-cell {
|
|
80
83
|
padding: 0.75rem;
|
|
81
84
|
overflow: hidden;
|
|
85
|
+
height: 100%;
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: column;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: center;
|
|
82
90
|
}
|
|
83
91
|
|
|
84
92
|
.heatmap-cell-content {
|
|
@@ -99,3 +107,10 @@
|
|
|
99
107
|
width: 0.75rem;
|
|
100
108
|
height: 0.75rem;
|
|
101
109
|
}
|
|
110
|
+
|
|
111
|
+
.heatmap-cell-tooltip-content {
|
|
112
|
+
display: flex;
|
|
113
|
+
flex-direction: column;
|
|
114
|
+
gap: 0.25rem;
|
|
115
|
+
font-size: 0.75rem;
|
|
116
|
+
}
|
package/dist/css/src/table.css
CHANGED
|
@@ -136,6 +136,13 @@
|
|
|
136
136
|
padding: 1rem;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
+
.edit-columns-header {
|
|
140
|
+
display: flex;
|
|
141
|
+
justify-content: space-between;
|
|
142
|
+
align-items: center;
|
|
143
|
+
margin-bottom: 0.5rem;
|
|
144
|
+
}
|
|
145
|
+
|
|
139
146
|
.edit-columns-title {
|
|
140
147
|
font-size: 1rem;
|
|
141
148
|
font-weight: 600;
|
|
@@ -11,5 +11,8 @@ export interface HeatmapData {
|
|
|
11
11
|
export interface HeatmapChartProps {
|
|
12
12
|
data: HeatmapData;
|
|
13
13
|
showPercentage?: boolean;
|
|
14
|
+
height?: string | number;
|
|
15
|
+
showValue?: boolean;
|
|
16
|
+
showPercentageInTooltip?: boolean;
|
|
14
17
|
}
|
|
15
|
-
export declare const HeatmapChart: ({ data, showPercentage, }: HeatmapChartProps) => React.JSX.Element;
|
|
18
|
+
export declare const HeatmapChart: ({ data, showPercentage, height, showValue, showPercentageInTooltip, }: HeatmapChartProps) => React.JSX.Element;
|
|
@@ -33,5 +33,7 @@ export interface TableProps<T extends Record<string, any>> {
|
|
|
33
33
|
visibleColumns?: string[];
|
|
34
34
|
onVisibleColumnsChange?: (keys: string[]) => void;
|
|
35
35
|
maxVisibleColumns?: number;
|
|
36
|
+
defaultVisibleColumns?: string[];
|
|
37
|
+
pinnedColumns?: string[];
|
|
36
38
|
}
|
|
37
|
-
export declare function Table<T extends Record<string, any>>({ columns, data, isLoading, className, rowHeight, sortKey, sortDirection, onSort, currentPage, totalPages, perPage, perPageOptions, onPageChange, onPerPageChange, maxHeight, columnsEditable, containerClassName, visibleColumns, onVisibleColumnsChange, maxVisibleColumns, }: TableProps<T>): React.JSX.Element;
|
|
39
|
+
export declare function Table<T extends Record<string, any>>({ columns, data, isLoading, className, rowHeight, sortKey, sortDirection, onSort, currentPage, totalPages, perPage, perPageOptions, onPageChange, onPerPageChange, maxHeight, columnsEditable, containerClassName, visibleColumns, onVisibleColumnsChange, maxVisibleColumns, defaultVisibleColumns, pinnedColumns, }: TableProps<T>): React.JSX.Element;
|