@burdenoff/fe-libs 2026.1117.7 → 2026.1118.1

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.
@@ -129,13 +129,13 @@ export { NativeTopBar, type NativeTopBarProps } from './NativeTopBar';
129
129
  export { SwipeNavigation, type SwipeNavigationProps } from './SwipeNavigation';
130
130
  export { NativePageTransition, type NativePageTransitionProps } from './NativePageTransition';
131
131
  export { findNavTitle, useNativeTopBarTitle } from './nativeTopBarTitle';
132
- export type { ShellDoor, ShellHelpAbout, ShellHelpAboutRow, ShellHelpLink, ShellHelpMenu, ShellHelpSection, ShellHelpStatus, ShellIcon, ShellMenuItem, ShellNavBadge, ShellNavEntry, ShellNavSection, ShellNavView, ShellSlot, ShellTrailItem, } from './shell/types';
132
+ export type { ShellDoor, ShellHelpAbout, ShellHelpAboutRow, ShellHelpLink, ShellHelpMenu, ShellHelpSection, ShellHelpStatus, ShellIcon, ShellMenuItem, ShellNavBadge, ShellNavEntry, ShellNavSection, ShellNavView, ShellSidebarAppearance, ShellSlot, ShellTrailItem, } from './shell/types';
133
133
  export { shellPathMatchScore, useProfileBoundJson, useShellNavViews, } from './shell/useShellNavViews';
134
134
  export type { ShellNavViewsState, UseShellNavViewsOptions } from './shell/useShellNavViews';
135
135
  export { applyShellNavSurface, isShellNavMoreEntry } from './shell/shellNavVisibility';
136
136
  export type { ShellNavSurfaceOptions } from './shell/shellNavVisibility';
137
137
  export { ShellKbd, ShellRailTooltipLabel, ShellSidebar, ShellSidebarCompactRow, ShellSidebarRail, ShellSidebarSection, } from './shell/ShellSidebar';
138
- export type { ShellSidebarProps, ShellSidebarRailProps } from './shell/ShellSidebar';
138
+ export type { ShellSidebarProps, ShellSidebarRailProps, ShellSidebarSectionProps, } from './shell/ShellSidebar';
139
139
  export { SHELL_SIDEBAR_WIDTH_VAR, publishShellSidebarWidth, usePublishShellSidebarWidth, } from './shell/shellSidebarWidth';
140
140
  export { ShellTopBar, type ShellTopBarProps } from './shell/ShellTopBar';
141
141
  export { SegmentedTabs } from './shell/SegmentedTabs';
@@ -1,7 +1,12 @@
1
- import { ShellMenuItem } from './types';
1
+ import { ShellMenuItem, ShellSidebarAppearance } from './types';
2
2
  export interface NewMenuProps {
3
3
  items: ShellMenuItem[];
4
4
  moreItems?: ShellMenuItem[];
5
5
  collapsed?: boolean;
6
+ /**
7
+ * BOFF-15168: `floating` makes the expanded button 32 px tall, matching the
8
+ * floating sidebar's search field. The collapsed tile is the same in both.
9
+ */
10
+ appearance?: ShellSidebarAppearance;
6
11
  }
7
- export declare function NewMenu({ items, moreItems, collapsed }: NewMenuProps): import('react').JSX.Element;
12
+ export declare function NewMenu({ items, moreItems, collapsed, appearance, }: NewMenuProps): import('react').JSX.Element;
@@ -6,11 +6,14 @@ import { Tooltip as c, TooltipContent as l, TooltipTrigger as u } from "../../ui
6
6
  import { Plus as d } from "lucide-react";
7
7
  import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
8
8
  // src/chrome/shell/NewMenu.tsx
9
- var h = "rounded-card border border-border-subtle bg-popover p-1.5 shadow-overlay", g = "h-control-sm gap-3 rounded-button px-2.5 focus:bg-bg-sunken", _ = "px-2.5 pb-1 pt-2.5 text-caption font-semibold uppercase tracking-wider text-text-muted";
10
- function v(e) {
9
+ var h = {
10
+ default: "h-control-sm flex-shrink-0 px-3 font-semibold",
11
+ floating: "h-8 flex-shrink-0 px-3 font-semibold"
12
+ }, g = "rounded-card border border-border-subtle bg-popover p-1.5 shadow-overlay", _ = "h-control-sm gap-3 rounded-button px-2.5 focus:bg-bg-sunken", v = "px-2.5 pb-1 pt-2.5 text-caption font-semibold uppercase tracking-wider text-text-muted";
13
+ function y(e) {
11
14
  let t = e.icon;
12
15
  return /* @__PURE__ */ m(a, {
13
- className: g,
16
+ className: _,
14
17
  disabled: e.disabled,
15
18
  onSelect: () => e.onSelect(),
16
19
  "data-testid": `shell-new-item-${e.id}`,
@@ -27,11 +30,11 @@ function v(e) {
27
30
  ]
28
31
  }, e.id);
29
32
  }
30
- function y({ items: a, moreItems: o = [], collapsed: g = !1 }) {
31
- let y = t(), b = y("shell.newMenu.new", "New"), x = y("shell.newMenu.label", "Create something new");
33
+ function b({ items: a, moreItems: o = [], collapsed: _ = !1, appearance: b = "default" }) {
34
+ let x = t(), S = x("shell.newMenu.new", "New"), C = x("shell.newMenu.label", "Create something new");
32
35
  return /* @__PURE__ */ m(r, {
33
36
  modal: !1,
34
- children: [g ? /* @__PURE__ */ m(c, {
37
+ children: [_ ? /* @__PURE__ */ m(c, {
35
38
  delayDuration: 200,
36
39
  children: [/* @__PURE__ */ p(u, {
37
40
  asChild: !0,
@@ -39,7 +42,7 @@ function y({ items: a, moreItems: o = [], collapsed: g = !1 }) {
39
42
  asChild: !0,
40
43
  children: /* @__PURE__ */ p("button", {
41
44
  type: "button",
42
- "aria-label": b,
45
+ "aria-label": S,
43
46
  "data-testid": "shell-new-trigger",
44
47
  className: "flex size-10 items-center justify-center rounded-button text-text-secondary outline-none transition-colors hover:bg-bg-sunken hover:text-text-primary focus-visible:ring-2 focus-visible:ring-focus-ring data-[state=open]:bg-bg-sunken",
45
48
  children: /* @__PURE__ */ p(d, {
@@ -52,7 +55,7 @@ function y({ items: a, moreItems: o = [], collapsed: g = !1 }) {
52
55
  side: "right",
53
56
  sideOffset: 10,
54
57
  className: "rounded-md border border-border-subtle bg-popover px-2 py-1 text-text-primary shadow-overlay",
55
- children: b
58
+ children: S
56
59
  })]
57
60
  }) : /* @__PURE__ */ p(s, {
58
61
  asChild: !0,
@@ -60,22 +63,22 @@ function y({ items: a, moreItems: o = [], collapsed: g = !1 }) {
60
63
  type: "button",
61
64
  size: "sm",
62
65
  "data-testid": "shell-new-trigger",
63
- className: "h-control-sm flex-shrink-0 px-3 font-semibold",
64
- children: [/* @__PURE__ */ p(d, { "aria-hidden": "true" }), b]
66
+ className: h[b],
67
+ children: [/* @__PURE__ */ p(d, { "aria-hidden": "true" }), S]
65
68
  })
66
69
  }), /* @__PURE__ */ m(i, {
67
- side: g ? "right" : "bottom",
70
+ side: _ ? "right" : "bottom",
68
71
  align: "start",
69
72
  sideOffset: 6,
70
- "aria-label": x,
73
+ "aria-label": C,
71
74
  "data-testid": "shell-new-menu",
72
- className: e(h, "w-[290px]"),
73
- children: [a.map(v), o.length > 0 && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
75
+ className: e(g, "w-[290px]"),
76
+ children: [a.map(y), o.length > 0 && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
74
77
  role: "presentation",
75
- className: _,
76
- children: y("shell.newMenu.more", "More")
77
- }), o.map(v)] })]
78
+ className: v,
79
+ children: x("shell.newMenu.more", "More")
80
+ }), o.map(y)] })]
78
81
  })]
79
82
  });
80
83
  }
81
- export { y as NewMenu };
84
+ export { b as NewMenu };
@@ -1,6 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
- import { ShellIcon, ShellNavEntry, ShellNavView } from './types';
2
+ import { ShellIcon, ShellNavEntry, ShellNavView, ShellSidebarAppearance } from './types';
3
3
  import { ShellNavViewsState } from './useShellNavViews';
4
+ export type { ShellSidebarAppearance } from './types';
4
5
  /** Keyboard-hint chip ("Ctrl K", "Ctrl ⇧ O"); also the rail tooltip's status chip. */
5
6
  export declare function ShellKbd({ children, className }: {
6
7
  children: ReactNode;
@@ -44,6 +45,13 @@ export interface ShellSidebarProps {
44
45
  * expands through `onExpand` and ignores this.
45
46
  */
46
47
  onToggleCollapse?: () => void;
48
+ /**
49
+ * BOFF-15168: `floating` insets the panel from the window's edges, with a
50
+ * hairline border and rounded corners, 32 px rows and sentence-case section
51
+ * names (see `ShellSidebarAppearance`). Absent or `default`: the sidebar of
52
+ * before, byte for byte.
53
+ */
54
+ appearance?: ShellSidebarAppearance;
47
55
  'data-tour'?: string;
48
56
  }
49
57
  export interface ShellSidebarRailProps extends ShellSidebarProps {
@@ -62,24 +70,50 @@ export interface ShellSidebarRailProps extends ShellSidebarProps {
62
70
  }
63
71
  /** The expanded 272 px sidebar (spec §1–2). */
64
72
  export declare function ShellSidebar(props: ShellSidebarProps): import('react').JSX.Element;
65
- /** Caption-labelled sidebar block (PINNED, RECENT CHATS) with an optional right action. */
66
- export declare function ShellSidebarSection({ label, action, children, }: {
73
+ export interface ShellSidebarSectionProps {
67
74
  label: string;
68
75
  action?: ReactNode;
69
76
  children: ReactNode;
70
- }): import('react').JSX.Element;
77
+ /**
78
+ * BOFF-15168: `floating` draws the name in sentence case. Defaults to the
79
+ * appearance of the sidebar the block is rendered in (`default` outside one).
80
+ */
81
+ appearance?: ShellSidebarAppearance;
82
+ /**
83
+ * BOFF-15168, opt-in: makes the block an accordion. The name becomes a
84
+ * button with a chevron (`aria-expanded`, `aria-controls`) that calls this
85
+ * with the opposite of `open`; the rows open and close smoothly, at once
86
+ * under reduced motion, and a closed block's rows are inert. `action` stays
87
+ * beside the button. The host owns `open` and remembers it. Without this
88
+ * the block is the captioned list of before.
89
+ */
90
+ onOpenChange?: (open: boolean) => void;
91
+ /** With `onOpenChange`: whether the rows show. Default: open. */
92
+ open?: boolean;
93
+ /** With `onOpenChange`: a count beside the name, shown open or closed. */
94
+ count?: number;
95
+ }
96
+ /**
97
+ * Caption-labelled sidebar block (PINNED, RECENT CHATS) with an optional right
98
+ * action; an accordion with `onOpenChange` (BOFF-15168).
99
+ */
100
+ export declare function ShellSidebarSection({ label, action, children, appearance, onOpenChange, open, count, }: ShellSidebarSectionProps): import('react').JSX.Element;
71
101
  /**
72
102
  * A 32 px compact row (pinned pages, recent chats). With `href` (a pinned
73
103
  * page) it is a link: a plain click calls `onClick`, a modified click opens a
74
104
  * new tab. Without one (a chat that opens in the assistant) it is a button.
105
+ * Floating (BOFF-15168, the sidebar's appearance unless `appearance` says
106
+ * otherwise): the current row is a raised fill with a hairline border.
75
107
  */
76
- export declare function ShellSidebarCompactRow({ icon: Icon, label, active, href, onClick, trailing, }: {
108
+ export declare function ShellSidebarCompactRow({ icon: Icon, label, active, href, onClick, trailing, appearance, }: {
77
109
  icon?: ShellIcon;
78
110
  label: string;
79
111
  active?: boolean;
80
112
  href?: string;
81
113
  onClick(): void;
82
114
  trailing?: ReactNode;
115
+ /** BOFF-15168: defaults to the appearance of the sidebar the row is in. */
116
+ appearance?: ShellSidebarAppearance;
83
117
  }): import('react').JSX.Element;
84
118
  /** The rail tooltip's body: the label, then an optional status chip ("3 waiting"). */
85
119
  export declare function ShellRailTooltipLabel({ label, hint }: {