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.
@@ -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;
@@ -8,6 +8,7 @@ export interface LineProps {
8
8
  stroke: string;
9
9
  dashed?: boolean;
10
10
  unit?: string;
11
+ lineWidth?: number;
11
12
  }
12
13
  export interface LineChartProps {
13
14
  data: LineChartDataPoint[];
@@ -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;
@@ -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
+ }
@@ -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;
@@ -8,6 +8,7 @@ export interface LineProps {
8
8
  stroke: string;
9
9
  dashed?: boolean;
10
10
  unit?: string;
11
+ lineWidth?: number;
11
12
  }
12
13
  export interface LineChartProps {
13
14
  data: LineChartDataPoint[];
@@ -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;