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