@uipath/apollo-wind 0.9.1 → 0.10.0-pr219.61d64eb

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 (158) hide show
  1. package/dist/components/custom/canvas.cjs +44 -0
  2. package/dist/components/custom/canvas.d.ts +14 -0
  3. package/dist/components/custom/canvas.js +10 -0
  4. package/dist/components/custom/chat-composer.cjs +105 -0
  5. package/dist/components/custom/chat-composer.d.ts +15 -0
  6. package/dist/components/custom/chat-composer.js +71 -0
  7. package/dist/components/custom/chat-first-experience.cjs +87 -0
  8. package/dist/components/custom/chat-first-experience.d.ts +24 -0
  9. package/dist/components/custom/chat-first-experience.js +53 -0
  10. package/dist/components/custom/chat-prompt-suggestions.cjs +48 -0
  11. package/dist/components/custom/chat-prompt-suggestions.d.ts +18 -0
  12. package/dist/components/custom/chat-prompt-suggestions.js +14 -0
  13. package/dist/components/custom/chat-steps-view.cjs +307 -0
  14. package/dist/components/custom/chat-steps-view.d.ts +38 -0
  15. package/dist/components/custom/chat-steps-view.js +273 -0
  16. package/dist/components/custom/flow-node.cjs +76 -0
  17. package/dist/components/custom/flow-node.d.ts +20 -0
  18. package/dist/components/custom/flow-node.js +42 -0
  19. package/dist/components/custom/flow-properties-bar.cjs +101 -0
  20. package/dist/components/custom/flow-properties-bar.d.ts +21 -0
  21. package/dist/components/custom/flow-properties-bar.js +67 -0
  22. package/dist/components/custom/flow-properties-expanded.cjs +324 -0
  23. package/dist/components/custom/flow-properties-expanded.d.ts +19 -0
  24. package/dist/components/custom/flow-properties-expanded.js +290 -0
  25. package/dist/components/custom/flow-properties-simple.cjs +357 -0
  26. package/dist/components/custom/flow-properties-simple.d.ts +62 -0
  27. package/dist/components/custom/flow-properties-simple.js +323 -0
  28. package/dist/components/custom/flow-properties.cjs +56 -0
  29. package/dist/components/custom/flow-properties.d.ts +28 -0
  30. package/dist/components/custom/flow-properties.js +22 -0
  31. package/dist/components/custom/global-header.cjs +415 -0
  32. package/dist/components/custom/global-header.d.ts +38 -0
  33. package/dist/components/custom/global-header.js +381 -0
  34. package/dist/components/custom/grid-maestro.cjs +62 -0
  35. package/dist/components/custom/grid-maestro.d.ts +19 -0
  36. package/dist/components/custom/grid-maestro.js +22 -0
  37. package/dist/components/custom/panel-delegate.cjs +280 -0
  38. package/dist/components/custom/panel-delegate.d.ts +34 -0
  39. package/dist/components/custom/panel-delegate.js +246 -0
  40. package/dist/components/custom/panel-flow.cjs +260 -0
  41. package/dist/components/custom/panel-flow.d.ts +38 -0
  42. package/dist/components/custom/panel-flow.js +223 -0
  43. package/dist/components/custom/panel-maestro.cjs +73 -0
  44. package/dist/components/custom/panel-maestro.d.ts +30 -0
  45. package/dist/components/custom/panel-maestro.js +39 -0
  46. package/dist/components/custom/toolbar-canvas.cjs +121 -0
  47. package/dist/components/custom/toolbar-canvas.d.ts +15 -0
  48. package/dist/components/custom/toolbar-canvas.js +87 -0
  49. package/dist/components/custom/toolbar-view.cjs +119 -0
  50. package/dist/components/custom/toolbar-view.d.ts +14 -0
  51. package/dist/components/custom/toolbar-view.js +85 -0
  52. package/dist/components/custom/viewport-guard.cjs +92 -0
  53. package/dist/components/custom/viewport-guard.d.ts +23 -0
  54. package/dist/components/custom/viewport-guard.js +55 -0
  55. package/dist/components/ui/button.cjs +3 -3
  56. package/dist/components/ui/button.js +3 -3
  57. package/dist/components/ui/chart.cjs +218 -0
  58. package/dist/components/ui/chart.d.ts +40 -0
  59. package/dist/components/ui/chart.js +169 -0
  60. package/dist/components/ui/data-table.cjs +14 -2
  61. package/dist/components/ui/data-table.d.ts +4 -1
  62. package/dist/components/ui/data-table.js +15 -3
  63. package/dist/components/ui/empty-state.cjs +17 -6
  64. package/dist/components/ui/empty-state.d.ts +7 -0
  65. package/dist/components/ui/empty-state.js +17 -6
  66. package/dist/components/ui/file-upload.cjs +82 -42
  67. package/dist/components/ui/file-upload.d.ts +3 -1
  68. package/dist/components/ui/file-upload.js +82 -42
  69. package/dist/components/ui/index.cjs +289 -149
  70. package/dist/components/ui/index.d.ts +2 -3
  71. package/dist/components/ui/index.js +2 -3
  72. package/dist/components/ui/tree-view.cjs +1101 -0
  73. package/dist/components/ui/tree-view.d.ts +95 -0
  74. package/dist/components/ui/tree-view.js +1067 -0
  75. package/dist/foundation/Future/colors.cjs +92 -0
  76. package/dist/foundation/Future/colors.d.ts +132 -0
  77. package/dist/foundation/Future/colors.js +43 -0
  78. package/dist/foundation/Future/radius.cjs +46 -0
  79. package/dist/foundation/Future/radius.d.ts +33 -0
  80. package/dist/foundation/Future/radius.js +12 -0
  81. package/dist/foundation/Future/responsive.cjs +49 -0
  82. package/dist/foundation/Future/responsive.d.ts +40 -0
  83. package/dist/foundation/Future/responsive.js +12 -0
  84. package/dist/foundation/Future/shadows.cjs +48 -0
  85. package/dist/foundation/Future/shadows.d.ts +29 -0
  86. package/dist/foundation/Future/shadows.js +11 -0
  87. package/dist/foundation/Future/spacing.cjs +71 -0
  88. package/dist/foundation/Future/spacing.d.ts +80 -0
  89. package/dist/foundation/Future/spacing.js +31 -0
  90. package/dist/foundation/Future/strokes.cjs +59 -0
  91. package/dist/foundation/Future/strokes.d.ts +49 -0
  92. package/dist/foundation/Future/strokes.js +19 -0
  93. package/dist/foundation/Future/types.cjs +18 -0
  94. package/dist/foundation/Future/types.d.ts +18 -0
  95. package/dist/foundation/Future/types.js +0 -0
  96. package/dist/foundation/Future/typography.cjs +79 -0
  97. package/dist/foundation/Future/typography.d.ts +86 -0
  98. package/dist/foundation/Future/typography.js +33 -0
  99. package/dist/index.cjs +125 -219
  100. package/dist/index.d.ts +2 -3
  101. package/dist/index.js +2 -4
  102. package/dist/src/foundation/Future/themes.css +371 -0
  103. package/dist/styles.css +1704 -582
  104. package/dist/tailwind.css +4 -0
  105. package/dist/templates/Admin/settings-admin.d.ts +5 -0
  106. package/dist/templates/Admin/template-admin.d.ts +105 -0
  107. package/dist/templates/Delegate/template-delegate.d.ts +26 -0
  108. package/dist/templates/EmptyErrors/error-components.d.ts +3 -0
  109. package/dist/templates/Experiments/ideas-AnimatedGradientText.d.ts +23 -0
  110. package/dist/templates/Flow/template-flow.d.ts +52 -0
  111. package/dist/templates/Maestro/template-maestro.d.ts +52 -0
  112. package/dist/templates/{vscode-example.d.ts → VisualStudio/shell.d.ts} +1 -1
  113. package/package.json +10 -1
  114. package/dist/components/ui/menubar.cjs +0 -210
  115. package/dist/components/ui/menubar.d.ts +0 -28
  116. package/dist/components/ui/menubar.js +0 -131
  117. package/dist/components/ui/navigation-menu.cjs +0 -122
  118. package/dist/components/ui/navigation-menu.d.ts +0 -12
  119. package/dist/components/ui/navigation-menu.js +0 -64
  120. package/dist/examples/admin-layout-example.cjs +0 -490
  121. package/dist/examples/admin-layout-example.d.ts +0 -92
  122. package/dist/examples/admin-layout-example.js +0 -411
  123. package/dist/examples/app-shell-example.cjs +0 -452
  124. package/dist/examples/app-shell-example.d.ts +0 -52
  125. package/dist/examples/app-shell-example.js +0 -418
  126. package/dist/examples/dashboard-example.cjs +0 -590
  127. package/dist/examples/dashboard-example.d.ts +0 -11
  128. package/dist/examples/dashboard-example.js +0 -556
  129. package/dist/examples/data-management-example.cjs +0 -584
  130. package/dist/examples/data-management-example.d.ts +0 -1
  131. package/dist/examples/data-management-example.js +0 -550
  132. package/dist/examples/flow-editor-layout-example.cjs +0 -309
  133. package/dist/examples/flow-editor-layout-example.d.ts +0 -22
  134. package/dist/examples/flow-editor-layout-example.js +0 -269
  135. package/dist/examples/flow-start-example.cjs +0 -467
  136. package/dist/examples/flow-start-example.d.ts +0 -30
  137. package/dist/examples/flow-start-example.js +0 -433
  138. package/dist/examples/form-builder-example.cjs +0 -674
  139. package/dist/examples/form-builder-example.js +0 -640
  140. package/dist/examples/new-project-example.cjs +0 -550
  141. package/dist/examples/new-project-example.d.ts +0 -30
  142. package/dist/examples/new-project-example.js +0 -516
  143. package/dist/examples/settings-example.cjs +0 -864
  144. package/dist/examples/settings-example.d.ts +0 -1
  145. package/dist/examples/settings-example.js +0 -830
  146. package/dist/examples/vscode-example.cjs +0 -340
  147. package/dist/examples/vscode-example.d.ts +0 -80
  148. package/dist/examples/vscode-example.js +0 -270
  149. package/dist/templates/admin-layout-example.d.ts +0 -92
  150. package/dist/templates/app-shell-example.d.ts +0 -52
  151. package/dist/templates/dashboard-example.d.ts +0 -11
  152. package/dist/templates/data-management-example.d.ts +0 -1
  153. package/dist/templates/flow-editor-layout-example.d.ts +0 -22
  154. package/dist/templates/flow-start-example.d.ts +0 -30
  155. package/dist/templates/form-builder-example.d.ts +0 -1
  156. package/dist/templates/new-project-example.d.ts +0 -30
  157. package/dist/templates/settings-example.d.ts +0 -1
  158. /package/dist/{examples → templates/Forms}/form-builder-example.d.ts +0 -0
@@ -0,0 +1,357 @@
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
+ PropertiesSimple: ()=>PropertiesSimple
28
+ });
29
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
+ const external_lucide_react_namespaceObject = require("lucide-react");
31
+ const external_react_namespaceObject = require("react");
32
+ const accordion_cjs_namespaceObject = require("../ui/accordion.cjs");
33
+ const input_cjs_namespaceObject = require("../ui/input.cjs");
34
+ const select_cjs_namespaceObject = require("../ui/select.cjs");
35
+ const typography_cjs_namespaceObject = require("../../foundation/Future/typography.cjs");
36
+ const index_cjs_namespaceObject = require("../../lib/index.cjs");
37
+ function FieldItem({ field, onGraphControl }) {
38
+ const [value, setValue] = external_react_namespaceObject.useState(field.value ?? '');
39
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
40
+ className: "flex flex-col gap-1 pt-4",
41
+ children: [
42
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
43
+ className: "flex items-center justify-between",
44
+ children: [
45
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("span", {
46
+ className: "text-sm font-medium leading-5 text-foreground-muted",
47
+ children: [
48
+ field.label,
49
+ field.required && '*'
50
+ ]
51
+ }),
52
+ field.showGraphControl && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
53
+ className: "flex h-6 w-6 items-center justify-center rounded-lg bg-surface-overlay text-foreground-muted transition-colors hover:text-foreground",
54
+ onClick: ()=>onGraphControl?.(field.label),
55
+ "aria-label": "Graph control",
56
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Settings2, {
57
+ className: "h-4 w-4"
58
+ })
59
+ })
60
+ ]
61
+ }),
62
+ 'select' === field.type ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(select_cjs_namespaceObject.Select, {
63
+ value: value || void 0,
64
+ onValueChange: setValue,
65
+ children: [
66
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectTrigger, {
67
+ className: (0, index_cjs_namespaceObject.cn)('h-10 rounded-xl border-0 shadow-sm', value ? 'bg-surface-hover text-foreground' : 'bg-surface-overlay text-foreground-muted'),
68
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectValue, {
69
+ placeholder: field.placeholder ?? 'Select...'
70
+ })
71
+ }),
72
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectContent, {
73
+ className: "border-border bg-surface-overlay text-foreground",
74
+ children: (field.options ?? []).map((opt)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectItem, {
75
+ value: opt.value,
76
+ className: "focus:bg-surface-hover focus:text-foreground",
77
+ children: opt.label
78
+ }, opt.value))
79
+ })
80
+ ]
81
+ }) : 'url' === field.type ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
82
+ className: "flex h-10 items-center overflow-hidden rounded-xl bg-surface-overlay shadow-sm",
83
+ children: [
84
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
85
+ value: value,
86
+ onChange: (e)=>setValue(e.target.value),
87
+ placeholder: field.placeholder,
88
+ 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"
89
+ }),
90
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
91
+ type: "button",
92
+ className: "flex h-full w-[50px] items-center justify-center border-l border-border text-foreground-muted transition-colors hover:text-foreground",
93
+ "aria-label": "Browse files",
94
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Folder, {
95
+ className: "h-5 w-5"
96
+ })
97
+ })
98
+ ]
99
+ }) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
100
+ value: value,
101
+ onChange: (e)=>setValue(e.target.value),
102
+ placeholder: field.placeholder,
103
+ className: (0, index_cjs_namespaceObject.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')
104
+ })
105
+ ]
106
+ });
107
+ }
108
+ const sampleJsonLines = [
109
+ '{',
110
+ ' "extracted": {',
111
+ ' "vendor": "Acme Corp",',
112
+ ' "amount": 1250,',
113
+ ' "date": "2024-01-15",',
114
+ ' "items": [',
115
+ ' {',
116
+ ' "description": "Professional',
117
+ ' Services",',
118
+ ' "amount": 1250',
119
+ ' }',
120
+ ' ]',
121
+ ' },',
122
+ ' "invoiceId": "INV-2024-001",',
123
+ ' "timestamp": "2026-01-28T19:51:41.085Z"',
124
+ '}'
125
+ ];
126
+ function EditorToolbarButton({ icon, label }) {
127
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
128
+ className: "flex h-8 w-8 items-center justify-center rounded-lg text-foreground-muted transition-colors hover:text-foreground",
129
+ "aria-label": label,
130
+ children: icon
131
+ });
132
+ }
133
+ function JsonEditorDrawer({ open, onClose }) {
134
+ if (!open) return null;
135
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
136
+ className: "flex h-full w-full flex-col rounded-2xl border border-border bg-surface-raised",
137
+ children: [
138
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
139
+ className: "flex items-center justify-between px-6 py-4",
140
+ children: [
141
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
142
+ className: "text-base font-semibold leading-5 tracking-[-0.4px] text-foreground",
143
+ children: "JSON editor"
144
+ }),
145
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
146
+ className: "flex h-10 w-10 items-center justify-center rounded-xl bg-surface-overlay text-foreground-muted transition-colors hover:text-foreground",
147
+ onClick: onClose,
148
+ "aria-label": "Close editor",
149
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.X, {
150
+ className: "h-5 w-5"
151
+ })
152
+ })
153
+ ]
154
+ }),
155
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
156
+ className: "flex items-center gap-2 px-6 pb-4",
157
+ children: [
158
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(EditorToolbarButton, {
159
+ icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Undo2, {
160
+ className: "h-5 w-5"
161
+ }),
162
+ label: "Undo"
163
+ }),
164
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(EditorToolbarButton, {
165
+ icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Redo2, {
166
+ className: "h-5 w-5"
167
+ }),
168
+ label: "Redo"
169
+ }),
170
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(EditorToolbarButton, {
171
+ icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Variable, {
172
+ className: "h-5 w-5"
173
+ }),
174
+ label: "Variables"
175
+ }),
176
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(EditorToolbarButton, {
177
+ icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Copy, {
178
+ className: "h-5 w-5"
179
+ }),
180
+ label: "Copy"
181
+ })
182
+ ]
183
+ }),
184
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
185
+ className: "flex flex-1 flex-col overflow-hidden px-6 pb-4",
186
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
187
+ className: "flex flex-1 flex-col overflow-hidden rounded-xl border border-border-subtle bg-surface shadow-sm",
188
+ children: [
189
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
190
+ className: "flex items-center justify-between px-3 py-2.5",
191
+ children: [
192
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
193
+ className: "flex items-center gap-2 text-foreground-muted",
194
+ children: [
195
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.FileJson, {
196
+ className: "h-4 w-4"
197
+ }),
198
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
199
+ className: "text-sm font-medium leading-none",
200
+ children: "script.js"
201
+ })
202
+ ]
203
+ }),
204
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
205
+ className: "flex h-5 w-5 items-center justify-center text-foreground-muted transition-colors hover:text-foreground",
206
+ "aria-label": "Refresh",
207
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.RefreshCw, {
208
+ className: "h-4 w-4"
209
+ })
210
+ })
211
+ ]
212
+ }),
213
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
214
+ className: "flex flex-1 gap-6 overflow-auto px-3 py-3 text-sm leading-6",
215
+ style: {
216
+ fontFamily: typography_cjs_namespaceObject.fontFamily.monospace
217
+ },
218
+ children: [
219
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
220
+ className: "flex flex-col text-right text-foreground-subtle select-none",
221
+ children: sampleJsonLines.map((_, i)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
222
+ children: i + 1
223
+ }, i))
224
+ }),
225
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
226
+ className: "flex flex-col whitespace-pre text-foreground-muted",
227
+ children: sampleJsonLines.map((line, i)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
228
+ children: line
229
+ }, i))
230
+ })
231
+ ]
232
+ })
233
+ ]
234
+ })
235
+ }),
236
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
237
+ className: "flex items-center justify-end gap-2 px-6 py-4",
238
+ children: [
239
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
240
+ 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",
241
+ onClick: onClose,
242
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
243
+ children: "Cancel"
244
+ })
245
+ }),
246
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
247
+ 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",
248
+ onClick: onClose,
249
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
250
+ children: "Save"
251
+ })
252
+ })
253
+ ]
254
+ })
255
+ ]
256
+ });
257
+ }
258
+ function PropertiesSimple({ className, icon, title = 'HTTP Request', fields = [], sections = [], onClose, onGraphControl }) {
259
+ const [editorOpen, setEditorOpen] = external_react_namespaceObject.useState(false);
260
+ const handleGraphControl = (fieldLabel)=>{
261
+ onGraphControl?.(fieldLabel);
262
+ setEditorOpen(true);
263
+ };
264
+ const defaultExpandedKeys = sections.filter((s)=>s.defaultExpanded).map((s)=>s.label);
265
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
266
+ className: "relative h-full w-[360px] shrink-0",
267
+ children: [
268
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
269
+ className: (0, index_cjs_namespaceObject.cn)('flex h-full w-full flex-col overflow-hidden rounded-2xl border border-border bg-surface-raised', className),
270
+ children: [
271
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
272
+ className: "flex items-center justify-between border-b border-border px-4 py-4",
273
+ children: [
274
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
275
+ className: "flex items-center gap-4",
276
+ children: [
277
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
278
+ className: "flex h-10 w-10 items-center justify-center rounded-xl bg-brand-subtle",
279
+ children: icon ?? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Webhook, {
280
+ className: "h-6 w-6 text-brand-foreground"
281
+ })
282
+ }),
283
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
284
+ className: "text-base font-semibold leading-5 tracking-[-0.4px] text-foreground",
285
+ children: title
286
+ })
287
+ ]
288
+ }),
289
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
290
+ className: "flex h-10 w-10 items-center justify-center rounded-xl bg-surface-overlay text-foreground-muted transition-colors hover:text-foreground",
291
+ onClick: onClose,
292
+ "aria-label": "Close properties",
293
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.X, {
294
+ className: "h-5 w-5"
295
+ })
296
+ })
297
+ ]
298
+ }),
299
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
300
+ className: "flex flex-1 flex-col overflow-y-auto",
301
+ children: [
302
+ fields.length > 0 && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
303
+ className: "flex flex-col px-6 pb-2",
304
+ children: fields.map((field)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(FieldItem, {
305
+ field: field,
306
+ onGraphControl: handleGraphControl
307
+ }, field.label))
308
+ }),
309
+ sections.length > 0 && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(accordion_cjs_namespaceObject.Accordion, {
310
+ type: "multiple",
311
+ defaultValue: defaultExpandedKeys,
312
+ className: "px-6",
313
+ children: sections.map((section)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(accordion_cjs_namespaceObject.AccordionItem, {
314
+ value: section.label,
315
+ className: "border-b border-border-subtle",
316
+ children: [
317
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(accordion_cjs_namespaceObject.AccordionTrigger, {
318
+ className: "py-4 hover:no-underline [&>svg]:text-foreground-muted",
319
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
320
+ className: "text-xs font-medium uppercase leading-6 tracking-wide text-foreground-muted",
321
+ children: section.label
322
+ })
323
+ }),
324
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(accordion_cjs_namespaceObject.AccordionContent, {
325
+ className: "pb-2 pt-0",
326
+ children: section.fields && section.fields.length > 0 && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
327
+ className: "flex flex-col",
328
+ children: section.fields.map((field)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(FieldItem, {
329
+ field: field,
330
+ onGraphControl: handleGraphControl
331
+ }, field.label))
332
+ })
333
+ })
334
+ ]
335
+ }, section.label))
336
+ })
337
+ ]
338
+ })
339
+ ]
340
+ }),
341
+ editorOpen && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
342
+ className: "absolute inset-y-0 right-0 z-20 w-[480px]",
343
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(JsonEditorDrawer, {
344
+ open: editorOpen,
345
+ onClose: ()=>setEditorOpen(false)
346
+ })
347
+ })
348
+ ]
349
+ });
350
+ }
351
+ exports.PropertiesSimple = __webpack_exports__.PropertiesSimple;
352
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
353
+ "PropertiesSimple"
354
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
355
+ Object.defineProperty(exports, '__esModule', {
356
+ value: true
357
+ });
@@ -0,0 +1,62 @@
1
+ import * as React from 'react';
2
+ export interface PropertiesSimpleFieldOption {
3
+ /** Option value */
4
+ value: string;
5
+ /** Display label */
6
+ label: string;
7
+ }
8
+ export interface PropertiesSimpleField {
9
+ /** Field label */
10
+ label: string;
11
+ /** Whether field is required (shows asterisk) */
12
+ required?: boolean;
13
+ /** Current value displayed in the field */
14
+ value?: string;
15
+ /** Placeholder when no value is set */
16
+ placeholder?: string;
17
+ /** Whether the field has a value (uses filled styling) */
18
+ filled?: boolean;
19
+ /** Field type */
20
+ type?: 'select' | 'input' | 'url';
21
+ /** Options for select fields */
22
+ options?: PropertiesSimpleFieldOption[];
23
+ /** Show the "Graph control" icon */
24
+ showGraphControl?: boolean;
25
+ }
26
+ export interface PropertiesSimpleSection {
27
+ /** Section label (displayed uppercase) */
28
+ label: string;
29
+ /** Whether the section starts expanded */
30
+ defaultExpanded?: boolean;
31
+ /** Fields inside the section */
32
+ fields?: PropertiesSimpleField[];
33
+ }
34
+ export interface PropertiesSimpleProps {
35
+ className?: string;
36
+ /** Icon to show in the header (defaults to Webhook) */
37
+ icon?: React.ReactNode;
38
+ /** Title shown in the header */
39
+ title?: string;
40
+ /** Top-level fields (above accordion sections) */
41
+ fields?: PropertiesSimpleField[];
42
+ /** Collapsible accordion sections */
43
+ sections?: PropertiesSimpleSection[];
44
+ /** Callback when close button is clicked */
45
+ onClose?: () => void;
46
+ /** Callback when Graph control is clicked on a field */
47
+ onGraphControl?: (fieldLabel: string) => void;
48
+ }
49
+ /**
50
+ * Simple properties panel for the Flow template.
51
+ *
52
+ * A compact right-side panel that shows node configuration fields
53
+ * and collapsible accordion sections. Based on the "Properties 1"
54
+ * Figma component.
55
+ *
56
+ * Features:
57
+ * - Header with node icon, title, and close button
58
+ * - Real shadcn Select, Input components for interactive fields
59
+ * - Shadcn Accordion for collapsible sections
60
+ * - "Graph control" icon opens a JSON editor drawer
61
+ */
62
+ export declare function PropertiesSimple({ className, icon, title, fields, sections, onClose, onGraphControl, }: PropertiesSimpleProps): import("react/jsx-runtime").JSX.Element;