@burdenoff/fe-libs 2026.1119.6 → 2026.1119.7
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.
- package/dist/chrome/PersonaSurfaceControls.js +82 -189
- package/dist/chrome/PersonaViewsList.d.ts +28 -0
- package/dist/chrome/PersonaViewsList.js +139 -0
- package/dist/chrome/personaViewOptions.d.ts +8 -0
- package/dist/chrome/personaViewOptions.js +14 -0
- package/dist/chrome/shell/NewMenu.d.ts +13 -1
- package/dist/chrome/shell/NewMenu.js +27 -14
- package/dist/chrome/shell/SidebarProfileMenu.d.ts +36 -4
- package/dist/chrome/shell/SidebarProfileMenu.js +423 -331
- package/dist/chrome/shell/WorkspaceAccountCard.d.ts +22 -0
- package/dist/chrome/shell/WorkspaceAccountCard.js +102 -0
- package/dist/chrome/shell/pageHost.d.ts +19 -0
- package/dist/chrome/shell/pageHost.js +21 -0
- package/dist/chrome/shell/pageWidth.d.ts +39 -0
- package/dist/chrome/shell/pageWidth.js +18 -0
- package/dist/shared/backgrounds/BackgroundSettingsSection.d.ts +11 -0
- package/dist/shared/backgrounds/BackgroundSettingsSection.js +67 -0
- package/dist/shared/backgrounds/backgroundSectionLabels.d.ts +14 -0
- package/dist/shared/backgrounds/backgroundSectionLabels.js +36 -0
- package/dist/shared/backgrounds/index.d.ts +3 -0
- package/dist/shared/backgrounds/useStartPageBackground.d.ts +12 -0
- package/dist/shared/backgrounds/useStartPageBackground.js +23 -0
- package/dist/shared-backgrounds.js +4 -1
- package/package.json +5 -1
- package/src/shared/styles/page-widths.css +38 -0
- package/src/shared/tokens/build/brands/healthybowl.css +25 -3
|
@@ -3,7 +3,17 @@ import { Account } from '../ProfileSwitcher';
|
|
|
3
3
|
import { ShellDoor, ShellHelpMenu, ShellMenuItem } from './types';
|
|
4
4
|
export type { ShellDoor } from './types';
|
|
5
5
|
export type ShellThemeValue = 'dark' | 'light' | 'system';
|
|
6
|
-
|
|
6
|
+
/** One Appearance choice a host passes in `theme.options` (BOFF-15549). */
|
|
7
|
+
export interface ShellThemeOption<T extends string = string> {
|
|
8
|
+
value: T;
|
|
9
|
+
label: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* `T` is the host's theme type. It defaults to the built-in union, so a host that passes none of
|
|
13
|
+
* the opt-in props and has a setter typed with that union (FluidGrids' `setMode`) compiles
|
|
14
|
+
* unchanged; a host with its own themes passes `options` and `T` is inferred from `value`.
|
|
15
|
+
*/
|
|
16
|
+
export interface SidebarProfileMenuProps<T extends string = ShellThemeValue> {
|
|
7
17
|
user: {
|
|
8
18
|
name: string;
|
|
9
19
|
email?: string;
|
|
@@ -34,8 +44,20 @@ export interface SidebarProfileMenuProps {
|
|
|
34
44
|
/** Right-hand hint on the Settings row, e.g. "Ctrl ,". */
|
|
35
45
|
settingsShortcut?: string;
|
|
36
46
|
theme: {
|
|
37
|
-
|
|
38
|
-
|
|
47
|
+
/** The host's current theme; one of `options` when the host passes them. */
|
|
48
|
+
value: T;
|
|
49
|
+
onChange(v: T): void;
|
|
50
|
+
/**
|
|
51
|
+
* Opt-in (BOFF-15549): the host's own Appearance choices (e.g. System, Light, Dark, Forest,
|
|
52
|
+
* Ocean, Sunset, High contrast), replacing the built-in Dark / Light / Match my device. The
|
|
53
|
+
* selection follows `value` and a pick calls `onChange(value)`.
|
|
54
|
+
*/
|
|
55
|
+
options?: ShellThemeOption<T>[];
|
|
56
|
+
/** Opt-in (BOFF-15549): one extra row under the choices, e.g. "More appearance settings…". */
|
|
57
|
+
more?: {
|
|
58
|
+
label: string;
|
|
59
|
+
onSelect(): void;
|
|
60
|
+
};
|
|
39
61
|
};
|
|
40
62
|
language: {
|
|
41
63
|
current: string;
|
|
@@ -52,6 +74,16 @@ export interface SidebarProfileMenuProps {
|
|
|
52
74
|
* a 340 px sub-menu and on the phone sheet. Unset: today's flat list.
|
|
53
75
|
*/
|
|
54
76
|
help?: ShellHelpMenu;
|
|
77
|
+
/**
|
|
78
|
+
* Opt-in "View ›" (BOFF-15549): a sub-menu in the popover, a section on the sheet, with the
|
|
79
|
+
* content and behaviour of `PersonaSurfaceControls` (search, Everything, the role views, My
|
|
80
|
+
* views, "New view from current…", Preview a role, Exit preview). Drawn only under a
|
|
81
|
+
* `PersonaSurfaceProvider`. Unset: nothing is added. "Customize menu" stays a host row
|
|
82
|
+
* (`extraItems`).
|
|
83
|
+
*/
|
|
84
|
+
personaViews?: {
|
|
85
|
+
label: string;
|
|
86
|
+
};
|
|
55
87
|
/** Keyboard shortcuts row (popover only). */
|
|
56
88
|
onKeyboardShortcuts?(): void;
|
|
57
89
|
/** Avatar-only trigger (collapsed sidebar). */
|
|
@@ -77,4 +109,4 @@ export interface PlanUsageCardProps {
|
|
|
77
109
|
* collapses to the name and "Manage" — no invented numbers.
|
|
78
110
|
*/
|
|
79
111
|
export declare function PlanUsageCard({ planName, onManage, used, limit, caption }: PlanUsageCardProps): import('react').JSX.Element;
|
|
80
|
-
export declare function SidebarProfileMenu({ user, roleLabel, orgName, planChip, accounts, activeAccountId, onSwitchAccount, onAddAccount, onRemoveAccount, onViewProfile, onLogout, planCard, doors, extraItems, onOpenSettings, settingsShortcut, theme, language, helpItems, help, onKeyboardShortcuts, collapsed, variant, open: openProp, onOpenChange, trigger, }: SidebarProfileMenuProps): import('react').JSX.Element | null;
|
|
112
|
+
export declare function SidebarProfileMenu<T extends string = ShellThemeValue>({ user, roleLabel, orgName, planChip, accounts, activeAccountId, onSwitchAccount, onAddAccount, onRemoveAccount, onViewProfile, onLogout, planCard, doors, extraItems, onOpenSettings, settingsShortcut, theme, language, helpItems, help, personaViews, onKeyboardShortcuts, collapsed, variant, open: openProp, onOpenChange, trigger, }: SidebarProfileMenuProps<T>): import('react').JSX.Element | null;
|