@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.
Files changed (156) hide show
  1. package/dist/{clamp-DV0oJUnl.js → CSPContext-_3HefTUC.js} +1 -6
  2. package/dist/{DialogRoot-xodRxCJ6.js → DialogRoot-DuiSPdsZ.js} +1 -1
  3. package/dist/{DialogTrigger-BRWKaMYv.js → DialogTrigger-DGGP-2Oc.js} +109 -108
  4. package/dist/{FloatingPortalLite-e0IaokaG.js → FloatingPortalLite-D5nFwFgJ.js} +1 -1
  5. package/dist/ReactStore-C3H8e2ha.js +600 -0
  6. package/dist/{Toggle-waFXW8db.js → Toggle-BdxyK_Ln.js} +1 -1
  7. package/dist/{accordion-DimUia61.js → accordion-BP9Lgkg8.js} +18 -18
  8. package/dist/{alert-dialog-BiDZwtP2.js → alert-dialog-1bUE2clB.js} +1 -1
  9. package/dist/assets/index.css +1 -1
  10. package/dist/assets/tokens.css +1 -1
  11. package/dist/assets/variables.css +1 -1
  12. package/dist/{avatar-B-lhJ-Gz.js → avatar-DbL6b01k.js} +4 -3
  13. package/dist/{checkbox-CZViOGvt.js → checkbox-DB9O_Iw9.js} +96 -85
  14. package/dist/clamp-BT4ayAnN.js +6 -0
  15. package/dist/{collapsible-DlF1q_cg.js → collapsible-DP7Fb-Lu.js} +17 -17
  16. package/dist/components/index.js +257 -251
  17. package/dist/components/ui/atoms/accordion.js +1 -1
  18. package/dist/components/ui/atoms/alert-dialog.js +1 -1
  19. package/dist/components/ui/atoms/avatar.js +1 -1
  20. package/dist/components/ui/atoms/checkbox.d.ts +16 -2
  21. package/dist/components/ui/atoms/checkbox.d.ts.map +1 -1
  22. package/dist/components/ui/atoms/checkbox.js +2 -2
  23. package/dist/components/ui/atoms/clear-button.d.ts +13 -0
  24. package/dist/components/ui/atoms/clear-button.d.ts.map +1 -0
  25. package/dist/components/ui/atoms/clear-button.js +23 -0
  26. package/dist/components/ui/atoms/collapsible.js +1 -1
  27. package/dist/components/ui/atoms/dialog.js +2 -2
  28. package/dist/components/ui/atoms/dropdown-menu.js +1 -1
  29. package/dist/components/ui/atoms/hover-card.js +1 -1
  30. package/dist/components/ui/atoms/icon-tile.d.ts +10 -0
  31. package/dist/components/ui/atoms/icon-tile.d.ts.map +1 -0
  32. package/dist/components/ui/atoms/icon-tile.js +25 -0
  33. package/dist/components/ui/atoms/index.d.ts +3 -1
  34. package/dist/components/ui/atoms/index.d.ts.map +1 -1
  35. package/dist/components/ui/atoms/index.js +210 -208
  36. package/dist/components/ui/atoms/input-group.js +1 -1
  37. package/dist/components/ui/atoms/input.js +1 -1
  38. package/dist/components/ui/atoms/mobile-tooltip.js +2 -2
  39. package/dist/components/ui/atoms/popover.js +1 -1
  40. package/dist/components/ui/atoms/progress.js +1 -1
  41. package/dist/components/ui/atoms/radio-group.js +1 -1
  42. package/dist/components/ui/atoms/scroll-area.js +1 -1
  43. package/dist/components/ui/atoms/scroll-button.js +1 -1
  44. package/dist/components/ui/atoms/scroll-to-bottom-button.d.ts +24 -0
  45. package/dist/components/ui/atoms/scroll-to-bottom-button.d.ts.map +1 -0
  46. package/dist/components/ui/atoms/scroll-to-bottom-button.js +31 -0
  47. package/dist/components/ui/atoms/select.js +1 -1
  48. package/dist/components/ui/atoms/sheet.js +2 -2
  49. package/dist/components/ui/atoms/sidebar.js +2 -2
  50. package/dist/components/ui/atoms/slider.js +1 -1
  51. package/dist/components/ui/atoms/switch.js +1 -1
  52. package/dist/components/ui/atoms/tabs.js +1 -1
  53. package/dist/components/ui/atoms/toggle-group.js +1 -1
  54. package/dist/components/ui/atoms/toggle.js +1 -1
  55. package/dist/components/ui/atoms/tooltip.js +1 -1
  56. package/dist/components/ui/blocks/demo.js +4 -4
  57. package/dist/components/ui/index.js +257 -251
  58. package/dist/components/ui/molecules/avatar-stack.d.ts +32 -0
  59. package/dist/components/ui/molecules/avatar-stack.d.ts.map +1 -0
  60. package/dist/components/ui/molecules/avatar-stack.js +91 -0
  61. package/dist/components/ui/molecules/callout.d.ts +20 -0
  62. package/dist/components/ui/molecules/callout.d.ts.map +1 -0
  63. package/dist/components/ui/molecules/callout.js +39 -0
  64. package/dist/components/ui/molecules/chat-history-item.js +1 -1
  65. package/dist/components/ui/molecules/chip-body.d.ts +21 -0
  66. package/dist/components/ui/molecules/chip-body.d.ts.map +1 -0
  67. package/dist/components/ui/molecules/chip-body.js +21 -0
  68. package/dist/components/ui/molecules/client-secret-field.js +1 -1
  69. package/dist/components/ui/molecules/confirm-popover.js +1 -1
  70. package/dist/components/ui/molecules/date-time-picker.js +2 -2
  71. package/dist/components/ui/molecules/filter-chip-group.d.ts +26 -0
  72. package/dist/components/ui/molecules/filter-chip-group.d.ts.map +1 -0
  73. package/dist/components/ui/molecules/{mcp-server-picker/category-filter.js → filter-chip-group.js} +8 -7
  74. package/dist/components/ui/molecules/index.d.ts +14 -6
  75. package/dist/components/ui/molecules/index.d.ts.map +1 -1
  76. package/dist/components/ui/molecules/index.js +39 -35
  77. package/dist/components/ui/molecules/mcp-server-picker/recommended-toolkits-chip.d.ts.map +1 -1
  78. package/dist/components/ui/molecules/mcp-server-picker/recommended-toolkits-chip.js +18 -15
  79. package/dist/components/ui/molecules/mcp-server-picker/recommended-tools.js +2 -2
  80. package/dist/components/ui/molecules/mcp-server-picker/search-scope-tabs.js +1 -1
  81. package/dist/components/ui/molecules/mcp-server-picker/server-avatar-stack.d.ts +1 -1
  82. package/dist/components/ui/molecules/mcp-server-picker/server-avatar-stack.d.ts.map +1 -1
  83. package/dist/components/ui/molecules/mcp-server-picker/server-avatar-stack.js +29 -81
  84. package/dist/components/ui/molecules/mcp-server-picker/server-card.js +1 -1
  85. package/dist/components/ui/molecules/mcp-server-picker/tool-card.js +1 -1
  86. package/dist/components/ui/molecules/mcp-server-picker/tool-recommendations.d.ts +12 -0
  87. package/dist/components/ui/molecules/mcp-server-picker/tool-recommendations.d.ts.map +1 -0
  88. package/dist/components/ui/molecules/mcp-server-picker/{tool-search-band.js → tool-recommendations.js} +6 -6
  89. package/dist/components/ui/molecules/mcp-server-picker/toolkit-avatar.d.ts +6 -6
  90. package/dist/components/ui/molecules/mcp-server-picker/toolkit-avatar.d.ts.map +1 -1
  91. package/dist/components/ui/molecules/mcp-server-picker/toolkit-avatar.js +21 -33
  92. package/dist/components/ui/molecules/mcp-server-picker/toolkit-chip.d.ts.map +1 -1
  93. package/dist/components/ui/molecules/mcp-server-picker/toolkit-chip.js +19 -22
  94. package/dist/components/ui/molecules/mcp-server-picker/unoptimized-match-card.js +1 -1
  95. package/dist/components/ui/molecules/message.js +2 -2
  96. package/dist/components/ui/molecules/prompt-input.js +1 -1
  97. package/dist/components/ui/molecules/removable-chip.d.ts.map +1 -0
  98. package/dist/components/ui/{atoms → molecules}/removable-chip.js +1 -1
  99. package/dist/components/ui/molecules/requirement-badges.js +1 -1
  100. package/dist/components/ui/molecules/tool-call-accordion.js +2 -2
  101. package/dist/components/ui/molecules/tool-card.js +2 -2
  102. package/dist/components/ui/molecules/toolkit-card.js +1 -1
  103. package/dist/components/ui/molecules/undo-toast.d.ts +47 -0
  104. package/dist/components/ui/molecules/undo-toast.d.ts.map +1 -0
  105. package/dist/components/ui/molecules/undo-toast.js +3 -0
  106. package/dist/components/ui/molecules/user-nav.js +2 -2
  107. package/dist/components/ui/organisms/mcp-selection-summary-bar.d.ts.map +1 -1
  108. package/dist/components/ui/organisms/mcp-selection-summary-bar.js +27 -30
  109. package/dist/{dropdown-menu-CWWN1cXs.js → dropdown-menu-ecggVuhu.js} +202 -199
  110. package/dist/{getPseudoElementBounds-D_dlkPnQ.js → getPseudoElementBounds-BOe22aYl.js} +3 -3
  111. package/dist/{hover-card-GELKDadU.js → hover-card-CGLPPPPP.js} +71 -70
  112. package/dist/{input-DZfZK6b1.js → input-DZTqcpe-.js} +1 -1
  113. package/dist/main.js +263 -257
  114. package/dist/metadata/oauth-providers.d.ts +2 -0
  115. package/dist/metadata/oauth-providers.d.ts.map +1 -1
  116. package/dist/metadata/oauth-providers.js +153 -141
  117. package/dist/{popover-Cne_hQUh.js → popover-CpLkQtT5.js} +129 -128
  118. package/dist/popupStateMapping-XiLS0Jku.js +643 -0
  119. package/dist/{progress-D71iUjvg.js → progress-BqG0PtAD.js} +1 -1
  120. package/dist/{radio-group-CTqA-p0w.js → radio-group-BpMluqfv.js} +8 -7
  121. package/dist/{safePolygon-os2F06tc.js → safePolygon-DmV1hDsw.js} +35 -34
  122. package/dist/{scroll-area-C0KbhRES.js → scroll-area-D7iOy7xj.js} +4 -3
  123. package/dist/{scrollEdges-CHZpP0us.js → scrollEdges-Dck9qFyQ.js} +1 -1
  124. package/dist/{select-RvAj5g6e.js → select-DFWNXxvZ.js} +179 -176
  125. package/dist/{slider-Bhn1ogwZ.js → slider-ClXWRpwI.js} +4 -3
  126. package/dist/{store-C-KXBzZ0.js → store-D7k1qIkZ.js} +23 -22
  127. package/dist/{switch-D8M0xvzp.js → switch-DlxZDt6o.js} +3 -3
  128. package/dist/{tabs-ttkDuwww.js → tabs-Cj3LY-7F.js} +9 -8
  129. package/dist/{toggle-group-CL_MBwuU.js → toggle-group-CmP4iHEJ.js} +1 -1
  130. package/dist/{tooltip-ZIywOFGf.js → tooltip-BUR7V5Aa.js} +197 -196
  131. package/dist/{ui-CttBuHXi.js → ui-46pgiw5T.js} +2 -2
  132. package/dist/undo-toast-Cf4T6ToX.js +898 -0
  133. package/dist/{useAnchoredPopupScrollLock-a2b_Frjv.js → useAnchoredPopupScrollLock-CnoPUwXv.js} +1 -1
  134. package/dist/{useAriaLabelledBy-WyUZP7Yf.js → useAriaLabelledBy-DJZioWd6.js} +1 -1
  135. package/dist/useBaseUiId-CXSJgVcI.js +8 -0
  136. package/dist/{useCollapsiblePanel-B6XZh6zH.js → useCollapsiblePanel-BPbcE70S.js} +15 -14
  137. package/dist/{useFocus-DwJfNYN6.js → useFocus-B_SrhX9q.js} +10 -10
  138. package/dist/{useBaseUiId-voePHgyX.js → useId-Bzr7_bed.js} +1 -6
  139. package/dist/{useLabelableId-CC2YaILf.js → useLabelableId-9jrDGk5d.js} +1 -1
  140. package/dist/useOpenChangeComplete-CVIwfcpl.js +80 -0
  141. package/dist/{useOpenInteractionType-DQhvPqO3.js → useOpenInteractionType-INvHftZi.js} +29 -28
  142. package/dist/{usePositioner-DkeyI5Le.js → usePositioner-CaLGGc-z.js} +98 -97
  143. package/dist/useTransitionStatus-CCIoL5RH.js +51 -0
  144. package/dist/{useTriggerFocusGuards-Qi8iK-AK.js → useTriggerFocusGuards-Dlv8KvSm.js} +7 -7
  145. package/package.json +1 -1
  146. package/dist/components/ui/atoms/removable-chip.d.ts.map +0 -1
  147. package/dist/components/ui/molecules/mcp-server-picker/category-filter-menu.d.ts +0 -31
  148. package/dist/components/ui/molecules/mcp-server-picker/category-filter-menu.d.ts.map +0 -1
  149. package/dist/components/ui/molecules/mcp-server-picker/category-filter-menu.js +0 -106
  150. package/dist/components/ui/molecules/mcp-server-picker/category-filter.d.ts +0 -18
  151. package/dist/components/ui/molecules/mcp-server-picker/category-filter.d.ts.map +0 -1
  152. package/dist/components/ui/molecules/mcp-server-picker/tool-search-band.d.ts +0 -12
  153. package/dist/components/ui/molecules/mcp-server-picker/tool-search-band.d.ts.map +0 -1
  154. package/dist/popupStateMapping-C8W76brO.js +0 -1221
  155. package/dist/useOpenChangeComplete-Bs6gnxd9.js +0 -127
  156. /package/dist/components/ui/{atoms → molecules}/removable-chip.d.ts +0 -0
@@ -0,0 +1,600 @@
1
+ "use client";
2
+ import { t as e } from "./rolldown-runtime-Dqa2HsxW.js";
3
+ import { t } from "./useIsoLayoutEffect-4LGv3HzC.js";
4
+ import { c as n, f as r, o as i, s as a, t as o, u as s } from "./useRenderElement-BToElZ97.js";
5
+ import { t as c } from "./useStableCallback-CrM0Nb2q.js";
6
+ import { t as l } from "./useId-Bzr7_bed.js";
7
+ import { t as u } from "./createBaseUIEventDetails-C_dwdqj4.js";
8
+ import { a as d, f, g as p, m, t as h } from "./floating-ui.utils.dom-5U5b4xPf.js";
9
+ import { t as g } from "./addEventListener-BlQH_qk1.js";
10
+ import { t as _ } from "./owner-CyZnQOKt.js";
11
+ import { N as v, i as y } from "./composite-B-tEa-Zg.js";
12
+ import { t as b } from "./engine-ChH4dTze.js";
13
+ import { n as x, t as S } from "./shadowDom-BACsbimN.js";
14
+ import { n as C, t as w } from "./shim-BX-2V17R.js";
15
+ import { t as ee } from "./visuallyHidden-Cq5CW65k.js";
16
+ import * as T from "react";
17
+ import { jsx as E, jsxs as te } from "react/jsx-runtime";
18
+ import * as D from "react-dom";
19
+ //#region ../../node_modules/.bun/@base-ui+utils@0.3.1+fce4ea6354698f9c/node_modules/@base-ui/utils/platform/screen-reader.mjs
20
+ var ne = v;
21
+ //#endregion
22
+ //#region ../../node_modules/.bun/@base-ui+utils@0.3.1+fce4ea6354698f9c/node_modules/@base-ui/utils/mergeCleanups.mjs
23
+ function O(...e) {
24
+ return () => {
25
+ for (let t = 0; t < e.length; t += 1) {
26
+ let n = e[t];
27
+ n && n();
28
+ }
29
+ };
30
+ }
31
+ //#endregion
32
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/utils/FocusGuard.mjs
33
+ var k = /*#__PURE__*/ T.forwardRef(function(e, n) {
34
+ let [r, i] = T.useState();
35
+ t(() => {
36
+ ne && b && i("button");
37
+ }, []);
38
+ let a = {
39
+ tabIndex: 0,
40
+ role: r
41
+ };
42
+ return /*#__PURE__*/ E("span", {
43
+ ...e,
44
+ ref: n,
45
+ style: ee,
46
+ "aria-hidden": r ? void 0 : !0,
47
+ ...a,
48
+ "data-base-ui-focus-guard": ""
49
+ });
50
+ });
51
+ process.env.NODE_ENV !== "production" && (k.displayName = "FocusGuard");
52
+ //#endregion
53
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/utils/tabbable.mjs
54
+ var re = "a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable=\"false\"]),audio[controls],video[controls]";
55
+ function ie(e) {
56
+ let t = e.assignedSlot;
57
+ if (t) return t;
58
+ if (e.parentElement) return e.parentElement;
59
+ let n = e.getRootNode();
60
+ return p(n) ? n.host : null;
61
+ }
62
+ function A(e) {
63
+ for (let t of Array.from(e.children)) if (d(t) === "summary") return t;
64
+ return null;
65
+ }
66
+ function ae(e, t) {
67
+ let n = A(t);
68
+ return !!n && (e === n || x(n, e));
69
+ }
70
+ function oe(e) {
71
+ let t = e ? d(e) : "";
72
+ return e != null && e.matches(re) && (t !== "summary" || e.parentElement != null && d(e.parentElement) === "details" && A(e.parentElement) === e) && (t !== "details" || A(e) == null) && (t !== "input" || e.type !== "hidden");
73
+ }
74
+ function j(e) {
75
+ if (!oe(e) || !e.isConnected || e.matches(":disabled")) return !1;
76
+ for (let t = e; t; t = ie(t)) {
77
+ let n = t !== e, r = d(t) === "slot";
78
+ if (t.hasAttribute("inert") || n && d(t) === "details" && !t.open && !ae(e, t) || t.hasAttribute("hidden") || !r && !se(t, n)) return !1;
79
+ }
80
+ return !0;
81
+ }
82
+ function se(e, t) {
83
+ let n = h(e);
84
+ return t ? n.display !== "none" : y(e, n);
85
+ }
86
+ function M(e) {
87
+ let t = e.tabIndex;
88
+ if (t < 0) {
89
+ let t = d(e);
90
+ if (t === "details" || t === "audio" || t === "video" || f(e) && e.isContentEditable) return 0;
91
+ }
92
+ return t;
93
+ }
94
+ function N(e) {
95
+ if (d(e) !== "input") return null;
96
+ let t = e;
97
+ return t.type === "radio" && t.name !== "" ? t : null;
98
+ }
99
+ function ce(e, t) {
100
+ let n = N(e);
101
+ if (!n) return !0;
102
+ let r = t.find((e) => {
103
+ let t = N(e);
104
+ return t?.name === n.name && t.form === n.form && t.checked;
105
+ });
106
+ return r ? r === n : t.find((e) => {
107
+ let t = N(e);
108
+ return t?.name === n.name && t.form === n.form;
109
+ }) === n;
110
+ }
111
+ function P(e) {
112
+ if (f(e) && d(e) === "slot") {
113
+ let t = e.assignedElements({ flatten: !0 });
114
+ if (t.length > 0) return t;
115
+ }
116
+ return f(e) && e.shadowRoot ? Array.from(e.shadowRoot.children) : Array.from(e.children);
117
+ }
118
+ function F(e, t) {
119
+ P(e).forEach((e) => {
120
+ oe(e) && t.push(e), F(e, t);
121
+ });
122
+ }
123
+ function I(e, t, n) {
124
+ P(e).forEach((e) => {
125
+ f(e) && e.matches(t) && n.push(e), I(e, t, n);
126
+ });
127
+ }
128
+ function le(e) {
129
+ return j(e) && M(e) >= 0;
130
+ }
131
+ function L(e) {
132
+ let t = [];
133
+ return F(e, t), t.filter(j);
134
+ }
135
+ function R(e) {
136
+ let t = L(e);
137
+ return t.filter((e) => M(e) >= 0 && ce(e, t));
138
+ }
139
+ function z(e, t) {
140
+ let n = R(e), r = n.length;
141
+ if (r === 0) return;
142
+ let i = S(_(e)), a = n.indexOf(i);
143
+ return n[a === -1 ? t === 1 ? 0 : r - 1 : a + t];
144
+ }
145
+ function B(e) {
146
+ return z(_(e).body, 1) || e;
147
+ }
148
+ function V(e) {
149
+ return z(_(e).body, -1) || e;
150
+ }
151
+ function H(e, t) {
152
+ if (!e) return null;
153
+ let n = R(_(e).body), r = n.length;
154
+ if (r === 0) return null;
155
+ let i = n.indexOf(e);
156
+ return i === -1 ? null : n[(i + t + r) % r];
157
+ }
158
+ function ue(e) {
159
+ return H(e, 1);
160
+ }
161
+ function de(e) {
162
+ return H(e, -1);
163
+ }
164
+ function U(e, t) {
165
+ let n = t || e.currentTarget, r = e.relatedTarget;
166
+ return !r || !x(n, r);
167
+ }
168
+ function fe(e) {
169
+ R(e).forEach((e) => {
170
+ e.dataset.tabindex = e.getAttribute("tabindex") || "", e.setAttribute("tabindex", "-1");
171
+ });
172
+ }
173
+ function W(e) {
174
+ let t = [];
175
+ I(e, "[data-tabindex]", t), t.forEach((e) => {
176
+ let t = e.dataset.tabindex;
177
+ delete e.dataset.tabindex, t ? e.setAttribute("tabindex", t) : e.removeAttribute("tabindex");
178
+ });
179
+ }
180
+ //#endregion
181
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/utils/createAttribute.mjs
182
+ function G(e) {
183
+ return `data-base-ui-${e}`;
184
+ }
185
+ //#endregion
186
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/internals/constants.mjs
187
+ var pe = { style: { transition: "none" } }, me = "data-base-ui-click-trigger", he = "data-base-ui-swipe-ignore", ge = "data-swipe-ignore", _e = `[${he}]`, ve = `[${ge}]`, ye = { fallbackAxisSide: "none" }, be = { fallbackAxisSide: "end" }, xe = {
188
+ clipPath: "inset(50%)",
189
+ position: "fixed",
190
+ top: 0,
191
+ left: 0
192
+ }, K = /*#__PURE__*/ T.createContext(null);
193
+ process.env.NODE_ENV !== "production" && (K.displayName = "PortalContext");
194
+ var q = () => T.useContext(K), Se = G("portal");
195
+ function J(e = {}) {
196
+ let { ref: n, container: r, componentProps: a = i, elementProps: s } = e, u = l(), d = q()?.portalNode, [f, p] = T.useState(null), [h, g] = T.useState(null), _ = c((e) => {
197
+ e !== null && g(e);
198
+ }), v = T.useRef(null);
199
+ t(() => {
200
+ if (r === null) {
201
+ v.current && (v.current = null, g(null), p(null));
202
+ return;
203
+ }
204
+ if (u == null) return;
205
+ let e = (r && (m(r) ? r : r.current)) ?? d ?? document.body;
206
+ if (e == null) {
207
+ v.current && (v.current = null, g(null), p(null));
208
+ return;
209
+ }
210
+ v.current !== e && (v.current = e, g(null), p(e));
211
+ }, [
212
+ r,
213
+ d,
214
+ u
215
+ ]);
216
+ let y = o("div", a, {
217
+ ref: [n, _],
218
+ props: [{
219
+ id: u,
220
+ [Se]: ""
221
+ }, s]
222
+ });
223
+ return {
224
+ portalNode: h,
225
+ portalSubtree: f && y ? /*#__PURE__*/ D.createPortal(y, f) : null
226
+ };
227
+ }
228
+ var Y = /*#__PURE__*/ T.forwardRef(function(e, n) {
229
+ let { render: r, className: i, style: a, children: o, container: s, renderGuards: c, ...l } = e, { portalNode: d, portalSubtree: f } = J({
230
+ container: s,
231
+ ref: n,
232
+ componentProps: e,
233
+ elementProps: l
234
+ }), p = T.useRef(null), m = T.useRef(null), h = T.useRef(null), _ = T.useRef(null), [v, y] = T.useState(null), b = T.useRef(!1), x = v?.modal, S = v?.open, C = typeof c == "boolean" ? c : !!v && !v.modal && v.open && !!d;
235
+ T.useEffect(() => {
236
+ if (!d || x) return;
237
+ function e(e) {
238
+ d && e.relatedTarget && U(e) && (e.type === "focusin" ? b.current &&= (W(d), !1) : (fe(d), b.current = !0));
239
+ }
240
+ return O(g(d, "focusin", e, !0), g(d, "focusout", e, !0));
241
+ }, [d, x]), t(() => {
242
+ !d || S !== !0 || !b.current || (W(d), b.current = !1);
243
+ }, [S, d]);
244
+ let w = T.useMemo(() => ({
245
+ beforeOutsideRef: p,
246
+ afterOutsideRef: m,
247
+ beforeInsideRef: h,
248
+ afterInsideRef: _,
249
+ portalNode: d,
250
+ setFocusManagerState: y
251
+ }), [d]);
252
+ return /*#__PURE__*/ te(T.Fragment, { children: [f, /*#__PURE__*/ te(K.Provider, {
253
+ value: w,
254
+ children: [
255
+ C && d && /*#__PURE__*/ E(k, {
256
+ "data-type": "outside",
257
+ ref: p,
258
+ onFocus: (e) => {
259
+ U(e, d) ? h.current?.focus() : V(v ? v.domReference : null)?.focus();
260
+ }
261
+ }),
262
+ C && d && /*#__PURE__*/ E("span", {
263
+ "aria-owns": d.id,
264
+ style: xe
265
+ }),
266
+ d && /*#__PURE__*/ D.createPortal(o, d),
267
+ C && d && /*#__PURE__*/ E(k, {
268
+ "data-type": "outside",
269
+ ref: m,
270
+ onFocus: (e) => {
271
+ U(e, d) ? _.current?.focus() : (B(v ? v.domReference : null)?.focus(), v?.closeOnFocusOut && v?.onOpenChange(!1, u("focus-out", e.nativeEvent)));
272
+ }
273
+ })
274
+ ]
275
+ })] });
276
+ });
277
+ process.env.NODE_ENV !== "production" && (Y.displayName = "FloatingPortal");
278
+ //#endregion
279
+ //#region ../../node_modules/.bun/@base-ui+utils@0.3.1+fce4ea6354698f9c/node_modules/@base-ui/utils/store/createSelector.mjs
280
+ var Ce = (e, t, n, r, i, a, ...o) => {
281
+ if (o.length > 0) throw Error(process.env.NODE_ENV === "production" ? s(1) : "Unsupported number of selectors");
282
+ let c;
283
+ if (e && t && n && r && i && a) c = (o, s, c, l) => a(e(o, s, c, l), t(o, s, c, l), n(o, s, c, l), r(o, s, c, l), i(o, s, c, l), s, c, l);
284
+ else if (e && t && n && r && i) c = (a, o, s, c) => i(e(a, o, s, c), t(a, o, s, c), n(a, o, s, c), r(a, o, s, c), o, s, c);
285
+ else if (e && t && n && r) c = (i, a, o, s) => r(e(i, a, o, s), t(i, a, o, s), n(i, a, o, s), a, o, s);
286
+ else if (e && t && n) c = (r, i, a, o) => n(e(r, i, a, o), t(r, i, a, o), i, a, o);
287
+ else if (e && t) c = (n, r, i, a) => t(e(n, r, i, a), r, i, a);
288
+ else if (e) c = e;
289
+ else throw Error("Missing arguments");
290
+ return c;
291
+ }, we = /* @__PURE__ */ e(((e) => {
292
+ var t = C(), n = w();
293
+ function r(e, t) {
294
+ return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
295
+ }
296
+ var i = typeof Object.is == "function" ? Object.is : r, a = n.useSyncExternalStore, o = t.useRef, s = t.useEffect, c = t.useMemo, l = t.useDebugValue;
297
+ e.useSyncExternalStoreWithSelector = function(e, t, n, r, u) {
298
+ var d = o(null);
299
+ if (d.current === null) {
300
+ var f = {
301
+ hasValue: !1,
302
+ value: null
303
+ };
304
+ d.current = f;
305
+ } else f = d.current;
306
+ d = c(function() {
307
+ function e(e) {
308
+ if (!a) {
309
+ if (a = !0, o = e, e = r(e), u !== void 0 && f.hasValue) {
310
+ var t = f.value;
311
+ if (u(t, e)) return s = t;
312
+ }
313
+ return s = e;
314
+ }
315
+ if (t = s, i(o, e)) return t;
316
+ var n = r(e);
317
+ return u !== void 0 && u(t, n) ? (o = e, t) : (o = e, s = n);
318
+ }
319
+ var a = !1, o, s, c = n === void 0 ? null : n;
320
+ return [function() {
321
+ return e(t());
322
+ }, c === null ? void 0 : function() {
323
+ return e(c());
324
+ }];
325
+ }, [
326
+ t,
327
+ n,
328
+ r,
329
+ u
330
+ ]);
331
+ var p = a(e, d[0], d[1]);
332
+ return s(function() {
333
+ f.hasValue = !0, f.value = p;
334
+ }, [p]), l(p), p;
335
+ };
336
+ })), Te = /* @__PURE__ */ e(((e) => {
337
+ process.env.NODE_ENV !== "production" && (function() {
338
+ function t(e, t) {
339
+ return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
340
+ }
341
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
342
+ var n = C(), r = w(), i = typeof Object.is == "function" ? Object.is : t, a = r.useSyncExternalStore, o = n.useRef, s = n.useEffect, c = n.useMemo, l = n.useDebugValue;
343
+ e.useSyncExternalStoreWithSelector = function(e, t, n, r, u) {
344
+ var d = o(null);
345
+ if (d.current === null) {
346
+ var f = {
347
+ hasValue: !1,
348
+ value: null
349
+ };
350
+ d.current = f;
351
+ } else f = d.current;
352
+ d = c(function() {
353
+ function e(e) {
354
+ if (!a) {
355
+ if (a = !0, o = e, e = r(e), u !== void 0 && f.hasValue) {
356
+ var t = f.value;
357
+ if (u(t, e)) return s = t;
358
+ }
359
+ return s = e;
360
+ }
361
+ if (t = s, i(o, e)) return t;
362
+ var n = r(e);
363
+ return u !== void 0 && u(t, n) ? (o = e, t) : (o = e, s = n);
364
+ }
365
+ var a = !1, o, s, c = n === void 0 ? null : n;
366
+ return [function() {
367
+ return e(t());
368
+ }, c === null ? void 0 : function() {
369
+ return e(c());
370
+ }];
371
+ }, [
372
+ t,
373
+ n,
374
+ r,
375
+ u
376
+ ]);
377
+ var p = a(e, d[0], d[1]);
378
+ return s(function() {
379
+ f.hasValue = !0, f.value = p;
380
+ }, [p]), l(p), p;
381
+ }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
382
+ })();
383
+ })), Ee = /* @__PURE__ */ e(((e, t) => {
384
+ process.env.NODE_ENV === "production" ? t.exports = we() : t.exports = Te();
385
+ })), X = w(), De = Ee(), Z = [], Q = void 0;
386
+ function Oe() {
387
+ return Q;
388
+ }
389
+ function ke(e) {
390
+ Z.push(e);
391
+ }
392
+ function Ae(e) {
393
+ let t = (t, n) => {
394
+ let i = r(Me).current, a;
395
+ try {
396
+ Q = i;
397
+ for (let e of Z) e.before(i);
398
+ a = e(t, n);
399
+ for (let e of Z) e.after(i);
400
+ i.didInitialize = !0;
401
+ } finally {
402
+ Q = void 0;
403
+ }
404
+ return a;
405
+ };
406
+ return t.displayName = e.displayName || e.name, t;
407
+ }
408
+ function je(e) {
409
+ return /*#__PURE__*/ T.forwardRef(Ae(e));
410
+ }
411
+ function Me() {
412
+ return { didInitialize: !1 };
413
+ }
414
+ //#endregion
415
+ //#region ../../node_modules/.bun/@base-ui+utils@0.3.1+fce4ea6354698f9c/node_modules/@base-ui/utils/store/useStore.mjs
416
+ var Ne = n(19) ? Fe : Ie;
417
+ function $(e, t, n, r, i) {
418
+ return Ne(e, t, n, r, i);
419
+ }
420
+ function Pe(e, t, n, r, i) {
421
+ let a = T.useCallback(() => t(e.getSnapshot(), n, r, i), [
422
+ e,
423
+ t,
424
+ n,
425
+ r,
426
+ i
427
+ ]);
428
+ return (0, X.useSyncExternalStore)(e.subscribe, a, a);
429
+ }
430
+ ke({
431
+ before(e) {
432
+ e.syncIndex = 0, e.didInitialize || (e.syncTick = 1, e.syncHooks = [], e.didChangeStore = !0, e.getSnapshot = () => {
433
+ let t = !1;
434
+ for (let n = 0; n < e.syncHooks.length; n += 1) {
435
+ let r = e.syncHooks[n], i = r.selector(r.store.state, r.a1, r.a2, r.a3);
436
+ Object.is(r.value, i) || (t = !0, r.value = i);
437
+ }
438
+ return t && (e.syncTick += 1), e.syncTick;
439
+ });
440
+ },
441
+ after(e) {
442
+ e.syncHooks.length > 0 && (e.didChangeStore && (e.didChangeStore = !1, e.subscribe = (t) => {
443
+ let n = /* @__PURE__ */ new Set();
444
+ for (let t of e.syncHooks) n.add(t.store);
445
+ let r = [];
446
+ for (let e of n) r.push(e.subscribe(t));
447
+ return () => {
448
+ for (let e of r) e();
449
+ };
450
+ }), (0, X.useSyncExternalStore)(e.subscribe, e.getSnapshot, e.getSnapshot));
451
+ }
452
+ });
453
+ function Fe(e, t, n, r, i) {
454
+ let a = Oe();
455
+ if (!a) return Pe(e, t, n, r, i);
456
+ let o = a.syncIndex;
457
+ a.syncIndex += 1;
458
+ let s;
459
+ return a.didInitialize ? (s = a.syncHooks[o], (s.store !== e || s.selector !== t || !Object.is(s.a1, n) || !Object.is(s.a2, r) || !Object.is(s.a3, i)) && (s.store !== e && (a.didChangeStore = !0), s.store = e, s.selector = t, s.a1 = n, s.a2 = r, s.a3 = i, s.value = t(e.getSnapshot(), n, r, i))) : (s = {
460
+ store: e,
461
+ selector: t,
462
+ a1: n,
463
+ a2: r,
464
+ a3: i,
465
+ value: t(e.getSnapshot(), n, r, i)
466
+ }, a.syncHooks.push(s)), s.value;
467
+ }
468
+ function Ie(e, t, n, r, i) {
469
+ return (0, De.useSyncExternalStoreWithSelector)(e.subscribe, e.getSnapshot, e.getSnapshot, (e) => t(e, n, r, i));
470
+ }
471
+ //#endregion
472
+ //#region ../../node_modules/.bun/@base-ui+utils@0.3.1+fce4ea6354698f9c/node_modules/@base-ui/utils/store/Store.mjs
473
+ var Le = class {
474
+ constructor(e) {
475
+ this.state = e, this.listeners = /* @__PURE__ */ new Set(), this.updateTick = 0;
476
+ }
477
+ subscribe = (e) => (this.listeners.add(e), () => {
478
+ this.listeners.delete(e);
479
+ });
480
+ getSnapshot = () => this.state;
481
+ setState(e) {
482
+ if (this.state === e) return;
483
+ this.state = e, this.updateTick += 1;
484
+ let t = this.updateTick;
485
+ for (let n of this.listeners) {
486
+ if (t !== this.updateTick) return;
487
+ n(e);
488
+ }
489
+ }
490
+ update(e) {
491
+ for (let t in e) if (!Object.is(this.state[t], e[t])) {
492
+ this.setState({
493
+ ...this.state,
494
+ ...e
495
+ });
496
+ return;
497
+ }
498
+ }
499
+ set(e, t) {
500
+ Object.is(this.state[e], t) || this.setState({
501
+ ...this.state,
502
+ [e]: t
503
+ });
504
+ }
505
+ notifyAll() {
506
+ let e = { ...this.state };
507
+ this.setState(e);
508
+ }
509
+ use(e, t, n, r) {
510
+ return $(this, e, t, n, r);
511
+ }
512
+ }, Re = class extends Le {
513
+ constructor(e, t = {}, n) {
514
+ super(e), this.context = t, this.selectors = n;
515
+ }
516
+ useSyncedValue(e, n) {
517
+ T.useDebugValue(e);
518
+ let r = this;
519
+ t(() => {
520
+ r.state[e] !== n && r.set(e, n);
521
+ }, [
522
+ r,
523
+ e,
524
+ n
525
+ ]);
526
+ }
527
+ useSyncedValueWithCleanup(e, n) {
528
+ let r = this;
529
+ t(() => (r.state[e] !== n && r.set(e, n), () => {
530
+ r.set(e, void 0);
531
+ }), [
532
+ r,
533
+ e,
534
+ n
535
+ ]);
536
+ }
537
+ useSyncedValues(e) {
538
+ let n = this;
539
+ if (process.env.NODE_ENV !== "production") {
540
+ T.useDebugValue(e, (e) => Object.keys(e));
541
+ let t = T.useRef(Object.keys(e)).current, n = Object.keys(e);
542
+ (t.length !== n.length || t.some((e, t) => e !== n[t])) && console.error("ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.");
543
+ }
544
+ t(() => {
545
+ n.update(e);
546
+ }, [n, ...Object.values(e)]);
547
+ }
548
+ useControlledProp(e, n) {
549
+ T.useDebugValue(e);
550
+ let r = this, i = n !== void 0;
551
+ if (t(() => {
552
+ i && !Object.is(r.state[e], n) && r.setState({
553
+ ...r.state,
554
+ [e]: n
555
+ });
556
+ }, [
557
+ r,
558
+ e,
559
+ n,
560
+ i
561
+ ]), process.env.NODE_ENV !== "production") {
562
+ let t = this.controlledValues ??= /* @__PURE__ */ new Map();
563
+ t.has(e) || t.set(e, i);
564
+ let n = t.get(e);
565
+ n !== void 0 && n !== i && console.error(`A component is changing the ${i ? "" : "un"}controlled state of ${e.toString()} to be ${i ? "un" : ""}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`);
566
+ }
567
+ }
568
+ select(e, t, n, r) {
569
+ let i = this.selectors[e];
570
+ return i(this.state, t, n, r);
571
+ }
572
+ useState(e, t, n, r) {
573
+ return T.useDebugValue(e), $(this, this.selectors[e], t, n, r);
574
+ }
575
+ useContextCallback(e, t) {
576
+ T.useDebugValue(e);
577
+ let n = c(t ?? a);
578
+ this.context[e] = n;
579
+ }
580
+ useStateSetter(e) {
581
+ let t = T.useRef(void 0);
582
+ return t.current === void 0 && (t.current = (t) => {
583
+ this.set(e, t);
584
+ }), t.current;
585
+ }
586
+ observe(e, t) {
587
+ let n;
588
+ n = typeof e == "function" ? e : this.selectors[e];
589
+ let r = n(this.state);
590
+ return t(r, r, this), this.subscribe((e) => {
591
+ let i = n(e);
592
+ if (!Object.is(r, i)) {
593
+ let e = r;
594
+ r = i, t(i, e, this);
595
+ }
596
+ });
597
+ }
598
+ };
599
+ //#endregion
600
+ export { le as C, O as E, U as S, k as T, L as _, je as a, ue as b, J as c, me as d, pe as f, G as g, be as h, Ae as i, q as l, ve as m, Le as n, Ce as o, ye as p, $ as r, Y as s, Re as t, _e as u, B as v, R as w, de as x, V as y };
@@ -3,7 +3,7 @@ import { t as e } from "./error-C8bGkT0l.js";
3
3
  import { t } from "./useControlled-Bu1mahWG.js";
4
4
  import { t as n } from "./useIsoLayoutEffect-4LGv3HzC.js";
5
5
  import { t as r, u as i } from "./useRenderElement-BToElZ97.js";
6
- import { t as a } from "./useBaseUiId-voePHgyX.js";
6
+ import { t as a } from "./useBaseUiId-CXSJgVcI.js";
7
7
  import { g as o, t as s } from "./createBaseUIEventDetails-C_dwdqj4.js";
8
8
  import { t as c } from "./useButton-DjF6Owsn.js";
9
9
  import { t as l } from "./CompositeItem-RsjiqT-t.js";