@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
package/dist/{useAnchoredPopupScrollLock-a2b_Frjv.js → useAnchoredPopupScrollLock-CnoPUwXv.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as e } from "./useIsoLayoutEffect-4LGv3HzC.js";
|
|
3
3
|
import { t } from "./owner-CyZnQOKt.js";
|
|
4
|
-
import { s as n } from "./useOpenInteractionType-
|
|
4
|
+
import { s as n } from "./useOpenInteractionType-INvHftZi.js";
|
|
5
5
|
import * as r from "react";
|
|
6
6
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/utils/useAnchoredPopupScrollLock.mjs
|
|
7
7
|
var i = 20;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as e } from "./useIsoLayoutEffect-4LGv3HzC.js";
|
|
3
|
-
import { t } from "./useBaseUiId-
|
|
3
|
+
import { t } from "./useBaseUiId-CXSJgVcI.js";
|
|
4
4
|
import * as n from "react";
|
|
5
5
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/internals/labelable-provider/useAriaLabelledBy.mjs
|
|
6
6
|
function r(r, a, o, s = !0, c) {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as e } from "./useId-Bzr7_bed.js";
|
|
3
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/internals/useBaseUiId.mjs
|
|
4
|
+
function t(t) {
|
|
5
|
+
return e(t, "base-ui");
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { t };
|
|
@@ -3,43 +3,44 @@ import { t as e } from "./useControlled-Bu1mahWG.js";
|
|
|
3
3
|
import { t } from "./useIsoLayoutEffect-4LGv3HzC.js";
|
|
4
4
|
import { d as n, l as r, u as i } from "./useRenderElement-BToElZ97.js";
|
|
5
5
|
import { t as a } from "./useStableCallback-CrM0Nb2q.js";
|
|
6
|
-
import { t as o } from "./useBaseUiId-
|
|
6
|
+
import { t as o } from "./useBaseUiId-CXSJgVcI.js";
|
|
7
7
|
import { S as s, g as c, t as l } from "./createBaseUIEventDetails-C_dwdqj4.js";
|
|
8
8
|
import { t as u } from "./useAnimationFrame-jkCXMP_8.js";
|
|
9
|
-
import {
|
|
9
|
+
import { t as d } from "./useTransitionStatus-CCIoL5RH.js";
|
|
10
|
+
import { i as f, n as p, t as m } from "./useOpenChangeComplete-CVIwfcpl.js";
|
|
10
11
|
import { l as h } from "./floating-ui.utils.dom-5U5b4xPf.js";
|
|
11
12
|
import { t as g } from "./addEventListener-BlQH_qk1.js";
|
|
12
13
|
import { t as _ } from "./useValueAsRef-CfO5zn2c.js";
|
|
13
14
|
import * as v from "react";
|
|
14
15
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/collapsible/root/useCollapsibleRoot.mjs
|
|
15
16
|
function y(t) {
|
|
16
|
-
let { open: n, defaultOpen: r, onOpenChange: i, disabled: c } = t, [u,
|
|
17
|
+
let { open: n, defaultOpen: r, onOpenChange: i, disabled: c } = t, [u, f] = e({
|
|
17
18
|
controlled: n,
|
|
18
19
|
default: r,
|
|
19
20
|
name: "Collapsible",
|
|
20
21
|
state: "open"
|
|
21
|
-
}), { mounted:
|
|
22
|
+
}), { mounted: p, setMounted: m, transitionStatus: h } = d(u, !0, !0), g = o(), [_, y] = v.useState(), b = _ ?? g, x = a((e) => {
|
|
22
23
|
let t = !u, n = l(s, e.nativeEvent);
|
|
23
|
-
i(t, n), !n.isCanceled &&
|
|
24
|
+
i(t, n), !n.isCanceled && f(t);
|
|
24
25
|
});
|
|
25
26
|
return v.useMemo(() => ({
|
|
26
27
|
disabled: c,
|
|
27
28
|
handleTrigger: x,
|
|
28
|
-
mounted:
|
|
29
|
+
mounted: p,
|
|
29
30
|
open: u,
|
|
30
31
|
panelId: b,
|
|
31
32
|
setMounted: m,
|
|
32
|
-
setOpen:
|
|
33
|
+
setOpen: f,
|
|
33
34
|
setPanelIdState: y,
|
|
34
35
|
transitionStatus: h
|
|
35
36
|
}), [
|
|
36
37
|
c,
|
|
37
38
|
x,
|
|
38
|
-
|
|
39
|
+
p,
|
|
39
40
|
u,
|
|
40
41
|
b,
|
|
41
42
|
m,
|
|
42
|
-
|
|
43
|
+
f,
|
|
43
44
|
y,
|
|
44
45
|
h
|
|
45
46
|
]);
|
|
@@ -56,7 +57,7 @@ function x() {
|
|
|
56
57
|
//#endregion
|
|
57
58
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/collapsible/panel/CollapsiblePanelDataAttributes.mjs
|
|
58
59
|
var S = function(e) {
|
|
59
|
-
return e.open = "data-open", e.closed = "data-closed", e[e.startingStyle =
|
|
60
|
+
return e.open = "data-open", e.closed = "data-closed", e[e.startingStyle = f.startingStyle] = "startingStyle", e[e.endingStyle = f.endingStyle] = "endingStyle", e;
|
|
60
61
|
}({}), C = /*#__PURE__*/ function(e) {
|
|
61
62
|
return e.panelOpen = "data-panel-open", e;
|
|
62
63
|
}({}), w = { [S.open]: "" }, T = { [S.closed]: "" }, E = { open(e) {
|
|
@@ -68,10 +69,10 @@ var S = function(e) {
|
|
|
68
69
|
width: void 0
|
|
69
70
|
};
|
|
70
71
|
function k(e) {
|
|
71
|
-
let { externalRef: n, hiddenUntilFound: i, id: o, keepMounted: s, mounted: d, onOpenChange:
|
|
72
|
+
let { externalRef: n, hiddenUntilFound: i, id: o, keepMounted: s, mounted: d, onOpenChange: f, open: h, setMounted: y, setOpen: b, transitionStatus: x } = e, C = v.useRef(null), w = v.useRef(null), [T, E] = v.useState(O), D = v.useRef(O), k = v.useRef(!1), M = v.useRef(h), F = v.useRef(!1), [I, L] = v.useState(!1), R = v.useRef(null), z = r(n, C), B = _({
|
|
72
73
|
mounted: d,
|
|
73
74
|
open: h
|
|
74
|
-
}), V =
|
|
75
|
+
}), V = p(C, !1, !1), H = !h && !d, U = I ? "idle" : x, W = h && (M.current || F.current), G = !h && d && w.current === "css-animation" && T.height === void 0 && T.width === void 0 ? D.current : T, K = i && H && w.current !== "css-animation", q = a((e, t = !0) => {
|
|
75
76
|
t && (D.current = e), E(e);
|
|
76
77
|
}), J = a(() => {
|
|
77
78
|
R.current?.(), R.current = null;
|
|
@@ -179,10 +180,10 @@ function k(e) {
|
|
|
179
180
|
if (!e) return;
|
|
180
181
|
function t(e) {
|
|
181
182
|
let t = l(c, e);
|
|
182
|
-
|
|
183
|
+
f(!0, t), !t.isCanceled && (k.current = !0, b(!0));
|
|
183
184
|
}
|
|
184
185
|
return g(e, "beforematch", t);
|
|
185
|
-
}, [
|
|
186
|
+
}, [f, b]);
|
|
186
187
|
let Z = s || i || d || h;
|
|
187
188
|
return {
|
|
188
189
|
height: G.height,
|
|
@@ -3,17 +3,17 @@ import { b as e, t } from "./createBaseUIEventDetails-C_dwdqj4.js";
|
|
|
3
3
|
import { d as n, f as r, l as i } from "./floating-ui.utils.dom-5U5b4xPf.js";
|
|
4
4
|
import { t as a } from "./addEventListener-BlQH_qk1.js";
|
|
5
5
|
import { t as o } from "./owner-CyZnQOKt.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { F as s } from "./composite-B-tEa-Zg.js";
|
|
7
|
+
import { t as c } from "./engine-ChH4dTze.js";
|
|
8
|
+
import { E as l, g as u } from "./ReactStore-C3H8e2ha.js";
|
|
9
9
|
import { n as d } from "./useTimeout-B0afjWAz.js";
|
|
10
10
|
import { n as f, r as p, t as m } from "./shadowDom-BACsbimN.js";
|
|
11
11
|
import { l as h, s as g, u as _ } from "./shim-BX-2V17R.js";
|
|
12
12
|
import * as v from "react";
|
|
13
13
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/hooks/useFocus.mjs
|
|
14
|
-
var y =
|
|
15
|
-
function b(
|
|
16
|
-
let { enabled: b = !0, delay: x } =
|
|
14
|
+
var y = s && c;
|
|
15
|
+
function b(s, c = {}) {
|
|
16
|
+
let { enabled: b = !0, delay: x } = c, S = "rootStore" in s ? s.rootStore : s, { events: C, dataRef: w } = S.context, T = v.useRef(!1), E = v.useRef(null), D = v.useRef(!0), O = d();
|
|
17
17
|
v.useEffect(() => {
|
|
18
18
|
let e = S.select("domReferenceElement");
|
|
19
19
|
if (!b) return;
|
|
@@ -25,10 +25,10 @@ function b(l, u = {}) {
|
|
|
25
25
|
function s() {
|
|
26
26
|
D.current = !0;
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function c() {
|
|
29
29
|
D.current = !1;
|
|
30
30
|
}
|
|
31
|
-
return
|
|
31
|
+
return l(a(t, "blur", n), y && a(t, "keydown", s, !0), y && a(t, "pointerdown", c, !0));
|
|
32
32
|
}, [S, b]), v.useEffect(() => {
|
|
33
33
|
if (!b) return;
|
|
34
34
|
function e(e) {
|
|
@@ -76,10 +76,10 @@ function b(l, u = {}) {
|
|
|
76
76
|
},
|
|
77
77
|
onBlur(i) {
|
|
78
78
|
r();
|
|
79
|
-
let a = i.relatedTarget,
|
|
79
|
+
let a = i.relatedTarget, s = i.nativeEvent, c = n(a) && a.hasAttribute(u("focus-guard")) && a.getAttribute("data-type") === "outside";
|
|
80
80
|
O.start(0, () => {
|
|
81
81
|
let n = S.select("domReferenceElement"), r = m(o(n));
|
|
82
|
-
!a && r === n || f(w.current.floatingContext?.refs.floating.current, r) || f(n, r) ||
|
|
82
|
+
!a && r === n || f(w.current.floatingContext?.refs.floating.current, r) || f(n, r) || c || g(a ?? r, S.context.triggerElements) || S.setOpen(!1, t(e, s));
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
};
|
|
@@ -18,9 +18,4 @@ function a(e, t) {
|
|
|
18
18
|
return r(e, t);
|
|
19
19
|
}
|
|
20
20
|
//#endregion
|
|
21
|
-
|
|
22
|
-
function o(e) {
|
|
23
|
-
return a(e, "base-ui");
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
export { a as n, o as t };
|
|
21
|
+
export { a as t };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { t as e } from "./useIsoLayoutEffect-4LGv3HzC.js";
|
|
3
3
|
import { f as t, s as n } from "./useRenderElement-BToElZ97.js";
|
|
4
4
|
import { t as r } from "./useStableCallback-CrM0Nb2q.js";
|
|
5
|
-
import { t as i } from "./useBaseUiId-
|
|
5
|
+
import { t as i } from "./useBaseUiId-CXSJgVcI.js";
|
|
6
6
|
import { d as a } from "./floating-ui.utils.dom-5U5b4xPf.js";
|
|
7
7
|
import { t as o } from "./LabelableContext-C6DIbcnY.js";
|
|
8
8
|
import * as s from "react";
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as e } from "./useStableCallback-CrM0Nb2q.js";
|
|
3
|
+
import { n as t } from "./useAnimationFrame-jkCXMP_8.js";
|
|
4
|
+
import * as n from "react";
|
|
5
|
+
import * as r from "react-dom";
|
|
6
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/internals/stateAttributesMapping.mjs
|
|
7
|
+
var i = /*#__PURE__*/ function(e) {
|
|
8
|
+
return e.startingStyle = "data-starting-style", e.endingStyle = "data-ending-style", e;
|
|
9
|
+
}({}), a = { [i.startingStyle]: "" }, o = { [i.endingStyle]: "" }, s = { transitionStatus(e) {
|
|
10
|
+
return e === "starting" ? a : e === "ending" ? o : null;
|
|
11
|
+
} };
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/utils/resolveRef.mjs
|
|
14
|
+
function c(e) {
|
|
15
|
+
return e == null ? e : "current" in e ? e.current : e;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/internals/useAnimationsFinished.mjs
|
|
19
|
+
function l(n, a = !1, o = !0) {
|
|
20
|
+
let s = t();
|
|
21
|
+
return e((e, t = null) => {
|
|
22
|
+
s.cancel();
|
|
23
|
+
let l = c(n);
|
|
24
|
+
if (l == null) return;
|
|
25
|
+
let u = l, d = () => {
|
|
26
|
+
r.flushSync(e);
|
|
27
|
+
};
|
|
28
|
+
if (typeof u.getAnimations != "function" || globalThis.BASE_UI_ANIMATIONS_DISABLED) {
|
|
29
|
+
e();
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
function f() {
|
|
33
|
+
Promise.all(u.getAnimations().map((e) => e.finished)).then(() => {
|
|
34
|
+
t?.aborted || d();
|
|
35
|
+
}).catch(() => {
|
|
36
|
+
if (o) {
|
|
37
|
+
t?.aborted || d();
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
let e = u.getAnimations();
|
|
41
|
+
!t?.aborted && e.length > 0 && e.some((e) => e.pending || e.playState !== "finished") && f();
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
if (a) {
|
|
45
|
+
let e = i.startingStyle;
|
|
46
|
+
if (!u.hasAttribute(e)) {
|
|
47
|
+
s.request(f);
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
let n = new MutationObserver(() => {
|
|
51
|
+
u.hasAttribute(e) || (n.disconnect(), f());
|
|
52
|
+
});
|
|
53
|
+
n.observe(u, {
|
|
54
|
+
attributes: !0,
|
|
55
|
+
attributeFilter: [e]
|
|
56
|
+
}), t?.addEventListener("abort", () => n.disconnect(), { once: !0 });
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
s.request(f);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/internals/useOpenChangeComplete.mjs
|
|
64
|
+
function u(t) {
|
|
65
|
+
let { enabled: r = !0, open: i, ref: a, onComplete: o } = t, s = e(o), c = l(a, i, !1);
|
|
66
|
+
n.useEffect(() => {
|
|
67
|
+
if (!r) return;
|
|
68
|
+
let e = new AbortController();
|
|
69
|
+
return c(s, e.signal), () => {
|
|
70
|
+
e.abort();
|
|
71
|
+
};
|
|
72
|
+
}, [
|
|
73
|
+
r,
|
|
74
|
+
i,
|
|
75
|
+
s,
|
|
76
|
+
c
|
|
77
|
+
]);
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
export { s as a, i, l as n, c as r, u as t };
|
|
@@ -4,14 +4,15 @@ import { l as t, o as n, s as r } from "./useRenderElement-BToElZ97.js";
|
|
|
4
4
|
import { t as i } from "./useStableCallback-CrM0Nb2q.js";
|
|
5
5
|
import { S as a, c as o, t as s } from "./createBaseUIEventDetails-C_dwdqj4.js";
|
|
6
6
|
import { n as c, t as l } from "./useAnimationFrame-jkCXMP_8.js";
|
|
7
|
-
import { r as u } from "./useOpenChangeComplete-
|
|
7
|
+
import { r as u } from "./useOpenChangeComplete-CVIwfcpl.js";
|
|
8
8
|
import { a as d, f, g as p, h as m, l as h } from "./floating-ui.utils.dom-5U5b4xPf.js";
|
|
9
9
|
import { t as g } from "./addEventListener-BlQH_qk1.js";
|
|
10
10
|
import { t as _ } from "./useValueAsRef-CfO5zn2c.js";
|
|
11
11
|
import { t as v } from "./owner-CyZnQOKt.js";
|
|
12
|
-
import {
|
|
13
|
-
import { A as
|
|
14
|
-
import { t as
|
|
12
|
+
import { A as y, D as ee, k as te } from "./popupStateMapping-XiLS0Jku.js";
|
|
13
|
+
import { A as ne, M as re, O as b, P as x, i as ie, j as ae } from "./composite-B-tEa-Zg.js";
|
|
14
|
+
import { t as oe } from "./engine-ChH4dTze.js";
|
|
15
|
+
import { C as se, E as ce, S as le, T as ue, _ as de, g as fe, l as pe, v as me, w as he, y as ge } from "./ReactStore-C3H8e2ha.js";
|
|
15
16
|
import { n as _e, t as S } from "./useTimeout-B0afjWAz.js";
|
|
16
17
|
import { n as C, r as w, t as T } from "./shadowDom-BACsbimN.js";
|
|
17
18
|
import { c as ve, l as ye, r as be } from "./shim-BX-2V17R.js";
|
|
@@ -48,7 +49,7 @@ function A(e) {
|
|
|
48
49
|
}
|
|
49
50
|
function j(e) {
|
|
50
51
|
let t = v(e), n = t.documentElement, r = t.body, i = h(n), a = 0, o = 0, s = !1, c = l.create();
|
|
51
|
-
if (
|
|
52
|
+
if (oe && (i.visualViewport?.scale ?? 1) !== 1) return () => {};
|
|
52
53
|
function u() {
|
|
53
54
|
let t = i.getComputedStyle(n), c = i.getComputedStyle(r), l = (t.scrollbarGutter || "").includes("both-edges") ? "stable both-edges" : "stable";
|
|
54
55
|
a = n.scrollTop, o = n.scrollLeft, Ce = {
|
|
@@ -115,7 +116,7 @@ var M = new class {
|
|
|
115
116
|
this.restore = r;
|
|
116
117
|
return;
|
|
117
118
|
}
|
|
118
|
-
let i =
|
|
119
|
+
let i = x || !O(e);
|
|
119
120
|
this.restore = i ? A(e) : j(e);
|
|
120
121
|
}
|
|
121
122
|
}();
|
|
@@ -219,22 +220,22 @@ function Me() {
|
|
|
219
220
|
return Ae(), K[K.length - 1]?.deref();
|
|
220
221
|
}
|
|
221
222
|
function Ne(e) {
|
|
222
|
-
return e ?
|
|
223
|
+
return e ? se(e) ? e : he(e)[0] || e : null;
|
|
223
224
|
}
|
|
224
225
|
function Pe(e) {
|
|
225
226
|
if (e.hasAttribute("tabindex") && !e.hasAttribute("data-tabindex") || !e.getAttribute("role")?.includes("dialog")) return;
|
|
226
|
-
let t =
|
|
227
|
+
let t = de(e).filter((e) => {
|
|
227
228
|
let t = e.getAttribute("data-tabindex") || "";
|
|
228
|
-
return
|
|
229
|
+
return se(e) || e.hasAttribute("data-tabindex") && !t.startsWith("-");
|
|
229
230
|
}), n = e.getAttribute("tabindex");
|
|
230
231
|
t.length === 0 ? n !== "0" && (e.setAttribute("tabindex", "0"), e.setAttribute("data-tabindex", "0")) : (n !== "-1" || e.hasAttribute("data-tabindex") && e.getAttribute("data-tabindex") !== "-1") && (e.setAttribute("tabindex", "-1"), e.setAttribute("data-tabindex", "-1"));
|
|
231
232
|
}
|
|
232
233
|
function q(n) {
|
|
233
|
-
let { context: r, children: a, disabled: l = !1, initialFocus: p = !0, returnFocus: m = !0, restoreFocus: h = !1, modal: b = !0, closeOnFocusOut: x = !0, openInteractionType:
|
|
234
|
+
let { context: r, children: a, disabled: l = !1, initialFocus: p = !0, returnFocus: m = !0, restoreFocus: h = !1, modal: b = !0, closeOnFocusOut: x = !0, openInteractionType: de = "", nextFocusableElement: S, previousFocusableElement: E, beforeContentFocusGuardRef: Ce, externalTree: we, getInsideElements: Te } = n, O = "rootStore" in r ? r.rootStore : r, k = O.useState("open"), A = O.useState("domReferenceElement"), j = O.useState("floatingElement"), { events: M, dataRef: N } = O.context, P = i(() => N.current.floatingContext?.nodeId), I = p === !1, L = ve(A) && I, R = _(p), z = _(m), B = _(de), Ee = _(k), V = ee(we), H = pe(), U = D.useRef(!1), W = D.useRef(!1), G = D.useRef(!1), ke = D.useRef(null), K = D.useRef(""), q = D.useRef(""), J = D.useRef(null), Y = D.useRef(null), Fe = t(J, Ce, H?.beforeInsideRef), Ie = t(Y, H?.afterInsideRef), Le = _e(), X = _e(), Re = c(), ze = H != null, Z = be(j), Q = i((e = Z) => e ? he(e) : []), $ = i(() => Te?.().filter((e) => e != null) ?? []);
|
|
234
235
|
D.useEffect(() => {
|
|
235
236
|
if (l || !b) return;
|
|
236
237
|
function e(e) {
|
|
237
|
-
e.key === "Tab" && C(Z, T(v(Z))) && Q().length === 0 && !L &&
|
|
238
|
+
e.key === "Tab" && C(Z, T(v(Z))) && Q().length === 0 && !L && re(e);
|
|
238
239
|
}
|
|
239
240
|
return g(v(Z), "keydown", e);
|
|
240
241
|
}, [
|
|
@@ -258,7 +259,7 @@ function q(n) {
|
|
|
258
259
|
function r() {
|
|
259
260
|
q.current = "keyboard";
|
|
260
261
|
}
|
|
261
|
-
return
|
|
262
|
+
return ce(g(e, "pointerdown", n, !0), g(e, "pointerup", t, !0), g(e, "pointercancel", t, !0), g(e, "keydown", r, !0), t);
|
|
262
263
|
}, [
|
|
263
264
|
l,
|
|
264
265
|
j,
|
|
@@ -278,12 +279,12 @@ function q(n) {
|
|
|
278
279
|
}
|
|
279
280
|
function n(e) {
|
|
280
281
|
let t = w(e);
|
|
281
|
-
|
|
282
|
+
se(t) && (ke.current = t);
|
|
282
283
|
}
|
|
283
284
|
function r(t) {
|
|
284
285
|
let n = t.relatedTarget, r = t.currentTarget, i = w(t);
|
|
285
286
|
b && n == null && i != null && C(j, i) && je(i), queueMicrotask(() => {
|
|
286
|
-
let a = P(), c = O.context.triggerElements, l = $(), d = n?.hasAttribute(
|
|
287
|
+
let a = P(), c = O.context.triggerElements, l = $(), d = n?.hasAttribute(fe("focus-guard")) && [
|
|
287
288
|
J.current,
|
|
288
289
|
Y.current,
|
|
289
290
|
H?.beforeInsideRef.current,
|
|
@@ -292,8 +293,8 @@ function q(n) {
|
|
|
292
293
|
H?.afterOutsideRef.current,
|
|
293
294
|
u(E),
|
|
294
295
|
u(S)
|
|
295
|
-
].includes(n), p = !(C(A, n) || C(j, n) || C(n, j) || C(H?.portalNode, n) || l.some((e) => e === n || C(e, n)) || n != null && c.hasElement(n) || c.hasMatchingElement((e) => C(e, n)) || d || V && (
|
|
296
|
-
if (r === A && Z && Pe(Z), h && r !== A && !
|
|
296
|
+
].includes(n), p = !(C(A, n) || C(j, n) || C(n, j) || C(H?.portalNode, n) || l.some((e) => e === n || C(e, n)) || n != null && c.hasElement(n) || c.hasMatchingElement((e) => C(e, n)) || d || V && (y(V.nodesRef.current, a).find((e) => C(e.context?.elements.floating, n) || C(e.context?.elements.domReference, n)) || te(V.nodesRef.current, a).find((e) => [e.context?.elements.floating, be(e.context?.elements.floating)].includes(n) || e.context?.elements.domReference === n)));
|
|
297
|
+
if (r === A && Z && Pe(Z), h && r !== A && !ie(i) && T(e) === e.body) {
|
|
297
298
|
if (f(Z) && (Z.focus(), h === "popup")) {
|
|
298
299
|
Re.request(() => {
|
|
299
300
|
Z.focus();
|
|
@@ -316,7 +317,7 @@ function q(n) {
|
|
|
316
317
|
}));
|
|
317
318
|
}
|
|
318
319
|
let a = f(A) ? A : null;
|
|
319
|
-
if (!(!j && !a)) return
|
|
320
|
+
if (!(!j && !a)) return ce(a && g(a, "focusout", r), a && g(a, "pointerdown", t), j && g(j, "focusin", n), j && g(j, "focusout", r), j && H && g(j, "focusout", i, !0));
|
|
320
321
|
}, [
|
|
321
322
|
l,
|
|
322
323
|
A,
|
|
@@ -340,7 +341,7 @@ function q(n) {
|
|
|
340
341
|
$
|
|
341
342
|
]), D.useEffect(() => {
|
|
342
343
|
if (l || !j || !k) return;
|
|
343
|
-
let e = Array.from(H?.portalNode?.querySelectorAll(`[${
|
|
344
|
+
let e = Array.from(H?.portalNode?.querySelectorAll(`[${fe("portal")}]`) || []), t = (V ? te(V.nodesRef.current, P()) : []).find((e) => ve(e.context?.elements.domReference || null))?.context?.elements.domReference, n = De([
|
|
344
345
|
j,
|
|
345
346
|
...e,
|
|
346
347
|
J.current,
|
|
@@ -405,7 +406,7 @@ function q(n) {
|
|
|
405
406
|
je(t);
|
|
406
407
|
function r(e) {
|
|
407
408
|
if (e.open || (K.current = Oe(e.nativeEvent, q.current)), e.reason === "trigger-hover" && e.nativeEvent.type === "mouseleave" && (U.current = !0), e.reason === "outside-press") if (e.nested) U.current = !1;
|
|
408
|
-
else if (
|
|
409
|
+
else if (ne(e.nativeEvent) || ae(e.nativeEvent)) U.current = !1;
|
|
409
410
|
else {
|
|
410
411
|
let e = !1;
|
|
411
412
|
v(Z).createElement("div").focus({ get preventScroll() {
|
|
@@ -423,7 +424,7 @@ function q(n) {
|
|
|
423
424
|
}
|
|
424
425
|
return () => {
|
|
425
426
|
M.off("openchange", r);
|
|
426
|
-
let t = T(e), n = $(), a = C(j, t) || n.some((e) => e === t || C(e, t)) || V &&
|
|
427
|
+
let t = T(e), n = $(), a = C(j, t) || n.some((e) => e === t || C(e, t)) || V && y(V.nodesRef.current, P(), !1).some((e) => C(e.context?.elements.floating, t)), o = z.current, s = i();
|
|
427
428
|
queueMicrotask(() => {
|
|
428
429
|
let n = Ne(s), r = typeof o != "boolean";
|
|
429
430
|
o && !U.current && f(n) && (!(!r && n !== t && t !== e.body) || a) && n.focus({ preventScroll: !0 }), U.current = !1;
|
|
@@ -441,7 +442,7 @@ function q(n) {
|
|
|
441
442
|
P,
|
|
442
443
|
$
|
|
443
444
|
]), e(() => {
|
|
444
|
-
if (!
|
|
445
|
+
if (!oe || k || !j) return;
|
|
445
446
|
let e = T(v(j));
|
|
446
447
|
!f(e) || !ye(e) || C(j, e) && e.blur();
|
|
447
448
|
}, [k, j]), e(() => {
|
|
@@ -469,22 +470,22 @@ function q(n) {
|
|
|
469
470
|
}, [l, Z]);
|
|
470
471
|
let Be = !l && (b ? !L : !0) && (ze || b);
|
|
471
472
|
return /*#__PURE__*/ Se(D.Fragment, { children: [
|
|
472
|
-
Be && /*#__PURE__*/ xe(
|
|
473
|
+
Be && /*#__PURE__*/ xe(ue, {
|
|
473
474
|
"data-type": "inside",
|
|
474
475
|
ref: Fe,
|
|
475
476
|
onFocus: (e) => {
|
|
476
477
|
if (b) {
|
|
477
478
|
let e = Q();
|
|
478
479
|
F(e[e.length - 1]);
|
|
479
|
-
} else H?.portalNode && (U.current = !1,
|
|
480
|
+
} else H?.portalNode && (U.current = !1, le(e, H.portalNode) ? me(A)?.focus() : u(E ?? H.beforeOutsideRef)?.focus());
|
|
480
481
|
}
|
|
481
482
|
}),
|
|
482
483
|
a,
|
|
483
|
-
Be && /*#__PURE__*/ xe(
|
|
484
|
+
Be && /*#__PURE__*/ xe(ue, {
|
|
484
485
|
"data-type": "inside",
|
|
485
486
|
ref: Ie,
|
|
486
487
|
onFocus: (e) => {
|
|
487
|
-
b ? F(Q()[0]) : H?.portalNode && (x && (U.current = !0),
|
|
488
|
+
b ? F(Q()[0]) : H?.portalNode && (x && (U.current = !0), le(e, H.portalNode) ? ge(A)?.focus() : u(S ?? H.afterOutsideRef)?.focus());
|
|
488
489
|
}
|
|
489
490
|
})
|
|
490
491
|
] });
|
|
@@ -509,7 +510,7 @@ function J(e, t = {}) {
|
|
|
509
510
|
},
|
|
510
511
|
onMouseDown(n) {
|
|
511
512
|
let r = h.current, a = n.nativeEvent, o = p.select("open");
|
|
512
|
-
if (n.button !== 0 || i === "click" ||
|
|
513
|
+
if (n.button !== 0 || i === "click" || b(r, !0) && l) return;
|
|
513
514
|
let s = t(o, n.currentTarget, (e) => e === "click" || e === "mousedown"), c = w(a);
|
|
514
515
|
if (ye(c)) {
|
|
515
516
|
e(s, a, c, r);
|
|
@@ -527,7 +528,7 @@ function J(e, t = {}) {
|
|
|
527
528
|
h.current = void 0;
|
|
528
529
|
return;
|
|
529
530
|
}
|
|
530
|
-
|
|
531
|
+
b(r, !0) && l || e(t(p.select("open"), n.currentTarget, (e) => e === "click" || e === "mousedown" || e === "keydown" || e === "keyup"), n.nativeEvent, n.currentTarget, r);
|
|
531
532
|
},
|
|
532
533
|
onKeyDown() {
|
|
533
534
|
h.current = void 0;
|
|
@@ -591,7 +592,7 @@ function Fe(e) {
|
|
|
591
592
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/utils/useOpenInteractionType.mjs
|
|
592
593
|
function Ie(e, t) {
|
|
593
594
|
let { onClick: n, onPointerDown: r } = Fe(i((n, r) => {
|
|
594
|
-
(typeof e == "function" ? e() : e) || t(r || (
|
|
595
|
+
(typeof e == "function" ? e() : e) || t(r || (x ? "touch" : ""));
|
|
595
596
|
}));
|
|
596
597
|
return D.useMemo(() => ({
|
|
597
598
|
onClick: n,
|