@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.
- package/dist/{esm/Flow → Flow}/Background/Background.js +1 -1
- package/dist/{esm/Flow → Flow}/Empty/Empty.styles.js +1 -1
- package/dist/{esm/Flow → Flow}/Node/Node.js +0 -3
- package/dist/{esm/Flow → Flow}/Sidebar/Sidebar.js +1 -1
- package/dist/{esm/StepNavigation → StepNavigation}/DefaultNavigation/DefaultNavigation.js +1 -3
- package/dist/{esm/StepNavigation → StepNavigation}/SimpleNavigation/SimpleNavigation.js +1 -3
- package/dist/{esm/StepNavigation → StepNavigation}/StepNavigation.js +2 -7
- package/dist/{esm/Wizard → Wizard}/WizardTitle/WizardTitle.js +31 -47
- package/dist/{esm/Wizard → Wizard}/WizardTitle/WizardTitle.styles.js +0 -10
- package/dist/{types/index.d.ts → index.d.ts} +12 -28
- package/package.json +14 -14
- package/dist/cjs/Blade/Blade.cjs +0 -174
- package/dist/cjs/Blade/Blade.styles.cjs +0 -71
- package/dist/cjs/Blades/Blades.cjs +0 -104
- package/dist/cjs/Blades/Blades.styles.cjs +0 -11
- package/dist/cjs/Dashboard/Dashboard.cjs +0 -63
- package/dist/cjs/Dashboard/Dashboard.styles.cjs +0 -196
- package/dist/cjs/Flow/Background/Background.cjs +0 -19
- package/dist/cjs/Flow/Controls/Controls.cjs +0 -96
- package/dist/cjs/Flow/DroppableFlow.cjs +0 -204
- package/dist/cjs/Flow/Empty/Empty.cjs +0 -12
- package/dist/cjs/Flow/Empty/Empty.styles.cjs +0 -16
- package/dist/cjs/Flow/Flow.cjs +0 -33
- package/dist/cjs/Flow/Flow.styles.cjs +0 -19
- package/dist/cjs/Flow/FlowContext/FlowContext.cjs +0 -25
- package/dist/cjs/Flow/FlowContext/NodeMetaContext.cjs +0 -43
- package/dist/cjs/Flow/Minimap/Minimap.cjs +0 -30
- package/dist/cjs/Flow/Minimap/Minimap.styles.cjs +0 -10
- package/dist/cjs/Flow/Node/BaseNode.cjs +0 -192
- package/dist/cjs/Flow/Node/BaseNode.styles.cjs +0 -135
- package/dist/cjs/Flow/Node/Node.cjs +0 -115
- package/dist/cjs/Flow/Node/Node.styles.cjs +0 -42
- package/dist/cjs/Flow/Node/Parameters/ParamRenderer.cjs +0 -19
- package/dist/cjs/Flow/Node/Parameters/Select.cjs +0 -41
- package/dist/cjs/Flow/Node/Parameters/Slider.cjs +0 -33
- package/dist/cjs/Flow/Node/Parameters/Text.cjs +0 -19
- package/dist/cjs/Flow/Node/utils.cjs +0 -54
- package/dist/cjs/Flow/Sidebar/Sidebar.cjs +0 -141
- package/dist/cjs/Flow/Sidebar/Sidebar.styles.cjs +0 -24
- package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroup.cjs +0 -62
- package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroup.styles.cjs +0 -34
- package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroupItem/DraggableSidebarGroupItem.cjs +0 -51
- package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.cjs +0 -35
- package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.styles.cjs +0 -23
- package/dist/cjs/Flow/base.cjs +0 -411
- package/dist/cjs/Flow/hooks/useFlowContext.cjs +0 -6
- package/dist/cjs/Flow/hooks/useFlowInstance.cjs +0 -7
- package/dist/cjs/Flow/hooks/useFlowNode.cjs +0 -134
- package/dist/cjs/Flow/hooks/useFlowNodeMeta.cjs +0 -10
- package/dist/cjs/Flow/hooks/useNode.cjs +0 -159
- package/dist/cjs/Flow/hooks/useNodeId.cjs +0 -8
- package/dist/cjs/Flow/nodes/DashboardNode.cjs +0 -88
- package/dist/cjs/Flow/nodes/DashboardNode.styles.cjs +0 -16
- package/dist/cjs/Flow/nodes/StickyNode.cjs +0 -441
- package/dist/cjs/StepNavigation/DefaultNavigation/DefaultNavigation.cjs +0 -56
- package/dist/cjs/StepNavigation/DefaultNavigation/Step/Step.cjs +0 -78
- package/dist/cjs/StepNavigation/DefaultNavigation/Step/Step.styles.cjs +0 -35
- package/dist/cjs/StepNavigation/DefaultNavigation/utils.cjs +0 -34
- package/dist/cjs/StepNavigation/SimpleNavigation/Dot/Dot.cjs +0 -43
- package/dist/cjs/StepNavigation/SimpleNavigation/Dot/Dot.styles.cjs +0 -18
- package/dist/cjs/StepNavigation/SimpleNavigation/SimpleNavigation.cjs +0 -52
- package/dist/cjs/StepNavigation/SimpleNavigation/utils.cjs +0 -13
- package/dist/cjs/StepNavigation/StepNavigation.cjs +0 -188
- package/dist/cjs/StepNavigation/StepNavigation.styles.cjs +0 -34
- package/dist/cjs/StepNavigation/utils.cjs +0 -8
- package/dist/cjs/Wizard/Wizard.cjs +0 -108
- package/dist/cjs/Wizard/Wizard.styles.cjs +0 -8
- package/dist/cjs/Wizard/WizardActions/WizardActions.cjs +0 -132
- package/dist/cjs/Wizard/WizardActions/WizardActions.styles.cjs +0 -22
- package/dist/cjs/Wizard/WizardContainer/WizardContainer.cjs +0 -31
- package/dist/cjs/Wizard/WizardContainer/WizardContainer.styles.cjs +0 -15
- package/dist/cjs/Wizard/WizardContent/WizardContent.cjs +0 -121
- package/dist/cjs/Wizard/WizardContent/WizardContent.styles.cjs +0 -38
- package/dist/cjs/Wizard/WizardContext/WizardContext.cjs +0 -15
- package/dist/cjs/Wizard/WizardTitle/WizardTitle.cjs +0 -97
- package/dist/cjs/Wizard/WizardTitle/WizardTitle.styles.cjs +0 -27
- package/dist/cjs/index.cjs +0 -93
- /package/dist/{esm/Blade → Blade}/Blade.js +0 -0
- /package/dist/{esm/Blade → Blade}/Blade.styles.js +0 -0
- /package/dist/{esm/Blades → Blades}/Blades.js +0 -0
- /package/dist/{esm/Blades → Blades}/Blades.styles.js +0 -0
- /package/dist/{esm/Dashboard → Dashboard}/Dashboard.js +0 -0
- /package/dist/{esm/Dashboard → Dashboard}/Dashboard.styles.js +0 -0
- /package/dist/{esm/Flow → Flow}/Controls/Controls.js +0 -0
- /package/dist/{esm/Flow → Flow}/DroppableFlow.js +0 -0
- /package/dist/{esm/Flow → Flow}/Empty/Empty.js +0 -0
- /package/dist/{esm/Flow → Flow}/Flow.js +0 -0
- /package/dist/{esm/Flow → Flow}/Flow.styles.js +0 -0
- /package/dist/{esm/Flow → Flow}/FlowContext/FlowContext.js +0 -0
- /package/dist/{esm/Flow → Flow}/FlowContext/NodeMetaContext.js +0 -0
- /package/dist/{esm/Flow → Flow}/Minimap/Minimap.js +0 -0
- /package/dist/{esm/Flow → Flow}/Minimap/Minimap.styles.js +0 -0
- /package/dist/{esm/Flow → Flow}/Node/BaseNode.js +0 -0
- /package/dist/{esm/Flow → Flow}/Node/BaseNode.styles.js +0 -0
- /package/dist/{esm/Flow → Flow}/Node/Node.styles.js +0 -0
- /package/dist/{esm/Flow → Flow}/Node/Parameters/ParamRenderer.js +0 -0
- /package/dist/{esm/Flow → Flow}/Node/Parameters/Select.js +0 -0
- /package/dist/{esm/Flow → Flow}/Node/Parameters/Slider.js +0 -0
- /package/dist/{esm/Flow → Flow}/Node/Parameters/Text.js +0 -0
- /package/dist/{esm/Flow → Flow}/Node/utils.js +0 -0
- /package/dist/{esm/Flow → Flow}/Sidebar/Sidebar.styles.js +0 -0
- /package/dist/{esm/Flow → Flow}/Sidebar/SidebarGroup/SidebarGroup.js +0 -0
- /package/dist/{esm/Flow → Flow}/Sidebar/SidebarGroup/SidebarGroup.styles.js +0 -0
- /package/dist/{esm/Flow → Flow}/Sidebar/SidebarGroup/SidebarGroupItem/DraggableSidebarGroupItem.js +0 -0
- /package/dist/{esm/Flow → Flow}/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.js +0 -0
- /package/dist/{esm/Flow → Flow}/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.styles.js +0 -0
- /package/dist/{esm/Flow → Flow}/base.js +0 -0
- /package/dist/{esm/Flow → Flow}/hooks/useFlowContext.js +0 -0
- /package/dist/{esm/Flow → Flow}/hooks/useFlowInstance.js +0 -0
- /package/dist/{esm/Flow → Flow}/hooks/useFlowNode.js +0 -0
- /package/dist/{esm/Flow → Flow}/hooks/useFlowNodeMeta.js +0 -0
- /package/dist/{esm/Flow → Flow}/hooks/useNode.js +0 -0
- /package/dist/{esm/Flow → Flow}/hooks/useNodeId.js +0 -0
- /package/dist/{esm/Flow → Flow}/nodes/DashboardNode.js +0 -0
- /package/dist/{esm/Flow → Flow}/nodes/DashboardNode.styles.js +0 -0
- /package/dist/{esm/Flow → Flow}/nodes/StickyNode.js +0 -0
- /package/dist/{esm/StepNavigation → StepNavigation}/DefaultNavigation/Step/Step.js +0 -0
- /package/dist/{esm/StepNavigation → StepNavigation}/DefaultNavigation/Step/Step.styles.js +0 -0
- /package/dist/{esm/StepNavigation → StepNavigation}/DefaultNavigation/utils.js +0 -0
- /package/dist/{esm/StepNavigation → StepNavigation}/SimpleNavigation/Dot/Dot.js +0 -0
- /package/dist/{esm/StepNavigation → StepNavigation}/SimpleNavigation/Dot/Dot.styles.js +0 -0
- /package/dist/{esm/StepNavigation → StepNavigation}/SimpleNavigation/utils.js +0 -0
- /package/dist/{esm/StepNavigation → StepNavigation}/StepNavigation.styles.js +0 -0
- /package/dist/{esm/StepNavigation → StepNavigation}/utils.js +0 -0
- /package/dist/{esm/Wizard → Wizard}/Wizard.js +0 -0
- /package/dist/{esm/Wizard → Wizard}/Wizard.styles.js +0 -0
- /package/dist/{esm/Wizard → Wizard}/WizardActions/WizardActions.js +0 -0
- /package/dist/{esm/Wizard → Wizard}/WizardActions/WizardActions.styles.js +0 -0
- /package/dist/{esm/Wizard → Wizard}/WizardContainer/WizardContainer.js +0 -0
- /package/dist/{esm/Wizard → Wizard}/WizardContainer/WizardContainer.styles.js +0 -0
- /package/dist/{esm/Wizard → Wizard}/WizardContent/WizardContent.js +0 -0
- /package/dist/{esm/Wizard → Wizard}/WizardContent/WizardContent.styles.js +0 -0
- /package/dist/{esm/Wizard → Wizard}/WizardContext/WizardContext.js +0 -0
- /package/dist/{esm/index.js → index.js} +0 -0
|
@@ -1,121 +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 usehooksTs = require("usehooks-ts");
|
|
6
|
-
const uikitReactCore = require("@hitachivantara/uikit-react-core");
|
|
7
|
-
const WizardContent_styles = require("./WizardContent.styles.cjs");
|
|
8
|
-
const WizardContext = require("../WizardContext/WizardContext.cjs");
|
|
9
|
-
const DRAWER_PERCENTAGE = 0.3;
|
|
10
|
-
const DRAWER_MIN_WIDTH = 280;
|
|
11
|
-
const HvWizardContent = ({
|
|
12
|
-
classes: classesProp,
|
|
13
|
-
fixedHeight = false,
|
|
14
|
-
loading = false,
|
|
15
|
-
children,
|
|
16
|
-
summaryContent
|
|
17
|
-
}) => {
|
|
18
|
-
const { classes, cx } = WizardContent_styles.useClasses(classesProp);
|
|
19
|
-
const { context, setContext, summary, tab } = react.useContext(WizardContext.default);
|
|
20
|
-
const arrayChildren = react.Children.toArray(children);
|
|
21
|
-
const summaryRef = react.useRef(void 0);
|
|
22
|
-
const resizedRef = react.useRef({ height: 0, width: 0 });
|
|
23
|
-
const [containerRef, sizes] = usehooksTs.useElementSize();
|
|
24
|
-
const [summaryHeight, setSummaryHeight] = react.useState(0);
|
|
25
|
-
const [summaryWidth, setSummaryWidth] = react.useState(0);
|
|
26
|
-
const [summaryLeft, setSummaryLeft] = react.useState(0);
|
|
27
|
-
const updateSummaryMeasures = react.useCallback(({ height = 0, width = 0 }) => {
|
|
28
|
-
const drawerWidth = width * DRAWER_PERCENTAGE;
|
|
29
|
-
setSummaryHeight(height);
|
|
30
|
-
setSummaryWidth(Math.max(drawerWidth, DRAWER_MIN_WIDTH));
|
|
31
|
-
setSummaryLeft(width - Math.max(drawerWidth, DRAWER_MIN_WIDTH));
|
|
32
|
-
resizedRef.current = {
|
|
33
|
-
height,
|
|
34
|
-
width
|
|
35
|
-
};
|
|
36
|
-
}, []);
|
|
37
|
-
react.useEffect(() => {
|
|
38
|
-
const pageHeight = summaryRef.current?.getBoundingClientRect?.()?.height;
|
|
39
|
-
if (summary && sizes.height !== resizedRef.current.height || sizes.width !== resizedRef.current.width) {
|
|
40
|
-
updateSummaryMeasures(sizes);
|
|
41
|
-
}
|
|
42
|
-
if (pageHeight && sizes.height !== pageHeight) {
|
|
43
|
-
updateSummaryMeasures({
|
|
44
|
-
width: sizes.width,
|
|
45
|
-
height: pageHeight
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
}, [tab, sizes, summary, updateSummaryMeasures]);
|
|
49
|
-
react.useEffect(() => {
|
|
50
|
-
const initialContext = arrayChildren.reduce(
|
|
51
|
-
(acc, child, index) => {
|
|
52
|
-
const invalid = "mustValidate" in child.props && child.props.mustValidate === true ? false : null;
|
|
53
|
-
const valid = invalid;
|
|
54
|
-
acc[index] = { ...child.props, form: {}, valid, touched: index === 0 };
|
|
55
|
-
return acc;
|
|
56
|
-
},
|
|
57
|
-
{}
|
|
58
|
-
);
|
|
59
|
-
setContext(initialContext);
|
|
60
|
-
}, []);
|
|
61
|
-
react.useEffect(() => {
|
|
62
|
-
if (tab && !context[tab]?.touched) {
|
|
63
|
-
setContext(
|
|
64
|
-
(oldContext) => Object.entries(oldContext).reduce(
|
|
65
|
-
(acc, [key, childState]) => {
|
|
66
|
-
acc[Number(key)] = +key <= tab ? {
|
|
67
|
-
...childState,
|
|
68
|
-
touched: true,
|
|
69
|
-
valid: childState?.valid ?? true
|
|
70
|
-
} : childState;
|
|
71
|
-
return acc;
|
|
72
|
-
},
|
|
73
|
-
{}
|
|
74
|
-
)
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
}, [tab, context, setContext]);
|
|
78
|
-
const translateX = summaryWidth ? summaryWidth + 10 : 450;
|
|
79
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
80
|
-
"div",
|
|
81
|
-
{
|
|
82
|
-
className: classes.summaryRef,
|
|
83
|
-
ref: (el) => {
|
|
84
|
-
containerRef(el);
|
|
85
|
-
if (el) {
|
|
86
|
-
summaryRef.current = el;
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
children: [
|
|
90
|
-
summary !== null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: classes.summarySticky, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
91
|
-
"div",
|
|
92
|
-
{
|
|
93
|
-
className: classes.summaryContainer,
|
|
94
|
-
style: {
|
|
95
|
-
left: summaryLeft,
|
|
96
|
-
width: summaryWidth,
|
|
97
|
-
height: summaryHeight,
|
|
98
|
-
transform: `translate(${summary ? 0 : translateX}px, 0)`
|
|
99
|
-
},
|
|
100
|
-
children: summaryContent
|
|
101
|
-
}
|
|
102
|
-
) }),
|
|
103
|
-
/* @__PURE__ */ jsxRuntime.jsx(uikitReactCore.HvLoadingContainer, { hidden: !loading, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
104
|
-
uikitReactCore.HvDialogContent,
|
|
105
|
-
{
|
|
106
|
-
className: cx(classes.contentContainer, {
|
|
107
|
-
[classes.fixedHeight]: fixedHeight
|
|
108
|
-
}),
|
|
109
|
-
indentContent: true,
|
|
110
|
-
children: react.Children.map(arrayChildren, (child, index) => {
|
|
111
|
-
if (index !== tab) return null;
|
|
112
|
-
return react.cloneElement(child, { tab });
|
|
113
|
-
})
|
|
114
|
-
}
|
|
115
|
-
) })
|
|
116
|
-
]
|
|
117
|
-
}
|
|
118
|
-
);
|
|
119
|
-
};
|
|
120
|
-
exports.wizardContentClasses = WizardContent_styles.staticClasses;
|
|
121
|
-
exports.HvWizardContent = HvWizardContent;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const uikitReactCore = require("@hitachivantara/uikit-react-core");
|
|
4
|
-
const uikitStyles = require("@hitachivantara/uikit-styles");
|
|
5
|
-
const { staticClasses, useClasses } = uikitReactCore.createClasses("HvWizardContent", {
|
|
6
|
-
contentContainer: {
|
|
7
|
-
position: "relative",
|
|
8
|
-
padding: 20,
|
|
9
|
-
marginLeft: 0,
|
|
10
|
-
minHeight: 400,
|
|
11
|
-
overflowX: "hidden"
|
|
12
|
-
},
|
|
13
|
-
fixedHeight: {
|
|
14
|
-
minHeight: "calc(100vh - 387px)"
|
|
15
|
-
},
|
|
16
|
-
summaryRef: {
|
|
17
|
-
flex: 1,
|
|
18
|
-
overflowY: "auto",
|
|
19
|
-
overflowX: "hidden"
|
|
20
|
-
},
|
|
21
|
-
summarySticky: {
|
|
22
|
-
position: "sticky",
|
|
23
|
-
top: 0,
|
|
24
|
-
zIndex: 1
|
|
25
|
-
},
|
|
26
|
-
summaryContainer: {
|
|
27
|
-
position: "absolute",
|
|
28
|
-
top: 0,
|
|
29
|
-
minWidth: 280,
|
|
30
|
-
boxShadow: uikitStyles.theme.colors.shadow,
|
|
31
|
-
backgroundColor: uikitStyles.theme.colors.bgContainer,
|
|
32
|
-
transition: "transform 0.3s",
|
|
33
|
-
transitionTimingFunction: "ease-in-out",
|
|
34
|
-
overflowY: "scroll"
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
exports.staticClasses = staticClasses;
|
|
38
|
-
exports.useClasses = useClasses;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const react = require("react");
|
|
4
|
-
const HvWizardContext = react.createContext({
|
|
5
|
-
context: {},
|
|
6
|
-
setContext: () => {
|
|
7
|
-
},
|
|
8
|
-
summary: false,
|
|
9
|
-
setSummary: () => {
|
|
10
|
-
},
|
|
11
|
-
tab: 0,
|
|
12
|
-
setTab: () => {
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
exports.default = HvWizardContext;
|
|
@@ -1,97 +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 uikitReactIcons = require("@hitachivantara/uikit-react-icons");
|
|
7
|
-
const WizardTitle_styles = require("./WizardTitle.styles.cjs");
|
|
8
|
-
const WizardContext = require("../WizardContext/WizardContext.cjs");
|
|
9
|
-
const StepNavigation = require("../../StepNavigation/StepNavigation.cjs");
|
|
10
|
-
const switchTabState = (state, currentTab, index) => {
|
|
11
|
-
if (state?.loading) return "Pending";
|
|
12
|
-
if (index === currentTab) return "Current";
|
|
13
|
-
if (state?.valid) return "Completed";
|
|
14
|
-
if (state?.disabled) return "Disabled";
|
|
15
|
-
if (state?.valid === null) return "Enabled";
|
|
16
|
-
if (state?.touched && state?.valid === false) return "Failed";
|
|
17
|
-
return "Enabled";
|
|
18
|
-
};
|
|
19
|
-
const HvWizardTitle = ({
|
|
20
|
-
title,
|
|
21
|
-
hasSummary = false,
|
|
22
|
-
labels = {},
|
|
23
|
-
classes: classesProp,
|
|
24
|
-
customStep = {}
|
|
25
|
-
}) => {
|
|
26
|
-
const { context, setSummary, tab, setTab } = react.useContext(WizardContext.default);
|
|
27
|
-
const { classes, cx } = WizardTitle_styles.useClasses(classesProp);
|
|
28
|
-
const [steps, setSteps] = react.useState([]);
|
|
29
|
-
react.useEffect(() => {
|
|
30
|
-
return () => {
|
|
31
|
-
setSummary(false);
|
|
32
|
-
};
|
|
33
|
-
}, [setSummary]);
|
|
34
|
-
const toggleSummary = () => {
|
|
35
|
-
setSummary((prevValue) => !prevValue);
|
|
36
|
-
};
|
|
37
|
-
react.useEffect(() => {
|
|
38
|
-
const contextArray = Object.entries(context);
|
|
39
|
-
if (!contextArray.length) return;
|
|
40
|
-
const updatedSteps = contextArray.map(
|
|
41
|
-
([, childState], index) => ({
|
|
42
|
-
title: childState?.["data-title"] ?? childState?.name ?? `${index + 1}`,
|
|
43
|
-
state: switchTabState(childState, tab, index),
|
|
44
|
-
onClick: () => setTab(index)
|
|
45
|
-
})
|
|
46
|
-
);
|
|
47
|
-
setSteps(updatedSteps);
|
|
48
|
-
}, [context, tab, setTab]);
|
|
49
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
50
|
-
uikitReactCore.HvDialogTitle,
|
|
51
|
-
{
|
|
52
|
-
className: cx(
|
|
53
|
-
classes.root,
|
|
54
|
-
classes.headerContainer,
|
|
55
|
-
classes.messageContainer,
|
|
56
|
-
classes.titleContainer
|
|
57
|
-
),
|
|
58
|
-
showIcon: false,
|
|
59
|
-
children: [
|
|
60
|
-
title && /* @__PURE__ */ jsxRuntime.jsx(uikitReactCore.HvTypography, { variant: "title3", component: "div", children: title }),
|
|
61
|
-
!!steps.length && /* @__PURE__ */ jsxRuntime.jsx(
|
|
62
|
-
StepNavigation.HvStepNavigation,
|
|
63
|
-
{
|
|
64
|
-
className: classes.stepContainer,
|
|
65
|
-
steps,
|
|
66
|
-
type: "Default",
|
|
67
|
-
stepSize: "xs",
|
|
68
|
-
width: {
|
|
69
|
-
xs: 200,
|
|
70
|
-
sm: 350,
|
|
71
|
-
md: 600,
|
|
72
|
-
lg: 800,
|
|
73
|
-
xl: 1e3
|
|
74
|
-
},
|
|
75
|
-
...customStep
|
|
76
|
-
}
|
|
77
|
-
),
|
|
78
|
-
hasSummary && /* @__PURE__ */ jsxRuntime.jsx(
|
|
79
|
-
uikitReactCore.HvButton,
|
|
80
|
-
{
|
|
81
|
-
variant: "secondarySubtle",
|
|
82
|
-
className: cx(
|
|
83
|
-
classes.summaryButton,
|
|
84
|
-
classes.buttonWidth,
|
|
85
|
-
classes.rootSummaryButton
|
|
86
|
-
),
|
|
87
|
-
onClick: toggleSummary,
|
|
88
|
-
startIcon: /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.Report, {}),
|
|
89
|
-
children: `${labels.summary ?? "Summary"}`
|
|
90
|
-
}
|
|
91
|
-
)
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
);
|
|
95
|
-
};
|
|
96
|
-
exports.wizardTitleClasses = WizardTitle_styles.staticClasses;
|
|
97
|
-
exports.HvWizardTitle = HvWizardTitle;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const uikitReactCore = require("@hitachivantara/uikit-react-core");
|
|
4
|
-
const uikitStyles = require("@hitachivantara/uikit-styles");
|
|
5
|
-
const { staticClasses, useClasses } = uikitReactCore.createClasses("HvWizardTitle", {
|
|
6
|
-
root: {
|
|
7
|
-
backgroundColor: uikitStyles.theme.colors.bgPage,
|
|
8
|
-
justifyContent: "space-between",
|
|
9
|
-
paddingRight: uikitStyles.theme.space.sm
|
|
10
|
-
},
|
|
11
|
-
/** @deprecated use `classes.root` */
|
|
12
|
-
headerContainer: {},
|
|
13
|
-
/** @deprecated use `classes.root` */
|
|
14
|
-
messageContainer: {},
|
|
15
|
-
/** @deprecated use `classes.root` */
|
|
16
|
-
titleContainer: {},
|
|
17
|
-
summaryButton: {},
|
|
18
|
-
/** @deprecated use `classes.summaryButton` */
|
|
19
|
-
buttonWidth: {},
|
|
20
|
-
/** @deprecated use `classes.summaryButton` */
|
|
21
|
-
rootSummaryButton: {},
|
|
22
|
-
stepContainer: {
|
|
23
|
-
margin: "auto"
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
exports.staticClasses = staticClasses;
|
|
27
|
-
exports.useClasses = useClasses;
|
package/dist/cjs/index.cjs
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const WizardContext = require("./Wizard/WizardContext/WizardContext.cjs");
|
|
4
|
-
const Blade_styles = require("./Blade/Blade.styles.cjs");
|
|
5
|
-
const Blade = require("./Blade/Blade.cjs");
|
|
6
|
-
const Blades_styles = require("./Blades/Blades.styles.cjs");
|
|
7
|
-
const Blades = require("./Blades/Blades.cjs");
|
|
8
|
-
const Dashboard_styles = require("./Dashboard/Dashboard.styles.cjs");
|
|
9
|
-
const Dashboard = require("./Dashboard/Dashboard.cjs");
|
|
10
|
-
const Flow_styles = require("./Flow/Flow.styles.cjs");
|
|
11
|
-
const NodeMetaContext = require("./Flow/FlowContext/NodeMetaContext.cjs");
|
|
12
|
-
const Background = require("./Flow/Background/Background.cjs");
|
|
13
|
-
const Controls = require("./Flow/Controls/Controls.cjs");
|
|
14
|
-
const Minimap_styles = require("./Flow/Minimap/Minimap.styles.cjs");
|
|
15
|
-
const Minimap = require("./Flow/Minimap/Minimap.cjs");
|
|
16
|
-
const Sidebar_styles = require("./Flow/Sidebar/Sidebar.styles.cjs");
|
|
17
|
-
const Sidebar = require("./Flow/Sidebar/Sidebar.cjs");
|
|
18
|
-
const Empty = require("./Flow/Empty/Empty.cjs");
|
|
19
|
-
const Flow = require("./Flow/Flow.cjs");
|
|
20
|
-
const BaseNode_styles = require("./Flow/Node/BaseNode.styles.cjs");
|
|
21
|
-
const BaseNode = require("./Flow/Node/BaseNode.cjs");
|
|
22
|
-
const Node_styles = require("./Flow/Node/Node.styles.cjs");
|
|
23
|
-
const Node = require("./Flow/Node/Node.cjs");
|
|
24
|
-
const DashboardNode_styles = require("./Flow/nodes/DashboardNode.styles.cjs");
|
|
25
|
-
const DashboardNode = require("./Flow/nodes/DashboardNode.cjs");
|
|
26
|
-
const StickyNode = require("./Flow/nodes/StickyNode.cjs");
|
|
27
|
-
const useFlowNode = require("./Flow/hooks/useFlowNode.cjs");
|
|
28
|
-
const useFlowContext = require("./Flow/hooks/useFlowContext.cjs");
|
|
29
|
-
const useFlowNodeMeta = require("./Flow/hooks/useFlowNodeMeta.cjs");
|
|
30
|
-
const useFlowInstance = require("./Flow/hooks/useFlowInstance.cjs");
|
|
31
|
-
const useNode = require("./Flow/hooks/useNode.cjs");
|
|
32
|
-
const StepNavigation_styles = require("./StepNavigation/StepNavigation.styles.cjs");
|
|
33
|
-
const StepNavigation = require("./StepNavigation/StepNavigation.cjs");
|
|
34
|
-
const Wizard_styles = require("./Wizard/Wizard.styles.cjs");
|
|
35
|
-
const Wizard = require("./Wizard/Wizard.cjs");
|
|
36
|
-
const WizardActions_styles = require("./Wizard/WizardActions/WizardActions.styles.cjs");
|
|
37
|
-
const WizardActions = require("./Wizard/WizardActions/WizardActions.cjs");
|
|
38
|
-
const WizardContainer_styles = require("./Wizard/WizardContainer/WizardContainer.styles.cjs");
|
|
39
|
-
const WizardContainer = require("./Wizard/WizardContainer/WizardContainer.cjs");
|
|
40
|
-
const WizardContent_styles = require("./Wizard/WizardContent/WizardContent.styles.cjs");
|
|
41
|
-
const WizardContent = require("./Wizard/WizardContent/WizardContent.cjs");
|
|
42
|
-
const WizardTitle_styles = require("./Wizard/WizardTitle/WizardTitle.styles.cjs");
|
|
43
|
-
const WizardTitle = require("./Wizard/WizardTitle/WizardTitle.cjs");
|
|
44
|
-
exports.HvWizardContext = WizardContext.default;
|
|
45
|
-
exports.bladeClasses = Blade_styles.staticClasses;
|
|
46
|
-
exports.HvBlade = Blade.HvBlade;
|
|
47
|
-
exports.bladesClasses = Blades_styles.staticClasses;
|
|
48
|
-
exports.HvBlades = Blades.HvBlades;
|
|
49
|
-
exports.dashboardClasses = Dashboard_styles.staticClasses;
|
|
50
|
-
exports.HvDashboard = Dashboard.HvDashboard;
|
|
51
|
-
exports.flowClasses = Flow_styles.staticClasses;
|
|
52
|
-
exports.useNodeMetaRegistry = NodeMetaContext.useNodeMetaRegistry;
|
|
53
|
-
exports.HvFlowBackground = Background.HvFlowBackground;
|
|
54
|
-
exports.HvFlowControls = Controls.HvFlowControls;
|
|
55
|
-
exports.flowMinimapClasses = Minimap_styles.staticClasses;
|
|
56
|
-
exports.HvFlowMinimap = Minimap.HvFlowMinimap;
|
|
57
|
-
exports.flowSidebarClasses = Sidebar_styles.staticClasses;
|
|
58
|
-
exports.HvFlowSidebar = Sidebar.HvFlowSidebar;
|
|
59
|
-
exports.HvFlowEmpty = Empty.HvFlowEmpty;
|
|
60
|
-
exports.HvFlow = Flow.HvFlow;
|
|
61
|
-
exports.flowBaseNodeClasses = BaseNode_styles.staticClasses;
|
|
62
|
-
exports.DEFAULT_LABELS = BaseNode.DEFAULT_LABELS;
|
|
63
|
-
exports.HvFlowBaseNode = BaseNode.HvFlowBaseNode;
|
|
64
|
-
exports.flowNodeClasses = Node_styles.staticClasses;
|
|
65
|
-
exports.HvFlowNode = Node.HvFlowNode;
|
|
66
|
-
exports.hvDashboardNodeClasses = DashboardNode_styles.staticClasses;
|
|
67
|
-
exports.HvDashboardNode = DashboardNode.HvDashboardNode;
|
|
68
|
-
exports.StickyNode = StickyNode.StickyNode;
|
|
69
|
-
exports.useFlowInputNodes = useFlowNode.useFlowInputNodes;
|
|
70
|
-
exports.useFlowNode = useFlowNode.useFlowNode;
|
|
71
|
-
exports.useFlowNodeEdges = useFlowNode.useFlowNodeEdges;
|
|
72
|
-
exports.useFlowNodeInputEdges = useFlowNode.useFlowNodeInputEdges;
|
|
73
|
-
exports.useFlowNodeIntersections = useFlowNode.useFlowNodeIntersections;
|
|
74
|
-
exports.useFlowNodeOutputEdges = useFlowNode.useFlowNodeOutputEdges;
|
|
75
|
-
exports.useFlowNodeParents = useFlowNode.useFlowNodeParents;
|
|
76
|
-
exports.useFlowNodeUtils = useFlowNode.useFlowNodeUtils;
|
|
77
|
-
exports.useFlowOutputNodes = useFlowNode.useFlowOutputNodes;
|
|
78
|
-
exports.useFlowContext = useFlowContext.useFlowContext;
|
|
79
|
-
exports.useFlowNodeMeta = useFlowNodeMeta.useFlowNodeMeta;
|
|
80
|
-
exports.useFlowInstance = useFlowInstance.useFlowInstance;
|
|
81
|
-
exports.useHvNode = useNode.useHvNode;
|
|
82
|
-
exports.stepNavigationClasses = StepNavigation_styles.staticClasses;
|
|
83
|
-
exports.HvStepNavigation = StepNavigation.HvStepNavigation;
|
|
84
|
-
exports.wizardClasses = Wizard_styles.staticClasses;
|
|
85
|
-
exports.HvWizard = Wizard.HvWizard;
|
|
86
|
-
exports.wizardActionsClasses = WizardActions_styles.staticClasses;
|
|
87
|
-
exports.HvWizardActions = WizardActions.HvWizardActions;
|
|
88
|
-
exports.wizardContainerClasses = WizardContainer_styles.staticClasses;
|
|
89
|
-
exports.HvWizardContainer = WizardContainer.HvWizardContainer;
|
|
90
|
-
exports.wizardContentClasses = WizardContent_styles.staticClasses;
|
|
91
|
-
exports.HvWizardContent = WizardContent.HvWizardContent;
|
|
92
|
-
exports.wizardTitleClasses = WizardTitle_styles.staticClasses;
|
|
93
|
-
exports.HvWizardTitle = WizardTitle.HvWizardTitle;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{esm/Flow → Flow}/Sidebar/SidebarGroup/SidebarGroupItem/DraggableSidebarGroupItem.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/{esm/Flow → Flow}/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.styles.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|