@burdenoff/fe-libs 2026.1119.7 → 2026.1119.9
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/shell/ShellSidebar.js +159 -157
- package/dist/chrome/shell/SidebarProfileMenu.js +193 -190
- package/dist/chrome/shell/WorkspaceAccountCard.js +45 -40
- package/dist/chrome/shell/WorkspaceMenu.js +140 -136
- 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/connections/ConnectionDialogPanel.js +222 -203
- package/dist/connections/ConnectionFormTab.d.ts +6 -0
- package/dist/connections/ConnectionFormTab.js +2 -2
- package/dist/connections/api.d.ts +28 -0
- package/dist/connections/api.js +107 -71
- package/dist/connections/connectionFlow.d.ts +63 -1
- package/dist/connections/connectionFlow.js +139 -47
- package/dist/connections/index.d.ts +2 -2
- package/dist/connections/oauthPopup.d.ts +16 -1
- package/dist/connections/oauthPopup.js +45 -37
- package/dist/connections/useConnectionSubmit.d.ts +7 -2
- package/dist/connections/useConnectionSubmit.js +69 -55
- package/dist/connections.js +6 -6
- 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 +1 -1
- 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
|
@@ -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) {
|