@hitachivantara/uikit-react-lab 5.46.19 → 6.0.0-next.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/dist/{esm/Flow → Flow}/Empty/Empty.styles.js +1 -1
  2. package/dist/{esm/Flow → Flow}/Node/Node.js +0 -3
  3. package/dist/{esm/Flow → Flow}/Sidebar/Sidebar.js +1 -1
  4. package/dist/{esm/StepNavigation → StepNavigation}/DefaultNavigation/DefaultNavigation.js +1 -3
  5. package/dist/{esm/StepNavigation → StepNavigation}/SimpleNavigation/SimpleNavigation.js +1 -3
  6. package/dist/{esm/StepNavigation → StepNavigation}/StepNavigation.js +2 -7
  7. package/dist/{esm/Wizard → Wizard}/WizardTitle/WizardTitle.js +31 -47
  8. package/dist/{esm/Wizard → Wizard}/WizardTitle/WizardTitle.styles.js +0 -10
  9. package/dist/{types/index.d.ts → index.d.ts} +11 -27
  10. package/package.json +14 -14
  11. package/dist/cjs/Blade/Blade.cjs +0 -174
  12. package/dist/cjs/Blade/Blade.styles.cjs +0 -71
  13. package/dist/cjs/Blades/Blades.cjs +0 -104
  14. package/dist/cjs/Blades/Blades.styles.cjs +0 -11
  15. package/dist/cjs/Dashboard/Dashboard.cjs +0 -63
  16. package/dist/cjs/Dashboard/Dashboard.styles.cjs +0 -196
  17. package/dist/cjs/Flow/Background/Background.cjs +0 -19
  18. package/dist/cjs/Flow/Controls/Controls.cjs +0 -96
  19. package/dist/cjs/Flow/DroppableFlow.cjs +0 -204
  20. package/dist/cjs/Flow/Empty/Empty.cjs +0 -12
  21. package/dist/cjs/Flow/Empty/Empty.styles.cjs +0 -16
  22. package/dist/cjs/Flow/Flow.cjs +0 -33
  23. package/dist/cjs/Flow/Flow.styles.cjs +0 -19
  24. package/dist/cjs/Flow/FlowContext/FlowContext.cjs +0 -25
  25. package/dist/cjs/Flow/FlowContext/NodeMetaContext.cjs +0 -43
  26. package/dist/cjs/Flow/Minimap/Minimap.cjs +0 -30
  27. package/dist/cjs/Flow/Minimap/Minimap.styles.cjs +0 -10
  28. package/dist/cjs/Flow/Node/BaseNode.cjs +0 -192
  29. package/dist/cjs/Flow/Node/BaseNode.styles.cjs +0 -135
  30. package/dist/cjs/Flow/Node/Node.cjs +0 -115
  31. package/dist/cjs/Flow/Node/Node.styles.cjs +0 -42
  32. package/dist/cjs/Flow/Node/Parameters/ParamRenderer.cjs +0 -19
  33. package/dist/cjs/Flow/Node/Parameters/Select.cjs +0 -41
  34. package/dist/cjs/Flow/Node/Parameters/Slider.cjs +0 -33
  35. package/dist/cjs/Flow/Node/Parameters/Text.cjs +0 -19
  36. package/dist/cjs/Flow/Node/utils.cjs +0 -54
  37. package/dist/cjs/Flow/Sidebar/Sidebar.cjs +0 -141
  38. package/dist/cjs/Flow/Sidebar/Sidebar.styles.cjs +0 -24
  39. package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroup.cjs +0 -62
  40. package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroup.styles.cjs +0 -34
  41. package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroupItem/DraggableSidebarGroupItem.cjs +0 -51
  42. package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.cjs +0 -35
  43. package/dist/cjs/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.styles.cjs +0 -23
  44. package/dist/cjs/Flow/base.cjs +0 -411
  45. package/dist/cjs/Flow/hooks/useFlowContext.cjs +0 -6
  46. package/dist/cjs/Flow/hooks/useFlowInstance.cjs +0 -7
  47. package/dist/cjs/Flow/hooks/useFlowNode.cjs +0 -134
  48. package/dist/cjs/Flow/hooks/useFlowNodeMeta.cjs +0 -10
  49. package/dist/cjs/Flow/hooks/useNode.cjs +0 -159
  50. package/dist/cjs/Flow/hooks/useNodeId.cjs +0 -8
  51. package/dist/cjs/Flow/nodes/DashboardNode.cjs +0 -88
  52. package/dist/cjs/Flow/nodes/DashboardNode.styles.cjs +0 -16
  53. package/dist/cjs/Flow/nodes/StickyNode.cjs +0 -441
  54. package/dist/cjs/StepNavigation/DefaultNavigation/DefaultNavigation.cjs +0 -56
  55. package/dist/cjs/StepNavigation/DefaultNavigation/Step/Step.cjs +0 -78
  56. package/dist/cjs/StepNavigation/DefaultNavigation/Step/Step.styles.cjs +0 -35
  57. package/dist/cjs/StepNavigation/DefaultNavigation/utils.cjs +0 -34
  58. package/dist/cjs/StepNavigation/SimpleNavigation/Dot/Dot.cjs +0 -43
  59. package/dist/cjs/StepNavigation/SimpleNavigation/Dot/Dot.styles.cjs +0 -18
  60. package/dist/cjs/StepNavigation/SimpleNavigation/SimpleNavigation.cjs +0 -52
  61. package/dist/cjs/StepNavigation/SimpleNavigation/utils.cjs +0 -13
  62. package/dist/cjs/StepNavigation/StepNavigation.cjs +0 -188
  63. package/dist/cjs/StepNavigation/StepNavigation.styles.cjs +0 -34
  64. package/dist/cjs/StepNavigation/utils.cjs +0 -8
  65. package/dist/cjs/Wizard/Wizard.cjs +0 -108
  66. package/dist/cjs/Wizard/Wizard.styles.cjs +0 -8
  67. package/dist/cjs/Wizard/WizardActions/WizardActions.cjs +0 -132
  68. package/dist/cjs/Wizard/WizardActions/WizardActions.styles.cjs +0 -22
  69. package/dist/cjs/Wizard/WizardContainer/WizardContainer.cjs +0 -31
  70. package/dist/cjs/Wizard/WizardContainer/WizardContainer.styles.cjs +0 -15
  71. package/dist/cjs/Wizard/WizardContent/WizardContent.cjs +0 -121
  72. package/dist/cjs/Wizard/WizardContent/WizardContent.styles.cjs +0 -38
  73. package/dist/cjs/Wizard/WizardContext/WizardContext.cjs +0 -15
  74. package/dist/cjs/Wizard/WizardTitle/WizardTitle.cjs +0 -97
  75. package/dist/cjs/Wizard/WizardTitle/WizardTitle.styles.cjs +0 -27
  76. package/dist/cjs/index.cjs +0 -93
  77. /package/dist/{esm/Blade → Blade}/Blade.js +0 -0
  78. /package/dist/{esm/Blade → Blade}/Blade.styles.js +0 -0
  79. /package/dist/{esm/Blades → Blades}/Blades.js +0 -0
  80. /package/dist/{esm/Blades → Blades}/Blades.styles.js +0 -0
  81. /package/dist/{esm/Dashboard → Dashboard}/Dashboard.js +0 -0
  82. /package/dist/{esm/Dashboard → Dashboard}/Dashboard.styles.js +0 -0
  83. /package/dist/{esm/Flow → Flow}/Background/Background.js +0 -0
  84. /package/dist/{esm/Flow → Flow}/Controls/Controls.js +0 -0
  85. /package/dist/{esm/Flow → Flow}/DroppableFlow.js +0 -0
  86. /package/dist/{esm/Flow → Flow}/Empty/Empty.js +0 -0
  87. /package/dist/{esm/Flow → Flow}/Flow.js +0 -0
  88. /package/dist/{esm/Flow → Flow}/Flow.styles.js +0 -0
  89. /package/dist/{esm/Flow → Flow}/FlowContext/FlowContext.js +0 -0
  90. /package/dist/{esm/Flow → Flow}/FlowContext/NodeMetaContext.js +0 -0
  91. /package/dist/{esm/Flow → Flow}/Minimap/Minimap.js +0 -0
  92. /package/dist/{esm/Flow → Flow}/Minimap/Minimap.styles.js +0 -0
  93. /package/dist/{esm/Flow → Flow}/Node/BaseNode.js +0 -0
  94. /package/dist/{esm/Flow → Flow}/Node/BaseNode.styles.js +0 -0
  95. /package/dist/{esm/Flow → Flow}/Node/Node.styles.js +0 -0
  96. /package/dist/{esm/Flow → Flow}/Node/Parameters/ParamRenderer.js +0 -0
  97. /package/dist/{esm/Flow → Flow}/Node/Parameters/Select.js +0 -0
  98. /package/dist/{esm/Flow → Flow}/Node/Parameters/Slider.js +0 -0
  99. /package/dist/{esm/Flow → Flow}/Node/Parameters/Text.js +0 -0
  100. /package/dist/{esm/Flow → Flow}/Node/utils.js +0 -0
  101. /package/dist/{esm/Flow → Flow}/Sidebar/Sidebar.styles.js +0 -0
  102. /package/dist/{esm/Flow → Flow}/Sidebar/SidebarGroup/SidebarGroup.js +0 -0
  103. /package/dist/{esm/Flow → Flow}/Sidebar/SidebarGroup/SidebarGroup.styles.js +0 -0
  104. /package/dist/{esm/Flow → Flow}/Sidebar/SidebarGroup/SidebarGroupItem/DraggableSidebarGroupItem.js +0 -0
  105. /package/dist/{esm/Flow → Flow}/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.js +0 -0
  106. /package/dist/{esm/Flow → Flow}/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.styles.js +0 -0
  107. /package/dist/{esm/Flow → Flow}/base.js +0 -0
  108. /package/dist/{esm/Flow → Flow}/hooks/useFlowContext.js +0 -0
  109. /package/dist/{esm/Flow → Flow}/hooks/useFlowInstance.js +0 -0
  110. /package/dist/{esm/Flow → Flow}/hooks/useFlowNode.js +0 -0
  111. /package/dist/{esm/Flow → Flow}/hooks/useFlowNodeMeta.js +0 -0
  112. /package/dist/{esm/Flow → Flow}/hooks/useNode.js +0 -0
  113. /package/dist/{esm/Flow → Flow}/hooks/useNodeId.js +0 -0
  114. /package/dist/{esm/Flow → Flow}/nodes/DashboardNode.js +0 -0
  115. /package/dist/{esm/Flow → Flow}/nodes/DashboardNode.styles.js +0 -0
  116. /package/dist/{esm/Flow → Flow}/nodes/StickyNode.js +0 -0
  117. /package/dist/{esm/StepNavigation → StepNavigation}/DefaultNavigation/Step/Step.js +0 -0
  118. /package/dist/{esm/StepNavigation → StepNavigation}/DefaultNavigation/Step/Step.styles.js +0 -0
  119. /package/dist/{esm/StepNavigation → StepNavigation}/DefaultNavigation/utils.js +0 -0
  120. /package/dist/{esm/StepNavigation → StepNavigation}/SimpleNavigation/Dot/Dot.js +0 -0
  121. /package/dist/{esm/StepNavigation → StepNavigation}/SimpleNavigation/Dot/Dot.styles.js +0 -0
  122. /package/dist/{esm/StepNavigation → StepNavigation}/SimpleNavigation/utils.js +0 -0
  123. /package/dist/{esm/StepNavigation → StepNavigation}/StepNavigation.styles.js +0 -0
  124. /package/dist/{esm/StepNavigation → StepNavigation}/utils.js +0 -0
  125. /package/dist/{esm/Wizard → Wizard}/Wizard.js +0 -0
  126. /package/dist/{esm/Wizard → Wizard}/Wizard.styles.js +0 -0
  127. /package/dist/{esm/Wizard → Wizard}/WizardActions/WizardActions.js +0 -0
  128. /package/dist/{esm/Wizard → Wizard}/WizardActions/WizardActions.styles.js +0 -0
  129. /package/dist/{esm/Wizard → Wizard}/WizardContainer/WizardContainer.js +0 -0
  130. /package/dist/{esm/Wizard → Wizard}/WizardContainer/WizardContainer.styles.js +0 -0
  131. /package/dist/{esm/Wizard → Wizard}/WizardContent/WizardContent.js +0 -0
  132. /package/dist/{esm/Wizard → Wizard}/WizardContent/WizardContent.styles.js +0 -0
  133. /package/dist/{esm/Wizard → Wizard}/WizardContext/WizardContext.js +0 -0
  134. /package/dist/{esm/index.js → index.js} +0 -0
@@ -1,411 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const react = require("@emotion/react");
4
- const uikitReactCore = require("@hitachivantara/uikit-react-core");
5
- const flowStyles = react.css`
6
- /* this gets exported as style.css and can be used for the default theming */
7
- /* these are the necessary styles for React Flow, they get used by base.css and style.css */
8
- .react-flow__container {
9
- position: absolute;
10
- width: 100%;
11
- height: 100%;
12
- top: 0;
13
- left: 0;
14
- }
15
- .react-flow__pane {
16
- z-index: 1;
17
- cursor: -webkit-grab;
18
- cursor: grab;
19
- }
20
- .react-flow__pane.selection {
21
- cursor: pointer;
22
- }
23
- .react-flow__pane.dragging {
24
- cursor: -webkit-grabbing;
25
- cursor: grabbing;
26
- }
27
- .react-flow__viewport {
28
- transform-origin: 0 0;
29
- z-index: 2;
30
- pointer-events: none;
31
- }
32
- .react-flow__renderer {
33
- z-index: 4;
34
- }
35
- .react-flow__selection {
36
- z-index: 6;
37
- }
38
- .react-flow__nodesselection-rect:focus,
39
- .react-flow__nodesselection-rect:focus-visible {
40
- outline: none;
41
- }
42
- .react-flow .react-flow__edges {
43
- pointer-events: none;
44
- overflow: visible;
45
- }
46
- .react-flow__edge-path,
47
- .react-flow__connection-path {
48
- stroke: ${uikitReactCore.theme.colors.text};
49
- stroke-width: 1;
50
- fill: none;
51
- }
52
- .react-flow__edge {
53
- pointer-events: visibleStroke;
54
- cursor: pointer;
55
- }
56
- .react-flow__edge.animated path {
57
- stroke-dasharray: 5;
58
- -webkit-animation: dashdraw 0.5s linear infinite;
59
- animation: dashdraw 0.5s linear infinite;
60
- }
61
- .react-flow__edge.animated path.react-flow__edge-interaction {
62
- stroke-dasharray: none;
63
- -webkit-animation: none;
64
- animation: none;
65
- }
66
- .react-flow__edge.inactive {
67
- pointer-events: none;
68
- }
69
- .react-flow__edge.selected,
70
- .react-flow__edge:focus,
71
- .react-flow__edge:focus-visible {
72
- outline: none;
73
- }
74
- .react-flow__edge.selected .react-flow__edge-path,
75
- .react-flow__edge:focus .react-flow__edge-path,
76
- .react-flow__edge:focus-visible .react-flow__edge-path {
77
- stroke: #555;
78
- }
79
- .react-flow__edge-textwrapper {
80
- pointer-events: all;
81
- }
82
- .react-flow__edge-textbg {
83
- fill: white;
84
- }
85
- .react-flow__edge .react-flow__edge-text {
86
- pointer-events: none;
87
- -webkit-user-select: none;
88
- -moz-user-select: none;
89
- user-select: none;
90
- }
91
- .react-flow__connection {
92
- pointer-events: none;
93
- }
94
- .react-flow__connection .animated {
95
- stroke-dasharray: 5;
96
- -webkit-animation: dashdraw 0.5s linear infinite;
97
- animation: dashdraw 0.5s linear infinite;
98
- }
99
- .react-flow__connectionline {
100
- z-index: 1001;
101
- }
102
- .react-flow__nodes {
103
- pointer-events: none;
104
- transform-origin: 0 0;
105
- }
106
- .react-flow__node {
107
- position: absolute;
108
- -webkit-user-select: none;
109
- -moz-user-select: none;
110
- user-select: none;
111
- pointer-events: all;
112
- transform-origin: 0 0;
113
- box-sizing: border-box;
114
- cursor: -webkit-grab;
115
- cursor: grab;
116
- }
117
- .react-flow__node.dragging {
118
- cursor: -webkit-grabbing;
119
- cursor: grabbing;
120
- }
121
- .react-flow__nodesselection {
122
- z-index: 3;
123
- transform-origin: left top;
124
- pointer-events: none;
125
- }
126
- .react-flow__nodesselection-rect {
127
- position: absolute;
128
- pointer-events: all;
129
- cursor: -webkit-grab;
130
- cursor: grab;
131
- }
132
- .react-flow__handle {
133
- position: absolute;
134
- pointer-events: none;
135
- min-width: 5px;
136
- min-height: 5px;
137
- width: 6px;
138
- height: 6px;
139
- background: #1a192b;
140
- border: 1px solid white;
141
- border-radius: 100%;
142
- }
143
- .react-flow__handle.connectionindicator {
144
- pointer-events: all;
145
- cursor: crosshair;
146
- }
147
- .react-flow__handle-bottom {
148
- top: auto;
149
- left: 50%;
150
- bottom: -4px;
151
- transform: translate(-50%, 0);
152
- }
153
- .react-flow__handle-top {
154
- left: 50%;
155
- top: -4px;
156
- transform: translate(-50%, 0);
157
- }
158
- .react-flow__handle-left {
159
- top: 50%;
160
- left: -4px;
161
- transform: translate(0, -50%);
162
- }
163
- .react-flow__handle-right {
164
- right: -4px;
165
- top: 50%;
166
- transform: translate(0, -50%);
167
- }
168
- .react-flow__edgeupdater {
169
- cursor: move;
170
- pointer-events: all;
171
- }
172
- .react-flow__panel {
173
- position: absolute;
174
- z-index: 5;
175
- margin: 15px;
176
- }
177
- .react-flow__panel.top {
178
- top: 0;
179
- }
180
- .react-flow__panel.bottom {
181
- bottom: 0;
182
- }
183
- .react-flow__panel.left {
184
- left: 0;
185
- }
186
- .react-flow__panel.right {
187
- right: 0;
188
- }
189
- .react-flow__panel.center {
190
- left: 50%;
191
- transform: translateX(-50%);
192
- }
193
- .react-flow__attribution {
194
- font-size: 10px;
195
- background: rgba(255, 255, 255, 0.5);
196
- padding: 2px 3px;
197
- margin: 0;
198
- }
199
- .react-flow__attribution a {
200
- text-decoration: none;
201
- color: #999;
202
- }
203
- @-webkit-keyframes dashdraw {
204
- from {
205
- stroke-dashoffset: 10;
206
- }
207
- }
208
- @keyframes dashdraw {
209
- from {
210
- stroke-dashoffset: 10;
211
- }
212
- }
213
- .react-flow__edgelabel-renderer {
214
- position: absolute;
215
- width: 100%;
216
- height: 100%;
217
- pointer-events: none;
218
- -webkit-user-select: none;
219
- -moz-user-select: none;
220
- user-select: none;
221
- }
222
- .react-flow__edge.updating .react-flow__edge-path {
223
- stroke: #777;
224
- }
225
- .react-flow__edge-text {
226
- font-size: 10px;
227
- }
228
- .react-flow__node.selectable:focus,
229
- .react-flow__node.selectable:focus-visible {
230
- outline: none;
231
- }
232
- .react-flow__node-default,
233
- .react-flow__node-input,
234
- .react-flow__node-output {
235
- padding: ${uikitReactCore.theme.space.sm};
236
- border-radius: ${uikitReactCore.theme.radii.round};
237
- width: 150px;
238
- color: ${uikitReactCore.theme.colors.text};
239
- text-align: center;
240
- border: 1px solid ${uikitReactCore.theme.colors.negative};
241
- background-color: ${uikitReactCore.theme.colors.negativeDimmed};
242
- }
243
- .react-flow__node-group {
244
- color: ${uikitReactCore.theme.colors.text};
245
- text-align: center;
246
- }
247
- .react-flow__node-default::before {
248
- content: "Unknown node type";
249
- display: block;
250
- }
251
- .react-flow__node-default.selectable:hover,
252
- .react-flow__node-input.selectable:hover,
253
- .react-flow__node-output.selectable:hover,
254
- .react-flow__node-group.selectable:hover {
255
- }
256
- .react-flow__node-default.selectable.selected,
257
- .react-flow__node-default.selectable:focus,
258
- .react-flow__node-default.selectable:focus-visible,
259
- .react-flow__node-input.selectable.selected,
260
- .react-flow__node-input.selectable:focus,
261
- .react-flow__node-input.selectable:focus-visible,
262
- .react-flow__node-output.selectable.selected,
263
- .react-flow__node-output.selectable:focus,
264
- .react-flow__node-output.selectable:focus-visible,
265
- .react-flow__node-group.selectable.selected,
266
- .react-flow__node-group.selectable:focus,
267
- .react-flow__node-group.selectable:focus-visible {
268
- }
269
- .react-flow__node-group {
270
- background-color: rgba(240, 240, 240, 0.25);
271
- }
272
- .react-flow__nodesselection-rect,
273
- .react-flow__selection {
274
- background: rgba(0, 89, 220, 0.08);
275
- }
276
- .react-flow__nodesselection-rect:focus,
277
- .react-flow__nodesselection-rect:focus-visible,
278
- .react-flow__selection:focus,
279
- .react-flow__selection:focus-visible {
280
- outline: none;
281
- }
282
- .react-flow__controls {
283
- box-shadow: ${uikitReactCore.theme.colors.shadow};
284
- }
285
- .react-flow__controls-button {
286
- border: none;
287
- background: #fefefe;
288
- border-bottom: 1px solid #eee;
289
- box-sizing: content-box;
290
- display: flex;
291
- justify-content: center;
292
- align-items: center;
293
- width: 16px;
294
- height: 16px;
295
- cursor: pointer;
296
- -webkit-user-select: none;
297
- -moz-user-select: none;
298
- user-select: none;
299
- padding: 5px;
300
- }
301
- .react-flow__controls-button:hover {
302
- background: #f4f4f4;
303
- }
304
- .react-flow__controls-button svg {
305
- width: 100%;
306
- max-width: 12px;
307
- max-height: 12px;
308
- }
309
- .react-flow__controls-button:disabled {
310
- pointer-events: none;
311
- }
312
- .react-flow__controls-button:disabled svg {
313
- fill-opacity: 0.4;
314
- }
315
- .react-flow__minimap {
316
- background-color: #fff;
317
- }
318
- .react-flow__resize-control {
319
- position: absolute;
320
- }
321
- .react-flow__resize-control.left,
322
- .react-flow__resize-control.right {
323
- cursor: ew-resize;
324
- }
325
- .react-flow__resize-control.top,
326
- .react-flow__resize-control.bottom {
327
- cursor: ns-resize;
328
- }
329
- .react-flow__resize-control.top.left,
330
- .react-flow__resize-control.bottom.right {
331
- cursor: nwse-resize;
332
- }
333
- .react-flow__resize-control.bottom.left,
334
- .react-flow__resize-control.top.right {
335
- cursor: nesw-resize;
336
- }
337
- /* handle styles */
338
- .react-flow__resize-control.handle {
339
- width: 4px;
340
- height: 4px;
341
- border: 1px solid #fff;
342
- border-radius: 1px;
343
- background-color: ${uikitReactCore.theme.colors.primary};
344
- transform: translate(-50%, -50%);
345
- }
346
- .react-flow__resize-control.handle.left {
347
- left: 0;
348
- top: 50%;
349
- }
350
- .react-flow__resize-control.handle.right {
351
- left: 100%;
352
- top: 50%;
353
- }
354
- .react-flow__resize-control.handle.top {
355
- left: 50%;
356
- top: 0;
357
- }
358
- .react-flow__resize-control.handle.bottom {
359
- left: 50%;
360
- top: 100%;
361
- }
362
- .react-flow__resize-control.handle.top.left {
363
- left: 0;
364
- }
365
- .react-flow__resize-control.handle.bottom.left {
366
- left: 0;
367
- }
368
- .react-flow__resize-control.handle.top.right {
369
- left: 100%;
370
- }
371
- .react-flow__resize-control.handle.bottom.right {
372
- left: 100%;
373
- }
374
- /* line styles */
375
- .react-flow__resize-control.line {
376
- border-color: ${uikitReactCore.theme.colors.primaryStrong};
377
- border-width: 0;
378
- border-style: dashed;
379
- }
380
- .react-flow__resize-control.line.left,
381
- .react-flow__resize-control.line.right {
382
- width: 1px;
383
- transform: translate(-50%, 0);
384
- top: 0;
385
- height: 100%;
386
- }
387
- .react-flow__resize-control.line.left {
388
- left: 0;
389
- border-left-width: 1px;
390
- }
391
- .react-flow__resize-control.line.right {
392
- left: 100%;
393
- border-right-width: 1px;
394
- }
395
- .react-flow__resize-control.line.top,
396
- .react-flow__resize-control.line.bottom {
397
- height: 1px;
398
- transform: translate(0, -50%);
399
- left: 0;
400
- width: 100%;
401
- }
402
- .react-flow__resize-control.line.top {
403
- top: 0;
404
- border-top-width: 1px;
405
- }
406
- .react-flow__resize-control.line.bottom {
407
- border-bottom-width: 1px;
408
- top: 100%;
409
- }
410
- `;
411
- exports.flowStyles = flowStyles;
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const react = require("react");
4
- const FlowContext = require("../FlowContext/FlowContext.cjs");
5
- const useFlowContext = () => react.useContext(FlowContext.HvFlowContext);
6
- exports.useFlowContext = useFlowContext;
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const reactflow = require("reactflow");
4
- function useFlowInstance() {
5
- return reactflow.useReactFlow();
6
- }
7
- exports.useFlowInstance = useFlowInstance;
@@ -1,134 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const react = require("react");
4
- const reactflow = require("reactflow");
5
- const shallow = require("zustand/shallow");
6
- const useFlowInstance = require("./useFlowInstance.cjs");
7
- const useNodeId = require("./useNodeId.cjs");
8
- function relativePosition(positionA, positionB) {
9
- if (positionA && positionB)
10
- return {
11
- x: positionB.x - positionA.x,
12
- y: positionB.y - positionA.y
13
- };
14
- return { x: 0, y: 0 };
15
- }
16
- function useFlowNode(id) {
17
- const nodeId = useNodeId.useNodeId(id);
18
- const nodeSelector = react.useCallback(
19
- (state) => state.getNodes().find((n) => n.id === nodeId),
20
- [nodeId]
21
- );
22
- return reactflow.useStore(nodeSelector, shallow.shallow);
23
- }
24
- function useFlowNodeInputEdges(id) {
25
- const nodeId = useNodeId.useNodeId(id);
26
- const inputEdgesSelector = react.useCallback(
27
- (state) => state.edges.filter((e) => e.target === nodeId),
28
- [nodeId]
29
- );
30
- return reactflow.useStore(inputEdgesSelector, shallow.shallow);
31
- }
32
- function useFlowNodeOutputEdges(id) {
33
- const nodeId = useNodeId.useNodeId(id);
34
- const outputEdgesSelector = react.useCallback(
35
- (state) => state.edges.filter((e) => e.source === nodeId),
36
- [nodeId]
37
- );
38
- return reactflow.useStore(outputEdgesSelector, shallow.shallow);
39
- }
40
- function useFlowNodeEdges(id) {
41
- const nodeId = useNodeId.useNodeId(id);
42
- const edgesSelector = react.useCallback(
43
- (state) => state.edges.filter(
44
- (e) => e.source === nodeId || e.target === nodeId
45
- ),
46
- [nodeId]
47
- );
48
- return reactflow.useStore(edgesSelector, shallow.shallow);
49
- }
50
- function useFlowNodeParents(id) {
51
- const inputEdges = useFlowNodeInputEdges(id);
52
- const parentNodesSelector = react.useCallback(
53
- (state) => {
54
- return inputEdges.map((e) => state.getNodes().find((n) => n.id === e.source)).filter((n) => n !== null);
55
- },
56
- [inputEdges]
57
- );
58
- return reactflow.useStore(parentNodesSelector, shallow.shallow);
59
- }
60
- function useFlowInputNodes(id) {
61
- const nodeId = useNodeId.useNodeId(id);
62
- const nodes = reactflow.useNodes();
63
- const edges = reactflow.useEdges();
64
- return react.useMemo(() => {
65
- return edges.filter((e) => e.target === nodeId).map((e) => nodes.find((n) => n.id === e.source)).filter((n) => n !== null);
66
- }, [edges, nodeId, nodes]);
67
- }
68
- function useFlowOutputNodes(id) {
69
- const nodeId = useNodeId.useNodeId(id);
70
- const nodes = reactflow.useNodes();
71
- const edges = reactflow.useEdges();
72
- return react.useMemo(() => {
73
- return edges.filter((e) => e.source === nodeId).map((e) => nodes.find((n) => n.id === e.target)).filter((n) => n !== null);
74
- }, [edges, nodeId, nodes]);
75
- }
76
- function useFlowNodeUtils(id) {
77
- const nodeId = useNodeId.useNodeId(id);
78
- const reactFlowInstance = useFlowInstance.useFlowInstance();
79
- const setNodeData = react.useCallback(
80
- (setNewData) => {
81
- if (!nodeId) return;
82
- reactFlowInstance.setNodes((nodes) => {
83
- return nodes.map((n) => {
84
- if (n.id === nodeId) {
85
- return { ...n, data: setNewData(n.data) };
86
- }
87
- return n;
88
- });
89
- });
90
- },
91
- [nodeId, reactFlowInstance]
92
- );
93
- const setNodeParent = react.useCallback(
94
- (node, extent) => {
95
- if (!nodeId) return;
96
- reactFlowInstance.setNodes((nodes) => {
97
- return nodes.map((n) => {
98
- if (n.id === nodeId) {
99
- return {
100
- ...n,
101
- parentId: node ? node.id : void 0,
102
- extent,
103
- position: node ? relativePosition(node.position, n.position) : n.positionAbsolute ?? n.position
104
- };
105
- }
106
- return n;
107
- });
108
- });
109
- },
110
- [nodeId, reactFlowInstance]
111
- );
112
- return react.useMemo(
113
- () => ({
114
- setNodeData,
115
- setNodeParent
116
- }),
117
- [setNodeData, setNodeParent]
118
- );
119
- }
120
- function useFlowNodeIntersections(id) {
121
- const nodeId = useNodeId.useNodeId(id);
122
- const node = useFlowNode(nodeId ?? "");
123
- const reactFlowInstance = useFlowInstance.useFlowInstance();
124
- return node ? reactFlowInstance.getIntersectingNodes(node, false) : [];
125
- }
126
- exports.useFlowInputNodes = useFlowInputNodes;
127
- exports.useFlowNode = useFlowNode;
128
- exports.useFlowNodeEdges = useFlowNodeEdges;
129
- exports.useFlowNodeInputEdges = useFlowNodeInputEdges;
130
- exports.useFlowNodeIntersections = useFlowNodeIntersections;
131
- exports.useFlowNodeOutputEdges = useFlowNodeOutputEdges;
132
- exports.useFlowNodeParents = useFlowNodeParents;
133
- exports.useFlowNodeUtils = useFlowNodeUtils;
134
- exports.useFlowOutputNodes = useFlowOutputNodes;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const NodeMetaContext = require("../FlowContext/NodeMetaContext.cjs");
4
- const useNodeId = require("./useNodeId.cjs");
5
- function useFlowNodeMeta(id) {
6
- const nodeId = useNodeId.useNodeId(id);
7
- const { registry } = NodeMetaContext.useNodeMetaRegistry();
8
- return registry[nodeId];
9
- }
10
- exports.useFlowNodeMeta = useFlowNodeMeta;