@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
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
/** A popup's placement beside the floating sidebar, as Radix's content props. */
|
|
3
|
+
export interface SidebarPopupBeside {
|
|
4
|
+
side: 'left' | 'right';
|
|
5
|
+
align: 'start' | 'end';
|
|
6
|
+
sideOffset: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The placement beside the floating panel `trigger` sits in, or `null` (not in a floating
|
|
10
|
+
* panel, or the window is narrower than `lg`): the caller then keeps its own placement.
|
|
11
|
+
*/
|
|
12
|
+
export declare function sidebarPopupBeside(trigger: HTMLElement | null, align: SidebarPopupBeside['align']): SidebarPopupBeside | null;
|
|
13
|
+
/**
|
|
14
|
+
* For a popup opened from `trigger`: `beside` is its placement while it opens beside a
|
|
15
|
+
* floating sidebar (else `null`: keep the placement of before). Pass `contentRef` as the
|
|
16
|
+
* popup content's `ref`; it measures each time the content mounts.
|
|
17
|
+
*/
|
|
18
|
+
export declare function useSidebarPopupPlacement(trigger: RefObject<HTMLElement | null>, align: SidebarPopupBeside['align']): {
|
|
19
|
+
beside: SidebarPopupBeside | null;
|
|
20
|
+
contentRef: (content: HTMLElement | null) => void;
|
|
21
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { useShellSidebarAppearance as e } from "./shellSidebarAppearance.js";
|
|
2
|
+
import { useCallback as t, useState as n } from "react";
|
|
3
|
+
// src/chrome/shell/sidebarPopupPlacement.ts
|
|
4
|
+
var r = 8, i = "(min-width: 1024px)";
|
|
5
|
+
function a(e, t) {
|
|
6
|
+
let n = e?.closest("[data-shell-panel]");
|
|
7
|
+
if (!e || !n || typeof window.matchMedia != "function" || !window.matchMedia(i).matches) return null;
|
|
8
|
+
let a = getComputedStyle(e).direction === "rtl", o = e.getBoundingClientRect(), s = n.getBoundingClientRect(), c = a ? o.left - s.left : s.right - o.right;
|
|
9
|
+
return {
|
|
10
|
+
side: a ? "left" : "right",
|
|
11
|
+
align: t,
|
|
12
|
+
sideOffset: Math.max(0, Math.round(c)) + r
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function o(r, i) {
|
|
16
|
+
let o = e() === "floating", [s, c] = n(null), l = t((e) => {
|
|
17
|
+
e && o && c(a(r.current, i));
|
|
18
|
+
}, [
|
|
19
|
+
o,
|
|
20
|
+
r,
|
|
21
|
+
i
|
|
22
|
+
]);
|
|
23
|
+
return {
|
|
24
|
+
beside: o ? s : null,
|
|
25
|
+
contentRef: l
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export { a as sidebarPopupBeside, o as useSidebarPopupPlacement };
|