@hitachivantara/uikit-react-lab 5.46.13 → 6.0.0-next.1

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