@ambuj.bhaskar/react-component-library 0.18.17-alpha → 0.19.0-alpha

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/index.d.ts CHANGED
@@ -608,6 +608,38 @@ declare type EventType = {
608
608
  icon?: string;
609
609
  };
610
610
 
611
+ export declare const Heatmap: React.FC<HeatmapProps>;
612
+
613
+ export declare type HeatmapData = {
614
+ ylabels: string[];
615
+ xlabels: string[];
616
+ datasets: {
617
+ [label: string]: HeatmapDatapoint[];
618
+ };
619
+ };
620
+
621
+ export declare type HeatmapDatapoint = {
622
+ value: number;
623
+ hoverContent?: React.ReactNode;
624
+ color?: Color;
625
+ };
626
+
627
+ export declare type HeatmapProps = {
628
+ data: HeatmapData;
629
+ colorRange: Color[];
630
+ valueRange: [number, number];
631
+ width?: CSSstring;
632
+ height?: CSSstring;
633
+ cellWidth?: CSSstring;
634
+ cellHeight?: CSSstring;
635
+ yLabelWidth?: CSSstring;
636
+ xLabelHeight?: CSSstring;
637
+ cellBorderColor?: Color;
638
+ borderColor?: Color;
639
+ cellTextColor?: Color;
640
+ labelTextColor?: Color;
641
+ };
642
+
611
643
  declare type HTMLButtonProps = ComponentProps<"button">;
612
644
 
613
645
  declare type HTMLInputProps = ComponentProps<"input">;