@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
|
@@ -2,56 +2,57 @@
|
|
|
2
2
|
import { t as e } from "./useIsoLayoutEffect-4LGv3HzC.js";
|
|
3
3
|
import { r as t, t as n, u as r } from "./useRenderElement-BToElZ97.js";
|
|
4
4
|
import { t as i } from "./useStableCallback-CrM0Nb2q.js";
|
|
5
|
-
import { t as a } from "./useBaseUiId-
|
|
5
|
+
import { t as a } from "./useBaseUiId-CXSJgVcI.js";
|
|
6
6
|
import { S as o, a as s, g as c, l, t as u, x as d } from "./createBaseUIEventDetails-C_dwdqj4.js";
|
|
7
|
-
import { a as f, t as p } from "./useOpenChangeComplete-
|
|
7
|
+
import { a as f, t as p } from "./useOpenChangeComplete-CVIwfcpl.js";
|
|
8
8
|
import { d 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 { cn as v } from "./lib/utils.js";
|
|
12
|
-
import {
|
|
13
|
-
import { O as
|
|
14
|
-
import {
|
|
15
|
-
import { n as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { n as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import
|
|
22
|
-
import
|
|
12
|
+
import { S as y, _ as b, a as x, c as S, f as C, h as w, m as T, n as E, o as D, p as O, r as k, s as A, v as j } from "./popupStateMapping-XiLS0Jku.js";
|
|
13
|
+
import { O as M } from "./composite-B-tEa-Zg.js";
|
|
14
|
+
import { a as N, h as P, i as ee, o as F, t as I } from "./ReactStore-C3H8e2ha.js";
|
|
15
|
+
import { n as te, t as ne } from "./useTimeout-B0afjWAz.js";
|
|
16
|
+
import { n as L, r as R } from "./shadowDom-BACsbimN.js";
|
|
17
|
+
import { a as z, i as re, n as ie, r as B, t as ae } from "./safePolygon-DmV1hDsw.js";
|
|
18
|
+
import { i as oe, n as V, r as H, t as U } from "./usePositioner-CaLGGc-z.js";
|
|
19
|
+
import { n as W, r as G, t as se } from "./store-D7k1qIkZ.js";
|
|
20
|
+
import { t as ce } from "./useFocus-B_SrhX9q.js";
|
|
21
|
+
import { t as le } from "./FloatingPortalLite-D5nFwFgJ.js";
|
|
22
|
+
import * as K from "react";
|
|
23
|
+
import { jsx as q, jsxs as J } from "react/jsx-runtime";
|
|
23
24
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/components/FloatingDelayGroup.mjs
|
|
24
|
-
var
|
|
25
|
+
var Y = /*#__PURE__*/ K.createContext({
|
|
25
26
|
hasProvider: !1,
|
|
26
27
|
timeoutMs: 0,
|
|
27
28
|
delayRef: { current: 0 },
|
|
28
29
|
initialDelayRef: { current: 0 },
|
|
29
|
-
timeout: new
|
|
30
|
+
timeout: new ne(),
|
|
30
31
|
currentIdRef: { current: null },
|
|
31
32
|
currentContextRef: { current: null }
|
|
32
33
|
});
|
|
33
|
-
process.env.NODE_ENV !== "production" && (
|
|
34
|
-
function
|
|
34
|
+
process.env.NODE_ENV !== "production" && (Y.displayName = "FloatingDelayGroupContext");
|
|
35
|
+
function ue(e, t) {
|
|
35
36
|
e.current = t.current;
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
-
let { children: n, delay: r, timeoutMs: i = 0 } = t, a =
|
|
38
|
+
function de(t) {
|
|
39
|
+
let { children: n, delay: r, timeoutMs: i = 0 } = t, a = K.useRef(r), o = K.useRef(r), s = K.useRef(null), c = K.useRef(null), l = te();
|
|
39
40
|
return e(() => {
|
|
40
41
|
if (o.current = r, !s.current) {
|
|
41
42
|
a.current = r;
|
|
42
43
|
return;
|
|
43
44
|
}
|
|
44
45
|
a.current = {
|
|
45
|
-
open:
|
|
46
|
-
close:
|
|
46
|
+
open: z(a.current, "open"),
|
|
47
|
+
close: z(r, "close")
|
|
47
48
|
};
|
|
48
49
|
}, [
|
|
49
50
|
r,
|
|
50
51
|
s,
|
|
51
52
|
a,
|
|
52
53
|
o
|
|
53
|
-
]), /*#__PURE__*/
|
|
54
|
-
value:
|
|
54
|
+
]), /*#__PURE__*/ q(Y.Provider, {
|
|
55
|
+
value: K.useMemo(() => ({
|
|
55
56
|
hasProvider: !0,
|
|
56
57
|
delayRef: a,
|
|
57
58
|
initialDelayRef: o,
|
|
@@ -63,8 +64,8 @@ function fe(t) {
|
|
|
63
64
|
children: n
|
|
64
65
|
});
|
|
65
66
|
}
|
|
66
|
-
function
|
|
67
|
-
let { open: r } = n, i = "rootStore" in t ? t.rootStore : t, a = i.useState("floatingId"), { currentIdRef: o, delayRef: s, timeoutMs: l, initialDelayRef: d, currentContextRef: f, hasProvider: p, timeout: m } =
|
|
67
|
+
function fe(t, n = { open: !1 }) {
|
|
68
|
+
let { open: r } = n, i = "rootStore" in t ? t.rootStore : t, a = i.useState("floatingId"), { currentIdRef: o, delayRef: s, timeoutMs: l, initialDelayRef: d, currentContextRef: f, hasProvider: p, timeout: m } = K.useContext(Y), [h, g] = K.useState(!1), _ = K.useRef(r), v = K.useRef(!1);
|
|
68
69
|
return e(() => {
|
|
69
70
|
_.current = r;
|
|
70
71
|
}, [r]), e(() => () => {
|
|
@@ -102,7 +103,7 @@ function pe(t, n = { open: !1 }) {
|
|
|
102
103
|
setIsInstantPhase: g
|
|
103
104
|
}, o.current = a, s.current = {
|
|
104
105
|
open: 0,
|
|
105
|
-
close:
|
|
106
|
+
close: z(d.current, "close")
|
|
106
107
|
}, t !== null && t !== a ? (g(!0), e?.setIsInstantPhase(!0), e?.onOpenChange(!1, u(c))) : (g(!1), e?.setIsInstantPhase(!1));
|
|
107
108
|
}, [
|
|
108
109
|
r,
|
|
@@ -116,7 +117,7 @@ function pe(t, n = { open: !1 }) {
|
|
|
116
117
|
]), e(() => () => {
|
|
117
118
|
if (o.current === a) {
|
|
118
119
|
if (f.current = null, !_.current) return;
|
|
119
|
-
o.current = null,
|
|
120
|
+
o.current = null, ue(s, d), m.clear();
|
|
120
121
|
}
|
|
121
122
|
}, [
|
|
122
123
|
f,
|
|
@@ -125,7 +126,7 @@ function pe(t, n = { open: !1 }) {
|
|
|
125
126
|
a,
|
|
126
127
|
d,
|
|
127
128
|
m
|
|
128
|
-
]),
|
|
129
|
+
]), K.useMemo(() => ({
|
|
129
130
|
hasProvider: p,
|
|
130
131
|
delayRef: s,
|
|
131
132
|
isInstantPhase: h
|
|
@@ -137,7 +138,7 @@ function pe(t, n = { open: !1 }) {
|
|
|
137
138
|
}
|
|
138
139
|
//#endregion
|
|
139
140
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/hooks/useClientPoint.mjs
|
|
140
|
-
function
|
|
141
|
+
function pe(e, t) {
|
|
141
142
|
let n = null, r = null, i = !1;
|
|
142
143
|
return {
|
|
143
144
|
contextElement: e || void 0,
|
|
@@ -161,14 +162,14 @@ function me(e, t) {
|
|
|
161
162
|
}
|
|
162
163
|
};
|
|
163
164
|
}
|
|
164
|
-
function
|
|
165
|
+
function me(e) {
|
|
165
166
|
return e != null && e.clientX != null;
|
|
166
167
|
}
|
|
167
|
-
function
|
|
168
|
-
let { enabled: n = !0, axis: r = "both" } = t, a = "rootStore" in e ? e.rootStore : e, o = a.useState("open"), s = a.useState("floatingElement"), c = a.useState("domReferenceElement"), l = a.context.dataRef, u =
|
|
168
|
+
function he(e, t = {}) {
|
|
169
|
+
let { enabled: n = !0, axis: r = "both" } = t, a = "rootStore" in e ? e.rootStore : e, o = a.useState("open"), s = a.useState("floatingElement"), c = a.useState("domReferenceElement"), l = a.context.dataRef, u = K.useRef(!1), d = K.useRef(null), [f, p] = K.useState(), [m, _] = K.useState([]), v = i((e) => {
|
|
169
170
|
a.set("positionReference", e);
|
|
170
171
|
}), y = i((e, t, n) => {
|
|
171
|
-
u.current || l.current.openEvent && !
|
|
172
|
+
u.current || l.current.openEvent && !me(l.current.openEvent) || a.set("positionReference", pe(n ?? c, {
|
|
172
173
|
x: e,
|
|
173
174
|
y: t,
|
|
174
175
|
axis: r,
|
|
@@ -177,8 +178,8 @@ function ge(e, t = {}) {
|
|
|
177
178
|
}));
|
|
178
179
|
}), b = i((e) => {
|
|
179
180
|
o ? d.current || (y(e.clientX, e.clientY, e.currentTarget), _([])) : y(e.clientX, e.clientY, e.currentTarget);
|
|
180
|
-
}), x =
|
|
181
|
-
|
|
181
|
+
}), x = M(f) ? s : o;
|
|
182
|
+
K.useEffect(() => {
|
|
182
183
|
if (!n) {
|
|
183
184
|
v(c);
|
|
184
185
|
return;
|
|
@@ -189,10 +190,10 @@ function ge(e, t = {}) {
|
|
|
189
190
|
}
|
|
190
191
|
let t = h(s);
|
|
191
192
|
function r(t) {
|
|
192
|
-
let n =
|
|
193
|
-
|
|
193
|
+
let n = R(t);
|
|
194
|
+
L(s, n) ? e() : y(t.clientX, t.clientY);
|
|
194
195
|
}
|
|
195
|
-
return !l.current.openEvent ||
|
|
196
|
+
return !l.current.openEvent || me(l.current.openEvent) ? d.current = g(t, "mousemove", r) : v(c), e;
|
|
196
197
|
}, [
|
|
197
198
|
x,
|
|
198
199
|
n,
|
|
@@ -203,14 +204,14 @@ function ge(e, t = {}) {
|
|
|
203
204
|
y,
|
|
204
205
|
v,
|
|
205
206
|
m
|
|
206
|
-
]),
|
|
207
|
+
]), K.useEffect(() => () => {
|
|
207
208
|
a.set("positionReference", null);
|
|
208
|
-
}, [a]),
|
|
209
|
+
}, [a]), K.useEffect(() => {
|
|
209
210
|
n && !s && (u.current = !1);
|
|
210
|
-
}, [n, s]),
|
|
211
|
+
}, [n, s]), K.useEffect(() => {
|
|
211
212
|
!n && o && (u.current = !0);
|
|
212
213
|
}, [n, o]);
|
|
213
|
-
let S =
|
|
214
|
+
let S = K.useMemo(() => {
|
|
214
215
|
function e(e) {
|
|
215
216
|
p(e.pointerType);
|
|
216
217
|
}
|
|
@@ -221,59 +222,59 @@ function ge(e, t = {}) {
|
|
|
221
222
|
onMouseEnter: b
|
|
222
223
|
};
|
|
223
224
|
}, [b]);
|
|
224
|
-
return
|
|
225
|
+
return K.useMemo(() => n ? {
|
|
225
226
|
reference: S,
|
|
226
227
|
trigger: S
|
|
227
228
|
} : {}, [n, S]);
|
|
228
229
|
}
|
|
229
230
|
//#endregion
|
|
230
231
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/tooltip/root/TooltipRootContext.mjs
|
|
231
|
-
var
|
|
232
|
-
process.env.NODE_ENV !== "production" && (
|
|
233
|
-
function
|
|
234
|
-
let t =
|
|
232
|
+
var X = /*#__PURE__*/ K.createContext(void 0);
|
|
233
|
+
process.env.NODE_ENV !== "production" && (X.displayName = "TooltipRootContext");
|
|
234
|
+
function Z(e) {
|
|
235
|
+
let t = K.useContext(X);
|
|
235
236
|
if (t === void 0 && !e) throw Error(process.env.NODE_ENV === "production" ? r(72) : "Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>.");
|
|
236
237
|
return t;
|
|
237
238
|
}
|
|
238
239
|
//#endregion
|
|
239
240
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/tooltip/store/TooltipStore.mjs
|
|
240
|
-
var
|
|
241
|
-
...
|
|
242
|
-
disabled:
|
|
243
|
-
instantType:
|
|
244
|
-
isInstantPhase:
|
|
245
|
-
trackCursorAxis:
|
|
246
|
-
disableHoverablePopup:
|
|
247
|
-
lastOpenChangeReason:
|
|
248
|
-
closeOnClick:
|
|
249
|
-
closeDelay:
|
|
250
|
-
hasViewport:
|
|
251
|
-
},
|
|
241
|
+
var ge = {
|
|
242
|
+
...G,
|
|
243
|
+
disabled: F((e) => e.disabled),
|
|
244
|
+
instantType: F((e) => e.instantType),
|
|
245
|
+
isInstantPhase: F((e) => e.isInstantPhase),
|
|
246
|
+
trackCursorAxis: F((e) => e.trackCursorAxis),
|
|
247
|
+
disableHoverablePopup: F((e) => e.disableHoverablePopup),
|
|
248
|
+
lastOpenChangeReason: F((e) => e.openChangeReason),
|
|
249
|
+
closeOnClick: F((e) => e.closeOnClick),
|
|
250
|
+
closeDelay: F((e) => e.closeDelay),
|
|
251
|
+
hasViewport: F((e) => e.hasViewport)
|
|
252
|
+
}, _e = class e extends I {
|
|
252
253
|
constructor(e, t, n = !1) {
|
|
253
|
-
let r = new
|
|
254
|
-
...
|
|
254
|
+
let r = new D(), i = {
|
|
255
|
+
...ve(),
|
|
255
256
|
...e
|
|
256
257
|
};
|
|
257
|
-
i.floatingRootContext =
|
|
258
|
-
popupRef: /*#__PURE__*/
|
|
258
|
+
i.floatingRootContext = W(r, t, n), super(i, {
|
|
259
|
+
popupRef: /*#__PURE__*/ K.createRef(),
|
|
259
260
|
onOpenChange: void 0,
|
|
260
261
|
onOpenChangeComplete: void 0,
|
|
261
262
|
triggerElements: r
|
|
262
|
-
},
|
|
263
|
+
}, ge);
|
|
263
264
|
}
|
|
264
265
|
setOpen = (e, t) => {
|
|
265
|
-
|
|
266
|
+
S(this, e, t, { extraState: { openChangeReason: t.reason } });
|
|
266
267
|
};
|
|
267
268
|
cancelPendingOpen(e) {
|
|
268
269
|
this.state.floatingRootContext.dispatchOpenChange(!1, u(o, e));
|
|
269
270
|
}
|
|
270
271
|
static useStore(t, n) {
|
|
271
|
-
return
|
|
272
|
+
return b(t, (t, r) => new e(n, t, r)).store;
|
|
272
273
|
}
|
|
273
274
|
};
|
|
274
|
-
function
|
|
275
|
+
function ve() {
|
|
275
276
|
return {
|
|
276
|
-
...
|
|
277
|
+
...se(),
|
|
277
278
|
disabled: !1,
|
|
278
279
|
instantType: void 0,
|
|
279
280
|
isInstantPhase: !1,
|
|
@@ -287,20 +288,20 @@ function ye() {
|
|
|
287
288
|
}
|
|
288
289
|
//#endregion
|
|
289
290
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/tooltip/root/TooltipRoot.mjs
|
|
290
|
-
var
|
|
291
|
-
let { disabled: n = !1, defaultOpen: r = !1, open: i, disableHoverablePopup: a = !1, trackCursorAxis: o = "none", actionsRef: c, onOpenChange: d, onOpenChangeComplete: f, handle: p, triggerId: m, defaultTriggerId: h = null, children: g } = t, _ =
|
|
291
|
+
var ye = ee(function(t) {
|
|
292
|
+
let { disabled: n = !1, defaultOpen: r = !1, open: i, disableHoverablePopup: a = !1, trackCursorAxis: o = "none", actionsRef: c, onOpenChange: d, onOpenChangeComplete: f, handle: p, triggerId: m, defaultTriggerId: h = null, children: g } = t, _ = _e.useStore(p?.store, {
|
|
292
293
|
open: r,
|
|
293
294
|
openProp: i,
|
|
294
295
|
activeTriggerId: h,
|
|
295
296
|
triggerIdProp: m
|
|
296
297
|
});
|
|
297
|
-
|
|
298
|
+
O(_, i, r, h), _.useControlledProp("openProp", i), _.useControlledProp("triggerIdProp", m), _.useContextCallback("onOpenChange", d), _.useContextCallback("onOpenChangeComplete", f);
|
|
298
299
|
let v = _.useState("open"), y = !n && v, b = _.useState("activeTriggerId"), x = _.useState("mounted"), S = _.useState("payload");
|
|
299
300
|
_.useSyncedValues({
|
|
300
301
|
trackCursorAxis: o,
|
|
301
302
|
disableHoverablePopup: a
|
|
302
|
-
}), _.useSyncedValue("disabled", n),
|
|
303
|
-
let { forceUnmount:
|
|
303
|
+
}), _.useSyncedValue("disabled", n), C(_, { closeOnActiveTriggerUnmount: !0 });
|
|
304
|
+
let { forceUnmount: w, transitionStatus: E } = T(y, _), D = _.useState("isInstantPhase"), k = _.useState("instantType"), A = _.useState("lastOpenChangeReason"), j = K.useRef(null);
|
|
304
305
|
e(() => {
|
|
305
306
|
v && n && _.setOpen(!1, u(s));
|
|
306
307
|
}, [
|
|
@@ -308,12 +309,12 @@ var be = C(function(t) {
|
|
|
308
309
|
n,
|
|
309
310
|
_
|
|
310
311
|
]), e(() => {
|
|
311
|
-
|
|
312
|
+
E === "ending" && A === "none" || E !== "ending" && D ? (k !== "delay" && (j.current = k), _.set("instantType", "delay")) : j.current !== null && (_.set("instantType", j.current), j.current = null);
|
|
312
313
|
}, [
|
|
313
|
-
w,
|
|
314
|
-
T,
|
|
315
|
-
D,
|
|
316
314
|
E,
|
|
315
|
+
D,
|
|
316
|
+
A,
|
|
317
|
+
k,
|
|
317
318
|
_
|
|
318
319
|
]), e(() => {
|
|
319
320
|
y && (b ?? _.set("payload", void 0));
|
|
@@ -322,51 +323,51 @@ var be = C(function(t) {
|
|
|
322
323
|
b,
|
|
323
324
|
y
|
|
324
325
|
]);
|
|
325
|
-
let
|
|
326
|
+
let M = K.useCallback(() => {
|
|
326
327
|
_.setOpen(!1, u(l));
|
|
327
328
|
}, [_]);
|
|
328
|
-
|
|
329
|
-
unmount:
|
|
330
|
-
close:
|
|
331
|
-
}), [
|
|
332
|
-
let
|
|
333
|
-
return /*#__PURE__*/
|
|
329
|
+
K.useImperativeHandle(c, () => ({
|
|
330
|
+
unmount: w,
|
|
331
|
+
close: M
|
|
332
|
+
}), [w, M]);
|
|
333
|
+
let N = y || x || !n && o !== "none";
|
|
334
|
+
return /*#__PURE__*/ J(X.Provider, {
|
|
334
335
|
value: _,
|
|
335
|
-
children: [
|
|
336
|
+
children: [N && /*#__PURE__*/ q(be, {
|
|
336
337
|
store: _,
|
|
337
338
|
disabled: n,
|
|
338
339
|
trackCursorAxis: o
|
|
339
340
|
}), typeof g == "function" ? g({ payload: S }) : g]
|
|
340
341
|
});
|
|
341
342
|
});
|
|
342
|
-
process.env.NODE_ENV !== "production" && (
|
|
343
|
-
function
|
|
344
|
-
let i = e.useState("floatingRootContext"), a =
|
|
343
|
+
process.env.NODE_ENV !== "production" && (ye.displayName = "TooltipRoot");
|
|
344
|
+
function be({ store: e, disabled: n, trackCursorAxis: r }) {
|
|
345
|
+
let i = e.useState("floatingRootContext"), a = y(i, {
|
|
345
346
|
enabled: !n,
|
|
346
347
|
referencePress: () => e.select("closeOnClick")
|
|
347
|
-
}), o =
|
|
348
|
+
}), o = he(i, {
|
|
348
349
|
enabled: !n && r !== "none",
|
|
349
350
|
axis: r === "none" ? void 0 : r
|
|
350
351
|
});
|
|
351
|
-
return
|
|
352
|
-
activeTriggerProps:
|
|
353
|
-
inactiveTriggerProps:
|
|
354
|
-
popupProps:
|
|
352
|
+
return w(e, {
|
|
353
|
+
activeTriggerProps: K.useMemo(() => t(o.reference, a.reference), [o.reference, a.reference]),
|
|
354
|
+
inactiveTriggerProps: K.useMemo(() => t(o.trigger, a.trigger), [o.trigger, a.trigger]),
|
|
355
|
+
popupProps: K.useMemo(() => t(A, o.floating, a.floating), [o.floating, a.floating])
|
|
355
356
|
}), null;
|
|
356
357
|
}
|
|
357
358
|
//#endregion
|
|
358
359
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/tooltip/provider/TooltipProviderContext.mjs
|
|
359
|
-
var
|
|
360
|
-
process.env.NODE_ENV !== "production" && (
|
|
361
|
-
function
|
|
362
|
-
return
|
|
360
|
+
var Q = /*#__PURE__*/ K.createContext(void 0);
|
|
361
|
+
process.env.NODE_ENV !== "production" && (Q.displayName = "TooltipProviderContext");
|
|
362
|
+
function xe() {
|
|
363
|
+
return K.useContext(Q);
|
|
363
364
|
}
|
|
364
365
|
//#endregion
|
|
365
366
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/tooltip/trigger/TooltipTriggerDataAttributes.mjs
|
|
366
|
-
var
|
|
367
|
-
return e[e.popupOpen =
|
|
368
|
-
}({}),
|
|
369
|
-
function
|
|
367
|
+
var Se = function(e) {
|
|
368
|
+
return e[e.popupOpen = E.popupOpen] = "popupOpen", e.triggerDisabled = "data-trigger-disabled", e;
|
|
369
|
+
}({}), Ce = "data-base-ui-tooltip-trigger";
|
|
370
|
+
function we(e) {
|
|
370
371
|
if ("composedPath" in e) {
|
|
371
372
|
let t = e.composedPath();
|
|
372
373
|
for (let e = 0; e < t.length; e += 1) {
|
|
@@ -377,10 +378,10 @@ function Te(e) {
|
|
|
377
378
|
let t = e.target;
|
|
378
379
|
return m(t) ? t : null;
|
|
379
380
|
}
|
|
380
|
-
function
|
|
381
|
+
function Te(e) {
|
|
381
382
|
let t = e;
|
|
382
383
|
for (; t;) {
|
|
383
|
-
if (t.hasAttribute(
|
|
384
|
+
if (t.hasAttribute(Ce)) return t;
|
|
384
385
|
let e = t.parentElement;
|
|
385
386
|
if (e) {
|
|
386
387
|
t = e;
|
|
@@ -391,137 +392,137 @@ function Ee(e) {
|
|
|
391
392
|
}
|
|
392
393
|
return null;
|
|
393
394
|
}
|
|
394
|
-
var
|
|
395
|
-
let { render: i, className: o, style: s, handle: c, payload: l, disabled: f, delay: p, closeOnClick: m = !0, closeDelay: h, id: g, ...v } = e, y =
|
|
395
|
+
var Ee = N(function(e, t) {
|
|
396
|
+
let { render: i, className: o, style: s, handle: c, payload: l, disabled: f, delay: p, closeOnClick: m = !0, closeDelay: h, id: g, ...v } = e, y = Z(!0), b = c?.store ?? y;
|
|
396
397
|
if (!b) throw Error(process.env.NODE_ENV === "production" ? r(82) : "Base UI: <Tooltip.Trigger> must be either used within a <Tooltip.Root> component or provided with a handle.");
|
|
397
|
-
let
|
|
398
|
+
let S = a(g), C = b.useState("isTriggerActive", S), w = b.useState("isOpenedByTrigger", S), T = b.useState("floatingRootContext"), E = K.useRef(null), D = p ?? 600, O = h ?? 0, { registerTrigger: k, isMountedByThisTrigger: A } = j(S, E, b, {
|
|
398
399
|
payload: l,
|
|
399
400
|
closeOnClick: m,
|
|
400
401
|
closeDelay: O
|
|
401
|
-
}),
|
|
402
|
+
}), N = xe(), { delayRef: P, isInstantPhase: ee, hasProvider: F } = fe(T, { open: w }), I = re(T);
|
|
402
403
|
b.useSyncedValue("isInstantPhase", ee);
|
|
403
|
-
let
|
|
404
|
-
function
|
|
405
|
-
let e =
|
|
406
|
-
return
|
|
404
|
+
let ne = b.useState("disabled"), R = f ?? ne, z = _(R), B = b.useState("trackCursorAxis"), oe = b.useState("disableHoverablePopup"), V = K.useRef(!1), H = te(), U = K.useRef(void 0);
|
|
405
|
+
function W() {
|
|
406
|
+
let e = N?.delay, t = typeof P.current == "object" ? P.current.open : void 0, n = D;
|
|
407
|
+
return F && (n = t === 0 ? 0 : p ?? e ?? D), n;
|
|
407
408
|
}
|
|
408
|
-
function
|
|
409
|
-
let t =
|
|
409
|
+
function G(e) {
|
|
410
|
+
let t = E.current;
|
|
410
411
|
if (!t || !e) return !1;
|
|
411
|
-
let n =
|
|
412
|
-
return n !== null && n !== t &&
|
|
412
|
+
let n = Te(e);
|
|
413
|
+
return n !== null && n !== t && L(t, n);
|
|
413
414
|
}
|
|
414
|
-
function
|
|
415
|
-
let t =
|
|
416
|
-
return
|
|
415
|
+
function se(e) {
|
|
416
|
+
let t = G(e);
|
|
417
|
+
return V.current = t, t && (I.openChangeTimeout.clear(), I.restTimeout.clear(), I.restTimeoutPending = !1, H.clear()), t;
|
|
417
418
|
}
|
|
418
|
-
let
|
|
419
|
-
enabled: !
|
|
419
|
+
let le = ie(T, {
|
|
420
|
+
enabled: !R,
|
|
420
421
|
mouseOnly: !0,
|
|
421
422
|
move: !1,
|
|
422
|
-
handleClose: !
|
|
423
|
-
restMs:
|
|
423
|
+
handleClose: !oe && B !== "both" ? ae() : null,
|
|
424
|
+
restMs: W,
|
|
424
425
|
delay() {
|
|
425
|
-
let e = typeof
|
|
426
|
-
return h == null &&
|
|
426
|
+
let e = typeof P.current == "object" ? P.current.close : void 0, t = O;
|
|
427
|
+
return h == null && F && (t = e), { close: t };
|
|
427
428
|
},
|
|
428
|
-
triggerElementRef:
|
|
429
|
-
isActiveTrigger:
|
|
429
|
+
triggerElementRef: E,
|
|
430
|
+
isActiveTrigger: C,
|
|
430
431
|
isClosing: () => b.select("transitionStatus") === "ending",
|
|
431
432
|
shouldOpen() {
|
|
432
|
-
return !
|
|
433
|
+
return !V.current;
|
|
433
434
|
}
|
|
434
|
-
}),
|
|
435
|
-
let t =
|
|
435
|
+
}), q = ce(T, { enabled: !R }).reference, J = (e) => {
|
|
436
|
+
let t = V.current, n = we(e), r = se(n), i = E.current, a = i && n && L(i, n);
|
|
436
437
|
if (r && b.select("open") && b.select("lastOpenChangeReason") === "trigger-hover") {
|
|
437
438
|
b.setOpen(!1, u(d, e));
|
|
438
439
|
return;
|
|
439
440
|
}
|
|
440
|
-
if (t && !r && a && !
|
|
441
|
+
if (t && !r && a && !z.current && !b.select("open") && i && M(U.current)) {
|
|
441
442
|
let t = () => {
|
|
442
|
-
!
|
|
443
|
-
}, n =
|
|
444
|
-
n === 0 ? (
|
|
443
|
+
!V.current && !z.current && !b.select("open") && b.setOpen(!0, u(d, e, i));
|
|
444
|
+
}, n = W();
|
|
445
|
+
n === 0 ? (H.clear(), t()) : H.start(n, t);
|
|
445
446
|
}
|
|
446
|
-
},
|
|
447
|
+
}, Y = b.useState("triggerProps", A);
|
|
447
448
|
return n("button", e, {
|
|
448
|
-
state: { open:
|
|
449
|
+
state: { open: w },
|
|
449
450
|
ref: [
|
|
450
451
|
t,
|
|
451
452
|
k,
|
|
452
|
-
|
|
453
|
+
E
|
|
453
454
|
],
|
|
454
455
|
props: [
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
A ||
|
|
456
|
+
le,
|
|
457
|
+
q,
|
|
458
|
+
A || B !== "none" ? Y : void 0,
|
|
458
459
|
{
|
|
459
460
|
onMouseOver(e) {
|
|
460
|
-
|
|
461
|
+
J(e.nativeEvent);
|
|
461
462
|
},
|
|
462
463
|
onFocus(e) {
|
|
463
|
-
|
|
464
|
+
G(we(e.nativeEvent)) && e.preventBaseUIHandler();
|
|
464
465
|
},
|
|
465
466
|
onMouseLeave() {
|
|
466
|
-
|
|
467
|
+
V.current = !1, H.clear(), U.current = void 0;
|
|
467
468
|
},
|
|
468
469
|
onPointerEnter(e) {
|
|
469
|
-
|
|
470
|
+
U.current = e.pointerType;
|
|
470
471
|
},
|
|
471
472
|
onPointerDown(e) {
|
|
472
|
-
|
|
473
|
+
U.current = e.pointerType, b.set("closeOnClick", m), m && !b.select("open") && b.cancelPendingOpen(e.nativeEvent);
|
|
473
474
|
},
|
|
474
475
|
onClick(e) {
|
|
475
476
|
m && !b.select("open") && b.cancelPendingOpen(e.nativeEvent);
|
|
476
477
|
},
|
|
477
|
-
id:
|
|
478
|
-
[
|
|
479
|
-
[
|
|
478
|
+
id: S,
|
|
479
|
+
[Se.triggerDisabled]: R ? "" : void 0,
|
|
480
|
+
[Ce]: R ? void 0 : ""
|
|
480
481
|
},
|
|
481
482
|
v
|
|
482
483
|
],
|
|
483
|
-
stateAttributesMapping:
|
|
484
|
+
stateAttributesMapping: x
|
|
484
485
|
});
|
|
485
486
|
});
|
|
486
|
-
process.env.NODE_ENV !== "production" && (
|
|
487
|
+
process.env.NODE_ENV !== "production" && (Ee.displayName = "TooltipTrigger");
|
|
487
488
|
//#endregion
|
|
488
489
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/tooltip/portal/TooltipPortalContext.mjs
|
|
489
|
-
var
|
|
490
|
-
process.env.NODE_ENV !== "production" && (
|
|
491
|
-
function
|
|
492
|
-
let e =
|
|
490
|
+
var $ = /*#__PURE__*/ K.createContext(void 0);
|
|
491
|
+
process.env.NODE_ENV !== "production" && ($.displayName = "TooltipPortalContext");
|
|
492
|
+
function De() {
|
|
493
|
+
let e = K.useContext($);
|
|
493
494
|
if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? r(70) : "Base UI: <Tooltip.Portal> is missing.");
|
|
494
495
|
return e;
|
|
495
496
|
}
|
|
496
497
|
//#endregion
|
|
497
498
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/tooltip/portal/TooltipPortal.mjs
|
|
498
|
-
var
|
|
499
|
+
var Oe = /*#__PURE__*/ K.forwardRef(function(e, t) {
|
|
499
500
|
let { keepMounted: n = !1, ...r } = e;
|
|
500
|
-
return
|
|
501
|
+
return Z().useState("mounted") || n ? /*#__PURE__*/ q($.Provider, {
|
|
501
502
|
value: n,
|
|
502
|
-
children: /*#__PURE__*/
|
|
503
|
+
children: /*#__PURE__*/ q(le, {
|
|
503
504
|
ref: t,
|
|
504
505
|
...r
|
|
505
506
|
})
|
|
506
507
|
}) : null;
|
|
507
508
|
});
|
|
508
|
-
process.env.NODE_ENV !== "production" && (
|
|
509
|
+
process.env.NODE_ENV !== "production" && (Oe.displayName = "TooltipPortal");
|
|
509
510
|
//#endregion
|
|
510
511
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/tooltip/positioner/TooltipPositionerContext.mjs
|
|
511
|
-
var
|
|
512
|
-
process.env.NODE_ENV !== "production" && (
|
|
512
|
+
var ke = /*#__PURE__*/ K.createContext(void 0);
|
|
513
|
+
process.env.NODE_ENV !== "production" && (ke.displayName = "TooltipPositionerContext");
|
|
513
514
|
function Ae() {
|
|
514
|
-
let e =
|
|
515
|
+
let e = K.useContext(ke);
|
|
515
516
|
if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? r(71) : "Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>.");
|
|
516
517
|
return e;
|
|
517
518
|
}
|
|
518
519
|
//#endregion
|
|
519
520
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/tooltip/positioner/TooltipPositioner.mjs
|
|
520
|
-
var je = /*#__PURE__*/
|
|
521
|
-
let { render: n, className: r, anchor: i, positionMethod: a = "absolute", side: o = "top", align: s = "center", sideOffset: c = 0, alignOffset: l = 0, collisionBoundary: u = "clipping-ancestors", collisionPadding: d = 5, arrowPadding: f = 5, sticky: p = !1, disableAnchorTracking: m = !1, collisionAvoidance: h =
|
|
521
|
+
var je = /*#__PURE__*/ K.forwardRef(function(e, t) {
|
|
522
|
+
let { render: n, className: r, anchor: i, positionMethod: a = "absolute", side: o = "top", align: s = "center", sideOffset: c = 0, alignOffset: l = 0, collisionBoundary: u = "clipping-ancestors", collisionPadding: d = 5, arrowPadding: f = 5, sticky: p = !1, disableAnchorTracking: m = !1, collisionAvoidance: h = P, style: g, ..._ } = e, v = Z(), y = De(), b = v.useState("open"), x = v.useState("mounted"), S = v.useState("trackCursorAxis"), C = v.useState("disableHoverablePopup"), w = v.useState("floatingRootContext"), T = v.useState("instantType"), E = v.useState("transitionStatus"), D = H({
|
|
522
523
|
anchor: i,
|
|
523
524
|
positionMethod: a,
|
|
524
|
-
floatingRootContext:
|
|
525
|
+
floatingRootContext: w,
|
|
525
526
|
mounted: x,
|
|
526
527
|
side: o,
|
|
527
528
|
sideOffset: c,
|
|
@@ -534,48 +535,48 @@ var je = /*#__PURE__*/ G.forwardRef(function(e, t) {
|
|
|
534
535
|
disableAnchorTracking: m,
|
|
535
536
|
keepMounted: y,
|
|
536
537
|
collisionAvoidance: h,
|
|
537
|
-
adaptiveOrigin: v.useState("hasViewport") ?
|
|
538
|
-
}),
|
|
538
|
+
adaptiveOrigin: v.useState("hasViewport") ? oe : void 0
|
|
539
|
+
}), O = U(e, K.useMemo(() => ({
|
|
539
540
|
open: b,
|
|
540
|
-
side:
|
|
541
|
-
align:
|
|
542
|
-
anchorHidden:
|
|
543
|
-
instant: S === "none" ?
|
|
541
|
+
side: D.side,
|
|
542
|
+
align: D.align,
|
|
543
|
+
anchorHidden: D.anchorHidden,
|
|
544
|
+
instant: S === "none" ? T : "tracking-cursor"
|
|
544
545
|
}), [
|
|
545
546
|
b,
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
547
|
+
D.side,
|
|
548
|
+
D.align,
|
|
549
|
+
D.anchorHidden,
|
|
549
550
|
S,
|
|
550
|
-
|
|
551
|
+
T
|
|
551
552
|
]), {
|
|
552
|
-
styles:
|
|
553
|
-
transitionStatus:
|
|
553
|
+
styles: D.positionerStyles,
|
|
554
|
+
transitionStatus: E,
|
|
554
555
|
props: _,
|
|
555
556
|
refs: [t, v.useStateSetter("positionerElement")],
|
|
556
557
|
hidden: !x,
|
|
557
558
|
inert: !b || S === "both" || C
|
|
558
559
|
});
|
|
559
|
-
return /*#__PURE__*/
|
|
560
|
-
value:
|
|
561
|
-
children:
|
|
560
|
+
return /*#__PURE__*/ q(ke.Provider, {
|
|
561
|
+
value: D,
|
|
562
|
+
children: O
|
|
562
563
|
});
|
|
563
564
|
});
|
|
564
565
|
process.env.NODE_ENV !== "production" && (je.displayName = "TooltipPositioner");
|
|
565
566
|
//#endregion
|
|
566
567
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/tooltip/popup/TooltipPopup.mjs
|
|
567
568
|
var Me = {
|
|
568
|
-
...
|
|
569
|
+
...k,
|
|
569
570
|
...f
|
|
570
|
-
}, Ne = /*#__PURE__*/
|
|
571
|
-
let { render: r, className: i, style: a, ...o } = e, s =
|
|
571
|
+
}, Ne = /*#__PURE__*/ K.forwardRef(function(e, t) {
|
|
572
|
+
let { render: r, className: i, style: a, ...o } = e, s = Z(), { side: c, align: l } = Ae(), u = s.useState("open"), d = s.useState("instantType"), f = s.useState("transitionStatus"), m = s.useState("popupProps"), h = s.useState("floatingRootContext"), g = s.useState("disabled"), _ = s.useState("closeDelay");
|
|
572
573
|
p({
|
|
573
574
|
open: u,
|
|
574
575
|
ref: s.context.popupRef,
|
|
575
576
|
onComplete() {
|
|
576
577
|
u && s.context.onOpenChangeComplete?.(!0);
|
|
577
578
|
}
|
|
578
|
-
}),
|
|
579
|
+
}), B(h, {
|
|
579
580
|
enabled: !g,
|
|
580
581
|
closeDelay: _
|
|
581
582
|
});
|
|
@@ -595,7 +596,7 @@ var Me = {
|
|
|
595
596
|
],
|
|
596
597
|
props: [
|
|
597
598
|
m,
|
|
598
|
-
|
|
599
|
+
V(f),
|
|
599
600
|
o
|
|
600
601
|
],
|
|
601
602
|
stateAttributesMapping: Me
|
|
@@ -604,8 +605,8 @@ var Me = {
|
|
|
604
605
|
process.env.NODE_ENV !== "production" && (Ne.displayName = "TooltipPopup");
|
|
605
606
|
//#endregion
|
|
606
607
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/tooltip/arrow/TooltipArrow.mjs
|
|
607
|
-
var Pe = /*#__PURE__*/
|
|
608
|
-
let { render: r, className: i, style: a, ...o } = e, s =
|
|
608
|
+
var Pe = /*#__PURE__*/ K.forwardRef(function(e, t) {
|
|
609
|
+
let { render: r, className: i, style: a, ...o } = e, s = Z(), { arrowRef: c, side: l, align: u, arrowUncentered: d, arrowStyles: f } = Ae();
|
|
609
610
|
return n("div", e, {
|
|
610
611
|
state: {
|
|
611
612
|
open: s.useState("open"),
|
|
@@ -619,23 +620,23 @@ var Pe = /*#__PURE__*/ G.forwardRef(function(e, t) {
|
|
|
619
620
|
style: f,
|
|
620
621
|
"aria-hidden": !0
|
|
621
622
|
}, o],
|
|
622
|
-
stateAttributesMapping:
|
|
623
|
+
stateAttributesMapping: k
|
|
623
624
|
});
|
|
624
625
|
});
|
|
625
626
|
process.env.NODE_ENV !== "production" && (Pe.displayName = "TooltipArrow");
|
|
626
627
|
//#endregion
|
|
627
628
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/tooltip/provider/TooltipProvider.mjs
|
|
628
629
|
var Fe = function(e) {
|
|
629
|
-
let { delay: t, closeDelay: n, timeout: r = 400 } = e, i =
|
|
630
|
+
let { delay: t, closeDelay: n, timeout: r = 400 } = e, i = K.useMemo(() => ({
|
|
630
631
|
delay: t,
|
|
631
632
|
closeDelay: n
|
|
632
|
-
}), [t, n]), a =
|
|
633
|
+
}), [t, n]), a = K.useMemo(() => ({
|
|
633
634
|
open: t,
|
|
634
635
|
close: n
|
|
635
636
|
}), [t, n]);
|
|
636
|
-
return /*#__PURE__*/
|
|
637
|
+
return /*#__PURE__*/ q(Q.Provider, {
|
|
637
638
|
value: i,
|
|
638
|
-
children: /*#__PURE__*/
|
|
639
|
+
children: /*#__PURE__*/ q(de, {
|
|
639
640
|
delay: a,
|
|
640
641
|
timeoutMs: r,
|
|
641
642
|
children: e.children
|
|
@@ -646,36 +647,36 @@ process.env.NODE_ENV !== "production" && (Fe.displayName = "TooltipProvider");
|
|
|
646
647
|
//#endregion
|
|
647
648
|
//#region lib/components/ui/atoms/tooltip.tsx
|
|
648
649
|
function Ie({ delay: e = 0, ...t }) {
|
|
649
|
-
return /* @__PURE__ */
|
|
650
|
+
return /* @__PURE__ */ q(Fe, {
|
|
650
651
|
"data-slot": "tooltip-provider",
|
|
651
652
|
delay: e,
|
|
652
653
|
...t
|
|
653
654
|
});
|
|
654
655
|
}
|
|
655
656
|
function Le({ ...e }) {
|
|
656
|
-
return /* @__PURE__ */
|
|
657
|
+
return /* @__PURE__ */ q(ye, {
|
|
657
658
|
"data-slot": "tooltip",
|
|
658
659
|
...e
|
|
659
660
|
});
|
|
660
661
|
}
|
|
661
662
|
function Re({ ...e }) {
|
|
662
|
-
return /* @__PURE__ */
|
|
663
|
+
return /* @__PURE__ */ q(Ee, {
|
|
663
664
|
"data-slot": "tooltip-trigger",
|
|
664
665
|
...e
|
|
665
666
|
});
|
|
666
667
|
}
|
|
667
668
|
function ze({ className: e, side: t = "top", sideOffset: n = 4, align: r = "center", alignOffset: i = 0, children: a, ...o }) {
|
|
668
|
-
return /* @__PURE__ */
|
|
669
|
+
return /* @__PURE__ */ q(Oe, { children: /* @__PURE__ */ q(je, {
|
|
669
670
|
align: r,
|
|
670
671
|
alignOffset: i,
|
|
671
672
|
className: "isolate z-50",
|
|
672
673
|
side: t,
|
|
673
674
|
sideOffset: n,
|
|
674
|
-
children: /* @__PURE__ */
|
|
675
|
+
children: /* @__PURE__ */ J(Ne, {
|
|
675
676
|
className: v("data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:fade-in-0 data-open:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 overflow-visible rounded-md border border-foreground/10 bg-background px-3 py-1.5 text-foreground text-xs shadow-md has-data-[slot=kbd]:pr-1.5 data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm dark:border-border", e),
|
|
676
677
|
"data-slot": "tooltip-content",
|
|
677
678
|
...o,
|
|
678
|
-
children: [a, /* @__PURE__ */
|
|
679
|
+
children: [a, /* @__PURE__ */ q(Pe, { className: "z-50 size-2.5 translate-y-[calc(-50%-1px)] rotate-45 rounded-[2px] border-foreground/10 bg-background fill-background data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-start]:top-1/2! data-[side=left]:top-1/2! data-[side=right]:top-1/2! data-[side=inline-start]:-right-1 data-[side=left]:-right-1 data-[side=top]:-bottom-2.5 data-[side=inline-end]:-left-1 data-[side=right]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:-translate-y-1/2 data-[side=right]:-translate-y-1/2 data-[side=bottom]:border-t data-[side=left]:border-t data-[side=left]:border-r data-[side=top]:border-r data-[side=right]:border-b data-[side=top]:border-b data-[side=bottom]:border-l data-[side=right]:border-l dark:border-border dark:bg-background dark:fill-background" })]
|
|
679
680
|
})
|
|
680
681
|
}) });
|
|
681
682
|
}
|