@hitachivantara/uikit-react-lab 5.37.0 → 5.37.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.
Files changed (79) hide show
  1. package/dist/cjs/Blade/Blade.cjs +1 -1
  2. package/dist/cjs/Blades/Blades.cjs +1 -1
  3. package/dist/cjs/Dashboard/Dashboard.cjs +1 -1
  4. package/dist/cjs/Flow/Background/Background.cjs +9 -2
  5. package/dist/cjs/Flow/Controls/Controls.cjs +1 -1
  6. package/dist/cjs/Flow/DroppableFlow.cjs +1 -1
  7. package/dist/cjs/Flow/Empty/Empty.cjs +1 -1
  8. package/dist/cjs/Flow/Flow.cjs +1 -1
  9. package/dist/cjs/Flow/Flow.styles.cjs +1 -1
  10. package/dist/cjs/Flow/FlowContext/FlowContext.cjs +1 -1
  11. package/dist/cjs/Flow/FlowContext/NodeMetaContext.cjs +1 -1
  12. package/dist/cjs/Flow/Minimap/Minimap.cjs +1 -1
  13. package/dist/cjs/Flow/Node/BaseNode.cjs +31 -33
  14. package/dist/cjs/Flow/Node/BaseNode.styles.cjs +6 -3
  15. package/dist/cjs/Flow/Node/Node.cjs +1 -1
  16. package/dist/cjs/Flow/Node/Parameters/ParamRenderer.cjs +1 -1
  17. package/dist/cjs/Flow/Node/Parameters/Select.cjs +1 -1
  18. package/dist/cjs/Flow/Node/Parameters/Slider.cjs +1 -1
  19. package/dist/cjs/Flow/Node/Parameters/Text.cjs +1 -1
  20. package/dist/cjs/Flow/Sidebar/Sidebar.cjs +1 -1
  21. package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroup.cjs +1 -1
  22. package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroupItem/DraggableSidebarGroupItem.cjs +1 -1
  23. package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.cjs +1 -1
  24. package/dist/cjs/Flow/hooks/useNode.cjs +1 -1
  25. package/dist/cjs/Flow/nodes/DashboardNode.cjs +1 -1
  26. package/dist/cjs/StepNavigation/DefaultNavigation/DefaultNavigation.cjs +1 -1
  27. package/dist/cjs/StepNavigation/DefaultNavigation/Step/Step.cjs +1 -1
  28. package/dist/cjs/StepNavigation/SimpleNavigation/Dot/Dot.cjs +1 -1
  29. package/dist/cjs/StepNavigation/SimpleNavigation/SimpleNavigation.cjs +1 -1
  30. package/dist/cjs/StepNavigation/StepNavigation.cjs +5 -3
  31. package/dist/cjs/Wizard/Wizard.cjs +8 -11
  32. package/dist/cjs/Wizard/WizardActions/WizardActions.cjs +8 -11
  33. package/dist/cjs/Wizard/WizardContainer/WizardContainer.cjs +1 -1
  34. package/dist/cjs/Wizard/WizardContent/WizardContent.cjs +11 -18
  35. package/dist/cjs/Wizard/WizardTitle/WizardTitle.cjs +1 -1
  36. package/dist/esm/Blade/Blade.js +1 -1
  37. package/dist/esm/Blades/Blades.js +1 -1
  38. package/dist/esm/Dashboard/Dashboard.js +1 -1
  39. package/dist/esm/Flow/Background/Background.js +9 -2
  40. package/dist/esm/Flow/Background/Background.js.map +1 -1
  41. package/dist/esm/Flow/Controls/Controls.js +1 -1
  42. package/dist/esm/Flow/DroppableFlow.js +1 -1
  43. package/dist/esm/Flow/Empty/Empty.js +1 -1
  44. package/dist/esm/Flow/Flow.js +1 -1
  45. package/dist/esm/Flow/Flow.styles.js +1 -1
  46. package/dist/esm/Flow/FlowContext/FlowContext.js +1 -1
  47. package/dist/esm/Flow/FlowContext/NodeMetaContext.js +1 -1
  48. package/dist/esm/Flow/Minimap/Minimap.js +1 -1
  49. package/dist/esm/Flow/Node/BaseNode.js +31 -33
  50. package/dist/esm/Flow/Node/BaseNode.js.map +1 -1
  51. package/dist/esm/Flow/Node/BaseNode.styles.js +6 -3
  52. package/dist/esm/Flow/Node/BaseNode.styles.js.map +1 -1
  53. package/dist/esm/Flow/Node/Node.js +1 -1
  54. package/dist/esm/Flow/Node/Parameters/ParamRenderer.js +1 -1
  55. package/dist/esm/Flow/Node/Parameters/Select.js +1 -1
  56. package/dist/esm/Flow/Node/Parameters/Slider.js +1 -1
  57. package/dist/esm/Flow/Node/Parameters/Text.js +1 -1
  58. package/dist/esm/Flow/Sidebar/Sidebar.js +1 -1
  59. package/dist/esm/Flow/Sidebar/SidebarGroup/SidebarGroup.js +1 -1
  60. package/dist/esm/Flow/Sidebar/SidebarGroup/SidebarGroupItem/DraggableSidebarGroupItem.js +1 -1
  61. package/dist/esm/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.js +1 -1
  62. package/dist/esm/Flow/hooks/useNode.js +1 -1
  63. package/dist/esm/Flow/nodes/DashboardNode.js +1 -1
  64. package/dist/esm/StepNavigation/DefaultNavigation/DefaultNavigation.js +1 -1
  65. package/dist/esm/StepNavigation/DefaultNavigation/Step/Step.js +1 -1
  66. package/dist/esm/StepNavigation/SimpleNavigation/Dot/Dot.js +1 -1
  67. package/dist/esm/StepNavigation/SimpleNavigation/SimpleNavigation.js +1 -1
  68. package/dist/esm/StepNavigation/StepNavigation.js +5 -3
  69. package/dist/esm/StepNavigation/StepNavigation.js.map +1 -1
  70. package/dist/esm/Wizard/Wizard.js +8 -11
  71. package/dist/esm/Wizard/Wizard.js.map +1 -1
  72. package/dist/esm/Wizard/WizardActions/WizardActions.js +8 -11
  73. package/dist/esm/Wizard/WizardActions/WizardActions.js.map +1 -1
  74. package/dist/esm/Wizard/WizardContainer/WizardContainer.js +1 -1
  75. package/dist/esm/Wizard/WizardContent/WizardContent.js +11 -18
  76. package/dist/esm/Wizard/WizardContent/WizardContent.js.map +1 -1
  77. package/dist/esm/Wizard/WizardTitle/WizardTitle.js +1 -1
  78. package/dist/types/index.d.ts +1 -1
  79. package/package.json +5 -5
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const uikitReactCore = require("@hitachivantara/uikit-react-core");
6
6
  const Blade_styles = require("./Blade.styles.cjs");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const uikitReactCore = require("@hitachivantara/uikit-react-core");
6
6
  const Blades_styles = require("./Blades.styles.cjs");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const reactGridLayout = require("react-grid-layout");
6
6
  const react = require("@emotion/react");
@@ -1,12 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const ReactFlow = require("reactflow");
5
5
  const uikitStyles = require("@hitachivantara/uikit-styles");
6
6
  const HvFlowBackground = ({
7
7
  color = "secondary",
8
8
  ...others
9
9
  }) => {
10
- return /* @__PURE__ */ jsxRuntime.jsx(ReactFlow.Background, { color: uikitStyles.getColor(color, uikitStyles.theme.colors.secondary), ...others });
10
+ return /* @__PURE__ */ jsxRuntime.jsx(
11
+ ReactFlow.Background,
12
+ {
13
+ color: uikitStyles.getColor(color, uikitStyles.theme.colors.secondary_80),
14
+ gap: 16,
15
+ ...others
16
+ }
17
+ );
11
18
  };
12
19
  exports.HvFlowBackground = HvFlowBackground;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const ReactFlow = require("reactflow");
5
5
  const shallow = require("zustand/shallow");
6
6
  const uikitReactCore = require("@hitachivantara/uikit-react-core");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const core = require("@dnd-kit/core");
6
6
  const react = require("@emotion/react");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const ReactFlow = require("reactflow");
5
5
  const uikitReactCore = require("@hitachivantara/uikit-react-core");
6
6
  const Empty_styles = require("./Empty.styles.cjs");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const core = require("@dnd-kit/core");
5
5
  const modifiers = require("@dnd-kit/modifiers");
6
6
  const ReactFlow = require("reactflow");
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const uikitReactCore = require("@hitachivantara/uikit-react-core");
4
4
  const BaseNode_styles = require("./Node/BaseNode.styles.cjs");
5
- require("@emotion/react/jsx-runtime");
5
+ require("react/jsx-runtime");
6
6
  require("reactflow");
7
7
  const { staticClasses, useClasses } = uikitReactCore.createClasses("HvFlow", {
8
8
  root: {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const NodeMetaContext = require("./NodeMetaContext.cjs");
6
6
  const HvFlowContext = React.createContext({});
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const HvFlowNodeMetaContext = React.createContext(void 0);
6
6
  const HvFlowNodeMetaProvider = ({
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const ReactFlow = require("reactflow");
5
5
  const uikitStyles = require("@hitachivantara/uikit-styles");
6
6
  const Minimap_styles = require("./Minimap.styles.cjs");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const ReactFlow = require("reactflow");
5
5
  const uikitReactCore = require("@hitachivantara/uikit-react-core");
6
6
  const BaseNode_styles = require("./BaseNode.styles.cjs");
@@ -52,7 +52,7 @@ const HvFlowBaseNode = ({
52
52
  nodeActions: nodeActionsProp
53
53
  });
54
54
  const labels = uikitReactCore.useLabels(DEFAULT_LABELS, labelsProp);
55
- const { classes, cx, css } = BaseNode_styles.useClasses(classesProp);
55
+ const { classes, cx } = BaseNode_styles.useClasses(classesProp);
56
56
  const renderOutput = (output) => {
57
57
  const edgeConnected = utils.isConnected(id, "source", output.id, outputEdges);
58
58
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classes.outputContainer, children: [
@@ -96,10 +96,13 @@ const HvFlowBaseNode = ({
96
96
  return /* @__PURE__ */ jsxRuntime.jsxs(
97
97
  "div",
98
98
  {
99
+ style: {
100
+ // @ts-ignore
101
+ "--node-color": color
102
+ },
99
103
  className: cx(
100
104
  "nowheel",
101
105
  // Disables the default canvas pan behaviour when scrolling inside the node
102
- css({ border: `1px solid ${color}` }),
103
106
  classes.root,
104
107
  className
105
108
  ),
@@ -115,36 +118,31 @@ const HvFlowBaseNode = ({
115
118
  },
116
119
  action.id
117
120
  )) }),
118
- /* @__PURE__ */ jsxRuntime.jsxs(
119
- "div",
120
- {
121
- className: cx(css({ backgroundColor: color }), classes.headerContainer),
122
- children: [
123
- /* @__PURE__ */ jsxRuntime.jsxs(
124
- "div",
125
- {
126
- className: cx(
127
- classes.titleContainer,
128
- css({ "& svg *.color0": { fill: iconColor } })
129
- ),
130
- children: [
131
- icon,
132
- /* @__PURE__ */ jsxRuntime.jsx(
133
- uikitReactCore.HvTypography,
134
- {
135
- component: "p",
136
- variant: "title4",
137
- className: classes.title,
138
- children: title
139
- }
140
- )
141
- ]
142
- }
143
- ),
144
- headerItems && /* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "flex" }, children: headerItems })
145
- ]
146
- }
147
- ),
121
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classes.headerContainer, children: [
122
+ /* @__PURE__ */ jsxRuntime.jsxs(
123
+ "div",
124
+ {
125
+ style: {
126
+ // @ts-ignore
127
+ "--icon-color": iconColor
128
+ },
129
+ className: classes.titleContainer,
130
+ children: [
131
+ icon,
132
+ /* @__PURE__ */ jsxRuntime.jsx(
133
+ uikitReactCore.HvTypography,
134
+ {
135
+ component: "p",
136
+ variant: "title4",
137
+ className: classes.title,
138
+ children: title
139
+ }
140
+ )
141
+ ]
142
+ }
143
+ ),
144
+ headerItems && /* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "flex" }, children: headerItems })
145
+ ] }),
148
146
  children && /* @__PURE__ */ jsxRuntime.jsx("div", { className: classes.contentContainer, children }),
149
147
  inputs && inputs.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
150
148
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: classes.inputsTitleContainer, children: /* @__PURE__ */ jsxRuntime.jsx(uikitReactCore.HvTypography, { children: labels?.inputsTitle }) }),
@@ -6,7 +6,8 @@ const { staticClasses, useClasses } = uikitReactCore.createClasses("HvFlowBaseNo
6
6
  borderRadius: uikitReactCore.theme.radii.round,
7
7
  backgroundColor: uikitReactCore.theme.colors.atmo1,
8
8
  boxShadow: uikitReactCore.theme.colors.shadow,
9
- minWidth: "250px"
9
+ minWidth: "250px",
10
+ border: "1px solid var(--node-color)"
10
11
  },
11
12
  headerContainer: {
12
13
  padding: uikitReactCore.theme.spacing(0.5, 1),
@@ -15,12 +16,14 @@ const { staticClasses, useClasses } = uikitReactCore.createClasses("HvFlowBaseNo
15
16
  justifyContent: "space-between",
16
17
  alignItems: "center",
17
18
  borderTopLeftRadius: "inherit",
18
- borderTopRightRadius: "inherit"
19
+ borderTopRightRadius: "inherit",
20
+ backgroundColor: "var(--node-color)"
19
21
  },
20
22
  titleContainer: {
21
23
  display: "flex",
22
24
  flexDirection: "row",
23
- alignItems: "center"
25
+ alignItems: "center",
26
+ "& svg *.color0": { fill: "var(--icon-color)" }
24
27
  },
25
28
  title: {
26
29
  color: uikitReactCore.theme.colors.base_dark
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const uikitReactCore = require("@hitachivantara/uikit-react-core");
6
6
  const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const Select = require("./Select.cjs");
5
5
  const Slider = require("./Slider.cjs");
6
6
  const Text = require("./Text.cjs");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const uikitReactCore = require("@hitachivantara/uikit-react-core");
6
6
  const useFlowNode = require("../../hooks/useFlowNode.cjs");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const css = require("@emotion/css");
5
5
  const uikitReactCore = require("@hitachivantara/uikit-react-core");
6
6
  const useFlowNode = require("../../hooks/useFlowNode.cjs");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const uikitReactCore = require("@hitachivantara/uikit-react-core");
5
5
  const useFlowNode = require("../../hooks/useFlowNode.cjs");
6
6
  const Text = ({ param, data }) => {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const core = require("@dnd-kit/core");
6
6
  const modifiers = require("@dnd-kit/modifiers");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const uikitReactCore = require("@hitachivantara/uikit-react-core");
6
6
  const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const core = require("@dnd-kit/core");
6
6
  const utils = require("@mui/material/utils");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const uikitReactCore = require("@hitachivantara/uikit-react-core");
6
6
  const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const uid = require("uid");
6
6
  const uikitReactCore = require("@hitachivantara/uikit-react-core");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const uikitReactCore = require("@hitachivantara/uikit-react-core");
5
5
  const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
6
6
  const DashboardNode_styles = require("./DashboardNode.styles.cjs");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const uikitReactCore = require("@hitachivantara/uikit-react-core");
5
5
  const utils = require("./utils.cjs");
6
6
  const Step = require("./Step/Step.cjs");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const uikitReactCore = require("@hitachivantara/uikit-react-core");
5
5
  const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
6
6
  const utils = require("../utils.cjs");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const uikitReactCore = require("@hitachivantara/uikit-react-core");
5
5
  const utils = require("../utils.cjs");
6
6
  const Dot_styles = require("./Dot.styles.cjs");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const uikitReactCore = require("@hitachivantara/uikit-react-core");
5
5
  const utils = require("./utils.cjs");
6
6
  const Dot = require("./Dot/Dot.cjs");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const styled = require("@emotion/styled");
5
5
  const uikitReactCore = require("@hitachivantara/uikit-react-core");
6
6
  const uikitStyles = require("@hitachivantara/uikit-styles");
@@ -103,9 +103,11 @@ const HvStepNavigation = ({
103
103
  uikitStyles.theme
104
104
  )
105
105
  );
106
- return [...acc, stepElement, separatorElement];
106
+ acc.push(stepElement, separatorElement);
107
+ return acc;
107
108
  }
108
- return [...acc, stepElement];
109
+ acc.push(stepElement);
110
+ return acc;
109
111
  },
110
112
  []
111
113
  );
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const Wizard_styles = require("./Wizard.styles.cjs");
6
6
  const WizardContext = require("./WizardContext/WizardContext.cjs");
@@ -48,16 +48,13 @@ const HvWizard = ({
48
48
  return () => {
49
49
  if (!open) {
50
50
  setContext(
51
- (c) => Object.entries(c).reduce(
52
- (acc, [key, child]) => ({
53
- ...acc,
54
- [+key]: {
55
- ...child,
56
- touched: false
57
- }
58
- }),
59
- {}
60
- )
51
+ (c) => Object.entries(c).reduce((acc, [key, child]) => {
52
+ acc[+key] = {
53
+ ...child,
54
+ touched: false
55
+ };
56
+ return acc;
57
+ }, {})
61
58
  );
62
59
  setTab(0);
63
60
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const uikitReactCore = require("@hitachivantara/uikit-react-core");
6
6
  const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
@@ -42,16 +42,13 @@ const HvWizardActions = ({
42
42
  const isLastPage = tab >= lastPage;
43
43
  const handleSkip = React.useCallback(() => {
44
44
  setContext(
45
- (c) => Object.entries(c).reduce(
46
- (acc, [key, child]) => ({
47
- ...acc,
48
- [+key]: {
49
- ...child,
50
- valid: child?.valid !== false
51
- }
52
- }),
53
- {}
54
- )
45
+ (c) => Object.entries(c).reduce((acc, [key, child]) => {
46
+ acc[+key] = {
47
+ ...child,
48
+ valid: child?.valid !== false
49
+ };
50
+ return acc;
51
+ }, {})
55
52
  );
56
53
  setTab(lastPage);
57
54
  }, [setTab, lastPage, setContext]);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const uikitReactCore = require("@hitachivantara/uikit-react-core");
5
5
  const WizardContainer_styles = require("./WizardContainer.styles.cjs");
6
6
  const HvWizardContainer = (props) => {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const usehooksTs = require("usehooks-ts");
6
6
  const uikitReactCore = require("@hitachivantara/uikit-react-core");
@@ -23,10 +23,8 @@ const HvWizardContent = ({
23
23
  const initialContext = arrayChildren.reduce((acc, child, index) => {
24
24
  const invalid = "mustValidate" in child.props && child.props.mustValidate === true ? false : null;
25
25
  const valid = invalid ?? (index === 0 || null);
26
- return {
27
- ...acc,
28
- [index]: { ...child.props, form: {}, valid, touched: index === 0 }
29
- };
26
+ acc[index] = { ...child.props, form: {}, valid, touched: index === 0 };
27
+ return acc;
30
28
  }, {});
31
29
  const summaryRef = React.useRef();
32
30
  const resizedRef = React.useRef({ height: 0, width: 0 });
@@ -63,19 +61,14 @@ const HvWizardContent = ({
63
61
  React.useEffect(() => {
64
62
  if (tab && !context[tab]?.touched) {
65
63
  setContext(
66
- (oldContext) => Object.entries(oldContext).reduce(
67
- (acc, [key, childState]) => ({
68
- ...acc,
69
- ...+key <= tab ? {
70
- [key]: {
71
- ...childState,
72
- touched: true,
73
- valid: childState?.valid ?? true
74
- }
75
- } : { [key]: childState }
76
- }),
77
- {}
78
- )
64
+ (oldContext) => Object.entries(oldContext).reduce((acc, [key, childState]) => {
65
+ acc[key] = +key <= tab ? {
66
+ ...childState,
67
+ touched: true,
68
+ valid: childState?.valid ?? true
69
+ } : childState;
70
+ return acc;
71
+ }, {})
79
72
  );
80
73
  }
81
74
  }, [tab, context, setContext]);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const uikitReactCore = require("@hitachivantara/uikit-react-core");
6
6
  const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
@@ -1,4 +1,4 @@
1
- import { jsx, jsxs } from "@emotion/react/jsx-runtime";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useCallback, useMemo, useRef, useState, useEffect } from "react";
3
3
  import { useDefaultProps, useControlled, useUniqueId, setId, HvTypography } from "@hitachivantara/uikit-react-core";
4
4
  import { useClasses } from "./Blade.styles.js";
@@ -1,4 +1,4 @@
1
- import { jsx } from "@emotion/react/jsx-runtime";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { useCallback, useMemo, Children, cloneElement } from "react";
3
3
  import { useDefaultProps, useControlled } from "@hitachivantara/uikit-react-core";
4
4
  import { useClasses } from "./Blades.styles.js";
@@ -1,4 +1,4 @@
1
- import { jsxs, Fragment, jsx } from "@emotion/react/jsx-runtime";
1
+ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
3
  import { WidthProvider, Responsive } from "react-grid-layout";
4
4
  import { Global } from "@emotion/react";
@@ -1,11 +1,18 @@
1
- import { jsx } from "@emotion/react/jsx-runtime";
1
+ 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
5
  color = "secondary",
6
6
  ...others
7
7
  }) => {
8
- return /* @__PURE__ */ jsx(Background, { color: getColor(color, theme.colors.secondary), ...others });
8
+ return /* @__PURE__ */ jsx(
9
+ Background,
10
+ {
11
+ color: getColor(color, theme.colors.secondary_80),
12
+ gap: 16,
13
+ ...others
14
+ }
15
+ );
9
16
  };
10
17
  export {
11
18
  HvFlowBackground
@@ -1 +1 @@
1
- {"version":3,"file":"Background.js","sources":["../../../../src/Flow/Background/Background.tsx"],"sourcesContent":["import { Background, BackgroundProps } from \"reactflow\";\nimport { getColor, HvColorAny, theme } from \"@hitachivantara/uikit-styles\";\n\nexport interface HvFlowBackgroundProps extends Omit<BackgroundProps, \"color\"> {\n /** Color for the background dots. Defaults to `secondary`. */\n color?: HvColorAny;\n}\n\nexport const HvFlowBackground = ({\n color = \"secondary\",\n ...others\n}: HvFlowBackgroundProps) => {\n return (\n <Background color={getColor(color, theme.colors.secondary)} {...others} />\n );\n};\n"],"names":[],"mappings":";;;AAQO,MAAM,mBAAmB,CAAC;AAAA,EAC/B,QAAQ;AAAA,EACR,GAAG;AACL,MAA6B;AAEzB,SAAA,oBAAC,YAAW,EAAA,OAAO,SAAS,OAAO,MAAM,OAAO,SAAS,GAAI,GAAG,OAAQ,CAAA;AAE5E;"}
1
+ {"version":3,"file":"Background.js","sources":["../../../../src/Flow/Background/Background.tsx"],"sourcesContent":["import { Background, BackgroundProps } from \"reactflow\";\nimport { getColor, HvColorAny, theme } from \"@hitachivantara/uikit-styles\";\n\nexport interface HvFlowBackgroundProps extends Omit<BackgroundProps, \"color\"> {\n /** Color for the background dots. Defaults to `secondary`. */\n color?: HvColorAny;\n}\n\nexport const HvFlowBackground = ({\n color = \"secondary\",\n ...others\n}: HvFlowBackgroundProps) => {\n return (\n <Background\n color={getColor(color, theme.colors.secondary_80)}\n gap={16}\n {...others}\n />\n );\n};\n"],"names":[],"mappings":";;;AAQO,MAAM,mBAAmB,CAAC;AAAA,EAC/B,QAAQ;AAAA,EACR,GAAG;AACL,MAA6B;AAEzB,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAO,SAAS,OAAO,MAAM,OAAO,YAAY;AAAA,MAChD,KAAK;AAAA,MACJ,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;"}
@@ -1,4 +1,4 @@
1
- import { jsx, jsxs } from "@emotion/react/jsx-runtime";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useStore, useStoreApi, Panel } from "reactflow";
3
3
  import { shallow } from "zustand/shallow";
4
4
  import { useLabels, HvMultiButton, HvButton } from "@hitachivantara/uikit-react-core";
@@ -1,4 +1,4 @@
1
- import { jsxs, Fragment, jsx } from "@emotion/react/jsx-runtime";
1
+ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useState, useRef, useCallback } from "react";
3
3
  import { useDroppable, useDndMonitor } from "@dnd-kit/core";
4
4
  import { Global } from "@emotion/react";
@@ -1,4 +1,4 @@
1
- import { jsx } from "@emotion/react/jsx-runtime";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { useNodes } from "reactflow";
3
3
  import { HvEmptyState } from "@hitachivantara/uikit-react-core";
4
4
  import { useClasses } from "./Empty.styles.js";
@@ -1,4 +1,4 @@
1
- import { jsx, jsxs } from "@emotion/react/jsx-runtime";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useSensors, useSensor, PointerSensor, KeyboardSensor, DndContext } from "@dnd-kit/core";
3
3
  import { restrictToWindowEdges } from "@dnd-kit/modifiers";
4
4
  import { ReactFlowProvider } from "reactflow";