@arcadeai/design-system 5.0.2 → 5.3.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 +257 -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 +257 -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 +14 -6
- package/dist/components/ui/molecules/index.d.ts.map +1 -1
- package/dist/components/ui/molecules/index.js +39 -35
- 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/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.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/tool-card.js +1 -1
- 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/unoptimized-match-card.js +1 -1
- 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/{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 +263 -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
|
@@ -0,0 +1,643 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as e } from "./useIsoLayoutEffect-4LGv3HzC.js";
|
|
3
|
+
import { f as t, o as n } from "./useRenderElement-BToElZ97.js";
|
|
4
|
+
import { t as r } from "./useStableCallback-CrM0Nb2q.js";
|
|
5
|
+
import { t as i } from "./useId-Bzr7_bed.js";
|
|
6
|
+
import { S as a, _ as o, g as s, s as c, t as l, x as u } from "./createBaseUIEventDetails-C_dwdqj4.js";
|
|
7
|
+
import { t as d } from "./useTransitionStatus-CCIoL5RH.js";
|
|
8
|
+
import { i as f, t as p } from "./useOpenChangeComplete-CVIwfcpl.js";
|
|
9
|
+
import { c as m, d as h, f as ee, g as te, p as g, t as ne } from "./floating-ui.utils.dom-5U5b4xPf.js";
|
|
10
|
+
import { t as _ } from "./addEventListener-BlQH_qk1.js";
|
|
11
|
+
import { t as re } from "./owner-CyZnQOKt.js";
|
|
12
|
+
import { D as v, k as ie } from "./composite-B-tEa-Zg.js";
|
|
13
|
+
import { t as ae } from "./engine-ChH4dTze.js";
|
|
14
|
+
import { E as oe, g as se, o as y, t as b } from "./ReactStore-C3H8e2ha.js";
|
|
15
|
+
import { a as x } from "./constants-ouS7wtUt.js";
|
|
16
|
+
import { n as S, t as ce } from "./useTimeout-B0afjWAz.js";
|
|
17
|
+
import { n as C, r as le } from "./shadowDom-BACsbimN.js";
|
|
18
|
+
import { i as w, o as ue } from "./shim-BX-2V17R.js";
|
|
19
|
+
import * as T from "react";
|
|
20
|
+
import { jsx as E } from "react/jsx-runtime";
|
|
21
|
+
import * as D from "react-dom";
|
|
22
|
+
//#region ../../node_modules/.bun/@base-ui+utils@0.3.1+fce4ea6354698f9c/node_modules/@base-ui/utils/useOnFirstRender.mjs
|
|
23
|
+
function O(e) {
|
|
24
|
+
let t = T.useRef(!0);
|
|
25
|
+
t.current && (t.current = !1, e());
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/utils/nodes.mjs
|
|
29
|
+
function k(e, t, n = !0) {
|
|
30
|
+
return e.filter((e) => e.parentId === t).flatMap((t) => [...!n || t.context?.open ? [t] : [], ...k(e, t.id, n)]);
|
|
31
|
+
}
|
|
32
|
+
function de(e, t) {
|
|
33
|
+
let n = [], r = e.find((e) => e.id === t)?.parentId;
|
|
34
|
+
for (; r;) {
|
|
35
|
+
let t = e.find((e) => e.id === r);
|
|
36
|
+
r = t?.parentId, t && (n = n.concat(t));
|
|
37
|
+
}
|
|
38
|
+
return n;
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/utils/createEventEmitter.mjs
|
|
42
|
+
function A() {
|
|
43
|
+
let e = /* @__PURE__ */ new Map();
|
|
44
|
+
return {
|
|
45
|
+
emit(t, n) {
|
|
46
|
+
e.get(t)?.forEach((e) => e(n));
|
|
47
|
+
},
|
|
48
|
+
on(t, n) {
|
|
49
|
+
e.has(t) || e.set(t, /* @__PURE__ */ new Set()), e.get(t).add(n);
|
|
50
|
+
},
|
|
51
|
+
off(t, n) {
|
|
52
|
+
e.get(t)?.delete(n);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/components/FloatingTreeStore.mjs
|
|
58
|
+
var j = class {
|
|
59
|
+
nodesRef = { current: [] };
|
|
60
|
+
events = A();
|
|
61
|
+
addNode(e) {
|
|
62
|
+
this.nodesRef.current.push(e);
|
|
63
|
+
}
|
|
64
|
+
removeNode(e) {
|
|
65
|
+
let t = this.nodesRef.current.findIndex((t) => t === e);
|
|
66
|
+
t !== -1 && this.nodesRef.current.splice(t, 1);
|
|
67
|
+
}
|
|
68
|
+
}, M = /*#__PURE__*/ T.createContext(null);
|
|
69
|
+
process.env.NODE_ENV !== "production" && (M.displayName = "FloatingNodeContext");
|
|
70
|
+
var N = /*#__PURE__*/ T.createContext(null);
|
|
71
|
+
process.env.NODE_ENV !== "production" && (N.displayName = "FloatingTreeContext");
|
|
72
|
+
var P = () => T.useContext(M)?.id || null, F = (e) => {
|
|
73
|
+
let t = T.useContext(N);
|
|
74
|
+
return e ?? t;
|
|
75
|
+
};
|
|
76
|
+
function I(t) {
|
|
77
|
+
let n = i(), r = F(t), a = P();
|
|
78
|
+
return e(() => {
|
|
79
|
+
if (!n) return;
|
|
80
|
+
let e = {
|
|
81
|
+
id: n,
|
|
82
|
+
parentId: a
|
|
83
|
+
};
|
|
84
|
+
return r?.addNode(e), () => {
|
|
85
|
+
r?.removeNode(e);
|
|
86
|
+
};
|
|
87
|
+
}, [
|
|
88
|
+
r,
|
|
89
|
+
n,
|
|
90
|
+
a
|
|
91
|
+
]), n;
|
|
92
|
+
}
|
|
93
|
+
function L(e) {
|
|
94
|
+
let { children: t, id: n } = e, r = P();
|
|
95
|
+
return /*#__PURE__*/ E(M.Provider, {
|
|
96
|
+
value: T.useMemo(() => ({
|
|
97
|
+
id: n,
|
|
98
|
+
parentId: r
|
|
99
|
+
}), [n, r]),
|
|
100
|
+
children: t
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
function R(e) {
|
|
104
|
+
let { children: n, externalTree: r } = e, i = t(() => r ?? new j()).current;
|
|
105
|
+
return /*#__PURE__*/ E(N.Provider, {
|
|
106
|
+
value: i,
|
|
107
|
+
children: n
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/hooks/useDismiss.mjs
|
|
112
|
+
function z() {
|
|
113
|
+
return !1;
|
|
114
|
+
}
|
|
115
|
+
function fe(e) {
|
|
116
|
+
return {
|
|
117
|
+
escapeKey: typeof e == "boolean" ? e : e?.escapeKey ?? !1,
|
|
118
|
+
outsidePress: typeof e == "boolean" ? e : e?.outsidePress ?? !0
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
function B(e, t = {}) {
|
|
122
|
+
let { enabled: n = !0, escapeKey: i = !0, outsidePress: s = !0, outsidePressEvent: u = "sloppy", referencePress: d = z, bubbles: f, externalTree: p } = t, v = "rootStore" in e ? e.rootStore : e, y = v.useState("open"), b = v.useState("floatingElement"), { dataRef: x } = v.context, E = F(p), D = r(typeof s == "function" ? s : () => !1), O = typeof s == "function" ? D : s, de = O !== !1, A = r(() => u), { escapeKey: j, outsidePress: M } = fe(f), N = T.useRef(!1), P = T.useRef(!1), I = T.useRef(!1), L = T.useRef(!1), R = T.useRef(""), B = T.useRef(null), V = S(), H = S(), U = r(() => {
|
|
123
|
+
H.clear(), x.current.insideReactTree = !1;
|
|
124
|
+
}), W = r((e) => {
|
|
125
|
+
let t = x.current.floatingContext?.nodeId;
|
|
126
|
+
return (E ? k(E.nodesRef.current, t) : []).some((t) => t.context?.open && !t.context.dataRef.current[e]);
|
|
127
|
+
}), G = r((e) => w(e, v.select("floatingElement")) || w(e, v.select("domReferenceElement"))), K = r((e) => {
|
|
128
|
+
d() && v.setOpen(!1, l(a, e.nativeEvent));
|
|
129
|
+
}), q = r((e) => {
|
|
130
|
+
if (!y || !n || !i || e.key !== "Escape" || L.current || !j && W("__escapeKeyBubbles")) return;
|
|
131
|
+
let t = l(c, ie(e) ? e.nativeEvent : e);
|
|
132
|
+
v.setOpen(!1, t), t.isCanceled || e.preventDefault(), !j && !t.isPropagationAllowed && e.stopPropagation();
|
|
133
|
+
}), J = r(() => {
|
|
134
|
+
x.current.insideReactTree = !0, H.start(0, U);
|
|
135
|
+
}), Y = r((e) => {
|
|
136
|
+
if (!y || !n || e.button !== 0) return;
|
|
137
|
+
let t = le(e.nativeEvent);
|
|
138
|
+
C(v.select("floatingElement"), t) && (N.current || (N.current = !0, P.current = !1));
|
|
139
|
+
}), X = r((e) => {
|
|
140
|
+
!y || !n || (e.defaultPrevented || e.nativeEvent.defaultPrevented) && N.current && (P.current = !0);
|
|
141
|
+
});
|
|
142
|
+
T.useEffect(() => {
|
|
143
|
+
if (!y || !n) return;
|
|
144
|
+
x.current.__escapeKeyBubbles = j, x.current.__outsidePressBubbles = M;
|
|
145
|
+
let e = new ce(), t = new ce();
|
|
146
|
+
function r() {
|
|
147
|
+
e.clear(), L.current = !0;
|
|
148
|
+
}
|
|
149
|
+
function a() {
|
|
150
|
+
e.start(ae ? 5 : 0, () => {
|
|
151
|
+
L.current = !1;
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
function s() {
|
|
155
|
+
I.current = !0, t.start(0, () => {
|
|
156
|
+
I.current = !1;
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
function c() {
|
|
160
|
+
N.current = !1, P.current = !1;
|
|
161
|
+
}
|
|
162
|
+
function u() {
|
|
163
|
+
let e = R.current, t = e === "pen" || !e ? "mouse" : e, n = A(), r = typeof n == "function" ? n() : n;
|
|
164
|
+
return typeof r == "string" ? r : r[t];
|
|
165
|
+
}
|
|
166
|
+
function d(e) {
|
|
167
|
+
let t = u();
|
|
168
|
+
return t === "intentional" && e.type !== "click" || t === "sloppy" && e.type === "click";
|
|
169
|
+
}
|
|
170
|
+
function f(e) {
|
|
171
|
+
let t = x.current.floatingContext?.nodeId, n = E && k(E.nodesRef.current, t).some((t) => w(e, t.context?.elements.floating));
|
|
172
|
+
return G(e) || n;
|
|
173
|
+
}
|
|
174
|
+
function p(e) {
|
|
175
|
+
if (d(e)) {
|
|
176
|
+
e.type !== "click" && !G(e) && (t.clear(), I.current = !1), U();
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
if (x.current.insideReactTree) {
|
|
180
|
+
U();
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
let n = le(e), r = `[${se("inert")}]`, i = h(n) ? n.getRootNode() : null, a = Array.from((te(i) ? i : re(v.select("floatingElement"))).querySelectorAll(r)), s = v.context.triggerElements;
|
|
184
|
+
if (n && (s.hasElement(n) || s.hasMatchingElement((e) => C(e, n)))) return;
|
|
185
|
+
let c = h(n) ? n : null;
|
|
186
|
+
for (; c && !g(c);) {
|
|
187
|
+
let e = m(c);
|
|
188
|
+
if (g(e) || !h(e)) break;
|
|
189
|
+
c = e;
|
|
190
|
+
}
|
|
191
|
+
if (!(a.length && h(n) && !ue(n) && !C(n, v.select("floatingElement")) && a.every((e) => !C(c, e)))) {
|
|
192
|
+
if (ee(n) && !("touches" in e)) {
|
|
193
|
+
let t = g(n), r = ne(n), i = /auto|scroll/, a = t || i.test(r.overflowX), o = t || i.test(r.overflowY), s = a && n.clientWidth > 0 && n.scrollWidth > n.clientWidth, c = o && n.clientHeight > 0 && n.scrollHeight > n.clientHeight, l = r.direction === "rtl", u = c && (l ? e.offsetX <= n.offsetWidth - n.clientWidth : e.offsetX > n.clientWidth), d = s && e.offsetY > n.clientHeight;
|
|
194
|
+
if (u || d) return;
|
|
195
|
+
}
|
|
196
|
+
if (!f(e)) {
|
|
197
|
+
if (u() === "intentional" && I.current) {
|
|
198
|
+
t.clear(), I.current = !1;
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
typeof O == "function" && !O(e) || W("__outsidePressBubbles") || (v.setOpen(!1, l(o, e)), U());
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
function ie(e) {
|
|
206
|
+
u() !== "sloppy" || e.pointerType === "touch" || !v.select("open") || !n || G(e) || p(e);
|
|
207
|
+
}
|
|
208
|
+
function S(e) {
|
|
209
|
+
if (u() !== "sloppy" || !v.select("open") || !n || G(e)) return;
|
|
210
|
+
let t = e.touches[0];
|
|
211
|
+
t && (B.current = {
|
|
212
|
+
startTime: Date.now(),
|
|
213
|
+
startX: t.clientX,
|
|
214
|
+
startY: t.clientY,
|
|
215
|
+
dismissOnTouchEnd: !1,
|
|
216
|
+
dismissOnMouseDown: !0
|
|
217
|
+
}, V.start(1e3, () => {
|
|
218
|
+
B.current && (B.current.dismissOnTouchEnd = !1, B.current.dismissOnMouseDown = !1);
|
|
219
|
+
}));
|
|
220
|
+
}
|
|
221
|
+
function T(e, t) {
|
|
222
|
+
let n = le(e);
|
|
223
|
+
if (!n) return;
|
|
224
|
+
let r = _(n, e.type, () => {
|
|
225
|
+
t(e), r();
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
function D(e) {
|
|
229
|
+
R.current = "touch", T(e, S);
|
|
230
|
+
}
|
|
231
|
+
function F(e) {
|
|
232
|
+
V.clear(), e.type === "pointerdown" && (R.current = e.pointerType), !(e.type === "mousedown" && B.current && !B.current.dismissOnMouseDown) && T(e, (e) => {
|
|
233
|
+
e.type === "pointerdown" ? ie(e) : p(e);
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
function z(e) {
|
|
237
|
+
if (!N.current) return;
|
|
238
|
+
let n = P.current;
|
|
239
|
+
if (c(), u() === "intentional") {
|
|
240
|
+
if (e.type === "pointercancel") {
|
|
241
|
+
n && s();
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
if (!f(e)) {
|
|
245
|
+
if (n) {
|
|
246
|
+
s();
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
typeof O == "function" && !O(e) || (t.clear(), I.current = !0, U());
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
function fe(e) {
|
|
254
|
+
if (u() !== "sloppy" || !B.current || G(e)) return;
|
|
255
|
+
let t = e.touches[0];
|
|
256
|
+
if (!t) return;
|
|
257
|
+
let n = Math.abs(t.clientX - B.current.startX), r = Math.abs(t.clientY - B.current.startY), i = Math.sqrt(n * n + r * r);
|
|
258
|
+
i > 5 && (B.current.dismissOnTouchEnd = !0), i > 10 && (p(e), V.clear(), B.current = null);
|
|
259
|
+
}
|
|
260
|
+
function H(e) {
|
|
261
|
+
T(e, fe);
|
|
262
|
+
}
|
|
263
|
+
function K(e) {
|
|
264
|
+
u() !== "sloppy" || !B.current || G(e) || (B.current.dismissOnTouchEnd && p(e), V.clear(), B.current = null);
|
|
265
|
+
}
|
|
266
|
+
function J(e) {
|
|
267
|
+
T(e, K);
|
|
268
|
+
}
|
|
269
|
+
let Y = re(b), X = oe(i && oe(_(Y, "keydown", q), _(Y, "compositionstart", r), _(Y, "compositionend", a)), de && oe(_(Y, "click", F, !0), _(Y, "pointerdown", F, !0), _(Y, "pointerup", z, !0), _(Y, "pointercancel", z, !0), _(Y, "mousedown", F, !0), _(Y, "mouseup", z, !0), _(Y, "touchstart", D, !0), _(Y, "touchmove", H, !0), _(Y, "touchend", J, !0)));
|
|
270
|
+
return () => {
|
|
271
|
+
X(), e.clear(), t.clear(), c(), I.current = !1;
|
|
272
|
+
};
|
|
273
|
+
}, [
|
|
274
|
+
x,
|
|
275
|
+
b,
|
|
276
|
+
i,
|
|
277
|
+
de,
|
|
278
|
+
O,
|
|
279
|
+
y,
|
|
280
|
+
n,
|
|
281
|
+
j,
|
|
282
|
+
M,
|
|
283
|
+
q,
|
|
284
|
+
U,
|
|
285
|
+
A,
|
|
286
|
+
W,
|
|
287
|
+
G,
|
|
288
|
+
E,
|
|
289
|
+
v,
|
|
290
|
+
V
|
|
291
|
+
]), T.useEffect(U, [O, U]);
|
|
292
|
+
let Z = T.useMemo(() => ({
|
|
293
|
+
onKeyDown: q,
|
|
294
|
+
onPointerDown: K,
|
|
295
|
+
onClick: K
|
|
296
|
+
}), [q, K]), pe = T.useMemo(() => ({
|
|
297
|
+
onKeyDown: q,
|
|
298
|
+
onPointerDown: X,
|
|
299
|
+
onMouseDown: X,
|
|
300
|
+
onClickCapture: J,
|
|
301
|
+
onMouseDownCapture(e) {
|
|
302
|
+
J(), Y(e);
|
|
303
|
+
},
|
|
304
|
+
onPointerDownCapture(e) {
|
|
305
|
+
J(), Y(e);
|
|
306
|
+
},
|
|
307
|
+
onMouseUpCapture: J,
|
|
308
|
+
onTouchEndCapture: J,
|
|
309
|
+
onTouchMoveCapture: J
|
|
310
|
+
}), [
|
|
311
|
+
q,
|
|
312
|
+
J,
|
|
313
|
+
Y,
|
|
314
|
+
X
|
|
315
|
+
]);
|
|
316
|
+
return T.useMemo(() => n ? {
|
|
317
|
+
reference: Z,
|
|
318
|
+
floating: pe,
|
|
319
|
+
trigger: Z
|
|
320
|
+
} : {}, [
|
|
321
|
+
n,
|
|
322
|
+
Z,
|
|
323
|
+
pe
|
|
324
|
+
]);
|
|
325
|
+
}
|
|
326
|
+
//#endregion
|
|
327
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/components/FloatingRootStore.mjs
|
|
328
|
+
var V = {
|
|
329
|
+
open: y((e) => e.open),
|
|
330
|
+
transitionStatus: y((e) => e.transitionStatus),
|
|
331
|
+
domReferenceElement: y((e) => e.domReferenceElement),
|
|
332
|
+
referenceElement: y((e) => e.positionReference ?? e.referenceElement),
|
|
333
|
+
floatingElement: y((e) => e.floatingElement),
|
|
334
|
+
floatingId: y((e) => e.floatingId)
|
|
335
|
+
}, H = class extends b {
|
|
336
|
+
constructor(e) {
|
|
337
|
+
let { syncOnly: t, nested: n, onOpenChange: r, triggerElements: i, ...a } = e;
|
|
338
|
+
super({
|
|
339
|
+
...a,
|
|
340
|
+
positionReference: a.referenceElement,
|
|
341
|
+
domReferenceElement: a.referenceElement
|
|
342
|
+
}, {
|
|
343
|
+
onOpenChange: r,
|
|
344
|
+
dataRef: { current: {} },
|
|
345
|
+
events: A(),
|
|
346
|
+
nested: n,
|
|
347
|
+
triggerElements: i
|
|
348
|
+
}, V), this.syncOnly = t;
|
|
349
|
+
}
|
|
350
|
+
syncOpenEvent = (e, t) => {
|
|
351
|
+
(!e || !this.state.open || t != null && v(t)) && (this.context.dataRef.current.openEvent = e ? t : void 0);
|
|
352
|
+
};
|
|
353
|
+
dispatchOpenChange = (e, t) => {
|
|
354
|
+
this.syncOpenEvent(e, t.event);
|
|
355
|
+
let n = {
|
|
356
|
+
open: e,
|
|
357
|
+
reason: t.reason,
|
|
358
|
+
nativeEvent: t.event,
|
|
359
|
+
nested: this.context.nested,
|
|
360
|
+
triggerElement: t.trigger
|
|
361
|
+
};
|
|
362
|
+
this.context.events.emit("openchange", n);
|
|
363
|
+
};
|
|
364
|
+
setOpen = (e, t) => {
|
|
365
|
+
if (this.syncOnly) {
|
|
366
|
+
this.context.onOpenChange?.(e, t);
|
|
367
|
+
return;
|
|
368
|
+
}
|
|
369
|
+
this.dispatchOpenChange(e, t), this.context.onOpenChange?.(e, t);
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
//#endregion
|
|
373
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/hooks/useSyncedFloatingRootContext.mjs
|
|
374
|
+
function U(t) {
|
|
375
|
+
let { popupStore: n, treatPopupAsFloatingElement: r = !1, floatingRootContext: i, floatingId: a, nested: o, onOpenChange: s } = t, c = n.useState("open"), l = n.useState("activeTriggerElement"), u = n.useState(r ? "popupElement" : "positionerElement"), d = n.context.triggerElements, f = s, p = T.useRef(null);
|
|
376
|
+
i === void 0 && p.current === null && (p.current = new H({
|
|
377
|
+
open: c,
|
|
378
|
+
transitionStatus: void 0,
|
|
379
|
+
referenceElement: l,
|
|
380
|
+
floatingElement: u,
|
|
381
|
+
triggerElements: d,
|
|
382
|
+
onOpenChange: f,
|
|
383
|
+
floatingId: a,
|
|
384
|
+
syncOnly: !0,
|
|
385
|
+
nested: o
|
|
386
|
+
}));
|
|
387
|
+
let m = i ?? p.current;
|
|
388
|
+
return n.useSyncedValue("floatingId", a), e(() => {
|
|
389
|
+
let e = {
|
|
390
|
+
open: c,
|
|
391
|
+
floatingId: a,
|
|
392
|
+
referenceElement: l,
|
|
393
|
+
floatingElement: u
|
|
394
|
+
};
|
|
395
|
+
h(l) && (e.domReferenceElement = l), m.state.positionReference === m.state.referenceElement && (e.positionReference = l), m.update(e);
|
|
396
|
+
}, [
|
|
397
|
+
c,
|
|
398
|
+
a,
|
|
399
|
+
l,
|
|
400
|
+
u,
|
|
401
|
+
m
|
|
402
|
+
]), m.context.onOpenChange = f, m.context.nested = o, m;
|
|
403
|
+
}
|
|
404
|
+
//#endregion
|
|
405
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/utils/popups/popupStoreUtils.mjs
|
|
406
|
+
var W = {
|
|
407
|
+
tabIndex: -1,
|
|
408
|
+
[x]: ""
|
|
409
|
+
};
|
|
410
|
+
function G(e) {
|
|
411
|
+
return (t) => t === "touch" ? e.current : !0;
|
|
412
|
+
}
|
|
413
|
+
function K(e, t, n = !1) {
|
|
414
|
+
let r = i(), a = P() != null, o = T.useRef(null);
|
|
415
|
+
e === void 0 && o.current === null && (o.current = t(r, a));
|
|
416
|
+
let s = e ?? o.current;
|
|
417
|
+
return U({
|
|
418
|
+
popupStore: s,
|
|
419
|
+
treatPopupAsFloatingElement: n,
|
|
420
|
+
floatingRootContext: s.state.floatingRootContext,
|
|
421
|
+
floatingId: r,
|
|
422
|
+
nested: a,
|
|
423
|
+
onOpenChange: s.setOpen
|
|
424
|
+
}), {
|
|
425
|
+
store: s,
|
|
426
|
+
internalStore: o.current
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
function q(e, t) {
|
|
430
|
+
let n = T.useRef(null), r = T.useRef(null);
|
|
431
|
+
return T.useCallback((i) => {
|
|
432
|
+
if (e === void 0) return;
|
|
433
|
+
let a = !1;
|
|
434
|
+
if (n.current !== null) {
|
|
435
|
+
let e = n.current, i = r.current, o = t.context.triggerElements.getById(e);
|
|
436
|
+
i && o === i && (t.context.triggerElements.delete(e), a = !0), n.current = null, r.current = null;
|
|
437
|
+
}
|
|
438
|
+
if (i !== null && (n.current = e, r.current = i, t.context.triggerElements.add(e, i), a = !0), a) {
|
|
439
|
+
let e = t.context.triggerElements.size;
|
|
440
|
+
t.select("open") && t.state.triggerCount !== e && t.set("triggerCount", e);
|
|
441
|
+
}
|
|
442
|
+
}, [t, e]);
|
|
443
|
+
}
|
|
444
|
+
function J(e, t, n, r = !1) {
|
|
445
|
+
t ? e.preventUnmountingOnClose = !1 : r && (e.preventUnmountingOnClose = !0);
|
|
446
|
+
let i = n?.id ?? null;
|
|
447
|
+
(i || t) && (e.activeTriggerId = i, e.activeTriggerElement = n ?? null);
|
|
448
|
+
}
|
|
449
|
+
function Y(e) {
|
|
450
|
+
let t = !1;
|
|
451
|
+
return e.preventUnmountOnClose = () => {
|
|
452
|
+
t = !0;
|
|
453
|
+
}, () => t;
|
|
454
|
+
}
|
|
455
|
+
function X(e, t, n, r = {}) {
|
|
456
|
+
let i = n.reason, a = i === u, o = t && i === "trigger-focus", s = !t && (i === "trigger-press" || i === "escape-key"), c = Y(n);
|
|
457
|
+
if (e.context.onOpenChange?.(t, n), n.isCanceled) return;
|
|
458
|
+
r.onBeforeDispatch?.(), e.state.floatingRootContext.dispatchOpenChange(t, n);
|
|
459
|
+
let l = () => {
|
|
460
|
+
let i = {
|
|
461
|
+
...r.extraState,
|
|
462
|
+
open: t
|
|
463
|
+
};
|
|
464
|
+
o ? i.instantType = "focus" : s ? i.instantType = "dismiss" : a && (i.instantType = void 0), J(i, t, n.trigger, c()), e.update(i);
|
|
465
|
+
};
|
|
466
|
+
a ? D.flushSync(l) : l();
|
|
467
|
+
}
|
|
468
|
+
function Z(e, t, n, r) {
|
|
469
|
+
O(() => {
|
|
470
|
+
t === void 0 && e.state.open === !1 && n && (e.state = {
|
|
471
|
+
...e.state,
|
|
472
|
+
open: !0,
|
|
473
|
+
activeTriggerId: r,
|
|
474
|
+
preventUnmountingOnClose: !1
|
|
475
|
+
});
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
function pe(t, n, i, a) {
|
|
479
|
+
let o = i.useState("isMountedByTrigger", t), s = q(t, i), c = r((e) => {
|
|
480
|
+
if (s(e), !e) return;
|
|
481
|
+
let n = i.select("open"), r = i.select("activeTriggerId");
|
|
482
|
+
if (r === t) {
|
|
483
|
+
i.update({
|
|
484
|
+
activeTriggerElement: e,
|
|
485
|
+
...n ? a : null
|
|
486
|
+
});
|
|
487
|
+
return;
|
|
488
|
+
}
|
|
489
|
+
r == null && n && i.update({
|
|
490
|
+
activeTriggerId: t,
|
|
491
|
+
activeTriggerElement: e,
|
|
492
|
+
...a
|
|
493
|
+
});
|
|
494
|
+
});
|
|
495
|
+
return e(() => {
|
|
496
|
+
o && i.update({
|
|
497
|
+
activeTriggerElement: n.current,
|
|
498
|
+
...a
|
|
499
|
+
});
|
|
500
|
+
}, [
|
|
501
|
+
o,
|
|
502
|
+
i,
|
|
503
|
+
n,
|
|
504
|
+
...Object.values(a)
|
|
505
|
+
]), {
|
|
506
|
+
registerTrigger: c,
|
|
507
|
+
isMountedByThisTrigger: o
|
|
508
|
+
};
|
|
509
|
+
}
|
|
510
|
+
function me(t, n = {}) {
|
|
511
|
+
let { closeOnActiveTriggerUnmount: r = !1 } = n, i = t.useState("open");
|
|
512
|
+
e(() => {
|
|
513
|
+
if (!i) {
|
|
514
|
+
t.state.triggerCount !== 0 && t.set("triggerCount", 0);
|
|
515
|
+
return;
|
|
516
|
+
}
|
|
517
|
+
let e = t.context.triggerElements.size, n = {};
|
|
518
|
+
t.state.triggerCount !== e && (n.triggerCount = e);
|
|
519
|
+
let a = t.select("activeTriggerId"), o = null;
|
|
520
|
+
if (a) {
|
|
521
|
+
let e = t.context.triggerElements.getById(a);
|
|
522
|
+
e ? e !== t.state.activeTriggerElement && (n.activeTriggerElement = e) : o = a;
|
|
523
|
+
}
|
|
524
|
+
if (!o && !a && e === 1) {
|
|
525
|
+
let e = t.context.triggerElements.entries().next();
|
|
526
|
+
if (!e.done) {
|
|
527
|
+
let [t, r] = e.value;
|
|
528
|
+
n.activeTriggerId = t, n.activeTriggerElement = r;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
(n.triggerCount !== void 0 || n.activeTriggerId !== void 0 || n.activeTriggerElement !== void 0) && t.update(n), o && r && queueMicrotask(() => {
|
|
532
|
+
if (t.select("open") && t.select("activeTriggerId") === o && !t.context.triggerElements.getById(o)) {
|
|
533
|
+
let e = l(s);
|
|
534
|
+
t.setOpen(!1, e), e.isCanceled || t.update({
|
|
535
|
+
activeTriggerId: null,
|
|
536
|
+
activeTriggerElement: null
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
});
|
|
540
|
+
}, [
|
|
541
|
+
i,
|
|
542
|
+
t,
|
|
543
|
+
t.useState("triggerCount"),
|
|
544
|
+
r
|
|
545
|
+
]);
|
|
546
|
+
}
|
|
547
|
+
function he(e, t, n) {
|
|
548
|
+
let { mounted: i, setMounted: a, transitionStatus: o } = d(e), s = t.useState("preventUnmountingOnClose"), c = e ? !1 : s;
|
|
549
|
+
t.useSyncedValues({
|
|
550
|
+
mounted: i,
|
|
551
|
+
transitionStatus: o,
|
|
552
|
+
preventUnmountingOnClose: c
|
|
553
|
+
});
|
|
554
|
+
let l = r(() => {
|
|
555
|
+
a(!1), t.update({
|
|
556
|
+
activeTriggerId: null,
|
|
557
|
+
activeTriggerElement: null,
|
|
558
|
+
mounted: !1,
|
|
559
|
+
preventUnmountingOnClose: !1
|
|
560
|
+
}), n?.(), t.context.onOpenChangeComplete?.(!1);
|
|
561
|
+
});
|
|
562
|
+
return p({
|
|
563
|
+
enabled: i && !e && !c,
|
|
564
|
+
open: e,
|
|
565
|
+
ref: t.context.popupRef,
|
|
566
|
+
onComplete() {
|
|
567
|
+
e || l();
|
|
568
|
+
}
|
|
569
|
+
}), {
|
|
570
|
+
forceUnmount: l,
|
|
571
|
+
transitionStatus: o
|
|
572
|
+
};
|
|
573
|
+
}
|
|
574
|
+
function ge(t, r) {
|
|
575
|
+
t.useSyncedValues(r), e(() => () => {
|
|
576
|
+
t.update({
|
|
577
|
+
activeTriggerProps: n,
|
|
578
|
+
inactiveTriggerProps: n,
|
|
579
|
+
popupProps: n
|
|
580
|
+
});
|
|
581
|
+
}, [t]);
|
|
582
|
+
}
|
|
583
|
+
function _e(t, n) {
|
|
584
|
+
e(() => {
|
|
585
|
+
!n && t.state.openMethod !== null && t.set("openMethod", null);
|
|
586
|
+
}, [n, t]), e(() => () => {
|
|
587
|
+
t.state.openMethod !== null && t.set("openMethod", null);
|
|
588
|
+
}, [t]);
|
|
589
|
+
}
|
|
590
|
+
//#endregion
|
|
591
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/utils/popups/popupTriggerMap.mjs
|
|
592
|
+
var ve = class {
|
|
593
|
+
constructor() {
|
|
594
|
+
this.elementsSet = /* @__PURE__ */ new Set(), this.idMap = /* @__PURE__ */ new Map();
|
|
595
|
+
}
|
|
596
|
+
add(e, t) {
|
|
597
|
+
let n = this.idMap.get(e);
|
|
598
|
+
if (n !== t && (n !== void 0 && this.elementsSet.delete(n), this.elementsSet.add(t), this.idMap.set(e, t), process.env.NODE_ENV !== "production" && this.elementsSet.size !== this.idMap.size)) throw Error("Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.");
|
|
599
|
+
}
|
|
600
|
+
delete(e) {
|
|
601
|
+
let t = this.idMap.get(e);
|
|
602
|
+
t && (this.elementsSet.delete(t), this.idMap.delete(e));
|
|
603
|
+
}
|
|
604
|
+
hasElement(e) {
|
|
605
|
+
return this.elementsSet.has(e);
|
|
606
|
+
}
|
|
607
|
+
hasMatchingElement(e) {
|
|
608
|
+
for (let t of this.elementsSet) if (e(t)) return !0;
|
|
609
|
+
return !1;
|
|
610
|
+
}
|
|
611
|
+
getById(e) {
|
|
612
|
+
return this.idMap.get(e);
|
|
613
|
+
}
|
|
614
|
+
entries() {
|
|
615
|
+
return this.idMap.entries();
|
|
616
|
+
}
|
|
617
|
+
elements() {
|
|
618
|
+
return this.elementsSet.values();
|
|
619
|
+
}
|
|
620
|
+
get size() {
|
|
621
|
+
return this.idMap.size;
|
|
622
|
+
}
|
|
623
|
+
}, Q = function(e) {
|
|
624
|
+
return e.open = "data-open", e.closed = "data-closed", e[e.startingStyle = f.startingStyle] = "startingStyle", e[e.endingStyle = f.endingStyle] = "endingStyle", e.anchorHidden = "data-anchor-hidden", e.side = "data-side", e.align = "data-align", e;
|
|
625
|
+
}({}), $ = /*#__PURE__*/ function(e) {
|
|
626
|
+
return e.popupOpen = "data-popup-open", e.pressed = "data-pressed", e;
|
|
627
|
+
}({}), ye = { [$.popupOpen]: "" }, be = {
|
|
628
|
+
[$.popupOpen]: "",
|
|
629
|
+
[$.pressed]: ""
|
|
630
|
+
}, xe = { [Q.open]: "" }, Se = { [Q.closed]: "" }, Ce = { [Q.anchorHidden]: "" }, we = { open(e) {
|
|
631
|
+
return e ? ye : null;
|
|
632
|
+
} }, Te = { open(e) {
|
|
633
|
+
return e ? be : null;
|
|
634
|
+
} }, Ee = {
|
|
635
|
+
open(e) {
|
|
636
|
+
return e ? xe : Se;
|
|
637
|
+
},
|
|
638
|
+
anchorHidden(e) {
|
|
639
|
+
return e ? Ce : null;
|
|
640
|
+
}
|
|
641
|
+
};
|
|
642
|
+
//#endregion
|
|
643
|
+
export { k as A, L as C, F as D, P as E, j as O, B as S, I as T, K as _, we as a, U as b, X as c, J as d, me as f, _e as g, ge as h, Te as i, O as j, de as k, Y as l, he as m, $ as n, ve as o, Z as p, Ee as r, W as s, Q as t, G as u, pe as v, R as w, H as x, q as y };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as e } from "./useIsoLayoutEffect-4LGv3HzC.js";
|
|
3
3
|
import { t, u as n } from "./useRenderElement-BToElZ97.js";
|
|
4
|
-
import { t as r } from "./useBaseUiId-
|
|
4
|
+
import { t as r } from "./useBaseUiId-CXSJgVcI.js";
|
|
5
5
|
import { t as i } from "./useValueAsRef-CfO5zn2c.js";
|
|
6
6
|
import { cn as a } from "./lib/utils.js";
|
|
7
7
|
import { t as o } from "./visuallyHidden-Cq5CW65k.js";
|
|
@@ -3,9 +3,10 @@ import { t as e } from "./useControlled-Bu1mahWG.js";
|
|
|
3
3
|
import { t } from "./useIsoLayoutEffect-4LGv3HzC.js";
|
|
4
4
|
import { l as ee, o as n, s as r, t as i, u as a } from "./useRenderElement-BToElZ97.js";
|
|
5
5
|
import { t as o } from "./useStableCallback-CrM0Nb2q.js";
|
|
6
|
-
import { t as s } from "./useBaseUiId-
|
|
6
|
+
import { t as s } from "./useBaseUiId-CXSJgVcI.js";
|
|
7
7
|
import { g as c, t as l } from "./createBaseUIEventDetails-C_dwdqj4.js";
|
|
8
|
-
import {
|
|
8
|
+
import { t as u } from "./useTransitionStatus-CCIoL5RH.js";
|
|
9
|
+
import { a as d, t as f } from "./useOpenChangeComplete-CVIwfcpl.js";
|
|
9
10
|
import { l as p } from "./floating-ui.utils.dom-5U5b4xPf.js";
|
|
10
11
|
import { t as m } from "./useButton-DjF6Owsn.js";
|
|
11
12
|
import { cn as h } from "./lib/utils.js";
|
|
@@ -15,9 +16,9 @@ import { p as y } from "./composite-COXvAbcT.js";
|
|
|
15
16
|
import { t as b } from "./useValueChanged-26zHg3aX.js";
|
|
16
17
|
import { a as x, i as te, n as S, r as ne, t as re } from "./LabelableContext-C6DIbcnY.js";
|
|
17
18
|
import { t as C } from "./FieldItemContext-C6kLzkCC.js";
|
|
18
|
-
import { t as ie } from "./useAriaLabelledBy-
|
|
19
|
+
import { t as ie } from "./useAriaLabelledBy-DJZioWd6.js";
|
|
19
20
|
import { t as ae } from "./CompositeItem-RsjiqT-t.js";
|
|
20
|
-
import { t as oe } from "./useLabelableId-
|
|
21
|
+
import { t as oe } from "./useLabelableId-9jrDGk5d.js";
|
|
21
22
|
import { n as w, t as se } from "./CompositeRoot-B_7HJZA1.js";
|
|
22
23
|
import { t as T } from "./serializeValue-CRwtWeFH.js";
|
|
23
24
|
import * as E from "react";
|
|
@@ -38,7 +39,7 @@ var A = /*#__PURE__*/ function(e) {
|
|
|
38
39
|
checked(e) {
|
|
39
40
|
return e ? { [A.checked]: "" } : { [A.unchecked]: "" };
|
|
40
41
|
},
|
|
41
|
-
...
|
|
42
|
+
...d,
|
|
42
43
|
...x
|
|
43
44
|
}, M = /*#__PURE__*/ E.createContext(void 0);
|
|
44
45
|
process.env.NODE_ENV !== "production" && (M.displayName = "RadioGroupContext");
|
|
@@ -183,9 +184,9 @@ process.env.NODE_ENV !== "production" && (F.displayName = "RadioRoot");
|
|
|
183
184
|
//#endregion
|
|
184
185
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/radio/indicator/RadioIndicator.mjs
|
|
185
186
|
var I = /*#__PURE__*/ E.forwardRef(function(e, t) {
|
|
186
|
-
let { render: ee, className: n, style: r, keepMounted: a = !1, ...o } = e, s = P(), c = s.checked, { mounted: l, transitionStatus:
|
|
187
|
+
let { render: ee, className: n, style: r, keepMounted: a = !1, ...o } = e, s = P(), c = s.checked, { mounted: l, transitionStatus: d, setMounted: p } = u(c), m = {
|
|
187
188
|
...s,
|
|
188
|
-
transitionStatus:
|
|
189
|
+
transitionStatus: d
|
|
189
190
|
}, h = E.useRef(null), g = a || l, _ = i("span", e, {
|
|
190
191
|
ref: [t, h],
|
|
191
192
|
state: m,
|