@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.
- package/dist/chrome/HeaderThemeSwitcher.js +1 -1
- 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/ThemePreferences.js +16 -16
- package/dist/chrome/appearance/AppearanceColourSection.d.ts +17 -0
- package/dist/chrome/appearance/AppearanceColourSection.js +337 -0
- package/dist/chrome/appearance/AppearanceDisplaySection.d.ts +7 -0
- package/dist/chrome/appearance/AppearanceDisplaySection.js +137 -0
- package/dist/chrome/appearance/AppearanceModeDepth.d.ts +11 -0
- package/dist/chrome/appearance/AppearanceModeDepth.js +158 -0
- package/dist/chrome/appearance/AppearancePreferences.d.ts +13 -0
- package/dist/chrome/appearance/AppearancePreferences.js +308 -0
- package/dist/chrome/appearance/AppearancePreview.d.ts +23 -0
- package/dist/chrome/appearance/AppearancePreview.js +218 -0
- package/dist/chrome/appearance/AppearanceThemeSection.d.ts +14 -0
- package/dist/chrome/appearance/AppearanceThemeSection.js +162 -0
- package/dist/chrome/appearance/ColourPanel.d.ts +37 -0
- package/dist/chrome/appearance/ColourPanel.js +264 -0
- package/dist/chrome/appearance/ThemeDialog.d.ts +21 -0
- package/dist/chrome/appearance/ThemeDialog.js +378 -0
- package/dist/chrome/appearance/appearanceShared.d.ts +24 -0
- package/dist/chrome/appearance/appearanceShared.js +46 -0
- package/dist/chrome/appearance/appearanceUi.d.ts +49 -0
- package/dist/chrome/appearance/appearanceUi.js +98 -0
- package/dist/chrome/appearance/useAppearanceLabels.d.ts +181 -0
- package/dist/chrome/appearance/useAppearanceLabels.js +259 -0
- package/dist/chrome/index.d.ts +1 -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/ShellSidebar.js +2 -0
- 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/chrome/shellLabelManifest.d.ts +6 -0
- package/dist/chrome.js +26 -25
- package/dist/platform-pages/AppearanceSettingsPage.d.ts +11 -1
- package/dist/platform-pages/AppearanceSettingsPage.js +15 -8
- package/dist/shared/assistant/ui/composer/AssistantComposer.js +346 -345
- 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/useBackgroundColors.js +3 -2
- package/dist/shared/backgrounds/useStartPageBackground.d.ts +12 -0
- package/dist/shared/backgrounds/useStartPageBackground.js +23 -0
- package/dist/shared/providers/AppShellProvider.d.ts +20 -1
- package/dist/shared/providers/AppShellProvider.js +230 -222
- package/dist/shared/providers/shell/PaletteThemeProvider.d.ts +13 -0
- package/dist/shared/providers/shell/PaletteThemeProvider.js +366 -0
- package/dist/shared/providers/shell/ThemeProvider.d.ts +9 -76
- package/dist/shared/providers/shell/ThemeProvider.js +63 -55
- package/dist/shared/providers/shell/appearance/colour.d.ts +29 -0
- package/dist/shared/providers/shell/appearance/colour.js +79 -0
- package/dist/shared/providers/shell/appearance/contrastFix.d.ts +70 -0
- package/dist/shared/providers/shell/appearance/contrastFix.js +117 -0
- package/dist/shared/providers/shell/appearance/index.d.ts +9 -0
- package/dist/shared/providers/shell/appearance/model.d.ts +68 -0
- package/dist/shared/providers/shell/appearance/model.js +92 -0
- package/dist/shared/providers/shell/appearance/operations.d.ts +70 -0
- package/dist/shared/providers/shell/appearance/operations.js +160 -0
- package/dist/shared/providers/shell/appearance/palettes.d.ts +111 -0
- package/dist/shared/providers/shell/appearance/palettes.js +460 -0
- package/dist/shared/providers/shell/appearance/storage.d.ts +39 -0
- package/dist/shared/providers/shell/appearance/storage.js +186 -0
- package/dist/shared/providers/shell/appearance/tokens.d.ts +5 -0
- package/dist/shared/providers/shell/appearance/tokens.js +43 -0
- package/dist/shared/providers/shell/appearance/types.d.ts +80 -0
- package/dist/shared/providers/shell/appearance/types.js +28 -0
- package/dist/shared/providers/shell/index.d.ts +1 -1
- package/dist/shared/providers/shell/responsiveDisplaySettings.d.ts +27 -0
- package/dist/shared/providers/shell/responsiveDisplaySettings.js +6 -0
- package/dist/shared/providers/shell/themeContext.d.ts +162 -0
- package/dist/shared/providers/shell/themeContext.js +4 -0
- package/dist/shared-backgrounds.js +4 -1
- package/dist/shell-native/system-bars.d.ts +5 -1
- package/dist/shell-native/system-bars.js +1 -1
- package/dist/ui/dropdown-menu.js +2 -0
- package/dist/ui/popover.js +1 -0
- package/dist/ui/select.js +1 -0
- package/package.json +5 -1
- package/src/shared/styles/page-widths.css +38 -0
- package/src/shared/tokens/build/brands/healthybowl.css +25 -3
- package/src/shared/tokens/build/themes.css +266 -0
- package/src/shared/tokens/display-settings.css +569 -0
- package/src/shared/tokens/tokens.css +4 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
export interface WorkspaceAccountBranch {
|
|
3
|
+
/** Stable id; the item's test id is `all-tools-branch-<id>`. */
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
icon: ComponentType<{
|
|
8
|
+
className?: string;
|
|
9
|
+
}>;
|
|
10
|
+
onSelect: () => void;
|
|
11
|
+
}
|
|
12
|
+
export interface WorkspaceAccountCardProps {
|
|
13
|
+
/** The card's, the rail tooltip's and the menu's name (already translated). */
|
|
14
|
+
label: string;
|
|
15
|
+
branches: WorkspaceAccountBranch[];
|
|
16
|
+
/** The collapsed rail's icon button instead of the sidebar card. */
|
|
17
|
+
collapsed?: boolean;
|
|
18
|
+
/** Called before a branch's `onSelect` when collapsed: open the sidebar so its view shows. */
|
|
19
|
+
onExpandSidebar?: () => void;
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function WorkspaceAccountCard({ label, branches, collapsed, onExpandSidebar, className, }: WorkspaceAccountCardProps): import('react').JSX.Element;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { DropdownMenu as e, DropdownMenuContent as t, DropdownMenuItem as n, DropdownMenuTrigger as r } from "../../ui/dropdown-menu.js";
|
|
2
|
+
import { Tooltip as i, TooltipContent as a, TooltipTrigger as o } from "../../ui/tooltip.js";
|
|
3
|
+
import { MENU_SURFACE as s } from "./profileMenuClasses.js";
|
|
4
|
+
import { ShellRailTooltipLabel as c } from "./ShellSidebar.js";
|
|
5
|
+
import { ChevronRight as l, LayoutGrid as u } from "lucide-react";
|
|
6
|
+
import { clsx as d } from "clsx";
|
|
7
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
8
|
+
// src/chrome/shell/WorkspaceAccountCard.tsx
|
|
9
|
+
var m = "outline-none focus-visible:ring-2 focus-visible:ring-focus-ring";
|
|
10
|
+
function h({ label: h, branches: g, collapsed: _ = !1, onExpandSidebar: v, className: y }) {
|
|
11
|
+
let b = (e) => {
|
|
12
|
+
_ && v?.(), e.onSelect();
|
|
13
|
+
}, x = _ ? /* @__PURE__ */ p(i, {
|
|
14
|
+
delayDuration: 200,
|
|
15
|
+
children: [/* @__PURE__ */ f(o, {
|
|
16
|
+
asChild: !0,
|
|
17
|
+
children: /* @__PURE__ */ f(r, {
|
|
18
|
+
asChild: !0,
|
|
19
|
+
children: /* @__PURE__ */ f("button", {
|
|
20
|
+
type: "button",
|
|
21
|
+
"aria-label": h,
|
|
22
|
+
"data-testid": "rail-all-tools-trigger",
|
|
23
|
+
className: d("flex size-10 items-center justify-center rounded-button text-text-secondary transition-colors hover:bg-bg-sunken hover:text-text-primary data-[state=open]:bg-bg-sunken", m, y),
|
|
24
|
+
children: /* @__PURE__ */ f(u, {
|
|
25
|
+
"aria-hidden": "true",
|
|
26
|
+
className: "size-4"
|
|
27
|
+
})
|
|
28
|
+
})
|
|
29
|
+
})
|
|
30
|
+
}), /* @__PURE__ */ f(a, {
|
|
31
|
+
side: "right",
|
|
32
|
+
sideOffset: 10,
|
|
33
|
+
className: "flex items-center gap-2 rounded-md border border-border-subtle bg-popover px-2 py-1 text-text-primary shadow-overlay",
|
|
34
|
+
children: /* @__PURE__ */ f(c, { label: h })
|
|
35
|
+
})]
|
|
36
|
+
}) : /* @__PURE__ */ f(r, {
|
|
37
|
+
asChild: !0,
|
|
38
|
+
children: /* @__PURE__ */ p("button", {
|
|
39
|
+
type: "button",
|
|
40
|
+
"data-testid": "sidebar-all-tools-trigger",
|
|
41
|
+
className: d("flex w-full min-w-0 items-center gap-2.5 rounded-card border border-border-default bg-text-primary/6 py-1.75 ps-1.75 pe-2 text-start text-text-primary transition-colors hover:border-border-strong hover:bg-text-primary/8 data-[state=open]:border-border-strong data-[state=open]:bg-text-primary/8", m, y),
|
|
42
|
+
children: [
|
|
43
|
+
/* @__PURE__ */ f("span", {
|
|
44
|
+
"aria-hidden": "true",
|
|
45
|
+
"data-testid": "sidebar-all-tools-icon",
|
|
46
|
+
className: "flex size-7 shrink-0 items-center justify-center rounded-button bg-accent-soft text-accent-primary",
|
|
47
|
+
children: /* @__PURE__ */ f(u, { className: "size-4" })
|
|
48
|
+
}),
|
|
49
|
+
/* @__PURE__ */ f("span", {
|
|
50
|
+
className: "line-clamp-2 min-w-0 flex-1 text-body-sm leading-tight",
|
|
51
|
+
children: h
|
|
52
|
+
}),
|
|
53
|
+
/* @__PURE__ */ f(l, {
|
|
54
|
+
"aria-hidden": "true",
|
|
55
|
+
className: "size-3.5 shrink-0 text-text-muted rtl:rotate-180"
|
|
56
|
+
})
|
|
57
|
+
]
|
|
58
|
+
})
|
|
59
|
+
});
|
|
60
|
+
return /* @__PURE__ */ p(e, {
|
|
61
|
+
modal: !1,
|
|
62
|
+
children: [x, /* @__PURE__ */ f(t, {
|
|
63
|
+
side: _ ? "right" : "top",
|
|
64
|
+
align: _ ? "end" : "start",
|
|
65
|
+
sideOffset: _ ? 6 : 8,
|
|
66
|
+
collisionPadding: 8,
|
|
67
|
+
"aria-label": h,
|
|
68
|
+
"data-testid": "all-tools-menu",
|
|
69
|
+
className: `${s} w-[290px]`,
|
|
70
|
+
children: g.map((e) => {
|
|
71
|
+
let t = e.icon;
|
|
72
|
+
return /* @__PURE__ */ p(n, {
|
|
73
|
+
onSelect: () => b(e),
|
|
74
|
+
"data-testid": `all-tools-branch-${e.id}`,
|
|
75
|
+
className: "items-start gap-3 rounded-button px-2.5 py-2 focus:bg-bg-sunken",
|
|
76
|
+
children: [
|
|
77
|
+
/* @__PURE__ */ f("span", {
|
|
78
|
+
"aria-hidden": "true",
|
|
79
|
+
className: "flex size-7 shrink-0 items-center justify-center rounded-button bg-accent-soft text-accent-primary",
|
|
80
|
+
children: /* @__PURE__ */ f(t, { className: "size-4" })
|
|
81
|
+
}),
|
|
82
|
+
/* @__PURE__ */ p("span", {
|
|
83
|
+
className: "flex min-w-0 flex-1 flex-col gap-0.5",
|
|
84
|
+
children: [/* @__PURE__ */ f("span", {
|
|
85
|
+
className: "text-body-sm font-semibold text-text-primary",
|
|
86
|
+
children: e.title
|
|
87
|
+
}), e.description ? /* @__PURE__ */ f("span", {
|
|
88
|
+
className: "text-xs text-text-muted",
|
|
89
|
+
children: e.description
|
|
90
|
+
}) : null]
|
|
91
|
+
}),
|
|
92
|
+
/* @__PURE__ */ f(l, {
|
|
93
|
+
"aria-hidden": "true",
|
|
94
|
+
className: "mt-1.5 size-4 shrink-0 text-text-muted rtl:rotate-180"
|
|
95
|
+
})
|
|
96
|
+
]
|
|
97
|
+
}, e.id);
|
|
98
|
+
})
|
|
99
|
+
})]
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
export { h as WorkspaceAccountCard };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
/** The opt-in attribute on <html>, and its value. */
|
|
3
|
+
export declare const DEPTH_ATTRIBUTE = "data-depth";
|
|
4
|
+
export declare const DEPTH_RICH = "rich";
|
|
5
|
+
/** On the page box while its page rises in. */
|
|
6
|
+
export declare const PAGE_ENTER_ATTRIBUTE = "data-page-enter";
|
|
7
|
+
/**
|
|
8
|
+
* Sets `<html data-depth="rich">` while the calling shell is mounted. A layout effect, so the
|
|
9
|
+
* attribute is there before the shell's first paint.
|
|
10
|
+
*/
|
|
11
|
+
export declare function useDepthOptIn(): void;
|
|
12
|
+
/** Restarts the box's rise-in: off, a reflow, then on again. */
|
|
13
|
+
export declare function replayPageEnter(box: HTMLElement): void;
|
|
14
|
+
/**
|
|
15
|
+
* The page box's ref. The box renders with `data-page-enter`, so the first page rises in; each
|
|
16
|
+
* later pathname replays the rise-in on the same box, in a layout effect, before the new page
|
|
17
|
+
* paints.
|
|
18
|
+
*/
|
|
19
|
+
export declare function usePageEnter(pathname: string): RefObject<HTMLDivElement | null>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useLayoutEffect as e, useRef as t } from "react";
|
|
2
|
+
// src/chrome/shell/pageHost.ts
|
|
3
|
+
var n = "data-depth", r = "rich", i = "data-page-enter";
|
|
4
|
+
function a() {
|
|
5
|
+
e(() => {
|
|
6
|
+
let e = document.documentElement;
|
|
7
|
+
return e.setAttribute(n, r), () => {
|
|
8
|
+
e.removeAttribute(n);
|
|
9
|
+
};
|
|
10
|
+
}, []);
|
|
11
|
+
}
|
|
12
|
+
function o(e) {
|
|
13
|
+
e.removeAttribute(i), e.getBoundingClientRect(), e.setAttribute(i, "");
|
|
14
|
+
}
|
|
15
|
+
function s(n) {
|
|
16
|
+
let r = t(null), i = t(n);
|
|
17
|
+
return e(() => {
|
|
18
|
+
i.current !== n && (i.current = n, r.current && o(r.current));
|
|
19
|
+
}, [n]), r;
|
|
20
|
+
}
|
|
21
|
+
export { n as DEPTH_ATTRIBUTE, r as DEPTH_RICH, i as PAGE_ENTER_ATTRIBUTE, o as replayPageEnter, a as useDepthOptIn, s as usePageEnter };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How wide each page may grow on a big screen (BOFF-15549, ported from FluidGrids' BOFF-14993).
|
|
3
|
+
*
|
|
4
|
+
* Opt-in. The shell's page box (the routed page's wrapper under the sticky top bar) carries
|
|
5
|
+
* `data-shell-page` and `data-page-width="<tier>"`, and `shared/styles/page-widths.css` caps and
|
|
6
|
+
* centres that box per tier, from a 112.5rem viewport:
|
|
7
|
+
*
|
|
8
|
+
* - `form`: forms, settings, single messages and reading pages, 1,200 px;
|
|
9
|
+
* - `standard`: lists, dashboards and detail pages, 1,600 px (the default);
|
|
10
|
+
* - `catalog`: card galleries, 1,840 px;
|
|
11
|
+
* - `tool`: tools that need the whole width, never capped. There is no `full` tier.
|
|
12
|
+
*
|
|
13
|
+
* Each product passes its own route table to `resolvePageWidthTier`; the first matching rule
|
|
14
|
+
* wins and an address no rule names is `standard`. Only the address decides, lower-cased as the
|
|
15
|
+
* router matches it: the ?query and #hash are dropped, so a page's tabs and filters never change
|
|
16
|
+
* its width, and so is a trailing "/".
|
|
17
|
+
*/
|
|
18
|
+
/** Every width tier, the values of the page box's `data-page-width`. `tool` is uncapped. */
|
|
19
|
+
export declare const PAGE_WIDTH_TIERS: readonly ["form", "standard", "catalog", "tool"];
|
|
20
|
+
/** A page's width tier; the value of the shell's `data-page-width`. */
|
|
21
|
+
export type PageWidthTier = (typeof PAGE_WIDTH_TIERS)[number];
|
|
22
|
+
/** One rule: an address pattern and the tier it gives. */
|
|
23
|
+
export type PageWidthRule = readonly [pattern: RegExp, tier: PageWidthTier];
|
|
24
|
+
/** A product's route table, in order (first match wins). */
|
|
25
|
+
export type PageWidthTable = ReadonlyArray<PageWidthRule>;
|
|
26
|
+
/** The tier of an address no rule names. */
|
|
27
|
+
export declare const DEFAULT_PAGE_WIDTH_TIER: PageWidthTier;
|
|
28
|
+
/**
|
|
29
|
+
* The address alone, lower-cased: no ?query or #hash, no trailing "/" (except on "/"). React
|
|
30
|
+
* Router matches paths case-insensitively, so /Workflows/New must get the same tier as
|
|
31
|
+
* /workflows/new.
|
|
32
|
+
*/
|
|
33
|
+
export declare function normalisePagePath(pathname: string): string;
|
|
34
|
+
/**
|
|
35
|
+
* The width tier of the page at `pathname` in the product's `table`. A product that has
|
|
36
|
+
* shell-less routes (sign-in, public embeds) puts them in its table as `tool`, so the cap never
|
|
37
|
+
* touches them.
|
|
38
|
+
*/
|
|
39
|
+
export declare function resolvePageWidthTier(pathname: string, table: PageWidthTable): PageWidthTier;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// src/chrome/shell/pageWidth.ts
|
|
2
|
+
var e = [
|
|
3
|
+
"form",
|
|
4
|
+
"standard",
|
|
5
|
+
"catalog",
|
|
6
|
+
"tool"
|
|
7
|
+
], t = "standard";
|
|
8
|
+
function n(e) {
|
|
9
|
+
let t = (e.split(/[?#]/)[0] ?? "").toLowerCase(), n = t.length;
|
|
10
|
+
for (; n > 0 && t[n - 1] === "/";) --n;
|
|
11
|
+
return n > 0 ? t.slice(0, n) : "/";
|
|
12
|
+
}
|
|
13
|
+
function r(e, r) {
|
|
14
|
+
let i = n(e);
|
|
15
|
+
for (let [e, t] of r) if (e.test(i)) return t;
|
|
16
|
+
return t;
|
|
17
|
+
}
|
|
18
|
+
export { t as DEFAULT_PAGE_WIDTH_TIER, e as PAGE_WIDTH_TIERS, n as normalisePagePath, r as resolvePageWidthTier };
|
|
@@ -54,3 +54,9 @@ export declare const SHELL_LABELS_ADDED_BOFF_11842: readonly string[];
|
|
|
54
54
|
* in `shell/profileHelpWords.ts`), and English for any other.
|
|
55
55
|
*/
|
|
56
56
|
export declare const SHELL_LABELS_ADDED_BOFF_15027: readonly string[];
|
|
57
|
+
/**
|
|
58
|
+
* The keys the palette appearance model's Settings › Appearance added (BOFF-15524, opt-in:
|
|
59
|
+
* FluidGrids). Not in any dictionary yet: seed them into `workspaces` (FluidGrids bundles its
|
|
60
|
+
* six languages meanwhile). Until then each renders its English.
|
|
61
|
+
*/
|
|
62
|
+
export declare const SHELL_LABELS_ADDED_BOFF_15524: readonly string[];
|
package/dist/chrome.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AppShellLayout as e } from "./chrome/AppShellLayout.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { PageHeader as t } from "./chrome/PageHeader.js";
|
|
3
|
+
import { SHELL_SIDEBAR_WIDTH_VAR as n } from "./shared/constants/shellCssVars.js";
|
|
4
4
|
import { HeaderBar as r } from "./chrome/HeaderBar.js";
|
|
5
5
|
import { FooterBar as i } from "./chrome/FooterBar.js";
|
|
6
6
|
import { DEFAULT_FOOTER_COLUMNS as a, DEFAULT_SOCIAL_LINKS as o, Footer as s } from "./chrome/Footer.js";
|
|
@@ -41,26 +41,27 @@ import { PluginWidgetGrid as $ } from "./chrome/PluginWidgetGrid.js";
|
|
|
41
41
|
import { PluginContextMenuTarget as ee } from "./chrome/PluginContextMenuTarget.js";
|
|
42
42
|
import { PluginFooterStrip as te } from "./chrome/PluginFooterStrip.js";
|
|
43
43
|
import { ThemePreferences as ne } from "./chrome/ThemePreferences.js";
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
|
|
44
|
+
import { AppearancePreferences as re } from "./chrome/appearance/AppearancePreferences.js";
|
|
45
|
+
import { BrandMark as ie, DecorativeBrandMarkScope as ae } from "./chrome/BrandMark.js";
|
|
46
|
+
import { MobileTabBar as oe } from "./chrome/MobileTabBar.js";
|
|
47
|
+
import { useMobileTabBarVisible as se } from "./chrome/mobileTabBar/useMobileTabBarVisible.js";
|
|
48
|
+
import { resolveTabLabel as ce, selectMobileTabs as le } from "./chrome/mobileTabBar/selectTabs.js";
|
|
49
|
+
import { NativeTopBar as ue } from "./chrome/NativeTopBar.js";
|
|
50
|
+
import { SwipeNavigation as de } from "./chrome/SwipeNavigation.js";
|
|
51
|
+
import { NativePageTransition as fe } from "./chrome/NativePageTransition.js";
|
|
52
|
+
import { findNavTitle as pe, useNativeTopBarTitle as me } from "./chrome/nativeTopBarTitle.js";
|
|
53
|
+
import { shellPathMatchScore as he, useProfileBoundJson as ge, useShellNavViews as _e } from "./chrome/shell/useShellNavViews.js";
|
|
54
|
+
import { applyShellNavSurface as ve, isShellNavMoreEntry as ye } from "./chrome/shell/shellNavVisibility.js";
|
|
55
|
+
import { ShellKbd as be, ShellRailTooltipLabel as xe, ShellSidebar as Se, ShellSidebarCompactRow as Ce, ShellSidebarRail as we, ShellSidebarSection as Te } from "./chrome/shell/ShellSidebar.js";
|
|
56
|
+
import { publishShellSidebarWidth as Ee, usePublishShellSidebarWidth as De } from "./chrome/shell/shellSidebarWidth.js";
|
|
57
|
+
import { ShellTopBar as Oe } from "./chrome/shell/ShellTopBar.js";
|
|
58
|
+
import { SegmentedTabs as ke } from "./chrome/shell/SegmentedTabs.js";
|
|
59
|
+
import { WorkspaceMenu as Ae } from "./chrome/shell/WorkspaceMenu.js";
|
|
60
|
+
import { NewMenu as je } from "./chrome/shell/NewMenu.js";
|
|
61
|
+
import { SidebarSearchTrigger as Me } from "./chrome/shell/SidebarSearchTrigger.js";
|
|
62
|
+
import { PlanUsageCard as Ne, SidebarProfileMenu as Pe } from "./chrome/shell/SidebarProfileMenu.js";
|
|
63
|
+
import { MAX_PINNED_PAGES as Fe, usePinSuggestion as Ie, usePinnedPages as Le } from "./chrome/shell/usePinnedPages.js";
|
|
64
|
+
import { PinSuggestionToast as Re } from "./chrome/shell/PinSuggestionToast.js";
|
|
65
|
+
import { ShellBellButton as ze } from "./chrome/notificationCenter/ShellBellButton.js";
|
|
66
|
+
import { NotificationPopoverPanel as Be } from "./chrome/notificationCenter/NotificationPopoverPanel.js";
|
|
67
|
+
export { E as AccountSwitcher, e as AppShellLayout, re as AppearancePreferences, P as AutoBreadcrumbs, ie as BrandMark, p as Breadcrumbs, u as COMMAND_PALETTE_HELP_SHORTCUT, d as COMMAND_PALETTE_SHORTCUT, f as CommandPalette, b as ContextSwitcher, a as DEFAULT_FOOTER_COLUMNS, o as DEFAULT_SOCIAL_LINKS, ae as DecorativeBrandMarkScope, K as DynamicFooter, s as Footer, i as FooterBar, x as GeographySwitcher, l as GlobalSearch, r as HeaderBar, w as LanguagePickerSheet, y as LanguageSwitcher, Fe as MAX_PINNED_PAGES, oe as MobileTabBar, V as NAV_MORE_ID_PREFIX, fe as NativePageTransition, ue as NativeTopBar, B as NavCustomizeDialog, m as NavLink, je as NewMenu, S as NotificationCenter, Be as NotificationPopoverPanel, t as PageHeader, q as PanelContainer, J as PanelTabs, R as PersonaSimulationPill, z as PersonaSurfaceControls, Re as PinSuggestionToast, Ne as PlanUsageCard, ee as PluginContextMenuTarget, te as PluginFooterStrip, X as PluginRoutes, Z as PluginSettingsPage, Q as PluginToolbar, $ as PluginWidgetGrid, T as ProductPickerSheet, L as ProductSideNav, v as ProductSwitcher, _ as ProfileSwitcher, C as PushOptInToggle, n as SHELL_SIDEBAR_WIDTH_VAR, ke as SegmentedTabs, ze as ShellBellButton, be as ShellKbd, xe as ShellRailTooltipLabel, Se as ShellSidebar, Ce as ShellSidebarCompactRow, we as ShellSidebarRail, Te as ShellSidebarSection, Oe as ShellTopBar, D as ShortcutHelpDialog, c as SideNavigation, g as Sidebar, Pe as SidebarProfileMenu, Me as SidebarSearchTrigger, Y as StatusBar, de as SwipeNavigation, h as Tabs, ne as ThemePreferences, Ae as WorkspaceMenu, H as applyNavVisibility, U as applyPermissionFilter, ve as applyShellNavSurface, W as applySurfaceVisibility, pe as findNavTitle, k as firstProjectOfWorkspace, G as isItemEffectivelyShown, ye as isShellNavMoreEntry, Ee as publishShellSidebarWidth, F as registerBreadcrumbName, M as resolveSwitchTarget, ce as resolveTabLabel, N as sectionLandingRule, le as selectMobileTabs, he as shellPathMatchScore, A as switchOrganization, j as switchWorkspace, I as unregisterBreadcrumbName, O as useContextSwitchController, se as useMobileTabBarVisible, me as useNativeTopBarTitle, Ie as usePinSuggestion, Le as usePinnedPages, ge as useProfileBoundJson, De as usePublishShellSidebarWidth, _e as useShellNavViews };
|
|
@@ -5,6 +5,16 @@ export interface AppearanceSettingsPageProps {
|
|
|
5
5
|
* in the same column and spacing. Absent: the page exactly as before.
|
|
6
6
|
*/
|
|
7
7
|
children?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* BOFF-15524, palette model only: resets the product's own sections with the rest (Reset to
|
|
10
|
+
* defaults) and returns how to put them back (Undo).
|
|
11
|
+
*/
|
|
12
|
+
onResetDefaults?: () => () => void;
|
|
13
|
+
/**
|
|
14
|
+
* BOFF-15524, palette model only: what the live preview shows behind the Assistant start
|
|
15
|
+
* page (FluidGrids: its animated background).
|
|
16
|
+
*/
|
|
17
|
+
previewBackground?: ReactNode;
|
|
8
18
|
}
|
|
9
|
-
export declare function AppearanceSettingsPage({ children }?: AppearanceSettingsPageProps): import('react').JSX.Element;
|
|
19
|
+
export declare function AppearanceSettingsPage({ children, onResetDefaults, previewBackground, }?: AppearanceSettingsPageProps): import('react').JSX.Element;
|
|
10
20
|
export default AppearanceSettingsPage;
|
|
@@ -1,16 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { AppearancePreferences as e } from "../chrome/appearance/AppearancePreferences.js";
|
|
2
|
+
import { ThemePreferences as t } from "../chrome/ThemePreferences.js";
|
|
3
|
+
import { useThemeOrNull as n } from "../shared/providers/shell/ThemeProvider.js";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
5
|
// src/platform-pages/AppearanceSettingsPage.tsx
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
+
function a({ children: a, onResetDefaults: o, previewBackground: s } = {}) {
|
|
7
|
+
let c = n()?.appearance ?? null;
|
|
8
|
+
return /* @__PURE__ */ r("div", {
|
|
6
9
|
className: "min-h-full bg-bg-canvas",
|
|
7
|
-
children: /* @__PURE__ */
|
|
10
|
+
children: /* @__PURE__ */ r("div", {
|
|
8
11
|
className: "mx-auto w-full max-w-6xl px-4 py-6 md:px-6 lg:px-8",
|
|
9
|
-
children:
|
|
12
|
+
children: c ? /* @__PURE__ */ r(e, {
|
|
13
|
+
onResetDefaults: o,
|
|
14
|
+
previewBackground: s,
|
|
15
|
+
children: a
|
|
16
|
+
}) : a === void 0 ? /* @__PURE__ */ r(t, {}) : /* @__PURE__ */ i("div", {
|
|
10
17
|
className: "flex flex-col gap-6",
|
|
11
|
-
children: [/* @__PURE__ */ t
|
|
18
|
+
children: [/* @__PURE__ */ r(t, {}), a]
|
|
12
19
|
})
|
|
13
20
|
})
|
|
14
21
|
});
|
|
15
22
|
}
|
|
16
|
-
export {
|
|
23
|
+
export { a as AppearanceSettingsPage, a as default };
|