@uipath/apollo-wind 0.10.0 → 0.11.0

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 +234 -0
  80. package/dist/components/ui/code-block.d.ts +48 -0
  81. package/dist/components/ui/code-block.js +200 -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 +287 -147
  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,274 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { ArrowLeft, Bot, Calendar, ChevronDown, Folder, List, Pause, Pencil, Repeat2 } from "lucide-react";
3
+ import { cn } from "../../lib/index.js";
4
+ function HeaderDivider() {
5
+ return /*#__PURE__*/ jsx("div", {
6
+ className: "h-9 w-px bg-border-subtle"
7
+ });
8
+ }
9
+ function StatusBadge({ label }) {
10
+ return /*#__PURE__*/ jsx("div", {
11
+ className: "flex h-10 items-center rounded-xl bg-brand-subtle px-4 py-2",
12
+ children: /*#__PURE__*/ jsx("span", {
13
+ className: "text-sm font-bold leading-5 text-foreground-accent-muted",
14
+ children: label
15
+ })
16
+ });
17
+ }
18
+ function StatItem({ value, label }) {
19
+ return /*#__PURE__*/ jsxs("div", {
20
+ className: "flex flex-col gap-0.5",
21
+ children: [
22
+ /*#__PURE__*/ jsx("span", {
23
+ className: "text-[15px] font-semibold leading-5 text-foreground",
24
+ children: value
25
+ }),
26
+ /*#__PURE__*/ jsx("span", {
27
+ className: "text-sm font-medium leading-5 text-foreground-subtle",
28
+ children: label
29
+ })
30
+ ]
31
+ });
32
+ }
33
+ function ActionButton({ icon, label, onClick }) {
34
+ return /*#__PURE__*/ jsxs("button", {
35
+ type: "button",
36
+ 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:border-border-hover hover:text-foreground-hover",
37
+ onClick: onClick,
38
+ children: [
39
+ icon,
40
+ label
41
+ ]
42
+ });
43
+ }
44
+ function TabBar({ activeTab }) {
45
+ const tabs = [
46
+ {
47
+ id: 'steps',
48
+ label: 'Steps',
49
+ icon: /*#__PURE__*/ jsx(List, {
50
+ className: "h-4 w-4"
51
+ })
52
+ },
53
+ {
54
+ id: 'history',
55
+ label: 'History',
56
+ icon: /*#__PURE__*/ jsx(Calendar, {
57
+ className: "h-4 w-4"
58
+ })
59
+ },
60
+ {
61
+ id: 'resources',
62
+ label: 'Resources',
63
+ icon: /*#__PURE__*/ jsx(Folder, {
64
+ className: "h-4 w-4"
65
+ })
66
+ }
67
+ ];
68
+ return /*#__PURE__*/ jsx("div", {
69
+ className: "flex h-10 items-center rounded-xl bg-surface-overlay p-1",
70
+ children: tabs.map((tab)=>/*#__PURE__*/ jsxs("div", {
71
+ className: cn('flex h-8 items-center gap-2 rounded-[10px] px-4 py-2 text-sm font-medium leading-5 transition-colors', activeTab === tab.id ? 'border border-border-subtle bg-surface text-foreground' : 'text-foreground-subtle hover:text-foreground-hover'),
72
+ children: [
73
+ tab.icon,
74
+ /*#__PURE__*/ jsx("span", {
75
+ children: tab.label
76
+ })
77
+ ]
78
+ }, tab.id))
79
+ });
80
+ }
81
+ function StepCard({ step, isHovered }) {
82
+ return /*#__PURE__*/ jsxs("div", {
83
+ className: cn('flex h-16 items-center justify-between rounded-2xl border px-4', isHovered ? 'border-border-subtle bg-surface-overlay shadow-[0px_4px_24px_0px_rgba(0,0,0,0.25)]' : 'border-border-subtle'),
84
+ children: [
85
+ /*#__PURE__*/ jsxs("div", {
86
+ className: "flex items-center gap-4",
87
+ children: [
88
+ /*#__PURE__*/ jsx("div", {
89
+ className: "flex h-8 w-8 items-center justify-center rounded-lg bg-surface-hover",
90
+ children: /*#__PURE__*/ jsx(Bot, {
91
+ className: "h-5 w-5 text-foreground"
92
+ })
93
+ }),
94
+ /*#__PURE__*/ jsxs("div", {
95
+ className: "flex flex-col",
96
+ children: [
97
+ /*#__PURE__*/ jsxs("div", {
98
+ className: "flex items-start gap-0.5",
99
+ children: [
100
+ /*#__PURE__*/ jsx("span", {
101
+ className: "text-sm font-semibold leading-5 tracking-[-0.35px] text-foreground",
102
+ children: step.title
103
+ }),
104
+ /*#__PURE__*/ jsxs("span", {
105
+ className: "ms-1 text-xs leading-5 tracking-[-0.3px] text-foreground-subtle",
106
+ children: [
107
+ "• ",
108
+ step.stepRange
109
+ ]
110
+ })
111
+ ]
112
+ }),
113
+ step.loop ? /*#__PURE__*/ jsxs("div", {
114
+ className: "flex items-center gap-2",
115
+ children: [
116
+ /*#__PURE__*/ jsx("div", {
117
+ className: "flex h-5 w-5 items-center justify-center rounded-[10px] bg-surface-muted",
118
+ children: /*#__PURE__*/ jsx(Repeat2, {
119
+ className: "h-3.5 w-3.5 text-foreground-on-accent"
120
+ })
121
+ }),
122
+ /*#__PURE__*/ jsxs("span", {
123
+ className: "text-sm leading-5 text-foreground-subtle",
124
+ children: [
125
+ /*#__PURE__*/ jsx("span", {
126
+ className: "font-semibold",
127
+ children: "Loop"
128
+ }),
129
+ ": ",
130
+ step.loop
131
+ ]
132
+ })
133
+ ]
134
+ }) : /*#__PURE__*/ jsx("span", {
135
+ className: "text-sm leading-5 tracking-[-0.35px] text-foreground-subtle",
136
+ children: step.description
137
+ })
138
+ ]
139
+ })
140
+ ]
141
+ }),
142
+ /*#__PURE__*/ jsx(ChevronDown, {
143
+ className: "h-4 w-4 shrink-0 text-foreground-subtle"
144
+ })
145
+ ]
146
+ });
147
+ }
148
+ function StepsView({ className, flowName = 'Flow name', flowDescription = 'Lorem ipsum dolor sit amet lorem ipsum.', status = 'ACTIVE', lastRun = '25/11/2025 12:15PM', totalRuns = 32, steps = [
149
+ {
150
+ id: '1',
151
+ title: 'Gmail',
152
+ stepRange: 'Steps 1 - 2',
153
+ description: 'Evaluate temperature conditions and proceed'
154
+ },
155
+ {
156
+ id: '2',
157
+ title: 'Salesforce',
158
+ stepRange: 'Steps 3 - 5',
159
+ description: 'Evaluate temperature conditions and proceed'
160
+ },
161
+ {
162
+ id: '3',
163
+ title: 'Excel - Process vendor from each file',
164
+ stepRange: 'Steps 6 - 12',
165
+ description: 'Evaluate temperature conditions and proceed',
166
+ loop: 'For each row in the "vendor list", starting from the second row.'
167
+ },
168
+ {
169
+ id: '4',
170
+ title: 'Gmail',
171
+ stepRange: 'Steps 1 - 2',
172
+ description: 'Evaluate temperature conditions and proceed'
173
+ }
174
+ ], activeTab = 'steps', onBack, onEdit, onPause }) {
175
+ return /*#__PURE__*/ jsxs("div", {
176
+ className: cn('flex flex-1 flex-col p-0', className),
177
+ children: [
178
+ /*#__PURE__*/ jsxs("div", {
179
+ className: "flex min-h-[78px] shrink-0 items-center gap-8 overflow-x-auto px-10 py-5",
180
+ children: [
181
+ /*#__PURE__*/ jsxs("div", {
182
+ className: "flex shrink-0 items-center gap-4",
183
+ children: [
184
+ /*#__PURE__*/ jsx("button", {
185
+ type: "button",
186
+ className: "shrink-0 text-foreground transition-colors hover:text-foreground",
187
+ onClick: onBack,
188
+ "aria-label": "Go back",
189
+ children: /*#__PURE__*/ jsx(ArrowLeft, {
190
+ className: "h-6 w-6"
191
+ })
192
+ }),
193
+ /*#__PURE__*/ jsxs("div", {
194
+ className: "flex flex-col gap-1",
195
+ children: [
196
+ /*#__PURE__*/ jsx("span", {
197
+ className: "whitespace-nowrap text-xl font-semibold leading-5 text-foreground",
198
+ children: flowName
199
+ }),
200
+ /*#__PURE__*/ jsx("span", {
201
+ className: "whitespace-nowrap text-sm font-medium leading-5 text-foreground-subtle",
202
+ children: flowDescription
203
+ })
204
+ ]
205
+ })
206
+ ]
207
+ }),
208
+ /*#__PURE__*/ jsx(HeaderDivider, {}),
209
+ /*#__PURE__*/ jsx(StatusBadge, {
210
+ label: status
211
+ }),
212
+ /*#__PURE__*/ jsxs("div", {
213
+ className: "flex shrink-0 items-center gap-4",
214
+ children: [
215
+ /*#__PURE__*/ jsx(HeaderDivider, {}),
216
+ /*#__PURE__*/ jsx(StatItem, {
217
+ value: lastRun,
218
+ label: "Last run"
219
+ })
220
+ ]
221
+ }),
222
+ /*#__PURE__*/ jsxs("div", {
223
+ className: "flex shrink-0 items-center gap-4",
224
+ children: [
225
+ /*#__PURE__*/ jsx(HeaderDivider, {}),
226
+ /*#__PURE__*/ jsx(StatItem, {
227
+ value: String(totalRuns),
228
+ label: "Total runs"
229
+ })
230
+ ]
231
+ }),
232
+ /*#__PURE__*/ jsx("div", {
233
+ className: "flex-1"
234
+ }),
235
+ /*#__PURE__*/ jsxs("div", {
236
+ className: "flex shrink-0 items-center gap-2",
237
+ children: [
238
+ /*#__PURE__*/ jsx(ActionButton, {
239
+ icon: /*#__PURE__*/ jsx(Pencil, {
240
+ className: "h-4 w-4"
241
+ }),
242
+ label: "Edit",
243
+ onClick: onEdit
244
+ }),
245
+ /*#__PURE__*/ jsx(ActionButton, {
246
+ icon: /*#__PURE__*/ jsx(Pause, {
247
+ className: "h-4 w-4"
248
+ }),
249
+ label: "Pause",
250
+ onClick: onPause
251
+ })
252
+ ]
253
+ })
254
+ ]
255
+ }),
256
+ /*#__PURE__*/ jsxs("div", {
257
+ className: "flex flex-1 flex-col rounded-t-2xl border border-border-muted bg-surface p-4",
258
+ children: [
259
+ /*#__PURE__*/ jsx(TabBar, {
260
+ activeTab: activeTab
261
+ }),
262
+ /*#__PURE__*/ jsx("div", {
263
+ className: "mx-auto mt-20 flex w-full max-w-[680px] flex-col gap-6",
264
+ children: steps.map((step, index)=>/*#__PURE__*/ jsx(StepCard, {
265
+ step: step,
266
+ isHovered: index === steps.length - 1
267
+ }, step.id))
268
+ })
269
+ ]
270
+ })
271
+ ]
272
+ });
273
+ }
274
+ export { StepsView };
@@ -0,0 +1,76 @@
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
+ FlowNode: ()=>FlowNode
28
+ });
29
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
+ require("react");
31
+ const external_lucide_react_namespaceObject = require("lucide-react");
32
+ const index_cjs_namespaceObject = require("../../lib/index.cjs");
33
+ function FlowNode({ className, title = 'Node title', icon, children, selected = false }) {
34
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
35
+ className: (0, index_cjs_namespaceObject.cn)('flex h-[360px] w-[360px] flex-col overflow-hidden rounded-2xl bg-surface-overlay px-4 pb-4 pt-2.5', selected && 'ring-1 ring-ring', className),
36
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
37
+ className: "flex flex-1 flex-col gap-[15px]",
38
+ children: [
39
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
40
+ className: "flex items-center justify-between",
41
+ children: [
42
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
43
+ className: "flex items-center gap-2.5",
44
+ children: [
45
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
46
+ className: "flex h-8 w-8 items-center justify-center rounded-lg bg-surface",
47
+ children: icon ?? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Bot, {
48
+ className: "h-5 w-5 text-foreground-muted"
49
+ })
50
+ }),
51
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
52
+ className: "text-sm font-medium text-foreground",
53
+ children: title
54
+ })
55
+ ]
56
+ }),
57
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronDown, {
58
+ className: "h-4 w-4 text-foreground-muted"
59
+ })
60
+ ]
61
+ }),
62
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
63
+ className: "flex-1 rounded-lg bg-surface-raised",
64
+ children: children
65
+ })
66
+ ]
67
+ })
68
+ });
69
+ }
70
+ exports.FlowNode = __webpack_exports__.FlowNode;
71
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
72
+ "FlowNode"
73
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
74
+ Object.defineProperty(exports, '__esModule', {
75
+ value: true
76
+ });
@@ -0,0 +1,20 @@
1
+ import * as React from 'react';
2
+ export interface FlowNodeProps {
3
+ className?: string;
4
+ /** Node title */
5
+ title?: string;
6
+ /** Icon to display in the node header */
7
+ icon?: React.ReactNode;
8
+ /** Node content (rendered below the header) */
9
+ children?: React.ReactNode;
10
+ /** Whether the node is selected */
11
+ selected?: boolean;
12
+ }
13
+ /**
14
+ * A canvas node card for the Flow template.
15
+ *
16
+ * Displays a dark card with a header (icon + title + chevron) and a
17
+ * content area. Default size is 360×360px but can be overridden via
18
+ * className.
19
+ */
20
+ export declare function FlowNode({ className, title, icon, children, selected, }: FlowNodeProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,42 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import "react";
3
+ import { Bot, ChevronDown } from "lucide-react";
4
+ import { cn } from "../../lib/index.js";
5
+ function FlowNode({ className, title = 'Node title', icon, children, selected = false }) {
6
+ return /*#__PURE__*/ jsx("div", {
7
+ className: cn('flex h-[360px] w-[360px] flex-col overflow-hidden rounded-2xl bg-surface-overlay px-4 pb-4 pt-2.5', selected && 'ring-1 ring-ring', className),
8
+ children: /*#__PURE__*/ jsxs("div", {
9
+ className: "flex flex-1 flex-col gap-[15px]",
10
+ children: [
11
+ /*#__PURE__*/ jsxs("div", {
12
+ className: "flex items-center justify-between",
13
+ children: [
14
+ /*#__PURE__*/ jsxs("div", {
15
+ className: "flex items-center gap-2.5",
16
+ children: [
17
+ /*#__PURE__*/ jsx("div", {
18
+ className: "flex h-8 w-8 items-center justify-center rounded-lg bg-surface",
19
+ children: icon ?? /*#__PURE__*/ jsx(Bot, {
20
+ className: "h-5 w-5 text-foreground-muted"
21
+ })
22
+ }),
23
+ /*#__PURE__*/ jsx("span", {
24
+ className: "text-sm font-medium text-foreground",
25
+ children: title
26
+ })
27
+ ]
28
+ }),
29
+ /*#__PURE__*/ jsx(ChevronDown, {
30
+ className: "h-4 w-4 text-foreground-muted"
31
+ })
32
+ ]
33
+ }),
34
+ /*#__PURE__*/ jsx("div", {
35
+ className: "flex-1 rounded-lg bg-surface-raised",
36
+ children: children
37
+ })
38
+ ]
39
+ })
40
+ });
41
+ }
42
+ export { FlowNode };
@@ -0,0 +1,103 @@
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
+ PropertiesBar: ()=>PropertiesBar
28
+ });
29
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
+ const external_lucide_react_namespaceObject = require("lucide-react");
31
+ const index_cjs_namespaceObject = require("../../lib/index.cjs");
32
+ function PropertiesBar({ className, flowName = 'Invoice processing', flowType = 'Workflow', activeTab = 'properties', onTabChange, onExpand }) {
33
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
34
+ className: (0, index_cjs_namespaceObject.cn)('flex h-16 items-center justify-between rounded-2xl bg-surface-raised px-4', className),
35
+ children: [
36
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
37
+ className: "flex items-center gap-4",
38
+ children: [
39
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
40
+ className: "flex h-10 w-10 items-center justify-center rounded-xl bg-brand-subtle",
41
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Workflow, {
42
+ className: "h-6 w-6 text-brand-foreground"
43
+ })
44
+ }),
45
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
46
+ className: "flex flex-col",
47
+ children: [
48
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
49
+ className: "text-base font-semibold leading-5 tracking-[-0.4px] text-foreground",
50
+ children: flowName
51
+ }),
52
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
53
+ className: "text-sm font-normal leading-5 tracking-[-0.35px] text-foreground-subtle",
54
+ children: flowType
55
+ })
56
+ ]
57
+ })
58
+ ]
59
+ }),
60
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
61
+ className: "flex h-10 items-center rounded-xl bg-surface-overlay border border-border-deep p-1",
62
+ children: [
63
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("button", {
64
+ type: "button",
65
+ className: (0, index_cjs_namespaceObject.cn)('flex h-8 items-center gap-2 rounded-[10px] px-4 py-2 text-sm font-medium leading-5 text-foreground-subtle transition-colors hover:text-foreground-hover', 'properties' === activeTab && 'text-foreground-subtle'),
66
+ onClick: ()=>{
67
+ onTabChange?.('properties');
68
+ onExpand?.();
69
+ },
70
+ children: [
71
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.TableProperties, {
72
+ className: "h-5 w-5"
73
+ }),
74
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
75
+ children: "Properties"
76
+ })
77
+ ]
78
+ }),
79
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("button", {
80
+ type: "button",
81
+ className: (0, index_cjs_namespaceObject.cn)('flex h-7 items-center gap-2 rounded-xl px-4 py-2 text-sm font-medium leading-5 text-foreground-subtle transition-colors', 'variables' === activeTab && 'text-foreground-subtle'),
82
+ onClick: ()=>onTabChange?.('variables'),
83
+ children: [
84
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Variable, {
85
+ className: "h-5 w-5"
86
+ }),
87
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
88
+ children: "Variables"
89
+ })
90
+ ]
91
+ })
92
+ ]
93
+ })
94
+ ]
95
+ });
96
+ }
97
+ exports.PropertiesBar = __webpack_exports__.PropertiesBar;
98
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
99
+ "PropertiesBar"
100
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
101
+ Object.defineProperty(exports, '__esModule', {
102
+ value: true
103
+ });
@@ -0,0 +1,21 @@
1
+ export interface PropertiesBarProps {
2
+ className?: string;
3
+ /** Flow name shown in the bar */
4
+ flowName?: string;
5
+ /** Flow type label (e.g. "Workflow") */
6
+ flowType?: string;
7
+ /** Active tab: 'properties' | 'variables' */
8
+ activeTab?: 'properties' | 'variables';
9
+ /** Callback when tab changes */
10
+ onTabChange?: (tab: 'properties' | 'variables') => void;
11
+ /** Callback when the properties tab is clicked to expand the panel */
12
+ onExpand?: () => void;
13
+ }
14
+ /**
15
+ * Collapsed properties bar for the Flow template.
16
+ *
17
+ * Anchored to the top-right of the canvas. Shows flow name/type on the left
18
+ * and Properties/Variables tab buttons on the right. A future update will
19
+ * introduce the expanded state.
20
+ */
21
+ export declare function PropertiesBar({ className, flowName, flowType, activeTab, onTabChange, onExpand, }: PropertiesBarProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,69 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { TableProperties, Variable, Workflow } from "lucide-react";
3
+ import { cn } from "../../lib/index.js";
4
+ function PropertiesBar({ className, flowName = 'Invoice processing', flowType = 'Workflow', activeTab = 'properties', onTabChange, onExpand }) {
5
+ return /*#__PURE__*/ jsxs("div", {
6
+ className: cn('flex h-16 items-center justify-between rounded-2xl bg-surface-raised px-4', className),
7
+ children: [
8
+ /*#__PURE__*/ jsxs("div", {
9
+ className: "flex items-center gap-4",
10
+ children: [
11
+ /*#__PURE__*/ jsx("div", {
12
+ className: "flex h-10 w-10 items-center justify-center rounded-xl bg-brand-subtle",
13
+ children: /*#__PURE__*/ jsx(Workflow, {
14
+ className: "h-6 w-6 text-brand-foreground"
15
+ })
16
+ }),
17
+ /*#__PURE__*/ jsxs("div", {
18
+ className: "flex flex-col",
19
+ children: [
20
+ /*#__PURE__*/ jsx("span", {
21
+ className: "text-base font-semibold leading-5 tracking-[-0.4px] text-foreground",
22
+ children: flowName
23
+ }),
24
+ /*#__PURE__*/ jsx("span", {
25
+ className: "text-sm font-normal leading-5 tracking-[-0.35px] text-foreground-subtle",
26
+ children: flowType
27
+ })
28
+ ]
29
+ })
30
+ ]
31
+ }),
32
+ /*#__PURE__*/ jsxs("div", {
33
+ className: "flex h-10 items-center rounded-xl bg-surface-overlay border border-border-deep p-1",
34
+ children: [
35
+ /*#__PURE__*/ jsxs("button", {
36
+ type: "button",
37
+ className: cn('flex h-8 items-center gap-2 rounded-[10px] px-4 py-2 text-sm font-medium leading-5 text-foreground-subtle transition-colors hover:text-foreground-hover', 'properties' === activeTab && 'text-foreground-subtle'),
38
+ onClick: ()=>{
39
+ onTabChange?.('properties');
40
+ onExpand?.();
41
+ },
42
+ children: [
43
+ /*#__PURE__*/ jsx(TableProperties, {
44
+ className: "h-5 w-5"
45
+ }),
46
+ /*#__PURE__*/ jsx("span", {
47
+ children: "Properties"
48
+ })
49
+ ]
50
+ }),
51
+ /*#__PURE__*/ jsxs("button", {
52
+ type: "button",
53
+ className: cn('flex h-7 items-center gap-2 rounded-xl px-4 py-2 text-sm font-medium leading-5 text-foreground-subtle transition-colors', 'variables' === activeTab && 'text-foreground-subtle'),
54
+ onClick: ()=>onTabChange?.('variables'),
55
+ children: [
56
+ /*#__PURE__*/ jsx(Variable, {
57
+ className: "h-5 w-5"
58
+ }),
59
+ /*#__PURE__*/ jsx("span", {
60
+ children: "Variables"
61
+ })
62
+ ]
63
+ })
64
+ ]
65
+ })
66
+ ]
67
+ });
68
+ }
69
+ export { PropertiesBar };