@hitachivantara/uikit-react-lab 5.46.13 → 6.0.0-next.2

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.
Files changed (134) hide show
  1. package/dist/{esm/Flow → Flow}/Background/Background.js +1 -1
  2. package/dist/{esm/Flow → Flow}/Empty/Empty.styles.js +1 -1
  3. package/dist/{esm/Flow → Flow}/Node/Node.js +0 -3
  4. package/dist/{esm/Flow → Flow}/Sidebar/Sidebar.js +1 -1
  5. package/dist/{esm/StepNavigation → StepNavigation}/DefaultNavigation/DefaultNavigation.js +1 -3
  6. package/dist/{esm/StepNavigation → StepNavigation}/SimpleNavigation/SimpleNavigation.js +1 -3
  7. package/dist/{esm/StepNavigation → StepNavigation}/StepNavigation.js +2 -7
  8. package/dist/{esm/Wizard → Wizard}/WizardTitle/WizardTitle.js +31 -47
  9. package/dist/{esm/Wizard → Wizard}/WizardTitle/WizardTitle.styles.js +0 -10
  10. package/dist/{types/index.d.ts → index.d.ts} +12 -28
  11. package/package.json +14 -14
  12. package/dist/cjs/Blade/Blade.cjs +0 -174
  13. package/dist/cjs/Blade/Blade.styles.cjs +0 -71
  14. package/dist/cjs/Blades/Blades.cjs +0 -104
  15. package/dist/cjs/Blades/Blades.styles.cjs +0 -11
  16. package/dist/cjs/Dashboard/Dashboard.cjs +0 -63
  17. package/dist/cjs/Dashboard/Dashboard.styles.cjs +0 -196
  18. package/dist/cjs/Flow/Background/Background.cjs +0 -19
  19. package/dist/cjs/Flow/Controls/Controls.cjs +0 -96
  20. package/dist/cjs/Flow/DroppableFlow.cjs +0 -204
  21. package/dist/cjs/Flow/Empty/Empty.cjs +0 -12
  22. package/dist/cjs/Flow/Empty/Empty.styles.cjs +0 -16
  23. package/dist/cjs/Flow/Flow.cjs +0 -33
  24. package/dist/cjs/Flow/Flow.styles.cjs +0 -19
  25. package/dist/cjs/Flow/FlowContext/FlowContext.cjs +0 -25
  26. package/dist/cjs/Flow/FlowContext/NodeMetaContext.cjs +0 -43
  27. package/dist/cjs/Flow/Minimap/Minimap.cjs +0 -30
  28. package/dist/cjs/Flow/Minimap/Minimap.styles.cjs +0 -10
  29. package/dist/cjs/Flow/Node/BaseNode.cjs +0 -192
  30. package/dist/cjs/Flow/Node/BaseNode.styles.cjs +0 -135
  31. package/dist/cjs/Flow/Node/Node.cjs +0 -115
  32. package/dist/cjs/Flow/Node/Node.styles.cjs +0 -42
  33. package/dist/cjs/Flow/Node/Parameters/ParamRenderer.cjs +0 -19
  34. package/dist/cjs/Flow/Node/Parameters/Select.cjs +0 -41
  35. package/dist/cjs/Flow/Node/Parameters/Slider.cjs +0 -33
  36. package/dist/cjs/Flow/Node/Parameters/Text.cjs +0 -19
  37. package/dist/cjs/Flow/Node/utils.cjs +0 -54
  38. package/dist/cjs/Flow/Sidebar/Sidebar.cjs +0 -141
  39. package/dist/cjs/Flow/Sidebar/Sidebar.styles.cjs +0 -24
  40. package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroup.cjs +0 -62
  41. package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroup.styles.cjs +0 -34
  42. package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroupItem/DraggableSidebarGroupItem.cjs +0 -51
  43. package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.cjs +0 -35
  44. package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.styles.cjs +0 -23
  45. package/dist/cjs/Flow/base.cjs +0 -411
  46. package/dist/cjs/Flow/hooks/useFlowContext.cjs +0 -6
  47. package/dist/cjs/Flow/hooks/useFlowInstance.cjs +0 -7
  48. package/dist/cjs/Flow/hooks/useFlowNode.cjs +0 -134
  49. package/dist/cjs/Flow/hooks/useFlowNodeMeta.cjs +0 -10
  50. package/dist/cjs/Flow/hooks/useNode.cjs +0 -159
  51. package/dist/cjs/Flow/hooks/useNodeId.cjs +0 -8
  52. package/dist/cjs/Flow/nodes/DashboardNode.cjs +0 -88
  53. package/dist/cjs/Flow/nodes/DashboardNode.styles.cjs +0 -16
  54. package/dist/cjs/Flow/nodes/StickyNode.cjs +0 -441
  55. package/dist/cjs/StepNavigation/DefaultNavigation/DefaultNavigation.cjs +0 -56
  56. package/dist/cjs/StepNavigation/DefaultNavigation/Step/Step.cjs +0 -78
  57. package/dist/cjs/StepNavigation/DefaultNavigation/Step/Step.styles.cjs +0 -35
  58. package/dist/cjs/StepNavigation/DefaultNavigation/utils.cjs +0 -34
  59. package/dist/cjs/StepNavigation/SimpleNavigation/Dot/Dot.cjs +0 -43
  60. package/dist/cjs/StepNavigation/SimpleNavigation/Dot/Dot.styles.cjs +0 -18
  61. package/dist/cjs/StepNavigation/SimpleNavigation/SimpleNavigation.cjs +0 -52
  62. package/dist/cjs/StepNavigation/SimpleNavigation/utils.cjs +0 -13
  63. package/dist/cjs/StepNavigation/StepNavigation.cjs +0 -188
  64. package/dist/cjs/StepNavigation/StepNavigation.styles.cjs +0 -34
  65. package/dist/cjs/StepNavigation/utils.cjs +0 -8
  66. package/dist/cjs/Wizard/Wizard.cjs +0 -108
  67. package/dist/cjs/Wizard/Wizard.styles.cjs +0 -8
  68. package/dist/cjs/Wizard/WizardActions/WizardActions.cjs +0 -132
  69. package/dist/cjs/Wizard/WizardActions/WizardActions.styles.cjs +0 -22
  70. package/dist/cjs/Wizard/WizardContainer/WizardContainer.cjs +0 -31
  71. package/dist/cjs/Wizard/WizardContainer/WizardContainer.styles.cjs +0 -15
  72. package/dist/cjs/Wizard/WizardContent/WizardContent.cjs +0 -121
  73. package/dist/cjs/Wizard/WizardContent/WizardContent.styles.cjs +0 -38
  74. package/dist/cjs/Wizard/WizardContext/WizardContext.cjs +0 -15
  75. package/dist/cjs/Wizard/WizardTitle/WizardTitle.cjs +0 -97
  76. package/dist/cjs/Wizard/WizardTitle/WizardTitle.styles.cjs +0 -27
  77. package/dist/cjs/index.cjs +0 -93
  78. /package/dist/{esm/Blade → Blade}/Blade.js +0 -0
  79. /package/dist/{esm/Blade → Blade}/Blade.styles.js +0 -0
  80. /package/dist/{esm/Blades → Blades}/Blades.js +0 -0
  81. /package/dist/{esm/Blades → Blades}/Blades.styles.js +0 -0
  82. /package/dist/{esm/Dashboard → Dashboard}/Dashboard.js +0 -0
  83. /package/dist/{esm/Dashboard → Dashboard}/Dashboard.styles.js +0 -0
  84. /package/dist/{esm/Flow → Flow}/Controls/Controls.js +0 -0
  85. /package/dist/{esm/Flow → Flow}/DroppableFlow.js +0 -0
  86. /package/dist/{esm/Flow → Flow}/Empty/Empty.js +0 -0
  87. /package/dist/{esm/Flow → Flow}/Flow.js +0 -0
  88. /package/dist/{esm/Flow → Flow}/Flow.styles.js +0 -0
  89. /package/dist/{esm/Flow → Flow}/FlowContext/FlowContext.js +0 -0
  90. /package/dist/{esm/Flow → Flow}/FlowContext/NodeMetaContext.js +0 -0
  91. /package/dist/{esm/Flow → Flow}/Minimap/Minimap.js +0 -0
  92. /package/dist/{esm/Flow → Flow}/Minimap/Minimap.styles.js +0 -0
  93. /package/dist/{esm/Flow → Flow}/Node/BaseNode.js +0 -0
  94. /package/dist/{esm/Flow → Flow}/Node/BaseNode.styles.js +0 -0
  95. /package/dist/{esm/Flow → Flow}/Node/Node.styles.js +0 -0
  96. /package/dist/{esm/Flow → Flow}/Node/Parameters/ParamRenderer.js +0 -0
  97. /package/dist/{esm/Flow → Flow}/Node/Parameters/Select.js +0 -0
  98. /package/dist/{esm/Flow → Flow}/Node/Parameters/Slider.js +0 -0
  99. /package/dist/{esm/Flow → Flow}/Node/Parameters/Text.js +0 -0
  100. /package/dist/{esm/Flow → Flow}/Node/utils.js +0 -0
  101. /package/dist/{esm/Flow → Flow}/Sidebar/Sidebar.styles.js +0 -0
  102. /package/dist/{esm/Flow → Flow}/Sidebar/SidebarGroup/SidebarGroup.js +0 -0
  103. /package/dist/{esm/Flow → Flow}/Sidebar/SidebarGroup/SidebarGroup.styles.js +0 -0
  104. /package/dist/{esm/Flow → Flow}/Sidebar/SidebarGroup/SidebarGroupItem/DraggableSidebarGroupItem.js +0 -0
  105. /package/dist/{esm/Flow → Flow}/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.js +0 -0
  106. /package/dist/{esm/Flow → Flow}/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.styles.js +0 -0
  107. /package/dist/{esm/Flow → Flow}/base.js +0 -0
  108. /package/dist/{esm/Flow → Flow}/hooks/useFlowContext.js +0 -0
  109. /package/dist/{esm/Flow → Flow}/hooks/useFlowInstance.js +0 -0
  110. /package/dist/{esm/Flow → Flow}/hooks/useFlowNode.js +0 -0
  111. /package/dist/{esm/Flow → Flow}/hooks/useFlowNodeMeta.js +0 -0
  112. /package/dist/{esm/Flow → Flow}/hooks/useNode.js +0 -0
  113. /package/dist/{esm/Flow → Flow}/hooks/useNodeId.js +0 -0
  114. /package/dist/{esm/Flow → Flow}/nodes/DashboardNode.js +0 -0
  115. /package/dist/{esm/Flow → Flow}/nodes/DashboardNode.styles.js +0 -0
  116. /package/dist/{esm/Flow → Flow}/nodes/StickyNode.js +0 -0
  117. /package/dist/{esm/StepNavigation → StepNavigation}/DefaultNavigation/Step/Step.js +0 -0
  118. /package/dist/{esm/StepNavigation → StepNavigation}/DefaultNavigation/Step/Step.styles.js +0 -0
  119. /package/dist/{esm/StepNavigation → StepNavigation}/DefaultNavigation/utils.js +0 -0
  120. /package/dist/{esm/StepNavigation → StepNavigation}/SimpleNavigation/Dot/Dot.js +0 -0
  121. /package/dist/{esm/StepNavigation → StepNavigation}/SimpleNavigation/Dot/Dot.styles.js +0 -0
  122. /package/dist/{esm/StepNavigation → StepNavigation}/SimpleNavigation/utils.js +0 -0
  123. /package/dist/{esm/StepNavigation → StepNavigation}/StepNavigation.styles.js +0 -0
  124. /package/dist/{esm/StepNavigation → StepNavigation}/utils.js +0 -0
  125. /package/dist/{esm/Wizard → Wizard}/Wizard.js +0 -0
  126. /package/dist/{esm/Wizard → Wizard}/Wizard.styles.js +0 -0
  127. /package/dist/{esm/Wizard → Wizard}/WizardActions/WizardActions.js +0 -0
  128. /package/dist/{esm/Wizard → Wizard}/WizardActions/WizardActions.styles.js +0 -0
  129. /package/dist/{esm/Wizard → Wizard}/WizardContainer/WizardContainer.js +0 -0
  130. /package/dist/{esm/Wizard → Wizard}/WizardContainer/WizardContainer.styles.js +0 -0
  131. /package/dist/{esm/Wizard → Wizard}/WizardContent/WizardContent.js +0 -0
  132. /package/dist/{esm/Wizard → Wizard}/WizardContent/WizardContent.styles.js +0 -0
  133. /package/dist/{esm/Wizard → Wizard}/WizardContext/WizardContext.js +0 -0
  134. /package/dist/{esm/index.js → index.js} +0 -0
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { Background } from "reactflow";
3
3
  import { getColor, theme } from "@hitachivantara/uikit-styles";
4
4
  const HvFlowBackground = ({
5
- color = "secondary",
5
+ color = "text",
6
6
  ...others
7
7
  }) => {
8
8
  return /* @__PURE__ */ jsx(
@@ -5,7 +5,7 @@ const { staticClasses, useClasses } = createClasses("HvFlowEmpty", {
5
5
  height: "100%",
6
6
  alignItems: "center",
7
7
  justifyContent: "center",
8
- backgroundColor: theme.colors.backgroundColor,
8
+ backgroundColor: theme.colors.bgPage,
9
9
  position: "absolute",
10
10
  zIndex: theme.zIndices.popover
11
11
  }
@@ -17,8 +17,6 @@ const HvFlowNode = ({
17
17
  type,
18
18
  headerItems,
19
19
  actions,
20
- actionCallback,
21
- // TODO - remove in v6
22
20
  onAction,
23
21
  maxVisibleActions = 1,
24
22
  expanded = false,
@@ -97,7 +95,6 @@ const HvFlowNode = ({
97
95
  className: classes.actions,
98
96
  classes: { button: classes.actionsButton },
99
97
  actions,
100
- actionsCallback: actionCallback,
101
98
  onAction,
102
99
  maxVisibleActions,
103
100
  iconOnly: actionsIconOnly
@@ -78,7 +78,7 @@ const HvFlowSidebar = ({
78
78
  classes: {
79
79
  paper: classes.drawerPaper
80
80
  },
81
- showBackdrop: false,
81
+ hideBackdrop: true,
82
82
  anchor,
83
83
  buttonTitle,
84
84
  ...others,
@@ -1,5 +1,4 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { useTheme } from "@hitachivantara/uikit-react-core";
3
2
  import { stepSizes, getColor } from "./utils.js";
4
3
  import { HvStep } from "./Step/Step.js";
5
4
  const HvDefaultNavigation = ({
@@ -11,7 +10,6 @@ const HvDefaultNavigation = ({
11
10
  children,
12
11
  ...other
13
12
  }) => {
14
- const { activeTheme } = useTheme();
15
13
  const { container: maxSize, avatar: minSize } = stepSizes[stepSize];
16
14
  const StepComponent = HvStep;
17
15
  const stepsWidth = maxSize + minSize * (numSteps - 1);
@@ -38,7 +36,7 @@ const HvDefaultNavigation = ({
38
36
  minWidth,
39
37
  maxWidth,
40
38
  getColor,
41
- height: activeTheme?.stepNavigation.defaultSeparatorHeight || 0
39
+ height: 1
42
40
  },
43
41
  stepValues: {
44
42
  minSize,
@@ -1,5 +1,4 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { useTheme } from "@hitachivantara/uikit-react-core";
3
2
  import { dotSizes, getColor } from "./utils.js";
4
3
  import { HvDot } from "./Dot/Dot.js";
5
4
  const HvSimpleNavigation = ({
@@ -10,7 +9,6 @@ const HvSimpleNavigation = ({
10
9
  children,
11
10
  ...others
12
11
  }) => {
13
- const { activeTheme } = useTheme();
14
12
  const dotSize = dotSizes[stepSize];
15
13
  const StepComponent = HvDot;
16
14
  const stepsWidth = (numSteps + 0.5) * dotSize;
@@ -35,7 +33,7 @@ const HvSimpleNavigation = ({
35
33
  minWidth,
36
34
  maxWidth,
37
35
  getColor,
38
- height: activeTheme?.stepNavigation.simpleSeparatorHeight || 0
36
+ height: 1
39
37
  },
40
38
  stepValues: {
41
39
  minSize: dotSize,
@@ -32,12 +32,7 @@ const HvStepNavigation = ({
32
32
  height: containerSize
33
33
  });
34
34
  const styledSeparatorElement = (title, separatorClassName, separatorHeight, separatorWidth, backgroundColor) => {
35
- const widthValue = separatorWidth - 2 * Number(
36
- (activeTheme?.stepNavigation.separatorMargin || "0px").replace(
37
- "px",
38
- ""
39
- )
40
- );
35
+ const widthValue = separatorWidth - 2 * 4;
41
36
  return /* @__PURE__ */ jsx(
42
37
  "li",
43
38
  {
@@ -47,7 +42,7 @@ const HvStepNavigation = ({
47
42
  height: separatorHeight,
48
43
  width: widthValue,
49
44
  backgroundColor,
50
- margin: `0 ${theme.stepNavigation.separatorMargin}`
45
+ margin: `0 4px`
51
46
  }),
52
47
  classes.separator
53
48
  ),
@@ -23,7 +23,7 @@ const HvWizardTitle = ({
23
23
  customStep = {}
24
24
  }) => {
25
25
  const { context, setSummary, tab, setTab } = useContext(HvWizardContext);
26
- const { classes, cx } = useClasses(classesProp);
26
+ const { classes } = useClasses(classesProp);
27
27
  const [steps, setSteps] = useState([]);
28
28
  useEffect(() => {
29
29
  return () => {
@@ -45,52 +45,36 @@ const HvWizardTitle = ({
45
45
  );
46
46
  setSteps(updatedSteps);
47
47
  }, [context, tab, setTab]);
48
- return /* @__PURE__ */ jsxs(
49
- HvDialogTitle,
50
- {
51
- className: cx(
52
- classes.root,
53
- classes.headerContainer,
54
- classes.messageContainer,
55
- classes.titleContainer
56
- ),
57
- showIcon: false,
58
- children: [
59
- title && /* @__PURE__ */ jsx(HvTypography, { variant: "title3", component: "div", children: title }),
60
- !!steps.length && /* @__PURE__ */ jsx(
61
- HvStepNavigation,
62
- {
63
- className: classes.stepContainer,
64
- steps,
65
- type: "Default",
66
- stepSize: "xs",
67
- width: {
68
- xs: 200,
69
- sm: 350,
70
- md: 600,
71
- lg: 800,
72
- xl: 1e3
73
- },
74
- ...customStep
75
- }
76
- ),
77
- hasSummary && /* @__PURE__ */ jsx(
78
- HvButton,
79
- {
80
- variant: "secondarySubtle",
81
- className: cx(
82
- classes.summaryButton,
83
- classes.buttonWidth,
84
- classes.rootSummaryButton
85
- ),
86
- onClick: toggleSummary,
87
- startIcon: /* @__PURE__ */ jsx(Report, {}),
88
- children: `${labels.summary ?? "Summary"}`
89
- }
90
- )
91
- ]
92
- }
93
- );
48
+ return /* @__PURE__ */ jsxs(HvDialogTitle, { className: classes.root, showIcon: false, children: [
49
+ title && /* @__PURE__ */ jsx(HvTypography, { variant: "title3", component: "div", children: title }),
50
+ !!steps.length && /* @__PURE__ */ jsx(
51
+ HvStepNavigation,
52
+ {
53
+ className: classes.stepContainer,
54
+ steps,
55
+ type: "Default",
56
+ stepSize: "xs",
57
+ width: {
58
+ xs: 200,
59
+ sm: 350,
60
+ md: 600,
61
+ lg: 800,
62
+ xl: 1e3
63
+ },
64
+ ...customStep
65
+ }
66
+ ),
67
+ hasSummary && /* @__PURE__ */ jsx(
68
+ HvButton,
69
+ {
70
+ variant: "secondarySubtle",
71
+ className: classes.summaryButton,
72
+ onClick: toggleSummary,
73
+ startIcon: /* @__PURE__ */ jsx(Report, {}),
74
+ children: `${labels.summary ?? "Summary"}`
75
+ }
76
+ )
77
+ ] });
94
78
  };
95
79
  export {
96
80
  HvWizardTitle,
@@ -6,17 +6,7 @@ const { staticClasses, useClasses } = createClasses("HvWizardTitle", {
6
6
  justifyContent: "space-between",
7
7
  paddingRight: theme.space.sm
8
8
  },
9
- /** @deprecated use `classes.root` */
10
- headerContainer: {},
11
- /** @deprecated use `classes.root` */
12
- messageContainer: {},
13
- /** @deprecated use `classes.root` */
14
- titleContainer: {},
15
9
  summaryButton: {},
16
- /** @deprecated use `classes.summaryButton` */
17
- buttonWidth: {},
18
- /** @deprecated use `classes.summaryButton` */
19
- rootSummaryButton: {},
20
10
  stepContainer: {
21
11
  margin: "auto"
22
12
  }
@@ -149,10 +149,10 @@ export declare const flowNodeClasses: {
149
149
  mandatory: string;
150
150
  title: string;
151
151
  root: string;
152
+ footerContainer: string;
152
153
  titleContainer: string;
153
154
  inputContainer: string;
154
155
  handle: string;
155
- footerContainer: string;
156
156
  headerContainer: string;
157
157
  inputsTitleContainer: string;
158
158
  outputsTitleContainer: string;
@@ -340,10 +340,10 @@ export declare const hvDashboardNodeClasses: {
340
340
  title: string;
341
341
  root: string;
342
342
  actions: string;
343
+ footerContainer: string;
343
344
  titleContainer: string;
344
345
  inputContainer: string;
345
346
  handle: string;
346
- footerContainer: string;
347
347
  headerContainer: string;
348
348
  inputsTitleContainer: string;
349
349
  outputsTitleContainer: string;
@@ -432,7 +432,7 @@ export declare const HvFlow: ({ nodeGroups, sidebar, defaultActions, dndContextP
432
432
  export declare const HvFlowBackground: ({ color, ...others }: HvFlowBackgroundProps) => JSX_2.Element;
433
433
 
434
434
  export declare interface HvFlowBackgroundProps extends Omit<BackgroundProps, "color"> {
435
- /** Color for the background dots. Defaults to `secondary`. */
435
+ /** Color for the background dots. Defaults to `text`. */
436
436
  color?: HvColorAny;
437
437
  }
438
438
 
@@ -509,7 +509,7 @@ export declare interface HvFlowMinimapProps<NodeData = any> extends Omit<MiniMap
509
509
  classes?: HvFlowMinimapClasses;
510
510
  }
511
511
 
512
- export declare const HvFlowNode: ({ id, type, headerItems, actions, actionCallback, 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;
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;
513
513
 
514
514
  export declare interface HvFlowNodeAction extends HvActionGeneric {
515
515
  callback?: (node: Node_2) => void;
@@ -573,12 +573,6 @@ export declare interface HvFlowNodeProps<T = any> extends HvFlowBaseNodeProps<T>
573
573
  description?: string;
574
574
  /** Node actions. */
575
575
  actions?: HvActionsGenericProps["actions"];
576
- /**
577
- * Node action callback.
578
- *
579
- * @deprecated Use `onAction` instead.
580
- * */
581
- actionCallback?: HvActionsGenericProps["actionsCallback"];
582
576
  /** Node action callback. */
583
577
  onAction?: HvActionsGenericProps["onAction"];
584
578
  /** Whether the actions should be all icon buttons when visible. @default true */
@@ -907,7 +901,7 @@ export declare type StickyNodeData = undefined | {
907
901
  onDelete?: () => void;
908
902
  };
909
903
 
910
- declare const useClasses: (classesProp?: Partial<Record<"container" | "button" | "expanded" | "disabled" | "root" | "heading" | "fullWidth" | "textOnlyLabel", string>>, addStatic?: boolean) => {
904
+ declare const useClasses: (classesProp?: Partial<Record<"container" | "button" | "expanded" | "disabled" | "heading" | "root" | "fullWidth" | "textOnlyLabel", string>>, addStatic?: boolean) => {
911
905
  readonly classes: {
912
906
  root: string;
913
907
  expanded: string;
@@ -968,22 +962,17 @@ declare const useClasses_13: (classesProp?: Partial<Record<"actionsContainer" |
968
962
  readonly cx: (...args: any) => string;
969
963
  };
970
964
 
971
- declare const useClasses_14: (classesProp?: Partial<Record<"root" | "messageContainer" | "titleContainer" | "headerContainer" | "buttonWidth" | "summaryButton" | "rootSummaryButton" | "stepContainer", string>>, addStatic?: boolean) => {
965
+ declare const useClasses_14: (classesProp?: Partial<Record<"root" | "summaryButton" | "stepContainer", string>>, addStatic?: boolean) => {
972
966
  readonly classes: {
973
967
  root: string;
974
- headerContainer: string;
975
- messageContainer: string;
976
- titleContainer: string;
977
968
  summaryButton: string;
978
- buttonWidth: string;
979
- rootSummaryButton: string;
980
969
  stepContainer: string;
981
970
  };
982
971
  readonly css: any;
983
972
  readonly cx: (...args: any) => string;
984
973
  };
985
974
 
986
- declare const useClasses_15: (classesProp?: Partial<Record<"root" | "closeButton" | "paper", string>>, addStatic?: boolean) => {
975
+ declare const useClasses_15: (classesProp?: Partial<Record<"root" | "paper" | "closeButton", string>>, addStatic?: boolean) => {
987
976
  readonly classes: {
988
977
  root: string;
989
978
  paper: string;
@@ -1050,7 +1039,7 @@ declare const useClasses_6: (classesProp?: Partial<Record<"description" | "title
1050
1039
  readonly cx: (...args: any) => string;
1051
1040
  };
1052
1041
 
1053
- declare const useClasses_7: (classesProp?: Partial<Record<"mandatory" | "title" | "root" | "titleContainer" | "inputContainer" | "handle" | "footerContainer" | "headerContainer" | "inputsTitleContainer" | "outputsTitleContainer" | "contentContainer" | "inputsContainer" | "outputsContainer" | "inputGroupContainer" | "outputGroupContainer" | "outputContainer" | "handleConnected", string>>, addStatic?: boolean) => {
1042
+ declare const useClasses_7: (classesProp?: Partial<Record<"mandatory" | "title" | "root" | "footerContainer" | "titleContainer" | "inputContainer" | "handle" | "headerContainer" | "inputsTitleContainer" | "outputsTitleContainer" | "contentContainer" | "inputsContainer" | "outputsContainer" | "inputGroupContainer" | "outputGroupContainer" | "outputContainer" | "handleConnected", string>>, addStatic?: boolean) => {
1054
1043
  readonly classes: {
1055
1044
  root: string;
1056
1045
  headerContainer: string;
@@ -1074,15 +1063,15 @@ declare const useClasses_7: (classesProp?: Partial<Record<"mandatory" | "title"
1074
1063
  readonly cx: (...args: any) => string;
1075
1064
  };
1076
1065
 
1077
- declare const useClasses_8: (classesProp?: Partial<Record<"mandatory" | "title" | "root" | "actions" | "titleContainer" | "inputContainer" | "handle" | "footerContainer" | "headerContainer" | "inputsTitleContainer" | "outputsTitleContainer" | "contentContainer" | "inputsContainer" | "outputsContainer" | "inputGroupContainer" | "outputGroupContainer" | "outputContainer" | "handleConnected" | "subtitle" | "subtitleContainer" | "inlineEditRoot" | "inlineEditButton" | "actionsButton" | "paramsContainer", string>>, addStatic?: boolean) => {
1066
+ declare const useClasses_8: (classesProp?: Partial<Record<"mandatory" | "title" | "root" | "actions" | "footerContainer" | "titleContainer" | "inputContainer" | "handle" | "headerContainer" | "inputsTitleContainer" | "outputsTitleContainer" | "contentContainer" | "inputsContainer" | "outputsContainer" | "inputGroupContainer" | "outputGroupContainer" | "outputContainer" | "handleConnected" | "subtitle" | "subtitleContainer" | "inlineEditRoot" | "inlineEditButton" | "actionsButton" | "paramsContainer", string>>, addStatic?: boolean) => {
1078
1067
  readonly classes: {
1079
1068
  mandatory: string;
1080
1069
  title: string;
1081
1070
  root: string;
1071
+ footerContainer: string;
1082
1072
  titleContainer: string;
1083
1073
  inputContainer: string;
1084
1074
  handle: string;
1085
- footerContainer: string;
1086
1075
  headerContainer: string;
1087
1076
  inputsTitleContainer: string;
1088
1077
  outputsTitleContainer: string;
@@ -1105,16 +1094,16 @@ declare const useClasses_8: (classesProp?: Partial<Record<"mandatory" | "title"
1105
1094
  readonly cx: (...args: any) => string;
1106
1095
  };
1107
1096
 
1108
- declare const useClasses_9: (classesProp?: Partial<Record<"mandatory" | "title" | "root" | "empty" | "actions" | "titleContainer" | "inputContainer" | "handle" | "footerContainer" | "headerContainer" | "inputsTitleContainer" | "outputsTitleContainer" | "contentContainer" | "inputsContainer" | "outputsContainer" | "inputGroupContainer" | "outputGroupContainer" | "outputContainer" | "handleConnected" | "subtitle" | "subtitleContainer" | "inlineEditRoot" | "inlineEditButton" | "actionsButton" | "paramsContainer", 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) => {
1109
1098
  readonly classes: {
1110
1099
  mandatory: string;
1111
1100
  title: string;
1112
1101
  root: string;
1113
1102
  actions: string;
1103
+ footerContainer: string;
1114
1104
  titleContainer: string;
1115
1105
  inputContainer: string;
1116
1106
  handle: string;
1117
- footerContainer: string;
1118
1107
  headerContainer: string;
1119
1108
  inputsTitleContainer: string;
1120
1109
  outputsTitleContainer: string;
@@ -1512,12 +1501,7 @@ export declare const wizardContentClasses: {
1512
1501
 
1513
1502
  export declare const wizardTitleClasses: {
1514
1503
  root: string;
1515
- headerContainer: string;
1516
- messageContainer: string;
1517
- titleContainer: string;
1518
1504
  summaryButton: string;
1519
- buttonWidth: string;
1520
- rootSummaryButton: string;
1521
1505
  stepContainer: string;
1522
1506
  };
1523
1507
 
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@hitachivantara/uikit-react-lab",
3
- "version": "5.46.13",
3
+ "version": "6.0.0-next.2",
4
+ "type": "module",
4
5
  "private": false,
5
6
  "author": "Hitachi Vantara UI Kit Team",
6
7
  "description": "Contributed React components for the NEXT UI Kit.",
@@ -25,18 +26,18 @@
25
26
  "peerDependencies": {
26
27
  "@emotion/react": "^11.11.1",
27
28
  "@emotion/styled": "^11.11.0",
28
- "@mui/material": "^5.16.14",
29
- "react": ">=17.0.0",
30
- "react-dom": ">=17.0.0"
29
+ "@mui/material": "^7.0.2",
30
+ "react": ">=18.0.0",
31
+ "react-dom": ">=18.0.0"
31
32
  },
32
33
  "dependencies": {
33
34
  "@dnd-kit/core": "^6.1.0",
34
35
  "@dnd-kit/modifiers": "^6.0.1",
35
36
  "@emotion/css": "^11.11.0",
36
- "@hitachivantara/uikit-react-core": "^5.106.1",
37
- "@hitachivantara/uikit-react-icons": "^5.16.6",
38
- "@hitachivantara/uikit-react-utils": "^0.2.46",
39
- "@hitachivantara/uikit-styles": "^5.51.1",
37
+ "@hitachivantara/uikit-react-core": "^6.0.0-next.2",
38
+ "@hitachivantara/uikit-react-icons": "^6.0.0-next.2",
39
+ "@hitachivantara/uikit-react-utils": "^6.0.0-next.2",
40
+ "@hitachivantara/uikit-styles": "^6.0.0-next.2",
40
41
  "@mui/base": "5.0.0-beta.68",
41
42
  "@types/react-grid-layout": "^1.3.5",
42
43
  "react-grid-layout": "^1.4.4",
@@ -52,14 +53,13 @@
52
53
  "access": "public",
53
54
  "directory": "package"
54
55
  },
55
- "gitHead": "7d60bff02f58ff47ae19146532553882c2e4b732",
56
+ "gitHead": "0b07240fb2ef75e046d8e6aaf0ff71bf2415c73f",
56
57
  "exports": {
57
58
  ".": {
58
- "types": "./dist/types/index.d.ts",
59
- "require": "./dist/cjs/index.cjs",
60
- "import": "./dist/esm/index.js"
59
+ "types": "./dist/index.d.ts",
60
+ "import": "./dist/index.js"
61
61
  }
62
62
  },
63
- "types": "dist/types/index.d.ts",
64
- "module": "dist/esm/index.js"
63
+ "types": "dist/index.d.ts",
64
+ "module": "dist/index.js"
65
65
  }
@@ -1,174 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("react/jsx-runtime");
4
- const react = require("react");
5
- const uikitReactCore = require("@hitachivantara/uikit-react-core");
6
- const Blade_styles = require("./Blade.styles.cjs");
7
- const HvBlade = (props) => {
8
- const {
9
- id: idProp,
10
- className,
11
- classes: classesProp,
12
- expanded,
13
- defaultExpanded = false,
14
- label,
15
- labelVariant = "label",
16
- headingLevel,
17
- onChange,
18
- disabled = false,
19
- children,
20
- fullWidth,
21
- buttonProps,
22
- containerProps,
23
- ...others
24
- } = uikitReactCore.useDefaultProps("HvBlade", props);
25
- const { classes, cx } = Blade_styles.useClasses(classesProp);
26
- const [isExpanded, setIsExpanded] = uikitReactCore.useControlled(
27
- expanded,
28
- Boolean(defaultExpanded)
29
- );
30
- const handleAction = react.useCallback(
31
- (event) => {
32
- if (!disabled) {
33
- onChange?.(event, !isExpanded);
34
- setIsExpanded(!isExpanded);
35
- return true;
36
- }
37
- return false;
38
- },
39
- [disabled, onChange, isExpanded, setIsExpanded]
40
- );
41
- const handleClick = react.useCallback(
42
- (event) => {
43
- handleAction(event);
44
- event.preventDefault();
45
- event.stopPropagation();
46
- },
47
- [handleAction]
48
- );
49
- const handleKeyDown = react.useCallback(
50
- (event) => {
51
- let isEventHandled = false;
52
- const { key } = event;
53
- if (event.altKey || event.ctrlKey || event.metaKey || event.currentTarget !== event.target) {
54
- return;
55
- }
56
- switch (key) {
57
- case "Enter":
58
- case " ":
59
- isEventHandled = handleAction(event);
60
- break;
61
- default:
62
- return;
63
- }
64
- if (isEventHandled) {
65
- event.preventDefault();
66
- event.stopPropagation();
67
- }
68
- },
69
- [handleAction]
70
- );
71
- const id = uikitReactCore.useUniqueId(idProp);
72
- const bladeHeaderId = uikitReactCore.setId(id, "button");
73
- const bladeContainerId = uikitReactCore.setId(id, "container");
74
- const bladeHeader = react.useMemo(() => {
75
- const buttonLabel = typeof label === "function" ? label(isExpanded) : label;
76
- const bladeButton = /* @__PURE__ */ jsxRuntime.jsx(
77
- uikitReactCore.HvTypography,
78
- {
79
- id: bladeHeaderId,
80
- component: "div",
81
- role: "button",
82
- className: cx(classes.button, {
83
- [classes.textOnlyLabel]: typeof buttonLabel === "string",
84
- [classes.disabled]: disabled
85
- }),
86
- style: { flexShrink: headingLevel === void 0 ? 0 : void 0 },
87
- disabled,
88
- tabIndex: 0,
89
- onKeyDown: handleKeyDown,
90
- onClick: handleClick,
91
- variant: labelVariant,
92
- "aria-expanded": isExpanded,
93
- "aria-controls": bladeContainerId,
94
- ...buttonProps,
95
- children: buttonLabel
96
- }
97
- );
98
- return headingLevel === void 0 ? bladeButton : /* @__PURE__ */ jsxRuntime.jsx(
99
- uikitReactCore.HvTypography,
100
- {
101
- component: `h${headingLevel}`,
102
- variant: labelVariant,
103
- className: classes.heading,
104
- style: { flexShrink: 0 },
105
- children: bladeButton
106
- }
107
- );
108
- }, [
109
- bladeContainerId,
110
- bladeHeaderId,
111
- buttonProps,
112
- classes.button,
113
- classes.disabled,
114
- classes.heading,
115
- classes.textOnlyLabel,
116
- cx,
117
- disabled,
118
- handleClick,
119
- handleKeyDown,
120
- headingLevel,
121
- isExpanded,
122
- label,
123
- labelVariant
124
- ]);
125
- const bladeRef = react.useRef(null);
126
- const [maxWidth, setMaxWidth] = react.useState(void 0);
127
- react.useEffect(() => {
128
- if (!bladeRef.current) return;
129
- const resizeObserver = new ResizeObserver((entries) => {
130
- setMaxWidth(entries[0].target.clientWidth);
131
- });
132
- resizeObserver.observe(
133
- // using the blade's container as reference max-width is more stable
134
- bladeRef.current.parentElement ?? bladeRef.current
135
- );
136
- return () => {
137
- resizeObserver.disconnect();
138
- };
139
- }, [isExpanded]);
140
- const { style: containerStyle, ...otherContainerProps } = containerProps || {};
141
- return /* @__PURE__ */ jsxRuntime.jsxs(
142
- "div",
143
- {
144
- ref: bladeRef,
145
- id: idProp,
146
- className: cx(classes.root, className, {
147
- [classes.fullWidth]: fullWidth,
148
- [classes.expanded]: isExpanded
149
- }),
150
- ...others,
151
- children: [
152
- bladeHeader,
153
- /* @__PURE__ */ jsxRuntime.jsx(
154
- "div",
155
- {
156
- id: bladeContainerId,
157
- role: "region",
158
- "aria-labelledby": bladeHeaderId,
159
- className: classes.container,
160
- hidden: !isExpanded,
161
- style: {
162
- ...containerStyle,
163
- maxWidth: isExpanded ? maxWidth : 0
164
- },
165
- ...otherContainerProps,
166
- children
167
- }
168
- )
169
- ]
170
- }
171
- );
172
- };
173
- exports.bladeClasses = Blade_styles.staticClasses;
174
- exports.HvBlade = HvBlade;