@burdenoff/fe-libs 2026.1119.5 → 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.
Files changed (94) hide show
  1. package/dist/chrome/HeaderThemeSwitcher.js +1 -1
  2. package/dist/chrome/PersonaSurfaceControls.js +82 -189
  3. package/dist/chrome/PersonaViewsList.d.ts +28 -0
  4. package/dist/chrome/PersonaViewsList.js +139 -0
  5. package/dist/chrome/ThemePreferences.js +16 -16
  6. package/dist/chrome/appearance/AppearanceColourSection.d.ts +17 -0
  7. package/dist/chrome/appearance/AppearanceColourSection.js +337 -0
  8. package/dist/chrome/appearance/AppearanceDisplaySection.d.ts +7 -0
  9. package/dist/chrome/appearance/AppearanceDisplaySection.js +137 -0
  10. package/dist/chrome/appearance/AppearanceModeDepth.d.ts +11 -0
  11. package/dist/chrome/appearance/AppearanceModeDepth.js +158 -0
  12. package/dist/chrome/appearance/AppearancePreferences.d.ts +13 -0
  13. package/dist/chrome/appearance/AppearancePreferences.js +308 -0
  14. package/dist/chrome/appearance/AppearancePreview.d.ts +23 -0
  15. package/dist/chrome/appearance/AppearancePreview.js +218 -0
  16. package/dist/chrome/appearance/AppearanceThemeSection.d.ts +14 -0
  17. package/dist/chrome/appearance/AppearanceThemeSection.js +162 -0
  18. package/dist/chrome/appearance/ColourPanel.d.ts +37 -0
  19. package/dist/chrome/appearance/ColourPanel.js +264 -0
  20. package/dist/chrome/appearance/ThemeDialog.d.ts +21 -0
  21. package/dist/chrome/appearance/ThemeDialog.js +378 -0
  22. package/dist/chrome/appearance/appearanceShared.d.ts +24 -0
  23. package/dist/chrome/appearance/appearanceShared.js +46 -0
  24. package/dist/chrome/appearance/appearanceUi.d.ts +49 -0
  25. package/dist/chrome/appearance/appearanceUi.js +98 -0
  26. package/dist/chrome/appearance/useAppearanceLabels.d.ts +181 -0
  27. package/dist/chrome/appearance/useAppearanceLabels.js +259 -0
  28. package/dist/chrome/index.d.ts +1 -0
  29. package/dist/chrome/personaViewOptions.d.ts +8 -0
  30. package/dist/chrome/personaViewOptions.js +14 -0
  31. package/dist/chrome/shell/NewMenu.d.ts +13 -1
  32. package/dist/chrome/shell/NewMenu.js +27 -14
  33. package/dist/chrome/shell/ShellSidebar.js +2 -0
  34. package/dist/chrome/shell/SidebarProfileMenu.d.ts +36 -4
  35. package/dist/chrome/shell/SidebarProfileMenu.js +423 -331
  36. package/dist/chrome/shell/WorkspaceAccountCard.d.ts +22 -0
  37. package/dist/chrome/shell/WorkspaceAccountCard.js +102 -0
  38. package/dist/chrome/shell/pageHost.d.ts +19 -0
  39. package/dist/chrome/shell/pageHost.js +21 -0
  40. package/dist/chrome/shell/pageWidth.d.ts +39 -0
  41. package/dist/chrome/shell/pageWidth.js +18 -0
  42. package/dist/chrome/shellLabelManifest.d.ts +6 -0
  43. package/dist/chrome.js +26 -25
  44. package/dist/platform-pages/AppearanceSettingsPage.d.ts +11 -1
  45. package/dist/platform-pages/AppearanceSettingsPage.js +15 -8
  46. package/dist/shared/assistant/ui/composer/AssistantComposer.js +346 -345
  47. package/dist/shared/backgrounds/BackgroundSettingsSection.d.ts +11 -0
  48. package/dist/shared/backgrounds/BackgroundSettingsSection.js +67 -0
  49. package/dist/shared/backgrounds/backgroundSectionLabels.d.ts +14 -0
  50. package/dist/shared/backgrounds/backgroundSectionLabels.js +36 -0
  51. package/dist/shared/backgrounds/index.d.ts +3 -0
  52. package/dist/shared/backgrounds/useBackgroundColors.js +3 -2
  53. package/dist/shared/backgrounds/useStartPageBackground.d.ts +12 -0
  54. package/dist/shared/backgrounds/useStartPageBackground.js +23 -0
  55. package/dist/shared/providers/AppShellProvider.d.ts +20 -1
  56. package/dist/shared/providers/AppShellProvider.js +230 -222
  57. package/dist/shared/providers/shell/PaletteThemeProvider.d.ts +13 -0
  58. package/dist/shared/providers/shell/PaletteThemeProvider.js +366 -0
  59. package/dist/shared/providers/shell/ThemeProvider.d.ts +9 -76
  60. package/dist/shared/providers/shell/ThemeProvider.js +63 -55
  61. package/dist/shared/providers/shell/appearance/colour.d.ts +29 -0
  62. package/dist/shared/providers/shell/appearance/colour.js +79 -0
  63. package/dist/shared/providers/shell/appearance/contrastFix.d.ts +70 -0
  64. package/dist/shared/providers/shell/appearance/contrastFix.js +117 -0
  65. package/dist/shared/providers/shell/appearance/index.d.ts +9 -0
  66. package/dist/shared/providers/shell/appearance/model.d.ts +68 -0
  67. package/dist/shared/providers/shell/appearance/model.js +92 -0
  68. package/dist/shared/providers/shell/appearance/operations.d.ts +70 -0
  69. package/dist/shared/providers/shell/appearance/operations.js +160 -0
  70. package/dist/shared/providers/shell/appearance/palettes.d.ts +111 -0
  71. package/dist/shared/providers/shell/appearance/palettes.js +460 -0
  72. package/dist/shared/providers/shell/appearance/storage.d.ts +39 -0
  73. package/dist/shared/providers/shell/appearance/storage.js +186 -0
  74. package/dist/shared/providers/shell/appearance/tokens.d.ts +5 -0
  75. package/dist/shared/providers/shell/appearance/tokens.js +43 -0
  76. package/dist/shared/providers/shell/appearance/types.d.ts +80 -0
  77. package/dist/shared/providers/shell/appearance/types.js +28 -0
  78. package/dist/shared/providers/shell/index.d.ts +1 -1
  79. package/dist/shared/providers/shell/responsiveDisplaySettings.d.ts +27 -0
  80. package/dist/shared/providers/shell/responsiveDisplaySettings.js +6 -0
  81. package/dist/shared/providers/shell/themeContext.d.ts +162 -0
  82. package/dist/shared/providers/shell/themeContext.js +4 -0
  83. package/dist/shared-backgrounds.js +4 -1
  84. package/dist/shell-native/system-bars.d.ts +5 -1
  85. package/dist/shell-native/system-bars.js +1 -1
  86. package/dist/ui/dropdown-menu.js +2 -0
  87. package/dist/ui/popover.js +1 -0
  88. package/dist/ui/select.js +1 -0
  89. package/package.json +5 -1
  90. package/src/shared/styles/page-widths.css +38 -0
  91. package/src/shared/tokens/build/brands/healthybowl.css +25 -3
  92. package/src/shared/tokens/build/themes.css +266 -0
  93. package/src/shared/tokens/display-settings.css +569 -0
  94. package/src/shared/tokens/tokens.css +4 -0
@@ -0,0 +1,11 @@
1
+ import { BackgroundSectionLabels } from './backgroundSectionLabels';
2
+ import { BackgroundPreference } from './useBackgroundPreference';
3
+ export interface BackgroundSettingsSectionProps {
4
+ /** The keys' namespace; the same one `useStartPageBackground` reads. */
5
+ storageKey: string;
6
+ /** The product's own default (also what a reset returns to). Pass a module constant. */
7
+ defaults?: Partial<BackgroundPreference>;
8
+ /** Translated words; any missing group falls back to the English defaults. */
9
+ labels?: Partial<BackgroundSectionLabels>;
10
+ }
11
+ export declare function BackgroundSettingsSection({ storageKey, defaults, labels, }: BackgroundSettingsSectionProps): import('react').JSX.Element;
@@ -0,0 +1,67 @@
1
+ import { Card as e, CardContent as t, CardDescription as n, CardHeader as r, CardTitle as i } from "../../ui/card.js";
2
+ import { resolveSectionLabels as a } from "./backgroundSectionLabels.js";
3
+ import { BackgroundOptionGroup as o, BackgroundPicker as s } from "./BackgroundPicker.js";
4
+ import { useBackgroundPreference as c } from "./useBackgroundPreference.js";
5
+ import { Sparkles as l } from "lucide-react";
6
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
7
+ // src/shared/backgrounds/BackgroundSettingsSection.tsx
8
+ function f({ storageKey: f, defaults: p, labels: m }) {
9
+ let h = a(m), g = c({
10
+ storageKey: f,
11
+ defaults: p
12
+ }), _ = Object.keys(h.colors).map((e) => ({
13
+ value: e,
14
+ label: h.colors[e]
15
+ })), v = Object.keys(h.strengths).map((e) => ({
16
+ value: e,
17
+ label: h.strengths[e]
18
+ })), y = g.effect === "none";
19
+ return /* @__PURE__ */ d(e, {
20
+ "data-testid": "appearance-background",
21
+ children: [/* @__PURE__ */ d(r, { children: [/* @__PURE__ */ d(i, {
22
+ className: "flex items-center gap-2",
23
+ children: [/* @__PURE__ */ u(l, {
24
+ className: "size-4 text-text-secondary",
25
+ "aria-hidden": "true"
26
+ }), h.title]
27
+ }), /* @__PURE__ */ u(n, { children: h.description })] }), /* @__PURE__ */ d(t, {
28
+ className: "flex flex-col gap-6",
29
+ children: [/* @__PURE__ */ u(s, {
30
+ value: g.effect,
31
+ onChange: g.setEffect,
32
+ label: h.title,
33
+ labels: h.effects,
34
+ colors: g.colors,
35
+ strength: g.strength
36
+ }), /* @__PURE__ */ d("div", {
37
+ className: "flex flex-col gap-6 sm:flex-row sm:flex-wrap",
38
+ children: [/* @__PURE__ */ d("div", {
39
+ className: "flex flex-col gap-2",
40
+ children: [/* @__PURE__ */ u("span", {
41
+ className: "text-sm font-medium text-text-primary",
42
+ children: h.colorsLabel
43
+ }), /* @__PURE__ */ u(o, {
44
+ value: g.colors,
45
+ onChange: g.setColors,
46
+ label: h.colorsLabel,
47
+ options: _,
48
+ className: y ? "opacity-60" : void 0
49
+ })]
50
+ }), /* @__PURE__ */ d("div", {
51
+ className: "flex flex-col gap-2",
52
+ children: [/* @__PURE__ */ u("span", {
53
+ className: "text-sm font-medium text-text-primary",
54
+ children: h.strengthLabel
55
+ }), /* @__PURE__ */ u(o, {
56
+ value: g.strength,
57
+ onChange: g.setStrength,
58
+ label: h.strengthLabel,
59
+ options: v,
60
+ className: y ? "opacity-60" : void 0
61
+ })]
62
+ })]
63
+ })]
64
+ })]
65
+ });
66
+ }
67
+ export { f as BackgroundSettingsSection };
@@ -0,0 +1,14 @@
1
+ import { BackgroundColorMode, BackgroundEffectName, BackgroundStrength } from './backgroundTypes';
2
+ /** Every word the section shows. */
3
+ export interface BackgroundSectionLabels {
4
+ title: string;
5
+ description: string;
6
+ colorsLabel: string;
7
+ strengthLabel: string;
8
+ effects: Record<BackgroundEffectName, string>;
9
+ colors: Record<BackgroundColorMode, string>;
10
+ strengths: Record<BackgroundStrength, string>;
11
+ }
12
+ export declare const DEFAULT_BACKGROUND_SECTION_LABELS: Readonly<BackgroundSectionLabels>;
13
+ /** The labels with every missing field (and every explicit `undefined`) filled from the defaults. */
14
+ export declare function resolveSectionLabels(labels: Partial<BackgroundSectionLabels> | undefined): BackgroundSectionLabels;
@@ -0,0 +1,36 @@
1
+ // src/shared/backgrounds/backgroundSectionLabels.ts
2
+ var e = {
3
+ title: "Background",
4
+ description: "An animated background behind the Assistant start page. Kept on this device.",
5
+ colorsLabel: "Color",
6
+ strengthLabel: "Strength",
7
+ effects: {
8
+ none: "None",
9
+ "dotted-waves": "Dotted waves",
10
+ glimmer: "Glimmer",
11
+ "cursor-wave": "Cursor wave"
12
+ },
13
+ colors: {
14
+ accent: "Accent",
15
+ original: "Original",
16
+ mono: "Mono"
17
+ },
18
+ strengths: {
19
+ subtle: "Subtle",
20
+ medium: "Medium",
21
+ bold: "Bold"
22
+ }
23
+ };
24
+ function t(t) {
25
+ let n = e;
26
+ return {
27
+ title: t?.title ?? n.title,
28
+ description: t?.description ?? n.description,
29
+ colorsLabel: t?.colorsLabel ?? n.colorsLabel,
30
+ strengthLabel: t?.strengthLabel ?? n.strengthLabel,
31
+ effects: t?.effects ?? n.effects,
32
+ colors: t?.colors ?? n.colors,
33
+ strengths: t?.strengths ?? n.strengths
34
+ };
35
+ }
36
+ export { e as DEFAULT_BACKGROUND_SECTION_LABELS, t as resolveSectionLabels };
@@ -29,3 +29,6 @@ export { GLIMMER_DEFAULTS, type GlimmerDirection, type GlimmerParams } from './g
29
29
  export { CURSOR_WAVE_DEFAULTS, type CursorWaveColor, type CursorWaveParams, type CursorWaveShape, } from './cursorWaveRenderer';
30
30
  export { canvasScale, type CanvasFrame, type CanvasRenderer } from './canvasEffect';
31
31
  export type { Rgba } from './color';
32
+ export { BackgroundSettingsSection, type BackgroundSettingsSectionProps, } from './BackgroundSettingsSection';
33
+ export { DEFAULT_BACKGROUND_SECTION_LABELS, type BackgroundSectionLabels, } from './backgroundSectionLabels';
34
+ export { useStartPageBackground, type StartPageBackground } from './useStartPageBackground';
@@ -103,7 +103,7 @@ function w(e) {
103
103
  }, i = r("--color-bg-canvas"), o = typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia(C)?.matches === !0, s = i ? t(i) > .6 : !e.classList.contains("dark") && e.getAttribute("data-theme") !== "dark" && !o, c = e.getAttribute("data-accent") === "custom";
104
104
  return {
105
105
  light: s,
106
- accent: c ? r("--color-action-primary-bg") : r("--color-accent-glow") ?? r("--color-accent-primary") ?? r("--color-action-primary-bg"),
106
+ accent: c ? r("--color-accent-raw") ?? r("--color-action-primary-bg") : r("--color-accent-glow") ?? r("--color-accent-primary") ?? r("--color-action-primary-bg"),
107
107
  accentAlt: c ? null : r("--color-accent-glow-alt"),
108
108
  text: r("--color-text-primary")
109
109
  };
@@ -124,7 +124,8 @@ function D(e, t) {
124
124
  "data-theme",
125
125
  "data-brand",
126
126
  "data-accent",
127
- "data-accent-label"
127
+ "data-accent-label",
128
+ "data-dark-depth"
128
129
  ]
129
130
  }), n.push(() => r.disconnect());
130
131
  }
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ import { UseBackgroundPreferenceOptions } from './useBackgroundPreference';
3
+ export interface StartPageBackground {
4
+ /** The background, or `null` for None (the page keeps its shape either way). */
5
+ background: ReactNode;
6
+ /**
7
+ * The ground it comes with: the original colours' black in the dark theme and white in the
8
+ * light theme; `null` for the accent and greys, which draw over the product's own canvas.
9
+ */
10
+ backgroundGround: string | null;
11
+ }
12
+ export declare function useStartPageBackground({ storageKey, defaults, }?: UseBackgroundPreferenceOptions): StartPageBackground;
@@ -0,0 +1,23 @@
1
+ import { useBackgroundGround as e } from "./backgroundGround.js";
2
+ import { BackgroundEffect as t } from "./BackgroundEffect.js";
3
+ import { useBackgroundPreference as n } from "./useBackgroundPreference.js";
4
+ import { jsx as r } from "react/jsx-runtime";
5
+ // src/shared/backgrounds/useStartPageBackground.tsx
6
+ function i({ storageKey: i, defaults: a } = {}) {
7
+ let { effect: o, colors: s, strength: c } = n({
8
+ storageKey: i,
9
+ defaults: a
10
+ }), l = e(o, s);
11
+ return o === "none" ? {
12
+ background: null,
13
+ backgroundGround: null
14
+ } : {
15
+ background: /* @__PURE__ */ r(t, {
16
+ effect: o,
17
+ colors: s,
18
+ strength: c
19
+ }),
20
+ backgroundGround: l
21
+ };
22
+ }
23
+ export { i as useStartPageBackground };
@@ -1,6 +1,6 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
2
  import { WorkspaceOperationGuardMode } from '../graphql/workspaceOperationGuard';
3
- import { Brand, ThemeMode, Density, Typography, GlassIntensity } from './shell/ThemeProvider';
3
+ import { Brand, ThemeMode, Density, Typography, GlassIntensity, DarkDepth, PaletteName } from './shell/ThemeProvider';
4
4
  import { TranslationDictionary } from './shell/I18nProvider';
5
5
  import { BurdenoffEventName } from '../events';
6
6
  import { RumConfig } from '../rum/types';
@@ -55,6 +55,17 @@ export interface AppShellConfig {
55
55
  defaultTypography?: Typography;
56
56
  /** Per-product default glass intensity. */
57
57
  defaultGlass?: GlassIntensity;
58
+ /**
59
+ * BOFF-15524: the palette appearance model (themes as palettes that follow a Light / Dark /
60
+ * System mode and a dark depth, a contrast-fixed accent with the person's own colours, and
61
+ * saved looks). Off by default: every product without it keeps today's themes. FluidGrids
62
+ * opts in.
63
+ */
64
+ paletteAppearance?: boolean;
65
+ /** With `paletteAppearance`: the palette a device starts on (default `classic`). */
66
+ defaultPalette?: PaletteName;
67
+ /** With `paletteAppearance`: the dark depth a device starts on (default `darker`). */
68
+ defaultDarkDepth?: DarkDepth;
58
69
  /** Enable PWA install banner */
59
70
  enablePWA?: boolean;
60
71
  /** Brand initial for PWA banner icon */
@@ -94,6 +105,14 @@ export interface AppShellConfig {
94
105
  * (`tokens.css`, `data-native-controls`). Off by default: FluidGrids opts in.
95
106
  */
96
107
  themedNativeControls?: boolean;
108
+ /**
109
+ * BOFF-15525: the Appearance page's Density, Text size and Glass settings change the UI:
110
+ * buttons, inputs, cards, menus and sidebar rows scale with Density, the text sizes with
111
+ * Text size, and the floating sidebar, menus and composer take the Glass blur and
112
+ * transparency (not under `prefers-reduced-transparency`). Off by default: FluidGrids
113
+ * opts in; every other product keeps its fixed sizes.
114
+ */
115
+ responsiveDisplaySettings?: boolean;
97
116
  /**
98
117
  * Extra routes on which the analytics-consent prompt must NOT render (BOFF-6373).
99
118
  *