@qredence/fleet 0.5.1 → 0.5.5

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 (78) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/bin/fleet-prime.mjs +6 -0
  3. package/dist/web/client/assets/action-swap-roll-DX5o_33Q.js +1 -0
  4. package/dist/web/client/assets/artifacts-panel-C3yewUBP.js +1 -0
  5. package/dist/web/client/assets/{chat-CsepBQwy.js → chat-W-yOMyG_.js} +1 -1
  6. package/dist/web/client/assets/chat-command-palette-D0xDK1j4.js +1 -0
  7. package/dist/web/client/assets/command-CQzrtjyj.js +2 -0
  8. package/dist/web/client/assets/{fleet-pi-tool-renderer-BD_ZAjlG.js → fleet-pi-tool-renderer-B0Y7ou0U.js} +16 -16
  9. package/dist/web/client/assets/generative-text-renderer-SS9c1kNX.js +6 -0
  10. package/dist/web/client/assets/globals-D_Hy9bT1.css +2 -0
  11. package/dist/web/client/assets/{index-DweoFRMs.js → index-C9FloFgj.js} +2 -2
  12. package/dist/web/client/assets/{ipython-tool-BfeIa0nK.js → ipython-tool-BrMePqD-.js} +1 -1
  13. package/dist/web/client/assets/{openui-renderer-DlUo6ehT.js → openui-renderer-CCfQqUfE.js} +5 -5
  14. package/dist/web/client/assets/{prime-agent-artifacts-CHGb5V_j.js → prime-agent-artifacts-C-g1VPiW.js} +1 -1
  15. package/dist/web/client/assets/range-65lubOFp.js +2 -0
  16. package/dist/web/client/assets/repl-panel-CCh4ly7J.js +1 -0
  17. package/dist/web/client/assets/routes-DSTyx_J0.js +16 -0
  18. package/dist/web/client/assets/session-insights-panel-CQdT90Op.js +1 -0
  19. package/dist/web/client/assets/subagent-chat-panel-D-qw4uWb.js +1 -0
  20. package/dist/web/client/assets/subagent-transcript-C7oRwEEP.js +1 -0
  21. package/dist/web/client/assets/subagents-panel-aSMWZP9p.js +1 -0
  22. package/dist/web/client/assets/{tool-result-CBzwwUE9.js → tool-result-C2NvnN32.js} +3 -3
  23. package/dist/web/server/{_tanstack-start-manifest_v-bDUlyKY0-KFW35JRO.js → _tanstack-start-manifest_v-DZc7dwm7-6ZQLGXB7.js} +13 -13
  24. package/dist/web/server/{artifacts-panel-D9w1DHAN-FGRDCYU2.js → artifacts-panel-Bt7YUzm4-NCBMXJ25.js} +15 -15
  25. package/dist/web/server/{chat-command-palette-BaenPkCN-BHSOPGU4.js → chat-command-palette-Co1L3rUY-RQLNME4T.js} +33 -12
  26. package/dist/web/server/{chunk-KPNGZR2R.js → chunk-2V6B62OF.js} +204 -204
  27. package/dist/web/server/{chunk-44IVTHDV.js → chunk-3HUI75QM.js} +60 -60
  28. package/dist/web/server/{chunk-5AVQZ4AZ.js → chunk-4UBOIY2S.js} +2 -1
  29. package/dist/web/server/{chunk-Y6LJ4WBI.js → chunk-56HSKUBD.js} +699 -691
  30. package/dist/web/server/{chunk-RPROZ2JC.js → chunk-5RQ6QAZX.js} +133 -133
  31. package/dist/web/server/{chunk-PWK2HJIV.js → chunk-6D524OCJ.js} +175 -175
  32. package/dist/web/server/{chunk-FBOO3G67.js → chunk-AECEK3K7.js} +6 -6
  33. package/dist/web/server/{chunk-VHCAD46L.js → chunk-AWFOBHH4.js} +4 -4
  34. package/dist/web/server/{chunk-FVWDJNXR.js → chunk-BEMDNODD.js} +1 -1
  35. package/dist/web/server/{chunk-X2TUFLTP.js → chunk-BLVCDQ7E.js} +438 -438
  36. package/dist/web/server/{chunk-EIVNRYP3.js → chunk-FZRBAPUM.js} +2 -2
  37. package/dist/web/server/chunk-KOIPYBJF.js +3773 -0
  38. package/dist/web/server/{chunk-XYYNYFFD.js → chunk-LSIHVSUT.js} +2 -2
  39. package/dist/web/server/{chunk-H64JLONZ.js → chunk-PDRD2X5G.js} +2 -2
  40. package/dist/web/server/{chunk-FE4KN6T2.js → chunk-RX62LUDV.js} +4 -4
  41. package/dist/web/server/chunk-SR65ARVS.js +192 -0
  42. package/dist/web/server/{chunk-WK7CQS2N.js → chunk-SZ65K4CO.js} +48 -48
  43. package/dist/web/server/{chunk-DO3TVNGA.js → chunk-TO3YPLNZ.js} +6 -6
  44. package/dist/web/server/{chunk-3IKSPTYI.js → chunk-UKINNXJY.js} +2 -2
  45. package/dist/web/server/{chunk-M2FGGPNA.js → chunk-VGDP4YDU.js} +70 -45
  46. package/dist/web/server/{chunk-PCJ5EKFE.js → chunk-VRLTWOVJ.js} +11 -6
  47. package/dist/web/server/{chunk-HBZ6YKRB.js → chunk-WN77JNYY.js} +2 -2
  48. package/dist/web/server/{chunk-2U7PWSJX.js → chunk-WZNZQNI4.js} +231 -3633
  49. package/dist/web/server/{chunk-B2F6MLVZ.js → chunk-XFVL5ITL.js} +2246 -2228
  50. package/dist/web/server/{chunk-3GSFXWL5.js → chunk-XLCTCC4W.js} +3 -3
  51. package/dist/web/server/{chunk-AZZHUVJR.js → chunk-Y4MHIA7B.js} +18 -26
  52. package/dist/web/server/{fleet-pi-tool-renderer-lJvZWmBJ-4M5YI6VS.js → fleet-pi-tool-renderer-CE45vM6T-2UQN6RJM.js} +11 -9
  53. package/dist/web/server/{fork-picker-dialog-BZzfxdQd-Y725VJ7G.js → fork-picker-dialog-DCzuGelH-TN2Q5OXI.js} +5 -5
  54. package/dist/web/server/{openui-renderer-Cg4RSE9k-7BTJIYZJ.js → openui-renderer-c36_GYes-HX46N4M5.js} +11 -11
  55. package/dist/web/server/{repl-panel-BEQrC2ef-V3YEZ7EO.js → repl-panel-D9E8nkQy-L45ZNG2V.js} +4 -3
  56. package/dist/web/server/{router-CEahIUpn-SRG7XKIH.js → router-_ZpegqiQ-QIE44PIB.js} +1737 -1370
  57. package/dist/web/server/{routes-BznemByz-F4DJAYIM.js → routes-Ct81-8Tq-LHRMOS7R.js} +2882 -2330
  58. package/dist/web/server/server.js +3 -3
  59. package/dist/web/server/{session-insights-panel-JfeTHE0d-3HZB3ZWI.js → session-insights-panel-BHZyKDTo-LRMAMA3O.js} +4 -2
  60. package/dist/web/server/{settings-dialog-DgeBMORv-7SRSENPM.js → settings-dialog-B4uUS6f--AZ4I4ZOT.js} +142 -142
  61. package/dist/web/server/{start-CLAD7RcD-56S4BWMM.js → start-BYVnok_H-IA6TWGA3.js} +1 -1
  62. package/dist/web/server/subagent-chat-panel-C97S3WID-DLOAD5TG.js +63 -0
  63. package/dist/web/server/subagents-panel-iHpvMIZy-LI6XK66M.js +181 -0
  64. package/dist/web/server/{workspace-panel-y54P79_B-VPIYUXF6.js → workspace-panel-CHPoiXEo-YB4WS3MK.js} +2 -2
  65. package/package.json +5 -5
  66. package/dist/web/client/assets/artifacts-panel-CX62LQ13.js +0 -1
  67. package/dist/web/client/assets/chat-command-palette-C4sSf8Kg.js +0 -1
  68. package/dist/web/client/assets/collapsible-DmyYcezk.js +0 -1
  69. package/dist/web/client/assets/command-CB6emP8m.js +0 -2
  70. package/dist/web/client/assets/conversation-turns-ByFoWPXe.js +0 -6
  71. package/dist/web/client/assets/globals-CqqQdk2S.css +0 -2
  72. package/dist/web/client/assets/range-vSJ7Ux_5.js +0 -2
  73. package/dist/web/client/assets/repl-panel-DiGS6uCw.js +0 -1
  74. package/dist/web/client/assets/routes-CxlNCi_v.js +0 -16
  75. package/dist/web/client/assets/session-insights-panel-DwmwiikS.js +0 -1
  76. package/dist/web/client/assets/subagents-panel-DGnsK6Nx.js +0 -1
  77. package/dist/web/server/chunk-ZEVZFLIY.js +0 -334
  78. package/dist/web/server/subagents-panel-CzZe3co7-2VZ5JTWF.js +0 -332
@@ -17,7 +17,7 @@ import {
17
17
  useRefWithInit,
18
18
  useRenderElement,
19
19
  useStableCallback
20
- } from "./chunk-X2TUFLTP.js";
20
+ } from "./chunk-BLVCDQ7E.js";
21
21
  import {
22
22
  cn
23
23
  } from "./chunk-DJMHPJBP.js";
@@ -30,20 +30,110 @@ import {
30
30
  __toESM
31
31
  } from "./chunk-L547YHC4.js";
32
32
 
33
- // web/app/dist/server/assets/button-BK16gj8l.js
34
- import * as React$1 from "react";
33
+ // web/app/dist/server/assets/FloatingPortal-KDP5UEZ3.js
34
+ import * as React$3 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-lg 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 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
102
+ xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg 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-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
104
+ lg: "h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
105
+ icon: "size-8",
106
+ "icon-xs": "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
107
+ "icon-sm": "size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg",
108
+ "icon-lg": "size-9"
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
+ }
37
127
  var require_use_sync_external_store_shim_production = /* @__PURE__ */ __commonJSMin(((exports) => {
38
- var React$3 = __require("react");
128
+ var React$2 = __require("react");
39
129
  function is(x, y) {
40
130
  return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
41
131
  }
42
132
  var objectIs = "function" === typeof Object.is ? Object.is : is;
43
- var useState2 = React$3.useState;
44
- var useEffect2 = React$3.useEffect;
45
- var useLayoutEffect = React$3.useLayoutEffect;
46
- var useDebugValue2 = React$3.useDebugValue;
133
+ var useState2 = React$2.useState;
134
+ var useEffect2 = React$2.useEffect;
135
+ var useLayoutEffect = React$2.useLayoutEffect;
136
+ var useDebugValue2 = React$2.useDebugValue;
47
137
  function useSyncExternalStore$2(subscribe, getSnapshot) {
48
138
  var value = getSnapshot(), _useState = useState2({ inst: {
49
139
  value,
@@ -81,23 +171,23 @@ var require_use_sync_external_store_shim_production = /* @__PURE__ */ __commonJS
81
171
  return getSnapshot();
82
172
  }
83
173
  var shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
84
- exports.useSyncExternalStore = void 0 !== React$3.useSyncExternalStore ? React$3.useSyncExternalStore : shim;
174
+ exports.useSyncExternalStore = void 0 !== React$2.useSyncExternalStore ? React$2.useSyncExternalStore : shim;
85
175
  }));
86
176
  var require_shim = /* @__PURE__ */ __commonJSMin(((exports, module) => {
87
177
  module.exports = require_use_sync_external_store_shim_production();
88
178
  }));
89
179
  var require_with_selector_production = /* @__PURE__ */ __commonJSMin(((exports) => {
90
- var React$2 = __require("react");
180
+ var React$1 = __require("react");
91
181
  var shim = require_shim();
92
182
  function is(x, y) {
93
183
  return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
94
184
  }
95
185
  var objectIs = "function" === typeof Object.is ? Object.is : is;
96
186
  var useSyncExternalStore = shim.useSyncExternalStore;
97
- var useRef2 = React$2.useRef;
98
- var useEffect2 = React$2.useEffect;
99
- var useMemo2 = React$2.useMemo;
100
- var useDebugValue2 = React$2.useDebugValue;
187
+ var useRef2 = React$1.useRef;
188
+ var useEffect2 = React$1.useEffect;
189
+ var useMemo2 = React$1.useMemo;
190
+ var useDebugValue2 = React$1.useDebugValue;
101
191
  exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
102
192
  var instRef = useRef2(null);
103
193
  if (null === instRef.current) {
@@ -179,7 +269,7 @@ function fastComponent(fn) {
179
269
  return FastComponent;
180
270
  }
181
271
  function fastComponentRef(fn) {
182
- return /* @__PURE__ */ React$1.forwardRef(fastComponent(fn));
272
+ return /* @__PURE__ */ React$3.forwardRef(fastComponent(fn));
183
273
  }
184
274
  function createInstance() {
185
275
  return { didInitialize: false };
@@ -189,7 +279,7 @@ function useStore(store, selector, a1, a2, a3) {
189
279
  return useStoreImplementation(store, selector, a1, a2, a3);
190
280
  }
191
281
  function useStoreR19(store, selector, a1, a2, a3) {
192
- const getSelection = React$1.useCallback(() => selector(store.getSnapshot(), a1, a2, a3), [
282
+ const getSelection = React$3.useCallback(() => selector(store.getSnapshot(), a1, a2, a3), [
193
283
  store,
194
284
  selector,
195
285
  a1,
@@ -378,7 +468,7 @@ var ReactStore = class extends Store {
378
468
  * by `useState` is updated before the next render (similarly to React's `useState`).
379
469
  */
380
470
  useSyncedValue(key, value) {
381
- React$1.useDebugValue(key);
471
+ React$3.useDebugValue(key);
382
472
  const store = this;
383
473
  useIsoLayoutEffect(() => {
384
474
  if (store.state[key] !== value) store.set(key, value);
@@ -426,7 +516,7 @@ var ReactStore = class extends Store {
426
516
  * is non-undefined, the store's state at `key` is updated to match `controlled`.
427
517
  */
428
518
  useControlledProp(key, controlled) {
429
- React$1.useDebugValue(key);
519
+ React$3.useDebugValue(key);
430
520
  const store = this;
431
521
  const isControlled = controlled !== void 0;
432
522
  useIsoLayoutEffect(() => {
@@ -457,7 +547,7 @@ var ReactStore = class extends Store {
457
547
  * @param key Key of the selector to use.
458
548
  */
459
549
  useState(key, a1, a2, a3) {
460
- React$1.useDebugValue(key);
550
+ React$3.useDebugValue(key);
461
551
  return useStore(this, this.selectors[key], a1, a2, a3);
462
552
  }
463
553
  /**
@@ -468,7 +558,7 @@ var ReactStore = class extends Store {
468
558
  * @param fn Function to assign.
469
559
  */
470
560
  useContextCallback(key, fn) {
471
- React$1.useDebugValue(key);
561
+ React$3.useDebugValue(key);
472
562
  const stableFunction = useStableCallback(fn ?? NOOP);
473
563
  this.context[key] = stableFunction;
474
564
  }
@@ -479,7 +569,7 @@ var ReactStore = class extends Store {
479
569
  * @param key Key of the state to set.
480
570
  */
481
571
  useStateSetter(key) {
482
- const ref = React$1.useRef(void 0);
572
+ const ref = React$3.useRef(void 0);
483
573
  if (ref.current === void 0) ref.current = (value) => {
484
574
  this.set(key, value);
485
575
  };
@@ -515,9 +605,6 @@ function mergeCleanups(...cleanups) {
515
605
  }
516
606
  };
517
607
  }
518
- function ownerDocument(node) {
519
- return node?.ownerDocument || document;
520
- }
521
608
  var EMPTY = 0;
522
609
  var Timeout = class Timeout2 {
523
610
  static create() {
@@ -844,8 +931,8 @@ var visuallyHiddenInput = {
844
931
  ...visuallyHiddenBase,
845
932
  position: "absolute"
846
933
  };
847
- var FocusGuard = /* @__PURE__ */ React$1.forwardRef(function FocusGuard2(props, ref) {
848
- const [role, setRole] = React$1.useState();
934
+ var FocusGuard = /* @__PURE__ */ React$3.forwardRef(function FocusGuard2(props, ref) {
935
+ const [role, setRole] = React$3.useState();
849
936
  useIsoLayoutEffect(() => {
850
937
  if (voiceOver && webkit) setRole("button");
851
938
  }, []);
@@ -883,19 +970,19 @@ var ownerVisuallyHidden = {
883
970
  function createAttribute(name) {
884
971
  return `data-base-ui-${name}`;
885
972
  }
886
- var PortalContext = /* @__PURE__ */ React$1.createContext(null);
887
- var usePortalContext = () => React$1.useContext(PortalContext);
973
+ var PortalContext = /* @__PURE__ */ React$3.createContext(null);
974
+ var usePortalContext = () => React$3.useContext(PortalContext);
888
975
  var attr = createAttribute("portal");
889
976
  function useFloatingPortalNode(props = {}) {
890
977
  const { ref, container: containerProp, componentProps = EMPTY_OBJECT, elementProps } = props;
891
978
  const uniqueId = useId$1();
892
979
  const parentPortalNode = usePortalContext()?.portalNode;
893
- const [containerElement, setContainerElement] = React$1.useState(null);
894
- const [portalNode, setPortalNode] = React$1.useState(null);
980
+ const [containerElement, setContainerElement] = React$3.useState(null);
981
+ const [portalNode, setPortalNode] = React$3.useState(null);
895
982
  const setPortalNodeRef = useStableCallback((node) => {
896
983
  if (node !== null) setPortalNode(node);
897
984
  });
898
- const containerRef = React$1.useRef(null);
985
+ const containerRef = React$3.useRef(null);
899
986
  useIsoLayoutEffect(() => {
900
987
  if (containerProp === null) {
901
988
  if (containerRef.current) {
@@ -930,11 +1017,11 @@ function useFloatingPortalNode(props = {}) {
930
1017
  const portalSubtree = containerElement && portalElement ? /* @__PURE__ */ ReactDOM.createPortal(portalElement, containerElement) : null;
931
1018
  return {
932
1019
  node: portalNode,
933
- nodeId: /* @__PURE__ */ React$1.isValidElement(portalElement) ? portalElement.props.id : void 0,
1020
+ nodeId: /* @__PURE__ */ React$3.isValidElement(portalElement) ? portalElement.props.id : void 0,
934
1021
  subtree: portalSubtree
935
1022
  };
936
1023
  }
937
- var FloatingPortal = /* @__PURE__ */ React$1.forwardRef(function FloatingPortal2(componentProps, forwardedRef) {
1024
+ var FloatingPortal = /* @__PURE__ */ React$3.forwardRef(function FloatingPortal2(componentProps, forwardedRef) {
938
1025
  const { render, className, style, children, container, ...elementProps } = componentProps;
939
1026
  const { node: portalNode, nodeId: portalNodeId, subtree: portalSubtree } = useFloatingPortalNode({
940
1027
  container,
@@ -942,16 +1029,16 @@ var FloatingPortal = /* @__PURE__ */ React$1.forwardRef(function FloatingPortal2
942
1029
  componentProps,
943
1030
  elementProps
944
1031
  });
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);
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);
951
1038
  const modal = focusManagerState?.modal;
952
1039
  const open = focusManagerState?.open;
953
1040
  const shouldRenderGuards = !!focusManagerState && !focusManagerState.modal && focusManagerState.open && !!portalNode;
954
- React$1.useEffect(() => {
1041
+ React$3.useEffect(() => {
955
1042
  if (!portalNode || modal) return;
956
1043
  function onFocus(event) {
957
1044
  if (portalNode && event.relatedTarget && isOutsideEvent(event)) {
@@ -973,7 +1060,7 @@ var FloatingPortal = /* @__PURE__ */ React$1.forwardRef(function FloatingPortal2
973
1060
  enableFocusInside(portalNode);
974
1061
  focusInsideDisabledRef.current = false;
975
1062
  }, [open, portalNode]);
976
- const portalContextValue = React$1.useMemo(() => ({
1063
+ const portalContextValue = React$3.useMemo(() => ({
977
1064
  beforeOutsideRef,
978
1065
  afterOutsideRef,
979
1066
  beforeInsideRef,
@@ -981,7 +1068,7 @@ var FloatingPortal = /* @__PURE__ */ React$1.forwardRef(function FloatingPortal2
981
1068
  portalNode,
982
1069
  setFocusManagerState
983
1070
  }), [portalNode]);
984
- return /* @__PURE__ */ jsxs(React$1.Fragment, { children: [portalSubtree, /* @__PURE__ */ jsxs(PortalContext.Provider, {
1071
+ return /* @__PURE__ */ jsxs(React$3.Fragment, { children: [portalSubtree, /* @__PURE__ */ jsxs(PortalContext.Provider, {
985
1072
  value: portalContextValue,
986
1073
  children: [
987
1074
  shouldRenderGuards && portalNode && /* @__PURE__ */ jsx(FocusGuard, {
@@ -1011,95 +1098,11 @@ var FloatingPortal = /* @__PURE__ */ React$1.forwardRef(function FloatingPortal2
1011
1098
  ]
1012
1099
  })] });
1013
1100
  });
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-lg 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 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
1076
- xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg 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-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
1078
- lg: "h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
1079
- icon: "size-8",
1080
- "icon-xs": "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
1081
- "icon-sm": "size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg",
1082
- "icon-lg": "size-9"
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,
1103
1106
  require_shim,
1104
1107
  require_with_selector,
1105
1108
  fastComponent,
@@ -1107,7 +1110,6 @@ export {
1107
1110
  useStore,
1108
1111
  ReactStore,
1109
1112
  mergeCleanups,
1110
- ownerDocument,
1111
1113
  Timeout,
1112
1114
  useTimeout,
1113
1115
  ios,
@@ -1158,9 +1160,7 @@ export {
1158
1160
  createAttribute,
1159
1161
  usePortalContext,
1160
1162
  useFloatingPortalNode,
1161
- FloatingPortal,
1162
- cva,
1163
- Button2 as Button
1163
+ FloatingPortal
1164
1164
  };
1165
1165
  /**
1166
1166
  * @license React