@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
|
@@ -7,11 +7,11 @@ import { n as o } from "./useAnimationFrame-jkCXMP_8.js";
|
|
|
7
7
|
import { f as s, l as ee } from "./floating-ui.utils.dom-5U5b4xPf.js";
|
|
8
8
|
import { t as c } from "./useValueAsRef-CfO5zn2c.js";
|
|
9
9
|
import { t as l } from "./owner-CyZnQOKt.js";
|
|
10
|
-
import {
|
|
10
|
+
import { D as u, E as d } from "./popupStateMapping-XiLS0Jku.js";
|
|
11
11
|
import { A as f, M as p, a as m, i as h, j as g, n as _, o as v, r as y, t as b } from "./composite-B-tEa-Zg.js";
|
|
12
12
|
import { i as x, n as S, r as C, s as w, t as T } from "./constants-ouS7wtUt.js";
|
|
13
13
|
import { n as E } from "./useTimeout-B0afjWAz.js";
|
|
14
|
-
import { o as te } from "./useOpenInteractionType-
|
|
14
|
+
import { o as te } from "./useOpenInteractionType-INvHftZi.js";
|
|
15
15
|
import { n as D, r as ne, t as re } from "./shadowDom-BACsbimN.js";
|
|
16
16
|
import { c as ie, r as ae } from "./shim-BX-2V17R.js";
|
|
17
17
|
import * as O from "react";
|
|
@@ -39,7 +39,7 @@ function ce(e, t, n, r) {
|
|
|
39
39
|
function M(t, ee) {
|
|
40
40
|
let { listRef: h, activeIndex: v, onNavigate: x = () => {}, enabled: S = !0, selectedIndex: C = null, allowEscape: w = !1, loopFocus: T = !1, nested: E = !1, rtl: k = !1, virtual: A = !1, focusItemOnOpen: M = "auto", focusItemOnHover: le = !0, openOnArrowKeyDown: N = !0, disabledIndices: P = void 0, orientation: F = "vertical", parentOrientation: ue, id: de, resetOnPointerLeave: fe = !0, externalTree: pe, grid: me } = ee, he = me != null;
|
|
41
41
|
process.env.NODE_ENV !== "production" && (w && (T || console.warn("`useListNavigation` looping must be enabled to allow escaping."), A || console.warn("`useListNavigation` must be virtual to allow escaping.")), F === "vertical" && he && console.warn("In grid list navigation mode, the `orientation` should", "be either \"horizontal\" or \"both\"."));
|
|
42
|
-
let I = "rootStore" in t ? t.rootStore : t, L = I.useState("open"), R = I.useState("floatingElement"), z = I.useState("domReferenceElement"), ge = I.context.dataRef, _e = ae(R), ve = ie(z), B = c(_e), ye =
|
|
42
|
+
let I = "rootStore" in t ? t.rootStore : t, L = I.useState("open"), R = I.useState("floatingElement"), z = I.useState("domReferenceElement"), ge = I.context.dataRef, _e = ae(R), ve = ie(z), B = c(_e), ye = d(), V = u(pe), H = O.useRef(M), U = O.useRef(C ?? -1), W = O.useRef(null), G = O.useRef(!0), K = n((e) => {
|
|
43
43
|
x(U.current === -1 ? null : U.current, e);
|
|
44
44
|
}), q = O.useRef(!!R), be = O.useRef(L), J = O.useRef(!1), Y = O.useRef(!1), xe = O.useRef(null), Se = c(P), X = c(L), Z = c(C), Ce = c(fe), we = o(), Te = o(), Ee = n(() => {
|
|
45
45
|
function e(e) {
|
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
import { t as e } from "./useIsoLayoutEffect-4LGv3HzC.js";
|
|
3
3
|
import { o as t, r as n, t as r, u as i } from "./useRenderElement-BToElZ97.js";
|
|
4
4
|
import { t as a } from "./useStableCallback-CrM0Nb2q.js";
|
|
5
|
-
import { t as o } from "./useBaseUiId-
|
|
5
|
+
import { t as o } from "./useBaseUiId-CXSJgVcI.js";
|
|
6
6
|
import { l as s, t as c } from "./createBaseUIEventDetails-C_dwdqj4.js";
|
|
7
|
-
import { a as l, t as u } from "./useOpenChangeComplete-
|
|
7
|
+
import { a as l, t as u } from "./useOpenChangeComplete-CVIwfcpl.js";
|
|
8
8
|
import { d } from "./floating-ui.utils.dom-5U5b4xPf.js";
|
|
9
9
|
import { cn as f } from "./lib/utils.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { n as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
10
|
+
import { C as p, S as m, T as h, _ as g, a as _, c as v, f as y, h as b, m as x, o as S, p as C, r as w, s as T, v as E, w as D } from "./popupStateMapping-XiLS0Jku.js";
|
|
11
|
+
import { a as O, h as k, i as A, o as j, t as M } from "./ReactStore-C3H8e2ha.js";
|
|
12
|
+
import { n as N, r as P, t as ee } from "./safePolygon-DmV1hDsw.js";
|
|
13
|
+
import { i as te, n as ne, r as re, t as ie } from "./usePositioner-CaLGGc-z.js";
|
|
14
|
+
import { n as ae, r as F, t as oe } from "./store-D7k1qIkZ.js";
|
|
15
|
+
import { t as se } from "./useFocus-B_SrhX9q.js";
|
|
16
|
+
import { t as ce } from "./FloatingPortalLite-D5nFwFgJ.js";
|
|
16
17
|
import * as I from "react";
|
|
17
18
|
import { jsx as L, jsxs as le } from "react/jsx-runtime";
|
|
18
19
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/utils/popups/inlineRect.mjs
|
|
@@ -59,7 +60,7 @@ function B(e, t, n) {
|
|
|
59
60
|
function V(e) {
|
|
60
61
|
return R(e.left, e.top, e.right, e.bottom);
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
+
function de(e, t, n) {
|
|
63
64
|
let { lines: r } = z(e.getClientRects());
|
|
64
65
|
if (r.length < 2) return;
|
|
65
66
|
let i = B(r, t, n);
|
|
@@ -70,7 +71,7 @@ function H(e, t, n) {
|
|
|
70
71
|
element: e
|
|
71
72
|
};
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
+
function fe(e, t, n) {
|
|
74
75
|
let { lines: r, fallback: i } = z(e.getClientRects());
|
|
75
76
|
if (r.length < 2) return null;
|
|
76
77
|
let a = n?.x, o = n?.y, s = t[0];
|
|
@@ -92,10 +93,10 @@ function de(e, t, n) {
|
|
|
92
93
|
}
|
|
93
94
|
return R(l, f.top, u, p.bottom);
|
|
94
95
|
}
|
|
95
|
-
function
|
|
96
|
+
function pe(e) {
|
|
96
97
|
return "contextElement" in e && e.contextElement ? e.contextElement : d(e) ? e : void 0;
|
|
97
98
|
}
|
|
98
|
-
function
|
|
99
|
+
function H(e, t) {
|
|
99
100
|
function n(t) {
|
|
100
101
|
U(e, t.currentTarget, t.clientX, t.clientY);
|
|
101
102
|
}
|
|
@@ -111,7 +112,7 @@ function pe(e, t) {
|
|
|
111
112
|
};
|
|
112
113
|
}
|
|
113
114
|
function U(e, t, n, r) {
|
|
114
|
-
let i =
|
|
115
|
+
let i = de(t, n, r);
|
|
115
116
|
return e.current = i, i;
|
|
116
117
|
}
|
|
117
118
|
function me(e) {
|
|
@@ -120,7 +121,7 @@ function me(e) {
|
|
|
120
121
|
async fn(t) {
|
|
121
122
|
let n = t.elements.reference;
|
|
122
123
|
if (typeof n?.getClientRects != "function") return {};
|
|
123
|
-
let r =
|
|
124
|
+
let r = pe(n), i = e.current, a = i?.element === n || i?.element === r ? i : void 0, o = fe(n, t.placement, a);
|
|
124
125
|
if (!o || typeof t.platform.getElementRects != "function") return {};
|
|
125
126
|
let s = await t.platform.getElementRects({
|
|
126
127
|
reference: {
|
|
@@ -148,12 +149,12 @@ function G(e) {
|
|
|
148
149
|
//#endregion
|
|
149
150
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/preview-card/store/PreviewCardStore.mjs
|
|
150
151
|
var he = {
|
|
151
|
-
...
|
|
152
|
-
instantType:
|
|
153
|
-
hasViewport:
|
|
154
|
-
}, ge = class e extends
|
|
152
|
+
...F,
|
|
153
|
+
instantType: j((e) => e.instantType),
|
|
154
|
+
hasViewport: j((e) => e.hasViewport)
|
|
155
|
+
}, ge = class e extends M {
|
|
155
156
|
constructor(e, t, n = !1) {
|
|
156
|
-
let r = new
|
|
157
|
+
let r = new S(), i = {
|
|
157
158
|
..._e(),
|
|
158
159
|
...e
|
|
159
160
|
};
|
|
@@ -168,18 +169,18 @@ var he = {
|
|
|
168
169
|
}
|
|
169
170
|
setOpen = (e, t) => {
|
|
170
171
|
let { inlineRectCoordsRef: n } = this.context;
|
|
171
|
-
|
|
172
|
+
v(this, e, t, { onBeforeDispatch() {
|
|
172
173
|
let r = t.event;
|
|
173
174
|
e && t.reason === "trigger-hover" && t.trigger && "clientX" in r && "clientY" in r && n.current?.element !== t.trigger && U(n, t.trigger, r.clientX, r.clientY);
|
|
174
175
|
} });
|
|
175
176
|
};
|
|
176
177
|
static useStore(t, n) {
|
|
177
|
-
return
|
|
178
|
+
return g(t, (t, r) => new e(n, t, r)).store;
|
|
178
179
|
}
|
|
179
180
|
};
|
|
180
181
|
function _e() {
|
|
181
182
|
return {
|
|
182
|
-
...
|
|
183
|
+
...oe(),
|
|
183
184
|
instantType: void 0,
|
|
184
185
|
hasViewport: !1
|
|
185
186
|
};
|
|
@@ -193,10 +194,10 @@ function K(t) {
|
|
|
193
194
|
activeTriggerId: d,
|
|
194
195
|
triggerIdProp: u
|
|
195
196
|
});
|
|
196
|
-
|
|
197
|
+
C(p, n, r, d), p.useControlledProp("openProp", n), p.useControlledProp("triggerIdProp", u), p.useContextCallback("onOpenChange", i), p.useContextCallback("onOpenChangeComplete", a);
|
|
197
198
|
let m = p.useState("open"), h = p.useState("activeTriggerId"), g = p.useState("mounted"), _ = p.useState("payload");
|
|
198
|
-
|
|
199
|
-
let { forceUnmount: v } =
|
|
199
|
+
y(p, { closeOnActiveTriggerUnmount: !0 });
|
|
200
|
+
let { forceUnmount: v } = x(m, p, () => {
|
|
200
201
|
p.context.inlineRectCoordsRef.current = void 0;
|
|
201
202
|
});
|
|
202
203
|
e(() => {
|
|
@@ -206,29 +207,29 @@ function K(t) {
|
|
|
206
207
|
h,
|
|
207
208
|
m
|
|
208
209
|
]);
|
|
209
|
-
let
|
|
210
|
+
let b = I.useCallback(() => {
|
|
210
211
|
p.setOpen(!1, c(s));
|
|
211
212
|
}, [p]);
|
|
212
213
|
I.useImperativeHandle(o, () => ({
|
|
213
214
|
unmount: v,
|
|
214
|
-
close:
|
|
215
|
-
}), [v,
|
|
216
|
-
let
|
|
215
|
+
close: b
|
|
216
|
+
}), [v, b]);
|
|
217
|
+
let S = m || g;
|
|
217
218
|
return /*#__PURE__*/ le(W.Provider, {
|
|
218
219
|
value: p,
|
|
219
|
-
children: [
|
|
220
|
+
children: [S && /*#__PURE__*/ L(ve, { store: p }), typeof f == "function" ? f({ payload: _ }) : f]
|
|
220
221
|
});
|
|
221
222
|
}
|
|
222
223
|
function ve({ store: e }) {
|
|
223
|
-
let r =
|
|
224
|
-
return
|
|
224
|
+
let r = m(e.useState("floatingRootContext"));
|
|
225
|
+
return b(e, {
|
|
225
226
|
activeTriggerProps: r.reference ?? t,
|
|
226
227
|
inactiveTriggerProps: r.trigger ?? t,
|
|
227
|
-
popupProps: I.useMemo(() => n(
|
|
228
|
+
popupProps: I.useMemo(() => n(T, r.floating), [r.floating])
|
|
228
229
|
}), null;
|
|
229
230
|
}
|
|
230
|
-
var q =
|
|
231
|
-
return G(!0) ? /*#__PURE__*/ L(K, { ...e }) : /*#__PURE__*/ L(
|
|
231
|
+
var q = A(function(e) {
|
|
232
|
+
return G(!0) ? /*#__PURE__*/ L(K, { ...e }) : /*#__PURE__*/ L(D, { children: /*#__PURE__*/ L(K, { ...e }) });
|
|
232
233
|
});
|
|
233
234
|
process.env.NODE_ENV !== "production" && (q.displayName = "PreviewCardRoot");
|
|
234
235
|
//#endregion
|
|
@@ -255,18 +256,18 @@ var Y = /*#__PURE__*/ I.forwardRef(function(e, t) {
|
|
|
255
256
|
process.env.NODE_ENV !== "production" && (Y.displayName = "PreviewCardPortal");
|
|
256
257
|
//#endregion
|
|
257
258
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/preview-card/trigger/PreviewCardTrigger.mjs
|
|
258
|
-
var X =
|
|
259
|
+
var X = O(function(t, n) {
|
|
259
260
|
let { render: a, className: s, delay: c, closeDelay: l, id: u, payload: d, handle: f, style: p, ...m } = t, h = G(!0), g = f?.store ?? h;
|
|
260
261
|
if (!g) throw Error(process.env.NODE_ENV === "production" ? i(89) : "Base UI: <PreviewCard.Trigger> must be either used within a <PreviewCard.Root> component or provided with a handle.");
|
|
261
|
-
let
|
|
262
|
+
let v = o(u), y = g.useState("isTriggerActive", v), b = g.useState("isOpenedByTrigger", v), x = g.useState("floatingRootContext"), S = g.context.inlineRectCoordsRef, C = I.useRef(null), w = c ?? 600, T = l ?? 300, { registerTrigger: D, isMountedByThisTrigger: O } = E(v, C, g, { payload: d });
|
|
262
263
|
e(() => {
|
|
263
|
-
|
|
264
|
+
O && (g.context.closeDelayRef.current = T);
|
|
264
265
|
}, [
|
|
265
266
|
g,
|
|
266
|
-
|
|
267
|
+
O,
|
|
267
268
|
T
|
|
268
269
|
]);
|
|
269
|
-
let
|
|
270
|
+
let k = N(x, {
|
|
270
271
|
mouseOnly: !0,
|
|
271
272
|
move: !1,
|
|
272
273
|
handleClose: ee(),
|
|
@@ -275,25 +276,25 @@ var X = h(function(t, n) {
|
|
|
275
276
|
close: T
|
|
276
277
|
}),
|
|
277
278
|
triggerElementRef: C,
|
|
278
|
-
isActiveTrigger:
|
|
279
|
+
isActiveTrigger: y,
|
|
279
280
|
isClosing: () => g.select("transitionStatus") === "ending"
|
|
280
|
-
}),
|
|
281
|
+
}), A = se(x, { delay: w }), j = { open: b }, M = g.useState("triggerProps", O), P = H(S, b);
|
|
281
282
|
return r("a", t, {
|
|
282
|
-
state:
|
|
283
|
+
state: j,
|
|
283
284
|
ref: [
|
|
284
285
|
n,
|
|
285
|
-
|
|
286
|
+
D,
|
|
286
287
|
C
|
|
287
288
|
],
|
|
288
289
|
props: [
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
290
|
+
k,
|
|
291
|
+
A.reference,
|
|
292
|
+
M,
|
|
292
293
|
P,
|
|
293
|
-
{ id:
|
|
294
|
+
{ id: v },
|
|
294
295
|
m
|
|
295
296
|
],
|
|
296
|
-
stateAttributesMapping:
|
|
297
|
+
stateAttributesMapping: _
|
|
297
298
|
});
|
|
298
299
|
});
|
|
299
300
|
process.env.NODE_ENV !== "production" && (X.displayName = "PreviewCardTrigger");
|
|
@@ -309,51 +310,51 @@ function be() {
|
|
|
309
310
|
//#endregion
|
|
310
311
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/preview-card/positioner/PreviewCardPositioner.mjs
|
|
311
312
|
var Q = /*#__PURE__*/ I.forwardRef(function(t, n) {
|
|
312
|
-
let { render: r, className: i, anchor: a, positionMethod: o = "absolute", side: s = "bottom", align: c = "center", sideOffset: l = 0, alignOffset: u = 0, collisionBoundary: d = "clipping-ancestors", collisionPadding: f = 5, arrowPadding:
|
|
313
|
+
let { render: r, className: i, anchor: a, positionMethod: o = "absolute", side: s = "bottom", align: c = "center", sideOffset: l = 0, alignOffset: u = 0, collisionBoundary: d = "clipping-ancestors", collisionPadding: f = 5, arrowPadding: m = 5, sticky: g = !1, disableAnchorTracking: _ = !1, collisionAvoidance: v = k, style: y, ...b } = t, x = G(), S = ye(), C = h(), w = x.useState("open"), T = x.useState("mounted"), E = x.useState("floatingRootContext"), D = x.useState("instantType"), O = x.useState("transitionStatus"), A = x.useState("hasViewport"), j = x.context.inlineRectCoordsRef, M = re({
|
|
313
314
|
anchor: a,
|
|
314
|
-
floatingRootContext:
|
|
315
|
+
floatingRootContext: E,
|
|
315
316
|
positionMethod: o,
|
|
316
|
-
mounted:
|
|
317
|
+
mounted: T,
|
|
317
318
|
side: s,
|
|
318
319
|
sideOffset: l,
|
|
319
320
|
align: c,
|
|
320
321
|
alignOffset: u,
|
|
321
|
-
arrowPadding:
|
|
322
|
+
arrowPadding: m,
|
|
322
323
|
collisionBoundary: d,
|
|
323
324
|
collisionPadding: f,
|
|
324
|
-
sticky:
|
|
325
|
-
disableAnchorTracking:
|
|
326
|
-
keepMounted:
|
|
327
|
-
nodeId:
|
|
328
|
-
collisionAvoidance:
|
|
325
|
+
sticky: g,
|
|
326
|
+
disableAnchorTracking: _,
|
|
327
|
+
keepMounted: S,
|
|
328
|
+
nodeId: C,
|
|
329
|
+
collisionAvoidance: v,
|
|
329
330
|
adaptiveOrigin: A ? te : void 0,
|
|
330
331
|
inline: me(j)
|
|
331
332
|
}), N = M.update;
|
|
332
333
|
e(() => {
|
|
333
|
-
|
|
334
|
+
w && T && N();
|
|
334
335
|
}, [
|
|
335
|
-
C,
|
|
336
336
|
w,
|
|
337
|
+
T,
|
|
337
338
|
N
|
|
338
339
|
]);
|
|
339
340
|
let P = ie(t, {
|
|
340
|
-
open:
|
|
341
|
+
open: w,
|
|
341
342
|
side: M.side,
|
|
342
343
|
align: M.align,
|
|
343
344
|
anchorHidden: M.anchorHidden,
|
|
344
|
-
instant:
|
|
345
|
+
instant: D
|
|
345
346
|
}, {
|
|
346
347
|
styles: M.positionerStyles,
|
|
347
|
-
transitionStatus:
|
|
348
|
-
props:
|
|
349
|
-
refs: [n,
|
|
350
|
-
hidden: !
|
|
351
|
-
inert: !
|
|
348
|
+
transitionStatus: O,
|
|
349
|
+
props: b,
|
|
350
|
+
refs: [n, x.useStateSetter("positionerElement")],
|
|
351
|
+
hidden: !T,
|
|
352
|
+
inert: !w
|
|
352
353
|
});
|
|
353
354
|
return /*#__PURE__*/ L(Z.Provider, {
|
|
354
355
|
value: M,
|
|
355
|
-
children: /*#__PURE__*/ L(
|
|
356
|
-
id:
|
|
356
|
+
children: /*#__PURE__*/ L(p, {
|
|
357
|
+
id: C,
|
|
357
358
|
children: P
|
|
358
359
|
})
|
|
359
360
|
});
|
|
@@ -362,7 +363,7 @@ process.env.NODE_ENV !== "production" && (Q.displayName = "PreviewCardPositioner
|
|
|
362
363
|
//#endregion
|
|
363
364
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/preview-card/popup/PreviewCardPopup.mjs
|
|
364
365
|
var xe = {
|
|
365
|
-
...
|
|
366
|
+
...w,
|
|
366
367
|
...l
|
|
367
368
|
}, $ = /*#__PURE__*/ I.forwardRef(function(e, t) {
|
|
368
369
|
let { className: n, render: i, style: o, ...s } = e, c = G(), { side: l, align: d } = be(), f = c.useState("open"), p = c.useState("instantType"), m = c.useState("transitionStatus"), h = c.useState("popupProps"), g = c.useState("floatingRootContext");
|
|
@@ -8,7 +8,7 @@ import { t as o } from "./owner-CyZnQOKt.js";
|
|
|
8
8
|
import { cn as s } from "./lib/utils.js";
|
|
9
9
|
import { t as c } from "./shadowDom-BACsbimN.js";
|
|
10
10
|
import { a as l, i as u, n as d, r as f, t as p } from "./LabelableContext-C6DIbcnY.js";
|
|
11
|
-
import { t as m } from "./useLabelableId-
|
|
11
|
+
import { t as m } from "./useLabelableId-9jrDGk5d.js";
|
|
12
12
|
import * as h from "react";
|
|
13
13
|
import { jsx as g } from "react/jsx-runtime";
|
|
14
14
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/field/control/FieldControl.mjs
|