@qredence/fleet 0.5.11 → 0.6.1

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 (132) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/web/client/assets/action-swap-roll-COzQ86wm.js +1 -0
  3. package/dist/web/client/assets/agent-activity-svETLf_5.js +1 -0
  4. package/dist/web/client/assets/agent-disclosure-DAMuuGcM.js +1 -0
  5. package/dist/web/client/assets/analytics-stub-B6zGMuSV.js +1 -0
  6. package/dist/web/client/assets/{artifacts-panel-CQmFEF_H.js → artifacts-panel-HVjqBMyx.js} +1 -1
  7. package/dist/web/client/assets/button-C5wFDY5_.js +1 -0
  8. package/dist/web/client/assets/card-DA3Vnqay.js +1 -0
  9. package/dist/web/client/assets/{chat-yh02zgA7.js → chat-BhYseKd6.js} +7 -7
  10. package/dist/web/client/assets/{chat-command-palette-CmHTS3rs.js → chat-command-palette-LILDO_vG.js} +1 -1
  11. package/dist/web/client/assets/{citations-C_tPOJE_.js → citations-BPv8HIpf.js} +2 -2
  12. package/dist/web/client/assets/command-PhicLCoO.js +1 -0
  13. package/dist/web/client/assets/dialog-pBGUjAQ7.js +1 -0
  14. package/dist/web/client/assets/fleet-message-queue-fbYYwMj0.js +1 -0
  15. package/dist/web/client/assets/{fleet-pi-tool-renderer-BEDIO3al.js → fleet-pi-tool-renderer-BRgNnmaJ.js} +28 -28
  16. package/dist/web/client/assets/fleet-reasoning-panel-CjA2dwUJ.js +1 -0
  17. package/dist/web/client/assets/{fork-picker-dialog-ByBOGVsa.js → fork-picker-dialog-B7NNpVmW.js} +1 -1
  18. package/dist/web/client/assets/globals-CuIiqOTg.css +2 -0
  19. package/dist/web/client/assets/horizontal-resize-Cp3iHMH7.js +1 -0
  20. package/dist/web/client/assets/index-CSGplyr_.js +12 -0
  21. package/dist/web/client/assets/{input-0wwjWjKq.js → input-PcdubeKn.js} +1 -1
  22. package/dist/web/client/assets/input-group-C2HJEZvl.js +1 -0
  23. package/dist/web/client/assets/ipython-tool-CyuMOxz1.js +3 -0
  24. package/dist/web/client/assets/{markdown-code-CuQcR3UO.js → markdown-code-xNyjdZ4g.js} +1 -1
  25. package/dist/web/client/assets/{markdown-DInPmRUG.js → markdown-lvexwooo.js} +2 -2
  26. package/dist/web/client/assets/{model-selector-list-DsKTuAgS.js → model-selector-list-CoXX358G.js} +1 -1
  27. package/dist/web/client/assets/{notify-DgMKgZZW.js → notify-DxL0VD7Z.js} +1 -1
  28. package/dist/web/client/assets/openui-renderer-TLNe5e_Q.js +378 -0
  29. package/dist/web/client/assets/pencil-DcUwsKLn.js +1 -0
  30. package/dist/web/client/assets/prompt-input-fwP8TsgQ.js +1 -0
  31. package/dist/web/client/assets/{prompt-suggestions-Cc--lSNR.js → prompt-suggestions-BlGXmWS7.js} +1 -1
  32. package/dist/web/client/assets/provider-catalog-DYMFdbKc.js +1 -0
  33. package/dist/web/client/assets/provider-label-B4q5mI65.js +1 -0
  34. package/dist/web/client/assets/{repl-panel-DsPX04Xr.js → repl-panel-C5om8MGU.js} +1 -1
  35. package/dist/web/client/assets/{right-panel-registry-DewpBWHM.js → right-panel-registry-BBlxLxnx.js} +2 -2
  36. package/dist/web/client/assets/routes-XGsAIqBJ.js +16 -0
  37. package/dist/web/client/assets/settings-dialog-BSBasR3o.js +2 -0
  38. package/dist/web/client/assets/{subagent-chat-panel-DkVUumrP.js → subagent-chat-panel-oeLDPDAK.js} +1 -1
  39. package/dist/web/client/assets/{subagent-transcript-D8wmQxXe.js → subagent-transcript-DaVHjNUH.js} +1 -1
  40. package/dist/web/client/assets/{subagents-panel-BMp2Ego0.js → subagents-panel-D_aVgSCi.js} +1 -1
  41. package/dist/web/client/assets/surfaces-BhAXz9So.js +1 -0
  42. package/dist/web/client/assets/{switch-9rTeg6J6.js → switch-WhXeJNNY.js} +1 -1
  43. package/dist/web/client/assets/{toast-Bt9p2OL4.js → toast-D3c9XeGe.js} +1 -1
  44. package/dist/web/client/assets/{tool-result-DfnPN0FQ.js → tool-result-Cki8WUNc.js} +3 -3
  45. package/dist/web/client/assets/virtualized-turn-list-CdMa-ydT.js +6 -0
  46. package/dist/web/client/assets/workspace-panel-77bDbprs.js +1 -0
  47. package/dist/web/client/bundle-budget.json +6 -6
  48. package/dist/web/launcher.mjs +10 -1
  49. package/dist/web/server/{_tanstack-start-manifest_v-po4woX6g-AUGCOEZ2.js → _tanstack-start-manifest_v-0L7fqnH4-KMVGUFE4.js} +25 -24
  50. package/dist/web/server/{agent-activity-CS2rbF_C-A3R26CYH.js → agent-activity-BuEE6iVw-CDZLK4D2.js} +4 -4
  51. package/dist/web/server/{artifacts-panel-8GGUCtOd-X5TNKTY2.js → artifacts-panel-D3ySO--V-XSL53CXL.js} +18 -18
  52. package/dist/web/server/{chat-command-palette-Dgl5tqWn-72LLEWUD.js → chat-command-palette-kAbXhWVg-TJWXH2WW.js} +9 -9
  53. package/dist/web/server/{chunk-O4OTWWPF.js → chunk-2DDWXTVG.js} +5 -5
  54. package/dist/web/server/{chunk-MIW4LJTV.js → chunk-2JHTYWD5.js} +15 -23
  55. package/dist/web/server/{chunk-7MDZVLIY.js → chunk-3TIMGWWI.js} +1 -2
  56. package/dist/web/server/{chunk-AGFRJQZ7.js → chunk-4WBFCB4O.js} +257 -257
  57. package/dist/web/server/{chunk-P6UMR32I.js → chunk-5UCAJBAH.js} +4 -4
  58. package/dist/web/server/{chunk-BXWAUTTH.js → chunk-D27LRYVT.js} +42 -42
  59. package/dist/web/server/{chunk-YXXRP3NS.js → chunk-DLUZFOG3.js} +5 -5
  60. package/dist/web/server/{chunk-K3BXQG3N.js → chunk-EBG3XFGQ.js} +60 -60
  61. package/dist/web/server/{chunk-2ATMSG7U.js → chunk-EJEPDVK6.js} +3 -3
  62. package/dist/web/server/{chunk-IJPCV6DH.js → chunk-FYDQK6UX.js} +1 -1
  63. package/dist/web/server/{chunk-WKV2Z4KO.js → chunk-HF7DG7PC.js} +74 -74
  64. package/dist/web/server/{chunk-WYL2DW5R.js → chunk-JTCCQZLN.js} +2 -2
  65. package/dist/web/server/{chunk-UAPNEWCA.js → chunk-KP2PNDGL.js} +6 -6
  66. package/dist/web/server/chunk-M5RSPNYN.js +22 -0
  67. package/dist/web/server/{chunk-7SR6WDM2.js → chunk-MNBGB2SP.js} +2 -2
  68. package/dist/web/server/{chunk-HSJMLO36.js → chunk-MNPHMZU7.js} +3 -3
  69. package/dist/web/server/{chunk-JQDLJ7KI.js → chunk-NGCQJ33Y.js} +1134 -1134
  70. package/dist/web/server/{chunk-7SD2ZSEA.js → chunk-NIDBN7BQ.js} +1 -1
  71. package/dist/web/server/{chunk-ZJFA4F5X.js → chunk-NIZBFVJF.js} +2 -2
  72. package/dist/web/server/{chunk-P7H2OPKF.js → chunk-NJ4QEZHK.js} +11 -4
  73. package/dist/web/server/{chunk-WM4PUT6M.js → chunk-NNKJTKOQ.js} +234 -234
  74. package/dist/web/server/{chunk-N6NOTURM.js → chunk-NWDI3OWB.js} +4 -4
  75. package/dist/web/server/{chunk-ABBWBBSS.js → chunk-O3HDELZ2.js} +74826 -74825
  76. package/dist/web/server/{chunk-GGT2ZKDB.js → chunk-PLYZ7P2Y.js} +11 -155
  77. package/dist/web/server/chunk-PTCKOR23.js +39 -0
  78. package/dist/web/server/{chunk-RNOJACWQ.js → chunk-QFRCJWQQ.js} +7 -7
  79. package/dist/web/server/{chunk-NXJ32VFR.js → chunk-QIULBRTU.js} +13 -13
  80. package/dist/web/server/{chunk-XKKXXG6N.js → chunk-RIP3PBWT.js} +3 -3
  81. package/dist/web/server/{chunk-YKVGQBZA.js → chunk-S5LFXXDY.js} +625 -622
  82. package/dist/web/server/{chunk-XLNCWZMZ.js → chunk-UCUFC553.js} +3 -1
  83. package/dist/web/server/{chunk-KOUEJ3NU.js → chunk-UL2725KQ.js} +3 -3
  84. package/dist/web/server/{chunk-HFQTI7AX.js → chunk-VPKX7QRU.js} +3 -3
  85. package/dist/web/server/{chunk-LZ4Q5KUJ.js → chunk-WNCAL4HN.js} +133 -133
  86. package/dist/web/server/{chunk-C5X6G26O.js → chunk-XIB6XNUX.js} +436 -436
  87. package/dist/web/server/{chunk-JUROEEWM.js → chunk-YGYOBX7G.js} +82 -4
  88. package/dist/web/server/{chunk-WILCIZYU.js → chunk-ZIFSJ3HQ.js} +626 -626
  89. package/dist/web/server/fleet-message-queue-D_w8lSeY-T3HB7HVQ.js +152 -0
  90. package/dist/web/server/{fleet-pi-tool-renderer-umKunT3K-O4GBH35V.js → fleet-pi-tool-renderer-qwc-qZFq-4U556N5Q.js} +12 -12
  91. package/dist/web/server/{fleet-reasoning-panel-BxC2COxi-GPLMQSTT.js → fleet-reasoning-panel-DG_vuvv0-NCZWEEIT.js} +26 -26
  92. package/dist/web/server/{fleet-subagent-list-CpSYzCIq-JDH2LHSS.js → fleet-subagent-list-BGb0PjhF-2X67FMUV.js} +1 -1
  93. package/dist/web/server/{fleet-tool-timeline-IB36_PB2-XJENTO6I.js → fleet-tool-timeline-D6yM4ZMz-ZSFVRRRI.js} +1 -1
  94. package/dist/web/server/{fork-picker-dialog-DlINz9UQ-UWIXFDJX.js → fork-picker-dialog-Ds6Tgtu3-DIBWN7MV.js} +5 -5
  95. package/dist/web/server/{model-selector-list-OYnzNbyu-HBGCNF2L.js → model-selector-list-DxeGZoD2-P6S6FSJH.js} +9 -9
  96. package/dist/web/server/{openui-renderer-Cj7kfqyL-EKJ6JTTQ.js → openui-renderer-MKFv6LlH-MDRSVFEY.js} +11 -11
  97. package/dist/web/server/{prompt-suggestions-D4AEEY7K-RZSP7PWV.js → prompt-suggestions-BOItmGnD-YQA7RHLG.js} +2 -2
  98. package/dist/web/server/{repl-panel-D5KsoJik-BQKO53JO.js → repl-panel-CuyF8wt5-CHDT2Q3N.js} +2 -2
  99. package/dist/web/server/{router-Ci1wxI7I-E2AYMNON.js → router-Dg72SESP-PCWKLFRG.js} +1239 -470
  100. package/dist/web/server/{routes-CRpm9-Sa-IYK6MUJO.js → routes-BGrVtPYF-SURPAJN6.js} +5781 -5588
  101. package/dist/web/server/server.js +2 -2
  102. package/dist/web/server/{settings-dialog-BvkgNflv-GPJ6COQO.js → settings-dialog-CK0FJlTg-HZRBAXDZ.js} +1577 -1264
  103. package/dist/web/server/{subagent-chat-panel-CMuvW9Sd-M5TEEGQW.js → subagent-chat-panel-gzamnTgK-PQ2TLLJF.js} +21 -21
  104. package/dist/web/server/{subagents-panel-DgfB6_Yy-4INEPE3Y.js → subagents-panel-Berjd7HJ-EI5ZKC6V.js} +20 -20
  105. package/dist/web/server/{workspace-panel-bpwj-Veu-Q2CEJMN4.js → workspace-panel-CBBa_3UO-B4PPFPMA.js} +46 -21
  106. package/package.json +1 -1
  107. package/dist/web/client/assets/action-swap-roll-BB8DFMuf.js +0 -1
  108. package/dist/web/client/assets/agent-activity-CwMDU7aP.js +0 -1
  109. package/dist/web/client/assets/agent-disclosure-B8SnhQXL.js +0 -1
  110. package/dist/web/client/assets/analytics-stub-Cas1He0w.js +0 -1
  111. package/dist/web/client/assets/button-BR2WWrFo.js +0 -1
  112. package/dist/web/client/assets/card-BKl76a3R.js +0 -1
  113. package/dist/web/client/assets/command-DPfiaYUL.js +0 -1
  114. package/dist/web/client/assets/dialog-BEZuZhzk.js +0 -1
  115. package/dist/web/client/assets/fleet-message-queue-DUz6Hfrf.js +0 -1
  116. package/dist/web/client/assets/fleet-reasoning-panel-CbkO7u-v.js +0 -1
  117. package/dist/web/client/assets/globals-B_I1Eq1u.css +0 -2
  118. package/dist/web/client/assets/horizontal-resize-qK6eRhIG.js +0 -1
  119. package/dist/web/client/assets/index-C1zOjrMK.js +0 -12
  120. package/dist/web/client/assets/input-group-BFDsCVS9.js +0 -1
  121. package/dist/web/client/assets/ipython-tool-ldJ9F1Cw.js +0 -3
  122. package/dist/web/client/assets/openui-renderer-J3dhPpL4.js +0 -378
  123. package/dist/web/client/assets/prompt-input-qPIXZ-Rb.js +0 -1
  124. package/dist/web/client/assets/provider-catalog-D8G66gwc.js +0 -1
  125. package/dist/web/client/assets/provider-label-Dpr7djG9.js +0 -1
  126. package/dist/web/client/assets/routes-vNkVToAF.js +0 -16
  127. package/dist/web/client/assets/settings-dialog-B-v4me3Y.js +0 -1
  128. package/dist/web/client/assets/surfaces-DI-U-_2a.js +0 -1
  129. package/dist/web/client/assets/virtualized-turn-list-DMJENRY0.js +0 -6
  130. package/dist/web/client/assets/workspace-panel-G6yMpKJ8.js +0 -1
  131. package/dist/web/server/chunk-QK4CHLVV.js +0 -17
  132. package/dist/web/server/fleet-message-queue-j0DCU5Xy-5HKBHMPV.js +0 -75
@@ -2,10 +2,11 @@ import {
2
2
  cn
3
3
  } from "./chunk-DJMHPJBP.js";
4
4
 
5
- // web/app/dist/server/assets/surfaces-DlT92b6L.js
5
+ // web/app/dist/server/assets/surfaces-BK21vehA.js
6
6
  import { useLayoutEffect, useRef, useState } from "react";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
8
  var paper = "bg-background shadow-[0_1px_2px_rgba(0,0,0,0.04),0_12px_32px_-16px_rgba(0,0,0,0.12)] dark:bg-popover dark:shadow-none";
9
+ var elevatedMenu = "border border-border bg-popover text-popover-foreground shadow-lg";
9
10
  var floating = "bg-background shadow-[0_2px_8px_rgba(0,0,0,0.05),0_20px_48px_-16px_rgba(0,0,0,0.18)] dark:bg-popover dark:shadow-[0_20px_48px_-16px_rgba(0,0,0,0.55)]";
10
11
  var field = "bg-foreground/[0.04] dark:bg-foreground/[0.06]";
11
12
  var labelSwap = "col-start-1 row-start-1 flex w-max items-center gap-1.5 leading-none transition-[opacity,filter] duration-300 ease-[cubic-bezier(0.23,1,0.32,1)] motion-reduce:transition-none";
@@ -51,6 +52,7 @@ function SwapLabel({ active, children, className }) {
51
52
 
52
53
  export {
53
54
  paper,
55
+ elevatedMenu,
54
56
  floating,
55
57
  field,
56
58
  collapsePanel,
@@ -19,7 +19,7 @@ import {
19
19
  useFloatingPortalNode,
20
20
  useTimeout,
21
21
  visuallyHidden
22
- } from "./chunk-LZ4Q5KUJ.js";
22
+ } from "./chunk-WNCAL4HN.js";
23
23
  import {
24
24
  X
25
25
  } from "./chunk-JBLHIEVG.js";
@@ -36,7 +36,7 @@ import {
36
36
  useRefWithInit,
37
37
  useRenderElement,
38
38
  useStableCallback
39
- } from "./chunk-C5X6G26O.js";
39
+ } from "./chunk-XIB6XNUX.js";
40
40
  import {
41
41
  TriangleAlert
42
42
  } from "./chunk-HFQZLPU2.js";
@@ -47,7 +47,7 @@ import {
47
47
  cn
48
48
  } from "./chunk-DJMHPJBP.js";
49
49
 
50
- // web/app/dist/server/assets/toast-COs8DHST.js
50
+ // web/app/dist/server/assets/toast-DLv6pP5-.js
51
51
  import * as React$1 from "react";
52
52
  import { jsx, jsxs } from "react/jsx-runtime";
53
53
  import * as ReactDOM from "react-dom";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  useReducedMotion
3
- } from "./chunk-ZJFA4F5X.js";
3
+ } from "./chunk-NIZBFVJF.js";
4
4
  import {
5
5
  EASE_OUT,
6
6
  m
7
- } from "./chunk-K3BXQG3N.js";
7
+ } from "./chunk-EBG3XFGQ.js";
8
8
  import {
9
9
  cn
10
10
  } from "./chunk-DJMHPJBP.js";
11
11
 
12
- // web/app/dist/server/assets/agent-disclosure-DEcm1iFH.js
12
+ // web/app/dist/server/assets/agent-disclosure-Zlu4pYms.js
13
13
  import { jsx } from "react/jsx-runtime";
14
14
  function AgentDisclosure({ open, openHeight = "auto", className, style, transition, ...props }) {
15
15
  const reduce = useReducedMotion() ?? false;
@@ -17,7 +17,7 @@ import {
17
17
  useRefWithInit,
18
18
  useRenderElement,
19
19
  useStableCallback
20
- } from "./chunk-C5X6G26O.js";
20
+ } from "./chunk-XIB6XNUX.js";
21
21
  import {
22
22
  cn
23
23
  } from "./chunk-DJMHPJBP.js";
@@ -30,110 +30,20 @@ import {
30
30
  __toESM
31
31
  } from "./chunk-L547YHC4.js";
32
32
 
33
- // web/app/dist/server/assets/FloatingPortal-EkYUevjj.js
34
- import * as React$3 from "react";
33
+ // web/app/dist/server/assets/button-DVkvnCd6.js
34
+ import * as React$1 from "react";
35
35
  import { jsx, jsxs } from "react/jsx-runtime";
36
36
  import * as ReactDOM from "react-dom";
37
- function ownerDocument(node) {
38
- return node?.ownerDocument || document;
39
- }
40
- var Button$1 = /* @__PURE__ */ React$3.forwardRef(function Button(componentProps, forwardedRef) {
41
- const { render, className, disabled = false, focusableWhenDisabled = false, nativeButton = true, style, ...elementProps } = componentProps;
42
- const { getButtonProps, buttonRef } = useButton({
43
- disabled,
44
- focusableWhenDisabled,
45
- native: nativeButton
46
- });
47
- return useRenderElement("button", componentProps, {
48
- state: { disabled },
49
- ref: [forwardedRef, buttonRef],
50
- props: [elementProps, getButtonProps]
51
- });
52
- });
53
- var falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
54
- var cx = clsx;
55
- var cva = (base, config) => (props) => {
56
- var _config_compoundVariants;
57
- if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
58
- const { variants, defaultVariants } = config;
59
- const getVariantClassNames = Object.keys(variants).map((variant) => {
60
- const variantProp = props === null || props === void 0 ? void 0 : props[variant];
61
- const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
62
- if (variantProp === null) return null;
63
- const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
64
- return variants[variant][variantKey];
65
- });
66
- const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
67
- let [key, value] = param;
68
- if (value === void 0) return acc;
69
- acc[key] = value;
70
- return acc;
71
- }, {});
72
- return cx(base, getVariantClassNames, config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
73
- let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
74
- return Object.entries(compoundVariantOptions).every((param2) => {
75
- let [key, value] = param2;
76
- return Array.isArray(value) ? value.includes({
77
- ...defaultVariants,
78
- ...propsWithoutUndefined
79
- }[key]) : {
80
- ...defaultVariants,
81
- ...propsWithoutUndefined
82
- }[key] === value;
83
- }) ? [
84
- ...acc,
85
- cvClass,
86
- cvClassName
87
- ] : acc;
88
- }, []), props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
89
- };
90
- var buttonVariants = cva("group/button inline-flex shrink-0 items-center justify-center rounded-full border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
91
- variants: {
92
- variant: {
93
- default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
94
- outline: "border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
95
- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
96
- ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
97
- destructive: "bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
98
- link: "text-primary underline-offset-4 hover:underline"
99
- },
100
- size: {
101
- default: "h-8 gap-1.5 rounded-full px-3 has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5",
102
- xs: "h-6 gap-1 rounded-full px-2 text-xs in-data-[slot=button-group]:rounded-full has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
103
- sm: "h-7 gap-1 rounded-full px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-full has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-3.5",
104
- lg: "h-9 gap-1.5 rounded-full px-3.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",
105
- icon: "size-8 rounded-full",
106
- "icon-xs": "size-6 rounded-full in-data-[slot=button-group]:rounded-full [&_svg:not([class*='size-'])]:size-3",
107
- "icon-sm": "size-7 rounded-full in-data-[slot=button-group]:rounded-full",
108
- "icon-lg": "size-9 rounded-full"
109
- }
110
- },
111
- defaultVariants: {
112
- variant: "default",
113
- size: "default"
114
- }
115
- });
116
- function Button2({ className, variant = "default", size = "default", ...props }) {
117
- return /* @__PURE__ */ jsx(Button$1, {
118
- "data-slot": "button",
119
- className: cn(buttonVariants({
120
- variant,
121
- size,
122
- className
123
- })),
124
- ...props
125
- });
126
- }
127
37
  var require_use_sync_external_store_shim_production = /* @__PURE__ */ __commonJSMin(((exports) => {
128
- var React$2 = __require("react");
38
+ var React$3 = __require("react");
129
39
  function is(x, y) {
130
40
  return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
131
41
  }
132
42
  var objectIs = "function" === typeof Object.is ? Object.is : is;
133
- var useState2 = React$2.useState;
134
- var useEffect2 = React$2.useEffect;
135
- var useLayoutEffect = React$2.useLayoutEffect;
136
- var useDebugValue2 = React$2.useDebugValue;
43
+ var useState2 = React$3.useState;
44
+ var useEffect2 = React$3.useEffect;
45
+ var useLayoutEffect = React$3.useLayoutEffect;
46
+ var useDebugValue2 = React$3.useDebugValue;
137
47
  function useSyncExternalStore$2(subscribe, getSnapshot) {
138
48
  var value = getSnapshot(), _useState = useState2({ inst: {
139
49
  value,
@@ -171,23 +81,23 @@ var require_use_sync_external_store_shim_production = /* @__PURE__ */ __commonJS
171
81
  return getSnapshot();
172
82
  }
173
83
  var shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
174
- exports.useSyncExternalStore = void 0 !== React$2.useSyncExternalStore ? React$2.useSyncExternalStore : shim;
84
+ exports.useSyncExternalStore = void 0 !== React$3.useSyncExternalStore ? React$3.useSyncExternalStore : shim;
175
85
  }));
176
86
  var require_shim = /* @__PURE__ */ __commonJSMin(((exports, module) => {
177
87
  module.exports = require_use_sync_external_store_shim_production();
178
88
  }));
179
89
  var require_with_selector_production = /* @__PURE__ */ __commonJSMin(((exports) => {
180
- var React$1 = __require("react");
90
+ var React$2 = __require("react");
181
91
  var shim = require_shim();
182
92
  function is(x, y) {
183
93
  return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
184
94
  }
185
95
  var objectIs = "function" === typeof Object.is ? Object.is : is;
186
96
  var useSyncExternalStore = shim.useSyncExternalStore;
187
- var useRef2 = React$1.useRef;
188
- var useEffect2 = React$1.useEffect;
189
- var useMemo2 = React$1.useMemo;
190
- var useDebugValue2 = React$1.useDebugValue;
97
+ var useRef2 = React$2.useRef;
98
+ var useEffect2 = React$2.useEffect;
99
+ var useMemo2 = React$2.useMemo;
100
+ var useDebugValue2 = React$2.useDebugValue;
191
101
  exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
192
102
  var instRef = useRef2(null);
193
103
  if (null === instRef.current) {
@@ -269,7 +179,7 @@ function fastComponent(fn) {
269
179
  return FastComponent;
270
180
  }
271
181
  function fastComponentRef(fn) {
272
- return /* @__PURE__ */ React$3.forwardRef(fastComponent(fn));
182
+ return /* @__PURE__ */ React$1.forwardRef(fastComponent(fn));
273
183
  }
274
184
  function createInstance() {
275
185
  return { didInitialize: false };
@@ -279,7 +189,7 @@ function useStore(store, selector, a1, a2, a3) {
279
189
  return useStoreImplementation(store, selector, a1, a2, a3);
280
190
  }
281
191
  function useStoreR19(store, selector, a1, a2, a3) {
282
- const getSelection = React$3.useCallback(() => selector(store.getSnapshot(), a1, a2, a3), [
192
+ const getSelection = React$1.useCallback(() => selector(store.getSnapshot(), a1, a2, a3), [
283
193
  store,
284
194
  selector,
285
195
  a1,
@@ -468,7 +378,7 @@ var ReactStore = class extends Store {
468
378
  * by `useState` is updated before the next render (similarly to React's `useState`).
469
379
  */
470
380
  useSyncedValue(key, value) {
471
- React$3.useDebugValue(key);
381
+ React$1.useDebugValue(key);
472
382
  const store = this;
473
383
  useIsoLayoutEffect(() => {
474
384
  if (store.state[key] !== value) store.set(key, value);
@@ -516,7 +426,7 @@ var ReactStore = class extends Store {
516
426
  * is non-undefined, the store's state at `key` is updated to match `controlled`.
517
427
  */
518
428
  useControlledProp(key, controlled) {
519
- React$3.useDebugValue(key);
429
+ React$1.useDebugValue(key);
520
430
  const store = this;
521
431
  const isControlled = controlled !== void 0;
522
432
  useIsoLayoutEffect(() => {
@@ -547,7 +457,7 @@ var ReactStore = class extends Store {
547
457
  * @param key Key of the selector to use.
548
458
  */
549
459
  useState(key, a1, a2, a3) {
550
- React$3.useDebugValue(key);
460
+ React$1.useDebugValue(key);
551
461
  return useStore(this, this.selectors[key], a1, a2, a3);
552
462
  }
553
463
  /**
@@ -558,7 +468,7 @@ var ReactStore = class extends Store {
558
468
  * @param fn Function to assign.
559
469
  */
560
470
  useContextCallback(key, fn) {
561
- React$3.useDebugValue(key);
471
+ React$1.useDebugValue(key);
562
472
  const stableFunction = useStableCallback(fn ?? NOOP);
563
473
  this.context[key] = stableFunction;
564
474
  }
@@ -569,7 +479,7 @@ var ReactStore = class extends Store {
569
479
  * @param key Key of the state to set.
570
480
  */
571
481
  useStateSetter(key) {
572
- const ref = React$3.useRef(void 0);
482
+ const ref = React$1.useRef(void 0);
573
483
  if (ref.current === void 0) ref.current = (value) => {
574
484
  this.set(key, value);
575
485
  };
@@ -605,6 +515,9 @@ function mergeCleanups(...cleanups) {
605
515
  }
606
516
  };
607
517
  }
518
+ function ownerDocument(node) {
519
+ return node?.ownerDocument || document;
520
+ }
608
521
  var EMPTY = 0;
609
522
  var Timeout = class Timeout2 {
610
523
  static create() {
@@ -931,8 +844,8 @@ var visuallyHiddenInput = {
931
844
  ...visuallyHiddenBase,
932
845
  position: "absolute"
933
846
  };
934
- var FocusGuard = /* @__PURE__ */ React$3.forwardRef(function FocusGuard2(props, ref) {
935
- const [role, setRole] = React$3.useState();
847
+ var FocusGuard = /* @__PURE__ */ React$1.forwardRef(function FocusGuard2(props, ref) {
848
+ const [role, setRole] = React$1.useState();
936
849
  useIsoLayoutEffect(() => {
937
850
  if (voiceOver && webkit) setRole("button");
938
851
  }, []);
@@ -970,19 +883,19 @@ var ownerVisuallyHidden = {
970
883
  function createAttribute(name) {
971
884
  return `data-base-ui-${name}`;
972
885
  }
973
- var PortalContext = /* @__PURE__ */ React$3.createContext(null);
974
- var usePortalContext = () => React$3.useContext(PortalContext);
886
+ var PortalContext = /* @__PURE__ */ React$1.createContext(null);
887
+ var usePortalContext = () => React$1.useContext(PortalContext);
975
888
  var attr = createAttribute("portal");
976
889
  function useFloatingPortalNode(props = {}) {
977
890
  const { ref, container: containerProp, componentProps = EMPTY_OBJECT, elementProps } = props;
978
891
  const uniqueId = useId$1();
979
892
  const parentPortalNode = usePortalContext()?.portalNode;
980
- const [containerElement, setContainerElement] = React$3.useState(null);
981
- const [portalNode, setPortalNode] = React$3.useState(null);
893
+ const [containerElement, setContainerElement] = React$1.useState(null);
894
+ const [portalNode, setPortalNode] = React$1.useState(null);
982
895
  const setPortalNodeRef = useStableCallback((node) => {
983
896
  if (node !== null) setPortalNode(node);
984
897
  });
985
- const containerRef = React$3.useRef(null);
898
+ const containerRef = React$1.useRef(null);
986
899
  useIsoLayoutEffect(() => {
987
900
  if (containerProp === null) {
988
901
  if (containerRef.current) {
@@ -1017,11 +930,11 @@ function useFloatingPortalNode(props = {}) {
1017
930
  const portalSubtree = containerElement && portalElement ? /* @__PURE__ */ ReactDOM.createPortal(portalElement, containerElement) : null;
1018
931
  return {
1019
932
  node: portalNode,
1020
- nodeId: /* @__PURE__ */ React$3.isValidElement(portalElement) ? portalElement.props.id : void 0,
933
+ nodeId: /* @__PURE__ */ React$1.isValidElement(portalElement) ? portalElement.props.id : void 0,
1021
934
  subtree: portalSubtree
1022
935
  };
1023
936
  }
1024
- var FloatingPortal = /* @__PURE__ */ React$3.forwardRef(function FloatingPortal2(componentProps, forwardedRef) {
937
+ var FloatingPortal = /* @__PURE__ */ React$1.forwardRef(function FloatingPortal2(componentProps, forwardedRef) {
1025
938
  const { render, className, style, children, container, ...elementProps } = componentProps;
1026
939
  const { node: portalNode, nodeId: portalNodeId, subtree: portalSubtree } = useFloatingPortalNode({
1027
940
  container,
@@ -1029,16 +942,16 @@ var FloatingPortal = /* @__PURE__ */ React$3.forwardRef(function FloatingPortal2
1029
942
  componentProps,
1030
943
  elementProps
1031
944
  });
1032
- const beforeOutsideRef = React$3.useRef(null);
1033
- const afterOutsideRef = React$3.useRef(null);
1034
- const beforeInsideRef = React$3.useRef(null);
1035
- const afterInsideRef = React$3.useRef(null);
1036
- const [focusManagerState, setFocusManagerState] = React$3.useState(null);
1037
- const focusInsideDisabledRef = React$3.useRef(false);
945
+ const beforeOutsideRef = React$1.useRef(null);
946
+ const afterOutsideRef = React$1.useRef(null);
947
+ const beforeInsideRef = React$1.useRef(null);
948
+ const afterInsideRef = React$1.useRef(null);
949
+ const [focusManagerState, setFocusManagerState] = React$1.useState(null);
950
+ const focusInsideDisabledRef = React$1.useRef(false);
1038
951
  const modal = focusManagerState?.modal;
1039
952
  const open = focusManagerState?.open;
1040
953
  const shouldRenderGuards = !!focusManagerState && !focusManagerState.modal && focusManagerState.open && !!portalNode;
1041
- React$3.useEffect(() => {
954
+ React$1.useEffect(() => {
1042
955
  if (!portalNode || modal) return;
1043
956
  function onFocus(event) {
1044
957
  if (portalNode && event.relatedTarget && isOutsideEvent(event)) {
@@ -1060,7 +973,7 @@ var FloatingPortal = /* @__PURE__ */ React$3.forwardRef(function FloatingPortal2
1060
973
  enableFocusInside(portalNode);
1061
974
  focusInsideDisabledRef.current = false;
1062
975
  }, [open, portalNode]);
1063
- const portalContextValue = React$3.useMemo(() => ({
976
+ const portalContextValue = React$1.useMemo(() => ({
1064
977
  beforeOutsideRef,
1065
978
  afterOutsideRef,
1066
979
  beforeInsideRef,
@@ -1068,7 +981,7 @@ var FloatingPortal = /* @__PURE__ */ React$3.forwardRef(function FloatingPortal2
1068
981
  portalNode,
1069
982
  setFocusManagerState
1070
983
  }), [portalNode]);
1071
- return /* @__PURE__ */ jsxs(React$3.Fragment, { children: [portalSubtree, /* @__PURE__ */ jsxs(PortalContext.Provider, {
984
+ return /* @__PURE__ */ jsxs(React$1.Fragment, { children: [portalSubtree, /* @__PURE__ */ jsxs(PortalContext.Provider, {
1072
985
  value: portalContextValue,
1073
986
  children: [
1074
987
  shouldRenderGuards && portalNode && /* @__PURE__ */ jsx(FocusGuard, {
@@ -1098,11 +1011,95 @@ var FloatingPortal = /* @__PURE__ */ React$3.forwardRef(function FloatingPortal2
1098
1011
  ]
1099
1012
  })] });
1100
1013
  });
1014
+ var Button$1 = /* @__PURE__ */ React$1.forwardRef(function Button(componentProps, forwardedRef) {
1015
+ const { render, className, disabled = false, focusableWhenDisabled = false, nativeButton = true, style, ...elementProps } = componentProps;
1016
+ const { getButtonProps, buttonRef } = useButton({
1017
+ disabled,
1018
+ focusableWhenDisabled,
1019
+ native: nativeButton
1020
+ });
1021
+ return useRenderElement("button", componentProps, {
1022
+ state: { disabled },
1023
+ ref: [forwardedRef, buttonRef],
1024
+ props: [elementProps, getButtonProps]
1025
+ });
1026
+ });
1027
+ var falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
1028
+ var cx = clsx;
1029
+ var cva = (base, config) => (props) => {
1030
+ var _config_compoundVariants;
1031
+ if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
1032
+ const { variants, defaultVariants } = config;
1033
+ const getVariantClassNames = Object.keys(variants).map((variant) => {
1034
+ const variantProp = props === null || props === void 0 ? void 0 : props[variant];
1035
+ const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
1036
+ if (variantProp === null) return null;
1037
+ const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
1038
+ return variants[variant][variantKey];
1039
+ });
1040
+ const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
1041
+ let [key, value] = param;
1042
+ if (value === void 0) return acc;
1043
+ acc[key] = value;
1044
+ return acc;
1045
+ }, {});
1046
+ return cx(base, getVariantClassNames, config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
1047
+ let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
1048
+ return Object.entries(compoundVariantOptions).every((param2) => {
1049
+ let [key, value] = param2;
1050
+ return Array.isArray(value) ? value.includes({
1051
+ ...defaultVariants,
1052
+ ...propsWithoutUndefined
1053
+ }[key]) : {
1054
+ ...defaultVariants,
1055
+ ...propsWithoutUndefined
1056
+ }[key] === value;
1057
+ }) ? [
1058
+ ...acc,
1059
+ cvClass,
1060
+ cvClassName
1061
+ ] : acc;
1062
+ }, []), props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
1063
+ };
1064
+ var buttonVariants = cva("group/button inline-flex shrink-0 items-center justify-center rounded-full border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
1065
+ variants: {
1066
+ variant: {
1067
+ default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
1068
+ outline: "border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
1069
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
1070
+ ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
1071
+ destructive: "bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
1072
+ link: "text-primary underline-offset-4 hover:underline"
1073
+ },
1074
+ size: {
1075
+ default: "h-8 gap-1.5 rounded-full px-3 has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5",
1076
+ xs: "h-6 gap-1 rounded-full px-2 text-xs in-data-[slot=button-group]:rounded-full has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
1077
+ sm: "h-7 gap-1 rounded-full px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-full has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-3.5",
1078
+ lg: "h-9 gap-1.5 rounded-full px-3.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",
1079
+ icon: "size-8 rounded-full",
1080
+ "icon-xs": "size-6 rounded-full in-data-[slot=button-group]:rounded-full [&_svg:not([class*='size-'])]:size-3",
1081
+ "icon-sm": "size-7 rounded-full in-data-[slot=button-group]:rounded-full",
1082
+ "icon-lg": "size-9 rounded-full"
1083
+ }
1084
+ },
1085
+ defaultVariants: {
1086
+ variant: "default",
1087
+ size: "default"
1088
+ }
1089
+ });
1090
+ function Button2({ className, variant = "default", size = "default", ...props }) {
1091
+ return /* @__PURE__ */ jsx(Button$1, {
1092
+ "data-slot": "button",
1093
+ className: cn(buttonVariants({
1094
+ variant,
1095
+ size,
1096
+ className
1097
+ })),
1098
+ ...props
1099
+ });
1100
+ }
1101
1101
 
1102
1102
  export {
1103
- ownerDocument,
1104
- cva,
1105
- Button2 as Button,
1106
1103
  require_shim,
1107
1104
  require_with_selector,
1108
1105
  fastComponent,
@@ -1110,6 +1107,7 @@ export {
1110
1107
  useStore,
1111
1108
  ReactStore,
1112
1109
  mergeCleanups,
1110
+ ownerDocument,
1113
1111
  Timeout,
1114
1112
  useTimeout,
1115
1113
  ios,
@@ -1160,7 +1158,9 @@ export {
1160
1158
  createAttribute,
1161
1159
  usePortalContext,
1162
1160
  useFloatingPortalNode,
1163
- FloatingPortal
1161
+ FloatingPortal,
1162
+ cva,
1163
+ Button2 as Button
1164
1164
  };
1165
1165
  /**
1166
1166
  * @license React