@hitachivantara/uikit-react-lab 6.1.6 → 6.1.8

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.
@@ -5,9 +5,9 @@ import { Info, DropDownXS } from "@hitachivantara/uikit-react-icons";
5
5
  import { HvFlowBaseNode } from "./BaseNode.js";
6
6
  import { useClasses } from "./Node.styles.js";
7
7
  import { staticClasses } from "./Node.styles.js";
8
+ import { useFlowContext } from "../hooks/useFlowContext.js";
8
9
  import { useFlowNode, useFlowNodeUtils } from "../hooks/useFlowNode.js";
9
10
  import { ParamRenderer } from "./Parameters/ParamRenderer.js";
10
- import { useFlowContext } from "../hooks/useFlowContext.js";
11
11
  const DEFAULT_LABELS = {
12
12
  collapseLabel: "Collapse",
13
13
  expandLabel: "Expand"
@@ -6,10 +6,10 @@ import { useLabels, useUniqueId, HvDrawer, HvTypography, HvInput } from "@hitach
6
6
  import { Add } from "@hitachivantara/uikit-react-icons";
7
7
  import { useClasses } from "./Sidebar.styles.js";
8
8
  import { staticClasses } from "./Sidebar.styles.js";
9
- import { HvFlowSidebarGroup } from "./SidebarGroup/SidebarGroup.js";
10
- import { HvFlowSidebarGroupItem } from "./SidebarGroup/SidebarGroupItem/SidebarGroupItem.js";
11
9
  import { useFlowContext } from "../hooks/useFlowContext.js";
12
10
  import { HvFlowDraggableSidebarGroupItem } from "./SidebarGroup/SidebarGroupItem/DraggableSidebarGroupItem.js";
11
+ import { HvFlowSidebarGroup } from "./SidebarGroup/SidebarGroup.js";
12
+ import { HvFlowSidebarGroupItem } from "./SidebarGroup/SidebarGroupItem/SidebarGroupItem.js";
13
13
  const DEFAULT_LABELS = {
14
14
  itemAriaRoleDescription: "Draggable",
15
15
  expandGroupButtonAriaLabel: "Expand group",
@@ -67,7 +67,7 @@ const HvWizard = ({
67
67
  HvWizardContainer,
68
68
  {
69
69
  className: cx(classes.root, className),
70
- handleClose,
70
+ onClose: handleClose,
71
71
  open,
72
72
  ...others,
73
73
  children: [
@@ -5,7 +5,6 @@ import { staticClasses } from "./WizardContainer.styles.js";
5
5
  const HvWizardContainer = (props) => {
6
6
  const {
7
7
  classes: classesProp,
8
- children,
9
8
  handleClose,
10
9
  ...others
11
10
  } = useDefaultProps("HvWizardContainer", props);
@@ -21,8 +20,7 @@ const HvWizardContainer = (props) => {
21
20
  onClose: handleClose,
22
21
  fullWidth: true,
23
22
  maxWidth: "lg",
24
- ...others,
25
- children
23
+ ...others
26
24
  }
27
25
  );
28
26
  };
package/dist/index.d.ts CHANGED
@@ -748,7 +748,7 @@ export declare const HvWizard: ({ className, children, onClose, handleSubmit, ti
748
748
 
749
749
  export declare const HvWizardActions: ({ classes: classesProp, handleClose, handleSubmit, loading, skippable, labels, handleBeforeNext, handleBeforePrevious, }: HvWizardActionsProps) => JSX_2.Element;
750
750
 
751
- export declare type HvWizardActionsClasses = ExtractNames<typeof useClasses_13>;
751
+ export declare type HvWizardActionsClasses = ExtractNames<typeof useClasses_14>;
752
752
 
753
753
  export declare interface HvWizardActionsProps extends HvBaseProps {
754
754
  /** Function to handle the cancel button. */
@@ -784,13 +784,13 @@ export declare type HvWizardClasses = ExtractNames<typeof useClasses_12>;
784
784
 
785
785
  export declare const HvWizardContainer: (props: HvWizardContainerProps) => JSX_2.Element;
786
786
 
787
- export declare type HvWizardContainerClasses = ExtractNames<typeof useClasses_15>;
787
+ export declare type HvWizardContainerClasses = ExtractNames<typeof useClasses_13>;
788
788
 
789
- export declare interface HvWizardContainerProps extends Omit<HvBaseProps, "onClose">, Pick<HvDialogProps, "maxWidth" | "fullWidth"> {
789
+ export declare interface HvWizardContainerProps extends Omit<HvDialogProps, "classes"> {
790
790
  /** Current state of the Wizard. */
791
791
  open: boolean;
792
- /** Function executed on close. */
793
- handleClose: HvDialogProps["onClose"];
792
+ /** Function executed on close. @deprecated use `onClose` instead */
793
+ handleClose?: HvDialogProps["onClose"];
794
794
  /** A Jss Object used to override or extend the styles applied to the empty state Wizard. */
795
795
  classes?: HvWizardContainerClasses;
796
796
  }
@@ -821,7 +821,7 @@ declare type HvWizardContextProp = {
821
821
  setTab: Dispatch<SetStateAction<number>>;
822
822
  };
823
823
 
824
- export declare interface HvWizardProps extends HvBaseProps, Pick<HvDialogProps, "maxWidth" | "fullWidth"> {
824
+ export declare interface HvWizardProps extends Omit<HvWizardContainerProps, "classes"> {
825
825
  /** Current state of the Wizard. */
826
826
  open: boolean;
827
827
  /** Function executed on close. */
@@ -864,7 +864,7 @@ export declare type HvWizardTabs = Partial<Record<number, HvWizardTab>>;
864
864
 
865
865
  export declare const HvWizardTitle: ({ title, hasSummary, labels, classes: classesProp, customStep, }: HvWizardTitleProps) => JSX_2.Element;
866
866
 
867
- export declare type HvWizardTitleClasses = ExtractNames<typeof useClasses_14>;
867
+ export declare type HvWizardTitleClasses = ExtractNames<typeof useClasses_15>;
868
868
 
869
869
  export declare interface HvWizardTitleProps extends HvBaseProps {
870
870
  /** Title for the wizard. */
@@ -956,32 +956,32 @@ declare const useClasses_12: (classesProp?: Partial<Record<"root", string>>, add
956
956
  readonly cx: (...args: any) => string;
957
957
  };
958
958
 
959
- declare const useClasses_13: (classesProp?: Partial<Record<"actionsContainer" | "buttonWidth" | "buttonsContainer" | "buttonSpacing", string>>, addStatic?: boolean) => {
959
+ declare const useClasses_13: (classesProp?: Partial<Record<"root" | "paper" | "closeButton", string>>, addStatic?: boolean) => {
960
960
  readonly classes: {
961
- actionsContainer: string;
962
- buttonWidth: string;
963
- buttonsContainer: string;
964
- buttonSpacing: string;
961
+ root: string;
962
+ paper: string;
963
+ closeButton: string;
965
964
  };
966
965
  readonly css: any;
967
966
  readonly cx: (...args: any) => string;
968
967
  };
969
968
 
970
- declare const useClasses_14: (classesProp?: Partial<Record<"root" | "summaryButton" | "stepContainer", string>>, addStatic?: boolean) => {
969
+ declare const useClasses_14: (classesProp?: Partial<Record<"actionsContainer" | "buttonWidth" | "buttonsContainer" | "buttonSpacing", string>>, addStatic?: boolean) => {
971
970
  readonly classes: {
972
- root: string;
973
- summaryButton: string;
974
- stepContainer: string;
971
+ actionsContainer: string;
972
+ buttonWidth: string;
973
+ buttonsContainer: string;
974
+ buttonSpacing: string;
975
975
  };
976
976
  readonly css: any;
977
977
  readonly cx: (...args: any) => string;
978
978
  };
979
979
 
980
- declare const useClasses_15: (classesProp?: Partial<Record<"root" | "paper" | "closeButton", string>>, addStatic?: boolean) => {
980
+ declare const useClasses_15: (classesProp?: Partial<Record<"root" | "summaryButton" | "stepContainer", string>>, addStatic?: boolean) => {
981
981
  readonly classes: {
982
982
  root: string;
983
- paper: string;
984
- closeButton: string;
983
+ summaryButton: string;
984
+ stepContainer: string;
985
985
  };
986
986
  readonly css: any;
987
987
  readonly cx: (...args: any) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitachivantara/uikit-react-lab",
3
- "version": "6.1.6",
3
+ "version": "6.1.8",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "author": "Hitachi Vantara UI Kit Team",
@@ -34,11 +34,10 @@
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.6.1",
38
- "@hitachivantara/uikit-react-icons": "^6.0.3",
39
- "@hitachivantara/uikit-react-utils": "^6.2.1",
40
- "@hitachivantara/uikit-styles": "^6.0.3",
41
- "@mui/base": "5.0.0-beta.68",
37
+ "@hitachivantara/uikit-react-core": "^6.8.1",
38
+ "@hitachivantara/uikit-react-icons": "^6.0.4",
39
+ "@hitachivantara/uikit-react-utils": "^6.2.2",
40
+ "@hitachivantara/uikit-styles": "^6.1.0",
42
41
  "@types/react-grid-layout": "^1.3.5",
43
42
  "react-grid-layout": "^1.4.4",
44
43
  "reactflow": "^11.10.1",
@@ -53,7 +52,7 @@
53
52
  "access": "public",
54
53
  "directory": "package"
55
54
  },
56
- "gitHead": "a21dd82d491518df161ef2f5dc95fd90164836f1",
55
+ "gitHead": "b9034f709fcfa749a28a52ed31dab060455493d6",
57
56
  "exports": {
58
57
  ".": {
59
58
  "types": "./dist/index.d.ts",