@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,262 @@
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
+ FlowPanel: ()=>FlowPanel,
28
+ defaultFlowNavItems: ()=>defaultFlowNavItems
29
+ });
30
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
31
+ const external_lucide_react_namespaceObject = require("lucide-react");
32
+ const external_react_namespaceObject = require("react");
33
+ const avatar_cjs_namespaceObject = require("../ui/avatar.cjs");
34
+ const tooltip_cjs_namespaceObject = require("../ui/tooltip.cjs");
35
+ const index_cjs_namespaceObject = require("../../lib/index.cjs");
36
+ function UiPathLogo() {
37
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
38
+ className: "flex h-9 w-9 items-center justify-center rounded-lg bg-brand shadow-sm",
39
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
40
+ className: "text-xs font-bold text-foreground-on-accent select-none",
41
+ children: "Ui"
42
+ })
43
+ });
44
+ }
45
+ function IconRail({ navItems, activeId, onNavClick, hasShadow }) {
46
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
47
+ className: (0, index_cjs_namespaceObject.cn)('flex w-[60px] shrink-0 flex-col justify-between bg-surface-overlay', hasShadow && 'shadow-[0px_4px_16px_0px_rgba(0,0,0,0.25)]'),
48
+ children: [
49
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
50
+ className: "flex flex-col",
51
+ children: [
52
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
53
+ className: "flex h-[60px] w-[60px] shrink-0 items-center justify-center",
54
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(UiPathLogo, {})
55
+ }),
56
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("nav", {
57
+ className: "flex flex-col items-center pt-[18px]",
58
+ children: navItems.map((item)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(tooltip_cjs_namespaceObject.Tooltip, {
59
+ children: [
60
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(tooltip_cjs_namespaceObject.TooltipTrigger, {
61
+ asChild: true,
62
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
63
+ type: "button",
64
+ className: (0, index_cjs_namespaceObject.cn)('flex h-12 w-full items-center justify-center text-foreground-muted transition-colors hover:text-foreground', activeId === item.id && 'text-brand-foreground'),
65
+ onClick: ()=>onNavClick(item.id),
66
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
67
+ className: (0, index_cjs_namespaceObject.cn)('flex h-9 w-9 items-center justify-center rounded-lg transition-colors', activeId === item.id && 'bg-surface-hover'),
68
+ children: item.icon
69
+ })
70
+ })
71
+ }),
72
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(tooltip_cjs_namespaceObject.TooltipContent, {
73
+ side: "right",
74
+ children: item.label
75
+ })
76
+ ]
77
+ }, item.id))
78
+ })
79
+ ]
80
+ }),
81
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
82
+ className: "flex h-[60px] shrink-0 items-center justify-center",
83
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(avatar_cjs_namespaceObject.Avatar, {
84
+ className: "h-8 w-8 bg-surface-raised",
85
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(avatar_cjs_namespaceObject.AvatarFallback, {
86
+ className: "bg-surface-raised text-xs text-foreground-muted",
87
+ children: "U"
88
+ })
89
+ })
90
+ })
91
+ ]
92
+ });
93
+ }
94
+ function DefaultChatContent({ chatMessages }) {
95
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
96
+ className: "flex flex-1 flex-col justify-end gap-7 overflow-y-auto",
97
+ children: chatMessages.map((msg)=>'user' === msg.role ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
98
+ className: "flex flex-col items-end pr-6",
99
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
100
+ className: "max-w-[360px] rounded-tl-2xl rounded-tr-2xl rounded-bl-2xl rounded-br-[4px] bg-surface-raised px-6 py-4",
101
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
102
+ className: "text-base leading-6 tracking-[-0.4px] text-foreground",
103
+ children: msg.content
104
+ })
105
+ })
106
+ }, msg.id) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
107
+ className: "flex items-center gap-2",
108
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
109
+ className: "text-base font-medium leading-5 text-foreground-muted",
110
+ children: msg.content
111
+ })
112
+ }, msg.id))
113
+ });
114
+ }
115
+ function ChatInput() {
116
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
117
+ className: "flex flex-col gap-3",
118
+ children: [
119
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
120
+ className: "flex h-12 items-center rounded-2xl border border-border bg-surface-raised px-4",
121
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("input", {
122
+ type: "text",
123
+ placeholder: "Ask me to help build your Flow",
124
+ className: "flex-1 bg-transparent text-sm text-foreground placeholder:text-foreground-subtle outline-none",
125
+ readOnly: true
126
+ })
127
+ }),
128
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
129
+ className: "flex items-center justify-between",
130
+ children: [
131
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
132
+ className: "flex items-center gap-2",
133
+ children: [
134
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
135
+ type: "button",
136
+ className: "flex h-8 w-8 items-center justify-center rounded-lg text-foreground-muted hover:text-foreground",
137
+ "aria-label": "Add attachment",
138
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Plus, {
139
+ className: "h-5 w-5"
140
+ })
141
+ }),
142
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
143
+ type: "button",
144
+ className: "flex h-8 w-8 items-center justify-center rounded-lg text-foreground-muted hover:text-foreground",
145
+ "aria-label": "Add workflow",
146
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Workflow, {
147
+ className: "h-5 w-5"
148
+ })
149
+ })
150
+ ]
151
+ }),
152
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
153
+ type: "button",
154
+ className: "flex h-8 w-8 items-center justify-center rounded-full bg-brand text-foreground-on-accent",
155
+ "aria-label": "Submit message",
156
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CornerDownLeft, {
157
+ className: "h-4 w-4"
158
+ })
159
+ })
160
+ ]
161
+ })
162
+ ]
163
+ });
164
+ }
165
+ function ExpandedPanel({ chatMessages, expandedContent, onClose }) {
166
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
167
+ className: "flex h-full w-[420px] shrink-0 flex-col justify-between overflow-hidden bg-surface-overlay px-4 pb-4 pt-3",
168
+ children: [
169
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
170
+ className: "flex items-center justify-between",
171
+ children: [
172
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
173
+ className: "flex items-center gap-4 text-base tracking-[-0.6px] leading-9",
174
+ children: [
175
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
176
+ className: "font-bold text-foreground",
177
+ children: "Flow"
178
+ }),
179
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
180
+ className: "font-medium text-foreground-subtle",
181
+ children: "Autopilot"
182
+ })
183
+ ]
184
+ }),
185
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
186
+ type: "button",
187
+ className: "text-foreground-muted transition-colors hover:text-foreground",
188
+ onClick: onClose,
189
+ "aria-label": "Close panel",
190
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.PanelRightOpen, {
191
+ className: "h-5 w-5"
192
+ })
193
+ })
194
+ ]
195
+ }),
196
+ expandedContent ?? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(DefaultChatContent, {
197
+ chatMessages: chatMessages
198
+ }),
199
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ChatInput, {})
200
+ ]
201
+ });
202
+ }
203
+ function FlowPanel({ className, open = false, onOpenChange, navItems = [], activeNavId, onNavChange, chatMessages = [], expandedContent }) {
204
+ const [internalActiveId, setInternalActiveId] = external_react_namespaceObject.useState(navItems[0]?.id ?? '');
205
+ const activeId = activeNavId ?? internalActiveId;
206
+ const handleNavClick = (id)=>{
207
+ setInternalActiveId(id);
208
+ onNavChange?.(id);
209
+ onOpenChange?.(true);
210
+ };
211
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(tooltip_cjs_namespaceObject.TooltipProvider, {
212
+ delayDuration: 300,
213
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
214
+ className: (0, index_cjs_namespaceObject.cn)('flex h-full', className),
215
+ children: [
216
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(IconRail, {
217
+ navItems: navItems,
218
+ activeId: activeId,
219
+ onNavClick: handleNavClick,
220
+ hasShadow: open
221
+ }),
222
+ open && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ExpandedPanel, {
223
+ chatMessages: chatMessages,
224
+ expandedContent: expandedContent,
225
+ onClose: ()=>onOpenChange?.(false)
226
+ })
227
+ ]
228
+ })
229
+ });
230
+ }
231
+ const defaultFlowNavItems = [
232
+ {
233
+ id: 'chat',
234
+ label: 'Chat',
235
+ icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.MessageCircle, {
236
+ className: "h-5 w-5"
237
+ })
238
+ },
239
+ {
240
+ id: 'home',
241
+ label: 'Home',
242
+ icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.House, {
243
+ className: "h-5 w-5"
244
+ })
245
+ },
246
+ {
247
+ id: 'flows',
248
+ label: 'Flows',
249
+ icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Workflow, {
250
+ className: "h-5 w-5"
251
+ })
252
+ }
253
+ ];
254
+ exports.FlowPanel = __webpack_exports__.FlowPanel;
255
+ exports.defaultFlowNavItems = __webpack_exports__.defaultFlowNavItems;
256
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
257
+ "FlowPanel",
258
+ "defaultFlowNavItems"
259
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
260
+ Object.defineProperty(exports, '__esModule', {
261
+ value: true
262
+ });
@@ -0,0 +1,38 @@
1
+ import * as React from 'react';
2
+ export interface FlowPanelNavItem {
3
+ id: string;
4
+ label: string;
5
+ icon: React.ReactNode;
6
+ }
7
+ export interface FlowPanelChatMessage {
8
+ id: string;
9
+ role: 'user' | 'assistant';
10
+ content: string;
11
+ }
12
+ export interface FlowPanelProps {
13
+ className?: string;
14
+ /** Whether the expanded panel is open */
15
+ open?: boolean;
16
+ /** Callback to toggle expanded panel */
17
+ onOpenChange?: (open: boolean) => void;
18
+ /** Navigation items shown as icon buttons */
19
+ navItems?: FlowPanelNavItem[];
20
+ /** Currently active nav item ID */
21
+ activeNavId?: string;
22
+ /** Callback when a nav item is clicked */
23
+ onNavChange?: (navId: string) => void;
24
+ /** Chat messages to display in the expanded panel */
25
+ chatMessages?: FlowPanelChatMessage[];
26
+ /** Content to render inside the expanded panel (overrides default chat UI) */
27
+ expandedContent?: React.ReactNode;
28
+ }
29
+ /**
30
+ * Flow template left panel with collapsed icon rail and optional expanded
31
+ * chat panel.
32
+ *
33
+ * - **Collapsed**: 60px icon rail with logo, nav icons, and avatar
34
+ * - **Expanded**: Icon rail + 420px chat panel with Flow/Autopilot tabs,
35
+ * chat messages, and input field
36
+ */
37
+ export declare function FlowPanel({ className, open, onOpenChange, navItems, activeNavId, onNavChange, chatMessages, expandedContent, }: FlowPanelProps): import("react/jsx-runtime").JSX.Element;
38
+ export declare const defaultFlowNavItems: FlowPanelNavItem[];
@@ -0,0 +1,225 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { CornerDownLeft, House, MessageCircle, PanelRightOpen, Plus, Workflow } from "lucide-react";
3
+ import { useState } from "react";
4
+ import { Avatar, AvatarFallback } from "../ui/avatar.js";
5
+ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../ui/tooltip.js";
6
+ import { cn } from "../../lib/index.js";
7
+ function UiPathLogo() {
8
+ return /*#__PURE__*/ jsx("div", {
9
+ className: "flex h-9 w-9 items-center justify-center rounded-lg bg-brand shadow-sm",
10
+ children: /*#__PURE__*/ jsx("span", {
11
+ className: "text-xs font-bold text-foreground-on-accent select-none",
12
+ children: "Ui"
13
+ })
14
+ });
15
+ }
16
+ function IconRail({ navItems, activeId, onNavClick, hasShadow }) {
17
+ return /*#__PURE__*/ jsxs("div", {
18
+ className: cn('flex w-[60px] shrink-0 flex-col justify-between bg-surface-overlay', hasShadow && 'shadow-[0px_4px_16px_0px_rgba(0,0,0,0.25)]'),
19
+ children: [
20
+ /*#__PURE__*/ jsxs("div", {
21
+ className: "flex flex-col",
22
+ children: [
23
+ /*#__PURE__*/ jsx("div", {
24
+ className: "flex h-[60px] w-[60px] shrink-0 items-center justify-center",
25
+ children: /*#__PURE__*/ jsx(UiPathLogo, {})
26
+ }),
27
+ /*#__PURE__*/ jsx("nav", {
28
+ className: "flex flex-col items-center pt-[18px]",
29
+ children: navItems.map((item)=>/*#__PURE__*/ jsxs(Tooltip, {
30
+ children: [
31
+ /*#__PURE__*/ jsx(TooltipTrigger, {
32
+ asChild: true,
33
+ children: /*#__PURE__*/ jsx("button", {
34
+ type: "button",
35
+ className: cn('flex h-12 w-full items-center justify-center text-foreground-muted transition-colors hover:text-foreground', activeId === item.id && 'text-brand-foreground'),
36
+ onClick: ()=>onNavClick(item.id),
37
+ children: /*#__PURE__*/ jsx("div", {
38
+ className: cn('flex h-9 w-9 items-center justify-center rounded-lg transition-colors', activeId === item.id && 'bg-surface-hover'),
39
+ children: item.icon
40
+ })
41
+ })
42
+ }),
43
+ /*#__PURE__*/ jsx(TooltipContent, {
44
+ side: "right",
45
+ children: item.label
46
+ })
47
+ ]
48
+ }, item.id))
49
+ })
50
+ ]
51
+ }),
52
+ /*#__PURE__*/ jsx("div", {
53
+ className: "flex h-[60px] shrink-0 items-center justify-center",
54
+ children: /*#__PURE__*/ jsx(Avatar, {
55
+ className: "h-8 w-8 bg-surface-raised",
56
+ children: /*#__PURE__*/ jsx(AvatarFallback, {
57
+ className: "bg-surface-raised text-xs text-foreground-muted",
58
+ children: "U"
59
+ })
60
+ })
61
+ })
62
+ ]
63
+ });
64
+ }
65
+ function DefaultChatContent({ chatMessages }) {
66
+ return /*#__PURE__*/ jsx("div", {
67
+ className: "flex flex-1 flex-col justify-end gap-7 overflow-y-auto",
68
+ children: chatMessages.map((msg)=>'user' === msg.role ? /*#__PURE__*/ jsx("div", {
69
+ className: "flex flex-col items-end pr-6",
70
+ children: /*#__PURE__*/ jsx("div", {
71
+ className: "max-w-[360px] rounded-tl-2xl rounded-tr-2xl rounded-bl-2xl rounded-br-[4px] bg-surface-raised px-6 py-4",
72
+ children: /*#__PURE__*/ jsx("p", {
73
+ className: "text-base leading-6 tracking-[-0.4px] text-foreground",
74
+ children: msg.content
75
+ })
76
+ })
77
+ }, msg.id) : /*#__PURE__*/ jsx("div", {
78
+ className: "flex items-center gap-2",
79
+ children: /*#__PURE__*/ jsx("p", {
80
+ className: "text-base font-medium leading-5 text-foreground-muted",
81
+ children: msg.content
82
+ })
83
+ }, msg.id))
84
+ });
85
+ }
86
+ function ChatInput() {
87
+ return /*#__PURE__*/ jsxs("div", {
88
+ className: "flex flex-col gap-3",
89
+ children: [
90
+ /*#__PURE__*/ jsx("div", {
91
+ className: "flex h-12 items-center rounded-2xl border border-border bg-surface-raised px-4",
92
+ children: /*#__PURE__*/ jsx("input", {
93
+ type: "text",
94
+ placeholder: "Ask me to help build your Flow",
95
+ className: "flex-1 bg-transparent text-sm text-foreground placeholder:text-foreground-subtle outline-none",
96
+ readOnly: true
97
+ })
98
+ }),
99
+ /*#__PURE__*/ jsxs("div", {
100
+ className: "flex items-center justify-between",
101
+ children: [
102
+ /*#__PURE__*/ jsxs("div", {
103
+ className: "flex items-center gap-2",
104
+ children: [
105
+ /*#__PURE__*/ jsx("button", {
106
+ type: "button",
107
+ className: "flex h-8 w-8 items-center justify-center rounded-lg text-foreground-muted hover:text-foreground",
108
+ "aria-label": "Add attachment",
109
+ children: /*#__PURE__*/ jsx(Plus, {
110
+ className: "h-5 w-5"
111
+ })
112
+ }),
113
+ /*#__PURE__*/ jsx("button", {
114
+ type: "button",
115
+ className: "flex h-8 w-8 items-center justify-center rounded-lg text-foreground-muted hover:text-foreground",
116
+ "aria-label": "Add workflow",
117
+ children: /*#__PURE__*/ jsx(Workflow, {
118
+ className: "h-5 w-5"
119
+ })
120
+ })
121
+ ]
122
+ }),
123
+ /*#__PURE__*/ jsx("button", {
124
+ type: "button",
125
+ className: "flex h-8 w-8 items-center justify-center rounded-full bg-brand text-foreground-on-accent",
126
+ "aria-label": "Submit message",
127
+ children: /*#__PURE__*/ jsx(CornerDownLeft, {
128
+ className: "h-4 w-4"
129
+ })
130
+ })
131
+ ]
132
+ })
133
+ ]
134
+ });
135
+ }
136
+ function ExpandedPanel({ chatMessages, expandedContent, onClose }) {
137
+ return /*#__PURE__*/ jsxs("div", {
138
+ className: "flex h-full w-[420px] shrink-0 flex-col justify-between overflow-hidden bg-surface-overlay px-4 pb-4 pt-3",
139
+ children: [
140
+ /*#__PURE__*/ jsxs("div", {
141
+ className: "flex items-center justify-between",
142
+ children: [
143
+ /*#__PURE__*/ jsxs("div", {
144
+ className: "flex items-center gap-4 text-base tracking-[-0.6px] leading-9",
145
+ children: [
146
+ /*#__PURE__*/ jsx("span", {
147
+ className: "font-bold text-foreground",
148
+ children: "Flow"
149
+ }),
150
+ /*#__PURE__*/ jsx("span", {
151
+ className: "font-medium text-foreground-subtle",
152
+ children: "Autopilot"
153
+ })
154
+ ]
155
+ }),
156
+ /*#__PURE__*/ jsx("button", {
157
+ type: "button",
158
+ className: "text-foreground-muted transition-colors hover:text-foreground",
159
+ onClick: onClose,
160
+ "aria-label": "Close panel",
161
+ children: /*#__PURE__*/ jsx(PanelRightOpen, {
162
+ className: "h-5 w-5"
163
+ })
164
+ })
165
+ ]
166
+ }),
167
+ expandedContent ?? /*#__PURE__*/ jsx(DefaultChatContent, {
168
+ chatMessages: chatMessages
169
+ }),
170
+ /*#__PURE__*/ jsx(ChatInput, {})
171
+ ]
172
+ });
173
+ }
174
+ function FlowPanel({ className, open = false, onOpenChange, navItems = [], activeNavId, onNavChange, chatMessages = [], expandedContent }) {
175
+ const [internalActiveId, setInternalActiveId] = useState(navItems[0]?.id ?? '');
176
+ const activeId = activeNavId ?? internalActiveId;
177
+ const handleNavClick = (id)=>{
178
+ setInternalActiveId(id);
179
+ onNavChange?.(id);
180
+ onOpenChange?.(true);
181
+ };
182
+ return /*#__PURE__*/ jsx(TooltipProvider, {
183
+ delayDuration: 300,
184
+ children: /*#__PURE__*/ jsxs("div", {
185
+ className: cn('flex h-full', className),
186
+ children: [
187
+ /*#__PURE__*/ jsx(IconRail, {
188
+ navItems: navItems,
189
+ activeId: activeId,
190
+ onNavClick: handleNavClick,
191
+ hasShadow: open
192
+ }),
193
+ open && /*#__PURE__*/ jsx(ExpandedPanel, {
194
+ chatMessages: chatMessages,
195
+ expandedContent: expandedContent,
196
+ onClose: ()=>onOpenChange?.(false)
197
+ })
198
+ ]
199
+ })
200
+ });
201
+ }
202
+ const defaultFlowNavItems = [
203
+ {
204
+ id: 'chat',
205
+ label: 'Chat',
206
+ icon: /*#__PURE__*/ jsx(MessageCircle, {
207
+ className: "h-5 w-5"
208
+ })
209
+ },
210
+ {
211
+ id: 'home',
212
+ label: 'Home',
213
+ icon: /*#__PURE__*/ jsx(House, {
214
+ className: "h-5 w-5"
215
+ })
216
+ },
217
+ {
218
+ id: 'flows',
219
+ label: 'Flows',
220
+ icon: /*#__PURE__*/ jsx(Workflow, {
221
+ className: "h-5 w-5"
222
+ })
223
+ }
224
+ ];
225
+ export { FlowPanel, defaultFlowNavItems };
@@ -0,0 +1,74 @@
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
+ MaestroPanel: ()=>MaestroPanel
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 MaestroPanel({ side, children, className, isCollapsed = false, onToggle }) {
34
+ const isExpanded = !isCollapsed;
35
+ const isLeft = 'left' === side;
36
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
37
+ className: (0, index_cjs_namespaceObject.cn)('relative flex h-full shrink-0 flex-col bg-surface transition-all duration-300', isLeft ? 'border-r border-border-subtle' : 'border-l border-border-subtle', isExpanded ? 'w-[300px]' : 'w-8', className),
38
+ children: [
39
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
40
+ type: "button",
41
+ className: "absolute z-10 flex h-7 w-7 items-center justify-center rounded-full border border-border bg-surface text-foreground-muted transition-colors hover:bg-surface-hover hover:text-foreground",
42
+ style: {
43
+ top: 28,
44
+ ...isLeft ? {
45
+ right: 0,
46
+ transform: 'translateX(50%)'
47
+ } : {
48
+ left: 0,
49
+ transform: 'translateX(-50%)'
50
+ }
51
+ },
52
+ onClick: onToggle,
53
+ "aria-label": isExpanded ? 'Collapse panel' : 'Expand panel',
54
+ children: isLeft ? isExpanded ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronLeft, {
55
+ className: "h-4 w-4"
56
+ }) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronRight, {
57
+ className: "h-4 w-4"
58
+ }) : isExpanded ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronRight, {
59
+ className: "h-4 w-4"
60
+ }) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronLeft, {
61
+ className: "h-4 w-4"
62
+ })
63
+ }),
64
+ isExpanded && children
65
+ ]
66
+ });
67
+ }
68
+ exports.MaestroPanel = __webpack_exports__.MaestroPanel;
69
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
70
+ "MaestroPanel"
71
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
72
+ Object.defineProperty(exports, '__esModule', {
73
+ value: true
74
+ });
@@ -0,0 +1,30 @@
1
+ import * as React from 'react';
2
+ export interface MaestroPanelProps {
3
+ /** Determines border side, arrow direction, and arrow position */
4
+ side: 'left' | 'right';
5
+ /** Panel content — only rendered when expanded */
6
+ children?: React.ReactNode;
7
+ /** Additional CSS classes */
8
+ className?: string;
9
+ /** Controlled collapsed state */
10
+ isCollapsed?: boolean;
11
+ /** Callback when the toggle button is clicked */
12
+ onToggle?: () => void;
13
+ }
14
+ /**
15
+ * Collapsible panel for the Maestro template (controlled).
16
+ *
17
+ * Dimensions:
18
+ * - **Expanded**: 300px wide
19
+ * - **Collapsed**: 32px wide
20
+ * - **Height**: fills parent (`h-full`)
21
+ *
22
+ * The expand/collapse toggle button is a 28×28px circle that straddles
23
+ * the panel border — half inside the panel, half outside — positioned
24
+ * 28px from the top.
25
+ *
26
+ * Content is only rendered when expanded. Transition is 300ms.
27
+ *
28
+ * State is managed by the parent — pass `isCollapsed` and `onToggle`.
29
+ */
30
+ export declare function MaestroPanel({ side, children, className, isCollapsed, onToggle, }: MaestroPanelProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,40 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import "react";
3
+ import { ChevronLeft, ChevronRight } from "lucide-react";
4
+ import { cn } from "../../lib/index.js";
5
+ function MaestroPanel({ side, children, className, isCollapsed = false, onToggle }) {
6
+ const isExpanded = !isCollapsed;
7
+ const isLeft = 'left' === side;
8
+ return /*#__PURE__*/ jsxs("div", {
9
+ className: cn('relative flex h-full shrink-0 flex-col bg-surface transition-all duration-300', isLeft ? 'border-r border-border-subtle' : 'border-l border-border-subtle', isExpanded ? 'w-[300px]' : 'w-8', className),
10
+ children: [
11
+ /*#__PURE__*/ jsx("button", {
12
+ type: "button",
13
+ className: "absolute z-10 flex h-7 w-7 items-center justify-center rounded-full border border-border bg-surface text-foreground-muted transition-colors hover:bg-surface-hover hover:text-foreground",
14
+ style: {
15
+ top: 28,
16
+ ...isLeft ? {
17
+ right: 0,
18
+ transform: 'translateX(50%)'
19
+ } : {
20
+ left: 0,
21
+ transform: 'translateX(-50%)'
22
+ }
23
+ },
24
+ onClick: onToggle,
25
+ "aria-label": isExpanded ? 'Collapse panel' : 'Expand panel',
26
+ children: isLeft ? isExpanded ? /*#__PURE__*/ jsx(ChevronLeft, {
27
+ className: "h-4 w-4"
28
+ }) : /*#__PURE__*/ jsx(ChevronRight, {
29
+ className: "h-4 w-4"
30
+ }) : isExpanded ? /*#__PURE__*/ jsx(ChevronRight, {
31
+ className: "h-4 w-4"
32
+ }) : /*#__PURE__*/ jsx(ChevronLeft, {
33
+ className: "h-4 w-4"
34
+ })
35
+ }),
36
+ isExpanded && children
37
+ ]
38
+ });
39
+ }
40
+ export { MaestroPanel };