@arbidocs/react 0.4.32 → 0.4.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/artifacts/index.cjs +17 -17
- package/dist/artifacts/index.js +5 -5
- package/dist/{chunk-EOOHRPFM.cjs → chunk-775VGSKN.cjs} +59 -10
- package/dist/chunk-775VGSKN.cjs.map +1 -0
- package/dist/{chunk-OXUFBF5W.js → chunk-FHTSDPQV.js} +405 -123
- package/dist/chunk-FHTSDPQV.js.map +1 -0
- package/dist/{chunk-6YSHODMG.js → chunk-FOEYFNQ4.js} +59 -10
- package/dist/chunk-FOEYFNQ4.js.map +1 -0
- package/dist/{chunk-6BLXIF4R.cjs → chunk-PW7GGG7E.cjs} +9 -7
- package/dist/chunk-PW7GGG7E.cjs.map +1 -0
- package/dist/{chunk-3AK4QJ62.cjs → chunk-QJLXFDKV.cjs} +412 -125
- package/dist/chunk-QJLXFDKV.cjs.map +1 -0
- package/dist/{chunk-OBTCAI4E.js → chunk-UDOPD3GK.js} +12 -4
- package/dist/chunk-UDOPD3GK.js.map +1 -0
- package/dist/{chunk-NDG44JWI.js → chunk-V3A7JDJV.js} +8 -6
- package/dist/chunk-V3A7JDJV.js.map +1 -0
- package/dist/{chunk-YSZJCWDD.cjs → chunk-Z4M7JB4L.cjs} +12 -4
- package/dist/chunk-Z4M7JB4L.cjs.map +1 -0
- package/dist/{index-CcbVSNSP.d.cts → index-C7OqcKY3.d.cts} +3 -1
- package/dist/{index-CcbVSNSP.d.ts → index-C7OqcKY3.d.ts} +3 -1
- package/dist/{index-C99tcxue.d.ts → index-CUxIcC5j.d.cts} +19 -7
- package/dist/{index-C99tcxue.d.cts → index-CUxIcC5j.d.ts} +19 -7
- package/dist/index.cjs +463 -634
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +60 -10
- package/dist/index.d.ts +60 -10
- package/dist/index.js +26 -213
- package/dist/index.js.map +1 -1
- package/dist/shell/index.cjs +6 -6
- package/dist/shell/index.d.cts +1 -1
- package/dist/shell/index.d.ts +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/ui/index.cjs +134 -130
- package/dist/ui/index.d.cts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-3AK4QJ62.cjs.map +0 -1
- package/dist/chunk-6BLXIF4R.cjs.map +0 -1
- package/dist/chunk-6YSHODMG.js.map +0 -1
- package/dist/chunk-EOOHRPFM.cjs.map +0 -1
- package/dist/chunk-NDG44JWI.js.map +0 -1
- package/dist/chunk-OBTCAI4E.js.map +0 -1
- package/dist/chunk-OXUFBF5W.js.map +0 -1
- package/dist/chunk-YSZJCWDD.cjs.map +0 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkOBNTJEEO_cjs = require('./chunk-OBNTJEEO.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk775VGSKN_cjs = require('./chunk-775VGSKN.cjs');
|
|
5
5
|
var chunkS6A6FSG7_cjs = require('./chunk-S6A6FSG7.cjs');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var reactDom = require('react-dom');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
9
|
var lucideReact = require('lucide-react');
|
|
10
|
+
var SelectPrimitive = require('@radix-ui/react-select');
|
|
10
11
|
var AvatarPrimitive = require('@radix-ui/react-avatar');
|
|
11
12
|
var classVarianceAuthority = require('class-variance-authority');
|
|
12
13
|
var reactSlot = require('@radix-ui/react-slot');
|
|
@@ -23,7 +24,6 @@ var TogglePrimitive = require('@radix-ui/react-toggle');
|
|
|
23
24
|
var ToggleGroupPrimitive = require('@radix-ui/react-toggle-group');
|
|
24
25
|
var DialogPrimitive = require('@radix-ui/react-dialog');
|
|
25
26
|
var PopoverPrimitive = require('@radix-ui/react-popover');
|
|
26
|
-
var SelectPrimitive = require('@radix-ui/react-select');
|
|
27
27
|
var cmdk = require('cmdk');
|
|
28
28
|
|
|
29
29
|
function _interopNamespace(e) {
|
|
@@ -45,6 +45,7 @@ function _interopNamespace(e) {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
48
|
+
var SelectPrimitive__namespace = /*#__PURE__*/_interopNamespace(SelectPrimitive);
|
|
48
49
|
var AvatarPrimitive__namespace = /*#__PURE__*/_interopNamespace(AvatarPrimitive);
|
|
49
50
|
var HoverCardPrimitive__namespace = /*#__PURE__*/_interopNamespace(HoverCardPrimitive);
|
|
50
51
|
var SeparatorPrimitive__namespace = /*#__PURE__*/_interopNamespace(SeparatorPrimitive);
|
|
@@ -59,7 +60,6 @@ var TogglePrimitive__namespace = /*#__PURE__*/_interopNamespace(TogglePrimitive)
|
|
|
59
60
|
var ToggleGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(ToggleGroupPrimitive);
|
|
60
61
|
var DialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(DialogPrimitive);
|
|
61
62
|
var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespace(PopoverPrimitive);
|
|
62
|
-
var SelectPrimitive__namespace = /*#__PURE__*/_interopNamespace(SelectPrimitive);
|
|
63
63
|
|
|
64
64
|
var TooltipContext = React__namespace.createContext(null);
|
|
65
65
|
var DEFAULT_DELAY = 300;
|
|
@@ -332,6 +332,108 @@ function IconToggle({
|
|
|
332
332
|
] }) : button
|
|
333
333
|
] });
|
|
334
334
|
}
|
|
335
|
+
var Select = SelectPrimitive__namespace.Root;
|
|
336
|
+
var SelectGroup = SelectPrimitive__namespace.Group;
|
|
337
|
+
var SelectValue = SelectPrimitive__namespace.Value;
|
|
338
|
+
var SelectTrigger = React__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
339
|
+
SelectPrimitive__namespace.Trigger,
|
|
340
|
+
{
|
|
341
|
+
ref,
|
|
342
|
+
className: chunkS6A6FSG7_cjs.cn(
|
|
343
|
+
"flex h-9 pointer-coarse:min-h-11 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground/60 focus:outline-none focus-visible:border-ring/50 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
344
|
+
className
|
|
345
|
+
),
|
|
346
|
+
...props,
|
|
347
|
+
children: [
|
|
348
|
+
children,
|
|
349
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
350
|
+
]
|
|
351
|
+
}
|
|
352
|
+
));
|
|
353
|
+
SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
|
|
354
|
+
var SelectScrollUpButton = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
355
|
+
SelectPrimitive__namespace.ScrollUpButton,
|
|
356
|
+
{
|
|
357
|
+
ref,
|
|
358
|
+
className: chunkS6A6FSG7_cjs.cn("flex cursor-default items-center justify-center py-1", className),
|
|
359
|
+
...props,
|
|
360
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronUp, { className: "h-4 w-4" })
|
|
361
|
+
}
|
|
362
|
+
));
|
|
363
|
+
SelectScrollUpButton.displayName = SelectPrimitive__namespace.ScrollUpButton.displayName;
|
|
364
|
+
var SelectScrollDownButton = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
365
|
+
SelectPrimitive__namespace.ScrollDownButton,
|
|
366
|
+
{
|
|
367
|
+
ref,
|
|
368
|
+
className: chunkS6A6FSG7_cjs.cn("flex cursor-default items-center justify-center py-1", className),
|
|
369
|
+
...props,
|
|
370
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "h-4 w-4" })
|
|
371
|
+
}
|
|
372
|
+
));
|
|
373
|
+
SelectScrollDownButton.displayName = SelectPrimitive__namespace.ScrollDownButton.displayName;
|
|
374
|
+
var SelectContent = React__namespace.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
375
|
+
SelectPrimitive__namespace.Content,
|
|
376
|
+
{
|
|
377
|
+
ref,
|
|
378
|
+
className: chunkS6A6FSG7_cjs.cn(
|
|
379
|
+
"relative z-50 max-h-[min(24rem,var(--radix-select-content-available-height))] min-w-[8rem] max-w-[calc(100vw-1rem)] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
380
|
+
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
381
|
+
className
|
|
382
|
+
),
|
|
383
|
+
position,
|
|
384
|
+
collisionPadding: chunkOBNTJEEO_cjs.getCollisionPadding(),
|
|
385
|
+
...props,
|
|
386
|
+
children: [
|
|
387
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectScrollUpButton, {}),
|
|
388
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
389
|
+
SelectPrimitive__namespace.Viewport,
|
|
390
|
+
{
|
|
391
|
+
className: chunkS6A6FSG7_cjs.cn(
|
|
392
|
+
"p-1",
|
|
393
|
+
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
394
|
+
),
|
|
395
|
+
children
|
|
396
|
+
}
|
|
397
|
+
),
|
|
398
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectScrollDownButton, {})
|
|
399
|
+
]
|
|
400
|
+
}
|
|
401
|
+
) }));
|
|
402
|
+
SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
|
|
403
|
+
var SelectLabel = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
404
|
+
SelectPrimitive__namespace.Label,
|
|
405
|
+
{
|
|
406
|
+
ref,
|
|
407
|
+
className: chunkS6A6FSG7_cjs.cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className),
|
|
408
|
+
...props
|
|
409
|
+
}
|
|
410
|
+
));
|
|
411
|
+
SelectLabel.displayName = SelectPrimitive__namespace.Label.displayName;
|
|
412
|
+
var SelectItem = React__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
413
|
+
SelectPrimitive__namespace.Item,
|
|
414
|
+
{
|
|
415
|
+
ref,
|
|
416
|
+
className: chunkS6A6FSG7_cjs.cn(
|
|
417
|
+
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 pointer-coarse:min-h-11 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
418
|
+
className
|
|
419
|
+
),
|
|
420
|
+
...props,
|
|
421
|
+
children: [
|
|
422
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-4 w-4" }) }) }),
|
|
423
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemText, { children })
|
|
424
|
+
]
|
|
425
|
+
}
|
|
426
|
+
));
|
|
427
|
+
SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
|
|
428
|
+
var SelectSeparator = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
429
|
+
SelectPrimitive__namespace.Separator,
|
|
430
|
+
{
|
|
431
|
+
ref,
|
|
432
|
+
className: chunkS6A6FSG7_cjs.cn("-mx-1 my-1 h-px bg-muted", className),
|
|
433
|
+
...props
|
|
434
|
+
}
|
|
435
|
+
));
|
|
436
|
+
SelectSeparator.displayName = SelectPrimitive__namespace.Separator.displayName;
|
|
335
437
|
var COLORS = {
|
|
336
438
|
text: "text-secondary",
|
|
337
439
|
bg: "bg-secondary"
|
|
@@ -341,6 +443,7 @@ function isItemShared(item) {
|
|
|
341
443
|
}
|
|
342
444
|
function VisibilityToggle({
|
|
343
445
|
items,
|
|
446
|
+
presentation = "toggle",
|
|
344
447
|
onToggle,
|
|
345
448
|
disabled = false,
|
|
346
449
|
disabledTooltip,
|
|
@@ -372,6 +475,37 @@ function VisibilityToggle({
|
|
|
372
475
|
if (disablePrivate && !shouldShare) return;
|
|
373
476
|
onToggle(shouldShare);
|
|
374
477
|
};
|
|
478
|
+
if (presentation === "select")
|
|
479
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
480
|
+
Select,
|
|
481
|
+
{
|
|
482
|
+
value: isMixed ? "mixed" : isAllShared ? "workspace" : "me",
|
|
483
|
+
onValueChange: (value) => onToggle(value === "workspace"),
|
|
484
|
+
disabled: disabled || !itemsArray.length,
|
|
485
|
+
children: [
|
|
486
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
487
|
+
SelectTrigger,
|
|
488
|
+
{
|
|
489
|
+
"aria-label": label,
|
|
490
|
+
"data-testid": dataTestId,
|
|
491
|
+
className: "h-7 w-auto gap-1 border-0 bg-transparent px-1 text-xs font-normal text-muted-foreground shadow-none hover:bg-muted pointer-coarse:h-11",
|
|
492
|
+
children: [
|
|
493
|
+
showLabel && /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
|
494
|
+
label,
|
|
495
|
+
":"
|
|
496
|
+
] }),
|
|
497
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectValue, {})
|
|
498
|
+
]
|
|
499
|
+
}
|
|
500
|
+
),
|
|
501
|
+
/* @__PURE__ */ jsxRuntime.jsxs(SelectContent, { children: [
|
|
502
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectItem, { value: "me", disabled: disablePrivate, children: "Me" }),
|
|
503
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectItem, { value: "workspace", children: "Workspace" }),
|
|
504
|
+
isMixed && /* @__PURE__ */ jsxRuntime.jsx(SelectItem, { value: "mixed", disabled: true, children: "Mixed" })
|
|
505
|
+
] })
|
|
506
|
+
]
|
|
507
|
+
}
|
|
508
|
+
);
|
|
375
509
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
376
510
|
IconToggle,
|
|
377
511
|
{
|
|
@@ -455,7 +589,7 @@ function Badge({ className, variant, ...props }) {
|
|
|
455
589
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkS6A6FSG7_cjs.cn(badgeVariants({ variant }), className), ...props });
|
|
456
590
|
}
|
|
457
591
|
var buttonVariants = classVarianceAuthority.cva(
|
|
458
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-
|
|
592
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
459
593
|
{
|
|
460
594
|
variants: {
|
|
461
595
|
// One filled primary per view; everything else is tonal, hairline or ghost. No
|
|
@@ -966,7 +1100,7 @@ var Input = React__namespace.forwardRef(
|
|
|
966
1100
|
}
|
|
967
1101
|
);
|
|
968
1102
|
Input.displayName = "Input";
|
|
969
|
-
var
|
|
1103
|
+
var Label2 = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
970
1104
|
"label",
|
|
971
1105
|
{
|
|
972
1106
|
ref,
|
|
@@ -974,8 +1108,8 @@ var Label = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
974
1108
|
...props
|
|
975
1109
|
}
|
|
976
1110
|
));
|
|
977
|
-
|
|
978
|
-
var
|
|
1111
|
+
Label2.displayName = "Label";
|
|
1112
|
+
var Separator2 = React__namespace.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
979
1113
|
SeparatorPrimitive__namespace.Root,
|
|
980
1114
|
{
|
|
981
1115
|
ref,
|
|
@@ -989,7 +1123,7 @@ var Separator = React__namespace.forwardRef(({ className, orientation = "horizon
|
|
|
989
1123
|
...props
|
|
990
1124
|
}
|
|
991
1125
|
));
|
|
992
|
-
|
|
1126
|
+
Separator2.displayName = SeparatorPrimitive__namespace.Root.displayName;
|
|
993
1127
|
var Textarea = React__namespace.forwardRef(
|
|
994
1128
|
({ className, dictate, onFocus, onBlur, ...props }, forwardedRef) => {
|
|
995
1129
|
const dictateCtx = useDictateContext();
|
|
@@ -1314,6 +1448,7 @@ var DialogOverlay = React__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
1314
1448
|
));
|
|
1315
1449
|
DialogOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
|
|
1316
1450
|
var PHONE_PRESENTATION = {
|
|
1451
|
+
right: "inset-y-0 left-auto right-0 h-dvh max-h-dvh w-full max-w-[28rem] translate-x-0 translate-y-0 rounded-none border-y-0 border-r-0 data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right data-[state=open]:zoom-in-100 data-[state=closed]:zoom-out-100",
|
|
1317
1452
|
center: "",
|
|
1318
1453
|
sheet: "max-sm:top-auto max-sm:bottom-0 max-sm:left-0 max-sm:w-full max-sm:max-w-full max-sm:border-x-0 max-sm:border-b-0 max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none max-sm:rounded-t-xl max-sm:pb-[max(1.5rem,env(safe-area-inset-bottom))] max-sm:max-h-[calc(100dvh-env(safe-area-inset-top,0px)-2.5rem)] max-sm:data-[state=open]:slide-in-from-bottom-10 max-sm:data-[state=open]:zoom-in-100 max-sm:data-[state=closed]:zoom-out-100",
|
|
1319
1454
|
full: "max-sm:top-auto max-sm:bottom-0 max-sm:left-0 max-sm:border-x-0 max-sm:border-b-0 max-sm:h-[calc(100dvh-env(safe-area-inset-top,0px)-1rem)] max-sm:w-full max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none max-sm:rounded-t-xl max-sm:pb-[max(1.5rem,env(safe-area-inset-bottom))] max-sm:max-h-none max-sm:data-[state=open]:slide-in-from-bottom-10 max-sm:data-[state=open]:zoom-in-100 max-sm:data-[state=closed]:zoom-out-100"
|
|
@@ -1438,6 +1573,7 @@ function MarkMenu({
|
|
|
1438
1573
|
children,
|
|
1439
1574
|
onPointerDown,
|
|
1440
1575
|
onPointerEnter,
|
|
1576
|
+
onPointerMove,
|
|
1441
1577
|
onPointerLeave,
|
|
1442
1578
|
onFocus,
|
|
1443
1579
|
onBlur,
|
|
@@ -1453,6 +1589,7 @@ function MarkMenu({
|
|
|
1453
1589
|
const mode = React.useRef("hover");
|
|
1454
1590
|
const lastPointer = React.useRef("mouse");
|
|
1455
1591
|
const focusFirstOnOpen = React.useRef(false);
|
|
1592
|
+
const hoverArmed = React.useRef(false);
|
|
1456
1593
|
const isEmpty = items.length === 0 && !preview;
|
|
1457
1594
|
const ordered = [...items].sort((a, b) => Number(!!b.primary) - Number(!!a.primary));
|
|
1458
1595
|
const primary = ordered[0];
|
|
@@ -1461,6 +1598,17 @@ function MarkMenu({
|
|
|
1461
1598
|
timer.current = null;
|
|
1462
1599
|
};
|
|
1463
1600
|
React.useEffect(() => clearTimer, []);
|
|
1601
|
+
React.useEffect(() => {
|
|
1602
|
+
if (!open) return;
|
|
1603
|
+
const onDocumentPointerDown = (e) => {
|
|
1604
|
+
const target = e.target;
|
|
1605
|
+
if (triggerRef.current?.contains(target) || contentRef.current?.contains(target)) return;
|
|
1606
|
+
if (timer.current) clearTimeout(timer.current);
|
|
1607
|
+
setOpen(false);
|
|
1608
|
+
};
|
|
1609
|
+
document.addEventListener("pointerdown", onDocumentPointerDown, true);
|
|
1610
|
+
return () => document.removeEventListener("pointerdown", onDocumentPointerDown, true);
|
|
1611
|
+
}, [open]);
|
|
1464
1612
|
const rows = () => Array.from(contentRef.current?.querySelectorAll('[role="menuitem"]') ?? []);
|
|
1465
1613
|
const firstItem = () => rows()[0];
|
|
1466
1614
|
const openWith = (next, focusFirst = false) => {
|
|
@@ -1490,10 +1638,18 @@ function MarkMenu({
|
|
|
1490
1638
|
onPointerEnter?.(e);
|
|
1491
1639
|
if (isCoarse(e.pointerType) || isEmpty) return;
|
|
1492
1640
|
lastPointer.current = e.pointerType;
|
|
1641
|
+
hoverArmed.current = true;
|
|
1642
|
+
};
|
|
1643
|
+
const handlePointerMove = (e) => {
|
|
1644
|
+
onPointerMove?.(e);
|
|
1645
|
+
if (!hoverArmed.current) return;
|
|
1646
|
+
hoverArmed.current = false;
|
|
1647
|
+
if (isCoarse(e.pointerType)) return;
|
|
1493
1648
|
schedule(() => openWith("hover"), openDelay);
|
|
1494
1649
|
};
|
|
1495
1650
|
const handlePointerLeave = (e) => {
|
|
1496
1651
|
onPointerLeave?.(e);
|
|
1652
|
+
hoverArmed.current = false;
|
|
1497
1653
|
if (isCoarse(e.pointerType)) return;
|
|
1498
1654
|
if (!open) return clearTimer();
|
|
1499
1655
|
if (mode.current === "hover") schedule(() => close(), closeDelay);
|
|
@@ -1587,6 +1743,7 @@ function MarkMenu({
|
|
|
1587
1743
|
"aria-controls": open ? menuId : void 0,
|
|
1588
1744
|
onPointerDown: handlePointerDown,
|
|
1589
1745
|
onPointerEnter: handlePointerEnter,
|
|
1746
|
+
onPointerMove: handlePointerMove,
|
|
1590
1747
|
onPointerLeave: handlePointerLeave,
|
|
1591
1748
|
onFocus: handleFocus,
|
|
1592
1749
|
onBlur: handleBlur,
|
|
@@ -1621,7 +1778,6 @@ function MarkMenu({
|
|
|
1621
1778
|
onInteractOutside: (e) => {
|
|
1622
1779
|
if (triggerRef.current?.contains(e.target)) e.preventDefault();
|
|
1623
1780
|
},
|
|
1624
|
-
onPointerDownOutside: () => close(),
|
|
1625
1781
|
onPointerEnter: clearTimer,
|
|
1626
1782
|
onPointerLeave: (e) => {
|
|
1627
1783
|
if (!isCoarse(e.pointerType) && mode.current === "hover")
|
|
@@ -1666,108 +1822,6 @@ function MarkMenu({
|
|
|
1666
1822
|
)
|
|
1667
1823
|
] });
|
|
1668
1824
|
}
|
|
1669
|
-
var Select = SelectPrimitive__namespace.Root;
|
|
1670
|
-
var SelectGroup = SelectPrimitive__namespace.Group;
|
|
1671
|
-
var SelectValue = SelectPrimitive__namespace.Value;
|
|
1672
|
-
var SelectTrigger = React__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1673
|
-
SelectPrimitive__namespace.Trigger,
|
|
1674
|
-
{
|
|
1675
|
-
ref,
|
|
1676
|
-
className: chunkS6A6FSG7_cjs.cn(
|
|
1677
|
-
"flex h-9 pointer-coarse:min-h-11 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground/60 focus:outline-none focus-visible:border-ring/50 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
1678
|
-
className
|
|
1679
|
-
),
|
|
1680
|
-
...props,
|
|
1681
|
-
children: [
|
|
1682
|
-
children,
|
|
1683
|
-
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
1684
|
-
]
|
|
1685
|
-
}
|
|
1686
|
-
));
|
|
1687
|
-
SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
|
|
1688
|
-
var SelectScrollUpButton = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1689
|
-
SelectPrimitive__namespace.ScrollUpButton,
|
|
1690
|
-
{
|
|
1691
|
-
ref,
|
|
1692
|
-
className: chunkS6A6FSG7_cjs.cn("flex cursor-default items-center justify-center py-1", className),
|
|
1693
|
-
...props,
|
|
1694
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronUp, { className: "h-4 w-4" })
|
|
1695
|
-
}
|
|
1696
|
-
));
|
|
1697
|
-
SelectScrollUpButton.displayName = SelectPrimitive__namespace.ScrollUpButton.displayName;
|
|
1698
|
-
var SelectScrollDownButton = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1699
|
-
SelectPrimitive__namespace.ScrollDownButton,
|
|
1700
|
-
{
|
|
1701
|
-
ref,
|
|
1702
|
-
className: chunkS6A6FSG7_cjs.cn("flex cursor-default items-center justify-center py-1", className),
|
|
1703
|
-
...props,
|
|
1704
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "h-4 w-4" })
|
|
1705
|
-
}
|
|
1706
|
-
));
|
|
1707
|
-
SelectScrollDownButton.displayName = SelectPrimitive__namespace.ScrollDownButton.displayName;
|
|
1708
|
-
var SelectContent = React__namespace.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1709
|
-
SelectPrimitive__namespace.Content,
|
|
1710
|
-
{
|
|
1711
|
-
ref,
|
|
1712
|
-
className: chunkS6A6FSG7_cjs.cn(
|
|
1713
|
-
"relative z-50 max-h-[min(24rem,var(--radix-select-content-available-height))] min-w-[8rem] max-w-[calc(100vw-1rem)] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1714
|
-
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
1715
|
-
className
|
|
1716
|
-
),
|
|
1717
|
-
position,
|
|
1718
|
-
collisionPadding: chunkOBNTJEEO_cjs.getCollisionPadding(),
|
|
1719
|
-
...props,
|
|
1720
|
-
children: [
|
|
1721
|
-
/* @__PURE__ */ jsxRuntime.jsx(SelectScrollUpButton, {}),
|
|
1722
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1723
|
-
SelectPrimitive__namespace.Viewport,
|
|
1724
|
-
{
|
|
1725
|
-
className: chunkS6A6FSG7_cjs.cn(
|
|
1726
|
-
"p-1",
|
|
1727
|
-
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
1728
|
-
),
|
|
1729
|
-
children
|
|
1730
|
-
}
|
|
1731
|
-
),
|
|
1732
|
-
/* @__PURE__ */ jsxRuntime.jsx(SelectScrollDownButton, {})
|
|
1733
|
-
]
|
|
1734
|
-
}
|
|
1735
|
-
) }));
|
|
1736
|
-
SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
|
|
1737
|
-
var SelectLabel = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1738
|
-
SelectPrimitive__namespace.Label,
|
|
1739
|
-
{
|
|
1740
|
-
ref,
|
|
1741
|
-
className: chunkS6A6FSG7_cjs.cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className),
|
|
1742
|
-
...props
|
|
1743
|
-
}
|
|
1744
|
-
));
|
|
1745
|
-
SelectLabel.displayName = SelectPrimitive__namespace.Label.displayName;
|
|
1746
|
-
var SelectItem = React__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1747
|
-
SelectPrimitive__namespace.Item,
|
|
1748
|
-
{
|
|
1749
|
-
ref,
|
|
1750
|
-
className: chunkS6A6FSG7_cjs.cn(
|
|
1751
|
-
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 pointer-coarse:min-h-11 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1752
|
-
className
|
|
1753
|
-
),
|
|
1754
|
-
...props,
|
|
1755
|
-
children: [
|
|
1756
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-4 w-4" }) }) }),
|
|
1757
|
-
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemText, { children })
|
|
1758
|
-
]
|
|
1759
|
-
}
|
|
1760
|
-
));
|
|
1761
|
-
SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
|
|
1762
|
-
var SelectSeparator = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1763
|
-
SelectPrimitive__namespace.Separator,
|
|
1764
|
-
{
|
|
1765
|
-
ref,
|
|
1766
|
-
className: chunkS6A6FSG7_cjs.cn("-mx-1 my-1 h-px bg-muted", className),
|
|
1767
|
-
...props
|
|
1768
|
-
}
|
|
1769
|
-
));
|
|
1770
|
-
SelectSeparator.displayName = SelectPrimitive__namespace.Separator.displayName;
|
|
1771
1825
|
var Command = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1772
1826
|
cmdk.Command,
|
|
1773
1827
|
{
|
|
@@ -1874,7 +1928,7 @@ function AiMarkdown({
|
|
|
1874
1928
|
isStreaming
|
|
1875
1929
|
}) {
|
|
1876
1930
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1877
|
-
|
|
1931
|
+
chunk775VGSKN_cjs.MarkdownRenderer,
|
|
1878
1932
|
{
|
|
1879
1933
|
className: className ?? "text-sm",
|
|
1880
1934
|
components: AI_COMPONENTS,
|
|
@@ -1913,12 +1967,11 @@ var EntityPill = React.forwardRef(function EntityPill2({
|
|
|
1913
1967
|
fullWidth ? "flex w-full" : "inline-flex",
|
|
1914
1968
|
sizeClasses2,
|
|
1915
1969
|
shapeClass,
|
|
1916
|
-
"
|
|
1917
|
-
"
|
|
1918
|
-
"transition-all",
|
|
1970
|
+
"border border-transparent",
|
|
1971
|
+
"transition-colors",
|
|
1919
1972
|
className
|
|
1920
1973
|
);
|
|
1921
|
-
const interactiveClasses = "relative cursor-pointer hover:bg-muted
|
|
1974
|
+
const interactiveClasses = "relative cursor-pointer hover:bg-muted pointer-coarse:after:absolute pointer-coarse:after:inset-x-0 pointer-coarse:after:-inset-y-3 pointer-coarse:after:content-['']";
|
|
1922
1975
|
const disabledClasses = "cursor-default opacity-60";
|
|
1923
1976
|
const highlightClasses = "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground";
|
|
1924
1977
|
const mainContent = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -2028,7 +2081,7 @@ var EntityPill = React.forwardRef(function EntityPill2({
|
|
|
2028
2081
|
ref,
|
|
2029
2082
|
className: chunkS6A6FSG7_cjs.cn(
|
|
2030
2083
|
baseClasses,
|
|
2031
|
-
(onClick || href) && !disabled && "cursor-pointer hover:bg-muted
|
|
2084
|
+
(onClick || href) && !disabled && "cursor-pointer hover:bg-muted",
|
|
2032
2085
|
highlight && highlightClasses
|
|
2033
2086
|
),
|
|
2034
2087
|
"data-testid": testId,
|
|
@@ -2387,6 +2440,206 @@ var PdfIcon = ({ size = 16, className = "" }) => {
|
|
|
2387
2440
|
}
|
|
2388
2441
|
);
|
|
2389
2442
|
};
|
|
2443
|
+
var DocIcon = ({ size = 16, className = "" }) => {
|
|
2444
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2445
|
+
"svg",
|
|
2446
|
+
{
|
|
2447
|
+
width: size,
|
|
2448
|
+
height: size,
|
|
2449
|
+
viewBox: "0 0 24 24",
|
|
2450
|
+
fill: "none",
|
|
2451
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2452
|
+
className,
|
|
2453
|
+
children: [
|
|
2454
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2455
|
+
"path",
|
|
2456
|
+
{
|
|
2457
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z",
|
|
2458
|
+
fill: FILE_TYPE_COLORS.doc,
|
|
2459
|
+
stroke: FILE_TYPE_COLORS.doc,
|
|
2460
|
+
strokeWidth: "1",
|
|
2461
|
+
strokeLinecap: "round",
|
|
2462
|
+
strokeLinejoin: "round"
|
|
2463
|
+
}
|
|
2464
|
+
),
|
|
2465
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2466
|
+
"path",
|
|
2467
|
+
{
|
|
2468
|
+
d: "M14 2v6h6",
|
|
2469
|
+
fill: "none",
|
|
2470
|
+
stroke: FILE_TYPE_COLORS.white,
|
|
2471
|
+
strokeWidth: "1",
|
|
2472
|
+
strokeLinecap: "round",
|
|
2473
|
+
strokeLinejoin: "round"
|
|
2474
|
+
}
|
|
2475
|
+
),
|
|
2476
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2477
|
+
"text",
|
|
2478
|
+
{
|
|
2479
|
+
x: "12",
|
|
2480
|
+
y: "16",
|
|
2481
|
+
fontSize: "6",
|
|
2482
|
+
fill: "white",
|
|
2483
|
+
textAnchor: "middle",
|
|
2484
|
+
fontWeight: "bold",
|
|
2485
|
+
fontFamily: "Arial, sans-serif",
|
|
2486
|
+
children: "DOC"
|
|
2487
|
+
}
|
|
2488
|
+
)
|
|
2489
|
+
]
|
|
2490
|
+
}
|
|
2491
|
+
);
|
|
2492
|
+
};
|
|
2493
|
+
var HtmlIcon = ({ size = 16, className = "" }) => {
|
|
2494
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2495
|
+
"svg",
|
|
2496
|
+
{
|
|
2497
|
+
width: size,
|
|
2498
|
+
height: size,
|
|
2499
|
+
viewBox: "0 0 24 24",
|
|
2500
|
+
fill: "none",
|
|
2501
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2502
|
+
className,
|
|
2503
|
+
children: [
|
|
2504
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2505
|
+
"path",
|
|
2506
|
+
{
|
|
2507
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z",
|
|
2508
|
+
fill: FILE_TYPE_COLORS.html,
|
|
2509
|
+
stroke: FILE_TYPE_COLORS.html,
|
|
2510
|
+
strokeWidth: "1",
|
|
2511
|
+
strokeLinecap: "round",
|
|
2512
|
+
strokeLinejoin: "round"
|
|
2513
|
+
}
|
|
2514
|
+
),
|
|
2515
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2516
|
+
"path",
|
|
2517
|
+
{
|
|
2518
|
+
d: "M14 2v6h6",
|
|
2519
|
+
fill: "none",
|
|
2520
|
+
stroke: FILE_TYPE_COLORS.white,
|
|
2521
|
+
strokeWidth: "1",
|
|
2522
|
+
strokeLinecap: "round",
|
|
2523
|
+
strokeLinejoin: "round"
|
|
2524
|
+
}
|
|
2525
|
+
),
|
|
2526
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2527
|
+
"text",
|
|
2528
|
+
{
|
|
2529
|
+
x: "12",
|
|
2530
|
+
y: "16",
|
|
2531
|
+
fontSize: "5",
|
|
2532
|
+
fill: "white",
|
|
2533
|
+
textAnchor: "middle",
|
|
2534
|
+
fontWeight: "bold",
|
|
2535
|
+
fontFamily: "Arial, sans-serif",
|
|
2536
|
+
children: "HTML"
|
|
2537
|
+
}
|
|
2538
|
+
)
|
|
2539
|
+
]
|
|
2540
|
+
}
|
|
2541
|
+
);
|
|
2542
|
+
};
|
|
2543
|
+
var TxtIcon = ({ size = 16, className = "" }) => {
|
|
2544
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2545
|
+
"svg",
|
|
2546
|
+
{
|
|
2547
|
+
width: size,
|
|
2548
|
+
height: size,
|
|
2549
|
+
viewBox: "0 0 24 24",
|
|
2550
|
+
fill: "none",
|
|
2551
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2552
|
+
className,
|
|
2553
|
+
children: [
|
|
2554
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2555
|
+
"path",
|
|
2556
|
+
{
|
|
2557
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z",
|
|
2558
|
+
fill: FILE_TYPE_COLORS.txt,
|
|
2559
|
+
stroke: FILE_TYPE_COLORS.txt,
|
|
2560
|
+
strokeWidth: "1",
|
|
2561
|
+
strokeLinecap: "round",
|
|
2562
|
+
strokeLinejoin: "round"
|
|
2563
|
+
}
|
|
2564
|
+
),
|
|
2565
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2566
|
+
"path",
|
|
2567
|
+
{
|
|
2568
|
+
d: "M14 2v6h6",
|
|
2569
|
+
fill: "none",
|
|
2570
|
+
stroke: FILE_TYPE_COLORS.white,
|
|
2571
|
+
strokeWidth: "1",
|
|
2572
|
+
strokeLinecap: "round",
|
|
2573
|
+
strokeLinejoin: "round"
|
|
2574
|
+
}
|
|
2575
|
+
),
|
|
2576
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2577
|
+
"text",
|
|
2578
|
+
{
|
|
2579
|
+
x: "12",
|
|
2580
|
+
y: "16",
|
|
2581
|
+
fontSize: "6",
|
|
2582
|
+
fill: "white",
|
|
2583
|
+
textAnchor: "middle",
|
|
2584
|
+
fontWeight: "bold",
|
|
2585
|
+
fontFamily: "Arial, sans-serif",
|
|
2586
|
+
children: "TXT"
|
|
2587
|
+
}
|
|
2588
|
+
)
|
|
2589
|
+
]
|
|
2590
|
+
}
|
|
2591
|
+
);
|
|
2592
|
+
};
|
|
2593
|
+
var XlsIcon = ({ size = 16, className = "" }) => {
|
|
2594
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2595
|
+
"svg",
|
|
2596
|
+
{
|
|
2597
|
+
width: size,
|
|
2598
|
+
height: size,
|
|
2599
|
+
viewBox: "0 0 24 24",
|
|
2600
|
+
fill: "none",
|
|
2601
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2602
|
+
className,
|
|
2603
|
+
children: [
|
|
2604
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2605
|
+
"path",
|
|
2606
|
+
{
|
|
2607
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z",
|
|
2608
|
+
fill: FILE_TYPE_COLORS.xls,
|
|
2609
|
+
stroke: FILE_TYPE_COLORS.xls,
|
|
2610
|
+
strokeWidth: "1",
|
|
2611
|
+
strokeLinecap: "round",
|
|
2612
|
+
strokeLinejoin: "round"
|
|
2613
|
+
}
|
|
2614
|
+
),
|
|
2615
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2616
|
+
"path",
|
|
2617
|
+
{
|
|
2618
|
+
d: "M14 2v6h6",
|
|
2619
|
+
fill: "none",
|
|
2620
|
+
stroke: FILE_TYPE_COLORS.white,
|
|
2621
|
+
strokeWidth: "1",
|
|
2622
|
+
strokeLinecap: "round",
|
|
2623
|
+
strokeLinejoin: "round"
|
|
2624
|
+
}
|
|
2625
|
+
),
|
|
2626
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2627
|
+
"text",
|
|
2628
|
+
{
|
|
2629
|
+
x: "12",
|
|
2630
|
+
y: "16",
|
|
2631
|
+
fontSize: "6",
|
|
2632
|
+
fill: "white",
|
|
2633
|
+
textAnchor: "middle",
|
|
2634
|
+
fontWeight: "bold",
|
|
2635
|
+
fontFamily: "Arial, sans-serif",
|
|
2636
|
+
children: "XLS"
|
|
2637
|
+
}
|
|
2638
|
+
)
|
|
2639
|
+
]
|
|
2640
|
+
}
|
|
2641
|
+
);
|
|
2642
|
+
};
|
|
2390
2643
|
var AudIcon = ({ size = 16, className = "" }) => {
|
|
2391
2644
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2392
2645
|
"svg",
|
|
@@ -2628,6 +2881,14 @@ var ArbiBotHeadIcon = ({ size = 24, className = "" }) => {
|
|
|
2628
2881
|
}
|
|
2629
2882
|
);
|
|
2630
2883
|
};
|
|
2884
|
+
function ThreadVisibilityIcon({
|
|
2885
|
+
shared,
|
|
2886
|
+
className,
|
|
2887
|
+
...props
|
|
2888
|
+
}) {
|
|
2889
|
+
const Icon2 = shared ? lucideReact.MessageSquareShare : lucideReact.MessageSquareLock;
|
|
2890
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Icon2, { ...props, className: chunkS6A6FSG7_cjs.cn(shared ? "text-secondary" : "text-primary", className) });
|
|
2891
|
+
}
|
|
2631
2892
|
function getDocumentTitle(document2, defaultValue = "") {
|
|
2632
2893
|
if (!document2) return defaultValue;
|
|
2633
2894
|
return document2.doc_metadata?.title || document2.file_name || defaultValue;
|
|
@@ -2640,12 +2901,30 @@ var IMAGE_EXTENSIONS = /* @__PURE__ */ new Set(["jpg", "jpeg", "png", "gif", "bm
|
|
|
2640
2901
|
var VIDEO_EXTENSIONS = /* @__PURE__ */ new Set(["mp4", "mpeg", "mpg", "webm", "mov", "avi", "mkv"]);
|
|
2641
2902
|
var AUDIO_EXTENSIONS = /* @__PURE__ */ new Set(["mp3", "wav", "m4a", "aac", "ogg", "flac"]);
|
|
2642
2903
|
var EMAIL_EXTENSIONS = /* @__PURE__ */ new Set(["eml", "msg"]);
|
|
2904
|
+
var DOCX_EXTENSIONS = /* @__PURE__ */ new Set(["doc", "docx", "odt", "rtf"]);
|
|
2905
|
+
var XLSX_EXTENSIONS = /* @__PURE__ */ new Set(["xls", "xlsx", "csv", "ods"]);
|
|
2906
|
+
var HTML_EXTENSIONS = /* @__PURE__ */ new Set(["html", "htm", "mhtml"]);
|
|
2907
|
+
var TEXT_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
2908
|
+
"txt",
|
|
2909
|
+
"text",
|
|
2910
|
+
"md",
|
|
2911
|
+
"markdown",
|
|
2912
|
+
"log",
|
|
2913
|
+
"json",
|
|
2914
|
+
"xml",
|
|
2915
|
+
"yaml",
|
|
2916
|
+
"yml"
|
|
2917
|
+
]);
|
|
2643
2918
|
function getDocIcon(fileName, iconSize = 14) {
|
|
2644
2919
|
const ext = fileName?.split(".").pop()?.toLowerCase();
|
|
2645
2920
|
if (ext && VIDEO_EXTENSIONS.has(ext)) return /* @__PURE__ */ jsxRuntime.jsx(VidIcon, { size: iconSize, className: "flex-shrink-0" });
|
|
2646
2921
|
if (ext && AUDIO_EXTENSIONS.has(ext)) return /* @__PURE__ */ jsxRuntime.jsx(AudIcon, { size: iconSize, className: "flex-shrink-0" });
|
|
2647
2922
|
if (ext && IMAGE_EXTENSIONS.has(ext)) return /* @__PURE__ */ jsxRuntime.jsx(ImgIcon, { size: iconSize, className: "flex-shrink-0" });
|
|
2648
2923
|
if (ext && EMAIL_EXTENSIONS.has(ext)) return /* @__PURE__ */ jsxRuntime.jsx(EmlIcon, { size: iconSize, className: "flex-shrink-0" });
|
|
2924
|
+
if (ext && DOCX_EXTENSIONS.has(ext)) return /* @__PURE__ */ jsxRuntime.jsx(DocIcon, { size: iconSize, className: "flex-shrink-0" });
|
|
2925
|
+
if (ext && XLSX_EXTENSIONS.has(ext)) return /* @__PURE__ */ jsxRuntime.jsx(XlsIcon, { size: iconSize, className: "flex-shrink-0" });
|
|
2926
|
+
if (ext && HTML_EXTENSIONS.has(ext)) return /* @__PURE__ */ jsxRuntime.jsx(HtmlIcon, { size: iconSize, className: "flex-shrink-0" });
|
|
2927
|
+
if (ext && TEXT_EXTENSIONS.has(ext)) return /* @__PURE__ */ jsxRuntime.jsx(TxtIcon, { size: iconSize, className: "flex-shrink-0" });
|
|
2649
2928
|
return /* @__PURE__ */ jsxRuntime.jsx(PdfIcon, { size: iconSize, className: "flex-shrink-0" });
|
|
2650
2929
|
}
|
|
2651
2930
|
function DocumentEntity({
|
|
@@ -2658,6 +2937,7 @@ function DocumentEntity({
|
|
|
2658
2937
|
onIconClick,
|
|
2659
2938
|
viewing,
|
|
2660
2939
|
iconBadge,
|
|
2940
|
+
status,
|
|
2661
2941
|
actions,
|
|
2662
2942
|
tooltipContent,
|
|
2663
2943
|
className,
|
|
@@ -2698,6 +2978,7 @@ function DocumentEntity({
|
|
|
2698
2978
|
label: fullWidth || noClamp ? title : clampLabel(title),
|
|
2699
2979
|
labelMaxWidth: labelMaxWidth ?? "max-w-[140px]",
|
|
2700
2980
|
labelClassName,
|
|
2981
|
+
secondaryText: status,
|
|
2701
2982
|
fullWidth,
|
|
2702
2983
|
onClick,
|
|
2703
2984
|
onIconClick,
|
|
@@ -2711,15 +2992,15 @@ function DocumentEntity({
|
|
|
2711
2992
|
}
|
|
2712
2993
|
var VARIANT_STYLES = {
|
|
2713
2994
|
"mine-paid": {
|
|
2714
|
-
pill: "
|
|
2995
|
+
pill: "text-primary",
|
|
2715
2996
|
icon: "text-primary"
|
|
2716
2997
|
},
|
|
2717
2998
|
other: {
|
|
2718
|
-
pill: "
|
|
2999
|
+
pill: "text-secondary",
|
|
2719
3000
|
icon: "text-secondary"
|
|
2720
3001
|
},
|
|
2721
3002
|
"mine-free": {
|
|
2722
|
-
pill: "
|
|
3003
|
+
pill: "text-muted-foreground",
|
|
2723
3004
|
icon: "text-muted-foreground"
|
|
2724
3005
|
},
|
|
2725
3006
|
common: {
|
|
@@ -2813,6 +3094,7 @@ var UserEntity = React.memo(function UserEntity2({
|
|
|
2813
3094
|
initials = "",
|
|
2814
3095
|
displayName = "",
|
|
2815
3096
|
picture,
|
|
3097
|
+
avatarImageClassName,
|
|
2816
3098
|
colorClass = "",
|
|
2817
3099
|
isAgent = false,
|
|
2818
3100
|
agentStyle,
|
|
@@ -2847,7 +3129,7 @@ var UserEntity = React.memo(function UserEntity2({
|
|
|
2847
3129
|
style: surfaceStyle,
|
|
2848
3130
|
"data-testid": "user-entity",
|
|
2849
3131
|
children: [
|
|
2850
|
-
picture && /* @__PURE__ */ jsxRuntime.jsx(AvatarImage, { src: picture, alt: initials }),
|
|
3132
|
+
picture && /* @__PURE__ */ jsxRuntime.jsx(AvatarImage, { src: picture, alt: initials, className: avatarImageClassName }),
|
|
2851
3133
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2852
3134
|
AvatarFallback,
|
|
2853
3135
|
{
|
|
@@ -3813,6 +4095,7 @@ exports.DialogPortal = DialogPortal;
|
|
|
3813
4095
|
exports.DialogTitle = DialogTitle;
|
|
3814
4096
|
exports.DialogTrigger = DialogTrigger;
|
|
3815
4097
|
exports.DictateProvider = DictateProvider;
|
|
4098
|
+
exports.DocIcon = DocIcon;
|
|
3816
4099
|
exports.DocumentCard = DocumentCard;
|
|
3817
4100
|
exports.DocumentEntity = DocumentEntity;
|
|
3818
4101
|
exports.ENTITY_MAPPINGS = ENTITY_MAPPINGS;
|
|
@@ -3823,11 +4106,12 @@ exports.FILE_TYPE_COLORS = FILE_TYPE_COLORS;
|
|
|
3823
4106
|
exports.HoverCard = HoverCard;
|
|
3824
4107
|
exports.HoverCardContent = HoverCardContent;
|
|
3825
4108
|
exports.HoverCardTrigger = HoverCardTrigger;
|
|
4109
|
+
exports.HtmlIcon = HtmlIcon;
|
|
3826
4110
|
exports.IconToggle = IconToggle;
|
|
3827
4111
|
exports.ImgIcon = ImgIcon;
|
|
3828
4112
|
exports.InlineMicButton = InlineMicButton;
|
|
3829
4113
|
exports.Input = Input;
|
|
3830
|
-
exports.Label =
|
|
4114
|
+
exports.Label = Label2;
|
|
3831
4115
|
exports.MarkMenu = MarkMenu;
|
|
3832
4116
|
exports.MicRecordingOverlay = MicRecordingOverlay;
|
|
3833
4117
|
exports.MicWaveformIndicator = MicWaveformIndicator;
|
|
@@ -3856,7 +4140,7 @@ exports.SelectScrollUpButton = SelectScrollUpButton;
|
|
|
3856
4140
|
exports.SelectSeparator = SelectSeparator;
|
|
3857
4141
|
exports.SelectTrigger = SelectTrigger;
|
|
3858
4142
|
exports.SelectValue = SelectValue;
|
|
3859
|
-
exports.Separator =
|
|
4143
|
+
exports.Separator = Separator2;
|
|
3860
4144
|
exports.Slider = Slider;
|
|
3861
4145
|
exports.StatusPill = StatusPill;
|
|
3862
4146
|
exports.Switch = Switch;
|
|
@@ -3876,6 +4160,7 @@ exports.TabsList = TabsList;
|
|
|
3876
4160
|
exports.TabsTrigger = TabsTrigger;
|
|
3877
4161
|
exports.TagEntity = TagEntity;
|
|
3878
4162
|
exports.Textarea = Textarea;
|
|
4163
|
+
exports.ThreadVisibilityIcon = ThreadVisibilityIcon;
|
|
3879
4164
|
exports.Toggle = Toggle;
|
|
3880
4165
|
exports.ToggleGroup = ToggleGroup;
|
|
3881
4166
|
exports.ToggleGroupItem = ToggleGroupItem;
|
|
@@ -3883,12 +4168,14 @@ exports.Tooltip = Tooltip;
|
|
|
3883
4168
|
exports.TooltipContent = TooltipContent;
|
|
3884
4169
|
exports.TooltipProvider = TooltipProvider;
|
|
3885
4170
|
exports.TooltipTrigger = TooltipTrigger;
|
|
4171
|
+
exports.TxtIcon = TxtIcon;
|
|
3886
4172
|
exports.UserEntity = UserEntity;
|
|
3887
4173
|
exports.UserMenu = UserMenu;
|
|
3888
4174
|
exports.VISIBILITY_ICONS = VISIBILITY_ICONS;
|
|
3889
4175
|
exports.VidIcon = VidIcon;
|
|
3890
4176
|
exports.VisibilityIcon = VisibilityIcon;
|
|
3891
4177
|
exports.VisibilityToggle = VisibilityToggle;
|
|
4178
|
+
exports.XlsIcon = XlsIcon;
|
|
3892
4179
|
exports.badgeVariants = badgeVariants;
|
|
3893
4180
|
exports.buttonVariants = buttonVariants;
|
|
3894
4181
|
exports.cardVariants = cardVariants;
|
|
@@ -3908,5 +4195,5 @@ exports.getTagTypeLabel = getTagTypeLabel;
|
|
|
3908
4195
|
exports.getWorkspaceColor = getWorkspaceColor;
|
|
3909
4196
|
exports.toggleVariants = toggleVariants;
|
|
3910
4197
|
exports.useAudioRecorder = useAudioRecorder;
|
|
3911
|
-
//# sourceMappingURL=chunk-
|
|
3912
|
-
//# sourceMappingURL=chunk-
|
|
4198
|
+
//# sourceMappingURL=chunk-QJLXFDKV.cjs.map
|
|
4199
|
+
//# sourceMappingURL=chunk-QJLXFDKV.cjs.map
|