@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,422 @@
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 react_dialog_namespaceObject = require("@radix-ui/react-dialog");
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 dropdown_menu_cjs_namespaceObject = require("../ui/dropdown-menu.cjs");
35
+ const popover_cjs_namespaceObject = require("../ui/popover.cjs");
36
+ const sheet_cjs_namespaceObject = require("../ui/sheet.cjs");
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
+ type: "button",
41
+ className: (0, index_cjs_namespaceObject.cn)('flex h-8 w-8 items-center justify-center rounded-lg text-foreground-muted transition-colors', disabled ? 'cursor-default opacity-50' : 'hover:text-foreground'),
42
+ onClick: disabled ? void 0 : onClick,
43
+ "aria-label": label,
44
+ "aria-disabled": disabled,
45
+ disabled: disabled,
46
+ children: icon
47
+ });
48
+ }
49
+ function NotificationsDropdown({ themeClass }) {
50
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenu, {
51
+ children: [
52
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(dropdown_menu_cjs_namespaceObject.DropdownMenuTrigger, {
53
+ asChild: true,
54
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
55
+ type: "button",
56
+ className: "flex h-8 w-8 items-center justify-center rounded-lg text-foreground-muted transition-colors hover:text-foreground",
57
+ "aria-label": "Notifications",
58
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Bell, {
59
+ className: "h-5 w-5"
60
+ })
61
+ })
62
+ }),
63
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuContent, {
64
+ align: "end",
65
+ sideOffset: 8,
66
+ className: (0, index_cjs_namespaceObject.cn)(themeClass, 'w-72 border-border bg-surface-overlay'),
67
+ children: [
68
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
69
+ className: "px-3 py-2",
70
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
71
+ className: "text-sm font-semibold text-foreground",
72
+ children: "Notifications"
73
+ })
74
+ }),
75
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(dropdown_menu_cjs_namespaceObject.DropdownMenuSeparator, {
76
+ className: "bg-border-subtle"
77
+ }),
78
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
79
+ className: "flex items-start gap-3 px-3 py-2.5 text-foreground-muted focus:bg-surface-hover focus:text-foreground",
80
+ children: [
81
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Info, {
82
+ className: "mt-0.5 h-4 w-4 shrink-0 text-brand-foreground"
83
+ }),
84
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
85
+ className: "flex flex-col gap-0.5",
86
+ children: [
87
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
88
+ className: "text-sm font-medium text-foreground",
89
+ children: "System update available"
90
+ }),
91
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
92
+ className: "text-xs text-foreground-muted",
93
+ children: "A new version is ready to install"
94
+ })
95
+ ]
96
+ })
97
+ ]
98
+ }),
99
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
100
+ className: "flex items-start gap-3 px-3 py-2.5 text-foreground-muted focus:bg-surface-hover focus:text-foreground",
101
+ children: [
102
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CheckCircle2, {
103
+ className: "mt-0.5 h-4 w-4 shrink-0 text-green-500"
104
+ }),
105
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
106
+ className: "flex flex-col gap-0.5",
107
+ children: [
108
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
109
+ className: "text-sm font-medium text-foreground",
110
+ children: "Flow completed"
111
+ }),
112
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
113
+ className: "text-xs text-foreground-muted",
114
+ children: "Invoice processing finished successfully"
115
+ })
116
+ ]
117
+ })
118
+ ]
119
+ }),
120
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
121
+ className: "flex items-start gap-3 px-3 py-2.5 text-foreground-muted focus:bg-surface-hover focus:text-foreground",
122
+ children: [
123
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.AlertCircle, {
124
+ className: "mt-0.5 h-4 w-4 shrink-0 text-amber-500"
125
+ }),
126
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
127
+ className: "flex flex-col gap-0.5",
128
+ children: [
129
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
130
+ className: "text-sm font-medium text-foreground",
131
+ children: "Action required"
132
+ }),
133
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
134
+ className: "text-xs text-foreground-muted",
135
+ children: "Review pending approval requests"
136
+ })
137
+ ]
138
+ })
139
+ ]
140
+ })
141
+ ]
142
+ })
143
+ ]
144
+ });
145
+ }
146
+ function HelpDropdown({ themeClass }) {
147
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenu, {
148
+ children: [
149
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(dropdown_menu_cjs_namespaceObject.DropdownMenuTrigger, {
150
+ asChild: true,
151
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
152
+ type: "button",
153
+ className: "flex h-8 w-8 items-center justify-center rounded-lg text-foreground-muted transition-colors hover:text-foreground",
154
+ "aria-label": "Help",
155
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CircleHelp, {
156
+ className: "h-5 w-5"
157
+ })
158
+ })
159
+ }),
160
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuContent, {
161
+ align: "end",
162
+ sideOffset: 8,
163
+ className: (0, index_cjs_namespaceObject.cn)(themeClass, 'w-56 border-border bg-surface-overlay'),
164
+ children: [
165
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
166
+ className: "flex items-center gap-2 px-3 py-2 text-foreground-muted focus:bg-surface-hover focus:text-foreground",
167
+ children: [
168
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.BookOpen, {
169
+ className: "h-4 w-4"
170
+ }),
171
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
172
+ className: "text-sm",
173
+ children: "Documentation"
174
+ })
175
+ ]
176
+ }),
177
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
178
+ className: "flex items-center gap-2 px-3 py-2 text-foreground-muted focus:bg-surface-hover focus:text-foreground",
179
+ children: [
180
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.MessageCircleQuestion, {
181
+ className: "h-4 w-4"
182
+ }),
183
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
184
+ className: "text-sm",
185
+ children: "Support"
186
+ })
187
+ ]
188
+ }),
189
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
190
+ className: "flex items-center gap-2 px-3 py-2 text-foreground-muted focus:bg-surface-hover focus:text-foreground",
191
+ children: [
192
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ExternalLink, {
193
+ className: "h-4 w-4"
194
+ }),
195
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
196
+ className: "text-sm",
197
+ children: "Community forum"
198
+ })
199
+ ]
200
+ })
201
+ ]
202
+ })
203
+ ]
204
+ });
205
+ }
206
+ function TenantSelector({ tenantName, themeClass }) {
207
+ const [selected, setSelected] = external_react_namespaceObject.useState(tenantName);
208
+ const tenants = [
209
+ {
210
+ id: 'default',
211
+ label: 'Default Tenant'
212
+ },
213
+ {
214
+ id: 'production',
215
+ label: 'Production'
216
+ },
217
+ {
218
+ id: 'staging',
219
+ label: 'Staging'
220
+ }
221
+ ];
222
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(popover_cjs_namespaceObject.Popover, {
223
+ children: [
224
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(popover_cjs_namespaceObject.PopoverTrigger, {
225
+ asChild: true,
226
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("button", {
227
+ type: "button",
228
+ className: "flex items-center gap-1 rounded-lg px-2 py-1 text-sm text-foreground-muted transition-colors hover:text-foreground",
229
+ children: [
230
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("span", {
231
+ children: [
232
+ "Tenant: ",
233
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
234
+ className: "font-medium",
235
+ children: selected
236
+ })
237
+ ]
238
+ }),
239
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronDown, {
240
+ className: "h-4 w-4"
241
+ })
242
+ ]
243
+ })
244
+ }),
245
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(popover_cjs_namespaceObject.PopoverContent, {
246
+ align: "end",
247
+ sideOffset: 8,
248
+ className: (0, index_cjs_namespaceObject.cn)(themeClass, 'w-56 border-border bg-surface-overlay p-1'),
249
+ children: tenants.map((tenant)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
250
+ type: "button",
251
+ className: (0, index_cjs_namespaceObject.cn)('flex w-full items-center rounded-md px-3 py-2 text-sm transition-colors hover:bg-surface-hover', selected === tenant.label ? 'font-medium text-foreground' : 'text-foreground-muted'),
252
+ onClick: ()=>setSelected(tenant.label),
253
+ children: tenant.label
254
+ }, tenant.id))
255
+ })
256
+ ]
257
+ });
258
+ }
259
+ function AvatarDropdown({ themeClass }) {
260
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenu, {
261
+ children: [
262
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(dropdown_menu_cjs_namespaceObject.DropdownMenuTrigger, {
263
+ asChild: true,
264
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
265
+ type: "button",
266
+ className: "rounded-full focus:outline-none",
267
+ "aria-label": "User menu",
268
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(avatar_cjs_namespaceObject.Avatar, {
269
+ className: "h-6 w-6 bg-brand",
270
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(avatar_cjs_namespaceObject.AvatarFallback, {
271
+ className: "bg-brand text-[10px] font-bold text-foreground-on-accent",
272
+ children: "UI"
273
+ })
274
+ })
275
+ })
276
+ }),
277
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuContent, {
278
+ align: "end",
279
+ sideOffset: 8,
280
+ className: (0, index_cjs_namespaceObject.cn)(themeClass, 'w-48 border-border bg-surface-overlay'),
281
+ children: [
282
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
283
+ className: "flex items-center gap-2 px-3 py-2 text-foreground-muted focus:bg-surface-hover focus:text-foreground",
284
+ children: [
285
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.User, {
286
+ className: "h-4 w-4"
287
+ }),
288
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
289
+ className: "text-sm",
290
+ children: "Profile"
291
+ })
292
+ ]
293
+ }),
294
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
295
+ className: "flex items-center gap-2 px-3 py-2 text-foreground-muted focus:bg-surface-hover focus:text-foreground",
296
+ children: [
297
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Settings, {
298
+ className: "h-4 w-4"
299
+ }),
300
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
301
+ className: "text-sm",
302
+ children: "Settings"
303
+ })
304
+ ]
305
+ }),
306
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(dropdown_menu_cjs_namespaceObject.DropdownMenuSeparator, {
307
+ className: "bg-border-subtle"
308
+ }),
309
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
310
+ className: "flex items-center gap-2 px-3 py-2 text-foreground-muted focus:bg-surface-hover focus:text-foreground",
311
+ children: [
312
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.LogOut, {
313
+ className: "h-4 w-4"
314
+ }),
315
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
316
+ className: "text-sm",
317
+ children: "Log out"
318
+ })
319
+ ]
320
+ })
321
+ ]
322
+ })
323
+ ]
324
+ });
325
+ }
326
+ function MaestroHeader({ className, theme = 'dark', title = 'Maestro', tenantName = 'Select', menuContent, onSearchClick }) {
327
+ const themeClass = theme;
328
+ const [menuOpen, setMenuOpen] = external_react_namespaceObject.useState(false);
329
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
330
+ children: [
331
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("header", {
332
+ className: (0, index_cjs_namespaceObject.cn)('flex h-12 shrink-0 items-center justify-between border-b border-border-subtle bg-surface px-4', className),
333
+ children: [
334
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
335
+ className: "flex items-center gap-3",
336
+ children: [
337
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
338
+ type: "button",
339
+ className: "flex h-8 w-8 items-center justify-center rounded-lg text-foreground-muted transition-colors hover:text-foreground",
340
+ onClick: ()=>menuContent && setMenuOpen((prev)=>!prev),
341
+ "aria-label": "App launcher",
342
+ children: menuOpen ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.X, {
343
+ className: "h-5 w-5"
344
+ }) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Menu, {
345
+ className: "h-5 w-5"
346
+ })
347
+ }),
348
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
349
+ className: "text-sm font-semibold text-foreground",
350
+ children: title
351
+ })
352
+ ]
353
+ }),
354
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
355
+ className: "flex items-center gap-4",
356
+ children: [
357
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(HeaderIconButton, {
358
+ icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Search, {
359
+ className: "h-5 w-5"
360
+ }),
361
+ label: "Search",
362
+ onClick: onSearchClick,
363
+ disabled: true
364
+ }),
365
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(HeaderIconButton, {
366
+ icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Sparkles, {
367
+ className: "h-5 w-5"
368
+ }),
369
+ label: "AI",
370
+ disabled: true
371
+ }),
372
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(NotificationsDropdown, {
373
+ themeClass: themeClass
374
+ }),
375
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(HelpDropdown, {
376
+ themeClass: themeClass
377
+ }),
378
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(TenantSelector, {
379
+ tenantName: tenantName,
380
+ themeClass: themeClass
381
+ }),
382
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(AvatarDropdown, {
383
+ themeClass: themeClass
384
+ })
385
+ ]
386
+ })
387
+ ]
388
+ }),
389
+ menuContent && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(sheet_cjs_namespaceObject.Sheet, {
390
+ open: menuOpen,
391
+ onOpenChange: setMenuOpen,
392
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(sheet_cjs_namespaceObject.SheetPortal, {
393
+ children: [
394
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(sheet_cjs_namespaceObject.SheetOverlay, {
395
+ className: "top-12"
396
+ }),
397
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dialog_namespaceObject.Content, {
398
+ className: (0, index_cjs_namespaceObject.cn)(themeClass, 'fixed left-0 top-12 bottom-0 z-50 w-[300px] border-r border-border-subtle bg-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'),
399
+ children: [
400
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(sheet_cjs_namespaceObject.SheetTitle, {
401
+ className: "sr-only",
402
+ children: "App launcher"
403
+ }),
404
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
405
+ className: "flex h-full flex-col overflow-y-auto",
406
+ children: menuContent
407
+ })
408
+ ]
409
+ })
410
+ ]
411
+ })
412
+ })
413
+ ]
414
+ });
415
+ }
416
+ exports.MaestroHeader = __webpack_exports__.MaestroHeader;
417
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
418
+ "MaestroHeader"
419
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
420
+ Object.defineProperty(exports, '__esModule', {
421
+ value: true
422
+ });
@@ -0,0 +1,38 @@
1
+ import * as React from 'react';
2
+ import type { Theme } 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?: Theme;
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;