@burdenoff/fe-libs 2026.1119.6 → 2026.1119.8
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/ShellSidebar.js +159 -157
- package/dist/chrome/shell/SidebarProfileMenu.d.ts +36 -4
- package/dist/chrome/shell/SidebarProfileMenu.js +408 -313
- package/dist/chrome/shell/WorkspaceAccountCard.d.ts +22 -0
- package/dist/chrome/shell/WorkspaceAccountCard.js +107 -0
- package/dist/chrome/shell/WorkspaceMenu.js +140 -136
- 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/shell/shellSidebarAppearance.d.ts +4 -0
- package/dist/chrome/shell/shellSidebarAppearance.js +7 -0
- package/dist/chrome/shell/sidebarPopupPlacement.d.ts +21 -0
- package/dist/chrome/shell/sidebarPopupPlacement.js +28 -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/dist/ui/dropdown-menu.d.ts +12 -2
- package/dist/ui/dropdown-menu.js +53 -50
- package/dist/ui/glass-surface.d.ts +7 -0
- package/dist/ui/glass-surface.js +14 -0
- package/dist/ui/popover.d.ts +1 -1
- package/dist/ui/popover.js +17 -15
- package/dist/ui/select.js +69 -68
- package/dist/ui/tooltip.d.ts +6 -0
- package/dist/ui/tooltip.js +18 -14
- 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/display-settings.css +3 -0
package/dist/ui/select.js
CHANGED
|
@@ -2,126 +2,127 @@ import { nativeSelection as e } from "../shared/native/consumers.js";
|
|
|
2
2
|
import { isNative as t } from "../shared/native/platform.js";
|
|
3
3
|
import { cn as n } from "../shared-utils.js";
|
|
4
4
|
import { BottomSheet as r, BottomSheetContent as i, BottomSheetHeader as a, BottomSheetTitle as o } from "./bottom-sheet.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
5
|
+
import { GlassSurfaceScope as s } from "./glass-surface.js";
|
|
6
|
+
import { useEffect as c, useState as l } from "react";
|
|
7
|
+
import { Check as u, ChevronDown as d, ChevronUp as f } from "lucide-react";
|
|
8
|
+
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
9
|
+
import * as g from "@radix-ui/react-select";
|
|
9
10
|
// src/ui/select.tsx
|
|
10
|
-
var
|
|
11
|
-
function
|
|
12
|
-
return /* @__PURE__ */
|
|
11
|
+
var _ = g.Root, v = g.Group, y = g.Value;
|
|
12
|
+
function b({ ref: e, className: t, children: r, ...i }) {
|
|
13
|
+
return /* @__PURE__ */ h(g.Trigger, {
|
|
13
14
|
ref: e,
|
|
14
15
|
"data-slot": "select-trigger",
|
|
15
16
|
className: n("flex h-10 w-full items-center justify-between rounded-input border border-border-default bg-bg-surface px-3 py-2 text-sm text-text-primary transition-colors duration-200 data-[placeholder]:text-text-placeholder focus:border-border-focus focus:outline-none focus:shadow-[var(--shadow-focus)] focus:ring-1 focus:ring-[var(--color-focus-ring)] disabled:cursor-not-allowed disabled:opacity-50 aria-[invalid=true]:border-status-error-border [&>span]:line-clamp-1", t),
|
|
16
17
|
...i,
|
|
17
|
-
children: [r, /* @__PURE__ */
|
|
18
|
+
children: [r, /* @__PURE__ */ m(g.Icon, {
|
|
18
19
|
asChild: !0,
|
|
19
|
-
children: /* @__PURE__ */
|
|
20
|
+
children: /* @__PURE__ */ m(d, { className: "size-4 text-text-muted" })
|
|
20
21
|
})]
|
|
21
22
|
});
|
|
22
23
|
}
|
|
23
|
-
|
|
24
|
-
function
|
|
25
|
-
return /* @__PURE__ */
|
|
24
|
+
b.displayName = g.Trigger.displayName;
|
|
25
|
+
function x({ ref: e, className: t, ...r }) {
|
|
26
|
+
return /* @__PURE__ */ m(g.ScrollUpButton, {
|
|
26
27
|
ref: e,
|
|
27
28
|
className: n("flex cursor-default items-center justify-center py-1", t),
|
|
28
29
|
...r,
|
|
29
|
-
children: /* @__PURE__ */
|
|
30
|
+
children: /* @__PURE__ */ m(f, { className: "size-4" })
|
|
30
31
|
});
|
|
31
32
|
}
|
|
32
|
-
|
|
33
|
-
function
|
|
34
|
-
return /* @__PURE__ */
|
|
33
|
+
x.displayName = g.ScrollUpButton.displayName;
|
|
34
|
+
function S({ ref: e, className: t, ...r }) {
|
|
35
|
+
return /* @__PURE__ */ m(g.ScrollDownButton, {
|
|
35
36
|
ref: e,
|
|
36
37
|
className: n("flex cursor-default items-center justify-center py-1", t),
|
|
37
38
|
...r,
|
|
38
|
-
children: /* @__PURE__ */
|
|
39
|
+
children: /* @__PURE__ */ m(d, { className: "size-4" })
|
|
39
40
|
});
|
|
40
41
|
}
|
|
41
|
-
|
|
42
|
-
function
|
|
43
|
-
return /* @__PURE__ */
|
|
42
|
+
S.displayName = g.ScrollDownButton.displayName;
|
|
43
|
+
function C({ ref: e, className: t, children: r, position: i = "popper", ...a }) {
|
|
44
|
+
return /* @__PURE__ */ m(g.Portal, { children: /* @__PURE__ */ h(g.Content, {
|
|
44
45
|
ref: e,
|
|
45
46
|
"data-glass-surface": "elevated",
|
|
46
47
|
className: n("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-card border border-border-subtle bg-bg-elevated text-text-primary shadow-elevation-3 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", i === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", t),
|
|
47
48
|
position: i,
|
|
48
49
|
...a,
|
|
49
50
|
children: [
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ m(x, {}),
|
|
52
|
+
/* @__PURE__ */ m(g.Viewport, {
|
|
52
53
|
className: n("p-1", i === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),
|
|
53
|
-
children: r
|
|
54
|
+
children: /* @__PURE__ */ m(s, { children: r })
|
|
54
55
|
}),
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ m(S, {})
|
|
56
57
|
]
|
|
57
58
|
}) });
|
|
58
59
|
}
|
|
59
|
-
|
|
60
|
-
function
|
|
61
|
-
return /* @__PURE__ */
|
|
60
|
+
C.displayName = g.Content.displayName;
|
|
61
|
+
function w({ ref: e, className: t, ...r }) {
|
|
62
|
+
return /* @__PURE__ */ m(g.Label, {
|
|
62
63
|
ref: e,
|
|
63
64
|
className: n("py-1.5 ps-8 pe-2 text-xs font-medium uppercase tracking-wide text-text-muted", t),
|
|
64
65
|
...r
|
|
65
66
|
});
|
|
66
67
|
}
|
|
67
|
-
|
|
68
|
-
function
|
|
69
|
-
return /* @__PURE__ */
|
|
68
|
+
w.displayName = g.Label.displayName;
|
|
69
|
+
function T({ ref: e, className: t, children: r, ...i }) {
|
|
70
|
+
return /* @__PURE__ */ h(g.Item, {
|
|
70
71
|
ref: e,
|
|
71
72
|
className: n("relative flex w-full cursor-default select-none items-center rounded-button py-1.5 ps-8 pe-2 text-sm text-text-primary outline-none transition-colors focus:bg-[var(--color-accent-soft)] focus:text-text-primary data-[state=checked]:bg-[var(--color-accent-soft)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t),
|
|
72
73
|
...i,
|
|
73
|
-
children: [/* @__PURE__ */
|
|
74
|
+
children: [/* @__PURE__ */ m("span", {
|
|
74
75
|
className: "absolute start-2 flex size-3.5 items-center justify-center",
|
|
75
|
-
children: /* @__PURE__ */
|
|
76
|
-
}), /* @__PURE__ */
|
|
76
|
+
children: /* @__PURE__ */ m(g.ItemIndicator, { children: /* @__PURE__ */ m(u, { className: "size-4" }) })
|
|
77
|
+
}), /* @__PURE__ */ m(g.ItemText, { children: r })]
|
|
77
78
|
});
|
|
78
79
|
}
|
|
79
|
-
|
|
80
|
-
function
|
|
81
|
-
return /* @__PURE__ */
|
|
80
|
+
T.displayName = g.Item.displayName;
|
|
81
|
+
function E({ ref: e, className: t, ...r }) {
|
|
82
|
+
return /* @__PURE__ */ m(g.Separator, {
|
|
82
83
|
ref: e,
|
|
83
84
|
className: n("-mx-1 my-1 h-px bg-border-subtle", t),
|
|
84
85
|
...r
|
|
85
86
|
});
|
|
86
87
|
}
|
|
87
|
-
|
|
88
|
-
var
|
|
89
|
-
function
|
|
90
|
-
let [n, r] =
|
|
91
|
-
return
|
|
88
|
+
E.displayName = g.Separator.displayName;
|
|
89
|
+
var D = "(max-width: 767px)";
|
|
90
|
+
function O(e) {
|
|
91
|
+
let [n, r] = l(!1);
|
|
92
|
+
return c(() => {
|
|
92
93
|
if (!e || typeof window > "u" || !window.matchMedia || !t()) {
|
|
93
94
|
r(!1);
|
|
94
95
|
return;
|
|
95
96
|
}
|
|
96
|
-
let n = window.matchMedia(
|
|
97
|
+
let n = window.matchMedia(D);
|
|
97
98
|
r(n.matches);
|
|
98
99
|
let i = (e) => r(e.matches);
|
|
99
100
|
return n.addEventListener("change", i), () => n.removeEventListener("change", i);
|
|
100
101
|
}, [e]), n;
|
|
101
102
|
}
|
|
102
|
-
function
|
|
103
|
-
let A =
|
|
104
|
-
s === void 0 && M(e),
|
|
103
|
+
function k({ options: t, value: s, defaultValue: c, onValueChange: f, placeholder: g = "Select…", title: v, disabled: x = !1, nativeSheet: S = !0, className: w, id: E, name: D, "aria-label": k }) {
|
|
104
|
+
let A = O(S), [j, M] = l(c), [N, P] = l(!1), F = s ?? j, I = (e) => {
|
|
105
|
+
s === void 0 && M(e), f?.(e);
|
|
105
106
|
};
|
|
106
|
-
if (!A) return /* @__PURE__ */
|
|
107
|
+
if (!A) return /* @__PURE__ */ h(_, {
|
|
107
108
|
value: s,
|
|
108
|
-
defaultValue:
|
|
109
|
+
defaultValue: c,
|
|
109
110
|
onValueChange: I,
|
|
110
111
|
disabled: x,
|
|
111
|
-
name:
|
|
112
|
-
children: [/* @__PURE__ */
|
|
112
|
+
name: D,
|
|
113
|
+
children: [/* @__PURE__ */ m(b, {
|
|
113
114
|
id: E,
|
|
114
115
|
"aria-label": k,
|
|
115
|
-
className:
|
|
116
|
-
children: /* @__PURE__ */
|
|
117
|
-
}), /* @__PURE__ */
|
|
116
|
+
className: w,
|
|
117
|
+
children: /* @__PURE__ */ m(y, { placeholder: g })
|
|
118
|
+
}), /* @__PURE__ */ m(C, { children: t.map((e) => /* @__PURE__ */ m(T, {
|
|
118
119
|
value: e.value,
|
|
119
120
|
disabled: e.disabled,
|
|
120
121
|
children: e.label
|
|
121
122
|
}, e.value)) })]
|
|
122
123
|
});
|
|
123
124
|
let L = t.find((e) => e.value === F);
|
|
124
|
-
return /* @__PURE__ */
|
|
125
|
+
return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ h("button", {
|
|
125
126
|
type: "button",
|
|
126
127
|
id: E,
|
|
127
128
|
"data-native-select-trigger": "",
|
|
@@ -131,32 +132,32 @@ function O({ options: t, value: s, defaultValue: d, onValueChange: h, placeholde
|
|
|
131
132
|
"aria-expanded": N,
|
|
132
133
|
disabled: x,
|
|
133
134
|
onClick: () => P(!0),
|
|
134
|
-
className: n("flex h-10 w-full items-center justify-between rounded-input border border-border-default bg-bg-surface px-3 py-2 text-sm text-text-primary transition-colors duration-200 focus:border-border-focus focus:outline-none focus:shadow-[var(--shadow-focus)] focus:ring-1 focus:ring-[var(--color-focus-ring)] disabled:cursor-not-allowed disabled:opacity-50", !L && "text-text-placeholder",
|
|
135
|
-
children: [/* @__PURE__ */
|
|
135
|
+
className: n("flex h-10 w-full items-center justify-between rounded-input border border-border-default bg-bg-surface px-3 py-2 text-sm text-text-primary transition-colors duration-200 focus:border-border-focus focus:outline-none focus:shadow-[var(--shadow-focus)] focus:ring-1 focus:ring-[var(--color-focus-ring)] disabled:cursor-not-allowed disabled:opacity-50", !L && "text-text-placeholder", w),
|
|
136
|
+
children: [/* @__PURE__ */ m("span", {
|
|
136
137
|
className: "line-clamp-1 text-start",
|
|
137
|
-
children: L?.label ??
|
|
138
|
-
}), /* @__PURE__ */
|
|
138
|
+
children: L?.label ?? g
|
|
139
|
+
}), /* @__PURE__ */ m(d, {
|
|
139
140
|
className: "size-4 text-text-muted",
|
|
140
141
|
"aria-hidden": "true"
|
|
141
142
|
})]
|
|
142
|
-
}), /* @__PURE__ */
|
|
143
|
+
}), /* @__PURE__ */ m(r, {
|
|
143
144
|
open: N,
|
|
144
145
|
onOpenChange: P,
|
|
145
|
-
children: /* @__PURE__ */
|
|
146
|
+
children: /* @__PURE__ */ h(i, {
|
|
146
147
|
showCloseButton: !1,
|
|
147
|
-
children: [/* @__PURE__ */
|
|
148
|
+
children: [/* @__PURE__ */ m(a, {
|
|
148
149
|
className: "px-1 text-center",
|
|
149
|
-
children: /* @__PURE__ */
|
|
150
|
+
children: /* @__PURE__ */ m(o, {
|
|
150
151
|
className: "text-base",
|
|
151
|
-
children:
|
|
152
|
+
children: v ?? g
|
|
152
153
|
})
|
|
153
|
-
}), /* @__PURE__ */
|
|
154
|
+
}), /* @__PURE__ */ m("div", {
|
|
154
155
|
role: "listbox",
|
|
155
|
-
"aria-label": k ??
|
|
156
|
+
"aria-label": k ?? v ?? g,
|
|
156
157
|
className: "flex flex-col pb-2",
|
|
157
158
|
children: t.map((t) => {
|
|
158
159
|
let r = t.value === F;
|
|
159
|
-
return /* @__PURE__ */
|
|
160
|
+
return /* @__PURE__ */ h("button", {
|
|
160
161
|
type: "button",
|
|
161
162
|
role: "option",
|
|
162
163
|
"data-native-select-option": "",
|
|
@@ -166,10 +167,10 @@ function O({ options: t, value: s, defaultValue: d, onValueChange: h, placeholde
|
|
|
166
167
|
e(), I(t.value), P(!1);
|
|
167
168
|
},
|
|
168
169
|
className: n("flex h-12 w-full items-center justify-between rounded-button px-4 text-base text-text-primary transition-colors hover:bg-action-ghost-bgHover focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus)] focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)] disabled:pointer-events-none disabled:opacity-50", r && "bg-[var(--color-accent-soft)] font-medium"),
|
|
169
|
-
children: [/* @__PURE__ */
|
|
170
|
+
children: [/* @__PURE__ */ m("span", {
|
|
170
171
|
className: "text-start",
|
|
171
172
|
children: t.label
|
|
172
|
-
}), r && /* @__PURE__ */
|
|
173
|
+
}), r && /* @__PURE__ */ m(u, {
|
|
173
174
|
className: "size-4",
|
|
174
175
|
"aria-hidden": "true"
|
|
175
176
|
})]
|
|
@@ -179,4 +180,4 @@ function O({ options: t, value: s, defaultValue: d, onValueChange: h, placeholde
|
|
|
179
180
|
})
|
|
180
181
|
})] });
|
|
181
182
|
}
|
|
182
|
-
export {
|
|
183
|
+
export { k as NativeSelect, _ as Select, C as SelectContent, v as SelectGroup, T as SelectItem, w as SelectLabel, S as SelectScrollDownButton, x as SelectScrollUpButton, E as SelectSeparator, b as SelectTrigger, y as SelectValue };
|
package/dist/ui/tooltip.d.ts
CHANGED
|
@@ -9,5 +9,11 @@ declare const TooltipProvider: import('react').FC<TooltipPrimitive.TooltipProvid
|
|
|
9
9
|
*/
|
|
10
10
|
declare function Tooltip({ children, ...props }: ComponentPropsWithoutRef<typeof TooltipPrimitive.Root>): import('react').JSX.Element;
|
|
11
11
|
declare const TooltipTrigger: import('react').ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
/**
|
|
13
|
+
* ★ BOFF-15567: opened from inside a glass surface (the floating sidebar's panel and rail, a
|
|
14
|
+
* menu, a popover), the tooltip portals to <body>: rendered there, the surface's
|
|
15
|
+
* backdrop-filter would make the surface its containing block and the surface's overflow
|
|
16
|
+
* would cut it away (`./glass-surface`). Everywhere else it renders where it always did.
|
|
17
|
+
*/
|
|
12
18
|
declare const TooltipContent: import('react').ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
13
19
|
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
package/dist/ui/tooltip.js
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import { cn as e } from "../shared-utils.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
2
|
+
import { useInsideGlassSurface as t } from "./glass-surface.js";
|
|
3
|
+
import { forwardRef as n } from "react";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
import * as i from "@radix-ui/react-tooltip";
|
|
5
6
|
// src/ui/tooltip.tsx
|
|
6
|
-
var
|
|
7
|
-
function
|
|
8
|
-
return /* @__PURE__ */
|
|
7
|
+
var a = i.Provider;
|
|
8
|
+
function o({ children: e, ...t }) {
|
|
9
|
+
return /* @__PURE__ */ r(i.Provider, { children: /* @__PURE__ */ r(i.Root, {
|
|
9
10
|
...t,
|
|
10
11
|
children: e
|
|
11
12
|
}) });
|
|
12
13
|
}
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
var s = i.Trigger, c = n(({ className: n, sideOffset: a = 4, ...o }, s) => {
|
|
15
|
+
let c = t(), l = /* @__PURE__ */ r(i.Content, {
|
|
16
|
+
ref: s,
|
|
17
|
+
sideOffset: a,
|
|
18
|
+
className: e("z-50 overflow-hidden rounded-button bg-bg-inverse px-3 py-1.5 text-xs font-medium text-text-inverse shadow-elevation-3 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", n),
|
|
19
|
+
...o
|
|
20
|
+
});
|
|
21
|
+
return c ? /* @__PURE__ */ r(i.Portal, { children: l }) : l;
|
|
22
|
+
});
|
|
23
|
+
c.displayName = i.Content.displayName;
|
|
24
|
+
export { o as Tooltip, c as TooltipContent, a as TooltipProvider, s as TooltipTrigger };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/fe-libs",
|
|
3
|
-
"version": "2026.1119.
|
|
3
|
+
"version": "2026.1119.8",
|
|
4
4
|
"description": "Burdenoff frontend primitives and domain libraries",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -291,6 +291,10 @@
|
|
|
291
291
|
"style": "./src/shared/styles/depth-theme.css",
|
|
292
292
|
"default": "./src/shared/styles/depth-theme.css"
|
|
293
293
|
},
|
|
294
|
+
"./shared/styles/page-widths.css": {
|
|
295
|
+
"style": "./src/shared/styles/page-widths.css",
|
|
296
|
+
"default": "./src/shared/styles/page-widths.css"
|
|
297
|
+
},
|
|
294
298
|
"./shared/utils/lazyWithRetry": {
|
|
295
299
|
"types": "./dist/shared/utils/lazyWithRetry.d.ts",
|
|
296
300
|
"import": "./dist/shared/utils/lazyWithRetry.js"
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* BOFF-15549: page width tiers on big screens (ported from FluidGrids' BOFF-14993).
|
|
2
|
+
*
|
|
3
|
+
* Opt-in and inert unless a host sets the page box's hooks: every selector starts with
|
|
4
|
+
* [data-shell-page][data-page-width], so nothing here can match <html> or :root, and a product
|
|
5
|
+
* that never sets them only downloads these rules. The box is the shell's routed-page wrapper
|
|
6
|
+
* under the sticky top bar (chrome/shell/pageWidth.ts picks its tier).
|
|
7
|
+
*
|
|
8
|
+
* Big screens only: the caps apply from a 112.5rem (1,800 px) viewport (a media query's rem is
|
|
9
|
+
* the browser's 16 px whatever the page's font size), so a laptop looks exactly as before and
|
|
10
|
+
* below that width no rule here touches the box.
|
|
11
|
+
*
|
|
12
|
+
* The caps are CONTENT widths: form 1,200 px, standard 1,600 px, catalog 1,840 px; a tool is
|
|
13
|
+
* never capped. Pages pad themselves with p-6 (--spacing-6, 24 px), so the box is capped at
|
|
14
|
+
* cap + 2 x 24 px. The padding token is --spacing-6, not --space-pagePadding (16 px in the
|
|
15
|
+
* compact density). The tool tier is left out of the sizing rule. The box is a flex item of the
|
|
16
|
+
* shell's column: auto inline margins centre it once a cap binds, and they stop the column
|
|
17
|
+
* stretching it, so it also takes an explicit full width. An unknown tier leaves --page-max
|
|
18
|
+
* unset, which makes the max-width invalid: no cap.
|
|
19
|
+
*
|
|
20
|
+
* Import it unlayered, next to tokens.css:
|
|
21
|
+
* @import '@burdenoff/fe-libs/shared/styles/page-widths.css';
|
|
22
|
+
*/
|
|
23
|
+
@media (min-width: 112.5rem) {
|
|
24
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool']) {
|
|
25
|
+
width: 100%;
|
|
26
|
+
max-width: calc(var(--page-max) + 2 * var(--spacing-6));
|
|
27
|
+
margin-inline: auto;
|
|
28
|
+
}
|
|
29
|
+
[data-shell-page][data-page-width='form'] {
|
|
30
|
+
--page-max: 1200px;
|
|
31
|
+
}
|
|
32
|
+
[data-shell-page][data-page-width='standard'] {
|
|
33
|
+
--page-max: 1600px;
|
|
34
|
+
}
|
|
35
|
+
[data-shell-page][data-page-width='catalog'] {
|
|
36
|
+
--page-max: 1840px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -1,6 +1,28 @@
|
|
|
1
|
-
/* HealthyBowl brand overrides -
|
|
1
|
+
/* HealthyBowl brand overrides (BOFF-15549, decisions D4 and D6)
|
|
2
|
+
*
|
|
3
|
+
* This file is the token source: there is no generator for the brand files in this repo (the
|
|
4
|
+
* old "auto-generated" header was stale), so edit it here. WCAG 2.1 AA (1.4.3):
|
|
5
|
+
* - light: green-700 #15803D carries a white label at 5.02:1; hover and pressed step darker
|
|
6
|
+
* (#166534, #14532D) so the white label only gains contrast.
|
|
7
|
+
* - dark: green-600 #16A34A carries a dark label (#0A0E16, 5.86:1); hover and pressed step
|
|
8
|
+
* LIGHTER (#22C55E, #4ADE80) so the dark label keeps its contrast in every state.
|
|
9
|
+
* - depth glow (opt-in layer, shared/tokens/depth.css): a green glow with a teal partner,
|
|
10
|
+
* both at least 3:1 on the canvas and on a card (shared/utils/healthybowlBrand.test.ts).
|
|
11
|
+
*/
|
|
2
12
|
[data-brand="healthybowl"] {
|
|
13
|
+
--color-action-primary-bg: #15803D;
|
|
14
|
+
--color-action-primary-bgHover: #166534;
|
|
15
|
+
--color-action-primary-bgActive: #14532D;
|
|
16
|
+
--color-accent-glow: #15803D;
|
|
17
|
+
--color-accent-glow-alt: #0F766E;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:root.dark[data-brand="healthybowl"],
|
|
21
|
+
[data-brand="healthybowl"].dark {
|
|
3
22
|
--color-action-primary-bg: #16A34A;
|
|
4
|
-
--color-action-primary-bgHover: #
|
|
5
|
-
--color-action-primary-bgActive: #
|
|
23
|
+
--color-action-primary-bgHover: #22C55E;
|
|
24
|
+
--color-action-primary-bgActive: #4ADE80;
|
|
25
|
+
--color-action-primary-text: #0A0E16;
|
|
26
|
+
--color-accent-glow: #4ADE80;
|
|
27
|
+
--color-accent-glow-alt: #2DD4BF;
|
|
6
28
|
}
|
|
@@ -537,6 +537,9 @@
|
|
|
537
537
|
* translucent fill. Off keeps today's opaque surface, so there is no rule for it, and
|
|
538
538
|
* nothing here applies under prefers-reduced-transparency (a backdrop-filter, even
|
|
539
539
|
* blur(0), would also make the surface a containing block, which Off must not do).
|
|
540
|
+
* That containing block, with the surfaces' overflow, would cut away any floating layer
|
|
541
|
+
* rendered inside one, so none is (BOFF-15567, ui/glass-surface.tsx): menus, sub-menus,
|
|
542
|
+
* popovers and selects portal to <body>, and so does a tooltip opened from inside one.
|
|
540
543
|
* High contrast is a solid theme (its palette's `solid`; the Appearance page turns Glass off
|
|
541
544
|
* there): its surfaces stay opaque whatever Glass says. */
|
|
542
545
|
@media not (prefers-reduced-transparency: reduce) {
|