@hitachivantara/uikit-react-lab 5.5.4 → 5.6.0
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/components/Flow/DroppableFlow.cjs +73 -1
- package/dist/cjs/components/Flow/DroppableFlow.cjs.map +1 -1
- package/dist/cjs/components/Flow/Flow.styles.cjs +40 -1
- package/dist/cjs/components/Flow/Flow.styles.cjs.map +1 -1
- package/dist/cjs/components/Flow/Node/Node.cjs +106 -0
- package/dist/cjs/components/Flow/Node/Node.cjs.map +1 -0
- package/dist/cjs/components/Flow/Node/Node.styles.cjs +89 -0
- package/dist/cjs/components/Flow/Node/Node.styles.cjs.map +1 -0
- package/dist/cjs/components/Flow/Node/Parameters/ParamRenderer.cjs +28 -0
- package/dist/cjs/components/Flow/Node/Parameters/ParamRenderer.cjs.map +1 -0
- package/dist/cjs/components/Flow/Node/Parameters/Select.cjs +39 -0
- package/dist/cjs/components/Flow/Node/Parameters/Select.cjs.map +1 -0
- package/dist/cjs/components/Flow/Node/Parameters/Text.cjs +32 -0
- package/dist/cjs/components/Flow/Node/Parameters/Text.cjs.map +1 -0
- package/dist/cjs/index.cjs +4 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/components/Flow/DroppableFlow.js +75 -3
- package/dist/esm/components/Flow/DroppableFlow.js.map +1 -1
- package/dist/esm/components/Flow/Flow.styles.js +41 -2
- package/dist/esm/components/Flow/Flow.styles.js.map +1 -1
- package/dist/esm/components/Flow/Node/Node.js +107 -0
- package/dist/esm/components/Flow/Node/Node.js.map +1 -0
- package/dist/esm/components/Flow/Node/Node.styles.js +89 -0
- package/dist/esm/components/Flow/Node/Node.styles.js.map +1 -0
- package/dist/esm/components/Flow/Node/Parameters/ParamRenderer.js +28 -0
- package/dist/esm/components/Flow/Node/Parameters/ParamRenderer.js.map +1 -0
- package/dist/esm/components/Flow/Node/Parameters/Select.js +39 -0
- package/dist/esm/components/Flow/Node/Parameters/Select.js.map +1 -0
- package/dist/esm/components/Flow/Node/Parameters/Text.js +32 -0
- package/dist/esm/components/Flow/Node/Parameters/Text.js.map +1 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +94 -19
- package/package.json +3 -3
package/dist/types/index.d.ts
CHANGED
|
@@ -33,6 +33,22 @@ export declare const flowMinimapClasses: {
|
|
|
33
33
|
root: "HvFlowMinimap-root";
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
+
export declare const flowNodeClasses: {
|
|
37
|
+
root: "HvFlowNode-root";
|
|
38
|
+
group: "HvFlowNode-group";
|
|
39
|
+
mandatory: "HvFlowNode-mandatory";
|
|
40
|
+
titleContainer: "HvFlowNode-titleContainer";
|
|
41
|
+
headerContainer: "HvFlowNode-headerContainer";
|
|
42
|
+
groupContainer: "HvFlowNode-groupContainer";
|
|
43
|
+
inputsTitleContainer: "HvFlowNode-inputsTitleContainer";
|
|
44
|
+
outputsTitleContainer: "HvFlowNode-outputsTitleContainer";
|
|
45
|
+
inputsContainer: "HvFlowNode-inputsContainer";
|
|
46
|
+
outputsContainer: "HvFlowNode-outputsContainer";
|
|
47
|
+
paramsContainer: "HvFlowNode-paramsContainer";
|
|
48
|
+
inputContainer: "HvFlowNode-inputContainer";
|
|
49
|
+
outputContainer: "HvFlowNode-outputContainer";
|
|
50
|
+
};
|
|
51
|
+
|
|
36
52
|
export declare const flowSidebarClasses: {
|
|
37
53
|
description: "HvFlowSidebar-description";
|
|
38
54
|
titleContainer: "HvFlowSidebar-titleContainer";
|
|
@@ -46,13 +62,13 @@ declare interface HvDroppableFlowProps<NodeData = any, NodeType extends string |
|
|
|
46
62
|
/** Flow content: background, controls, and minimap. */
|
|
47
63
|
children?: React.ReactNode;
|
|
48
64
|
/** Flow nodes. */
|
|
49
|
-
nodes?:
|
|
65
|
+
nodes?: Node_2<NodeData, NodeType>[];
|
|
50
66
|
/** Flow edges. */
|
|
51
|
-
edges?:
|
|
67
|
+
edges?: Edge[];
|
|
52
68
|
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
53
69
|
classes?: HvFlowClasses;
|
|
54
70
|
/** Function called when the flow changes. Returns the updated nodes and edges. */
|
|
55
|
-
onFlowChange?: (nodes:
|
|
71
|
+
onFlowChange?: (nodes: Node_2<NodeData, NodeType>[], edges: Edge[]) => void;
|
|
56
72
|
}
|
|
57
73
|
|
|
58
74
|
/**
|
|
@@ -98,9 +114,6 @@ export declare interface HvFlowControlsProps extends Omit<ControlProps, "positio
|
|
|
98
114
|
hideInteractive?: boolean;
|
|
99
115
|
}
|
|
100
116
|
|
|
101
|
-
/** Edge */
|
|
102
|
-
export declare type HvFlowEdge = Edge;
|
|
103
|
-
|
|
104
117
|
export declare const HvFlowMinimap: ({ nodeColor, maskColor, maskStrokeColor, nodeStrokeColor, classes: classesProp, className, ...others }: HvFlowMinimapProps) => JSX_2.Element;
|
|
105
118
|
|
|
106
119
|
export declare type HvFlowMinimapClasses = ExtractNames<typeof useClasses_9>;
|
|
@@ -118,15 +131,13 @@ export declare interface HvFlowMinimapProps<NodeData = any> extends Omit<MiniMap
|
|
|
118
131
|
classes?: HvFlowMinimapClasses;
|
|
119
132
|
}
|
|
120
133
|
|
|
121
|
-
|
|
122
|
-
|
|
134
|
+
export declare const HvFlowNode: ({ id, type, title, description, expanded, params, classes: classesProp, className, }: HvFlowNodeProps) => JSX_2.Element;
|
|
135
|
+
|
|
136
|
+
export declare type HvFlowNodeClasses = ExtractNames<typeof useClasses_11>;
|
|
123
137
|
|
|
124
138
|
export declare interface HvFlowNodeComponentClass<GroupId extends keyof any = string> extends ComponentClass<NodeProps> {
|
|
125
139
|
/** Metadata used on the HvFlowSidebar component to group the node */
|
|
126
|
-
meta?:
|
|
127
|
-
groupId: GroupId;
|
|
128
|
-
label: string;
|
|
129
|
-
};
|
|
140
|
+
meta?: HvFlowNodeMeta<GroupId>;
|
|
130
141
|
}
|
|
131
142
|
|
|
132
143
|
export declare type HvFlowNodeComponentType<GroupId extends keyof any = string> = HvFlowNodeComponentClass<GroupId> | HvFlowNodeFunctionComponent<GroupId>;
|
|
@@ -134,10 +145,7 @@ export declare type HvFlowNodeComponentType<GroupId extends keyof any = string>
|
|
|
134
145
|
/** Node types */
|
|
135
146
|
export declare interface HvFlowNodeFunctionComponent<GroupId extends keyof any = string> extends FunctionComponent<NodeProps> {
|
|
136
147
|
/** Metadata used on the HvFlowSidebar component to group the node */
|
|
137
|
-
meta?:
|
|
138
|
-
groupId: GroupId;
|
|
139
|
-
label: string;
|
|
140
|
-
};
|
|
148
|
+
meta?: HvFlowNodeMeta<GroupId>;
|
|
141
149
|
}
|
|
142
150
|
|
|
143
151
|
/** Node groups */
|
|
@@ -150,6 +158,50 @@ export declare interface HvFlowNodeGroup {
|
|
|
150
158
|
|
|
151
159
|
export declare type HvFlowNodeGroups<GroupId extends keyof any = string> = Record<GroupId, HvFlowNodeGroup>;
|
|
152
160
|
|
|
161
|
+
export declare type HvFlowNodeInput = {
|
|
162
|
+
label: string;
|
|
163
|
+
isMandatory?: boolean;
|
|
164
|
+
accepts?: string[];
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
export declare type HvFlowNodeMeta<GroupId extends keyof any = string> = {
|
|
168
|
+
label: string;
|
|
169
|
+
groupId: GroupId;
|
|
170
|
+
inputs?: HvFlowNodeInput[];
|
|
171
|
+
outputs?: HvFlowNodeOutput[];
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
export declare type HvFlowNodeOutput = {
|
|
175
|
+
label: string;
|
|
176
|
+
isMandatory?: boolean;
|
|
177
|
+
provides?: string[];
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
export declare type HvFlowNodeParam = {
|
|
181
|
+
id: string;
|
|
182
|
+
type: "text" | "select";
|
|
183
|
+
label: string;
|
|
184
|
+
options?: string[];
|
|
185
|
+
value?: string;
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
export declare interface HvFlowNodeProps extends Omit<HvBaseProps, "id">, NodeProps {
|
|
189
|
+
/** Node title */
|
|
190
|
+
title: string;
|
|
191
|
+
/** Node description */
|
|
192
|
+
description: string;
|
|
193
|
+
/** Node expanded */
|
|
194
|
+
expanded?: boolean;
|
|
195
|
+
/** Node inputs */
|
|
196
|
+
inputs?: HvFlowNodeInput[];
|
|
197
|
+
/** Node outputs */
|
|
198
|
+
outputs?: HvFlowNodeOutput[];
|
|
199
|
+
/** Node parameters */
|
|
200
|
+
params?: HvFlowNodeParam[];
|
|
201
|
+
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
202
|
+
classes?: HvFlowNodeClasses;
|
|
203
|
+
}
|
|
204
|
+
|
|
153
205
|
export declare type HvFlowNodeTypes<GroupId extends keyof any = string> = {
|
|
154
206
|
[key: string]: HvFlowNodeComponentType<GroupId>;
|
|
155
207
|
};
|
|
@@ -429,6 +481,29 @@ declare const useClasses_10: (classesProp?: Partial<Record<"description" | "titl
|
|
|
429
481
|
cx: (...args: any) => string;
|
|
430
482
|
};
|
|
431
483
|
|
|
484
|
+
declare const useClasses_11: (classesProp?: Partial<Record<"root" | "group" | "mandatory" | "titleContainer" | "headerContainer" | "groupContainer" | "inputsTitleContainer" | "outputsTitleContainer" | "inputsContainer" | "outputsContainer" | "paramsContainer" | "inputContainer" | "outputContainer", string>>, addStatic?: boolean) => {
|
|
485
|
+
classes: {
|
|
486
|
+
root: string;
|
|
487
|
+
group: string;
|
|
488
|
+
mandatory: string;
|
|
489
|
+
titleContainer: string;
|
|
490
|
+
headerContainer: string;
|
|
491
|
+
groupContainer: string;
|
|
492
|
+
inputsTitleContainer: string;
|
|
493
|
+
outputsTitleContainer: string;
|
|
494
|
+
inputsContainer: string;
|
|
495
|
+
outputsContainer: string;
|
|
496
|
+
paramsContainer: string;
|
|
497
|
+
inputContainer: string;
|
|
498
|
+
outputContainer: string;
|
|
499
|
+
};
|
|
500
|
+
css: {
|
|
501
|
+
(template: TemplateStringsArray, ...args: CSSInterpolation[]): string;
|
|
502
|
+
(...args: CSSInterpolation[]): string;
|
|
503
|
+
};
|
|
504
|
+
cx: (...args: any) => string;
|
|
505
|
+
};
|
|
506
|
+
|
|
432
507
|
declare const useClasses_2: (classesProp?: Partial<Record<"xl" | "lg" | "md" | "sm" | "xs" | "root" | "ghost" | "avatar" | "ghostDisabled" | "notCurrent", string>>, addStatic?: boolean) => {
|
|
433
508
|
classes: {
|
|
434
509
|
xl: string;
|
|
@@ -474,13 +549,13 @@ declare const useClasses_4: (classesProp?: Partial<Record<"buttonWidth" | "actio
|
|
|
474
549
|
cx: (...args: any) => string;
|
|
475
550
|
};
|
|
476
551
|
|
|
477
|
-
declare const useClasses_5: (classesProp?: Partial<Record<"titleContainer" | "messageContainer" | "
|
|
552
|
+
declare const useClasses_5: (classesProp?: Partial<Record<"titleContainer" | "messageContainer" | "headerContainer" | "buttonWidth" | "rootSummaryButton" | "stepContainer", string>>, addStatic?: boolean) => {
|
|
478
553
|
classes: {
|
|
479
554
|
titleContainer: string;
|
|
480
555
|
messageContainer: string;
|
|
556
|
+
headerContainer: string;
|
|
481
557
|
buttonWidth: string;
|
|
482
558
|
rootSummaryButton: string;
|
|
483
|
-
headerContainer: string;
|
|
484
559
|
stepContainer: string;
|
|
485
560
|
};
|
|
486
561
|
css: {
|
|
@@ -568,9 +643,9 @@ export declare const wizardContentClasses: {
|
|
|
568
643
|
export declare const wizardTitleClasses: {
|
|
569
644
|
titleContainer: "HvWizardTitle-titleContainer";
|
|
570
645
|
messageContainer: "HvWizardTitle-messageContainer";
|
|
646
|
+
headerContainer: "HvWizardTitle-headerContainer";
|
|
571
647
|
buttonWidth: "HvWizardTitle-buttonWidth";
|
|
572
648
|
rootSummaryButton: "HvWizardTitle-rootSummaryButton";
|
|
573
|
-
headerContainer: "HvWizardTitle-headerContainer";
|
|
574
649
|
stepContainer: "HvWizardTitle-stepContainer";
|
|
575
650
|
};
|
|
576
651
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitachivantara/uikit-react-lab",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Hitachi Vantara UI Kit Team",
|
|
6
6
|
"description": "Contributed React components for the NEXT UI Kit.",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@dnd-kit/core": "^6.0.8",
|
|
33
33
|
"@dnd-kit/modifiers": "^6.0.1",
|
|
34
34
|
"@emotion/css": "^11.11.0",
|
|
35
|
-
"@hitachivantara/uikit-react-core": "^5.
|
|
35
|
+
"@hitachivantara/uikit-react-core": "^5.28.0",
|
|
36
36
|
"@hitachivantara/uikit-react-icons": "^5.6.7",
|
|
37
37
|
"@hitachivantara/uikit-styles": "^5.12.1",
|
|
38
38
|
"lodash": "^4.17.21",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"access": "public",
|
|
49
49
|
"directory": "package"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "05db5a640d352bf7f44caffc109394fef5be37aa",
|
|
52
52
|
"main": "dist/cjs/index.cjs",
|
|
53
53
|
"exports": {
|
|
54
54
|
".": {
|