@uipath/apollo-wind 0.9.0 → 0.10.0-pr257.2a4b17b

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 (145) hide show
  1. package/dist/components/forms/field-renderer.cjs +120 -69
  2. package/dist/components/forms/field-renderer.js +120 -69
  3. package/dist/components/forms/form-designer.cjs +2352 -1488
  4. package/dist/components/forms/form-designer.js +2353 -1489
  5. package/dist/components/forms/form-examples.cjs +10 -10
  6. package/dist/components/forms/form-examples.js +10 -10
  7. package/dist/components/forms/form-state-viewer.cjs +988 -433
  8. package/dist/components/forms/form-state-viewer.js +988 -433
  9. package/dist/components/forms/metadata-form.cjs +446 -170
  10. package/dist/components/forms/metadata-form.js +446 -170
  11. package/dist/components/forms/schema-viewer.cjs +173 -80
  12. package/dist/components/forms/schema-viewer.js +173 -80
  13. package/dist/components/ui/accordion.cjs +131 -27
  14. package/dist/components/ui/accordion.js +131 -27
  15. package/dist/components/ui/alert-dialog.cjs +273 -45
  16. package/dist/components/ui/alert-dialog.js +273 -45
  17. package/dist/components/ui/alert.cjs +106 -17
  18. package/dist/components/ui/alert.js +106 -17
  19. package/dist/components/ui/avatar.cjs +100 -15
  20. package/dist/components/ui/avatar.js +100 -15
  21. package/dist/components/ui/badge.cjs +36 -6
  22. package/dist/components/ui/badge.js +36 -6
  23. package/dist/components/ui/breadcrumb.cjs +258 -52
  24. package/dist/components/ui/breadcrumb.js +258 -52
  25. package/dist/components/ui/button-group.cjs +119 -19
  26. package/dist/components/ui/button-group.js +119 -19
  27. package/dist/components/ui/button.cjs +48 -8
  28. package/dist/components/ui/button.js +48 -8
  29. package/dist/components/ui/calendar.cjs +88 -30
  30. package/dist/components/ui/calendar.js +88 -30
  31. package/dist/components/ui/card.cjs +199 -30
  32. package/dist/components/ui/card.js +199 -30
  33. package/dist/components/ui/checkbox.cjs +42 -8
  34. package/dist/components/ui/checkbox.js +42 -8
  35. package/dist/components/ui/combobox.cjs +150 -53
  36. package/dist/components/ui/combobox.js +150 -53
  37. package/dist/components/ui/command.cjs +291 -53
  38. package/dist/components/ui/command.js +291 -53
  39. package/dist/components/ui/context-menu.cjs +370 -72
  40. package/dist/components/ui/context-menu.js +370 -72
  41. package/dist/components/ui/data-table.cjs +76 -39
  42. package/dist/components/ui/data-table.js +76 -39
  43. package/dist/components/ui/date-picker.cjs +179 -68
  44. package/dist/components/ui/date-picker.js +179 -68
  45. package/dist/components/ui/datetime-picker.cjs +225 -104
  46. package/dist/components/ui/datetime-picker.js +225 -104
  47. package/dist/components/ui/dialog.cjs +290 -78
  48. package/dist/components/ui/dialog.js +290 -78
  49. package/dist/components/ui/drawer.cjs +220 -39
  50. package/dist/components/ui/drawer.js +220 -39
  51. package/dist/components/ui/dropdown-menu.cjs +376 -73
  52. package/dist/components/ui/dropdown-menu.js +376 -73
  53. package/dist/components/ui/editable-cell.cjs +106 -42
  54. package/dist/components/ui/editable-cell.js +106 -42
  55. package/dist/components/ui/empty-state.cjs +106 -33
  56. package/dist/components/ui/empty-state.js +106 -33
  57. package/dist/components/ui/file-upload.cjs +405 -187
  58. package/dist/components/ui/file-upload.d.ts +3 -1
  59. package/dist/components/ui/file-upload.js +405 -187
  60. package/dist/components/ui/hover-card.cjs +46 -7
  61. package/dist/components/ui/hover-card.js +46 -7
  62. package/dist/components/ui/index.cjs +4 -4
  63. package/dist/components/ui/input.cjs +39 -6
  64. package/dist/components/ui/input.js +39 -6
  65. package/dist/components/ui/label.cjs +34 -5
  66. package/dist/components/ui/label.js +34 -5
  67. package/dist/components/ui/layout/column.cjs +209 -41
  68. package/dist/components/ui/layout/column.js +209 -41
  69. package/dist/components/ui/layout/grid.cjs +275 -60
  70. package/dist/components/ui/layout/grid.js +275 -60
  71. package/dist/components/ui/layout/row.cjs +209 -41
  72. package/dist/components/ui/layout/row.js +209 -41
  73. package/dist/components/ui/menubar.cjs +540 -106
  74. package/dist/components/ui/menubar.js +540 -106
  75. package/dist/components/ui/multi-select.cjs +289 -135
  76. package/dist/components/ui/multi-select.js +289 -135
  77. package/dist/components/ui/navigation-menu.cjs +244 -47
  78. package/dist/components/ui/navigation-menu.js +244 -47
  79. package/dist/components/ui/pagination.cjs +301 -65
  80. package/dist/components/ui/pagination.js +301 -65
  81. package/dist/components/ui/popover.cjs +48 -9
  82. package/dist/components/ui/popover.js +48 -9
  83. package/dist/components/ui/progress.cjs +48 -8
  84. package/dist/components/ui/progress.js +48 -8
  85. package/dist/components/ui/radio-group.cjs +74 -12
  86. package/dist/components/ui/radio-group.js +74 -12
  87. package/dist/components/ui/resizable.cjs +75 -10
  88. package/dist/components/ui/resizable.js +75 -10
  89. package/dist/components/ui/scroll-area.cjs +113 -21
  90. package/dist/components/ui/scroll-area.js +113 -21
  91. package/dist/components/ui/search.cjs +280 -98
  92. package/dist/components/ui/search.js +280 -98
  93. package/dist/components/ui/select.cjs +334 -68
  94. package/dist/components/ui/select.js +334 -68
  95. package/dist/components/ui/separator.cjs +48 -7
  96. package/dist/components/ui/separator.js +48 -7
  97. package/dist/components/ui/sheet.cjs +236 -50
  98. package/dist/components/ui/sheet.js +236 -50
  99. package/dist/components/ui/skeleton.cjs +31 -5
  100. package/dist/components/ui/skeleton.js +31 -5
  101. package/dist/components/ui/slider.cjs +71 -21
  102. package/dist/components/ui/slider.js +71 -21
  103. package/dist/components/ui/sonner.cjs +43 -15
  104. package/dist/components/ui/sonner.js +43 -15
  105. package/dist/components/ui/spinner.cjs +83 -21
  106. package/dist/components/ui/spinner.js +83 -21
  107. package/dist/components/ui/stats-card.cjs +169 -60
  108. package/dist/components/ui/stats-card.js +169 -60
  109. package/dist/components/ui/stepper.cjs +126 -57
  110. package/dist/components/ui/stepper.js +126 -57
  111. package/dist/components/ui/switch.cjs +42 -8
  112. package/dist/components/ui/switch.js +42 -8
  113. package/dist/components/ui/table.cjs +267 -42
  114. package/dist/components/ui/table.js +267 -42
  115. package/dist/components/ui/tabs.cjs +100 -15
  116. package/dist/components/ui/tabs.js +100 -15
  117. package/dist/components/ui/textarea.cjs +34 -5
  118. package/dist/components/ui/textarea.js +34 -5
  119. package/dist/components/ui/toggle-group.cjs +112 -19
  120. package/dist/components/ui/toggle-group.js +112 -19
  121. package/dist/components/ui/toggle.cjs +43 -6
  122. package/dist/components/ui/toggle.js +43 -6
  123. package/dist/components/ui/tooltip.cjs +40 -6
  124. package/dist/components/ui/tooltip.js +40 -6
  125. package/dist/examples/admin-layout-example.cjs +879 -347
  126. package/dist/examples/admin-layout-example.js +879 -347
  127. package/dist/examples/app-shell-example.cjs +14 -14
  128. package/dist/examples/app-shell-example.js +14 -14
  129. package/dist/examples/dashboard-example.cjs +495 -334
  130. package/dist/examples/dashboard-example.js +495 -334
  131. package/dist/examples/data-management-example.cjs +501 -303
  132. package/dist/examples/data-management-example.js +502 -304
  133. package/dist/examples/flow-editor-layout-example.cjs +435 -231
  134. package/dist/examples/flow-editor-layout-example.js +436 -232
  135. package/dist/examples/flow-start-example.cjs +508 -251
  136. package/dist/examples/flow-start-example.js +509 -252
  137. package/dist/examples/form-builder-example.cjs +1006 -602
  138. package/dist/examples/form-builder-example.js +1007 -603
  139. package/dist/examples/new-project-example.cjs +806 -474
  140. package/dist/examples/new-project-example.js +807 -475
  141. package/dist/examples/settings-example.cjs +792 -704
  142. package/dist/examples/settings-example.js +792 -704
  143. package/dist/examples/vscode-example.cjs +731 -236
  144. package/dist/examples/vscode-example.js +731 -236
  145. package/package.json +4 -1
@@ -29,6 +29,7 @@ __webpack_require__.d(__webpack_exports__, {
29
29
  FlowEditorLayout: ()=>FlowEditorLayout
30
30
  });
31
31
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
32
+ const compiler_runtime_namespaceObject = require("react/compiler-runtime");
32
33
  const external_lucide_react_namespaceObject = require("lucide-react");
33
34
  const external_react_namespaceObject = require("react");
34
35
  const button_cjs_namespaceObject = require("../components/ui/button.cjs");
@@ -41,260 +42,463 @@ const external_lib_index_cjs_namespaceObject = require("../lib/index.cjs");
41
42
  const react_label_namespaceObject = require("@radix-ui/react-label");
42
43
  const toggle_group_cjs_namespaceObject = require("../components/ui/toggle-group.cjs");
43
44
  const dropdown_menu_cjs_namespaceObject = require("../components/ui/dropdown-menu.cjs");
44
- function LatchedButton({ isActive, icon, label, onClick }) {
45
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(tooltip_cjs_namespaceObject.Tooltip, {
46
- children: [
47
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(tooltip_cjs_namespaceObject.TooltipTrigger, {
48
- asChild: true,
49
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
50
- variant: "ghost",
51
- size: "icon",
52
- className: (0, external_lib_index_cjs_namespaceObject.cn)('w-[40px] h-[40px] rounded-r-2xl rounded-l-none bg-background border', isActive ? '-ml-px w-[41px] border-y-border border-r-border border-l-background' : 'border-l-0 border-border hover:bg-muted'),
53
- onClick: onClick,
54
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
55
- className: (0, external_lib_index_cjs_namespaceObject.cn)('flex items-center justify-center w-6 h-6 rounded-lg transition-colors', isActive ? 'bg-primary text-background' : 'bg-transparent text-foreground'),
56
- children: icon
57
- })
58
- })
59
- }),
60
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(tooltip_cjs_namespaceObject.TooltipContent, {
61
- side: "right",
62
- children: label
45
+ function LatchedButton(t0) {
46
+ const $ = (0, compiler_runtime_namespaceObject.c)(16);
47
+ const { isActive, icon, label, onClick } = t0;
48
+ const t1 = isActive ? "-ml-px w-[41px] border-y-border border-r-border border-l-background" : "border-l-0 border-border hover:bg-muted";
49
+ let t2;
50
+ if ($[0] !== t1) {
51
+ t2 = (0, external_lib_index_cjs_namespaceObject.cn)("w-[40px] h-[40px] rounded-r-2xl rounded-l-none bg-background border", t1);
52
+ $[0] = t1;
53
+ $[1] = t2;
54
+ } else t2 = $[1];
55
+ const t3 = isActive ? "bg-primary text-background" : "bg-transparent text-foreground";
56
+ let t4;
57
+ if ($[2] !== t3) {
58
+ t4 = (0, external_lib_index_cjs_namespaceObject.cn)("flex items-center justify-center w-6 h-6 rounded-lg transition-colors", t3);
59
+ $[2] = t3;
60
+ $[3] = t4;
61
+ } else t4 = $[3];
62
+ let t5;
63
+ if ($[4] !== icon || $[5] !== t4) {
64
+ t5 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
65
+ className: t4,
66
+ children: icon
67
+ });
68
+ $[4] = icon;
69
+ $[5] = t4;
70
+ $[6] = t5;
71
+ } else t5 = $[6];
72
+ let t6;
73
+ if ($[7] !== onClick || $[8] !== t2 || $[9] !== t5) {
74
+ t6 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(tooltip_cjs_namespaceObject.TooltipTrigger, {
75
+ asChild: true,
76
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
77
+ variant: "ghost",
78
+ size: "icon",
79
+ className: t2,
80
+ onClick: onClick,
81
+ children: t5
63
82
  })
64
- ]
65
- });
83
+ });
84
+ $[7] = onClick;
85
+ $[8] = t2;
86
+ $[9] = t5;
87
+ $[10] = t6;
88
+ } else t6 = $[10];
89
+ let t7;
90
+ if ($[11] !== label) {
91
+ t7 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(tooltip_cjs_namespaceObject.TooltipContent, {
92
+ side: "right",
93
+ children: label
94
+ });
95
+ $[11] = label;
96
+ $[12] = t7;
97
+ } else t7 = $[12];
98
+ let t8;
99
+ if ($[13] !== t6 || $[14] !== t7) {
100
+ t8 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(tooltip_cjs_namespaceObject.Tooltip, {
101
+ children: [
102
+ t6,
103
+ t7
104
+ ]
105
+ });
106
+ $[13] = t6;
107
+ $[14] = t7;
108
+ $[15] = t8;
109
+ } else t8 = $[15];
110
+ return t8;
66
111
  }
67
- function FlowEditorLayout({ className, sidebarOptions, sidebarContent, activeSidebarId, sidebarOpen = false, onSidebarChange, onSidebarOpenChange, mainContent, bottomContent, bottomOpen = false }) {
112
+ function FlowEditorLayout(t0) {
113
+ const $ = (0, compiler_runtime_namespaceObject.c)(43);
114
+ const { className, sidebarOptions, sidebarContent, activeSidebarId, sidebarOpen: t1, onSidebarChange, onSidebarOpenChange, mainContent, bottomContent, bottomOpen: t2 } = t0;
115
+ const sidebarOpen = void 0 === t1 ? false : t1;
116
+ const bottomOpen = void 0 === t2 ? false : t2;
68
117
  const containerRef = (0, external_react_namespaceObject.useRef)(null);
69
118
  const bottomPanelRef = (0, external_react_namespaceObject.useRef)(null);
70
119
  const switcherRef = (0, external_react_namespaceObject.useRef)(null);
71
120
  const rafRef = (0, external_react_namespaceObject.useRef)(0);
72
- const updateSwitcherPosition = (0, external_react_namespaceObject.useCallback)(()=>{
73
- if (!containerRef.current || !switcherRef.current) return;
74
- if (!bottomOpen) {
75
- switcherRef.current.style.bottom = '24px';
76
- return;
77
- }
78
- const size = bottomPanelRef.current?.getSize();
79
- if (void 0 !== size) {
80
- const containerHeight = containerRef.current.offsetHeight;
81
- const bottomHeight = size / 100 * containerHeight;
82
- switcherRef.current.style.bottom = `${bottomHeight + 24}px`;
83
- }
84
- }, [
85
- bottomOpen
86
- ]);
87
- (0, external_react_namespaceObject.useEffect)(()=>{
88
- updateSwitcherPosition();
89
- const handleResize = ()=>{
121
+ let t3;
122
+ if ($[0] !== bottomOpen) {
123
+ t3 = ()=>{
124
+ if (!containerRef.current || !switcherRef.current) return;
125
+ if (!bottomOpen) {
126
+ switcherRef.current.style.bottom = "24px";
127
+ return;
128
+ }
129
+ const size = bottomPanelRef.current?.getSize();
130
+ if (void 0 !== size) {
131
+ const containerHeight = containerRef.current.offsetHeight;
132
+ const bottomHeight = size / 100 * containerHeight;
133
+ switcherRef.current.style.bottom = `${bottomHeight + 24}px`;
134
+ }
135
+ };
136
+ $[0] = bottomOpen;
137
+ $[1] = t3;
138
+ } else t3 = $[1];
139
+ const updateSwitcherPosition = t3;
140
+ let t4;
141
+ let t5;
142
+ if ($[2] !== updateSwitcherPosition) {
143
+ t4 = ()=>{
144
+ updateSwitcherPosition();
145
+ const handleResize = ()=>{
146
+ cancelAnimationFrame(rafRef.current);
147
+ rafRef.current = requestAnimationFrame(updateSwitcherPosition);
148
+ };
149
+ window.addEventListener("resize", handleResize);
150
+ return ()=>{
151
+ window.removeEventListener("resize", handleResize);
152
+ cancelAnimationFrame(rafRef.current);
153
+ };
154
+ };
155
+ t5 = [
156
+ updateSwitcherPosition
157
+ ];
158
+ $[2] = updateSwitcherPosition;
159
+ $[3] = t4;
160
+ $[4] = t5;
161
+ } else {
162
+ t4 = $[3];
163
+ t5 = $[4];
164
+ }
165
+ (0, external_react_namespaceObject.useEffect)(t4, t5);
166
+ let t6;
167
+ if ($[5] !== updateSwitcherPosition) {
168
+ t6 = ()=>{
90
169
  cancelAnimationFrame(rafRef.current);
91
170
  rafRef.current = requestAnimationFrame(updateSwitcherPosition);
92
171
  };
93
- window.addEventListener('resize', handleResize);
94
- return ()=>{
95
- window.removeEventListener('resize', handleResize);
96
- cancelAnimationFrame(rafRef.current);
172
+ $[5] = updateSwitcherPosition;
173
+ $[6] = t6;
174
+ } else t6 = $[6];
175
+ const handlePanelResize = t6;
176
+ let t7;
177
+ if ($[7] !== activeSidebarId || $[8] !== onSidebarChange || $[9] !== onSidebarOpenChange || $[10] !== sidebarOpen) {
178
+ t7 = (panelId)=>{
179
+ if (activeSidebarId === panelId) onSidebarOpenChange?.(!sidebarOpen);
180
+ else {
181
+ onSidebarChange?.(panelId);
182
+ if (!sidebarOpen) onSidebarOpenChange?.(true);
183
+ }
97
184
  };
98
- }, [
99
- updateSwitcherPosition
100
- ]);
101
- const handlePanelResize = (0, external_react_namespaceObject.useCallback)(()=>{
102
- cancelAnimationFrame(rafRef.current);
103
- rafRef.current = requestAnimationFrame(updateSwitcherPosition);
104
- }, [
105
- updateSwitcherPosition
106
- ]);
107
- const handlePanelSelect = (0, external_react_namespaceObject.useCallback)((panelId)=>{
108
- if (activeSidebarId === panelId) onSidebarOpenChange?.(!sidebarOpen);
109
- else {
110
- onSidebarChange?.(panelId);
111
- if (!sidebarOpen) onSidebarOpenChange?.(true);
112
- }
113
- }, [
114
- activeSidebarId,
115
- sidebarOpen,
116
- onSidebarChange,
117
- onSidebarOpenChange
118
- ]);
119
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(tooltip_cjs_namespaceObject.TooltipProvider, {
120
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.Row, {
121
- className: (0, external_lib_index_cjs_namespaceObject.cn)('h-screen bg-background', className),
185
+ $[7] = activeSidebarId;
186
+ $[8] = onSidebarChange;
187
+ $[9] = onSidebarOpenChange;
188
+ $[10] = sidebarOpen;
189
+ $[11] = t7;
190
+ } else t7 = $[11];
191
+ const handlePanelSelect = t7;
192
+ let t8;
193
+ if ($[12] !== className) {
194
+ t8 = (0, external_lib_index_cjs_namespaceObject.cn)("h-screen bg-background", className);
195
+ $[12] = className;
196
+ $[13] = t8;
197
+ } else t8 = $[13];
198
+ const t9 = sidebarOpen ? "w-72" : "w-0";
199
+ let t10;
200
+ if ($[14] !== t9) {
201
+ t10 = (0, external_lib_index_cjs_namespaceObject.cn)("bg-background overflow-hidden transition-all duration-300 ease-in-out", t9);
202
+ $[14] = t9;
203
+ $[15] = t10;
204
+ } else t10 = $[15];
205
+ let t11;
206
+ if ($[16] !== sidebarContent || $[17] !== sidebarOpen) {
207
+ t11 = sidebarOpen && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Column, {
208
+ className: "w-72 h-full",
209
+ children: sidebarContent
210
+ });
211
+ $[16] = sidebarContent;
212
+ $[17] = sidebarOpen;
213
+ $[18] = t11;
214
+ } else t11 = $[18];
215
+ let t12;
216
+ if ($[19] !== t10 || $[20] !== t11) {
217
+ t12 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
218
+ className: t10,
219
+ children: t11
220
+ });
221
+ $[19] = t10;
222
+ $[20] = t11;
223
+ $[21] = t12;
224
+ } else t12 = $[21];
225
+ let t13;
226
+ if ($[22] !== activeSidebarId || $[23] !== handlePanelSelect || $[24] !== sidebarOpen || $[25] !== sidebarOptions) {
227
+ t13 = sidebarOptions && sidebarOptions.length > 0 && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Column, {
228
+ ref: switcherRef,
229
+ gap: 2,
230
+ className: "absolute left-0 z-10",
231
+ style: {
232
+ bottom: 24
233
+ },
234
+ children: sidebarOptions.map((panel)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(LatchedButton, {
235
+ isActive: activeSidebarId === panel.id && sidebarOpen,
236
+ icon: panel.icon,
237
+ label: panel.label,
238
+ onClick: ()=>handlePanelSelect(panel.id)
239
+ }, panel.id))
240
+ });
241
+ $[22] = activeSidebarId;
242
+ $[23] = handlePanelSelect;
243
+ $[24] = sidebarOpen;
244
+ $[25] = sidebarOptions;
245
+ $[26] = t13;
246
+ } else t13 = $[26];
247
+ let t14;
248
+ if ($[27] !== mainContent) {
249
+ t14 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(resizable_cjs_namespaceObject.ResizablePanel, {
250
+ defaultSize: 100,
251
+ minSize: 30,
252
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Column, {
253
+ className: "flex-1 h-full",
254
+ children: mainContent
255
+ })
256
+ });
257
+ $[27] = mainContent;
258
+ $[28] = t14;
259
+ } else t14 = $[28];
260
+ let t15;
261
+ if ($[29] !== bottomContent || $[30] !== bottomOpen || $[31] !== handlePanelResize) {
262
+ t15 = bottomOpen && bottomContent && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
122
263
  children: [
123
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
124
- className: (0, external_lib_index_cjs_namespaceObject.cn)('bg-background overflow-hidden transition-all duration-300 ease-in-out', sidebarOpen ? 'w-72' : 'w-0'),
125
- children: sidebarOpen && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Column, {
126
- className: "w-72 h-full",
127
- children: sidebarContent
264
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(resizable_cjs_namespaceObject.ResizableHandle, {}),
265
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(resizable_cjs_namespaceObject.ResizablePanel, {
266
+ ref: bottomPanelRef,
267
+ defaultSize: 30,
268
+ minSize: 15,
269
+ maxSize: 50,
270
+ onResize: handlePanelResize,
271
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Column, {
272
+ className: "flex-1 h-full bg-background",
273
+ children: bottomContent
128
274
  })
129
- }),
130
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.Column, {
131
- ref: containerRef,
132
- className: "flex-1 relative bg-muted m-1 rounded-3xl border",
133
- children: [
134
- sidebarOptions && sidebarOptions.length > 0 && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Column, {
135
- ref: switcherRef,
136
- gap: 2,
137
- className: "absolute left-0 z-10",
138
- style: {
139
- bottom: 24
140
- },
141
- children: sidebarOptions.map((panel)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(LatchedButton, {
142
- isActive: activeSidebarId === panel.id && sidebarOpen,
143
- icon: panel.icon,
144
- label: panel.label,
145
- onClick: ()=>handlePanelSelect(panel.id)
146
- }, panel.id))
147
- }),
148
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Column, {
149
- className: "flex-1 relative rounded-3xl overflow-hidden",
150
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(resizable_cjs_namespaceObject.ResizablePanelGroup, {
151
- direction: "vertical",
152
- className: "h-full",
153
- children: [
154
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(resizable_cjs_namespaceObject.ResizablePanel, {
155
- defaultSize: 100,
156
- minSize: 30,
157
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Column, {
158
- className: "flex-1 h-full",
159
- children: mainContent
160
- })
161
- }),
162
- bottomOpen && bottomContent && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
163
- children: [
164
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(resizable_cjs_namespaceObject.ResizableHandle, {}),
165
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(resizable_cjs_namespaceObject.ResizablePanel, {
166
- ref: bottomPanelRef,
167
- defaultSize: 30,
168
- minSize: 15,
169
- maxSize: 50,
170
- onResize: handlePanelResize,
171
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Column, {
172
- className: "flex-1 h-full bg-background",
173
- children: bottomContent
174
- })
175
- })
176
- ]
177
- })
178
- ]
179
- })
180
- })
181
- ]
182
275
  })
183
276
  ]
184
- })
185
- });
277
+ });
278
+ $[29] = bottomContent;
279
+ $[30] = bottomOpen;
280
+ $[31] = handlePanelResize;
281
+ $[32] = t15;
282
+ } else t15 = $[32];
283
+ let t16;
284
+ if ($[33] !== t14 || $[34] !== t15) {
285
+ t16 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Column, {
286
+ className: "flex-1 relative rounded-3xl overflow-hidden",
287
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(resizable_cjs_namespaceObject.ResizablePanelGroup, {
288
+ direction: "vertical",
289
+ className: "h-full",
290
+ children: [
291
+ t14,
292
+ t15
293
+ ]
294
+ })
295
+ });
296
+ $[33] = t14;
297
+ $[34] = t15;
298
+ $[35] = t16;
299
+ } else t16 = $[35];
300
+ let t17;
301
+ if ($[36] !== t13 || $[37] !== t16) {
302
+ t17 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.Column, {
303
+ ref: containerRef,
304
+ className: "flex-1 relative bg-muted m-1 rounded-3xl border",
305
+ children: [
306
+ t13,
307
+ t16
308
+ ]
309
+ });
310
+ $[36] = t13;
311
+ $[37] = t16;
312
+ $[38] = t17;
313
+ } else t17 = $[38];
314
+ let t18;
315
+ if ($[39] !== t12 || $[40] !== t17 || $[41] !== t8) {
316
+ t18 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(tooltip_cjs_namespaceObject.TooltipProvider, {
317
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.Row, {
318
+ className: t8,
319
+ children: [
320
+ t12,
321
+ t17
322
+ ]
323
+ })
324
+ });
325
+ $[39] = t12;
326
+ $[40] = t17;
327
+ $[41] = t8;
328
+ $[42] = t18;
329
+ } else t18 = $[42];
330
+ return t18;
186
331
  }
187
332
  function CanvasToolbar() {
188
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Row, {
189
- className: "absolute bottom-4 left-1/2 -translate-x-1/2",
190
- align: "center",
191
- gap: 1,
192
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
193
- className: "flex items-center gap-1 rounded-lg border bg-background p-1.5",
333
+ const $ = (0, compiler_runtime_namespaceObject.c)(6);
334
+ let t0;
335
+ let t1;
336
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
337
+ t0 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(toggle_group_cjs_namespaceObject.ToggleGroup, {
338
+ type: "single",
339
+ defaultValue: "build",
340
+ className: "gap-0",
194
341
  children: [
195
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(toggle_group_cjs_namespaceObject.ToggleGroup, {
196
- type: "single",
197
- defaultValue: "build",
198
- className: "gap-0",
199
- children: [
200
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(toggle_group_cjs_namespaceObject.ToggleGroupItem, {
201
- value: "build",
202
- className: "h-8 rounded-md px-3 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",
203
- children: "Build"
204
- }),
205
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(toggle_group_cjs_namespaceObject.ToggleGroupItem, {
206
- value: "evaluate",
207
- className: "h-8 rounded-md px-3 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",
208
- children: "Evaluate"
209
- })
210
- ]
211
- }),
212
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(separator_cjs_namespaceObject.Separator, {
213
- orientation: "vertical",
214
- className: "mx-1 h-6"
215
- }),
216
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
217
- variant: "ghost",
218
- size: "icon",
219
- className: "h-8 w-8",
220
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Play, {
221
- className: "h-4 w-4"
222
- })
223
- }),
224
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(separator_cjs_namespaceObject.Separator, {
225
- orientation: "vertical",
226
- className: "mx-1 h-6"
342
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(toggle_group_cjs_namespaceObject.ToggleGroupItem, {
343
+ value: "build",
344
+ className: "h-8 rounded-md px-3 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",
345
+ children: "Build"
227
346
  }),
228
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
229
- variant: "ghost",
230
- size: "icon",
231
- className: "h-8 w-8",
232
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Plus, {
233
- className: "h-4 w-4"
234
- })
235
- }),
236
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
237
- variant: "ghost",
238
- size: "icon",
239
- className: "h-8 w-8",
240
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Copy, {
241
- className: "h-4 w-4"
242
- })
347
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(toggle_group_cjs_namespaceObject.ToggleGroupItem, {
348
+ value: "evaluate",
349
+ className: "h-8 rounded-md px-3 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",
350
+ children: "Evaluate"
243
351
  })
244
352
  ]
245
- })
246
- });
353
+ });
354
+ t1 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(separator_cjs_namespaceObject.Separator, {
355
+ orientation: "vertical",
356
+ className: "mx-1 h-6"
357
+ });
358
+ $[0] = t0;
359
+ $[1] = t1;
360
+ } else {
361
+ t0 = $[0];
362
+ t1 = $[1];
363
+ }
364
+ let t2;
365
+ let t3;
366
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
367
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
368
+ variant: "ghost",
369
+ size: "icon",
370
+ className: "h-8 w-8",
371
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Play, {
372
+ className: "h-4 w-4"
373
+ })
374
+ });
375
+ t3 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(separator_cjs_namespaceObject.Separator, {
376
+ orientation: "vertical",
377
+ className: "mx-1 h-6"
378
+ });
379
+ $[2] = t2;
380
+ $[3] = t3;
381
+ } else {
382
+ t2 = $[2];
383
+ t3 = $[3];
384
+ }
385
+ let t4;
386
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
387
+ t4 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
388
+ variant: "ghost",
389
+ size: "icon",
390
+ className: "h-8 w-8",
391
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Plus, {
392
+ className: "h-4 w-4"
393
+ })
394
+ });
395
+ $[4] = t4;
396
+ } else t4 = $[4];
397
+ let t5;
398
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
399
+ t5 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Row, {
400
+ className: "absolute bottom-4 left-1/2 -translate-x-1/2",
401
+ align: "center",
402
+ gap: 1,
403
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
404
+ className: "flex items-center gap-1 rounded-lg border bg-background p-1.5",
405
+ children: [
406
+ t0,
407
+ t1,
408
+ t2,
409
+ t3,
410
+ t4,
411
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
412
+ variant: "ghost",
413
+ size: "icon",
414
+ className: "h-8 w-8",
415
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Copy, {
416
+ className: "h-4 w-4"
417
+ })
418
+ })
419
+ ]
420
+ })
421
+ });
422
+ $[5] = t5;
423
+ } else t5 = $[5];
424
+ return t5;
247
425
  }
248
426
  function PublishToolbar() {
249
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Row, {
250
- className: "absolute bottom-4 right-4",
251
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
252
- className: "flex items-center gap-3 rounded-lg border bg-background p-1.5 pl-3",
253
- children: [
254
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_label_namespaceObject.Label, {
255
- htmlFor: "toolbar-active",
256
- className: "text-sm font-medium",
257
- children: "Active"
258
- }),
259
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(switch_cjs_namespaceObject.Switch, {
260
- id: "toolbar-active"
261
- }),
262
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(separator_cjs_namespaceObject.Separator, {
263
- orientation: "vertical",
264
- className: "h-6"
265
- }),
266
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenu, {
267
- children: [
268
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(dropdown_menu_cjs_namespaceObject.DropdownMenuTrigger, {
269
- asChild: true,
270
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
271
- variant: "ghost",
272
- size: "icon",
273
- className: "h-8 w-8",
274
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.MoreVertical, {
275
- className: "h-4 w-4"
276
- })
277
- })
278
- }),
279
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuContent, {
280
- align: "end",
281
- children: [
282
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
283
- children: "Edit"
284
- }),
285
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
286
- children: "Duplicate"
287
- }),
288
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
289
- children: "Delete"
290
- })
291
- ]
292
- })
293
- ]
427
+ const $ = (0, compiler_runtime_namespaceObject.c)(5);
428
+ let t0;
429
+ let t1;
430
+ let t2;
431
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
432
+ t0 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_label_namespaceObject.Label, {
433
+ htmlFor: "toolbar-active",
434
+ className: "text-sm font-medium",
435
+ children: "Active"
436
+ });
437
+ t1 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(switch_cjs_namespaceObject.Switch, {
438
+ id: "toolbar-active"
439
+ });
440
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(separator_cjs_namespaceObject.Separator, {
441
+ orientation: "vertical",
442
+ className: "h-6"
443
+ });
444
+ $[0] = t0;
445
+ $[1] = t1;
446
+ $[2] = t2;
447
+ } else {
448
+ t0 = $[0];
449
+ t1 = $[1];
450
+ t2 = $[2];
451
+ }
452
+ let t3;
453
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
454
+ t3 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(dropdown_menu_cjs_namespaceObject.DropdownMenuTrigger, {
455
+ asChild: true,
456
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
457
+ variant: "ghost",
458
+ size: "icon",
459
+ className: "h-8 w-8",
460
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.MoreVertical, {
461
+ className: "h-4 w-4"
294
462
  })
295
- ]
296
- })
297
- });
463
+ })
464
+ });
465
+ $[3] = t3;
466
+ } else t3 = $[3];
467
+ let t4;
468
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
469
+ t4 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Row, {
470
+ className: "absolute bottom-4 right-4",
471
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
472
+ className: "flex items-center gap-3 rounded-lg border bg-background p-1.5 pl-3",
473
+ children: [
474
+ t0,
475
+ t1,
476
+ t2,
477
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenu, {
478
+ children: [
479
+ t3,
480
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuContent, {
481
+ align: "end",
482
+ children: [
483
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
484
+ children: "Edit"
485
+ }),
486
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
487
+ children: "Duplicate"
488
+ }),
489
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
490
+ children: "Delete"
491
+ })
492
+ ]
493
+ })
494
+ ]
495
+ })
496
+ ]
497
+ })
498
+ });
499
+ $[4] = t4;
500
+ } else t4 = $[4];
501
+ return t4;
298
502
  }
299
503
  exports.CanvasToolbar = __webpack_exports__.CanvasToolbar;
300
504
  exports.FlowEditorLayout = __webpack_exports__.FlowEditorLayout;