@burdenoff/fe-libs 2026.1113.7 → 2026.1113.9

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.
@@ -30,6 +30,13 @@ export interface WorkspaceMenuProps {
30
30
  * an explicit choice.
31
31
  */
32
32
  onSelectWorkspaceWide?(): void;
33
+ /**
34
+ * BOFF-13461: adds "New project" at the end of the PROJECT group, shown only
35
+ * when this is passed (like `onNewWorkspace`) and a workspace is active. With
36
+ * it, the group shows even while the workspace has no project yet, so the
37
+ * first one can be made from here.
38
+ */
39
+ onNewProject?(): void;
33
40
  organizations: {
34
41
  id: string;
35
42
  name: string;
@@ -50,5 +57,12 @@ export interface WorkspaceMenuProps {
50
57
  onSelectProduct(id: string): void;
51
58
  /** Phone top-bar trigger: fills the bar, menu drops from its start edge. */
52
59
  compact?: boolean;
60
+ /**
61
+ * BOFF-13461 (Navigation v2): each list shows about six rows in a visible
62
+ * scroll area and gets a search box past five rows; ORGANIZATION lists every
63
+ * organization in place (the active one checked) instead of the ⇅ sub-menu.
64
+ * Absent or false: the menu of before.
65
+ */
66
+ searchableLists?: boolean;
53
67
  }
54
- export declare function WorkspaceMenu({ logo, workspaceName, orgName, workspaces, activeWorkspaceId, onSelectWorkspace, onNewWorkspace, projects, activeProjectId, onSelectProject, onSelectWorkspaceWide, organizations, activeOrganizationId, onSelectOrganization, currentProduct, products, onSelectProduct, compact, }: WorkspaceMenuProps): import('react').JSX.Element;
68
+ export declare function WorkspaceMenu(props: WorkspaceMenuProps): import('react').JSX.Element;
@@ -1,278 +1,360 @@
1
- import { useAssistantControl as e } from "../../shared/assistant/appControls/useAssistantControl.js";
2
- import { cn as t } from "../../shared-utils.js";
3
- import { useShellLabel as n } from "../../shared/providers/shell/useShellLabel.js";
4
- import { DropdownMenu as r, DropdownMenuContent as i, DropdownMenuItem as a, DropdownMenuSeparator as o, DropdownMenuSub as s, DropdownMenuSubContent as c, DropdownMenuSubTrigger as l, DropdownMenuTrigger as u } from "../../ui/dropdown-menu.js";
5
- import { useEffect as d, useMemo as f, useRef as p, useState as m } from "react";
6
- import { Check as h, ChevronDown as g, ChevronsUpDown as ee, Folders as _, Landmark as v, LayoutGrid as y, Plus as b } from "lucide-react";
7
- import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
1
+ import { cn as e } from "../../shared-utils.js";
2
+ import { useShellLabel as t } from "../../shared/providers/shell/useShellLabel.js";
3
+ import { DropdownMenu as n, DropdownMenuContent as r, DropdownMenuItem as i, DropdownMenuSeparator as a, DropdownMenuSub as o, DropdownMenuSubContent as s, DropdownMenuSubTrigger as c, DropdownMenuTrigger as l } from "../../ui/dropdown-menu.js";
4
+ import { Input as u } from "../../ui/input.js";
5
+ import { ScrollBar as d } from "../../ui/scroll-area.js";
6
+ import { WORKSPACE_MENU_LIST_ATTR as f, onWorkspaceMenuSearchKeyDown as p } from "./workspaceMenuLists.js";
7
+ import { useWorkspaceMenuLists as m } from "./useWorkspaceMenuLists.js";
8
+ import { useWorkspaceMenuControls as h } from "./useWorkspaceMenuControls.js";
9
+ import { useId as g, useState as _ } from "react";
10
+ import { Check as v, ChevronDown as y, ChevronsUpDown as b, Folders as x, Landmark as S, LayoutGrid as C, Plus as w, Search as T } from "lucide-react";
11
+ import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
12
+ import * as k from "@radix-ui/react-scroll-area";
8
13
  // src/chrome/shell/WorkspaceMenu.tsx
9
- var w = "rounded-card border border-border-subtle bg-popover p-1.5 shadow-overlay", T = "h-control-sm gap-2.5 rounded-button px-2.5 focus:bg-bg-sunken", E = "px-2.5 pb-1 pt-2 text-caption font-semibold uppercase tracking-wider text-text-muted", D = "max-h-80 overflow-y-auto rounded-card border border-border-subtle bg-popover p-1.5 shadow-overlay";
10
- function O(e) {
14
+ var A = "rounded-card border border-border-subtle bg-popover p-1.5 shadow-overlay", j = "h-control-sm gap-2.5 rounded-button px-2.5 focus:bg-bg-sunken", M = "px-2.5 pb-1 pt-2 text-caption font-semibold uppercase tracking-wider text-text-muted", N = "max-h-80 overflow-y-auto rounded-card border border-border-subtle bg-popover p-1.5 shadow-overlay";
15
+ function P(e) {
11
16
  let t = e.trim().charAt(0).toUpperCase() || "?";
12
- return /* @__PURE__ */ S("span", {
17
+ return /* @__PURE__ */ D("span", {
13
18
  "aria-hidden": "true",
14
19
  className: "flex size-5 flex-shrink-0 items-center justify-center rounded-button bg-accent-soft text-caption font-semibold text-accent-primary",
15
20
  children: t
16
21
  });
17
22
  }
18
- function k(e) {
19
- return e ? /* @__PURE__ */ S(h, {
23
+ var F = [];
24
+ function I(e) {
25
+ return e ? /* @__PURE__ */ D(v, {
20
26
  className: "ms-auto size-4 flex-shrink-0 text-accent-primary",
21
27
  "aria-hidden": "true"
22
28
  }) : null;
23
29
  }
24
- function A({ logo: h, workspaceName: A, orgName: j, workspaces: M, activeWorkspaceId: N, onSelectWorkspace: P, onNewWorkspace: F, projects: I = [], activeProjectId: L, onSelectProject: R, onSelectWorkspaceWide: z, organizations: B, activeOrganizationId: V, onSelectOrganization: H, currentProduct: U, products: W, onSelectProduct: G, compact: K = !1 }) {
25
- let q = n(), [J, Y] = m(!1), X = B.find((e) => e.id === V)?.name ?? j, Z = W.filter((e) => e.id !== U.id), Q = I.length > 0 && R !== void 0, te = Q && !!N && z !== void 0, $ = p({
26
- open: J,
27
- workspaces: M,
28
- activeWorkspaceId: N,
29
- onSelectWorkspace: P
30
+ function L({ id: e, testId: t, current: n, onPick: r, icon: a, label: o, rowProps: s }) {
31
+ return /* @__PURE__ */ O(i, {
32
+ className: j,
33
+ onSelect: () => r(),
34
+ "data-testid": t,
35
+ "aria-current": n ? "true" : void 0,
36
+ ...s,
37
+ children: [
38
+ a,
39
+ /* @__PURE__ */ D("span", {
40
+ className: "min-w-0 flex-1 truncate",
41
+ children: o
42
+ }),
43
+ I(n)
44
+ ]
45
+ }, e);
46
+ }
47
+ function R(e, t, n) {
48
+ return /* @__PURE__ */ O(i, {
49
+ className: j,
50
+ onSelect: () => n(),
51
+ "data-testid": e,
52
+ children: [/* @__PURE__ */ D(w, {
53
+ className: "size-4 flex-shrink-0 text-text-secondary",
54
+ "aria-hidden": "true"
55
+ }), /* @__PURE__ */ D("span", {
56
+ className: "truncate",
57
+ children: t
58
+ })]
59
+ });
60
+ }
61
+ function z(e, t) {
62
+ return /* @__PURE__ */ D("div", {
63
+ role: "presentation",
64
+ className: M,
65
+ ...t ? { id: t } : {},
66
+ children: e
67
+ });
68
+ }
69
+ var B = "max-h-[calc(var(--size-controlHeight-sm)*6.5)] pe-2.5 [&>div]:block! focus-visible:outline-none", V = "pointer-events-none absolute start-3 top-1/2 size-4 -translate-y-1/2 text-text-muted", H = "px-2.5 py-2 text-body-sm text-text-muted", U = "max-h-[var(--radix-dropdown-menu-content-available-height)] overflow-auto";
70
+ function W({ labelledBy: e, testId: t, rows: n, search: r }) {
71
+ return /* @__PURE__ */ O("div", {
72
+ role: "group",
73
+ "aria-labelledby": e,
74
+ "data-testid": `${t}-list`,
75
+ [f]: "",
76
+ children: [
77
+ r && /* @__PURE__ */ O("div", {
78
+ className: "relative px-1 pb-1",
79
+ children: [/* @__PURE__ */ D(T, {
80
+ className: V,
81
+ "aria-hidden": "true"
82
+ }), /* @__PURE__ */ D(u, {
83
+ type: "search",
84
+ value: r.query,
85
+ onChange: (e) => r.onQueryChange(e.target.value),
86
+ onKeyDown: p,
87
+ placeholder: r.label,
88
+ "aria-label": r.label,
89
+ autoComplete: "off",
90
+ spellCheck: !1,
91
+ "data-testid": `shell-workspace-search-${r.name}`,
92
+ className: "h-control-sm ps-8 text-body-sm"
93
+ })]
94
+ }),
95
+ /* @__PURE__ */ O(k.Root, {
96
+ type: "auto",
97
+ className: "relative overflow-hidden",
98
+ children: [/* @__PURE__ */ D(k.Viewport, {
99
+ className: B,
100
+ "data-testid": t,
101
+ children: n
102
+ }), /* @__PURE__ */ D(d, {})]
103
+ }),
104
+ r && /* @__PURE__ */ D("div", {
105
+ role: "status",
106
+ "data-testid": `shell-workspace-nomatch-${r.name}`,
107
+ children: r.noMatch ? /* @__PURE__ */ D("p", {
108
+ className: H,
109
+ children: r.noMatch
110
+ }) : null
111
+ })
112
+ ]
113
+ });
114
+ }
115
+ function G(e, { name: t, testId: n, plainTestId: r, rows: i }) {
116
+ return e.searchable ? W({
117
+ labelledBy: `${e.labelIds}-${t}`,
118
+ testId: n,
119
+ rows: i,
120
+ search: e.lists[t].search
121
+ }) : /* @__PURE__ */ D("div", {
122
+ className: "max-h-60 overflow-y-auto",
123
+ ...r ? { "data-testid": r } : {},
124
+ children: i
125
+ });
126
+ }
127
+ function K(e) {
128
+ let { props: t, lists: n, shellLabel: r, labelIds: i, orgLabel: a, searchable: o } = e, { activeWorkspaceId: s, onSelectWorkspace: c, onNewWorkspace: l } = t, u = n.workspaces, d = u.shown.map((e) => L({
129
+ id: e.id,
130
+ testId: `shell-workspace-item-${e.id}`,
131
+ current: e.id === s,
132
+ onPick: () => {
133
+ e.id !== s && c(e.id);
134
+ },
135
+ icon: P(e.name),
136
+ label: e.name,
137
+ rowProps: u.rowProps
138
+ }));
139
+ return /* @__PURE__ */ O(E, { children: [
140
+ z(r("shell.workspaceMenu.workspacesIn", "Workspaces in {{org}}", { org: a }), o ? `${i}-workspaces` : void 0),
141
+ G(e, {
142
+ name: "workspaces",
143
+ testId: "shell-workspace-workspaces",
144
+ rows: d
145
+ }),
146
+ l && R("shell-workspace-new", r("shell.workspaceMenu.newWorkspace", "New workspace"), () => l())
147
+ ] });
148
+ }
149
+ function q(e) {
150
+ let { props: t, projects: n, lists: r, shellLabel: i, labelIds: o, searchable: s } = e, { activeWorkspaceId: c, activeProjectId: l, onSelectProject: u, onSelectWorkspaceWide: d } = t, { onNewProject: f } = t, p = n.length > 0 && u !== void 0, m = f !== void 0 && !!c;
151
+ if (!p && !m) return null;
152
+ let h = r.projects, g = !!c && d !== void 0 && !h.filtering, _ = /* @__PURE__ */ O(E, { children: [g && L({
153
+ id: "workspace-wide",
154
+ testId: "shell-workspace-all-projects",
155
+ current: !l,
156
+ onPick: () => d?.(),
157
+ icon: /* @__PURE__ */ D("span", {
158
+ className: "flex size-5 flex-shrink-0 items-center justify-center",
159
+ children: /* @__PURE__ */ D(x, {
160
+ className: "size-4 text-text-secondary",
161
+ "aria-hidden": "true"
162
+ })
163
+ }),
164
+ label: i("contextSwitcher.allProjectsWorkspaceWide", "All projects (workspace-wide)"),
165
+ rowProps: h.rowProps
166
+ }), h.shown.map((e) => L({
167
+ id: e.id,
168
+ testId: `shell-workspace-project-${e.id}`,
169
+ current: e.id === l,
170
+ onPick: () => {
171
+ e.id !== l && u?.(e.id);
172
+ },
173
+ icon: P(e.name),
174
+ label: e.name,
175
+ rowProps: h.rowProps
176
+ }))] });
177
+ return /* @__PURE__ */ O(E, { children: [
178
+ /* @__PURE__ */ D(a, { className: "my-1.5" }),
179
+ z(i("contextSwitcher.project", "Project"), s ? `${o}-projects` : void 0),
180
+ p && G(e, {
181
+ name: "projects",
182
+ testId: "shell-workspace-projects",
183
+ plainTestId: "shell-workspace-projects",
184
+ rows: _
185
+ }),
186
+ m && R("shell-workspace-new-project", i("shell.workspaceMenu.newProject", "New project"), () => f?.())
187
+ ] });
188
+ }
189
+ function J(t, n) {
190
+ return /* @__PURE__ */ O(o, { children: [/* @__PURE__ */ O(c, {
191
+ className: j,
192
+ "data-testid": "shell-workspace-org-trigger",
193
+ indicator: /* @__PURE__ */ D(b, {
194
+ className: "size-4 flex-shrink-0 text-text-muted",
195
+ "aria-hidden": "true"
196
+ }),
197
+ children: [/* @__PURE__ */ D(S, {
198
+ className: "size-4 flex-shrink-0 text-text-secondary",
199
+ "aria-hidden": "true"
200
+ }), /* @__PURE__ */ D("span", {
201
+ className: "min-w-0 flex-1 truncate",
202
+ children: t
203
+ })]
204
+ }), /* @__PURE__ */ D(s, {
205
+ sideOffset: 6,
206
+ "data-testid": "shell-workspace-org-menu",
207
+ className: e(N, "w-64"),
208
+ children: n
209
+ })] });
210
+ }
211
+ function Y(e) {
212
+ let { props: t, lists: n, shellLabel: r, labelIds: i, orgLabel: o, searchable: s } = e, { organizations: c, activeOrganizationId: l, onSelectOrganization: u } = t;
213
+ if (c.length === 0) return null;
214
+ let d = n.organizations, f = d.shown.map((e) => L({
215
+ id: e.id,
216
+ testId: `shell-workspace-org-${e.id}`,
217
+ current: e.id === l,
218
+ onPick: () => {
219
+ e.id !== l && u(e.id);
220
+ },
221
+ icon: /* @__PURE__ */ D(S, {
222
+ className: "size-4 flex-shrink-0 text-text-secondary",
223
+ "aria-hidden": "true"
224
+ }),
225
+ label: e.name,
226
+ rowProps: d.rowProps
227
+ }));
228
+ return /* @__PURE__ */ O(E, { children: [
229
+ /* @__PURE__ */ D(a, { className: "my-1.5" }),
230
+ z(r("shell.workspaceMenu.organization", "Organization"), s ? `${i}-organizations` : void 0),
231
+ s ? W({
232
+ labelledBy: `${i}-organizations`,
233
+ testId: "shell-workspace-orgs",
234
+ rows: f,
235
+ search: d.search
236
+ }) : J(o, f)
237
+ ] });
238
+ }
239
+ function X({ props: t, shellLabel: n }) {
240
+ let { currentProduct: r, products: l, onSelectProduct: u } = t, d = l.filter((e) => e.id !== r.id);
241
+ return /* @__PURE__ */ O(E, { children: [
242
+ /* @__PURE__ */ D(a, { className: "my-1.5" }),
243
+ z(n("shell.workspaceMenu.product", "Product")),
244
+ /* @__PURE__ */ O(i, {
245
+ className: j,
246
+ "aria-current": "true",
247
+ "data-testid": `shell-workspace-product-${r.id}`,
248
+ children: [
249
+ /* @__PURE__ */ D("span", {
250
+ className: "flex size-5 flex-shrink-0 items-center justify-center",
251
+ children: r.logo ?? P(r.name)
252
+ }),
253
+ /* @__PURE__ */ D("span", {
254
+ className: "min-w-0 flex-1 truncate",
255
+ children: r.name
256
+ }),
257
+ I(!0)
258
+ ]
259
+ }),
260
+ d.length > 0 && /* @__PURE__ */ O(o, { children: [/* @__PURE__ */ O(c, {
261
+ className: j,
262
+ "data-testid": "shell-workspace-switch-product",
263
+ children: [/* @__PURE__ */ D(C, {
264
+ className: "size-4 flex-shrink-0 text-text-secondary",
265
+ "aria-hidden": "true"
266
+ }), /* @__PURE__ */ D("span", {
267
+ className: "min-w-0 flex-1 truncate",
268
+ children: n("productSwitcher.title", "Switch product")
269
+ })]
270
+ }), /* @__PURE__ */ D(s, {
271
+ sideOffset: 6,
272
+ "data-testid": "shell-workspace-product-menu",
273
+ className: e(N, "w-64"),
274
+ children: d.map((e) => /* @__PURE__ */ O(i, {
275
+ className: j,
276
+ onSelect: () => u(e.id),
277
+ "data-testid": `shell-workspace-product-${e.id}`,
278
+ children: [/* @__PURE__ */ D("span", {
279
+ className: "flex size-5 flex-shrink-0 items-center justify-center",
280
+ children: e.icon ?? P(e.name)
281
+ }), /* @__PURE__ */ D("span", {
282
+ className: "min-w-0 flex-1 truncate",
283
+ children: e.name
284
+ })]
285
+ }, e.id))
286
+ })] })
287
+ ] });
288
+ }
289
+ function Z(i) {
290
+ let { logo: a, workspaceName: o, orgName: s, workspaces: c, organizations: u } = i, { activeWorkspaceId: d, onSelectWorkspace: f, activeOrganizationId: p } = i, v = i.compact ?? !1, b = i.searchableLists ?? !1, x = i.projects ?? F, S = t(), [C, w] = _(!1), T = g(), E = m(b, {
291
+ workspaces: c,
292
+ projects: x,
293
+ organizations: u
30
294
  });
31
- d(() => {
32
- $.current = {
33
- open: J,
34
- workspaces: M,
35
- activeWorkspaceId: N,
36
- onSelectWorkspace: P
37
- };
38
- }, [
39
- J,
40
- M,
41
- N,
42
- P
43
- ]);
44
- let ne = f(() => ({ run: () => $.current.open ? { status: "already" } : (Y(!0), { status: "done" }) }), []);
45
- e("header.context", ne);
46
- let re = f(() => ({
47
- targets: () => $.current.workspaces.map((e) => ({
48
- id: e.id,
49
- label: e.name,
50
- current: e.id === $.current.activeWorkspaceId
51
- })),
52
- switchTo: (e) => {
53
- let t = $.current, n = t.workspaces.find((t) => t.id === e);
54
- return n ? n.id === t.activeWorkspaceId ? { status: "already" } : (t.onSelectWorkspace(n.id), { status: "done" }) : { status: "failed" };
55
- }
56
- }), []);
57
- return e("header.workspace", re), /* @__PURE__ */ C(r, {
58
- open: J,
59
- onOpenChange: Y,
295
+ h({
296
+ open: C,
297
+ setOpen: w,
298
+ workspaces: c,
299
+ activeWorkspaceId: d,
300
+ onSelectWorkspace: f
301
+ });
302
+ let k = u.find((e) => e.id === p)?.name ?? s, j = {
303
+ props: i,
304
+ projects: x,
305
+ lists: E,
306
+ shellLabel: S,
307
+ labelIds: T,
308
+ orgLabel: k,
309
+ searchable: b
310
+ };
311
+ return /* @__PURE__ */ O(n, {
312
+ open: C,
313
+ onOpenChange: (e) => {
314
+ w(e), e || E.clear();
315
+ },
60
316
  modal: !1,
61
- children: [/* @__PURE__ */ S(u, {
317
+ children: [/* @__PURE__ */ D(l, {
62
318
  asChild: !0,
63
- children: /* @__PURE__ */ C("button", {
319
+ children: /* @__PURE__ */ O("button", {
64
320
  type: "button",
65
- "aria-label": q("shell.workspaceMenu.trigger", "Switch workspace: {{name}}", { name: A }),
321
+ "aria-label": S("shell.workspaceMenu.trigger", "Switch workspace: {{name}}", { name: o }),
66
322
  "data-testid": "shell-workspace-trigger",
67
- className: t("group flex min-w-0 items-center gap-2.5 rounded-button p-1 text-start outline-none transition-colors hover:bg-bg-sunken focus-visible:ring-2 focus-visible:ring-focus-ring data-[state=open]:bg-bg-elevated", K ? "w-full" : "flex-1"),
323
+ className: e("group flex min-w-0 items-center gap-2.5 rounded-button p-1 text-start outline-none transition-colors hover:bg-bg-sunken focus-visible:ring-2 focus-visible:ring-focus-ring data-[state=open]:bg-bg-elevated", v ? "w-full" : "flex-1"),
68
324
  children: [
69
- /* @__PURE__ */ S("span", {
325
+ /* @__PURE__ */ D("span", {
70
326
  className: "flex size-8 flex-shrink-0 items-center justify-center",
71
- children: h
327
+ children: a
72
328
  }),
73
- /* @__PURE__ */ C("span", {
329
+ /* @__PURE__ */ O("span", {
74
330
  className: "min-w-0 flex-1",
75
- children: [/* @__PURE__ */ S("span", {
331
+ children: [/* @__PURE__ */ D("span", {
76
332
  className: "block truncate text-body-sm font-semibold text-text-primary",
77
- children: A
78
- }), /* @__PURE__ */ S("span", {
333
+ children: o
334
+ }), /* @__PURE__ */ D("span", {
79
335
  className: "block truncate text-xs text-text-muted",
80
- children: X
336
+ children: k
81
337
  })]
82
338
  }),
83
- /* @__PURE__ */ S(g, {
339
+ /* @__PURE__ */ D(y, {
84
340
  className: "size-3.5 flex-shrink-0 text-text-muted",
85
341
  "aria-hidden": "true"
86
342
  })
87
343
  ]
88
344
  })
89
- }), /* @__PURE__ */ C(i, {
345
+ }), /* @__PURE__ */ O(r, {
90
346
  side: "bottom",
91
347
  align: "start",
92
348
  sideOffset: 6,
93
349
  "data-testid": "shell-workspace-menu",
94
- className: t(w, "w-[300px]"),
350
+ className: e(A, "w-[300px]", b && U),
95
351
  children: [
96
- /* @__PURE__ */ S("div", {
97
- role: "presentation",
98
- className: E,
99
- children: q("shell.workspaceMenu.workspacesIn", "Workspaces in {{org}}", { org: X })
100
- }),
101
- /* @__PURE__ */ S("div", {
102
- className: "max-h-60 overflow-y-auto",
103
- children: M.map((e) => /* @__PURE__ */ C(a, {
104
- className: T,
105
- onSelect: () => {
106
- e.id !== N && P(e.id);
107
- },
108
- "data-testid": `shell-workspace-item-${e.id}`,
109
- "aria-current": e.id === N ? "true" : void 0,
110
- children: [
111
- O(e.name),
112
- /* @__PURE__ */ S("span", {
113
- className: "min-w-0 flex-1 truncate",
114
- children: e.name
115
- }),
116
- k(e.id === N)
117
- ]
118
- }, e.id))
119
- }),
120
- F && /* @__PURE__ */ C(a, {
121
- className: T,
122
- onSelect: () => F(),
123
- "data-testid": "shell-workspace-new",
124
- children: [/* @__PURE__ */ S(b, {
125
- className: "size-4 flex-shrink-0 text-text-secondary",
126
- "aria-hidden": "true"
127
- }), /* @__PURE__ */ S("span", {
128
- className: "truncate",
129
- children: q("shell.workspaceMenu.newWorkspace", "New workspace")
130
- })]
131
- }),
132
- Q && /* @__PURE__ */ C(x, { children: [
133
- /* @__PURE__ */ S(o, { className: "my-1.5" }),
134
- /* @__PURE__ */ S("div", {
135
- role: "presentation",
136
- className: E,
137
- children: q("contextSwitcher.project", "Project")
138
- }),
139
- /* @__PURE__ */ C("div", {
140
- className: "max-h-60 overflow-y-auto",
141
- "data-testid": "shell-workspace-projects",
142
- children: [te && /* @__PURE__ */ C(a, {
143
- className: T,
144
- onSelect: () => z?.(),
145
- "data-testid": "shell-workspace-all-projects",
146
- "aria-current": L ? void 0 : "true",
147
- children: [
148
- /* @__PURE__ */ S("span", {
149
- className: "flex size-5 flex-shrink-0 items-center justify-center",
150
- children: /* @__PURE__ */ S(_, {
151
- className: "size-4 text-text-secondary",
152
- "aria-hidden": "true"
153
- })
154
- }),
155
- /* @__PURE__ */ S("span", {
156
- className: "min-w-0 flex-1 truncate",
157
- children: q("contextSwitcher.allProjectsWorkspaceWide", "All projects (workspace-wide)")
158
- }),
159
- k(!L)
160
- ]
161
- }), I.map((e) => /* @__PURE__ */ C(a, {
162
- className: T,
163
- onSelect: () => {
164
- e.id !== L && R?.(e.id);
165
- },
166
- "data-testid": `shell-workspace-project-${e.id}`,
167
- "aria-current": e.id === L ? "true" : void 0,
168
- children: [
169
- O(e.name),
170
- /* @__PURE__ */ S("span", {
171
- className: "min-w-0 flex-1 truncate",
172
- children: e.name
173
- }),
174
- k(e.id === L)
175
- ]
176
- }, e.id))]
177
- })
178
- ] }),
179
- B.length > 0 && /* @__PURE__ */ C(x, { children: [
180
- /* @__PURE__ */ S(o, { className: "my-1.5" }),
181
- /* @__PURE__ */ S("div", {
182
- role: "presentation",
183
- className: E,
184
- children: q("shell.workspaceMenu.organization", "Organization")
185
- }),
186
- /* @__PURE__ */ C(s, { children: [/* @__PURE__ */ C(l, {
187
- className: T,
188
- "data-testid": "shell-workspace-org-trigger",
189
- indicator: /* @__PURE__ */ S(ee, {
190
- className: "size-4 flex-shrink-0 text-text-muted",
191
- "aria-hidden": "true"
192
- }),
193
- children: [/* @__PURE__ */ S(v, {
194
- className: "size-4 flex-shrink-0 text-text-secondary",
195
- "aria-hidden": "true"
196
- }), /* @__PURE__ */ S("span", {
197
- className: "min-w-0 flex-1 truncate",
198
- children: X
199
- })]
200
- }), /* @__PURE__ */ S(c, {
201
- sideOffset: 6,
202
- "data-testid": "shell-workspace-org-menu",
203
- className: t(D, "w-64"),
204
- children: B.map((e) => /* @__PURE__ */ C(a, {
205
- className: T,
206
- onSelect: () => {
207
- e.id !== V && H(e.id);
208
- },
209
- "data-testid": `shell-workspace-org-${e.id}`,
210
- "aria-current": e.id === V ? "true" : void 0,
211
- children: [
212
- /* @__PURE__ */ S(v, {
213
- className: "size-4 flex-shrink-0 text-text-secondary",
214
- "aria-hidden": "true"
215
- }),
216
- /* @__PURE__ */ S("span", {
217
- className: "min-w-0 flex-1 truncate",
218
- children: e.name
219
- }),
220
- k(e.id === V)
221
- ]
222
- }, e.id))
223
- })] })
224
- ] }),
225
- /* @__PURE__ */ S(o, { className: "my-1.5" }),
226
- /* @__PURE__ */ S("div", {
227
- role: "presentation",
228
- className: E,
229
- children: q("shell.workspaceMenu.product", "Product")
230
- }),
231
- /* @__PURE__ */ C(a, {
232
- className: T,
233
- "aria-current": "true",
234
- "data-testid": `shell-workspace-product-${U.id}`,
235
- children: [
236
- /* @__PURE__ */ S("span", {
237
- className: "flex size-5 flex-shrink-0 items-center justify-center",
238
- children: U.logo ?? O(U.name)
239
- }),
240
- /* @__PURE__ */ S("span", {
241
- className: "min-w-0 flex-1 truncate",
242
- children: U.name
243
- }),
244
- k(!0)
245
- ]
246
- }),
247
- Z.length > 0 && /* @__PURE__ */ C(s, { children: [/* @__PURE__ */ C(l, {
248
- className: T,
249
- "data-testid": "shell-workspace-switch-product",
250
- children: [/* @__PURE__ */ S(y, {
251
- className: "size-4 flex-shrink-0 text-text-secondary",
252
- "aria-hidden": "true"
253
- }), /* @__PURE__ */ S("span", {
254
- className: "min-w-0 flex-1 truncate",
255
- children: q("productSwitcher.title", "Switch product")
256
- })]
257
- }), /* @__PURE__ */ S(c, {
258
- sideOffset: 6,
259
- "data-testid": "shell-workspace-product-menu",
260
- className: t(D, "w-64"),
261
- children: Z.map((e) => /* @__PURE__ */ C(a, {
262
- className: T,
263
- onSelect: () => G(e.id),
264
- "data-testid": `shell-workspace-product-${e.id}`,
265
- children: [/* @__PURE__ */ S("span", {
266
- className: "flex size-5 flex-shrink-0 items-center justify-center",
267
- children: e.icon ?? O(e.name)
268
- }), /* @__PURE__ */ S("span", {
269
- className: "min-w-0 flex-1 truncate",
270
- children: e.name
271
- })]
272
- }, e.id))
273
- })] })
352
+ K(j),
353
+ q(j),
354
+ Y(j),
355
+ X(j)
274
356
  ]
275
357
  })]
276
358
  });
277
359
  }
278
- export { A as WorkspaceMenu };
360
+ export { Z as WorkspaceMenu };
@@ -0,0 +1,10 @@
1
+ export declare function useWorkspaceMenuControls(now: {
2
+ open: boolean;
3
+ setOpen(open: boolean): void;
4
+ workspaces: readonly {
5
+ id: string;
6
+ name: string;
7
+ }[];
8
+ activeWorkspaceId?: string;
9
+ onSelectWorkspace(id: string): void;
10
+ }): void;
@@ -0,0 +1,39 @@
1
+ import { useAssistantControl as e } from "../../shared/assistant/appControls/useAssistantControl.js";
2
+ import { useEffect as t, useMemo as n, useRef as r } from "react";
3
+ // src/chrome/shell/useWorkspaceMenuControls.ts
4
+ function i(i) {
5
+ let { open: a, setOpen: o, workspaces: s, activeWorkspaceId: c, onSelectWorkspace: l } = i, u = r({
6
+ open: a,
7
+ workspaces: s,
8
+ activeWorkspaceId: c,
9
+ onSelectWorkspace: l
10
+ });
11
+ t(() => {
12
+ u.current = {
13
+ open: a,
14
+ workspaces: s,
15
+ activeWorkspaceId: c,
16
+ onSelectWorkspace: l
17
+ };
18
+ }, [
19
+ a,
20
+ s,
21
+ c,
22
+ l
23
+ ]);
24
+ let d = n(() => ({ run: () => u.current.open ? { status: "already" } : (o(!0), { status: "done" }) }), [o]);
25
+ e("header.context", d);
26
+ let f = n(() => ({
27
+ targets: () => u.current.workspaces.map((e) => ({
28
+ id: e.id,
29
+ label: e.name,
30
+ current: e.id === u.current.activeWorkspaceId
31
+ })),
32
+ switchTo: (e) => {
33
+ let t = u.current, n = t.workspaces.find((t) => t.id === e);
34
+ return n ? n.id === t.activeWorkspaceId ? { status: "already" } : (t.onSelectWorkspace(n.id), { status: "done" }) : { status: "failed" };
35
+ }
36
+ }), []);
37
+ e("header.workspace", f);
38
+ }
39
+ export { i as useWorkspaceMenuControls };
@@ -0,0 +1,33 @@
1
+ import { KeyboardEvent } from 'react';
2
+ export type WorkspaceMenuListName = 'workspaces' | 'projects' | 'organizations';
3
+ /** A row of a list: a workspace, a project or an organization. */
4
+ export interface WorkspaceMenuListItem {
5
+ id: string;
6
+ name: string;
7
+ }
8
+ /** A list's search box. */
9
+ export interface WorkspaceMenuListSearch {
10
+ name: WorkspaceMenuListName;
11
+ label: string;
12
+ query: string;
13
+ onQueryChange(query: string): void;
14
+ /** The "No matches" line, or null while something matches. */
15
+ noMatch: string | null;
16
+ }
17
+ /** One list, as the menu renders it. */
18
+ export interface WorkspaceMenuListView {
19
+ /** The rows that show: those matching the search, or all of them. */
20
+ shown: readonly WorkspaceMenuListItem[];
21
+ /** The search box, or null (not opted in, or five rows or fewer). */
22
+ search: WorkspaceMenuListSearch | null;
23
+ /** A search is typed (not blank). */
24
+ filtering: boolean;
25
+ /** Spread on each row: its keys go to the box (nothing without one). */
26
+ rowProps: {
27
+ onKeyDown?: (event: KeyboardEvent<HTMLDivElement>) => void;
28
+ };
29
+ }
30
+ export declare function useWorkspaceMenuLists(enabled: boolean, lists: Readonly<Record<WorkspaceMenuListName, readonly WorkspaceMenuListItem[]>>): Record<WorkspaceMenuListName, WorkspaceMenuListView> & {
31
+ /** Empty every search box (the menu closed). */
32
+ clear(): void;
33
+ };
@@ -0,0 +1,59 @@
1
+ import { useShellLabel as e } from "../../shared/providers/shell/useShellLabel.js";
2
+ import { filterWorkspaceMenuItems as t, focusWorkspaceMenuSearch as n, isFirstWorkspaceMenuRow as r, isWorkspaceMenuSearchKey as i, workspaceMenuListSearchable as a, workspaceMenuSearchText as o } from "./workspaceMenuLists.js";
3
+ import { useState as s } from "react";
4
+ // src/chrome/shell/useWorkspaceMenuLists.ts
5
+ var c = {
6
+ workspaces: "",
7
+ projects: "",
8
+ organizations: ""
9
+ };
10
+ function l(l, u) {
11
+ let d = e(), [f, p] = s(c), m = {
12
+ workspaces: d("shell.workspaceMenu.searchWorkspaces", "Search workspaces"),
13
+ projects: d("shell.workspaceMenu.searchProjects", "Search projects"),
14
+ organizations: d("shell.workspaceMenu.searchOrganizations", "Search organizations")
15
+ }, h = d("shell.workspaceMenu.noMatch", "No matches"), g = (e) => {
16
+ let s = u[e];
17
+ if (!l || !a(s.length)) return {
18
+ shown: s,
19
+ search: null,
20
+ filtering: !1,
21
+ rowProps: {}
22
+ };
23
+ let c = f[e], d = t(s, c), g = o(c) !== "";
24
+ return {
25
+ shown: d,
26
+ filtering: g,
27
+ search: {
28
+ name: e,
29
+ label: m[e],
30
+ query: c,
31
+ onQueryChange: (t) => p((n) => n[e] === t ? n : {
32
+ ...n,
33
+ [e]: t
34
+ }),
35
+ noMatch: d.length === 0 && g ? h : null
36
+ },
37
+ rowProps: { onKeyDown: (t) => {
38
+ if (t.key === "ArrowUp" && r(t.currentTarget)) {
39
+ n(t.currentTarget) && t.preventDefault();
40
+ return;
41
+ }
42
+ if (!i(t)) return;
43
+ t.preventDefault();
44
+ let a = t.key;
45
+ p((t) => ({
46
+ ...t,
47
+ [e]: t[e] + a
48
+ })), n(t.currentTarget);
49
+ } }
50
+ };
51
+ };
52
+ return {
53
+ workspaces: g("workspaces"),
54
+ projects: g("projects"),
55
+ organizations: g("organizations"),
56
+ clear: () => p(c)
57
+ };
58
+ }
59
+ export { l as useWorkspaceMenuLists };
@@ -0,0 +1,61 @@
1
+ /**
2
+ * The searchable lists of `WorkspaceMenu` (BOFF-13461, Navigation v2): the
3
+ * matching rule and the keyboard moves between a list's search box and its rows.
4
+ *
5
+ * Opt-in: only a menu given `searchableLists` uses any of this.
6
+ *
7
+ * ★ The rows live in a Radix menu, which owns Tab (it is refused inside a menu),
8
+ * the arrow keys between rows and typeahead (a letter moves to the row that
9
+ * starts with it). A search box needs three more moves, all handled here:
10
+ * - a letter typed on a row of a searchable list goes into that list's search
11
+ * box (type to search, in place of typeahead);
12
+ * - ArrowUp on the list's first row, and back, ArrowDown or Enter in the box,
13
+ * move between the box and the rows;
14
+ * - every other key typed in the box stays in the box, so the menu's typeahead
15
+ * (and a sub-menu's ArrowLeft) never steals what the person is typing.
16
+ * Escape and Tab still reach the menu: Escape closes it, as it always did.
17
+ *
18
+ * Plain DOM helpers, no React: the rows are found from the element that got
19
+ * the key, inside the nearest element marked `data-shell-menu-list`.
20
+ */
21
+ /** A list gets a search box once it has more rows than this. */
22
+ export declare const WORKSPACE_MENU_SEARCH_THRESHOLD = 5;
23
+ /** Marks a list (search box and rows) for the keyboard helpers below. */
24
+ export declare const WORKSPACE_MENU_LIST_ATTR = "data-shell-menu-list";
25
+ /** Does a list of `count` rows get a search box? */
26
+ export declare function workspaceMenuListSearchable(count: number): boolean;
27
+ /**
28
+ * Case- and accent-insensitive text to match on: "Équipe" and "equipe" are the
29
+ * same search, as are "Sales" and "sales".
30
+ */
31
+ export declare function workspaceMenuSearchText(text: string): string;
32
+ /** The items whose name contains the query (as literal text); every item for a blank query. */
33
+ export declare function filterWorkspaceMenuItems<T extends {
34
+ name: string;
35
+ }>(items: readonly T[], query: string): readonly T[];
36
+ /** The keys a row hands to its list's search box: one printable character, not Space, no shortcut. */
37
+ export declare function isWorkspaceMenuSearchKey(event: {
38
+ key: string;
39
+ ctrlKey: boolean;
40
+ metaKey: boolean;
41
+ altKey: boolean;
42
+ }): boolean;
43
+ /** What the keyboard helpers read of an element: a browser `Element` is one. */
44
+ export type WorkspaceMenuListNode = Pick<Element, 'closest' | 'querySelector'>;
45
+ /** Focus the search box of the list `from` is in. Returns whether there was one. */
46
+ export declare function focusWorkspaceMenuSearch(from: WorkspaceMenuListNode): boolean;
47
+ /** Focus the first row of the list `from` is in. Returns whether there was one. */
48
+ export declare function focusFirstWorkspaceMenuRow(from: WorkspaceMenuListNode): boolean;
49
+ /**
50
+ * In a search box: ArrowDown or Enter go to the list's first row; Escape and
51
+ * Tab reach the menu (Escape closes it, as before); every other key stays in
52
+ * the box, so the menu's typeahead never takes what is being typed.
53
+ */
54
+ export declare function onWorkspaceMenuSearchKeyDown(event: {
55
+ key: string;
56
+ currentTarget: WorkspaceMenuListNode;
57
+ preventDefault(): void;
58
+ stopPropagation(): void;
59
+ }): void;
60
+ /** Is `row` the first row of its list? */
61
+ export declare function isFirstWorkspaceMenuRow(row: WorkspaceMenuListNode): boolean;
@@ -0,0 +1,31 @@
1
+ var e = "data-shell-menu-list", t = "[role=\"menuitem\"]";
2
+ function n(e) {
3
+ return e > 5;
4
+ }
5
+ function r(e) {
6
+ return e.normalize("NFKD").replace(/\p{M}/gu, "").toLocaleLowerCase().trim();
7
+ }
8
+ function i(e, t) {
9
+ let n = r(t);
10
+ return n ? e.filter((e) => r(e.name).includes(n)) : e;
11
+ }
12
+ function a(e) {
13
+ return e.key.length === 1 && e.key !== " " && !e.ctrlKey && !e.metaKey && !e.altKey;
14
+ }
15
+ var o = (t) => t.closest(`[${e}]`);
16
+ function s(e) {
17
+ let t = o(e)?.querySelector("input[type=\"search\"]");
18
+ return t ? (t.focus({ preventScroll: !0 }), !0) : !1;
19
+ }
20
+ function c(e) {
21
+ let n = o(e)?.querySelector(t);
22
+ return n ? (n.focus(), !0) : !1;
23
+ }
24
+ function l(e) {
25
+ e.key === "ArrowDown" || e.key === "Enter" ? (e.preventDefault(), c(e.currentTarget)) : e.key !== "Escape" && e.key !== "Tab" && e.stopPropagation();
26
+ }
27
+ function u(e) {
28
+ let n = o(e)?.querySelector(t);
29
+ return n != null && n === e;
30
+ }
31
+ export { e as WORKSPACE_MENU_LIST_ATTR, i as filterWorkspaceMenuItems, c as focusFirstWorkspaceMenuRow, s as focusWorkspaceMenuSearch, u as isFirstWorkspaceMenuRow, a as isWorkspaceMenuSearchKey, l as onWorkspaceMenuSearchKeyDown, n as workspaceMenuListSearchable, r as workspaceMenuSearchText };
@@ -31,3 +31,10 @@ export declare const SHELL_LABELS_ADDED_BOFF_8060: readonly string[];
31
31
  * English.
32
32
  */
33
33
  export declare const SHELL_LABELS_ADDED_BOFF_10854: readonly string[];
34
+ /**
35
+ * The keys `WorkspaceMenu`'s opt-in searchable lists and "New project" added
36
+ * (BOFF-13461). Not in any dictionary yet: seed them into `workspaces` (and a
37
+ * product's curated words, where it keeps its own). Until then each renders its
38
+ * English.
39
+ */
40
+ export declare const SHELL_LABELS_ADDED_BOFF_13461: readonly string[];
@@ -5,6 +5,7 @@ export { useRememberedOpen } from './use-remembered-open';
5
5
  export { ShowTechnicalDetails, type ShowTechnicalDetailsProps } from './show-technical-details';
6
6
  export { PageTabs, matchActiveTab, splitTabs, type PageTabItem, type PageTabsProps, } from './page-tabs';
7
7
  export { AccessGate, type AccessGateProps } from './access-gate';
8
+ export { useHeadingDocumentTitle, type HeadingDocumentTitleOptions, } from './use-heading-document-title';
8
9
  export { BottomSheet, BottomSheetClose, BottomSheetContent, BottomSheetDescription, BottomSheetFooter, BottomSheetHeader, BottomSheetTitle, BottomSheetTrigger, type BottomSheetContentProps, type BottomSheetProps, } from './bottom-sheet';
9
10
  export { ResponsiveDialog, ResponsiveDialogClose, ResponsiveDialogContent, ResponsiveDialogDescription, ResponsiveDialogFooter, ResponsiveDialogHeader, ResponsiveDialogTitle, ResponsiveDialogTrigger, type ResponsiveDialogContentProps, } from './responsive-dialog';
10
11
  export { ResponsiveTable, type ResponsiveTableColumn, type ResponsiveTableColumnPriority, type ResponsiveTableProps, } from './responsive-table';
@@ -0,0 +1,19 @@
1
+ export interface HeadingDocumentTitleOptions {
2
+ /** Off by default for callers: the title is left alone unless this is true (opt-in per app). */
3
+ enabled: boolean;
4
+ /** Appended after the heading, e.g. the product name: "Invoices · FluidGrids". */
5
+ suffix?: string;
6
+ }
7
+ /**
8
+ * Gives each page its own browser tab title, taken from the page's main heading
9
+ * (BOFF-11862, BOFF-11863). Many pages share one tab title today, so a person
10
+ * with several tabs open cannot tell them apart, and history and bookmarks all
11
+ * read the same.
12
+ *
13
+ * One call in a module's root covers every page in it: the title follows the
14
+ * heading as pages render, load and change, so no page needs its own code. When
15
+ * a page has no heading yet, the title stays as it was. The original title is
16
+ * put back when the module unmounts, and nothing runs unless `enabled` is true,
17
+ * so apps that do not opt in are untouched.
18
+ */
19
+ export declare function useHeadingDocumentTitle({ enabled, suffix }: HeadingDocumentTitleOptions): void;
@@ -0,0 +1,29 @@
1
+ import { useEffect as e } from "react";
2
+ // src/ui/use-heading-document-title.ts
3
+ function t() {
4
+ return ((document.querySelector("main h1") ?? document.querySelector("h1"))?.textContent ?? "").replace(/\s+/g, " ").trim();
5
+ }
6
+ function n({ enabled: n, suffix: r }) {
7
+ e(() => {
8
+ if (!n || typeof document > "u") return;
9
+ let e = document.title, i = 0, a = () => {
10
+ i = 0;
11
+ let e = t();
12
+ if (!e) return;
13
+ let n = r ? `${e} · ${r}` : e;
14
+ document.title !== n && (document.title = n);
15
+ }, o = () => {
16
+ i ||= requestAnimationFrame(a);
17
+ };
18
+ a();
19
+ let s = new MutationObserver(o);
20
+ return s.observe(document.body, {
21
+ childList: !0,
22
+ subtree: !0,
23
+ characterData: !0
24
+ }), () => {
25
+ s.disconnect(), i && cancelAnimationFrame(i), document.title = e;
26
+ };
27
+ }, [n, r]);
28
+ }
29
+ export { n as useHeadingDocumentTitle };
package/dist/ui.js CHANGED
@@ -5,51 +5,52 @@ import { useRememberedOpen as s } from "./ui/use-remembered-open.js";
5
5
  import { ShowTechnicalDetails as c } from "./ui/show-technical-details.js";
6
6
  import { PageTabs as l, matchActiveTab as u, splitTabs as d } from "./ui/page-tabs.js";
7
7
  import { AccessGate as f } from "./ui/access-gate.js";
8
- import { BottomSheet as p, BottomSheetClose as m, BottomSheetContent as h, BottomSheetDescription as g, BottomSheetFooter as _, BottomSheetHeader as v, BottomSheetTitle as y, BottomSheetTrigger as b } from "./ui/bottom-sheet.js";
9
- import { ResponsiveDialog as x, ResponsiveDialogClose as S, ResponsiveDialogContent as C, ResponsiveDialogDescription as w, ResponsiveDialogFooter as T, ResponsiveDialogHeader as E, ResponsiveDialogTitle as D, ResponsiveDialogTrigger as O } from "./ui/responsive-dialog.js";
10
- import { ResponsiveTable as k } from "./ui/responsive-table.js";
11
- import { Pagination as A } from "./ui/pagination.js";
12
- import { Stepper as j } from "./ui/stepper.js";
13
- import { ResponsiveStack as M } from "./ui/responsive-stack.js";
14
- import { EmptyState as N } from "./ui/empty-state.js";
15
- import { AlertDialog as P, AlertDialogAction as F, AlertDialogCancel as I, AlertDialogContent as L, AlertDialogDescription as R, AlertDialogFooter as z, AlertDialogHeader as B, AlertDialogOverlay as V, AlertDialogPortal as H, AlertDialogTitle as U, AlertDialogTrigger as W } from "./ui/alert-dialog.js";
16
- import { Badge as G, badgeVariants as K } from "./ui/badge.js";
17
- import { Button as q, buttonVariants as J } from "./ui/button.js";
18
- import { Card as Y, CardContent as X, CardDescription as Z, CardFooter as Q, CardHeader as $, CardTitle as ee } from "./ui/card.js";
19
- import { Checkbox as te } from "./ui/checkbox.js";
20
- import { Command as ne, CommandDialog as re, CommandEmpty as ie, CommandGroup as ae, CommandInput as oe, CommandItem as se, CommandList as ce, CommandSeparator as le, CommandShortcut as ue } from "./ui/command.js";
21
- import { Dialog as de, DialogClose as fe, DialogContent as pe, DialogDescription as me, DialogFooter as he, DialogHeader as ge, DialogOverlay as _e, DialogPortal as ve, DialogTitle as ye, DialogTrigger as be } from "./ui/dialog.js";
22
- import { DropdownMenu as xe, DropdownMenuCheckboxItem as Se, DropdownMenuContent as Ce, DropdownMenuGroup as we, DropdownMenuItem as Te, DropdownMenuLabel as Ee, DropdownMenuPortal as De, DropdownMenuRadioGroup as Oe, DropdownMenuRadioItem as ke, DropdownMenuSeparator as Ae, DropdownMenuShortcut as je, DropdownMenuSub as Me, DropdownMenuSubContent as Ne, DropdownMenuSubTrigger as Pe, DropdownMenuTrigger as Fe } from "./ui/dropdown-menu.js";
23
- import { Input as Ie } from "./ui/input.js";
24
- import { Label as Le } from "./ui/label.js";
25
- import { Popover as Re, PopoverAnchor as ze, PopoverContent as Be, PopoverTrigger as Ve } from "./ui/popover.js";
26
- import { ScrollArea as He, ScrollBar as Ue } from "./ui/scroll-area.js";
27
- import { NativeSelect as We, Select as Ge, SelectContent as Ke, SelectGroup as qe, SelectItem as Je, SelectLabel as Ye, SelectScrollDownButton as Xe, SelectScrollUpButton as Ze, SelectSeparator as Qe, SelectTrigger as $e, SelectValue as et } from "./ui/select.js";
28
- import { Separator as tt } from "./ui/separator.js";
29
- import { Sheet as nt, SheetClose as rt, SheetContent as it, SheetDescription as at, SheetFooter as ot, SheetHeader as st, SheetTitle as ct, SheetTrigger as lt } from "./ui/sheet.js";
30
- import { Skeleton as ut } from "./ui/skeleton.js";
31
- import { Toaster as dt } from "./ui/sonner.js";
32
- import { Spinner as ft } from "./ui/spinner.js";
33
- import { Switch as pt } from "./ui/switch.js";
34
- import { Table as mt, TableBody as ht, TableCaption as gt, TableCell as _t, TableFooter as vt, TableHead as yt, TableHeader as bt, TableRow as xt } from "./ui/table.js";
35
- import { Tabs as St, TabsContent as Ct, TabsList as wt, TabsTrigger as Tt } from "./ui/tabs.js";
36
- import { Textarea as Et } from "./ui/textarea.js";
37
- import { Tooltip as Dt, TooltipContent as Ot, TooltipProvider as kt, TooltipTrigger as At } from "./ui/tooltip.js";
38
- import { PageContainer as jt } from "./ui/page-container.js";
39
- import { GlassCard as Mt, glassCardVariants as Nt } from "./ui/glass-card.js";
40
- import { EmphasisPanel as Pt } from "./ui/emphasis-panel.js";
41
- import { ShowMore as Ft } from "./ui/show-more.js";
42
- import { CTAOverflowMenu as It } from "./ui/cta-overflow-menu.js";
43
- import { BrandedSplash as Lt } from "./ui/branded-splash.js";
44
- import { ModernLanding as Rt } from "./ui/modern-landing.js";
45
- import { AuroraBackground as zt } from "./ui/aurora-background.js";
46
- import { IllustratedEmptyState as Bt, Illustration as Vt } from "./ui/illustration.js";
47
- import { GradientText as Ht } from "./ui/gradient-text.js";
48
- import { NextSteps as Ut, PagePurpose as Wt } from "./ui/guidance.js";
49
- import { NativeWelcome as Gt } from "./ui/native-welcome.js";
50
- import { ActionSheet as Kt } from "./ui/action-sheet.js";
51
- import { OfflineBanner as qt } from "./ui/offline-banner.js";
52
- import { PullToRefresh as Jt } from "./ui/pull-to-refresh.js";
53
- import { PWAUpdateToast as Yt } from "./ui/pwa-update-toast.js";
54
- import { ModalShell as Xt } from "./ui/modal-shell.js";
55
- export { f as AccessGate, e as Accordion, t as AccordionContent, n as AccordionItem, r as AccordionTrigger, Kt as ActionSheet, P as AlertDialog, F as AlertDialogAction, I as AlertDialogCancel, L as AlertDialogContent, R as AlertDialogDescription, z as AlertDialogFooter, B as AlertDialogHeader, V as AlertDialogOverlay, H as AlertDialogPortal, U as AlertDialogTitle, W as AlertDialogTrigger, zt as AuroraBackground, G as Badge, p as BottomSheet, m as BottomSheetClose, h as BottomSheetContent, g as BottomSheetDescription, _ as BottomSheetFooter, v as BottomSheetHeader, y as BottomSheetTitle, b as BottomSheetTrigger, Lt as BrandedSplash, q as Button, It as CTAOverflowMenu, Y as Card, X as CardContent, Z as CardDescription, Q as CardFooter, $ as CardHeader, ee as CardTitle, te as Checkbox, ne as Command, re as CommandDialog, ie as CommandEmpty, ae as CommandGroup, oe as CommandInput, se as CommandItem, ce as CommandList, le as CommandSeparator, ue as CommandShortcut, de as Dialog, fe as DialogClose, pe as DialogContent, me as DialogDescription, he as DialogFooter, ge as DialogHeader, _e as DialogOverlay, ve as DialogPortal, ye as DialogTitle, be as DialogTrigger, xe as DropdownMenu, Se as DropdownMenuCheckboxItem, Ce as DropdownMenuContent, we as DropdownMenuGroup, Te as DropdownMenuItem, Ee as DropdownMenuLabel, De as DropdownMenuPortal, Oe as DropdownMenuRadioGroup, ke as DropdownMenuRadioItem, Ae as DropdownMenuSeparator, je as DropdownMenuShortcut, Me as DropdownMenuSub, Ne as DropdownMenuSubContent, Pe as DropdownMenuSubTrigger, Fe as DropdownMenuTrigger, Pt as EmphasisPanel, N as EmptyState, i as EntityIdModal, Mt as GlassCard, Ht as GradientText, Bt as IllustratedEmptyState, Vt as Illustration, Ie as Input, Le as Label, Xt as ModalShell, Rt as ModernLanding, We as NativeSelect, Gt as NativeWelcome, Ut as NextSteps, qt as OfflineBanner, o as OptionalFields, Yt as PWAUpdateToast, jt as PageContainer, Wt as PagePurpose, l as PageTabs, A as Pagination, Re as Popover, ze as PopoverAnchor, Be as PopoverContent, Ve as PopoverTrigger, Jt as PullToRefresh, x as ResponsiveDialog, S as ResponsiveDialogClose, C as ResponsiveDialogContent, w as ResponsiveDialogDescription, T as ResponsiveDialogFooter, E as ResponsiveDialogHeader, D as ResponsiveDialogTitle, O as ResponsiveDialogTrigger, M as ResponsiveStack, k as ResponsiveTable, He as ScrollArea, Ue as ScrollBar, Ge as Select, Ke as SelectContent, qe as SelectGroup, Je as SelectItem, Ye as SelectLabel, Xe as SelectScrollDownButton, Ze as SelectScrollUpButton, Qe as SelectSeparator, $e as SelectTrigger, et as SelectValue, tt as Separator, nt as Sheet, rt as SheetClose, it as SheetContent, at as SheetDescription, ot as SheetFooter, st as SheetHeader, ct as SheetTitle, lt as SheetTrigger, Ft as ShowMore, c as ShowTechnicalDetails, ut as Skeleton, ft as Spinner, j as Stepper, pt as Switch, mt as Table, ht as TableBody, gt as TableCaption, _t as TableCell, vt as TableFooter, yt as TableHead, bt as TableHeader, xt as TableRow, St as Tabs, Ct as TabsContent, wt as TabsList, Tt as TabsTrigger, Et as Textarea, dt as Toaster, Dt as Tooltip, Ot as TooltipContent, kt as TooltipProvider, At as TooltipTrigger, K as badgeVariants, J as buttonVariants, Nt as glassCardVariants, u as matchActiveTab, d as splitTabs, a as useEntityIdModal, s as useRememberedOpen };
8
+ import { useHeadingDocumentTitle as p } from "./ui/use-heading-document-title.js";
9
+ import { BottomSheet as m, BottomSheetClose as h, BottomSheetContent as g, BottomSheetDescription as _, BottomSheetFooter as v, BottomSheetHeader as y, BottomSheetTitle as b, BottomSheetTrigger as x } from "./ui/bottom-sheet.js";
10
+ import { ResponsiveDialog as S, ResponsiveDialogClose as C, ResponsiveDialogContent as w, ResponsiveDialogDescription as T, ResponsiveDialogFooter as E, ResponsiveDialogHeader as D, ResponsiveDialogTitle as O, ResponsiveDialogTrigger as k } from "./ui/responsive-dialog.js";
11
+ import { ResponsiveTable as A } from "./ui/responsive-table.js";
12
+ import { Pagination as j } from "./ui/pagination.js";
13
+ import { Stepper as M } from "./ui/stepper.js";
14
+ import { ResponsiveStack as N } from "./ui/responsive-stack.js";
15
+ import { EmptyState as P } from "./ui/empty-state.js";
16
+ import { AlertDialog as F, AlertDialogAction as I, AlertDialogCancel as L, AlertDialogContent as R, AlertDialogDescription as z, AlertDialogFooter as B, AlertDialogHeader as V, AlertDialogOverlay as H, AlertDialogPortal as U, AlertDialogTitle as W, AlertDialogTrigger as G } from "./ui/alert-dialog.js";
17
+ import { Badge as K, badgeVariants as q } from "./ui/badge.js";
18
+ import { Button as J, buttonVariants as Y } from "./ui/button.js";
19
+ import { Card as X, CardContent as Z, CardDescription as Q, CardFooter as $, CardHeader as ee, CardTitle as te } from "./ui/card.js";
20
+ import { Checkbox as ne } from "./ui/checkbox.js";
21
+ import { Command as re, CommandDialog as ie, CommandEmpty as ae, CommandGroup as oe, CommandInput as se, CommandItem as ce, CommandList as le, CommandSeparator as ue, CommandShortcut as de } from "./ui/command.js";
22
+ import { Dialog as fe, DialogClose as pe, DialogContent as me, DialogDescription as he, DialogFooter as ge, DialogHeader as _e, DialogOverlay as ve, DialogPortal as ye, DialogTitle as be, DialogTrigger as xe } from "./ui/dialog.js";
23
+ import { DropdownMenu as Se, DropdownMenuCheckboxItem as Ce, DropdownMenuContent as we, DropdownMenuGroup as Te, DropdownMenuItem as Ee, DropdownMenuLabel as De, DropdownMenuPortal as Oe, DropdownMenuRadioGroup as ke, DropdownMenuRadioItem as Ae, DropdownMenuSeparator as je, DropdownMenuShortcut as Me, DropdownMenuSub as Ne, DropdownMenuSubContent as Pe, DropdownMenuSubTrigger as Fe, DropdownMenuTrigger as Ie } from "./ui/dropdown-menu.js";
24
+ import { Input as Le } from "./ui/input.js";
25
+ import { Label as Re } from "./ui/label.js";
26
+ import { Popover as ze, PopoverAnchor as Be, PopoverContent as Ve, PopoverTrigger as He } from "./ui/popover.js";
27
+ import { ScrollArea as Ue, ScrollBar as We } from "./ui/scroll-area.js";
28
+ import { NativeSelect as Ge, Select as Ke, SelectContent as qe, SelectGroup as Je, SelectItem as Ye, SelectLabel as Xe, SelectScrollDownButton as Ze, SelectScrollUpButton as Qe, SelectSeparator as $e, SelectTrigger as et, SelectValue as tt } from "./ui/select.js";
29
+ import { Separator as nt } from "./ui/separator.js";
30
+ import { Sheet as rt, SheetClose as it, SheetContent as at, SheetDescription as ot, SheetFooter as st, SheetHeader as ct, SheetTitle as lt, SheetTrigger as ut } from "./ui/sheet.js";
31
+ import { Skeleton as dt } from "./ui/skeleton.js";
32
+ import { Toaster as ft } from "./ui/sonner.js";
33
+ import { Spinner as pt } from "./ui/spinner.js";
34
+ import { Switch as mt } from "./ui/switch.js";
35
+ import { Table as ht, TableBody as gt, TableCaption as _t, TableCell as vt, TableFooter as yt, TableHead as bt, TableHeader as xt, TableRow as St } from "./ui/table.js";
36
+ import { Tabs as Ct, TabsContent as wt, TabsList as Tt, TabsTrigger as Et } from "./ui/tabs.js";
37
+ import { Textarea as Dt } from "./ui/textarea.js";
38
+ import { Tooltip as Ot, TooltipContent as kt, TooltipProvider as At, TooltipTrigger as jt } from "./ui/tooltip.js";
39
+ import { PageContainer as Mt } from "./ui/page-container.js";
40
+ import { GlassCard as Nt, glassCardVariants as Pt } from "./ui/glass-card.js";
41
+ import { EmphasisPanel as Ft } from "./ui/emphasis-panel.js";
42
+ import { ShowMore as It } from "./ui/show-more.js";
43
+ import { CTAOverflowMenu as Lt } from "./ui/cta-overflow-menu.js";
44
+ import { BrandedSplash as Rt } from "./ui/branded-splash.js";
45
+ import { ModernLanding as zt } from "./ui/modern-landing.js";
46
+ import { AuroraBackground as Bt } from "./ui/aurora-background.js";
47
+ import { IllustratedEmptyState as Vt, Illustration as Ht } from "./ui/illustration.js";
48
+ import { GradientText as Ut } from "./ui/gradient-text.js";
49
+ import { NextSteps as Wt, PagePurpose as Gt } from "./ui/guidance.js";
50
+ import { NativeWelcome as Kt } from "./ui/native-welcome.js";
51
+ import { ActionSheet as qt } from "./ui/action-sheet.js";
52
+ import { OfflineBanner as Jt } from "./ui/offline-banner.js";
53
+ import { PullToRefresh as Yt } from "./ui/pull-to-refresh.js";
54
+ import { PWAUpdateToast as Xt } from "./ui/pwa-update-toast.js";
55
+ import { ModalShell as Zt } from "./ui/modal-shell.js";
56
+ export { f as AccessGate, e as Accordion, t as AccordionContent, n as AccordionItem, r as AccordionTrigger, qt as ActionSheet, F as AlertDialog, I as AlertDialogAction, L as AlertDialogCancel, R as AlertDialogContent, z as AlertDialogDescription, B as AlertDialogFooter, V as AlertDialogHeader, H as AlertDialogOverlay, U as AlertDialogPortal, W as AlertDialogTitle, G as AlertDialogTrigger, Bt as AuroraBackground, K as Badge, m as BottomSheet, h as BottomSheetClose, g as BottomSheetContent, _ as BottomSheetDescription, v as BottomSheetFooter, y as BottomSheetHeader, b as BottomSheetTitle, x as BottomSheetTrigger, Rt as BrandedSplash, J as Button, Lt as CTAOverflowMenu, X as Card, Z as CardContent, Q as CardDescription, $ as CardFooter, ee as CardHeader, te as CardTitle, ne as Checkbox, re as Command, ie as CommandDialog, ae as CommandEmpty, oe as CommandGroup, se as CommandInput, ce as CommandItem, le as CommandList, ue as CommandSeparator, de as CommandShortcut, fe as Dialog, pe as DialogClose, me as DialogContent, he as DialogDescription, ge as DialogFooter, _e as DialogHeader, ve as DialogOverlay, ye as DialogPortal, be as DialogTitle, xe as DialogTrigger, Se as DropdownMenu, Ce as DropdownMenuCheckboxItem, we as DropdownMenuContent, Te as DropdownMenuGroup, Ee as DropdownMenuItem, De as DropdownMenuLabel, Oe as DropdownMenuPortal, ke as DropdownMenuRadioGroup, Ae as DropdownMenuRadioItem, je as DropdownMenuSeparator, Me as DropdownMenuShortcut, Ne as DropdownMenuSub, Pe as DropdownMenuSubContent, Fe as DropdownMenuSubTrigger, Ie as DropdownMenuTrigger, Ft as EmphasisPanel, P as EmptyState, i as EntityIdModal, Nt as GlassCard, Ut as GradientText, Vt as IllustratedEmptyState, Ht as Illustration, Le as Input, Re as Label, Zt as ModalShell, zt as ModernLanding, Ge as NativeSelect, Kt as NativeWelcome, Wt as NextSteps, Jt as OfflineBanner, o as OptionalFields, Xt as PWAUpdateToast, Mt as PageContainer, Gt as PagePurpose, l as PageTabs, j as Pagination, ze as Popover, Be as PopoverAnchor, Ve as PopoverContent, He as PopoverTrigger, Yt as PullToRefresh, S as ResponsiveDialog, C as ResponsiveDialogClose, w as ResponsiveDialogContent, T as ResponsiveDialogDescription, E as ResponsiveDialogFooter, D as ResponsiveDialogHeader, O as ResponsiveDialogTitle, k as ResponsiveDialogTrigger, N as ResponsiveStack, A as ResponsiveTable, Ue as ScrollArea, We as ScrollBar, Ke as Select, qe as SelectContent, Je as SelectGroup, Ye as SelectItem, Xe as SelectLabel, Ze as SelectScrollDownButton, Qe as SelectScrollUpButton, $e as SelectSeparator, et as SelectTrigger, tt as SelectValue, nt as Separator, rt as Sheet, it as SheetClose, at as SheetContent, ot as SheetDescription, st as SheetFooter, ct as SheetHeader, lt as SheetTitle, ut as SheetTrigger, It as ShowMore, c as ShowTechnicalDetails, dt as Skeleton, pt as Spinner, M as Stepper, mt as Switch, ht as Table, gt as TableBody, _t as TableCaption, vt as TableCell, yt as TableFooter, bt as TableHead, xt as TableHeader, St as TableRow, Ct as Tabs, wt as TabsContent, Tt as TabsList, Et as TabsTrigger, Dt as Textarea, ft as Toaster, Ot as Tooltip, kt as TooltipContent, At as TooltipProvider, jt as TooltipTrigger, q as badgeVariants, Y as buttonVariants, Pt as glassCardVariants, u as matchActiveTab, d as splitTabs, a as useEntityIdModal, p as useHeadingDocumentTitle, s as useRememberedOpen };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/fe-libs",
3
- "version": "2026.1113.7",
3
+ "version": "2026.1113.9",
4
4
  "description": "Burdenoff frontend primitives and domain libraries",
5
5
  "repository": {
6
6
  "type": "git",