@hitachivantara/uikit-react-lab 5.45.1 → 5.46.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.
- package/dist/cjs/Blade/Blade.cjs +2 -2
- package/dist/cjs/Blade/Blade.styles.cjs +5 -5
- package/dist/cjs/Dashboard/Dashboard.styles.cjs +1 -1
- package/dist/cjs/Flow/Background/Background.cjs +1 -1
- package/dist/cjs/Flow/Flow.styles.cjs +1 -1
- package/dist/cjs/Flow/Minimap/Minimap.cjs +8 -8
- package/dist/cjs/Flow/Minimap/Minimap.styles.cjs +1 -1
- package/dist/cjs/Flow/Node/BaseNode.styles.cjs +15 -15
- package/dist/cjs/Flow/Node/Node.styles.cjs +1 -1
- package/dist/cjs/Flow/Sidebar/Sidebar.styles.cjs +1 -1
- package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.styles.cjs +2 -2
- package/dist/cjs/Flow/base.cjs +5 -5
- package/dist/cjs/StepNavigation/DefaultNavigation/Step/Step.cjs +2 -2
- package/dist/cjs/StepNavigation/DefaultNavigation/utils.cjs +6 -6
- package/dist/cjs/StepNavigation/SimpleNavigation/Dot/Dot.cjs +12 -15
- package/dist/cjs/StepNavigation/SimpleNavigation/Dot/Dot.styles.cjs +9 -1
- package/dist/cjs/StepNavigation/SimpleNavigation/utils.cjs +1 -1
- package/dist/cjs/Wizard/WizardContent/WizardContent.styles.cjs +1 -1
- package/dist/cjs/Wizard/WizardTitle/WizardTitle.cjs +1 -0
- package/dist/cjs/Wizard/WizardTitle/WizardTitle.styles.cjs +1 -1
- package/dist/esm/Blade/Blade.js +2 -2
- package/dist/esm/Blade/Blade.styles.js +5 -5
- package/dist/esm/Dashboard/Dashboard.styles.js +1 -1
- package/dist/esm/Flow/Background/Background.js +1 -1
- package/dist/esm/Flow/Flow.styles.js +1 -1
- package/dist/esm/Flow/Minimap/Minimap.js +8 -8
- package/dist/esm/Flow/Minimap/Minimap.styles.js +1 -1
- package/dist/esm/Flow/Node/BaseNode.styles.js +15 -15
- package/dist/esm/Flow/Node/Node.styles.js +1 -1
- package/dist/esm/Flow/Sidebar/Sidebar.styles.js +1 -1
- package/dist/esm/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.styles.js +2 -2
- package/dist/esm/Flow/base.js +5 -5
- package/dist/esm/StepNavigation/DefaultNavigation/Step/Step.js +2 -2
- package/dist/esm/StepNavigation/DefaultNavigation/utils.js +6 -6
- package/dist/esm/StepNavigation/SimpleNavigation/Dot/Dot.js +12 -15
- package/dist/esm/StepNavigation/SimpleNavigation/Dot/Dot.styles.js +9 -1
- package/dist/esm/StepNavigation/SimpleNavigation/utils.js +1 -1
- package/dist/esm/Wizard/WizardContent/WizardContent.styles.js +1 -1
- package/dist/esm/Wizard/WizardTitle/WizardTitle.js +1 -0
- package/dist/esm/Wizard/WizardTitle/WizardTitle.styles.js +1 -1
- package/dist/types/index.d.ts +6 -6
- package/package.json +6 -6
package/dist/cjs/Blade/Blade.cjs
CHANGED
|
@@ -80,8 +80,8 @@ const HvBlade = (props) => {
|
|
|
80
80
|
component: "div",
|
|
81
81
|
role: "button",
|
|
82
82
|
className: cx(classes.button, {
|
|
83
|
-
[classes.
|
|
84
|
-
[classes.
|
|
83
|
+
[classes.textOnlyLabel]: typeof buttonLabel === "string",
|
|
84
|
+
[classes.disabled]: disabled
|
|
85
85
|
}),
|
|
86
86
|
style: { flexShrink: headingLevel === void 0 ? 0 : void 0 },
|
|
87
87
|
disabled,
|
|
@@ -12,10 +12,10 @@ const { staticClasses, useClasses } = uikitReactCore.createClasses("HvBlade", {
|
|
|
12
12
|
},
|
|
13
13
|
transition: "flex-grow 600ms linear",
|
|
14
14
|
zIndex: 0,
|
|
15
|
-
color: uikitStyles.theme.colors.
|
|
15
|
+
color: uikitStyles.theme.colors.text,
|
|
16
16
|
backgroundColor: uikitStyles.theme.colors.atmo1,
|
|
17
17
|
borderRadius: uikitStyles.theme.radii.round,
|
|
18
|
-
border: `1px solid ${uikitStyles.theme.colors.
|
|
18
|
+
border: `1px solid ${uikitStyles.theme.colors.border}`
|
|
19
19
|
},
|
|
20
20
|
expanded: {},
|
|
21
21
|
fullWidth: {
|
|
@@ -33,10 +33,10 @@ const { staticClasses, useClasses } = uikitReactCore.createClasses("HvBlade", {
|
|
|
33
33
|
},
|
|
34
34
|
"&:focus": {
|
|
35
35
|
outline: "none",
|
|
36
|
-
background: uikitStyles.theme.colors.
|
|
36
|
+
background: uikitStyles.theme.colors.bgHover
|
|
37
37
|
},
|
|
38
38
|
"&:hover": {
|
|
39
|
-
background: uikitStyles.theme.colors.
|
|
39
|
+
background: uikitStyles.theme.colors.bgHover
|
|
40
40
|
},
|
|
41
41
|
"&:focus-visible": {
|
|
42
42
|
...uikitReactCore.outlineStyles,
|
|
@@ -58,7 +58,7 @@ const { staticClasses, useClasses } = uikitReactCore.createClasses("HvBlade", {
|
|
|
58
58
|
},
|
|
59
59
|
disabled: {
|
|
60
60
|
cursor: "not-allowed",
|
|
61
|
-
color: uikitStyles.theme.colors.
|
|
61
|
+
color: uikitStyles.theme.colors.textDisabled,
|
|
62
62
|
"&:focus": {
|
|
63
63
|
background: "none"
|
|
64
64
|
},
|
|
@@ -38,7 +38,7 @@ const gridStyles = react.css`
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.react-grid-item.react-grid-placeholder {
|
|
41
|
-
background: ${uikitReactCore.theme.colors.
|
|
41
|
+
background: ${uikitReactCore.theme.colors.primaryDimmed};
|
|
42
42
|
transition-duration: 100ms;
|
|
43
43
|
z-index: 2;
|
|
44
44
|
-webkit-user-select: none;
|
|
@@ -10,7 +10,7 @@ const HvFlowBackground = ({
|
|
|
10
10
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11
11
|
reactflow.Background,
|
|
12
12
|
{
|
|
13
|
-
color: uikitStyles.getColor(color, uikitStyles.theme.colors.
|
|
13
|
+
color: uikitStyles.getColor(color, uikitStyles.theme.colors.textSubtle),
|
|
14
14
|
gap: 16,
|
|
15
15
|
...others
|
|
16
16
|
}
|
|
@@ -9,7 +9,7 @@ const { staticClasses, useClasses } = uikitReactCore.createClasses("HvFlow", {
|
|
|
9
9
|
root: {
|
|
10
10
|
height: "100%",
|
|
11
11
|
[`& .selected > .${BaseNode_styles.staticClasses.root}`]: {
|
|
12
|
-
border: `1px solid ${uikitReactCore.theme.colors.
|
|
12
|
+
border: `1px solid ${uikitReactCore.theme.colors.textDisabled}`,
|
|
13
13
|
borderRadius: uikitReactCore.theme.radii.round,
|
|
14
14
|
boxSizing: "border-box"
|
|
15
15
|
}
|
|
@@ -5,10 +5,10 @@ const reactflow = require("reactflow");
|
|
|
5
5
|
const uikitStyles = require("@hitachivantara/uikit-styles");
|
|
6
6
|
const Minimap_styles = require("./Minimap.styles.cjs");
|
|
7
7
|
const HvFlowMinimap = ({
|
|
8
|
-
nodeColor = "
|
|
9
|
-
maskColor = "
|
|
10
|
-
maskStrokeColor = "
|
|
11
|
-
nodeStrokeColor = "
|
|
8
|
+
nodeColor = "border",
|
|
9
|
+
maskColor = "borderSubtle",
|
|
10
|
+
maskStrokeColor = "borderSubtle",
|
|
11
|
+
nodeStrokeColor = "border",
|
|
12
12
|
classes: classesProp,
|
|
13
13
|
className,
|
|
14
14
|
...others
|
|
@@ -18,10 +18,10 @@ const HvFlowMinimap = ({
|
|
|
18
18
|
reactflow.MiniMap,
|
|
19
19
|
{
|
|
20
20
|
className: cx(classes.root, className),
|
|
21
|
-
nodeColor: typeof nodeColor === "string" ? uikitStyles.getColor(nodeColor, "
|
|
22
|
-
nodeStrokeColor: typeof nodeStrokeColor === "string" ? uikitStyles.getColor(nodeStrokeColor, "
|
|
23
|
-
maskColor: uikitStyles.getColor(maskColor, "
|
|
24
|
-
maskStrokeColor: uikitStyles.getColor(maskStrokeColor, "
|
|
21
|
+
nodeColor: typeof nodeColor === "string" ? uikitStyles.getColor(nodeColor, "border") : nodeColor,
|
|
22
|
+
nodeStrokeColor: typeof nodeStrokeColor === "string" ? uikitStyles.getColor(nodeStrokeColor, "border") : nodeStrokeColor,
|
|
23
|
+
maskColor: uikitStyles.getColor(maskColor, "borderSubtle"),
|
|
24
|
+
maskStrokeColor: uikitStyles.getColor(maskStrokeColor, "borderSubtle"),
|
|
25
25
|
...others
|
|
26
26
|
}
|
|
27
27
|
);
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const uikitReactCore = require("@hitachivantara/uikit-react-core");
|
|
4
4
|
const { staticClasses, useClasses } = uikitReactCore.createClasses("HvFlowMinimap", {
|
|
5
5
|
root: {
|
|
6
|
-
"&.react-flow__minimap": { backgroundColor: uikitReactCore.theme.colors.
|
|
6
|
+
"&.react-flow__minimap": { backgroundColor: uikitReactCore.theme.colors.bgPage }
|
|
7
7
|
}
|
|
8
8
|
});
|
|
9
9
|
exports.staticClasses = staticClasses;
|
|
@@ -4,7 +4,7 @@ const uikitReactCore = require("@hitachivantara/uikit-react-core");
|
|
|
4
4
|
const { staticClasses, useClasses } = uikitReactCore.createClasses("HvFlowBaseNode", {
|
|
5
5
|
root: {
|
|
6
6
|
borderRadius: uikitReactCore.theme.radii.round,
|
|
7
|
-
backgroundColor: uikitReactCore.theme.colors.
|
|
7
|
+
backgroundColor: uikitReactCore.theme.colors.bgContainer,
|
|
8
8
|
boxShadow: uikitReactCore.theme.colors.shadow,
|
|
9
9
|
minWidth: "250px",
|
|
10
10
|
border: "1px solid var(--node-color)"
|
|
@@ -32,17 +32,17 @@ const { staticClasses, useClasses } = uikitReactCore.createClasses("HvFlowBaseNo
|
|
|
32
32
|
display: "flex",
|
|
33
33
|
justifyContent: "center",
|
|
34
34
|
padding: uikitReactCore.theme.space.xs,
|
|
35
|
-
backgroundColor: uikitReactCore.theme.colors.
|
|
36
|
-
borderTop: `1px solid ${uikitReactCore.theme.colors.
|
|
37
|
-
borderBottom: `1px solid ${uikitReactCore.theme.colors.
|
|
35
|
+
backgroundColor: uikitReactCore.theme.colors.bgPage,
|
|
36
|
+
borderTop: `1px solid ${uikitReactCore.theme.colors.borderSubtle}`,
|
|
37
|
+
borderBottom: `1px solid ${uikitReactCore.theme.colors.borderSubtle}`
|
|
38
38
|
},
|
|
39
39
|
outputsTitleContainer: {
|
|
40
40
|
display: "flex",
|
|
41
41
|
justifyContent: "center",
|
|
42
42
|
padding: uikitReactCore.theme.space.xs,
|
|
43
|
-
backgroundColor: uikitReactCore.theme.colors.
|
|
44
|
-
borderTop: `1px solid ${uikitReactCore.theme.colors.
|
|
45
|
-
borderBottom: `1px solid ${uikitReactCore.theme.colors.
|
|
43
|
+
backgroundColor: uikitReactCore.theme.colors.bgPage,
|
|
44
|
+
borderTop: `1px solid ${uikitReactCore.theme.colors.borderSubtle}`,
|
|
45
|
+
borderBottom: `1px solid ${uikitReactCore.theme.colors.borderSubtle}`
|
|
46
46
|
},
|
|
47
47
|
contentContainer: {},
|
|
48
48
|
inputsContainer: {
|
|
@@ -86,10 +86,10 @@ const { staticClasses, useClasses } = uikitReactCore.createClasses("HvFlowBaseNo
|
|
|
86
86
|
handle: {
|
|
87
87
|
zIndex: uikitReactCore.theme.zIndices.overlay,
|
|
88
88
|
marginLeft: 2,
|
|
89
|
-
backgroundColor: uikitReactCore.theme.colors.
|
|
89
|
+
backgroundColor: uikitReactCore.theme.colors.bgContainer,
|
|
90
90
|
height: 10,
|
|
91
91
|
width: 10,
|
|
92
|
-
border: `1px solid ${uikitReactCore.theme.colors.
|
|
92
|
+
border: `1px solid ${uikitReactCore.theme.colors.textDisabled}`,
|
|
93
93
|
"&.react-flow__handle-left": {
|
|
94
94
|
left: -23
|
|
95
95
|
},
|
|
@@ -97,21 +97,21 @@ const { staticClasses, useClasses } = uikitReactCore.createClasses("HvFlowBaseNo
|
|
|
97
97
|
right: -21
|
|
98
98
|
},
|
|
99
99
|
"&.react-flow__handle-connecting": {
|
|
100
|
-
backgroundColor: uikitReactCore.theme.colors.
|
|
100
|
+
backgroundColor: uikitReactCore.theme.colors.negativeDimmed
|
|
101
101
|
},
|
|
102
102
|
"&.react-flow__handle-valid": {
|
|
103
|
-
backgroundColor: uikitReactCore.theme.colors.
|
|
103
|
+
backgroundColor: uikitReactCore.theme.colors.positiveDimmed
|
|
104
104
|
},
|
|
105
105
|
"::before": {
|
|
106
106
|
fontSize: 14,
|
|
107
|
-
color: uikitReactCore.theme.colors.
|
|
107
|
+
color: uikitReactCore.theme.colors.textDisabled,
|
|
108
108
|
content: '"+"',
|
|
109
109
|
marginTop: -7,
|
|
110
110
|
position: "absolute"
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
113
|
handleConnected: {
|
|
114
|
-
backgroundColor: uikitReactCore.theme.colors.
|
|
114
|
+
backgroundColor: uikitReactCore.theme.colors.textDisabled,
|
|
115
115
|
width: 8,
|
|
116
116
|
height: 8,
|
|
117
117
|
"::before": {
|
|
@@ -124,11 +124,11 @@ const { staticClasses, useClasses } = uikitReactCore.createClasses("HvFlowBaseNo
|
|
|
124
124
|
height: 10,
|
|
125
125
|
margin: uikitReactCore.theme.spacing(0, uikitReactCore.theme.space.xs),
|
|
126
126
|
borderRadius: uikitReactCore.theme.radii.full,
|
|
127
|
-
backgroundColor: uikitReactCore.theme.colors.
|
|
127
|
+
backgroundColor: uikitReactCore.theme.colors.negativeDimmed
|
|
128
128
|
},
|
|
129
129
|
footerContainer: {
|
|
130
130
|
padding: uikitReactCore.theme.space.sm,
|
|
131
|
-
borderTop: `1px solid ${uikitReactCore.theme.colors.
|
|
131
|
+
borderTop: `1px solid ${uikitReactCore.theme.colors.borderSubtle}`
|
|
132
132
|
}
|
|
133
133
|
});
|
|
134
134
|
exports.staticClasses = staticClasses;
|
|
@@ -29,7 +29,7 @@ const { staticClasses, useClasses } = uikitReactCore.createClasses("HvFlowNode",
|
|
|
29
29
|
gap: 0
|
|
30
30
|
},
|
|
31
31
|
paramsContainer: {
|
|
32
|
-
borderTop: `1px solid ${uikitReactCore.theme.colors.
|
|
32
|
+
borderTop: `1px solid ${uikitReactCore.theme.colors.border}`,
|
|
33
33
|
display: "flex",
|
|
34
34
|
flexDirection: "column",
|
|
35
35
|
gap: uikitReactCore.theme.space.xs,
|
|
@@ -8,7 +8,7 @@ const { staticClasses, useClasses } = uikitReactCore.createClasses("HvFlowSideba
|
|
|
8
8
|
padding: uikitReactCore.theme.spacing("sm", "lg", "xs", "sm")
|
|
9
9
|
},
|
|
10
10
|
contentContainer: { padding: uikitReactCore.theme.spacing(0, "lg", "sm", "lg") },
|
|
11
|
-
description: { color: uikitReactCore.theme.colors.
|
|
11
|
+
description: { color: uikitReactCore.theme.colors.textSubtle },
|
|
12
12
|
searchRoot: {
|
|
13
13
|
paddingTop: uikitReactCore.theme.space.sm,
|
|
14
14
|
paddingBottom: uikitReactCore.theme.space.sm
|
|
@@ -8,7 +8,7 @@ const { staticClasses, useClasses } = uikitReactCore.createClasses(
|
|
|
8
8
|
display: "flex",
|
|
9
9
|
alignItems: "center",
|
|
10
10
|
justifyContent: "space-between",
|
|
11
|
-
border: `1px solid ${uikitReactCore.theme.colors.
|
|
11
|
+
border: `1px solid ${uikitReactCore.theme.colors.border}`,
|
|
12
12
|
padding: uikitReactCore.theme.spacing(0, 0, 0, "sm"),
|
|
13
13
|
cursor: "pointer",
|
|
14
14
|
boxShadow: `0 1px 0 ${uikitReactCore.theme.colors.shad1}`,
|
|
@@ -16,7 +16,7 @@ const { staticClasses, useClasses } = uikitReactCore.createClasses(
|
|
|
16
16
|
...uikitReactCore.outlineStyles
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
|
-
dragging: { borderColor: uikitReactCore.theme.colors.
|
|
19
|
+
dragging: { borderColor: uikitReactCore.theme.colors.primaryStrong }
|
|
20
20
|
}
|
|
21
21
|
);
|
|
22
22
|
exports.staticClasses = staticClasses;
|
package/dist/cjs/Flow/base.cjs
CHANGED
|
@@ -45,7 +45,7 @@ const flowStyles = react.css`
|
|
|
45
45
|
}
|
|
46
46
|
.react-flow__edge-path,
|
|
47
47
|
.react-flow__connection-path {
|
|
48
|
-
stroke: ${uikitReactCore.theme.colors.
|
|
48
|
+
stroke: ${uikitReactCore.theme.colors.text};
|
|
49
49
|
stroke-width: 1;
|
|
50
50
|
fill: none;
|
|
51
51
|
}
|
|
@@ -235,13 +235,13 @@ const flowStyles = react.css`
|
|
|
235
235
|
padding: ${uikitReactCore.theme.space.sm};
|
|
236
236
|
border-radius: ${uikitReactCore.theme.radii.round};
|
|
237
237
|
width: 150px;
|
|
238
|
-
color: ${uikitReactCore.theme.colors.
|
|
238
|
+
color: ${uikitReactCore.theme.colors.text};
|
|
239
239
|
text-align: center;
|
|
240
240
|
border: 1px solid ${uikitReactCore.theme.colors.negative};
|
|
241
|
-
background-color: ${uikitReactCore.theme.colors.
|
|
241
|
+
background-color: ${uikitReactCore.theme.colors.negativeDimmed};
|
|
242
242
|
}
|
|
243
243
|
.react-flow__node-group {
|
|
244
|
-
color: ${uikitReactCore.theme.colors.
|
|
244
|
+
color: ${uikitReactCore.theme.colors.text};
|
|
245
245
|
text-align: center;
|
|
246
246
|
}
|
|
247
247
|
.react-flow__node-default::before {
|
|
@@ -373,7 +373,7 @@ const flowStyles = react.css`
|
|
|
373
373
|
}
|
|
374
374
|
/* line styles */
|
|
375
375
|
.react-flow__resize-control.line {
|
|
376
|
-
border-color: ${uikitReactCore.theme.colors.
|
|
376
|
+
border-color: ${uikitReactCore.theme.colors.primaryStrong};
|
|
377
377
|
border-width: 0;
|
|
378
378
|
border-style: dashed;
|
|
379
379
|
}
|
|
@@ -43,8 +43,8 @@ const HvStep = ({
|
|
|
43
43
|
xl: squareL + 24
|
|
44
44
|
}[size];
|
|
45
45
|
const backgroundColor = utils.getColor(state);
|
|
46
|
-
const color = state === "Pending" ? "
|
|
47
|
-
const status = state === "Current" ? "
|
|
46
|
+
const color = state === "Pending" ? "bgPage" : utils.getSemantic(state);
|
|
47
|
+
const status = state === "Current" ? "textDisabled" : void 0;
|
|
48
48
|
const IconComponent = iconStateObject[state];
|
|
49
49
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
50
50
|
uikitReactCore.HvButtonBase,
|
|
@@ -5,17 +5,17 @@ const getColor = (state) => ({
|
|
|
5
5
|
Pending: uikitStyles.theme.colors.warning ?? "warning",
|
|
6
6
|
Failed: uikitStyles.theme.colors.negative ?? "negative",
|
|
7
7
|
Completed: uikitStyles.theme.colors.positive ?? "positive",
|
|
8
|
-
Current: uikitStyles.theme.colors.
|
|
9
|
-
Disabled: uikitStyles.theme.colors.
|
|
10
|
-
Enabled: uikitStyles.theme.colors.
|
|
8
|
+
Current: uikitStyles.theme.colors.text ?? "text",
|
|
9
|
+
Disabled: uikitStyles.theme.colors.textDisabled ?? "textDisabled",
|
|
10
|
+
Enabled: uikitStyles.theme.colors.text ?? "text"
|
|
11
11
|
})[state];
|
|
12
12
|
const getSemantic = (state) => ({
|
|
13
13
|
Pending: "warning",
|
|
14
14
|
Failed: "negative",
|
|
15
15
|
Completed: "positive",
|
|
16
|
-
Current: "
|
|
17
|
-
Disabled: "
|
|
18
|
-
Enabled: "
|
|
16
|
+
Current: "text",
|
|
17
|
+
Disabled: "textDisabled",
|
|
18
|
+
Enabled: "text"
|
|
19
19
|
})[state];
|
|
20
20
|
const EXTRA_SMALL = { container: 32, avatar: 24 };
|
|
21
21
|
const SMALL = { container: 40, avatar: 32 };
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const uikitReactCore = require("@hitachivantara/uikit-react-core");
|
|
5
|
+
const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
|
|
5
6
|
const utils = require("../utils.cjs");
|
|
6
7
|
const Dot_styles = require("./Dot.styles.cjs");
|
|
7
8
|
const HvDot = ({
|
|
@@ -11,34 +12,30 @@ const HvDot = ({
|
|
|
11
12
|
title,
|
|
12
13
|
size = "sm",
|
|
13
14
|
onClick,
|
|
14
|
-
disabled
|
|
15
|
+
disabled: disabledProp
|
|
15
16
|
}) => {
|
|
16
|
-
const { classes, cx
|
|
17
|
+
const { classes, cx } = Dot_styles.useClasses(classesProp);
|
|
17
18
|
const dotSize = utils.dotSizes[size] * (state === "Current" ? 1.5 : 1);
|
|
19
|
+
const disabled = disabledProp ?? ["Current", "Disabled"].includes(state);
|
|
18
20
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
19
21
|
uikitReactCore.HvButton,
|
|
20
22
|
{
|
|
23
|
+
style: uikitReactUtils.mergeStyles(void 0, {
|
|
24
|
+
"--dotColor": utils.getColor(state),
|
|
25
|
+
"--dotSize": `${dotSize}px`
|
|
26
|
+
}),
|
|
21
27
|
className: cx(
|
|
22
|
-
css({
|
|
23
|
-
backgroundColor: utils.getColor(state),
|
|
24
|
-
width: dotSize,
|
|
25
|
-
height: dotSize,
|
|
26
|
-
"&:hover, &:disabled": {
|
|
27
|
-
backgroundColor: utils.getColor(state)
|
|
28
|
-
}
|
|
29
|
-
}),
|
|
30
28
|
classes.root,
|
|
31
29
|
{
|
|
32
30
|
[classes.active]: state === "Current",
|
|
33
|
-
[classes.ghostDisabled]: disabled
|
|
31
|
+
[classes.ghostDisabled]: disabled
|
|
34
32
|
},
|
|
35
33
|
className
|
|
36
34
|
),
|
|
37
|
-
"aria-label":
|
|
35
|
+
"aria-label": title,
|
|
38
36
|
icon: true,
|
|
39
|
-
disabled
|
|
40
|
-
onClick
|
|
41
|
-
children: []
|
|
37
|
+
disabled,
|
|
38
|
+
onClick
|
|
42
39
|
}
|
|
43
40
|
);
|
|
44
41
|
};
|
|
@@ -2,7 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const uikitReactCore = require("@hitachivantara/uikit-react-core");
|
|
4
4
|
const { staticClasses, useClasses } = uikitReactCore.createClasses("HvDot", {
|
|
5
|
-
root: {
|
|
5
|
+
root: {
|
|
6
|
+
borderRadius: uikitReactCore.theme.radii.full,
|
|
7
|
+
zIndex: 1,
|
|
8
|
+
width: "var(--dotSize)",
|
|
9
|
+
height: "var(--dotSize)",
|
|
10
|
+
"&,:hover,:disabled": {
|
|
11
|
+
backgroundColor: "var(--dotColor)"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
6
14
|
active: {},
|
|
7
15
|
ghostDisabled: {}
|
|
8
16
|
});
|
|
@@ -8,6 +8,6 @@ const dotSizes = {
|
|
|
8
8
|
lg: 14,
|
|
9
9
|
xl: 16
|
|
10
10
|
};
|
|
11
|
-
const getColor = (state) => state === "Disabled" ? uikitStyles.theme.colors.
|
|
11
|
+
const getColor = (state) => state === "Disabled" ? uikitStyles.theme.colors.textDisabled : uikitStyles.theme.colors.text;
|
|
12
12
|
exports.dotSizes = dotSizes;
|
|
13
13
|
exports.getColor = getColor;
|
|
@@ -28,7 +28,7 @@ const { staticClasses, useClasses } = uikitReactCore.createClasses("HvWizardCont
|
|
|
28
28
|
top: 0,
|
|
29
29
|
minWidth: 280,
|
|
30
30
|
boxShadow: uikitStyles.theme.colors.shadow,
|
|
31
|
-
backgroundColor: uikitStyles.theme.colors.
|
|
31
|
+
backgroundColor: uikitStyles.theme.colors.bgContainer,
|
|
32
32
|
transition: "transform 0.3s",
|
|
33
33
|
transitionTimingFunction: "ease-in-out",
|
|
34
34
|
overflowY: "scroll"
|
|
@@ -55,6 +55,7 @@ const HvWizardTitle = ({
|
|
|
55
55
|
classes.messageContainer,
|
|
56
56
|
classes.titleContainer
|
|
57
57
|
),
|
|
58
|
+
showIcon: false,
|
|
58
59
|
children: [
|
|
59
60
|
title && /* @__PURE__ */ jsxRuntime.jsx(uikitReactCore.HvTypography, { variant: "title3", component: "div", children: title }),
|
|
60
61
|
!!steps.length && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4,7 +4,7 @@ const uikitReactCore = require("@hitachivantara/uikit-react-core");
|
|
|
4
4
|
const uikitStyles = require("@hitachivantara/uikit-styles");
|
|
5
5
|
const { staticClasses, useClasses } = uikitReactCore.createClasses("HvWizardTitle", {
|
|
6
6
|
root: {
|
|
7
|
-
backgroundColor: uikitStyles.theme.colors.
|
|
7
|
+
backgroundColor: uikitStyles.theme.colors.bgPage,
|
|
8
8
|
justifyContent: "space-between",
|
|
9
9
|
paddingRight: uikitStyles.theme.space.sm
|
|
10
10
|
},
|
package/dist/esm/Blade/Blade.js
CHANGED
|
@@ -79,8 +79,8 @@ const HvBlade = (props) => {
|
|
|
79
79
|
component: "div",
|
|
80
80
|
role: "button",
|
|
81
81
|
className: cx(classes.button, {
|
|
82
|
-
[classes.
|
|
83
|
-
[classes.
|
|
82
|
+
[classes.textOnlyLabel]: typeof buttonLabel === "string",
|
|
83
|
+
[classes.disabled]: disabled
|
|
84
84
|
}),
|
|
85
85
|
style: { flexShrink: headingLevel === void 0 ? 0 : void 0 },
|
|
86
86
|
disabled,
|
|
@@ -10,10 +10,10 @@ const { staticClasses, useClasses } = createClasses("HvBlade", {
|
|
|
10
10
|
},
|
|
11
11
|
transition: "flex-grow 600ms linear",
|
|
12
12
|
zIndex: 0,
|
|
13
|
-
color: theme.colors.
|
|
13
|
+
color: theme.colors.text,
|
|
14
14
|
backgroundColor: theme.colors.atmo1,
|
|
15
15
|
borderRadius: theme.radii.round,
|
|
16
|
-
border: `1px solid ${theme.colors.
|
|
16
|
+
border: `1px solid ${theme.colors.border}`
|
|
17
17
|
},
|
|
18
18
|
expanded: {},
|
|
19
19
|
fullWidth: {
|
|
@@ -31,10 +31,10 @@ const { staticClasses, useClasses } = createClasses("HvBlade", {
|
|
|
31
31
|
},
|
|
32
32
|
"&:focus": {
|
|
33
33
|
outline: "none",
|
|
34
|
-
background: theme.colors.
|
|
34
|
+
background: theme.colors.bgHover
|
|
35
35
|
},
|
|
36
36
|
"&:hover": {
|
|
37
|
-
background: theme.colors.
|
|
37
|
+
background: theme.colors.bgHover
|
|
38
38
|
},
|
|
39
39
|
"&:focus-visible": {
|
|
40
40
|
...outlineStyles,
|
|
@@ -56,7 +56,7 @@ const { staticClasses, useClasses } = createClasses("HvBlade", {
|
|
|
56
56
|
},
|
|
57
57
|
disabled: {
|
|
58
58
|
cursor: "not-allowed",
|
|
59
|
-
color: theme.colors.
|
|
59
|
+
color: theme.colors.textDisabled,
|
|
60
60
|
"&:focus": {
|
|
61
61
|
background: "none"
|
|
62
62
|
},
|
|
@@ -7,7 +7,7 @@ const { staticClasses, useClasses } = createClasses("HvFlow", {
|
|
|
7
7
|
root: {
|
|
8
8
|
height: "100%",
|
|
9
9
|
[`& .selected > .${staticClasses$1.root}`]: {
|
|
10
|
-
border: `1px solid ${theme.colors.
|
|
10
|
+
border: `1px solid ${theme.colors.textDisabled}`,
|
|
11
11
|
borderRadius: theme.radii.round,
|
|
12
12
|
boxSizing: "border-box"
|
|
13
13
|
}
|
|
@@ -4,10 +4,10 @@ import { getColor } from "@hitachivantara/uikit-styles";
|
|
|
4
4
|
import { useClasses } from "./Minimap.styles.js";
|
|
5
5
|
import { staticClasses } from "./Minimap.styles.js";
|
|
6
6
|
const HvFlowMinimap = ({
|
|
7
|
-
nodeColor = "
|
|
8
|
-
maskColor = "
|
|
9
|
-
maskStrokeColor = "
|
|
10
|
-
nodeStrokeColor = "
|
|
7
|
+
nodeColor = "border",
|
|
8
|
+
maskColor = "borderSubtle",
|
|
9
|
+
maskStrokeColor = "borderSubtle",
|
|
10
|
+
nodeStrokeColor = "border",
|
|
11
11
|
classes: classesProp,
|
|
12
12
|
className,
|
|
13
13
|
...others
|
|
@@ -17,10 +17,10 @@ const HvFlowMinimap = ({
|
|
|
17
17
|
MiniMap,
|
|
18
18
|
{
|
|
19
19
|
className: cx(classes.root, className),
|
|
20
|
-
nodeColor: typeof nodeColor === "string" ? getColor(nodeColor, "
|
|
21
|
-
nodeStrokeColor: typeof nodeStrokeColor === "string" ? getColor(nodeStrokeColor, "
|
|
22
|
-
maskColor: getColor(maskColor, "
|
|
23
|
-
maskStrokeColor: getColor(maskStrokeColor, "
|
|
20
|
+
nodeColor: typeof nodeColor === "string" ? getColor(nodeColor, "border") : nodeColor,
|
|
21
|
+
nodeStrokeColor: typeof nodeStrokeColor === "string" ? getColor(nodeStrokeColor, "border") : nodeStrokeColor,
|
|
22
|
+
maskColor: getColor(maskColor, "borderSubtle"),
|
|
23
|
+
maskStrokeColor: getColor(maskStrokeColor, "borderSubtle"),
|
|
24
24
|
...others
|
|
25
25
|
}
|
|
26
26
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createClasses, theme } from "@hitachivantara/uikit-react-core";
|
|
2
2
|
const { staticClasses, useClasses } = createClasses("HvFlowMinimap", {
|
|
3
3
|
root: {
|
|
4
|
-
"&.react-flow__minimap": { backgroundColor: theme.colors.
|
|
4
|
+
"&.react-flow__minimap": { backgroundColor: theme.colors.bgPage }
|
|
5
5
|
}
|
|
6
6
|
});
|
|
7
7
|
export {
|
|
@@ -2,7 +2,7 @@ import { createClasses, theme } from "@hitachivantara/uikit-react-core";
|
|
|
2
2
|
const { staticClasses, useClasses } = createClasses("HvFlowBaseNode", {
|
|
3
3
|
root: {
|
|
4
4
|
borderRadius: theme.radii.round,
|
|
5
|
-
backgroundColor: theme.colors.
|
|
5
|
+
backgroundColor: theme.colors.bgContainer,
|
|
6
6
|
boxShadow: theme.colors.shadow,
|
|
7
7
|
minWidth: "250px",
|
|
8
8
|
border: "1px solid var(--node-color)"
|
|
@@ -30,17 +30,17 @@ const { staticClasses, useClasses } = createClasses("HvFlowBaseNode", {
|
|
|
30
30
|
display: "flex",
|
|
31
31
|
justifyContent: "center",
|
|
32
32
|
padding: theme.space.xs,
|
|
33
|
-
backgroundColor: theme.colors.
|
|
34
|
-
borderTop: `1px solid ${theme.colors.
|
|
35
|
-
borderBottom: `1px solid ${theme.colors.
|
|
33
|
+
backgroundColor: theme.colors.bgPage,
|
|
34
|
+
borderTop: `1px solid ${theme.colors.borderSubtle}`,
|
|
35
|
+
borderBottom: `1px solid ${theme.colors.borderSubtle}`
|
|
36
36
|
},
|
|
37
37
|
outputsTitleContainer: {
|
|
38
38
|
display: "flex",
|
|
39
39
|
justifyContent: "center",
|
|
40
40
|
padding: theme.space.xs,
|
|
41
|
-
backgroundColor: theme.colors.
|
|
42
|
-
borderTop: `1px solid ${theme.colors.
|
|
43
|
-
borderBottom: `1px solid ${theme.colors.
|
|
41
|
+
backgroundColor: theme.colors.bgPage,
|
|
42
|
+
borderTop: `1px solid ${theme.colors.borderSubtle}`,
|
|
43
|
+
borderBottom: `1px solid ${theme.colors.borderSubtle}`
|
|
44
44
|
},
|
|
45
45
|
contentContainer: {},
|
|
46
46
|
inputsContainer: {
|
|
@@ -84,10 +84,10 @@ const { staticClasses, useClasses } = createClasses("HvFlowBaseNode", {
|
|
|
84
84
|
handle: {
|
|
85
85
|
zIndex: theme.zIndices.overlay,
|
|
86
86
|
marginLeft: 2,
|
|
87
|
-
backgroundColor: theme.colors.
|
|
87
|
+
backgroundColor: theme.colors.bgContainer,
|
|
88
88
|
height: 10,
|
|
89
89
|
width: 10,
|
|
90
|
-
border: `1px solid ${theme.colors.
|
|
90
|
+
border: `1px solid ${theme.colors.textDisabled}`,
|
|
91
91
|
"&.react-flow__handle-left": {
|
|
92
92
|
left: -23
|
|
93
93
|
},
|
|
@@ -95,21 +95,21 @@ const { staticClasses, useClasses } = createClasses("HvFlowBaseNode", {
|
|
|
95
95
|
right: -21
|
|
96
96
|
},
|
|
97
97
|
"&.react-flow__handle-connecting": {
|
|
98
|
-
backgroundColor: theme.colors.
|
|
98
|
+
backgroundColor: theme.colors.negativeDimmed
|
|
99
99
|
},
|
|
100
100
|
"&.react-flow__handle-valid": {
|
|
101
|
-
backgroundColor: theme.colors.
|
|
101
|
+
backgroundColor: theme.colors.positiveDimmed
|
|
102
102
|
},
|
|
103
103
|
"::before": {
|
|
104
104
|
fontSize: 14,
|
|
105
|
-
color: theme.colors.
|
|
105
|
+
color: theme.colors.textDisabled,
|
|
106
106
|
content: '"+"',
|
|
107
107
|
marginTop: -7,
|
|
108
108
|
position: "absolute"
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
111
|
handleConnected: {
|
|
112
|
-
backgroundColor: theme.colors.
|
|
112
|
+
backgroundColor: theme.colors.textDisabled,
|
|
113
113
|
width: 8,
|
|
114
114
|
height: 8,
|
|
115
115
|
"::before": {
|
|
@@ -122,11 +122,11 @@ const { staticClasses, useClasses } = createClasses("HvFlowBaseNode", {
|
|
|
122
122
|
height: 10,
|
|
123
123
|
margin: theme.spacing(0, theme.space.xs),
|
|
124
124
|
borderRadius: theme.radii.full,
|
|
125
|
-
backgroundColor: theme.colors.
|
|
125
|
+
backgroundColor: theme.colors.negativeDimmed
|
|
126
126
|
},
|
|
127
127
|
footerContainer: {
|
|
128
128
|
padding: theme.space.sm,
|
|
129
|
-
borderTop: `1px solid ${theme.colors.
|
|
129
|
+
borderTop: `1px solid ${theme.colors.borderSubtle}`
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
132
|
export {
|
|
@@ -27,7 +27,7 @@ const { staticClasses, useClasses } = createClasses("HvFlowNode", {
|
|
|
27
27
|
gap: 0
|
|
28
28
|
},
|
|
29
29
|
paramsContainer: {
|
|
30
|
-
borderTop: `1px solid ${theme.colors.
|
|
30
|
+
borderTop: `1px solid ${theme.colors.border}`,
|
|
31
31
|
display: "flex",
|
|
32
32
|
flexDirection: "column",
|
|
33
33
|
gap: theme.space.xs,
|
|
@@ -6,7 +6,7 @@ const { staticClasses, useClasses } = createClasses("HvFlowSidebar", {
|
|
|
6
6
|
padding: theme.spacing("sm", "lg", "xs", "sm")
|
|
7
7
|
},
|
|
8
8
|
contentContainer: { padding: theme.spacing(0, "lg", "sm", "lg") },
|
|
9
|
-
description: { color: theme.colors.
|
|
9
|
+
description: { color: theme.colors.textSubtle },
|
|
10
10
|
searchRoot: {
|
|
11
11
|
paddingTop: theme.space.sm,
|
|
12
12
|
paddingBottom: theme.space.sm
|
|
@@ -6,7 +6,7 @@ const { staticClasses, useClasses } = createClasses(
|
|
|
6
6
|
display: "flex",
|
|
7
7
|
alignItems: "center",
|
|
8
8
|
justifyContent: "space-between",
|
|
9
|
-
border: `1px solid ${theme.colors.
|
|
9
|
+
border: `1px solid ${theme.colors.border}`,
|
|
10
10
|
padding: theme.spacing(0, 0, 0, "sm"),
|
|
11
11
|
cursor: "pointer",
|
|
12
12
|
boxShadow: `0 1px 0 ${theme.colors.shad1}`,
|
|
@@ -14,7 +14,7 @@ const { staticClasses, useClasses } = createClasses(
|
|
|
14
14
|
...outlineStyles
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
|
-
dragging: { borderColor: theme.colors.
|
|
17
|
+
dragging: { borderColor: theme.colors.primaryStrong }
|
|
18
18
|
}
|
|
19
19
|
);
|
|
20
20
|
export {
|
package/dist/esm/Flow/base.js
CHANGED
|
@@ -43,7 +43,7 @@ const flowStyles = css`
|
|
|
43
43
|
}
|
|
44
44
|
.react-flow__edge-path,
|
|
45
45
|
.react-flow__connection-path {
|
|
46
|
-
stroke: ${theme.colors.
|
|
46
|
+
stroke: ${theme.colors.text};
|
|
47
47
|
stroke-width: 1;
|
|
48
48
|
fill: none;
|
|
49
49
|
}
|
|
@@ -233,13 +233,13 @@ const flowStyles = css`
|
|
|
233
233
|
padding: ${theme.space.sm};
|
|
234
234
|
border-radius: ${theme.radii.round};
|
|
235
235
|
width: 150px;
|
|
236
|
-
color: ${theme.colors.
|
|
236
|
+
color: ${theme.colors.text};
|
|
237
237
|
text-align: center;
|
|
238
238
|
border: 1px solid ${theme.colors.negative};
|
|
239
|
-
background-color: ${theme.colors.
|
|
239
|
+
background-color: ${theme.colors.negativeDimmed};
|
|
240
240
|
}
|
|
241
241
|
.react-flow__node-group {
|
|
242
|
-
color: ${theme.colors.
|
|
242
|
+
color: ${theme.colors.text};
|
|
243
243
|
text-align: center;
|
|
244
244
|
}
|
|
245
245
|
.react-flow__node-default::before {
|
|
@@ -371,7 +371,7 @@ const flowStyles = css`
|
|
|
371
371
|
}
|
|
372
372
|
/* line styles */
|
|
373
373
|
.react-flow__resize-control.line {
|
|
374
|
-
border-color: ${theme.colors.
|
|
374
|
+
border-color: ${theme.colors.primaryStrong};
|
|
375
375
|
border-width: 0;
|
|
376
376
|
border-style: dashed;
|
|
377
377
|
}
|
|
@@ -41,8 +41,8 @@ const HvStep = ({
|
|
|
41
41
|
xl: squareL + 24
|
|
42
42
|
}[size];
|
|
43
43
|
const backgroundColor = getColor(state);
|
|
44
|
-
const color = state === "Pending" ? "
|
|
45
|
-
const status = state === "Current" ? "
|
|
44
|
+
const color = state === "Pending" ? "bgPage" : getSemantic(state);
|
|
45
|
+
const status = state === "Current" ? "textDisabled" : void 0;
|
|
46
46
|
const IconComponent = iconStateObject[state];
|
|
47
47
|
return /* @__PURE__ */ jsx(
|
|
48
48
|
HvButtonBase,
|
|
@@ -3,17 +3,17 @@ const getColor = (state) => ({
|
|
|
3
3
|
Pending: theme.colors.warning ?? "warning",
|
|
4
4
|
Failed: theme.colors.negative ?? "negative",
|
|
5
5
|
Completed: theme.colors.positive ?? "positive",
|
|
6
|
-
Current: theme.colors.
|
|
7
|
-
Disabled: theme.colors.
|
|
8
|
-
Enabled: theme.colors.
|
|
6
|
+
Current: theme.colors.text ?? "text",
|
|
7
|
+
Disabled: theme.colors.textDisabled ?? "textDisabled",
|
|
8
|
+
Enabled: theme.colors.text ?? "text"
|
|
9
9
|
})[state];
|
|
10
10
|
const getSemantic = (state) => ({
|
|
11
11
|
Pending: "warning",
|
|
12
12
|
Failed: "negative",
|
|
13
13
|
Completed: "positive",
|
|
14
|
-
Current: "
|
|
15
|
-
Disabled: "
|
|
16
|
-
Enabled: "
|
|
14
|
+
Current: "text",
|
|
15
|
+
Disabled: "textDisabled",
|
|
16
|
+
Enabled: "text"
|
|
17
17
|
})[state];
|
|
18
18
|
const EXTRA_SMALL = { container: 32, avatar: 24 };
|
|
19
19
|
const SMALL = { container: 40, avatar: 32 };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { HvButton } from "@hitachivantara/uikit-react-core";
|
|
3
|
+
import { mergeStyles } from "@hitachivantara/uikit-react-utils";
|
|
3
4
|
import { getColor, dotSizes } from "../utils.js";
|
|
4
5
|
import { useClasses } from "./Dot.styles.js";
|
|
5
6
|
import { staticClasses } from "./Dot.styles.js";
|
|
@@ -10,34 +11,30 @@ const HvDot = ({
|
|
|
10
11
|
title,
|
|
11
12
|
size = "sm",
|
|
12
13
|
onClick,
|
|
13
|
-
disabled
|
|
14
|
+
disabled: disabledProp
|
|
14
15
|
}) => {
|
|
15
|
-
const { classes, cx
|
|
16
|
+
const { classes, cx } = useClasses(classesProp);
|
|
16
17
|
const dotSize = dotSizes[size] * (state === "Current" ? 1.5 : 1);
|
|
18
|
+
const disabled = disabledProp ?? ["Current", "Disabled"].includes(state);
|
|
17
19
|
return /* @__PURE__ */ jsx(
|
|
18
20
|
HvButton,
|
|
19
21
|
{
|
|
22
|
+
style: mergeStyles(void 0, {
|
|
23
|
+
"--dotColor": getColor(state),
|
|
24
|
+
"--dotSize": `${dotSize}px`
|
|
25
|
+
}),
|
|
20
26
|
className: cx(
|
|
21
|
-
css({
|
|
22
|
-
backgroundColor: getColor(state),
|
|
23
|
-
width: dotSize,
|
|
24
|
-
height: dotSize,
|
|
25
|
-
"&:hover, &:disabled": {
|
|
26
|
-
backgroundColor: getColor(state)
|
|
27
|
-
}
|
|
28
|
-
}),
|
|
29
27
|
classes.root,
|
|
30
28
|
{
|
|
31
29
|
[classes.active]: state === "Current",
|
|
32
|
-
[classes.ghostDisabled]: disabled
|
|
30
|
+
[classes.ghostDisabled]: disabled
|
|
33
31
|
},
|
|
34
32
|
className
|
|
35
33
|
),
|
|
36
|
-
"aria-label":
|
|
34
|
+
"aria-label": title,
|
|
37
35
|
icon: true,
|
|
38
|
-
disabled
|
|
39
|
-
onClick
|
|
40
|
-
children: []
|
|
36
|
+
disabled,
|
|
37
|
+
onClick
|
|
41
38
|
}
|
|
42
39
|
);
|
|
43
40
|
};
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { createClasses, theme } from "@hitachivantara/uikit-react-core";
|
|
2
2
|
const { staticClasses, useClasses } = createClasses("HvDot", {
|
|
3
|
-
root: {
|
|
3
|
+
root: {
|
|
4
|
+
borderRadius: theme.radii.full,
|
|
5
|
+
zIndex: 1,
|
|
6
|
+
width: "var(--dotSize)",
|
|
7
|
+
height: "var(--dotSize)",
|
|
8
|
+
"&,:hover,:disabled": {
|
|
9
|
+
backgroundColor: "var(--dotColor)"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
4
12
|
active: {},
|
|
5
13
|
ghostDisabled: {}
|
|
6
14
|
});
|
|
@@ -6,7 +6,7 @@ const dotSizes = {
|
|
|
6
6
|
lg: 14,
|
|
7
7
|
xl: 16
|
|
8
8
|
};
|
|
9
|
-
const getColor = (state) => state === "Disabled" ? theme.colors.
|
|
9
|
+
const getColor = (state) => state === "Disabled" ? theme.colors.textDisabled : theme.colors.text;
|
|
10
10
|
export {
|
|
11
11
|
dotSizes,
|
|
12
12
|
getColor
|
|
@@ -26,7 +26,7 @@ const { staticClasses, useClasses } = createClasses("HvWizardContent", {
|
|
|
26
26
|
top: 0,
|
|
27
27
|
minWidth: 280,
|
|
28
28
|
boxShadow: theme.colors.shadow,
|
|
29
|
-
backgroundColor: theme.colors.
|
|
29
|
+
backgroundColor: theme.colors.bgContainer,
|
|
30
30
|
transition: "transform 0.3s",
|
|
31
31
|
transitionTimingFunction: "ease-in-out",
|
|
32
32
|
overflowY: "scroll"
|
|
@@ -54,6 +54,7 @@ const HvWizardTitle = ({
|
|
|
54
54
|
classes.messageContainer,
|
|
55
55
|
classes.titleContainer
|
|
56
56
|
),
|
|
57
|
+
showIcon: false,
|
|
57
58
|
children: [
|
|
58
59
|
title && /* @__PURE__ */ jsx(HvTypography, { variant: "title3", component: "div", children: title }),
|
|
59
60
|
!!steps.length && /* @__PURE__ */ jsx(
|
|
@@ -2,7 +2,7 @@ import { createClasses } from "@hitachivantara/uikit-react-core";
|
|
|
2
2
|
import { theme } from "@hitachivantara/uikit-styles";
|
|
3
3
|
const { staticClasses, useClasses } = createClasses("HvWizardTitle", {
|
|
4
4
|
root: {
|
|
5
|
-
backgroundColor: theme.colors.
|
|
5
|
+
backgroundColor: theme.colors.bgPage,
|
|
6
6
|
justifyContent: "space-between",
|
|
7
7
|
paddingRight: theme.space.sm
|
|
8
8
|
},
|
package/dist/types/index.d.ts
CHANGED
|
@@ -496,13 +496,13 @@ export declare const HvFlowMinimap: ({ nodeColor, maskColor, maskStrokeColor, no
|
|
|
496
496
|
export declare type HvFlowMinimapClasses = ExtractNames<typeof useClasses_5>;
|
|
497
497
|
|
|
498
498
|
export declare interface HvFlowMinimapProps<NodeData = any> extends Omit<MiniMapProps<NodeData>, "nodeColor" | "nodeStrokeColor" | "maskColor" | "maskStrokeColor"> {
|
|
499
|
-
/** Node color.
|
|
499
|
+
/** Node color. */
|
|
500
500
|
nodeColor?: HvColorAny | GetMiniMapNodeAttribute<NodeData>;
|
|
501
|
-
/** Node stroke color.
|
|
501
|
+
/** Node stroke color. */
|
|
502
502
|
nodeStrokeColor?: HvColorAny | GetMiniMapNodeAttribute<NodeData>;
|
|
503
|
-
/** Mask color.
|
|
503
|
+
/** Mask color. */
|
|
504
504
|
maskColor?: HvColorAny;
|
|
505
|
-
/** Mask stroke color.
|
|
505
|
+
/** Mask stroke color. */
|
|
506
506
|
maskStrokeColor?: HvColorAny;
|
|
507
507
|
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
508
508
|
classes?: HvFlowMinimapClasses;
|
|
@@ -966,7 +966,7 @@ declare const useClasses_14: (classesProp?: Partial<Record<"root" | "messageCont
|
|
|
966
966
|
readonly cx: (...args: any) => string;
|
|
967
967
|
};
|
|
968
968
|
|
|
969
|
-
declare const useClasses_15: (classesProp?: Partial<Record<"root" | "
|
|
969
|
+
declare const useClasses_15: (classesProp?: Partial<Record<"root" | "paper" | "closeButton", string>>, addStatic?: boolean) => {
|
|
970
970
|
readonly classes: {
|
|
971
971
|
root: string;
|
|
972
972
|
paper: string;
|
|
@@ -1088,7 +1088,7 @@ declare const useClasses_8: (classesProp?: Partial<Record<"mandatory" | "root" |
|
|
|
1088
1088
|
readonly cx: (...args: any) => string;
|
|
1089
1089
|
};
|
|
1090
1090
|
|
|
1091
|
-
declare const useClasses_9: (classesProp?: Partial<Record<"mandatory" | "root" | "title" | "
|
|
1091
|
+
declare const useClasses_9: (classesProp?: Partial<Record<"mandatory" | "root" | "title" | "actions" | "empty" | "footerContainer" | "titleContainer" | "inputContainer" | "handle" | "headerContainer" | "inputsTitleContainer" | "outputsTitleContainer" | "contentContainer" | "inputsContainer" | "outputsContainer" | "inputGroupContainer" | "outputGroupContainer" | "outputContainer" | "handleConnected" | "subtitle" | "subtitleContainer" | "inlineEditRoot" | "inlineEditButton" | "actionsButton" | "paramsContainer", string>>, addStatic?: boolean) => {
|
|
1092
1092
|
readonly classes: {
|
|
1093
1093
|
mandatory: string;
|
|
1094
1094
|
root: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitachivantara/uikit-react-lab",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.46.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Hitachi Vantara UI Kit Team",
|
|
6
6
|
"description": "Contributed React components for the NEXT UI Kit.",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"@dnd-kit/core": "^6.1.0",
|
|
34
34
|
"@dnd-kit/modifiers": "^6.0.1",
|
|
35
35
|
"@emotion/css": "^11.11.0",
|
|
36
|
-
"@hitachivantara/uikit-react-core": "^5.
|
|
37
|
-
"@hitachivantara/uikit-react-icons": "^5.16.
|
|
38
|
-
"@hitachivantara/uikit-react-utils": "^0.2.
|
|
39
|
-
"@hitachivantara/uikit-styles": "^5.
|
|
36
|
+
"@hitachivantara/uikit-react-core": "^5.99.1",
|
|
37
|
+
"@hitachivantara/uikit-react-icons": "^5.16.3",
|
|
38
|
+
"@hitachivantara/uikit-react-utils": "^0.2.43",
|
|
39
|
+
"@hitachivantara/uikit-styles": "^5.50.1",
|
|
40
40
|
"@mui/base": "5.0.0-beta.68",
|
|
41
41
|
"@types/react-grid-layout": "^1.3.5",
|
|
42
42
|
"react-grid-layout": "^1.4.4",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"access": "public",
|
|
53
53
|
"directory": "package"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "581850c6252b29a8cd9820a6e87b2df89830155f",
|
|
56
56
|
"exports": {
|
|
57
57
|
".": {
|
|
58
58
|
"types": "./dist/types/index.d.ts",
|