@mesh.ai/rabbit 1.13.0 → 1.13.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
@@ -174,6 +174,12 @@ declare const Action: React_2.ForwardRefExoticComponent<AlertDialogActionProps &
174
174
 
175
175
  export declare const Add: (props: SVGProps<SVGSVGElement>) => JSX_2.Element;
176
176
 
177
+ export declare const Alert: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
178
+ variant?: "default" | "warning" | "success" | "error" | null | undefined;
179
+ } & ClassProp) | undefined) => string> & RefAttributes<HTMLDivElement>>;
180
+
181
+ export declare const AlertDescription: ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & RefAttributes<HTMLParagraphElement>>;
182
+
177
183
  declare namespace AlertDialog {
178
184
  export {
179
185
  createAlertDialogScope,
@@ -305,6 +311,8 @@ declare const AlertDialogTrigger_2: React_2.ForwardRefExoticComponent<AlertDialo
305
311
  declare interface AlertDialogTriggerProps extends DialogTriggerProps {
306
312
  }
307
313
 
314
+ export declare const AlertIcon: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & IconProps & RefAttributes<HTMLDivElement>>;
315
+
308
316
  declare type Align = typeof ALIGN_OPTIONS[number];
309
317
 
310
318
  declare const ALIGN_OPTIONS: readonly ["start", "center", "end"];
@@ -432,8 +440,34 @@ declare interface AxisSymbolType_4 {
432
440
  position: 'pre' | 'post';
433
441
  }
434
442
 
443
+ declare interface AxisSymbolType_5 {
444
+ symbol: string;
445
+ position: 'pre' | 'post';
446
+ }
447
+
435
448
  declare type Boundary = Element | null;
436
449
 
450
+ declare interface BoxDataBlock {
451
+ color: string;
452
+ count: number;
453
+ label: string;
454
+ percentage: number;
455
+ scoreRange: {
456
+ PERFORMANCE?: {
457
+ minScore: number;
458
+ maxScore: number;
459
+ };
460
+ POTENTIAL?: {
461
+ minScore: number;
462
+ maxScore: number;
463
+ };
464
+ OVERALL?: {
465
+ minScore: number;
466
+ maxScore: number;
467
+ };
468
+ };
469
+ }
470
+
437
471
  export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
438
472
 
439
473
  export declare interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -754,6 +788,45 @@ declare type DialogTitleProps = Radix.ComponentPropsWithoutRef<typeof DialogPrim
754
788
 
755
789
  declare type DialogTriggerProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Trigger>;
756
790
 
791
+ export declare const DirectedLineChart: ForwardRefExoticComponent<DirectedLineChartProps & RefAttributes<DownloadRef>>;
792
+
793
+ declare interface DirectedLineChartProps {
794
+ /** the maximum number of characters to show in a x-axis label */
795
+ xAxisCharLimit?: number;
796
+ /** Show the chart in either 'mini' or 'full' mode to show limited or full data. Full mode as ability to select nodes to display */
797
+ mode?: 'mini' | 'full';
798
+ /** Symbol to appended before or after the ticks in xAxis */
799
+ xAxisUnitSymbol?: AxisSymbolType_5;
800
+ /** Symbol to appended before or after the ticks in yAxis */
801
+ yAxisUnitSymbol?: AxisSymbolType_5;
802
+ /** Name of the label to be displayed on X-Axis of the line chart */
803
+ xAxisLabel: string;
804
+ /** Name of the label to be displayed on Y-Axis of the line chart */
805
+ yAxisLabel: string;
806
+ /** Data that corresponds to each node in the chart. These will generally contain info to be shown on the tooltip. */
807
+ nodes: Node_6[];
808
+ /** Number of rows in the chart */
809
+ rowsCount?: number;
810
+ /** Data that corresponds to each line in the chart. Each item in the array corresponds to a line on the chart */
811
+ /** Title name for the tooltip of the chart */
812
+ tooltipTitle: string;
813
+ /** Number of characters post which the data in tooltip will be stacked instead of side-by-side */
814
+ tooltipStackCharLimit?: number;
815
+ /** Domain of x-Axis - string values of the band */
816
+ xAxisDomain: string[] | [number, number];
817
+ /** Domain of y-Axis - The start and end of values for yAxis */
818
+ yAxisDomain: string[] | [number, number];
819
+ /** Should a Line connect if there are missing values */
820
+ connectNulls?: boolean;
821
+ /** Maximum number of nodes to be shown in `mini` mode */
822
+ maxNodesInMiniMode?: number;
823
+ /** if the chart should have a white background */
824
+ withBackground?: boolean;
825
+ chartLevelMetaData: {
826
+ reviewCycleName: string;
827
+ };
828
+ }
829
+
757
830
  declare type Direction = 'ltr' | 'rtl';
758
831
 
759
832
  declare type Direction_2 = 'ltr' | 'rtl';
@@ -1147,6 +1220,32 @@ export declare interface GoalsNudgeDataProps {
1147
1220
  status: GoalProgress;
1148
1221
  }
1149
1222
 
1223
+ export declare const GridChart: React_3.ForwardRefExoticComponent<GridChartProps & React_3.RefAttributes<DownloadRef>>;
1224
+
1225
+ declare interface GridChartProps {
1226
+ rows?: number;
1227
+ columns?: number;
1228
+ spacing?: string;
1229
+ boxHeight?: string;
1230
+ boxData: BoxDataBlock[];
1231
+ position?: React.CSSProperties['position'];
1232
+ margin?: string;
1233
+ width?: string;
1234
+ left?: number;
1235
+ top?: number;
1236
+ isExpanded?: boolean;
1237
+ isTextCenterAlign?: boolean;
1238
+ }
1239
+
1240
+ export declare const GridDirectedLineChart: ForwardRefExoticComponent<GridDirectedLineChartType & RefAttributes<DownloadRef>>;
1241
+
1242
+ declare type GridDirectedLineChartType = {
1243
+ directedLineChartProps: DirectedLineChartProps;
1244
+ gridChartProps: GridChartProps;
1245
+ width: number;
1246
+ height: number;
1247
+ };
1248
+
1150
1249
  declare const Group: React_2.ForwardRefExoticComponent<MenuGroupProps & React_2.RefAttributes<HTMLDivElement>>;
1151
1250
 
1152
1251
  declare const Group_2: React_2.ForwardRefExoticComponent<DropdownMenuGroupProps & React_2.RefAttributes<HTMLDivElement>>;
@@ -1822,6 +1921,18 @@ declare interface Node_5 {
1822
1921
  };
1823
1922
  }
1824
1923
 
1924
+ declare interface Node_6 {
1925
+ id: string;
1926
+ xValues: (string | number)[];
1927
+ yValues?: (string | number)[];
1928
+ nodeMetaData?: {
1929
+ employee?: {
1930
+ name: string;
1931
+ imageUrl: string;
1932
+ };
1933
+ };
1934
+ }
1935
+
1825
1936
  declare const NODES: readonly ["a", "button", "div", "form", "h2", "h3", "img", "input", "label", "li", "nav", "ol", "p", "span", "svg", "ul"];
1826
1937
 
1827
1938
  export declare function NudgeAction({ className, orientation, ...buttonProps }: NudgeActionProps): JSX_2.Element;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mesh.ai/rabbit",
3
3
  "private": false,
4
- "version": "1.13.0",
4
+ "version": "1.13.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 ",