@mesh.ai/rabbit 1.7.0 → 1.7.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/index.d.ts CHANGED
@@ -284,6 +284,11 @@ declare interface AxisSymbolType_2 {
284
284
  position: 'pre' | 'post';
285
285
  }
286
286
 
287
+ declare interface AxisSymbolType_3 {
288
+ symbol: string;
289
+ position: 'pre' | 'post';
290
+ }
291
+
287
292
  declare type Boundary = Element | null;
288
293
 
289
294
  export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
@@ -1609,6 +1614,11 @@ declare interface Node_3 {
1609
1614
  group: number;
1610
1615
  }
1611
1616
 
1617
+ declare interface Node_4 {
1618
+ id: string;
1619
+ name: string;
1620
+ }
1621
+
1612
1622
  declare const NODES: readonly ["a", "button", "div", "form", "h2", "h3", "img", "input", "label", "li", "nav", "ol", "p", "span", "svg", "ul"];
1613
1623
 
1614
1624
  export declare function NudgeAction({ className, orientation, ...buttonProps }: NudgeActionProps): JSX_2.Element;
@@ -1882,6 +1892,51 @@ declare type PropsWithoutRef<P> = P extends any ? ('ref' extends keyof P ? Pick<
1882
1892
 
1883
1893
  declare const Provider: React_2.FC<TooltipProviderProps>;
1884
1894
 
1895
+ export declare const RadarChart: ForwardRefExoticComponent<Omit<RadarChartProps, "width" | "height"> & RefAttributes<DownloadRef>>;
1896
+
1897
+ declare interface RadarChartDataType {
1898
+ x: string;
1899
+ y: number | null;
1900
+ nodeId: string;
1901
+ color: ChartColorsType;
1902
+ }
1903
+
1904
+ declare interface RadarChartProps {
1905
+ /** the maximum number of characters to show in a x-axis label */
1906
+ xAxisCharLimit?: number;
1907
+ /** Height of the chart in pixels */
1908
+ height: number;
1909
+ /** Width of the chart in pixels */
1910
+ width: number;
1911
+ /** Symbol to appended before or after the ticks in xAxis */
1912
+ xAxisUnitSymbol?: AxisSymbolType_3;
1913
+ /** Name of the label to be displayed on X-Axis of the radar chart */
1914
+ xAxisLabel: string;
1915
+ /** Name of the label to be displayed on Y-Axis of the radar chart */
1916
+ yAxisLabel: string;
1917
+ /** Values for the x-Axis of the radar chart */
1918
+ xAxisValues: string[];
1919
+ /** Data that corresponds to each node in the chart. These will generally contain info to be shown on the tooltip. */
1920
+ nodes: Node_4[];
1921
+ /** Data that corresponds to each radar in the chart. Each item in the array corresponds to a radar on the chart */
1922
+ series: {
1923
+ /** Id of the matching node. This will be used to fetch tooltip details for the radar */
1924
+ id: string;
1925
+ /** Data with respect to y-Axis. This should be in the same order as xAxis values giving rise to [x,y] pairs. */
1926
+ data: RadarChartDataType['y'][];
1927
+ }[];
1928
+ /** Title name for the tooltip of the chart */
1929
+ tooltipTitle: string;
1930
+ /** Number of characters post which the data in tooltip will be stacked instead of side-by-side */
1931
+ tooltipStackCharLimit?: number;
1932
+ /** Domain of y-Axis - The start and end of values for yAxis */
1933
+ yAxisDomain?: [number, number];
1934
+ /** Should a radar connect if there are missing values */
1935
+ connectNulls?: boolean;
1936
+ /** Number of levels the radar needs to be divided */
1937
+ levels?: number;
1938
+ }
1939
+
1885
1940
  declare const RadioGroup: React_2.ForwardRefExoticComponent<MenuRadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
1886
1941
 
1887
1942
  declare const RadioGroup_2: React_2.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mesh.ai/rabbit",
3
3
  "private": false,
4
- "version": "1.7.0",
4
+ "version": "1.7.1",
5
5
  "packageManager": "pnpm@8.6.0",
6
6
  "main": "./dist/@mesh.ai/rabbit.umd.js",
7
7
  "module": "./dist/@mesh.ai/rabbit.es.js ",