@arcadeai/design-system 5.0.2 → 6.0.0
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/{clamp-DV0oJUnl.js → CSPContext-_3HefTUC.js} +1 -6
- package/dist/{DialogRoot-xodRxCJ6.js → DialogRoot-DuiSPdsZ.js} +1 -1
- package/dist/{DialogTrigger-BRWKaMYv.js → DialogTrigger-DGGP-2Oc.js} +109 -108
- package/dist/{FloatingPortalLite-e0IaokaG.js → FloatingPortalLite-D5nFwFgJ.js} +1 -1
- package/dist/ReactStore-C3H8e2ha.js +600 -0
- package/dist/{Toggle-waFXW8db.js → Toggle-BdxyK_Ln.js} +1 -1
- package/dist/{accordion-DimUia61.js → accordion-BP9Lgkg8.js} +18 -18
- package/dist/{alert-dialog-BiDZwtP2.js → alert-dialog-1bUE2clB.js} +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/tokens.css +1 -1
- package/dist/assets/variables.css +1 -1
- package/dist/{avatar-B-lhJ-Gz.js → avatar-DbL6b01k.js} +4 -3
- package/dist/{checkbox-CZViOGvt.js → checkbox-DB9O_Iw9.js} +96 -85
- package/dist/clamp-BT4ayAnN.js +6 -0
- package/dist/{collapsible-DlF1q_cg.js → collapsible-DP7Fb-Lu.js} +17 -17
- package/dist/components/index.js +259 -251
- package/dist/components/ui/atoms/accordion.js +1 -1
- package/dist/components/ui/atoms/alert-dialog.js +1 -1
- package/dist/components/ui/atoms/avatar.js +1 -1
- package/dist/components/ui/atoms/checkbox.d.ts +16 -2
- package/dist/components/ui/atoms/checkbox.d.ts.map +1 -1
- package/dist/components/ui/atoms/checkbox.js +2 -2
- package/dist/components/ui/atoms/clear-button.d.ts +13 -0
- package/dist/components/ui/atoms/clear-button.d.ts.map +1 -0
- package/dist/components/ui/atoms/clear-button.js +23 -0
- package/dist/components/ui/atoms/collapsible.js +1 -1
- package/dist/components/ui/atoms/dialog.js +2 -2
- package/dist/components/ui/atoms/dropdown-menu.js +1 -1
- package/dist/components/ui/atoms/hover-card.js +1 -1
- package/dist/components/ui/atoms/icon-tile.d.ts +10 -0
- package/dist/components/ui/atoms/icon-tile.d.ts.map +1 -0
- package/dist/components/ui/atoms/icon-tile.js +25 -0
- package/dist/components/ui/atoms/index.d.ts +3 -1
- package/dist/components/ui/atoms/index.d.ts.map +1 -1
- package/dist/components/ui/atoms/index.js +210 -208
- package/dist/components/ui/atoms/input-group.js +1 -1
- package/dist/components/ui/atoms/input.js +1 -1
- package/dist/components/ui/atoms/mobile-tooltip.js +2 -2
- package/dist/components/ui/atoms/popover.js +1 -1
- package/dist/components/ui/atoms/progress.js +1 -1
- package/dist/components/ui/atoms/radio-group.js +1 -1
- package/dist/components/ui/atoms/scroll-area.js +1 -1
- package/dist/components/ui/atoms/scroll-button.js +1 -1
- package/dist/components/ui/atoms/scroll-to-bottom-button.d.ts +24 -0
- package/dist/components/ui/atoms/scroll-to-bottom-button.d.ts.map +1 -0
- package/dist/components/ui/atoms/scroll-to-bottom-button.js +31 -0
- package/dist/components/ui/atoms/select.js +1 -1
- package/dist/components/ui/atoms/sheet.js +2 -2
- package/dist/components/ui/atoms/sidebar.js +2 -2
- package/dist/components/ui/atoms/slider.js +1 -1
- package/dist/components/ui/atoms/switch.js +1 -1
- package/dist/components/ui/atoms/tabs.js +1 -1
- package/dist/components/ui/atoms/toggle-group.js +1 -1
- package/dist/components/ui/atoms/toggle.js +1 -1
- package/dist/components/ui/atoms/tooltip.js +1 -1
- package/dist/components/ui/blocks/demo.js +4 -4
- package/dist/components/ui/index.js +259 -251
- package/dist/components/ui/molecules/avatar-stack.d.ts +32 -0
- package/dist/components/ui/molecules/avatar-stack.d.ts.map +1 -0
- package/dist/components/ui/molecules/avatar-stack.js +91 -0
- package/dist/components/ui/molecules/callout.d.ts +20 -0
- package/dist/components/ui/molecules/callout.d.ts.map +1 -0
- package/dist/components/ui/molecules/callout.js +39 -0
- package/dist/components/ui/molecules/chat-history-item.js +1 -1
- package/dist/components/ui/molecules/chip-body.d.ts +21 -0
- package/dist/components/ui/molecules/chip-body.d.ts.map +1 -0
- package/dist/components/ui/molecules/chip-body.js +21 -0
- package/dist/components/ui/molecules/client-secret-field.js +1 -1
- package/dist/components/ui/molecules/confirm-popover.js +1 -1
- package/dist/components/ui/molecules/date-time-picker.js +2 -2
- package/dist/components/ui/molecules/filter-chip-group.d.ts +26 -0
- package/dist/components/ui/molecules/filter-chip-group.d.ts.map +1 -0
- package/dist/components/ui/molecules/{mcp-server-picker/category-filter.js → filter-chip-group.js} +8 -7
- package/dist/components/ui/molecules/index.d.ts +19 -7
- package/dist/components/ui/molecules/index.d.ts.map +1 -1
- package/dist/components/ui/molecules/index.js +41 -35
- package/dist/components/ui/molecules/mcp-server-picker/card-setup-button.d.ts +21 -0
- package/dist/components/ui/molecules/mcp-server-picker/card-setup-button.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/card-setup-button.js +34 -0
- package/dist/components/ui/molecules/mcp-server-picker/constants.d.ts +2 -0
- package/dist/components/ui/molecules/mcp-server-picker/constants.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/constants.js +2 -2
- package/dist/components/ui/molecules/mcp-server-picker/recommended-toolkits-chip.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/recommended-toolkits-chip.js +18 -15
- package/dist/components/ui/molecules/mcp-server-picker/recommended-tools.js +2 -2
- package/dist/components/ui/molecules/mcp-server-picker/search-scope-tabs.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/section-callout.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/section-nav-header.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/section-nav-header.js +12 -6
- package/dist/components/ui/molecules/mcp-server-picker/selection-card-parts.d.ts +28 -0
- package/dist/components/ui/molecules/mcp-server-picker/selection-card-parts.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/selection-card-parts.js +28 -0
- package/dist/components/ui/molecules/mcp-server-picker/server-avatar-stack.d.ts +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/server-avatar-stack.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/server-avatar-stack.js +29 -81
- package/dist/components/ui/molecules/mcp-server-picker/server-card.d.ts +3 -6
- package/dist/components/ui/molecules/mcp-server-picker/server-card.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/server-card.js +93 -108
- package/dist/components/ui/molecules/mcp-server-picker/setup-callout.d.ts +13 -0
- package/dist/components/ui/molecules/mcp-server-picker/setup-callout.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/setup-callout.js +27 -0
- package/dist/components/ui/molecules/mcp-server-picker/tool-card.d.ts +5 -1
- package/dist/components/ui/molecules/mcp-server-picker/tool-card.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/tool-card.js +49 -42
- package/dist/components/ui/molecules/mcp-server-picker/tool-recommendations.d.ts +12 -0
- package/dist/components/ui/molecules/mcp-server-picker/tool-recommendations.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/{tool-search-band.js → tool-recommendations.js} +6 -6
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-avatar.d.ts +6 -6
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-avatar.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-avatar.js +21 -33
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-chip.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-chip.js +19 -22
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-group-header.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/unoptimized-match-card.d.ts +3 -1
- package/dist/components/ui/molecules/mcp-server-picker/unoptimized-match-card.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/unoptimized-match-card.js +33 -31
- package/dist/components/ui/molecules/message.js +2 -2
- package/dist/components/ui/molecules/prompt-input.js +1 -1
- package/dist/components/ui/molecules/removable-chip.d.ts.map +1 -0
- package/dist/components/ui/{atoms → molecules}/removable-chip.js +1 -1
- package/dist/components/ui/molecules/requirement-badges.js +1 -1
- package/dist/components/ui/molecules/tool-call-accordion.js +2 -2
- package/dist/components/ui/molecules/tool-card.js +2 -2
- package/dist/components/ui/molecules/toolkit-card.js +1 -1
- package/dist/components/ui/molecules/undo-toast.d.ts +47 -0
- package/dist/components/ui/molecules/undo-toast.d.ts.map +1 -0
- package/dist/components/ui/molecules/undo-toast.js +3 -0
- package/dist/components/ui/molecules/user-nav.js +2 -2
- package/dist/components/ui/organisms/mcp-selection-summary-bar.d.ts.map +1 -1
- package/dist/components/ui/organisms/mcp-selection-summary-bar.js +27 -30
- package/dist/components/ui/organisms/mcp-server-picker.d.ts +6 -3
- package/dist/components/ui/organisms/mcp-server-picker.d.ts.map +1 -1
- package/dist/components/ui/organisms/mcp-server-picker.js +4 -4
- package/dist/{dropdown-menu-CWWN1cXs.js → dropdown-menu-ecggVuhu.js} +202 -199
- package/dist/{getPseudoElementBounds-D_dlkPnQ.js → getPseudoElementBounds-BOe22aYl.js} +3 -3
- package/dist/{hover-card-GELKDadU.js → hover-card-CGLPPPPP.js} +71 -70
- package/dist/{input-DZfZK6b1.js → input-DZTqcpe-.js} +1 -1
- package/dist/main.js +265 -257
- package/dist/metadata/oauth-providers.d.ts +2 -0
- package/dist/metadata/oauth-providers.d.ts.map +1 -1
- package/dist/metadata/oauth-providers.js +153 -141
- package/dist/{popover-Cne_hQUh.js → popover-CpLkQtT5.js} +129 -128
- package/dist/popupStateMapping-XiLS0Jku.js +643 -0
- package/dist/{progress-D71iUjvg.js → progress-BqG0PtAD.js} +1 -1
- package/dist/{radio-group-CTqA-p0w.js → radio-group-BpMluqfv.js} +8 -7
- package/dist/{safePolygon-os2F06tc.js → safePolygon-DmV1hDsw.js} +35 -34
- package/dist/{scroll-area-C0KbhRES.js → scroll-area-D7iOy7xj.js} +4 -3
- package/dist/{scrollEdges-CHZpP0us.js → scrollEdges-Dck9qFyQ.js} +1 -1
- package/dist/{select-RvAj5g6e.js → select-DFWNXxvZ.js} +179 -176
- package/dist/{slider-Bhn1ogwZ.js → slider-ClXWRpwI.js} +4 -3
- package/dist/{store-C-KXBzZ0.js → store-D7k1qIkZ.js} +23 -22
- package/dist/{switch-D8M0xvzp.js → switch-DlxZDt6o.js} +3 -3
- package/dist/{tabs-ttkDuwww.js → tabs-Cj3LY-7F.js} +9 -8
- package/dist/{toggle-group-CL_MBwuU.js → toggle-group-CmP4iHEJ.js} +1 -1
- package/dist/{tooltip-ZIywOFGf.js → tooltip-BUR7V5Aa.js} +197 -196
- package/dist/{ui-CttBuHXi.js → ui-46pgiw5T.js} +2 -2
- package/dist/undo-toast-Cf4T6ToX.js +898 -0
- package/dist/{useAnchoredPopupScrollLock-a2b_Frjv.js → useAnchoredPopupScrollLock-CnoPUwXv.js} +1 -1
- package/dist/{useAriaLabelledBy-WyUZP7Yf.js → useAriaLabelledBy-DJZioWd6.js} +1 -1
- package/dist/useBaseUiId-CXSJgVcI.js +8 -0
- package/dist/{useCollapsiblePanel-B6XZh6zH.js → useCollapsiblePanel-BPbcE70S.js} +15 -14
- package/dist/{useFocus-DwJfNYN6.js → useFocus-B_SrhX9q.js} +10 -10
- package/dist/{useBaseUiId-voePHgyX.js → useId-Bzr7_bed.js} +1 -6
- package/dist/{useLabelableId-CC2YaILf.js → useLabelableId-9jrDGk5d.js} +1 -1
- package/dist/useOpenChangeComplete-CVIwfcpl.js +80 -0
- package/dist/{useOpenInteractionType-DQhvPqO3.js → useOpenInteractionType-INvHftZi.js} +29 -28
- package/dist/{usePositioner-DkeyI5Le.js → usePositioner-CaLGGc-z.js} +98 -97
- package/dist/useTransitionStatus-CCIoL5RH.js +51 -0
- package/dist/{useTriggerFocusGuards-Qi8iK-AK.js → useTriggerFocusGuards-Dlv8KvSm.js} +7 -7
- package/package.json +1 -1
- package/dist/components/ui/atoms/removable-chip.d.ts.map +0 -1
- package/dist/components/ui/molecules/mcp-server-picker/category-filter-menu.d.ts +0 -31
- package/dist/components/ui/molecules/mcp-server-picker/category-filter-menu.d.ts.map +0 -1
- package/dist/components/ui/molecules/mcp-server-picker/category-filter-menu.js +0 -106
- package/dist/components/ui/molecules/mcp-server-picker/category-filter.d.ts +0 -18
- package/dist/components/ui/molecules/mcp-server-picker/category-filter.d.ts.map +0 -1
- package/dist/components/ui/molecules/mcp-server-picker/tool-search-band.d.ts +0 -12
- package/dist/components/ui/molecules/mcp-server-picker/tool-search-band.d.ts.map +0 -1
- package/dist/popupStateMapping-C8W76brO.js +0 -1221
- package/dist/useOpenChangeComplete-Bs6gnxd9.js +0 -127
- /package/dist/components/ui/{atoms → molecules}/removable-chip.d.ts +0 -0
|
@@ -8,8 +8,9 @@ import { d as o } from "./floating-ui.utils.dom-5U5b4xPf.js";
|
|
|
8
8
|
import { t as s } from "./addEventListener-BlQH_qk1.js";
|
|
9
9
|
import { t as c } from "./useValueAsRef-CfO5zn2c.js";
|
|
10
10
|
import { t as l } from "./owner-CyZnQOKt.js";
|
|
11
|
-
import {
|
|
12
|
-
import { O as
|
|
11
|
+
import { A as u, D as d, E as f } from "./popupStateMapping-XiLS0Jku.js";
|
|
12
|
+
import { O as p } from "./composite-B-tEa-Zg.js";
|
|
13
|
+
import { E as m } from "./ReactStore-C3H8e2ha.js";
|
|
13
14
|
import { n as h, t as g } from "./useTimeout-B0afjWAz.js";
|
|
14
15
|
import { n as _, r as v } from "./shadowDom-BACsbimN.js";
|
|
15
16
|
import { a as y, s as b } from "./shim-BX-2V17R.js";
|
|
@@ -17,7 +18,7 @@ import * as x from "react";
|
|
|
17
18
|
import * as S from "react-dom";
|
|
18
19
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/hooks/useHoverShared.mjs
|
|
19
20
|
function C(e, t) {
|
|
20
|
-
return t != null && !
|
|
21
|
+
return t != null && !p(t) ? 0 : typeof e == "function" ? e() : e;
|
|
21
22
|
}
|
|
22
23
|
function w(e, t, n) {
|
|
23
24
|
let r = C(e, n);
|
|
@@ -62,7 +63,7 @@ function M(e) {
|
|
|
62
63
|
//#endregion
|
|
63
64
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/hooks/useHoverFloatingInteraction.mjs
|
|
64
65
|
function N(t, a = {}) {
|
|
65
|
-
let { enabled: c = !0, closeDelay:
|
|
66
|
+
let { enabled: c = !0, closeDelay: p = 0, nodeId: g } = a, S = "rootStore" in t ? t.rootStore : t, C = S.useState("open"), T = S.useState("floatingElement"), O = S.useState("domReferenceElement"), { dataRef: k } = S.context, N = d(), P = f(), F = M(S), I = h(), L = n(() => E(k.current.openEvent?.type, F.interactedInside)), R = n(() => D(k.current.openEvent?.type)), z = n(() => {
|
|
66
67
|
A(F);
|
|
67
68
|
});
|
|
68
69
|
e(() => {
|
|
@@ -97,10 +98,10 @@ function N(t, a = {}) {
|
|
|
97
98
|
]), x.useEffect(() => {
|
|
98
99
|
if (!c) return;
|
|
99
100
|
function e() {
|
|
100
|
-
return !!(N && P &&
|
|
101
|
+
return !!(N && P && u(N.nodesRef.current, P).length > 0);
|
|
101
102
|
}
|
|
102
103
|
function t(e) {
|
|
103
|
-
let t = w(
|
|
104
|
+
let t = w(p, "close", F.pointerType), n = () => {
|
|
104
105
|
S.setOpen(!1, r(i, e)), N?.events.emit("floating.closed", e);
|
|
105
106
|
};
|
|
106
107
|
t ? F.openChangeTimeout.start(t, n) : (F.openChangeTimeout.clear(), n());
|
|
@@ -114,16 +115,16 @@ function N(t, a = {}) {
|
|
|
114
115
|
F.interactedInside = t?.closest("[aria-haspopup]") != null;
|
|
115
116
|
}
|
|
116
117
|
function a() {
|
|
117
|
-
F.openChangeTimeout.clear(), I.clear(), N?.events.off("floating.closed",
|
|
118
|
+
F.openChangeTimeout.clear(), I.clear(), N?.events.off("floating.closed", d), z();
|
|
118
119
|
}
|
|
119
120
|
function l(n) {
|
|
120
121
|
if (e() && N) {
|
|
121
|
-
N.events.on("floating.closed",
|
|
122
|
+
N.events.on("floating.closed", d);
|
|
122
123
|
return;
|
|
123
124
|
}
|
|
124
125
|
if (b(n.relatedTarget, S.context.triggerElements)) return;
|
|
125
126
|
let r = k.current.floatingContext?.nodeId ?? g, i = n.relatedTarget;
|
|
126
|
-
if (!(N && r && o(i) &&
|
|
127
|
+
if (!(N && r && o(i) && u(N.nodesRef.current, r, !1).some((e) => _(e.context?.elements.floating, i)))) {
|
|
127
128
|
if (F.handler) {
|
|
128
129
|
F.handler(n);
|
|
129
130
|
return;
|
|
@@ -131,21 +132,21 @@ function N(t, a = {}) {
|
|
|
131
132
|
z(), R() && !L() && t(n);
|
|
132
133
|
}
|
|
133
134
|
}
|
|
134
|
-
function
|
|
135
|
+
function d(t) {
|
|
135
136
|
!N || !P || e() || I.start(0, () => {
|
|
136
|
-
N.events.off("floating.closed",
|
|
137
|
+
N.events.off("floating.closed", d), S.setOpen(!1, r(i, t)), N.events.emit("floating.closed", t);
|
|
137
138
|
});
|
|
138
139
|
}
|
|
139
|
-
let
|
|
140
|
-
return
|
|
141
|
-
N?.events.off("floating.closed",
|
|
140
|
+
let f = T;
|
|
141
|
+
return m(f && s(f, "mouseenter", a), f && s(f, "mouseleave", l), f && s(f, "pointerdown", n, !0), () => {
|
|
142
|
+
N?.events.off("floating.closed", d);
|
|
142
143
|
});
|
|
143
144
|
}, [
|
|
144
145
|
c,
|
|
145
146
|
T,
|
|
146
147
|
S,
|
|
147
148
|
k,
|
|
148
|
-
|
|
149
|
+
p,
|
|
149
150
|
g,
|
|
150
151
|
R,
|
|
151
152
|
L,
|
|
@@ -195,7 +196,7 @@ function F(e, t = {}) {
|
|
|
195
196
|
let t = C.current ?? (O ? I.select("domReferenceElement") : null);
|
|
196
197
|
if (!o(t)) return;
|
|
197
198
|
function n(e) {
|
|
198
|
-
if (B.openChangeTimeout.clear(), B.blockMouseMove = !1, h && !
|
|
199
|
+
if (B.openChangeTimeout.clear(), B.blockMouseMove = !1, h && !p(B.pointerType)) return;
|
|
199
200
|
let t = T(W.current), n = w(U.current, "open", B.pointerType), a = v(e), s = e.currentTarget ?? null, c = I.select("domReferenceElement"), l = s;
|
|
200
201
|
if (o(a) && !I.context.triggerElements.hasElement(a)) {
|
|
201
202
|
for (let e of I.context.triggerElements.elements()) if (_(e, a)) {
|
|
@@ -204,7 +205,7 @@ function F(e, t = {}) {
|
|
|
204
205
|
}
|
|
205
206
|
}
|
|
206
207
|
o(s) && o(c) && !I.context.triggerElements.hasElement(s) && _(s, c) && (l = c);
|
|
207
|
-
let u = l == null ? !1 : X(c, l, a), d = I.select("open"), f = q.current?.() ?? I.select("transitionStatus") === "ending",
|
|
208
|
+
let u = l == null ? !1 : X(c, l, a), d = I.select("open"), f = q.current?.() ?? I.select("transitionStatus") === "ending", m = !d && f && V.current, g = !u && o(l) && o(c) && _(c, l) && m, y = t > 0 && !n, b = u && (d || m) || g, x = !d || u;
|
|
208
209
|
if (b) {
|
|
209
210
|
Y() && I.setOpen(!0, r(i, e, l));
|
|
210
211
|
return;
|
|
@@ -240,7 +241,7 @@ function F(e, t = {}) {
|
|
|
240
241
|
(B.pointerType !== "touch" || !_(I.select("floatingElement"), t.relatedTarget)) && e(t);
|
|
241
242
|
}
|
|
242
243
|
}
|
|
243
|
-
return y ?
|
|
244
|
+
return y ? m(s(t, "mousemove", n, { once: !0 }), s(t, "mouseenter", n), s(t, "mouseleave", c)) : m(s(t, "mouseenter", n), s(t, "mouseleave", c));
|
|
244
245
|
}, [
|
|
245
246
|
Z,
|
|
246
247
|
Q,
|
|
@@ -272,7 +273,7 @@ function F(e, t = {}) {
|
|
|
272
273
|
onPointerEnter: e,
|
|
273
274
|
onMouseMove(e) {
|
|
274
275
|
let { nativeEvent: t } = e, n = e.currentTarget, a = I.select("domReferenceElement"), o = I.select("open"), s = X(a, n, e.target);
|
|
275
|
-
if (h && !
|
|
276
|
+
if (h && !p(B.pointerType)) return;
|
|
276
277
|
if (o && s && B.handleCloseOptions?.blockPointerEvents) {
|
|
277
278
|
let e = I.select("floatingElement");
|
|
278
279
|
if (e) {
|
|
@@ -326,35 +327,35 @@ function H(e, t, n, r, i, a) {
|
|
|
326
327
|
}
|
|
327
328
|
function U(e = {}) {
|
|
328
329
|
let { blockPointerEvents: t = !1 } = e, n = new g(), r = ({ x: e, y: t, placement: r, elements: i, onClose: a, nodeId: s, tree: c }) => {
|
|
329
|
-
let l = r?.split("-")[0],
|
|
330
|
+
let l = r?.split("-")[0], d = !1, f = null, p = null, m = typeof performance < "u" ? performance.now() : 0;
|
|
330
331
|
function h(e, t) {
|
|
331
332
|
let n = performance.now(), r = n - m;
|
|
332
|
-
if (
|
|
333
|
-
let i = e -
|
|
334
|
-
return
|
|
333
|
+
if (f === null || p === null || r === 0) return f = e, p = t, m = n, !1;
|
|
334
|
+
let i = e - f, a = t - p, o = i * i + a * a, s = r * r * L;
|
|
335
|
+
return f = e, p = t, m = n, o < s;
|
|
335
336
|
}
|
|
336
337
|
function g() {
|
|
337
338
|
n.clear(), a();
|
|
338
339
|
}
|
|
339
340
|
return function(r) {
|
|
340
341
|
n.clear();
|
|
341
|
-
let a = i.domReference,
|
|
342
|
-
if (!a || !
|
|
343
|
-
let { clientX: p, clientY: m } = r, y = v(r), b = r.type === "mouseleave", x = _(
|
|
344
|
-
if (x && (
|
|
345
|
-
if (S && (
|
|
346
|
-
|
|
342
|
+
let a = i.domReference, f = i.floating;
|
|
343
|
+
if (!a || !f || l == null || e == null || t == null) return;
|
|
344
|
+
let { clientX: p, clientY: m } = r, y = v(r), b = r.type === "mouseleave", x = _(f, y), S = _(a, y);
|
|
345
|
+
if (x && (d = !0, !b)) return;
|
|
346
|
+
if (S && (d = !1, !b)) {
|
|
347
|
+
d = !0;
|
|
347
348
|
return;
|
|
348
349
|
}
|
|
349
|
-
if (b && o(r.relatedTarget) && _(
|
|
350
|
+
if (b && o(r.relatedTarget) && _(f, r.relatedTarget)) return;
|
|
350
351
|
function C() {
|
|
351
|
-
return !!(c &&
|
|
352
|
+
return !!(c && u(c.nodesRef.current, s).length > 0);
|
|
352
353
|
}
|
|
353
354
|
function w() {
|
|
354
355
|
C() || g();
|
|
355
356
|
}
|
|
356
357
|
if (C()) return;
|
|
357
|
-
let T = a.getBoundingClientRect(), E =
|
|
358
|
+
let T = a.getBoundingClientRect(), E = f.getBoundingClientRect(), D = e > E.right - E.width / 2, O = t > E.bottom - E.height / 2, k = E.width > T.width, A = E.height > T.height, j = (k ? T : E).left, M = (k ? T : E).right, N = (A ? T : E).top, P = (A ? T : E).bottom;
|
|
358
359
|
if (l === "top" && t >= T.bottom - 1 || l === "bottom" && t <= T.top + 1 || l === "left" && e >= T.right - 1 || l === "right" && e <= T.left + 1) {
|
|
359
360
|
w();
|
|
360
361
|
return;
|
|
@@ -376,7 +377,7 @@ function U(e = {}) {
|
|
|
376
377
|
default:
|
|
377
378
|
}
|
|
378
379
|
if (F) return;
|
|
379
|
-
if (
|
|
380
|
+
if (d && !V(p, m, T)) {
|
|
380
381
|
w();
|
|
381
382
|
return;
|
|
382
383
|
}
|
|
@@ -408,7 +409,7 @@ function U(e = {}) {
|
|
|
408
409
|
}
|
|
409
410
|
default:
|
|
410
411
|
}
|
|
411
|
-
I ?
|
|
412
|
+
I ? d || n.start(40, w) : w();
|
|
412
413
|
};
|
|
413
414
|
};
|
|
414
415
|
return r.__options = {
|
|
@@ -3,14 +3,15 @@ import { t as e } from "./useIsoLayoutEffect-4LGv3HzC.js";
|
|
|
3
3
|
import { t, u as n } from "./useRenderElement-BToElZ97.js";
|
|
4
4
|
import { t as r } from "./useStableCallback-CrM0Nb2q.js";
|
|
5
5
|
import { t as i } from "./DirectionContext-OzWG1tsQ.js";
|
|
6
|
-
import { t as a } from "./useBaseUiId-
|
|
6
|
+
import { t as a } from "./useBaseUiId-CXSJgVcI.js";
|
|
7
7
|
import { t as o } from "./addEventListener-BlQH_qk1.js";
|
|
8
8
|
import { cn as s } from "./lib/utils.js";
|
|
9
9
|
import { t as c } from "./engine-ChH4dTze.js";
|
|
10
10
|
import { n as l } from "./useTimeout-B0afjWAz.js";
|
|
11
11
|
import { n as u, r as d } from "./shadowDom-BACsbimN.js";
|
|
12
|
-
import { n as f, r as p } from "./scrollEdges-
|
|
13
|
-
import {
|
|
12
|
+
import { n as f, r as p } from "./scrollEdges-Dck9qFyQ.js";
|
|
13
|
+
import { t as ee } from "./CSPContext-_3HefTUC.js";
|
|
14
|
+
import { t as m } from "./clamp-BT4ayAnN.js";
|
|
14
15
|
import * as h from "react";
|
|
15
16
|
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
16
17
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/scroll-area/root/ScrollAreaRootContext.mjs
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./clamp-
|
|
1
|
+
import { t as e } from "./clamp-BT4ayAnN.js";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/utils/styles.mjs
|
|
4
4
|
var n = "base-ui-disable-scrollbar", r = {
|