@uipath/apollo-wind 0.9.0 → 0.10.0-pr219.eea0372

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 (159) 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 +305 -165
  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/future-theme.css +297 -0
  103. package/dist/src/foundation/Future/legacy-theme.css +184 -0
  104. package/dist/styles.css +1678 -379
  105. package/dist/tailwind.css +4 -0
  106. package/dist/templates/Admin/settings-admin.d.ts +5 -0
  107. package/dist/templates/Admin/template-admin.d.ts +105 -0
  108. package/dist/templates/Delegate/template-delegate.d.ts +26 -0
  109. package/dist/templates/EmptyErrors/error-components.d.ts +3 -0
  110. package/dist/templates/Experiments/ideas-AnimatedGradientText.d.ts +23 -0
  111. package/dist/templates/Flow/template-flow.d.ts +52 -0
  112. package/dist/templates/Maestro/template-maestro.d.ts +52 -0
  113. package/dist/templates/{vscode-example.d.ts → VisualStudio/shell.d.ts} +1 -1
  114. package/package.json +10 -1
  115. package/dist/components/ui/menubar.cjs +0 -210
  116. package/dist/components/ui/menubar.d.ts +0 -28
  117. package/dist/components/ui/menubar.js +0 -131
  118. package/dist/components/ui/navigation-menu.cjs +0 -122
  119. package/dist/components/ui/navigation-menu.d.ts +0 -12
  120. package/dist/components/ui/navigation-menu.js +0 -64
  121. package/dist/examples/admin-layout-example.cjs +0 -490
  122. package/dist/examples/admin-layout-example.d.ts +0 -92
  123. package/dist/examples/admin-layout-example.js +0 -411
  124. package/dist/examples/app-shell-example.cjs +0 -452
  125. package/dist/examples/app-shell-example.d.ts +0 -52
  126. package/dist/examples/app-shell-example.js +0 -418
  127. package/dist/examples/dashboard-example.cjs +0 -590
  128. package/dist/examples/dashboard-example.d.ts +0 -11
  129. package/dist/examples/dashboard-example.js +0 -556
  130. package/dist/examples/data-management-example.cjs +0 -584
  131. package/dist/examples/data-management-example.d.ts +0 -1
  132. package/dist/examples/data-management-example.js +0 -550
  133. package/dist/examples/flow-editor-layout-example.cjs +0 -309
  134. package/dist/examples/flow-editor-layout-example.d.ts +0 -22
  135. package/dist/examples/flow-editor-layout-example.js +0 -269
  136. package/dist/examples/flow-start-example.cjs +0 -467
  137. package/dist/examples/flow-start-example.d.ts +0 -30
  138. package/dist/examples/flow-start-example.js +0 -433
  139. package/dist/examples/form-builder-example.cjs +0 -674
  140. package/dist/examples/form-builder-example.js +0 -640
  141. package/dist/examples/new-project-example.cjs +0 -550
  142. package/dist/examples/new-project-example.d.ts +0 -30
  143. package/dist/examples/new-project-example.js +0 -516
  144. package/dist/examples/settings-example.cjs +0 -864
  145. package/dist/examples/settings-example.d.ts +0 -1
  146. package/dist/examples/settings-example.js +0 -830
  147. package/dist/examples/vscode-example.cjs +0 -340
  148. package/dist/examples/vscode-example.d.ts +0 -80
  149. package/dist/examples/vscode-example.js +0 -270
  150. package/dist/templates/admin-layout-example.d.ts +0 -92
  151. package/dist/templates/app-shell-example.d.ts +0 -52
  152. package/dist/templates/dashboard-example.d.ts +0 -11
  153. package/dist/templates/data-management-example.d.ts +0 -1
  154. package/dist/templates/flow-editor-layout-example.d.ts +0 -22
  155. package/dist/templates/flow-start-example.d.ts +0 -30
  156. package/dist/templates/form-builder-example.d.ts +0 -1
  157. package/dist/templates/new-project-example.d.ts +0 -30
  158. package/dist/templates/settings-example.d.ts +0 -1
  159. /package/dist/{examples → templates/Forms}/form-builder-example.d.ts +0 -0
@@ -0,0 +1,415 @@
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
+ MaestroHeader: ()=>MaestroHeader
28
+ });
29
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
+ const external_react_namespaceObject = require("react");
31
+ const external_lucide_react_namespaceObject = require("lucide-react");
32
+ const avatar_cjs_namespaceObject = require("../ui/avatar.cjs");
33
+ const dropdown_menu_cjs_namespaceObject = require("../ui/dropdown-menu.cjs");
34
+ const popover_cjs_namespaceObject = require("../ui/popover.cjs");
35
+ const sheet_cjs_namespaceObject = require("../ui/sheet.cjs");
36
+ const react_dialog_namespaceObject = require("@radix-ui/react-dialog");
37
+ const index_cjs_namespaceObject = require("../../lib/index.cjs");
38
+ function HeaderIconButton({ icon, label, onClick, disabled }) {
39
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
40
+ className: (0, index_cjs_namespaceObject.cn)('flex h-8 w-8 items-center justify-center rounded-lg text-future-foreground-muted transition-colors', disabled ? 'cursor-default opacity-50' : 'hover:text-future-foreground'),
41
+ onClick: disabled ? void 0 : onClick,
42
+ "aria-label": label,
43
+ "aria-disabled": disabled,
44
+ disabled: disabled,
45
+ children: icon
46
+ });
47
+ }
48
+ function NotificationsDropdown({ themeClass }) {
49
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenu, {
50
+ children: [
51
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(dropdown_menu_cjs_namespaceObject.DropdownMenuTrigger, {
52
+ asChild: true,
53
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
54
+ className: "flex h-8 w-8 items-center justify-center rounded-lg text-future-foreground-muted transition-colors hover:text-future-foreground",
55
+ "aria-label": "Notifications",
56
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Bell, {
57
+ className: "h-5 w-5"
58
+ })
59
+ })
60
+ }),
61
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuContent, {
62
+ align: "end",
63
+ sideOffset: 8,
64
+ className: (0, index_cjs_namespaceObject.cn)(themeClass, 'w-72 border-future-border bg-future-surface-overlay'),
65
+ children: [
66
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
67
+ className: "px-3 py-2",
68
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
69
+ className: "text-sm font-semibold text-future-foreground",
70
+ children: "Notifications"
71
+ })
72
+ }),
73
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(dropdown_menu_cjs_namespaceObject.DropdownMenuSeparator, {
74
+ className: "bg-future-border-subtle"
75
+ }),
76
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
77
+ className: "flex items-start gap-3 px-3 py-2.5 text-future-foreground-muted focus:bg-future-surface-hover focus:text-future-foreground",
78
+ children: [
79
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Info, {
80
+ className: "mt-0.5 h-4 w-4 shrink-0 text-future-accent-foreground"
81
+ }),
82
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
83
+ className: "flex flex-col gap-0.5",
84
+ children: [
85
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
86
+ className: "text-sm font-medium text-future-foreground",
87
+ children: "System update available"
88
+ }),
89
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
90
+ className: "text-xs text-future-foreground-muted",
91
+ children: "A new version is ready to install"
92
+ })
93
+ ]
94
+ })
95
+ ]
96
+ }),
97
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
98
+ className: "flex items-start gap-3 px-3 py-2.5 text-future-foreground-muted focus:bg-future-surface-hover focus:text-future-foreground",
99
+ children: [
100
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CheckCircle2, {
101
+ className: "mt-0.5 h-4 w-4 shrink-0 text-green-500"
102
+ }),
103
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
104
+ className: "flex flex-col gap-0.5",
105
+ children: [
106
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
107
+ className: "text-sm font-medium text-future-foreground",
108
+ children: "Flow completed"
109
+ }),
110
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
111
+ className: "text-xs text-future-foreground-muted",
112
+ children: "Invoice processing finished successfully"
113
+ })
114
+ ]
115
+ })
116
+ ]
117
+ }),
118
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
119
+ className: "flex items-start gap-3 px-3 py-2.5 text-future-foreground-muted focus:bg-future-surface-hover focus:text-future-foreground",
120
+ children: [
121
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.AlertCircle, {
122
+ className: "mt-0.5 h-4 w-4 shrink-0 text-amber-500"
123
+ }),
124
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
125
+ className: "flex flex-col gap-0.5",
126
+ children: [
127
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
128
+ className: "text-sm font-medium text-future-foreground",
129
+ children: "Action required"
130
+ }),
131
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
132
+ className: "text-xs text-future-foreground-muted",
133
+ children: "Review pending approval requests"
134
+ })
135
+ ]
136
+ })
137
+ ]
138
+ })
139
+ ]
140
+ })
141
+ ]
142
+ });
143
+ }
144
+ function HelpDropdown({ themeClass }) {
145
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenu, {
146
+ children: [
147
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(dropdown_menu_cjs_namespaceObject.DropdownMenuTrigger, {
148
+ asChild: true,
149
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
150
+ className: "flex h-8 w-8 items-center justify-center rounded-lg text-future-foreground-muted transition-colors hover:text-future-foreground",
151
+ "aria-label": "Help",
152
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CircleHelp, {
153
+ className: "h-5 w-5"
154
+ })
155
+ })
156
+ }),
157
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuContent, {
158
+ align: "end",
159
+ sideOffset: 8,
160
+ className: (0, index_cjs_namespaceObject.cn)(themeClass, 'w-56 border-future-border bg-future-surface-overlay'),
161
+ children: [
162
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
163
+ className: "flex items-center gap-2 px-3 py-2 text-future-foreground-muted focus:bg-future-surface-hover focus:text-future-foreground",
164
+ children: [
165
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.BookOpen, {
166
+ className: "h-4 w-4"
167
+ }),
168
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
169
+ className: "text-sm",
170
+ children: "Documentation"
171
+ })
172
+ ]
173
+ }),
174
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
175
+ className: "flex items-center gap-2 px-3 py-2 text-future-foreground-muted focus:bg-future-surface-hover focus:text-future-foreground",
176
+ children: [
177
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.MessageCircleQuestion, {
178
+ className: "h-4 w-4"
179
+ }),
180
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
181
+ className: "text-sm",
182
+ children: "Support"
183
+ })
184
+ ]
185
+ }),
186
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
187
+ className: "flex items-center gap-2 px-3 py-2 text-future-foreground-muted focus:bg-future-surface-hover focus:text-future-foreground",
188
+ children: [
189
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ExternalLink, {
190
+ className: "h-4 w-4"
191
+ }),
192
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
193
+ className: "text-sm",
194
+ children: "Community forum"
195
+ })
196
+ ]
197
+ })
198
+ ]
199
+ })
200
+ ]
201
+ });
202
+ }
203
+ function TenantSelector({ tenantName, themeClass }) {
204
+ const [selected, setSelected] = external_react_namespaceObject.useState(tenantName);
205
+ const tenants = [
206
+ {
207
+ id: 'default',
208
+ label: 'Default Tenant'
209
+ },
210
+ {
211
+ id: 'production',
212
+ label: 'Production'
213
+ },
214
+ {
215
+ id: 'staging',
216
+ label: 'Staging'
217
+ }
218
+ ];
219
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(popover_cjs_namespaceObject.Popover, {
220
+ children: [
221
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(popover_cjs_namespaceObject.PopoverTrigger, {
222
+ asChild: true,
223
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("button", {
224
+ className: "flex items-center gap-1 rounded-lg px-2 py-1 text-sm text-future-foreground-muted transition-colors hover:text-future-foreground",
225
+ children: [
226
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("span", {
227
+ children: [
228
+ "Tenant: ",
229
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
230
+ className: "font-medium",
231
+ children: selected
232
+ })
233
+ ]
234
+ }),
235
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronDown, {
236
+ className: "h-4 w-4"
237
+ })
238
+ ]
239
+ })
240
+ }),
241
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(popover_cjs_namespaceObject.PopoverContent, {
242
+ align: "end",
243
+ sideOffset: 8,
244
+ className: (0, index_cjs_namespaceObject.cn)(themeClass, 'w-56 border-future-border bg-future-surface-overlay p-1'),
245
+ children: tenants.map((tenant)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
246
+ className: (0, index_cjs_namespaceObject.cn)('flex w-full items-center rounded-md px-3 py-2 text-sm transition-colors hover:bg-future-surface-hover', selected === tenant.label ? 'font-medium text-future-foreground' : 'text-future-foreground-muted'),
247
+ onClick: ()=>setSelected(tenant.label),
248
+ children: tenant.label
249
+ }, tenant.id))
250
+ })
251
+ ]
252
+ });
253
+ }
254
+ function AvatarDropdown({ themeClass }) {
255
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenu, {
256
+ children: [
257
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(dropdown_menu_cjs_namespaceObject.DropdownMenuTrigger, {
258
+ asChild: true,
259
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
260
+ className: "rounded-full focus:outline-none",
261
+ "aria-label": "User menu",
262
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(avatar_cjs_namespaceObject.Avatar, {
263
+ className: "h-6 w-6 bg-future-accent",
264
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(avatar_cjs_namespaceObject.AvatarFallback, {
265
+ className: "bg-future-accent text-[10px] font-bold text-future-foreground-on-accent",
266
+ children: "UI"
267
+ })
268
+ })
269
+ })
270
+ }),
271
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuContent, {
272
+ align: "end",
273
+ sideOffset: 8,
274
+ className: (0, index_cjs_namespaceObject.cn)(themeClass, 'w-48 border-future-border bg-future-surface-overlay'),
275
+ children: [
276
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
277
+ className: "flex items-center gap-2 px-3 py-2 text-future-foreground-muted focus:bg-future-surface-hover focus:text-future-foreground",
278
+ children: [
279
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.User, {
280
+ className: "h-4 w-4"
281
+ }),
282
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
283
+ className: "text-sm",
284
+ children: "Profile"
285
+ })
286
+ ]
287
+ }),
288
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
289
+ className: "flex items-center gap-2 px-3 py-2 text-future-foreground-muted focus:bg-future-surface-hover focus:text-future-foreground",
290
+ children: [
291
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Settings, {
292
+ className: "h-4 w-4"
293
+ }),
294
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
295
+ className: "text-sm",
296
+ children: "Settings"
297
+ })
298
+ ]
299
+ }),
300
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(dropdown_menu_cjs_namespaceObject.DropdownMenuSeparator, {
301
+ className: "bg-future-border-subtle"
302
+ }),
303
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
304
+ className: "flex items-center gap-2 px-3 py-2 text-future-foreground-muted focus:bg-future-surface-hover focus:text-future-foreground",
305
+ children: [
306
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.LogOut, {
307
+ className: "h-4 w-4"
308
+ }),
309
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
310
+ className: "text-sm",
311
+ children: "Log out"
312
+ })
313
+ ]
314
+ })
315
+ ]
316
+ })
317
+ ]
318
+ });
319
+ }
320
+ function MaestroHeader({ className, theme = 'dark', title = 'Maestro', tenantName = 'Select', menuContent, onSearchClick }) {
321
+ const themeClass = 'legacy-dark' === theme ? 'legacy-dark' : 'legacy-light' === theme ? 'legacy-light' : 'wireframe' === theme ? 'future-wireframe' : 'vertex' === theme ? 'future-vertex' : 'canvas' === theme ? 'future-canvas' : 'light' === theme ? 'future-light' : 'future-dark';
322
+ const [menuOpen, setMenuOpen] = external_react_namespaceObject.useState(false);
323
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
324
+ children: [
325
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("header", {
326
+ className: (0, index_cjs_namespaceObject.cn)('flex h-12 shrink-0 items-center justify-between border-b border-future-border-subtle bg-future-surface px-4', className),
327
+ children: [
328
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
329
+ className: "flex items-center gap-3",
330
+ children: [
331
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
332
+ className: "flex h-8 w-8 items-center justify-center rounded-lg text-future-foreground-muted transition-colors hover:text-future-foreground",
333
+ onClick: ()=>menuContent && setMenuOpen((prev)=>!prev),
334
+ "aria-label": "App launcher",
335
+ children: menuOpen ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.X, {
336
+ className: "h-5 w-5"
337
+ }) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Menu, {
338
+ className: "h-5 w-5"
339
+ })
340
+ }),
341
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
342
+ className: "text-sm font-semibold text-future-foreground",
343
+ children: title
344
+ })
345
+ ]
346
+ }),
347
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
348
+ className: "flex items-center gap-4",
349
+ children: [
350
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(HeaderIconButton, {
351
+ icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Search, {
352
+ className: "h-5 w-5"
353
+ }),
354
+ label: "Search",
355
+ onClick: onSearchClick,
356
+ disabled: true
357
+ }),
358
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(HeaderIconButton, {
359
+ icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Sparkles, {
360
+ className: "h-5 w-5"
361
+ }),
362
+ label: "AI",
363
+ disabled: true
364
+ }),
365
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(NotificationsDropdown, {
366
+ themeClass: themeClass
367
+ }),
368
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(HelpDropdown, {
369
+ themeClass: themeClass
370
+ }),
371
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(TenantSelector, {
372
+ tenantName: tenantName,
373
+ themeClass: themeClass
374
+ }),
375
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(AvatarDropdown, {
376
+ themeClass: themeClass
377
+ })
378
+ ]
379
+ })
380
+ ]
381
+ }),
382
+ menuContent && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(sheet_cjs_namespaceObject.Sheet, {
383
+ open: menuOpen,
384
+ onOpenChange: setMenuOpen,
385
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(sheet_cjs_namespaceObject.SheetPortal, {
386
+ children: [
387
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(sheet_cjs_namespaceObject.SheetOverlay, {
388
+ className: "top-12"
389
+ }),
390
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dialog_namespaceObject.Content, {
391
+ className: (0, index_cjs_namespaceObject.cn)(themeClass, 'fixed left-0 top-12 bottom-0 z-50 w-[300px] border-r border-future-border-subtle bg-future-surface p-0 shadow-lg', 'data-[state=open]:animate-in data-[state=closed]:animate-out', 'data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left', 'data-[state=closed]:duration-300 data-[state=open]:duration-300'),
392
+ children: [
393
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(sheet_cjs_namespaceObject.SheetTitle, {
394
+ className: "sr-only",
395
+ children: "App launcher"
396
+ }),
397
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
398
+ className: "flex h-full flex-col overflow-y-auto",
399
+ children: menuContent
400
+ })
401
+ ]
402
+ })
403
+ ]
404
+ })
405
+ })
406
+ ]
407
+ });
408
+ }
409
+ exports.MaestroHeader = __webpack_exports__.MaestroHeader;
410
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
411
+ "MaestroHeader"
412
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
413
+ Object.defineProperty(exports, '__esModule', {
414
+ value: true
415
+ });
@@ -0,0 +1,38 @@
1
+ import * as React from 'react';
2
+ import type { FutureTheme } from '../../foundation/Future/types';
3
+ export interface MaestroHeaderProps {
4
+ className?: string;
5
+ /** Color theme — needed so portal-rendered dropdowns inherit the correct CSS variables */
6
+ theme?: FutureTheme;
7
+ /** Application title shown next to the logo */
8
+ title?: string;
9
+ /** Current tenant name */
10
+ tenantName?: string;
11
+ /**
12
+ * Content for the app-launcher slide-out menu.
13
+ * When provided, the Menu icon toggles a left-side drawer that renders
14
+ * this content below the header. When omitted, no drawer is rendered.
15
+ */
16
+ menuContent?: React.ReactNode;
17
+ /** Callback when search is clicked */
18
+ onSearchClick?: () => void;
19
+ }
20
+ /**
21
+ * Global header bar for the Maestro template.
22
+ *
23
+ * Contains the UiPath waffle icon, application title, action icons
24
+ * (search, settings, notifications, help), a tenant selector, and
25
+ * user avatar. Fixed height of 48px.
26
+ *
27
+ * When `menuContent` is provided, clicking the Menu icon opens a
28
+ * slide-out drawer from the left (below the header) containing that
29
+ * content. The drawer state is managed internally.
30
+ *
31
+ * Interactive elements:
32
+ * - **Menu icon**: Toggles the app-launcher drawer (when `menuContent` is set)
33
+ * - **Notifications**: DropdownMenu with example notification items
34
+ * - **Help**: DropdownMenu with Documentation, Support, Community forum
35
+ * - **Tenant selector**: Popover with example tenant list
36
+ * - **Avatar**: DropdownMenu with Profile, Settings, Log out
37
+ */
38
+ export declare function MaestroHeader({ className, theme, title, tenantName, menuContent, onSearchClick, }: MaestroHeaderProps): import("react/jsx-runtime").JSX.Element;