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