@uipath/apollo-wind 0.10.0 → 0.11.0-pr295.af4e744

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 (187) hide show
  1. package/dist/components/custom/canvas-studio.cjs +133 -0
  2. package/dist/components/custom/canvas-studio.d.ts +99 -0
  3. package/dist/components/custom/canvas-studio.js +93 -0
  4. package/dist/components/custom/canvas.cjs +44 -0
  5. package/dist/components/custom/canvas.d.ts +14 -0
  6. package/dist/components/custom/canvas.js +10 -0
  7. package/dist/components/custom/chat-composer.cjs +105 -0
  8. package/dist/components/custom/chat-composer.d.ts +15 -0
  9. package/dist/components/custom/chat-composer.js +71 -0
  10. package/dist/components/custom/chat-first-experience.cjs +87 -0
  11. package/dist/components/custom/chat-first-experience.d.ts +24 -0
  12. package/dist/components/custom/chat-first-experience.js +53 -0
  13. package/dist/components/custom/chat-prompt-suggestions.cjs +49 -0
  14. package/dist/components/custom/chat-prompt-suggestions.d.ts +18 -0
  15. package/dist/components/custom/chat-prompt-suggestions.js +15 -0
  16. package/dist/components/custom/chat-steps-view.cjs +308 -0
  17. package/dist/components/custom/chat-steps-view.d.ts +38 -0
  18. package/dist/components/custom/chat-steps-view.js +274 -0
  19. package/dist/components/custom/flow-node.cjs +76 -0
  20. package/dist/components/custom/flow-node.d.ts +20 -0
  21. package/dist/components/custom/flow-node.js +42 -0
  22. package/dist/components/custom/flow-properties-bar.cjs +103 -0
  23. package/dist/components/custom/flow-properties-bar.d.ts +21 -0
  24. package/dist/components/custom/flow-properties-bar.js +69 -0
  25. package/dist/components/custom/flow-properties-expanded.cjs +328 -0
  26. package/dist/components/custom/flow-properties-expanded.d.ts +21 -0
  27. package/dist/components/custom/flow-properties-expanded.js +294 -0
  28. package/dist/components/custom/flow-properties-simple.cjs +364 -0
  29. package/dist/components/custom/flow-properties-simple.d.ts +62 -0
  30. package/dist/components/custom/flow-properties-simple.js +330 -0
  31. package/dist/components/custom/flow-properties.cjs +56 -0
  32. package/dist/components/custom/flow-properties.d.ts +28 -0
  33. package/dist/components/custom/flow-properties.js +22 -0
  34. package/dist/components/custom/global-header.cjs +422 -0
  35. package/dist/components/custom/global-header.d.ts +38 -0
  36. package/dist/components/custom/global-header.js +388 -0
  37. package/dist/components/custom/grid-maestro.cjs +62 -0
  38. package/dist/components/custom/grid-maestro.d.ts +19 -0
  39. package/dist/components/custom/grid-maestro.js +22 -0
  40. package/dist/components/custom/page-header.cjs +92 -0
  41. package/dist/components/custom/page-header.d.ts +43 -0
  42. package/dist/components/custom/page-header.js +58 -0
  43. package/dist/components/custom/panel-delegate.cjs +285 -0
  44. package/dist/components/custom/panel-delegate.d.ts +34 -0
  45. package/dist/components/custom/panel-delegate.js +251 -0
  46. package/dist/components/custom/panel-flow.cjs +262 -0
  47. package/dist/components/custom/panel-flow.d.ts +38 -0
  48. package/dist/components/custom/panel-flow.js +225 -0
  49. package/dist/components/custom/panel-maestro.cjs +74 -0
  50. package/dist/components/custom/panel-maestro.d.ts +30 -0
  51. package/dist/components/custom/panel-maestro.js +40 -0
  52. package/dist/components/custom/panel-studio.cjs +122 -0
  53. package/dist/components/custom/panel-studio.d.ts +48 -0
  54. package/dist/components/custom/panel-studio.js +85 -0
  55. package/dist/components/custom/toolbar-canvas.cjs +124 -0
  56. package/dist/components/custom/toolbar-canvas.d.ts +15 -0
  57. package/dist/components/custom/toolbar-canvas.js +90 -0
  58. package/dist/components/custom/toolbar-view.cjs +121 -0
  59. package/dist/components/custom/toolbar-view.d.ts +14 -0
  60. package/dist/components/custom/toolbar-view.js +87 -0
  61. package/dist/components/custom/viewport-guard.cjs +92 -0
  62. package/dist/components/custom/viewport-guard.d.ts +23 -0
  63. package/dist/components/custom/viewport-guard.js +55 -0
  64. package/dist/components/forms/field-renderer.cjs +3 -1
  65. package/dist/components/forms/field-renderer.js +3 -1
  66. package/dist/components/forms/form-designer.cjs +13 -2
  67. package/dist/components/forms/form-designer.js +13 -2
  68. package/dist/components/forms/rules-engine.d.ts +1 -1
  69. package/dist/components/ui/breadcrumb.cjs +1 -2
  70. package/dist/components/ui/breadcrumb.js +1 -2
  71. package/dist/components/ui/button-group.cjs +5 -3
  72. package/dist/components/ui/button-group.d.ts +2 -2
  73. package/dist/components/ui/button-group.js +5 -3
  74. package/dist/components/ui/button.cjs +3 -3
  75. package/dist/components/ui/button.js +3 -3
  76. package/dist/components/ui/chart.cjs +223 -0
  77. package/dist/components/ui/chart.d.ts +40 -0
  78. package/dist/components/ui/chart.js +174 -0
  79. package/dist/components/ui/code-block.cjs +258 -0
  80. package/dist/components/ui/code-block.d.ts +48 -0
  81. package/dist/components/ui/code-block.js +207 -0
  82. package/dist/components/ui/data-table.cjs +22 -4
  83. package/dist/components/ui/data-table.d.ts +5 -2
  84. package/dist/components/ui/data-table.js +23 -5
  85. package/dist/components/ui/editable-cell.cjs +3 -10
  86. package/dist/components/ui/editable-cell.js +3 -10
  87. package/dist/components/ui/empty-state.cjs +17 -6
  88. package/dist/components/ui/empty-state.d.ts +7 -0
  89. package/dist/components/ui/empty-state.js +17 -6
  90. package/dist/components/ui/file-upload.cjs +8 -0
  91. package/dist/components/ui/file-upload.js +8 -0
  92. package/dist/components/ui/index.cjs +289 -149
  93. package/dist/components/ui/index.d.ts +2 -3
  94. package/dist/components/ui/index.js +2 -3
  95. package/dist/components/ui/multi-select.cjs +3 -10
  96. package/dist/components/ui/multi-select.js +3 -10
  97. package/dist/components/ui/pagination.cjs +0 -1
  98. package/dist/components/ui/pagination.js +0 -1
  99. package/dist/components/ui/resizable.d.ts +1 -1
  100. package/dist/components/ui/tree-view.cjs +1117 -0
  101. package/dist/components/ui/tree-view.d.ts +95 -0
  102. package/dist/components/ui/tree-view.js +1083 -0
  103. package/dist/foundation/Future/colors.cjs +92 -0
  104. package/dist/foundation/Future/colors.d.ts +132 -0
  105. package/dist/foundation/Future/colors.js +43 -0
  106. package/dist/foundation/Future/radius.cjs +46 -0
  107. package/dist/foundation/Future/radius.d.ts +33 -0
  108. package/dist/foundation/Future/radius.js +12 -0
  109. package/dist/foundation/Future/responsive.cjs +49 -0
  110. package/dist/foundation/Future/responsive.d.ts +40 -0
  111. package/dist/foundation/Future/responsive.js +12 -0
  112. package/dist/foundation/Future/shadows.cjs +48 -0
  113. package/dist/foundation/Future/shadows.d.ts +29 -0
  114. package/dist/foundation/Future/shadows.js +11 -0
  115. package/dist/foundation/Future/spacing.cjs +71 -0
  116. package/dist/foundation/Future/spacing.d.ts +80 -0
  117. package/dist/foundation/Future/spacing.js +31 -0
  118. package/dist/foundation/Future/strokes.cjs +59 -0
  119. package/dist/foundation/Future/strokes.d.ts +49 -0
  120. package/dist/foundation/Future/strokes.js +19 -0
  121. package/dist/foundation/Future/types.cjs +18 -0
  122. package/dist/foundation/Future/types.d.ts +25 -0
  123. package/dist/foundation/Future/types.js +0 -0
  124. package/dist/foundation/Future/typography.cjs +79 -0
  125. package/dist/foundation/Future/typography.d.ts +86 -0
  126. package/dist/foundation/Future/typography.js +33 -0
  127. package/dist/index.cjs +131 -221
  128. package/dist/index.d.ts +4 -3
  129. package/dist/index.js +3 -4
  130. package/dist/src/foundation/Future/themes.css +279 -0
  131. package/dist/styles.css +1941 -605
  132. package/dist/tailwind.css +874 -87
  133. package/dist/templates/Admin/settings-admin.d.ts +5 -0
  134. package/dist/templates/Admin/template-admin.d.ts +86 -0
  135. package/dist/templates/Delegate/template-delegate.d.ts +26 -0
  136. package/dist/templates/EmptyErrors/error-components.d.ts +3 -0
  137. package/dist/templates/Experiments/ideas-AnimatedGradientText.d.ts +23 -0
  138. package/dist/templates/Flow/template-flow.d.ts +57 -0
  139. package/dist/templates/Maestro/template-maestro.d.ts +52 -0
  140. package/dist/templates/Studio/template-studio.d.ts +102 -0
  141. package/dist/templates/{vscode-example.d.ts → VisualStudio/shell.d.ts} +1 -1
  142. package/package.json +12 -1
  143. package/dist/components/ui/menubar.cjs +0 -210
  144. package/dist/components/ui/menubar.d.ts +0 -28
  145. package/dist/components/ui/menubar.js +0 -131
  146. package/dist/components/ui/navigation-menu.cjs +0 -122
  147. package/dist/components/ui/navigation-menu.d.ts +0 -12
  148. package/dist/components/ui/navigation-menu.js +0 -64
  149. package/dist/examples/admin-layout-example.cjs +0 -490
  150. package/dist/examples/admin-layout-example.d.ts +0 -92
  151. package/dist/examples/admin-layout-example.js +0 -411
  152. package/dist/examples/app-shell-example.cjs +0 -452
  153. package/dist/examples/app-shell-example.d.ts +0 -52
  154. package/dist/examples/app-shell-example.js +0 -418
  155. package/dist/examples/dashboard-example.cjs +0 -590
  156. package/dist/examples/dashboard-example.d.ts +0 -11
  157. package/dist/examples/dashboard-example.js +0 -556
  158. package/dist/examples/data-management-example.cjs +0 -584
  159. package/dist/examples/data-management-example.d.ts +0 -1
  160. package/dist/examples/data-management-example.js +0 -550
  161. package/dist/examples/flow-editor-layout-example.cjs +0 -309
  162. package/dist/examples/flow-editor-layout-example.d.ts +0 -22
  163. package/dist/examples/flow-editor-layout-example.js +0 -269
  164. package/dist/examples/flow-start-example.cjs +0 -467
  165. package/dist/examples/flow-start-example.d.ts +0 -30
  166. package/dist/examples/flow-start-example.js +0 -433
  167. package/dist/examples/form-builder-example.cjs +0 -674
  168. package/dist/examples/form-builder-example.js +0 -640
  169. package/dist/examples/new-project-example.cjs +0 -550
  170. package/dist/examples/new-project-example.d.ts +0 -30
  171. package/dist/examples/new-project-example.js +0 -516
  172. package/dist/examples/settings-example.cjs +0 -864
  173. package/dist/examples/settings-example.d.ts +0 -1
  174. package/dist/examples/settings-example.js +0 -830
  175. package/dist/examples/vscode-example.cjs +0 -340
  176. package/dist/examples/vscode-example.d.ts +0 -80
  177. package/dist/examples/vscode-example.js +0 -270
  178. package/dist/templates/admin-layout-example.d.ts +0 -92
  179. package/dist/templates/app-shell-example.d.ts +0 -52
  180. package/dist/templates/dashboard-example.d.ts +0 -11
  181. package/dist/templates/data-management-example.d.ts +0 -1
  182. package/dist/templates/flow-editor-layout-example.d.ts +0 -22
  183. package/dist/templates/flow-start-example.d.ts +0 -30
  184. package/dist/templates/form-builder-example.d.ts +0 -1
  185. package/dist/templates/new-project-example.d.ts +0 -30
  186. package/dist/templates/settings-example.d.ts +0 -1
  187. /package/dist/{examples → templates/Forms}/form-builder-example.d.ts +0 -0
@@ -0,0 +1,330 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { Copy, FileJson, Folder, Redo2, RefreshCw, Settings2, Undo2, Variable, Webhook, X } from "lucide-react";
3
+ import { useState } from "react";
4
+ import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "../ui/accordion.js";
5
+ import { Input } from "../ui/input.js";
6
+ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../ui/select.js";
7
+ import { fontFamily } from "../../foundation/Future/typography.js";
8
+ import { cn } from "../../lib/index.js";
9
+ function FieldItem({ field, onGraphControl }) {
10
+ const [value, setValue] = useState(field.value ?? '');
11
+ return /*#__PURE__*/ jsxs("div", {
12
+ className: "flex flex-col gap-1 pt-4",
13
+ children: [
14
+ /*#__PURE__*/ jsxs("div", {
15
+ className: "flex items-center justify-between",
16
+ children: [
17
+ /*#__PURE__*/ jsxs("span", {
18
+ className: "text-sm font-medium leading-5 text-foreground-muted",
19
+ children: [
20
+ field.label,
21
+ field.required && '*'
22
+ ]
23
+ }),
24
+ field.showGraphControl && /*#__PURE__*/ jsx("button", {
25
+ type: "button",
26
+ className: "flex h-6 w-6 items-center justify-center rounded-lg bg-surface-overlay text-foreground-muted transition-colors hover:text-foreground",
27
+ onClick: ()=>onGraphControl?.(field.label),
28
+ "aria-label": "Graph control",
29
+ children: /*#__PURE__*/ jsx(Settings2, {
30
+ className: "h-4 w-4"
31
+ })
32
+ })
33
+ ]
34
+ }),
35
+ 'select' === field.type ? /*#__PURE__*/ jsxs(Select, {
36
+ value: value || void 0,
37
+ onValueChange: setValue,
38
+ children: [
39
+ /*#__PURE__*/ jsx(SelectTrigger, {
40
+ className: cn('h-10 rounded-xl border-0 shadow-sm', value ? 'bg-surface-hover text-foreground' : 'bg-surface-overlay text-foreground-muted'),
41
+ children: /*#__PURE__*/ jsx(SelectValue, {
42
+ placeholder: field.placeholder ?? 'Select...'
43
+ })
44
+ }),
45
+ /*#__PURE__*/ jsx(SelectContent, {
46
+ className: "border-border bg-surface-overlay text-foreground",
47
+ children: (field.options ?? []).map((opt)=>/*#__PURE__*/ jsx(SelectItem, {
48
+ value: opt.value,
49
+ className: "focus:bg-surface-hover focus:text-foreground",
50
+ children: opt.label
51
+ }, opt.value))
52
+ })
53
+ ]
54
+ }) : 'url' === field.type ? /*#__PURE__*/ jsxs("div", {
55
+ className: "flex h-10 items-center overflow-hidden rounded-xl bg-surface-overlay shadow-sm",
56
+ children: [
57
+ /*#__PURE__*/ jsx(Input, {
58
+ value: value,
59
+ onChange: (e)=>setValue(e.target.value),
60
+ placeholder: field.placeholder,
61
+ className: "h-full flex-1 rounded-none border-0 bg-transparent text-sm font-medium text-foreground-muted shadow-none placeholder:text-foreground-subtle focus-visible:ring-0"
62
+ }),
63
+ /*#__PURE__*/ jsx("button", {
64
+ type: "button",
65
+ className: "flex h-full w-[50px] items-center justify-center border-l border-border text-foreground-muted transition-colors hover:text-foreground",
66
+ "aria-label": "Browse files",
67
+ children: /*#__PURE__*/ jsx(Folder, {
68
+ className: "h-5 w-5"
69
+ })
70
+ })
71
+ ]
72
+ }) : /*#__PURE__*/ jsx(Input, {
73
+ value: value,
74
+ onChange: (e)=>setValue(e.target.value),
75
+ placeholder: field.placeholder,
76
+ className: cn('h-10 rounded-xl border-0 text-sm font-medium shadow-sm', value ? 'bg-surface-hover text-foreground' : 'bg-surface-overlay text-foreground-muted placeholder:text-foreground-subtle')
77
+ })
78
+ ]
79
+ });
80
+ }
81
+ const sampleJsonLines = [
82
+ '{',
83
+ ' "extracted": {',
84
+ ' "vendor": "Acme Corp",',
85
+ ' "amount": 1250,',
86
+ ' "date": "2024-01-15",',
87
+ ' "items": [',
88
+ ' {',
89
+ ' "description": "Professional',
90
+ ' Services",',
91
+ ' "amount": 1250',
92
+ ' }',
93
+ ' ]',
94
+ ' },',
95
+ ' "invoiceId": "INV-2024-001",',
96
+ ' "timestamp": "2026-01-28T19:51:41.085Z"',
97
+ '}'
98
+ ];
99
+ function EditorToolbarButton({ icon, label }) {
100
+ return /*#__PURE__*/ jsx("button", {
101
+ type: "button",
102
+ className: "flex h-8 w-8 items-center justify-center rounded-lg text-foreground-muted transition-colors hover:text-foreground",
103
+ "aria-label": label,
104
+ children: icon
105
+ });
106
+ }
107
+ function JsonEditorDrawer({ open, onClose }) {
108
+ if (!open) return null;
109
+ return /*#__PURE__*/ jsxs("div", {
110
+ className: "flex h-full w-full flex-col rounded-2xl border border-border bg-surface-raised",
111
+ children: [
112
+ /*#__PURE__*/ jsxs("div", {
113
+ className: "flex items-center justify-between px-6 py-4",
114
+ children: [
115
+ /*#__PURE__*/ jsx("span", {
116
+ className: "text-base font-semibold leading-5 tracking-[-0.4px] text-foreground",
117
+ children: "JSON editor"
118
+ }),
119
+ /*#__PURE__*/ jsx("button", {
120
+ type: "button",
121
+ className: "flex h-10 w-10 items-center justify-center rounded-xl bg-surface-overlay text-foreground-muted transition-colors hover:text-foreground",
122
+ onClick: onClose,
123
+ "aria-label": "Close editor",
124
+ children: /*#__PURE__*/ jsx(X, {
125
+ className: "h-5 w-5"
126
+ })
127
+ })
128
+ ]
129
+ }),
130
+ /*#__PURE__*/ jsxs("div", {
131
+ className: "flex items-center gap-2 px-6 pb-4",
132
+ children: [
133
+ /*#__PURE__*/ jsx(EditorToolbarButton, {
134
+ icon: /*#__PURE__*/ jsx(Undo2, {
135
+ className: "h-5 w-5"
136
+ }),
137
+ label: "Undo"
138
+ }),
139
+ /*#__PURE__*/ jsx(EditorToolbarButton, {
140
+ icon: /*#__PURE__*/ jsx(Redo2, {
141
+ className: "h-5 w-5"
142
+ }),
143
+ label: "Redo"
144
+ }),
145
+ /*#__PURE__*/ jsx(EditorToolbarButton, {
146
+ icon: /*#__PURE__*/ jsx(Variable, {
147
+ className: "h-5 w-5"
148
+ }),
149
+ label: "Variables"
150
+ }),
151
+ /*#__PURE__*/ jsx(EditorToolbarButton, {
152
+ icon: /*#__PURE__*/ jsx(Copy, {
153
+ className: "h-5 w-5"
154
+ }),
155
+ label: "Copy"
156
+ })
157
+ ]
158
+ }),
159
+ /*#__PURE__*/ jsx("div", {
160
+ className: "flex flex-1 flex-col overflow-hidden px-6 pb-4",
161
+ children: /*#__PURE__*/ jsxs("div", {
162
+ className: "flex flex-1 flex-col overflow-hidden rounded-xl border border-border-subtle bg-surface shadow-sm",
163
+ children: [
164
+ /*#__PURE__*/ jsxs("div", {
165
+ className: "flex items-center justify-between px-3 py-2.5",
166
+ children: [
167
+ /*#__PURE__*/ jsxs("div", {
168
+ className: "flex items-center gap-2 text-foreground-muted",
169
+ children: [
170
+ /*#__PURE__*/ jsx(FileJson, {
171
+ className: "h-4 w-4"
172
+ }),
173
+ /*#__PURE__*/ jsx("span", {
174
+ className: "text-sm font-medium leading-none",
175
+ children: "script.js"
176
+ })
177
+ ]
178
+ }),
179
+ /*#__PURE__*/ jsx("button", {
180
+ type: "button",
181
+ className: "flex h-5 w-5 items-center justify-center text-foreground-muted transition-colors hover:text-foreground",
182
+ "aria-label": "Refresh",
183
+ children: /*#__PURE__*/ jsx(RefreshCw, {
184
+ className: "h-4 w-4"
185
+ })
186
+ })
187
+ ]
188
+ }),
189
+ /*#__PURE__*/ jsxs("div", {
190
+ className: "flex flex-1 gap-6 overflow-auto px-3 py-3 text-sm leading-6",
191
+ style: {
192
+ fontFamily: fontFamily.monospace
193
+ },
194
+ children: [
195
+ /*#__PURE__*/ jsx("div", {
196
+ className: "flex flex-col text-right text-foreground-subtle select-none",
197
+ children: sampleJsonLines.map((_, i)=>/*#__PURE__*/ jsx("span", {
198
+ children: i + 1
199
+ }, i))
200
+ }),
201
+ /*#__PURE__*/ jsx("div", {
202
+ className: "flex flex-col whitespace-pre text-foreground-muted",
203
+ children: sampleJsonLines.map((line, i)=>/*#__PURE__*/ jsx("span", {
204
+ children: line
205
+ }, i))
206
+ })
207
+ ]
208
+ })
209
+ ]
210
+ })
211
+ }),
212
+ /*#__PURE__*/ jsxs("div", {
213
+ className: "flex items-center justify-end gap-2 px-6 py-4",
214
+ children: [
215
+ /*#__PURE__*/ jsx("button", {
216
+ type: "button",
217
+ className: "flex h-10 items-center gap-2 rounded-xl border border-border px-4 py-2 text-sm font-medium leading-5 text-foreground-subtle transition-colors hover:text-foreground",
218
+ onClick: onClose,
219
+ children: /*#__PURE__*/ jsx("span", {
220
+ children: "Cancel"
221
+ })
222
+ }),
223
+ /*#__PURE__*/ jsx("button", {
224
+ type: "button",
225
+ className: "flex h-10 items-center gap-2 rounded-xl bg-brand px-4 py-2 text-sm font-semibold leading-5 text-foreground-inverse transition-colors hover:bg-brand/90",
226
+ onClick: onClose,
227
+ children: /*#__PURE__*/ jsx("span", {
228
+ children: "Save"
229
+ })
230
+ })
231
+ ]
232
+ })
233
+ ]
234
+ });
235
+ }
236
+ function PropertiesSimple({ className, icon, title = 'HTTP Request', fields = [], sections = [], onClose, onGraphControl }) {
237
+ const [editorOpen, setEditorOpen] = useState(false);
238
+ const handleGraphControl = (fieldLabel)=>{
239
+ onGraphControl?.(fieldLabel);
240
+ setEditorOpen(true);
241
+ };
242
+ const defaultExpandedKeys = sections.filter((s)=>s.defaultExpanded).map((s)=>s.label);
243
+ return /*#__PURE__*/ jsxs("div", {
244
+ className: "relative h-full w-[360px] shrink-0",
245
+ children: [
246
+ /*#__PURE__*/ jsxs("div", {
247
+ className: cn('flex h-full w-full flex-col overflow-hidden rounded-2xl border border-border bg-surface-raised', className),
248
+ children: [
249
+ /*#__PURE__*/ jsxs("div", {
250
+ className: "flex items-center justify-between border-b border-border px-4 py-4",
251
+ children: [
252
+ /*#__PURE__*/ jsxs("div", {
253
+ className: "flex items-center gap-4",
254
+ children: [
255
+ /*#__PURE__*/ jsx("div", {
256
+ className: "flex h-10 w-10 items-center justify-center rounded-xl bg-brand-subtle",
257
+ children: icon ?? /*#__PURE__*/ jsx(Webhook, {
258
+ className: "h-6 w-6 text-brand-foreground"
259
+ })
260
+ }),
261
+ /*#__PURE__*/ jsx("span", {
262
+ className: "text-base font-semibold leading-5 tracking-[-0.4px] text-foreground",
263
+ children: title
264
+ })
265
+ ]
266
+ }),
267
+ /*#__PURE__*/ jsx("button", {
268
+ type: "button",
269
+ className: "flex h-10 w-10 items-center justify-center rounded-xl bg-surface-overlay text-foreground-muted transition-colors hover:text-foreground",
270
+ onClick: onClose,
271
+ "aria-label": "Close properties",
272
+ children: /*#__PURE__*/ jsx(X, {
273
+ className: "h-5 w-5"
274
+ })
275
+ })
276
+ ]
277
+ }),
278
+ /*#__PURE__*/ jsxs("div", {
279
+ className: "flex flex-1 flex-col overflow-y-auto",
280
+ children: [
281
+ fields.length > 0 && /*#__PURE__*/ jsx("div", {
282
+ className: "flex flex-col px-6 pb-2",
283
+ children: fields.map((field)=>/*#__PURE__*/ jsx(FieldItem, {
284
+ field: field,
285
+ onGraphControl: handleGraphControl
286
+ }, field.label))
287
+ }),
288
+ sections.length > 0 && /*#__PURE__*/ jsx(Accordion, {
289
+ type: "multiple",
290
+ defaultValue: defaultExpandedKeys,
291
+ className: "px-6",
292
+ children: sections.map((section)=>/*#__PURE__*/ jsxs(AccordionItem, {
293
+ value: section.label,
294
+ className: "border-b border-border-subtle",
295
+ children: [
296
+ /*#__PURE__*/ jsx(AccordionTrigger, {
297
+ className: "py-4 hover:no-underline [&>svg]:text-foreground-muted",
298
+ children: /*#__PURE__*/ jsx("span", {
299
+ className: "text-xs font-medium uppercase leading-6 tracking-wide text-foreground-muted",
300
+ children: section.label
301
+ })
302
+ }),
303
+ /*#__PURE__*/ jsx(AccordionContent, {
304
+ className: "pb-2 pt-0",
305
+ children: section.fields && section.fields.length > 0 && /*#__PURE__*/ jsx("div", {
306
+ className: "flex flex-col",
307
+ children: section.fields.map((field)=>/*#__PURE__*/ jsx(FieldItem, {
308
+ field: field,
309
+ onGraphControl: handleGraphControl
310
+ }, field.label))
311
+ })
312
+ })
313
+ ]
314
+ }, section.label))
315
+ })
316
+ ]
317
+ })
318
+ ]
319
+ }),
320
+ editorOpen && /*#__PURE__*/ jsx("div", {
321
+ className: "absolute inset-y-0 right-0 z-20 w-[480px]",
322
+ children: /*#__PURE__*/ jsx(JsonEditorDrawer, {
323
+ open: editorOpen,
324
+ onClose: ()=>setEditorOpen(false)
325
+ })
326
+ })
327
+ ]
328
+ });
329
+ }
330
+ export { PropertiesSimple };
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = (exports1, definition)=>{
5
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
+ enumerable: true,
7
+ get: definition[key]
8
+ });
9
+ };
10
+ })();
11
+ (()=>{
12
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
+ })();
14
+ (()=>{
15
+ __webpack_require__.r = (exports1)=>{
16
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
+ value: 'Module'
18
+ });
19
+ Object.defineProperty(exports1, '__esModule', {
20
+ value: true
21
+ });
22
+ };
23
+ })();
24
+ var __webpack_exports__ = {};
25
+ __webpack_require__.r(__webpack_exports__);
26
+ __webpack_require__.d(__webpack_exports__, {
27
+ FlowProperties: ()=>FlowProperties
28
+ });
29
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
+ const external_flow_properties_bar_cjs_namespaceObject = require("./flow-properties-bar.cjs");
31
+ const external_flow_properties_expanded_cjs_namespaceObject = require("./flow-properties-expanded.cjs");
32
+ const index_cjs_namespaceObject = require("../../lib/index.cjs");
33
+ function FlowProperties({ className, expanded = false, flowName = 'Invoice processing', flowType = 'Workflow', nodeName = 'Validate invoice', nodeType = 'AI Agent', activeTab = 'properties', onTabChange, onExpand, onClose }) {
34
+ if (expanded) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_flow_properties_expanded_cjs_namespaceObject.PropertiesExpanded, {
35
+ className: (0, index_cjs_namespaceObject.cn)(className),
36
+ nodeName: nodeName,
37
+ nodeType: nodeType,
38
+ activeTab: activeTab,
39
+ onClose: onClose
40
+ });
41
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_flow_properties_bar_cjs_namespaceObject.PropertiesBar, {
42
+ className: className,
43
+ flowName: flowName,
44
+ flowType: flowType,
45
+ activeTab: activeTab,
46
+ onTabChange: onTabChange,
47
+ onExpand: onExpand
48
+ });
49
+ }
50
+ exports.FlowProperties = __webpack_exports__.FlowProperties;
51
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
52
+ "FlowProperties"
53
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
54
+ Object.defineProperty(exports, '__esModule', {
55
+ value: true
56
+ });
@@ -0,0 +1,28 @@
1
+ export interface FlowPropertiesProps {
2
+ className?: string;
3
+ /** When false, renders the collapsed bar; when true, renders the expanded panel */
4
+ expanded?: boolean;
5
+ /** Flow name (collapsed bar) */
6
+ flowName?: string;
7
+ /** Flow type label, e.g. "Workflow" (collapsed bar) */
8
+ flowType?: string;
9
+ /** Node name (expanded panel header) */
10
+ nodeName?: string;
11
+ /** Node type label, e.g. "AI Agent" (expanded panel header) */
12
+ nodeType?: string;
13
+ /** Active tab: 'properties' | 'variables' */
14
+ activeTab?: 'properties' | 'variables';
15
+ /** Callback when tab changes */
16
+ onTabChange?: (tab: 'properties' | 'variables') => void;
17
+ /** Callback when user expands (e.g. clicks Properties in the bar) */
18
+ onExpand?: () => void;
19
+ /** Callback when user closes the expanded panel */
20
+ onClose?: () => void;
21
+ }
22
+ /**
23
+ * Flow properties UI in one of two states: collapsed (bar on canvas) or expanded (full panel).
24
+ *
25
+ * Use `expanded` to switch. Collapsed shows flow name/type and Properties/Variables tabs;
26
+ * expanded shows the full node properties panel with header, toolbar, code, and input/output.
27
+ */
28
+ export declare function FlowProperties({ className, expanded, flowName, flowType, nodeName, nodeType, activeTab, onTabChange, onExpand, onClose, }: FlowPropertiesProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,22 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { PropertiesBar } from "./flow-properties-bar.js";
3
+ import { PropertiesExpanded } from "./flow-properties-expanded.js";
4
+ import { cn } from "../../lib/index.js";
5
+ function FlowProperties({ className, expanded = false, flowName = 'Invoice processing', flowType = 'Workflow', nodeName = 'Validate invoice', nodeType = 'AI Agent', activeTab = 'properties', onTabChange, onExpand, onClose }) {
6
+ if (expanded) return /*#__PURE__*/ jsx(PropertiesExpanded, {
7
+ className: cn(className),
8
+ nodeName: nodeName,
9
+ nodeType: nodeType,
10
+ activeTab: activeTab,
11
+ onClose: onClose
12
+ });
13
+ return /*#__PURE__*/ jsx(PropertiesBar, {
14
+ className: className,
15
+ flowName: flowName,
16
+ flowType: flowType,
17
+ activeTab: activeTab,
18
+ onTabChange: onTabChange,
19
+ onExpand: onExpand
20
+ });
21
+ }
22
+ export { FlowProperties };