@hitachivantara/uikit-react-lab 6.0.0-next.1 → 6.0.0-next.3

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
@@ -1,24 +1,23 @@
1
- import { Align } from '@xyflow/system';
1
+ import { Align } from 'reactflow';
2
2
  import { AnimationEventHandler } from 'react';
3
3
  import { AriaRole } from 'react';
4
- import { BackgroundProps } from '@xyflow/react';
4
+ import { BackgroundProps } from 'reactflow';
5
5
  import { ClipboardEventHandler } from 'react';
6
6
  import { CompositionEventHandler } from 'react';
7
7
  import { Context } from 'react';
8
- import { ControlProps } from '@xyflow/react';
9
- import { CoordinateExtent } from '@xyflow/react';
10
- import { CoordinateExtent as CoordinateExtent_2 } from '@xyflow/system';
8
+ import { ControlProps } from 'reactflow';
9
+ import { CoordinateExtent } from 'reactflow';
11
10
  import { CSSProperties } from 'react';
12
11
  import { Dispatch } from 'react';
13
12
  import { DndContextProps } from '@dnd-kit/core';
14
13
  import { DragEndEvent } from '@dnd-kit/core';
15
14
  import { DragEventHandler } from 'react';
16
15
  import { DragOverlayProps } from '@dnd-kit/core';
17
- import { Edge } from '@xyflow/react';
16
+ import { Edge } from 'reactflow';
18
17
  import { ExtractNames } from '@hitachivantara/uikit-react-core';
19
18
  import { FocusEventHandler } from 'react';
20
19
  import { FormEventHandler } from 'react';
21
- import { GetMiniMapNodeAttribute } from '@xyflow/react';
20
+ import { GetMiniMapNodeAttribute } from 'reactflow';
22
21
  import { HTMLAttributes } from 'react';
23
22
  import { HvActionGeneric } from '@hitachivantara/uikit-react-core';
24
23
  import { HvActionsGenericProps } from '@hitachivantara/uikit-react-core';
@@ -27,6 +26,7 @@ import { HvBreakpoints } from '@hitachivantara/uikit-react-core';
27
26
  import { HvButtonBaseProps } from '@hitachivantara/uikit-react-core';
28
27
  import { HvButtonProps } from '@hitachivantara/uikit-react-core';
29
28
  import { HvColorAny } from '@hitachivantara/uikit-styles';
29
+ import { HvColorAny as HvColorAny_2 } from '@hitachivantara/uikit-react-core';
30
30
  import { HvDialogProps } from '@hitachivantara/uikit-react-core';
31
31
  import { HvDrawerProps } from '@hitachivantara/uikit-react-core';
32
32
  import { HvEmptyStateProps } from '@hitachivantara/uikit-react-core';
@@ -38,17 +38,17 @@ import { HvTypographyVariants } from '@hitachivantara/uikit-react-core';
38
38
  import { InputEventHandler } from 'react';
39
39
  import { JSX as JSX_2 } from 'react/jsx-runtime';
40
40
  import { KeyboardEventHandler } from 'react';
41
- import { MiniMapProps } from '@xyflow/react';
41
+ import { MiniMapProps } from 'reactflow';
42
42
  import { MouseEventHandler } from 'react';
43
- import { Node as Node_2 } from '@xyflow/react';
44
- import { NodeProps } from '@xyflow/react';
45
- import { NodeToolbarProps } from '@xyflow/react';
46
- import { PanelPosition } from '@xyflow/react';
43
+ import { Node as Node_2 } from 'reactflow';
44
+ import { NodeProps } from 'reactflow';
45
+ import { NodeToolbarProps } from 'reactflow';
46
+ import { PanelPosition } from 'reactflow';
47
47
  import { PointerEventHandler } from 'react';
48
- import { Position } from '@xyflow/system';
48
+ import { Position } from 'reactflow';
49
49
  import { ReactEventHandler } from 'react';
50
- import { ReactFlowInstance } from '@xyflow/react';
51
- import { ReactFlowProps } from '@xyflow/react';
50
+ import { ReactFlowInstance } from 'reactflow';
51
+ import { ReactFlowProps } from 'reactflow';
52
52
  import { ReactGridLayoutProps } from 'react-grid-layout';
53
53
  import { ReactNode } from 'react';
54
54
  import { ResponsiveProps } from 'react-grid-layout';
@@ -109,6 +109,14 @@ declare const DEFAULT_LABELS_5: {
109
109
  expandLabel: string;
110
110
  };
111
111
 
112
+ declare const DEFAULT_LABELS_6: {
113
+ emptyMessage: string;
114
+ dialogTitle: string;
115
+ dialogSubtitle: string;
116
+ dialogApply: string;
117
+ dialogCancel: string;
118
+ };
119
+
112
120
  export declare const flowBaseNodeClasses: {
113
121
  root: string;
114
122
  headerContainer: string;
@@ -322,6 +330,49 @@ export declare const HvDashboard: (props: HvDashboardProps) => JSX_2.Element;
322
330
 
323
331
  export declare type HvDashboardClasses = ExtractNames<typeof useClasses_3>;
324
332
 
333
+ /** @deprecated no longer supported. Instead create a custom node with `HvDialog` + `HvDashboard` */
334
+ export declare const HvDashboardNode: (props: HvDashboardNodeProps) => JSX_2.Element;
335
+
336
+ export declare type HvDashboardNodeClasses = ExtractNames<typeof useClasses_9>;
337
+
338
+ export declare const hvDashboardNodeClasses: {
339
+ mandatory: string;
340
+ title: string;
341
+ root: string;
342
+ actions: string;
343
+ footerContainer: string;
344
+ titleContainer: string;
345
+ inputContainer: string;
346
+ handle: string;
347
+ headerContainer: string;
348
+ inputsTitleContainer: string;
349
+ outputsTitleContainer: string;
350
+ contentContainer: string;
351
+ inputsContainer: string;
352
+ outputsContainer: string;
353
+ inputGroupContainer: string;
354
+ outputGroupContainer: string;
355
+ outputContainer: string;
356
+ handleConnected: string;
357
+ subtitle: string;
358
+ subtitleContainer: string;
359
+ inlineEditRoot: string;
360
+ inlineEditButton: string;
361
+ actionsButton: string;
362
+ paramsContainer: string;
363
+ empty: string;
364
+ };
365
+
366
+ export declare interface HvDashboardNodeProps extends HvFlowNodeProps, Pick<HvDialogProps, "open" | "onClose">, Pick<HvDashboardProps, "layout"> {
367
+ classes?: HvDashboardNodeClasses;
368
+ labels?: HvFlowNodeProps["labels"] & Partial<typeof DEFAULT_LABELS_6>;
369
+ previewItems?: React.ReactNode;
370
+ onApply?: () => void;
371
+ onCancel?: () => void;
372
+ dashboardProps?: Omit<HvDashboardProps, "children">;
373
+ dialogProps?: HvDialogProps;
374
+ }
375
+
325
376
  export declare interface HvDashboardProps extends Omit<ResponsiveProps, "cols"> {
326
377
  /** Dashboard items. Each node must be `key`'ed */
327
378
  children: React.ReactNode;
@@ -339,7 +390,7 @@ export declare interface HvDashboardProps extends Omit<ResponsiveProps, "cols">
339
390
  cols?: number | ResponsiveProps["cols"];
340
391
  }
341
392
 
342
- declare interface HvDroppableFlowProps<NodeType extends string | undefined = string | undefined, NodeData extends Record<string, any> = Record<string, any>> extends Omit<ReactFlowProps, "nodes" | "edges" | "nodeTypes"> {
393
+ declare interface HvDroppableFlowProps<NodeType extends string | undefined = string | undefined, NodeData = any> extends Omit<ReactFlowProps, "nodes" | "edges" | "nodeTypes"> {
343
394
  /** Flow content: background, controls, and minimap. */
344
395
  children?: React.ReactNode;
345
396
  /** Flow nodes types. */
@@ -381,15 +432,15 @@ export declare const HvFlow: ({ nodeGroups, sidebar, defaultActions, dndContextP
381
432
  export declare const HvFlowBackground: ({ color, ...others }: HvFlowBackgroundProps) => JSX_2.Element;
382
433
 
383
434
  export declare interface HvFlowBackgroundProps extends Omit<BackgroundProps, "color"> {
384
- /** Color for the background dots. Defaults to `secondary`. */
435
+ /** Color for the background dots. Defaults to `text`. */
385
436
  color?: HvColorAny;
386
437
  }
387
438
 
388
- export declare const HvFlowBaseNode: ({ id, title: titleProp, headerItems, icon: iconProp, color: colorProp, inputs: inputsProp, outputs: outputsProp, nodeActions: nodeActionsProp, footer, classes: classesProp, labels: labelsProp, className, children, }: HvFlowBaseNodeProps) => JSX_2.Element | null;
439
+ export declare const HvFlowBaseNode: ({ id, title: titleProp, headerItems, icon: iconProp, color: colorProp, inputs: inputsProp, outputs: outputsProp, nodeActions: nodeActionsProp, footer, classes: classesProp, labels: labelsProp, className, children, }: HvFlowBaseNodeProps<unknown>) => JSX_2.Element | null;
389
440
 
390
441
  export declare type HvFlowBaseNodeClasses = ExtractNames<typeof useClasses_7>;
391
442
 
392
- export declare interface HvFlowBaseNodeProps<T extends Record<string, unknown> = Record<string, unknown>> extends Omit<HvBaseProps, "id" | "color" | "draggable">, Omit<HvUseNodeParams, "id">, NodeProps<Node_2<T>> {
443
+ export declare interface HvFlowBaseNodeProps<T = any> extends Omit<HvBaseProps, "id" | "color">, Omit<HvUseNodeParams, "id">, NodeProps<T> {
393
444
  /** Header items */
394
445
  headerItems?: React.ReactNode;
395
446
  /** The content of the node footer */
@@ -439,18 +490,18 @@ export declare interface HvFlowGroupItem<NodeData = any> extends Pick<HvFlowNode
439
490
  data?: NodeData;
440
491
  }
441
492
 
442
- export declare type HvFlowInstance<NodeData extends Record<string, unknown> = Record<string, unknown>, EdgeData extends Record<string, unknown> = Record<string, unknown>> = ReactFlowInstance<Node_2<NodeData>, Edge<EdgeData>>;
493
+ export declare type HvFlowInstance<NodeData = any, EdgeData = any> = ReactFlowInstance<NodeData, EdgeData>;
443
494
 
444
495
  export declare const HvFlowMinimap: ({ nodeColor, maskColor, maskStrokeColor, nodeStrokeColor, classes: classesProp, className, ...others }: HvFlowMinimapProps) => JSX_2.Element;
445
496
 
446
497
  export declare type HvFlowMinimapClasses = ExtractNames<typeof useClasses_5>;
447
498
 
448
- export declare interface HvFlowMinimapProps<NodeData extends Record<string, unknown> = Record<string, unknown>> extends Omit<MiniMapProps<Node_2<NodeData>>, "nodeColor" | "nodeStrokeColor" | "maskColor" | "maskStrokeColor"> {
449
- /** Node color. Defaults to `atmo4`. */
450
- nodeColor?: HvColorAny | GetMiniMapNodeAttribute<Node_2<NodeData>>;
451
- /** Node stroke color. Defaults to `atmo4`. */
452
- nodeStrokeColor?: HvColorAny | GetMiniMapNodeAttribute<Node_2<NodeData>>;
453
- /** Mask color. Defaults to `atmo3`. */
499
+ export declare interface HvFlowMinimapProps<NodeData = any> extends Omit<MiniMapProps<NodeData>, "nodeColor" | "nodeStrokeColor" | "maskColor" | "maskStrokeColor"> {
500
+ /** Node color. */
501
+ nodeColor?: HvColorAny | GetMiniMapNodeAttribute<NodeData>;
502
+ /** Node stroke color. */
503
+ nodeStrokeColor?: HvColorAny | GetMiniMapNodeAttribute<NodeData>;
504
+ /** Mask color. */
454
505
  maskColor?: HvColorAny;
455
506
  /** Mask stroke color. */
456
507
  maskStrokeColor?: HvColorAny;
@@ -458,7 +509,7 @@ export declare interface HvFlowMinimapProps<NodeData extends Record<string, unkn
458
509
  classes?: HvFlowMinimapClasses;
459
510
  }
460
511
 
461
- export declare const HvFlowNode: ({ id, type, headerItems, actions, onAction, maxVisibleActions, expanded, actionsIconOnly, params, classes: classesProp, labels: labelsProps, children, expandParamsButtonProps, disableInlineEdit, title: titleProp, subtitle: subtitleProp, description, groupId, color: colorProp, icon: iconProp, ...props }: HvFlowNodeProps) => JSX_2.Element;
512
+ export declare const HvFlowNode: ({ id, type, headerItems, actions, onAction, maxVisibleActions, expanded, actionsIconOnly, params, classes: classesProp, labels: labelsProps, children, expandParamsButtonProps, disableInlineEdit, title: titleProp, subtitle: subtitleProp, description, groupId, color: colorProp, icon: iconProp, ...props }: HvFlowNodeProps<unknown>) => JSX_2.Element;
462
513
 
463
514
  export declare interface HvFlowNodeAction extends HvActionGeneric {
464
515
  callback?: (node: Node_2) => void;
@@ -467,7 +518,7 @@ export declare interface HvFlowNodeAction extends HvActionGeneric {
467
518
  export declare type HvFlowNodeClasses = ExtractNames<typeof useClasses_8>;
468
519
 
469
520
  /** HvFlowNode component type. @extends React.FC */
470
- export declare interface HvFlowNodeFC<NodeData extends Record<string, any> = Record<string, any>> extends React.FC<NodeProps<Node_2<NodeData>>> {
521
+ export declare interface HvFlowNodeFC<NodeData = any> extends React.FC<NodeProps<NodeData>> {
471
522
  }
472
523
 
473
524
  /** Node groups */
@@ -517,7 +568,7 @@ export declare interface HvFlowNodeOutputGroup {
517
568
 
518
569
  export declare type HvFlowNodeParam = HvFlowNodeSelectParam | HvFlowNodeTextParam | HvFlowNodeSliderParam;
519
570
 
520
- export declare interface HvFlowNodeProps<T extends Record<string, any> = Record<string, any>> extends HvFlowBaseNodeProps<T> {
571
+ export declare interface HvFlowNodeProps<T = any> extends HvFlowBaseNodeProps<T> {
521
572
  /** Node description. */
522
573
  description?: string;
523
574
  /** Node actions. */
@@ -568,9 +619,9 @@ export declare interface HvFlowNodeTextParam extends HvFlowNodeSharedParam {
568
619
  type: "text";
569
620
  }
570
621
 
571
- export declare type HvFlowNodeTypes<NodeData extends Record<string, any> = Record<string, any>> = Record<string, HvFlowNodeFC<NodeData>>;
622
+ export declare type HvFlowNodeTypes<NodeData = any> = Record<string, HvFlowNodeFC<NodeData>>;
572
623
 
573
- export declare interface HvFlowProps<NodeGroups extends keyof any = string, NodeType extends string | undefined = string | undefined, NodeData extends Record<string, any> = Record<string, any>> extends HvDroppableFlowProps<NodeType, NodeData> {
624
+ export declare interface HvFlowProps<NodeGroups extends keyof any = string, NodeType extends string | undefined = string | undefined, NodeData = any> extends HvDroppableFlowProps<NodeType, NodeData> {
574
625
  /** Flow nodes groups. */
575
626
  nodeGroups?: HvFlowNodeGroups<NodeGroups>;
576
627
  /** Flow sidebar. */
@@ -608,7 +659,7 @@ export declare interface HvFlowSidebarProps extends Omit<HvDrawerProps, "classes
608
659
  dragOverlayProps?: DragOverlayProps;
609
660
  }
610
661
 
611
- declare type HvStepClasses = ExtractNames<typeof useClasses_10>;
662
+ declare type HvStepClasses = ExtractNames<typeof useClasses_11>;
612
663
 
613
664
  /**
614
665
  * Navigation page with steps.
@@ -621,7 +672,7 @@ declare type HvStepClasses = ExtractNames<typeof useClasses_10>;
621
672
  */
622
673
  export declare const HvStepNavigation: ({ className, classes: classesProp, width, steps, stepSize, showTitles, type, "aria-label": ariaLabel, ...others }: HvStepNavigationProps) => JSX_2.Element;
623
674
 
624
- export declare type HvStepNavigationClasses = ExtractNames<typeof useClasses_9>;
675
+ export declare type HvStepNavigationClasses = ExtractNames<typeof useClasses_10>;
625
676
 
626
677
  export declare interface HvStepNavigationProps extends HvBaseProps {
627
678
  /** Type of step navigation. */
@@ -690,7 +741,7 @@ export declare const HvWizard: ({ className, children, onClose, handleSubmit, ti
690
741
 
691
742
  export declare const HvWizardActions: ({ classes: classesProp, handleClose, handleSubmit, loading, skippable, labels, handleBeforeNext, handleBeforePrevious, }: HvWizardActionsProps) => JSX_2.Element;
692
743
 
693
- export declare type HvWizardActionsClasses = ExtractNames<typeof useClasses_12>;
744
+ export declare type HvWizardActionsClasses = ExtractNames<typeof useClasses_13>;
694
745
 
695
746
  export declare interface HvWizardActionsProps extends HvBaseProps {
696
747
  /** Function to handle the cancel button. */
@@ -722,11 +773,11 @@ export declare interface HvWizardActionsProps extends HvBaseProps {
722
773
  handleBeforePrevious?: () => void;
723
774
  }
724
775
 
725
- export declare type HvWizardClasses = ExtractNames<typeof useClasses_11>;
776
+ export declare type HvWizardClasses = ExtractNames<typeof useClasses_12>;
726
777
 
727
778
  export declare const HvWizardContainer: (props: HvWizardContainerProps) => JSX_2.Element;
728
779
 
729
- export declare type HvWizardContainerClasses = ExtractNames<typeof useClasses_14>;
780
+ export declare type HvWizardContainerClasses = ExtractNames<typeof useClasses_15>;
730
781
 
731
782
  export declare interface HvWizardContainerProps extends Omit<HvBaseProps, "onClose">, Pick<HvDialogProps, "maxWidth" | "fullWidth"> {
732
783
  /** Current state of the Wizard. */
@@ -739,7 +790,7 @@ export declare interface HvWizardContainerProps extends Omit<HvBaseProps, "onClo
739
790
 
740
791
  export declare const HvWizardContent: ({ classes: classesProp, fixedHeight, loading, children, summaryContent, }: HvWizardContentProps) => JSX_2.Element;
741
792
 
742
- export declare type HvWizardContentClasses = ExtractNames<typeof useClasses_15>;
793
+ export declare type HvWizardContentClasses = ExtractNames<typeof useClasses_16>;
743
794
 
744
795
  export declare interface HvWizardContentProps extends HvBaseProps {
745
796
  /** Forces minimum height to the component. */
@@ -808,7 +859,7 @@ export declare type HvWizardTabs = {
808
859
 
809
860
  export declare const HvWizardTitle: ({ title, hasSummary, labels, classes: classesProp, customStep, }: HvWizardTitleProps) => JSX_2.Element;
810
861
 
811
- export declare type HvWizardTitleClasses = ExtractNames<typeof useClasses_13>;
862
+ export declare type HvWizardTitleClasses = ExtractNames<typeof useClasses_14>;
812
863
 
813
864
  export declare interface HvWizardTitleProps extends HvBaseProps {
814
865
  /** Title for the wizard. */
@@ -834,6 +885,22 @@ export declare const stepNavigationClasses: {
834
885
  separator: string;
835
886
  };
836
887
 
888
+ export declare const StickyNode: ({ id, selected, data, }: NodeProps<StickyNodeData>) => JSX_2.Element | null;
889
+
890
+ export declare type StickyNodeData = undefined | {
891
+ title?: string;
892
+ backgroundColor?: HvColorAny_2;
893
+ borderColor?: HvColorAny_2;
894
+ textColor?: HvColorAny_2;
895
+ hasShadow?: boolean;
896
+ bold?: boolean;
897
+ italic?: boolean;
898
+ fontSize?: number;
899
+ expanded?: boolean;
900
+ visible?: boolean;
901
+ onDelete?: () => void;
902
+ };
903
+
837
904
  declare const useClasses: (classesProp?: Partial<Record<"container" | "button" | "expanded" | "disabled" | "heading" | "root" | "fullWidth" | "textOnlyLabel", string>>, addStatic?: boolean) => {
838
905
  readonly classes: {
839
906
  root: string;
@@ -849,7 +916,19 @@ declare const useClasses: (classesProp?: Partial<Record<"container" | "button" |
849
916
  readonly cx: (...args: any) => string;
850
917
  };
851
918
 
852
- declare const useClasses_10: (classesProp?: Partial<Record<"xs" | "sm" | "md" | "lg" | "xl" | "root" | "avatar" | "notCurrent", string>>, addStatic?: boolean) => {
919
+ declare const useClasses_10: (classesProp?: Partial<Record<"separator" | "li" | "ol" | "root" | "titles", string>>, addStatic?: boolean) => {
920
+ readonly classes: {
921
+ root: string;
922
+ titles: string;
923
+ ol: string;
924
+ li: string;
925
+ separator: string;
926
+ };
927
+ readonly css: any;
928
+ readonly cx: (...args: any) => string;
929
+ };
930
+
931
+ declare const useClasses_11: (classesProp?: Partial<Record<"xs" | "sm" | "md" | "lg" | "xl" | "root" | "avatar" | "notCurrent", string>>, addStatic?: boolean) => {
853
932
  readonly classes: {
854
933
  root: string;
855
934
  notCurrent: string;
@@ -864,7 +943,7 @@ declare const useClasses_10: (classesProp?: Partial<Record<"xs" | "sm" | "md" |
864
943
  readonly cx: (...args: any) => string;
865
944
  };
866
945
 
867
- declare const useClasses_11: (classesProp?: Partial<Record<"root", string>>, addStatic?: boolean) => {
946
+ declare const useClasses_12: (classesProp?: Partial<Record<"root", string>>, addStatic?: boolean) => {
868
947
  readonly classes: {
869
948
  root: string;
870
949
  };
@@ -872,7 +951,7 @@ declare const useClasses_11: (classesProp?: Partial<Record<"root", string>>, add
872
951
  readonly cx: (...args: any) => string;
873
952
  };
874
953
 
875
- declare const useClasses_12: (classesProp?: Partial<Record<"actionsContainer" | "buttonWidth" | "buttonsContainer" | "buttonSpacing", string>>, addStatic?: boolean) => {
954
+ declare const useClasses_13: (classesProp?: Partial<Record<"actionsContainer" | "buttonWidth" | "buttonsContainer" | "buttonSpacing", string>>, addStatic?: boolean) => {
876
955
  readonly classes: {
877
956
  actionsContainer: string;
878
957
  buttonWidth: string;
@@ -883,7 +962,7 @@ declare const useClasses_12: (classesProp?: Partial<Record<"actionsContainer" |
883
962
  readonly cx: (...args: any) => string;
884
963
  };
885
964
 
886
- declare const useClasses_13: (classesProp?: Partial<Record<"root" | "summaryButton" | "stepContainer", string>>, addStatic?: boolean) => {
965
+ declare const useClasses_14: (classesProp?: Partial<Record<"root" | "summaryButton" | "stepContainer", string>>, addStatic?: boolean) => {
887
966
  readonly classes: {
888
967
  root: string;
889
968
  summaryButton: string;
@@ -893,7 +972,7 @@ declare const useClasses_13: (classesProp?: Partial<Record<"root" | "summaryButt
893
972
  readonly cx: (...args: any) => string;
894
973
  };
895
974
 
896
- declare const useClasses_14: (classesProp?: Partial<Record<"root" | "paper" | "closeButton", string>>, addStatic?: boolean) => {
975
+ declare const useClasses_15: (classesProp?: Partial<Record<"root" | "paper" | "closeButton", string>>, addStatic?: boolean) => {
897
976
  readonly classes: {
898
977
  root: string;
899
978
  paper: string;
@@ -903,7 +982,7 @@ declare const useClasses_14: (classesProp?: Partial<Record<"root" | "paper" | "c
903
982
  readonly cx: (...args: any) => string;
904
983
  };
905
984
 
906
- declare const useClasses_15: (classesProp?: Partial<Record<"contentContainer" | "fixedHeight" | "summaryRef" | "summarySticky" | "summaryContainer", string>>, addStatic?: boolean) => {
985
+ declare const useClasses_16: (classesProp?: Partial<Record<"contentContainer" | "fixedHeight" | "summaryRef" | "summarySticky" | "summaryContainer", string>>, addStatic?: boolean) => {
907
986
  readonly classes: {
908
987
  contentContainer: string;
909
988
  fixedHeight: string;
@@ -1015,13 +1094,33 @@ declare const useClasses_8: (classesProp?: Partial<Record<"mandatory" | "title"
1015
1094
  readonly cx: (...args: any) => string;
1016
1095
  };
1017
1096
 
1018
- declare const useClasses_9: (classesProp?: Partial<Record<"separator" | "li" | "ol" | "root" | "titles", string>>, addStatic?: boolean) => {
1097
+ declare const useClasses_9: (classesProp?: Partial<Record<"mandatory" | "title" | "root" | "empty" | "actions" | "footerContainer" | "titleContainer" | "inputContainer" | "handle" | "headerContainer" | "inputsTitleContainer" | "outputsTitleContainer" | "contentContainer" | "inputsContainer" | "outputsContainer" | "inputGroupContainer" | "outputGroupContainer" | "outputContainer" | "handleConnected" | "subtitle" | "subtitleContainer" | "inlineEditRoot" | "inlineEditButton" | "actionsButton" | "paramsContainer", string>>, addStatic?: boolean) => {
1019
1098
  readonly classes: {
1099
+ mandatory: string;
1100
+ title: string;
1020
1101
  root: string;
1021
- titles: string;
1022
- ol: string;
1023
- li: string;
1024
- separator: string;
1102
+ actions: string;
1103
+ footerContainer: string;
1104
+ titleContainer: string;
1105
+ inputContainer: string;
1106
+ handle: string;
1107
+ headerContainer: string;
1108
+ inputsTitleContainer: string;
1109
+ outputsTitleContainer: string;
1110
+ contentContainer: string;
1111
+ inputsContainer: string;
1112
+ outputsContainer: string;
1113
+ inputGroupContainer: string;
1114
+ outputGroupContainer: string;
1115
+ outputContainer: string;
1116
+ handleConnected: string;
1117
+ subtitle: string;
1118
+ subtitleContainer: string;
1119
+ inlineEditRoot: string;
1120
+ inlineEditButton: string;
1121
+ actionsButton: string;
1122
+ paramsContainer: string;
1123
+ empty: string;
1025
1124
  };
1026
1125
  readonly css: any;
1027
1126
  readonly cx: (...args: any) => string;
@@ -1030,10 +1129,10 @@ declare const useClasses_9: (classesProp?: Partial<Record<"separator" | "li" | "
1030
1129
  export declare const useFlowContext: () => HvFlowContextValue<string>;
1031
1130
 
1032
1131
  /** Retrieves the nodes connected to the inputs of the node */
1033
- export declare function useFlowInputNodes<T extends Record<string, unknown> = Record<string, unknown>>(id?: string): Node_2<T>[];
1132
+ export declare function useFlowInputNodes<T = any>(id?: string): Node_2<T>[];
1034
1133
 
1035
1134
  /** Retrieves the React Flow instance */
1036
- export declare function useFlowInstance<NodeData extends Record<string, unknown> = Record<string, unknown>, EdgeData extends Record<string, unknown> = Record<string, unknown>>(): HvFlowInstance<NodeData, EdgeData>;
1135
+ export declare function useFlowInstance<NodeData = any, EdgeData = any>(): HvFlowInstance<NodeData, EdgeData>;
1037
1136
 
1038
1137
  /** Retrieves the node instance */
1039
1138
  export declare function useFlowNode<T extends Node_2 = Node_2>(id?: string): T | undefined;
@@ -1044,7 +1143,7 @@ export declare function useFlowNodeEdges(id?: string): Edge[];
1044
1143
  /** Provides the input edges connected to the node */
1045
1144
  export declare function useFlowNodeInputEdges(id?: string): Edge[];
1046
1145
 
1047
- export declare function useFlowNodeIntersections<T extends Record<string, unknown> = Record<string, unknown>>(id?: string): Node_2<T>[];
1146
+ export declare function useFlowNodeIntersections<NodeData = any>(id?: string): Node_2<NodeData>[];
1048
1147
 
1049
1148
  export declare function useFlowNodeMeta(id?: string): HvFlowNodeMeta_2;
1050
1149
 
@@ -1055,13 +1154,13 @@ export declare function useFlowNodeOutputEdges(id?: string): Edge[];
1055
1154
  export declare function useFlowNodeParents(id?: string): Node_2[];
1056
1155
 
1057
1156
  /** Utilities to manipulate a node in the flow */
1058
- export declare function useFlowNodeUtils<T extends Record<string, unknown> = Record<string, unknown>>(id?: string): {
1059
- setNodeData: (setNewData: (newData?: T) => T) => void;
1157
+ export declare function useFlowNodeUtils<NodeData = any>(id?: string): {
1158
+ setNodeData: (setNewData: (newData?: NodeData) => NodeData) => void;
1060
1159
  setNodeParent: (node?: Node_2<any>, extent?: "parent" | CoordinateExtent) => void;
1061
1160
  };
1062
1161
 
1063
1162
  /** Retrieves the nodes connected to the outputs of the node */
1064
- export declare function useFlowOutputNodes<T extends Record<string, unknown> = Record<string, unknown>>(id?: string): Node_2<T>[];
1163
+ export declare function useFlowOutputNodes<T = any>(id?: string): Node_2<T>[];
1065
1164
 
1066
1165
  export declare function useHvNode(props: HvUseNodeParams): {
1067
1166
  id: string;
@@ -1069,7 +1168,7 @@ export declare function useHvNode(props: HvUseNodeParams): {
1069
1168
  icon: ReactNode;
1070
1169
  color: string | undefined;
1071
1170
  iconColor: string | undefined;
1072
- subtitle: string | undefined;
1171
+ subtitle: any;
1073
1172
  inputs: (HvFlowNodeInput | HvFlowNodeOutput | {
1074
1173
  inputs: HvFlowNodeInput[];
1075
1174
  label: React.ReactNode;
@@ -1089,7 +1188,7 @@ export declare function useHvNode(props: HvUseNodeParams): {
1089
1188
  node: Node_2 | undefined;
1090
1189
  nodeActions: HvFlowNodeAction[];
1091
1190
  showActions: boolean;
1092
- intersections: Node_2<Record<string, unknown>>[];
1191
+ intersections: Node_2<any>[];
1093
1192
  getNodeToolbarProps: () => {
1094
1193
  defaultChecked?: boolean | undefined;
1095
1194
  defaultValue?: string | number | readonly string[] | undefined;
@@ -1365,8 +1464,8 @@ export declare function useHvNode(props: HvUseNodeParams): {
1365
1464
  };
1366
1465
  toggleShowActions: () => void;
1367
1466
  handleDefaultAction: (action: HvFlowNodeAction) => void;
1368
- setNodeData: (setNewData: (newData?: Record<string, unknown> | undefined) => Record<string, unknown>) => void;
1369
- setNodeParent: (node?: Node_2<any>, extent?: "parent" | CoordinateExtent_2) => void;
1467
+ setNodeData: (setNewData: (newData?: any) => any) => void;
1468
+ setNodeParent: (node?: Node_2<any>, extent?: "parent" | CoordinateExtent) => void;
1370
1469
  };
1371
1470
 
1372
1471
  export declare function useNodeMetaRegistry(): {
package/dist/index.js CHANGED
@@ -19,28 +19,32 @@ import { staticClasses as staticClasses7 } from "./Flow/Node/BaseNode.styles.js"
19
19
  import { DEFAULT_LABELS, HvFlowBaseNode } from "./Flow/Node/BaseNode.js";
20
20
  import { staticClasses as staticClasses8 } from "./Flow/Node/Node.styles.js";
21
21
  import { HvFlowNode } from "./Flow/Node/Node.js";
22
+ import { staticClasses as staticClasses9 } from "./Flow/nodes/DashboardNode.styles.js";
23
+ import { HvDashboardNode } from "./Flow/nodes/DashboardNode.js";
24
+ import { StickyNode } from "./Flow/nodes/StickyNode.js";
22
25
  import { useFlowInputNodes, useFlowNode, useFlowNodeEdges, useFlowNodeInputEdges, useFlowNodeIntersections, useFlowNodeOutputEdges, useFlowNodeParents, useFlowNodeUtils, useFlowOutputNodes } from "./Flow/hooks/useFlowNode.js";
23
26
  import { useFlowContext } from "./Flow/hooks/useFlowContext.js";
24
27
  import { useFlowNodeMeta } from "./Flow/hooks/useFlowNodeMeta.js";
25
28
  import { useFlowInstance } from "./Flow/hooks/useFlowInstance.js";
26
29
  import { useHvNode } from "./Flow/hooks/useNode.js";
27
- import { staticClasses as staticClasses9 } from "./StepNavigation/StepNavigation.styles.js";
30
+ import { staticClasses as staticClasses10 } from "./StepNavigation/StepNavigation.styles.js";
28
31
  import { HvStepNavigation } from "./StepNavigation/StepNavigation.js";
29
- import { staticClasses as staticClasses10 } from "./Wizard/Wizard.styles.js";
32
+ import { staticClasses as staticClasses11 } from "./Wizard/Wizard.styles.js";
30
33
  import { HvWizard } from "./Wizard/Wizard.js";
31
- import { staticClasses as staticClasses11 } from "./Wizard/WizardActions/WizardActions.styles.js";
34
+ import { staticClasses as staticClasses12 } from "./Wizard/WizardActions/WizardActions.styles.js";
32
35
  import { HvWizardActions } from "./Wizard/WizardActions/WizardActions.js";
33
- import { staticClasses as staticClasses12 } from "./Wizard/WizardContainer/WizardContainer.styles.js";
36
+ import { staticClasses as staticClasses13 } from "./Wizard/WizardContainer/WizardContainer.styles.js";
34
37
  import { HvWizardContainer } from "./Wizard/WizardContainer/WizardContainer.js";
35
- import { staticClasses as staticClasses13 } from "./Wizard/WizardContent/WizardContent.styles.js";
38
+ import { staticClasses as staticClasses14 } from "./Wizard/WizardContent/WizardContent.styles.js";
36
39
  import { HvWizardContent } from "./Wizard/WizardContent/WizardContent.js";
37
- import { staticClasses as staticClasses14 } from "./Wizard/WizardTitle/WizardTitle.styles.js";
40
+ import { staticClasses as staticClasses15 } from "./Wizard/WizardTitle/WizardTitle.styles.js";
38
41
  import { HvWizardTitle } from "./Wizard/WizardTitle/WizardTitle.js";
39
42
  export {
40
43
  DEFAULT_LABELS,
41
44
  HvBlade,
42
45
  HvBlades,
43
46
  HvDashboard,
47
+ HvDashboardNode,
44
48
  HvFlow,
45
49
  HvFlowBackground,
46
50
  HvFlowBaseNode,
@@ -56,6 +60,7 @@ export {
56
60
  HvWizardContent,
57
61
  default2 as HvWizardContext,
58
62
  HvWizardTitle,
63
+ StickyNode,
59
64
  staticClasses as bladeClasses,
60
65
  staticClasses2 as bladesClasses,
61
66
  staticClasses3 as dashboardClasses,
@@ -64,7 +69,8 @@ export {
64
69
  staticClasses5 as flowMinimapClasses,
65
70
  staticClasses8 as flowNodeClasses,
66
71
  staticClasses6 as flowSidebarClasses,
67
- staticClasses9 as stepNavigationClasses,
72
+ staticClasses9 as hvDashboardNodeClasses,
73
+ staticClasses10 as stepNavigationClasses,
68
74
  useFlowContext,
69
75
  useFlowInputNodes,
70
76
  useFlowInstance,
@@ -79,9 +85,9 @@ export {
79
85
  useFlowOutputNodes,
80
86
  useHvNode,
81
87
  useNodeMetaRegistry,
82
- staticClasses11 as wizardActionsClasses,
83
- staticClasses10 as wizardClasses,
84
- staticClasses12 as wizardContainerClasses,
85
- staticClasses13 as wizardContentClasses,
86
- staticClasses14 as wizardTitleClasses
88
+ staticClasses12 as wizardActionsClasses,
89
+ staticClasses11 as wizardClasses,
90
+ staticClasses13 as wizardContainerClasses,
91
+ staticClasses14 as wizardContentClasses,
92
+ staticClasses15 as wizardTitleClasses
87
93
  };
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@hitachivantara/uikit-react-lab",
3
- "version": "6.0.0-next.1",
3
+ "version": "6.0.0-next.3",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "author": "Hitachi Vantara UI Kit Team",
7
7
  "description": "Contributed React components for the NEXT UI Kit.",
8
- "homepage": "https://github.com/lumada-design/hv-uikit-react",
8
+ "homepage": "https://github.com/pentaho/hv-uikit-react",
9
9
  "sideEffects": false,
10
10
  "keywords": [
11
11
  "hitachi-vantara",
@@ -16,12 +16,12 @@
16
16
  ],
17
17
  "repository": {
18
18
  "type": "git",
19
- "url": "git+https://github.com/lumada-design/hv-uikit-react.git",
19
+ "url": "git+https://github.com/pentaho/hv-uikit-react.git",
20
20
  "directory": "packages/lab"
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "bugs": {
24
- "url": "https://github.com/lumada-design/hv-uikit-react/issues"
24
+ "url": "https://github.com/pentaho/hv-uikit-react/issues"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "@emotion/react": "^11.11.1",
@@ -34,14 +34,14 @@
34
34
  "@dnd-kit/core": "^6.1.0",
35
35
  "@dnd-kit/modifiers": "^6.0.1",
36
36
  "@emotion/css": "^11.11.0",
37
- "@hitachivantara/uikit-react-core": "^6.0.0-next.1",
38
- "@hitachivantara/uikit-react-icons": "^6.0.0-next.1",
39
- "@hitachivantara/uikit-react-utils": "^6.0.0-next.1",
40
- "@hitachivantara/uikit-styles": "^6.0.0-next.1",
37
+ "@hitachivantara/uikit-react-core": "^6.0.0-next.3",
38
+ "@hitachivantara/uikit-react-icons": "^6.0.0-next.3",
39
+ "@hitachivantara/uikit-react-utils": "^6.0.0-next.3",
40
+ "@hitachivantara/uikit-styles": "^6.0.0-next.3",
41
41
  "@mui/base": "5.0.0-beta.68",
42
42
  "@types/react-grid-layout": "^1.3.5",
43
- "@xyflow/react": "^12.8.2",
44
43
  "react-grid-layout": "^1.4.4",
44
+ "reactflow": "^11.10.1",
45
45
  "uid": "^2.0.2",
46
46
  "usehooks-ts": "^2.16.0",
47
47
  "zustand": "^4.5.2"
@@ -53,7 +53,7 @@
53
53
  "access": "public",
54
54
  "directory": "package"
55
55
  },
56
- "gitHead": "f8dfa00a9f29ffdfcabe9cd00553ddf8b7458bd0",
56
+ "gitHead": "f404f47dd2c0a9d4033b9acccc87282aa9e42119",
57
57
  "exports": {
58
58
  ".": {
59
59
  "types": "./dist/index.d.ts",