@assure-one/design-system 1.20.0 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +103 -1
- package/dist/index.js +412 -173
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import * as
|
|
2
|
+
import * as React39 from 'react';
|
|
3
3
|
import { forwardRef, useId, useRef, useState, useEffect, useCallback, useImperativeHandle, useMemo, createContext, Fragment as Fragment$1, useContext } from 'react';
|
|
4
4
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
5
5
|
import { clsx } from 'clsx';
|
|
@@ -2374,7 +2374,7 @@ function PauseIcon({ size = 24, ...props }) {
|
|
|
2374
2374
|
function StopIcon({ size = 24, ...props }) {
|
|
2375
2375
|
return /* @__PURE__ */ jsx(Icon, { size, ...props, children: /* @__PURE__ */ jsx("rect", { x: "6", y: "6", width: "12", height: "12", rx: "2", fill: "currentColor" }) });
|
|
2376
2376
|
}
|
|
2377
|
-
var Accordion =
|
|
2377
|
+
var Accordion = React39.forwardRef(function Accordion2({ className, ...props }, ref) {
|
|
2378
2378
|
return /* @__PURE__ */ jsx(
|
|
2379
2379
|
AccordionPrimitive.Root,
|
|
2380
2380
|
{
|
|
@@ -2385,11 +2385,11 @@ var Accordion = React38.forwardRef(function Accordion2({ className, ...props },
|
|
|
2385
2385
|
);
|
|
2386
2386
|
});
|
|
2387
2387
|
Accordion.displayName = AccordionPrimitive.Root.displayName;
|
|
2388
|
-
var AccordionItem =
|
|
2388
|
+
var AccordionItem = React39.forwardRef(function AccordionItem2({ className, ...props }, ref) {
|
|
2389
2389
|
return /* @__PURE__ */ jsx(AccordionPrimitive.Item, { ref, className: cn(className), ...props });
|
|
2390
2390
|
});
|
|
2391
2391
|
AccordionItem.displayName = AccordionPrimitive.Item.displayName;
|
|
2392
|
-
var AccordionTrigger =
|
|
2392
|
+
var AccordionTrigger = React39.forwardRef(function AccordionTrigger2({ children, className, ...props }, ref) {
|
|
2393
2393
|
return /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
|
|
2394
2394
|
AccordionPrimitive.Trigger,
|
|
2395
2395
|
{
|
|
@@ -2418,7 +2418,7 @@ var AccordionTrigger = React38.forwardRef(function AccordionTrigger2({ children,
|
|
|
2418
2418
|
) });
|
|
2419
2419
|
});
|
|
2420
2420
|
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
2421
|
-
var AccordionContent =
|
|
2421
|
+
var AccordionContent = React39.forwardRef(function AccordionContent2({ children, className, ...props }, ref) {
|
|
2422
2422
|
return /* @__PURE__ */ jsx(
|
|
2423
2423
|
AccordionPrimitive.Content,
|
|
2424
2424
|
{
|
|
@@ -2438,7 +2438,7 @@ AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
|
2438
2438
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
2439
2439
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
2440
2440
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
2441
|
-
var AlertDialogOverlay =
|
|
2441
|
+
var AlertDialogOverlay = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2442
2442
|
AlertDialogPrimitive.Overlay,
|
|
2443
2443
|
{
|
|
2444
2444
|
ref,
|
|
@@ -2453,7 +2453,7 @@ var AlertDialogOverlay = React38.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2453
2453
|
}
|
|
2454
2454
|
));
|
|
2455
2455
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
2456
|
-
var AlertDialogContent =
|
|
2456
|
+
var AlertDialogContent = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [
|
|
2457
2457
|
/* @__PURE__ */ jsx(AlertDialogOverlay, {}),
|
|
2458
2458
|
/* @__PURE__ */ jsx(
|
|
2459
2459
|
AlertDialogPrimitive.Content,
|
|
@@ -2488,7 +2488,7 @@ var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
|
2488
2488
|
}
|
|
2489
2489
|
);
|
|
2490
2490
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
2491
|
-
var AlertDialogTitle =
|
|
2491
|
+
var AlertDialogTitle = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2492
2492
|
AlertDialogPrimitive.Title,
|
|
2493
2493
|
{
|
|
2494
2494
|
ref,
|
|
@@ -2500,7 +2500,7 @@ var AlertDialogTitle = React38.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2500
2500
|
}
|
|
2501
2501
|
));
|
|
2502
2502
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
2503
|
-
var AlertDialogDescription =
|
|
2503
|
+
var AlertDialogDescription = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2504
2504
|
AlertDialogPrimitive.Description,
|
|
2505
2505
|
{
|
|
2506
2506
|
ref,
|
|
@@ -2509,7 +2509,7 @@ var AlertDialogDescription = React38.forwardRef(({ className, ...props }, ref) =
|
|
|
2509
2509
|
}
|
|
2510
2510
|
));
|
|
2511
2511
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
2512
|
-
var AlertDialogAction =
|
|
2512
|
+
var AlertDialogAction = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2513
2513
|
AlertDialogPrimitive.Action,
|
|
2514
2514
|
{
|
|
2515
2515
|
ref,
|
|
@@ -2525,7 +2525,7 @@ var AlertDialogAction = React38.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2525
2525
|
}
|
|
2526
2526
|
));
|
|
2527
2527
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
2528
|
-
var AlertDialogCancel =
|
|
2528
|
+
var AlertDialogCancel = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2529
2529
|
AlertDialogPrimitive.Cancel,
|
|
2530
2530
|
{
|
|
2531
2531
|
ref,
|
|
@@ -2720,7 +2720,7 @@ var AreaChart = forwardRef(function AreaChart2({ data, height = 140, formatValue
|
|
|
2720
2720
|
] });
|
|
2721
2721
|
});
|
|
2722
2722
|
AreaChart.displayName = "AreaChart";
|
|
2723
|
-
var AspectRatio =
|
|
2723
|
+
var AspectRatio = React39.forwardRef(function AspectRatio2({ className, ratio = 16 / 9, ...props }, ref) {
|
|
2724
2724
|
return /* @__PURE__ */ jsx(
|
|
2725
2725
|
AspectRatioPrimitive.Root,
|
|
2726
2726
|
{
|
|
@@ -3059,7 +3059,7 @@ var statusDotSizes = {
|
|
|
3059
3059
|
function getInitials(name) {
|
|
3060
3060
|
return name.split(" ").map((part) => part[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
|
|
3061
3061
|
}
|
|
3062
|
-
var Avatar =
|
|
3062
|
+
var Avatar = React39.forwardRef(
|
|
3063
3063
|
function Avatar2({ src, alt, name, size = "md", variant = "initials", status, className, ...props }, ref) {
|
|
3064
3064
|
const initials2 = name ? getInitials(name) : "?";
|
|
3065
3065
|
const resolvedSize = size ?? "md";
|
|
@@ -3300,7 +3300,7 @@ function Calendar({
|
|
|
3300
3300
|
classNames,
|
|
3301
3301
|
...props
|
|
3302
3302
|
}) {
|
|
3303
|
-
const { modifiers, modifiersClassNames } =
|
|
3303
|
+
const { modifiers, modifiersClassNames } = React39.useMemo(() => {
|
|
3304
3304
|
const buckets = {};
|
|
3305
3305
|
for (const h of highlights) {
|
|
3306
3306
|
const key = h.color ?? "primary";
|
|
@@ -3315,7 +3315,7 @@ function Calendar({
|
|
|
3315
3315
|
}
|
|
3316
3316
|
return { modifiers: mods, modifiersClassNames: modClasses };
|
|
3317
3317
|
}, [highlights]);
|
|
3318
|
-
const disabledMatcher =
|
|
3318
|
+
const disabledMatcher = React39.useMemo(() => {
|
|
3319
3319
|
if (!minDate && !maxDate) return void 0;
|
|
3320
3320
|
if (minDate && maxDate) return [{ before: minDate }, { after: maxDate }];
|
|
3321
3321
|
if (minDate) return { before: minDate };
|
|
@@ -3482,7 +3482,7 @@ var CategoryDivider = forwardRef(
|
|
|
3482
3482
|
}
|
|
3483
3483
|
);
|
|
3484
3484
|
CategoryDivider.displayName = "CategoryDivider";
|
|
3485
|
-
var Checkbox =
|
|
3485
|
+
var Checkbox = React39.forwardRef(function Checkbox2({
|
|
3486
3486
|
label,
|
|
3487
3487
|
indeterminate,
|
|
3488
3488
|
checked,
|
|
@@ -3492,7 +3492,7 @@ var Checkbox = React38.forwardRef(function Checkbox2({
|
|
|
3492
3492
|
id: providedId,
|
|
3493
3493
|
...props
|
|
3494
3494
|
}, ref) {
|
|
3495
|
-
const generatedId =
|
|
3495
|
+
const generatedId = React39.useId();
|
|
3496
3496
|
const id = providedId ?? generatedId;
|
|
3497
3497
|
const resolvedChecked = indeterminate ? "indeterminate" : checked;
|
|
3498
3498
|
return /* @__PURE__ */ jsxs("div", { className: "inline-flex items-center gap-2", children: [
|
|
@@ -3533,7 +3533,7 @@ Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
|
3533
3533
|
var SelectRoot = SelectPrimitive.Root;
|
|
3534
3534
|
var SelectGroup = SelectPrimitive.Group;
|
|
3535
3535
|
var SelectValue = SelectPrimitive.Value;
|
|
3536
|
-
var SelectTrigger =
|
|
3536
|
+
var SelectTrigger = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
3537
3537
|
SelectPrimitive.Trigger,
|
|
3538
3538
|
{
|
|
3539
3539
|
ref,
|
|
@@ -3564,7 +3564,7 @@ var SelectTrigger = React38.forwardRef(({ className, children, ...props }, ref)
|
|
|
3564
3564
|
}
|
|
3565
3565
|
));
|
|
3566
3566
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
3567
|
-
var SelectScrollUpButton =
|
|
3567
|
+
var SelectScrollUpButton = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3568
3568
|
SelectPrimitive.ScrollUpButton,
|
|
3569
3569
|
{
|
|
3570
3570
|
ref,
|
|
@@ -3574,7 +3574,7 @@ var SelectScrollUpButton = React38.forwardRef(({ className, ...props }, ref) =>
|
|
|
3574
3574
|
}
|
|
3575
3575
|
));
|
|
3576
3576
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
3577
|
-
var SelectScrollDownButton =
|
|
3577
|
+
var SelectScrollDownButton = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3578
3578
|
SelectPrimitive.ScrollDownButton,
|
|
3579
3579
|
{
|
|
3580
3580
|
ref,
|
|
@@ -3584,7 +3584,7 @@ var SelectScrollDownButton = React38.forwardRef(({ className, ...props }, ref) =
|
|
|
3584
3584
|
}
|
|
3585
3585
|
));
|
|
3586
3586
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
3587
|
-
var SelectContent =
|
|
3587
|
+
var SelectContent = React39.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
|
|
3588
3588
|
SelectPrimitive.Content,
|
|
3589
3589
|
{
|
|
3590
3590
|
ref,
|
|
@@ -3618,7 +3618,7 @@ var SelectContent = React38.forwardRef(({ className, children, position = "poppe
|
|
|
3618
3618
|
}
|
|
3619
3619
|
) }));
|
|
3620
3620
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
3621
|
-
var SelectLabel =
|
|
3621
|
+
var SelectLabel = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3622
3622
|
SelectPrimitive.Label,
|
|
3623
3623
|
{
|
|
3624
3624
|
ref,
|
|
@@ -3630,7 +3630,7 @@ var SelectLabel = React38.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3630
3630
|
}
|
|
3631
3631
|
));
|
|
3632
3632
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
3633
|
-
var SelectItem =
|
|
3633
|
+
var SelectItem = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
3634
3634
|
SelectPrimitive.Item,
|
|
3635
3635
|
{
|
|
3636
3636
|
ref,
|
|
@@ -3651,7 +3651,7 @@ var SelectItem = React38.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
3651
3651
|
}
|
|
3652
3652
|
));
|
|
3653
3653
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
3654
|
-
var SelectSeparator =
|
|
3654
|
+
var SelectSeparator = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3655
3655
|
SelectPrimitive.Separator,
|
|
3656
3656
|
{
|
|
3657
3657
|
ref,
|
|
@@ -3736,11 +3736,11 @@ function ClientSelect({
|
|
|
3736
3736
|
] });
|
|
3737
3737
|
}
|
|
3738
3738
|
ClientSelect.displayName = "ClientSelect";
|
|
3739
|
-
var Collapsible =
|
|
3739
|
+
var Collapsible = React39.forwardRef(function Collapsible2({ className, ...props }, ref) {
|
|
3740
3740
|
return /* @__PURE__ */ jsx(CollapsiblePrimitive.Root, { ref, className: cn(className), ...props });
|
|
3741
3741
|
});
|
|
3742
3742
|
Collapsible.displayName = CollapsiblePrimitive.Root.displayName;
|
|
3743
|
-
var CollapsibleTrigger =
|
|
3743
|
+
var CollapsibleTrigger = React39.forwardRef(function CollapsibleTrigger2({ className, ...props }, ref) {
|
|
3744
3744
|
return /* @__PURE__ */ jsx(
|
|
3745
3745
|
CollapsiblePrimitive.Trigger,
|
|
3746
3746
|
{
|
|
@@ -3755,7 +3755,7 @@ var CollapsibleTrigger = React38.forwardRef(function CollapsibleTrigger2({ class
|
|
|
3755
3755
|
);
|
|
3756
3756
|
});
|
|
3757
3757
|
CollapsibleTrigger.displayName = CollapsiblePrimitive.Trigger.displayName;
|
|
3758
|
-
var CollapsibleContent =
|
|
3758
|
+
var CollapsibleContent = React39.forwardRef(function CollapsibleContent2({ className, ...props }, ref) {
|
|
3759
3759
|
return /* @__PURE__ */ jsx(
|
|
3760
3760
|
CollapsiblePrimitive.Content,
|
|
3761
3761
|
{
|
|
@@ -3832,7 +3832,7 @@ ComingSoon.displayName = "ComingSoon";
|
|
|
3832
3832
|
var Dialog = DialogPrimitive.Root;
|
|
3833
3833
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
3834
3834
|
var DialogPortal = DialogPrimitive.Portal;
|
|
3835
|
-
var DialogOverlay =
|
|
3835
|
+
var DialogOverlay = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3836
3836
|
DialogPrimitive.Overlay,
|
|
3837
3837
|
{
|
|
3838
3838
|
ref,
|
|
@@ -3853,7 +3853,7 @@ var dialogSizeStyles = {
|
|
|
3853
3853
|
lg: "max-w-2xl",
|
|
3854
3854
|
full: "max-w-[calc(100vw-2rem)]"
|
|
3855
3855
|
};
|
|
3856
|
-
var DialogContent =
|
|
3856
|
+
var DialogContent = React39.forwardRef(({ size = "md", showCloseButton = true, className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
|
|
3857
3857
|
/* @__PURE__ */ jsx(DialogOverlay, {}),
|
|
3858
3858
|
/* @__PURE__ */ jsxs(
|
|
3859
3859
|
DialogPrimitive.Content,
|
|
@@ -3894,7 +3894,7 @@ var DialogContent = React38.forwardRef(({ size = "md", showCloseButton = true, c
|
|
|
3894
3894
|
)
|
|
3895
3895
|
] }));
|
|
3896
3896
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
3897
|
-
var DialogClose =
|
|
3897
|
+
var DialogClose = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Close, { ref, className: cn(className), ...props }));
|
|
3898
3898
|
DialogClose.displayName = "DialogClose";
|
|
3899
3899
|
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn("mb-4 flex flex-col gap-1.5 pr-8", className), ...props });
|
|
3900
3900
|
DialogHeader.displayName = "DialogHeader";
|
|
@@ -3909,7 +3909,7 @@ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
|
3909
3909
|
}
|
|
3910
3910
|
);
|
|
3911
3911
|
DialogFooter.displayName = "DialogFooter";
|
|
3912
|
-
var DialogTitle =
|
|
3912
|
+
var DialogTitle = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3913
3913
|
DialogPrimitive.Title,
|
|
3914
3914
|
{
|
|
3915
3915
|
ref,
|
|
@@ -3921,7 +3921,7 @@ var DialogTitle = React38.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3921
3921
|
}
|
|
3922
3922
|
));
|
|
3923
3923
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
3924
|
-
var DialogDescription =
|
|
3924
|
+
var DialogDescription = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3925
3925
|
DialogPrimitive.Description,
|
|
3926
3926
|
{
|
|
3927
3927
|
ref,
|
|
@@ -3951,17 +3951,17 @@ function CommandPalette({
|
|
|
3951
3951
|
onOpenChange,
|
|
3952
3952
|
placeholder = "Type a command or search..."
|
|
3953
3953
|
}) {
|
|
3954
|
-
const [internalOpen, setInternalOpen] =
|
|
3954
|
+
const [internalOpen, setInternalOpen] = React39.useState(false);
|
|
3955
3955
|
const isControlled = controlledOpen !== void 0;
|
|
3956
3956
|
const open = isControlled ? controlledOpen : internalOpen;
|
|
3957
|
-
const setOpen =
|
|
3957
|
+
const setOpen = React39.useCallback(
|
|
3958
3958
|
(value) => {
|
|
3959
3959
|
if (!isControlled) setInternalOpen(value);
|
|
3960
3960
|
onOpenChange?.(value);
|
|
3961
3961
|
},
|
|
3962
3962
|
[isControlled, onOpenChange]
|
|
3963
3963
|
);
|
|
3964
|
-
|
|
3964
|
+
React39.useEffect(() => {
|
|
3965
3965
|
function handleKeyDown(e) {
|
|
3966
3966
|
if ((e.metaKey || e.ctrlKey) && e.key === "k") {
|
|
3967
3967
|
e.preventDefault();
|
|
@@ -4116,10 +4116,10 @@ function ConfirmActionButton({
|
|
|
4116
4116
|
onOpenChange
|
|
4117
4117
|
}) {
|
|
4118
4118
|
const isControlled = open !== void 0;
|
|
4119
|
-
const [uncontrolledOpen, setUncontrolledOpen] =
|
|
4119
|
+
const [uncontrolledOpen, setUncontrolledOpen] = React39.useState(defaultOpen);
|
|
4120
4120
|
const resolvedOpen = isControlled ? open : uncontrolledOpen;
|
|
4121
|
-
const [pending, setPending] =
|
|
4122
|
-
const setDialogOpen =
|
|
4121
|
+
const [pending, setPending] = React39.useState(false);
|
|
4122
|
+
const setDialogOpen = React39.useCallback(
|
|
4123
4123
|
(nextOpen) => {
|
|
4124
4124
|
onOpenChange?.(nextOpen);
|
|
4125
4125
|
if (!isControlled) {
|
|
@@ -4178,7 +4178,7 @@ var ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
|
4178
4178
|
var ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
4179
4179
|
var ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
4180
4180
|
var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
4181
|
-
var ContextMenuSubTrigger =
|
|
4181
|
+
var ContextMenuSubTrigger = React39.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
4182
4182
|
ContextMenuPrimitive.SubTrigger,
|
|
4183
4183
|
{
|
|
4184
4184
|
ref,
|
|
@@ -4199,7 +4199,7 @@ var ContextMenuSubTrigger = React38.forwardRef(({ className, inset, children, ..
|
|
|
4199
4199
|
}
|
|
4200
4200
|
));
|
|
4201
4201
|
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
4202
|
-
var ContextMenuSubContent =
|
|
4202
|
+
var ContextMenuSubContent = React39.forwardRef(({ className, ...props }, ref) => (
|
|
4203
4203
|
// Portal the sub-content to the body. The parent Content keeps a persistent
|
|
4204
4204
|
// `scale-100` transform (its open-state animation), which makes it the
|
|
4205
4205
|
// containing block for `position: fixed` descendants — and its
|
|
@@ -4222,7 +4222,7 @@ var ContextMenuSubContent = React38.forwardRef(({ className, ...props }, ref) =>
|
|
|
4222
4222
|
) })
|
|
4223
4223
|
));
|
|
4224
4224
|
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
4225
|
-
var ContextMenuContent =
|
|
4225
|
+
var ContextMenuContent = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
4226
4226
|
ContextMenuPrimitive.Content,
|
|
4227
4227
|
{
|
|
4228
4228
|
ref,
|
|
@@ -4238,7 +4238,7 @@ var ContextMenuContent = React38.forwardRef(({ className, ...props }, ref) => /*
|
|
|
4238
4238
|
}
|
|
4239
4239
|
) }));
|
|
4240
4240
|
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
4241
|
-
var ContextMenuItem =
|
|
4241
|
+
var ContextMenuItem = React39.forwardRef(({ className, destructive, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4242
4242
|
ContextMenuPrimitive.Item,
|
|
4243
4243
|
{
|
|
4244
4244
|
ref,
|
|
@@ -4256,7 +4256,7 @@ var ContextMenuItem = React38.forwardRef(({ className, destructive, inset, ...pr
|
|
|
4256
4256
|
}
|
|
4257
4257
|
));
|
|
4258
4258
|
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
4259
|
-
var ContextMenuCheckboxItem =
|
|
4259
|
+
var ContextMenuCheckboxItem = React39.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
4260
4260
|
ContextMenuPrimitive.CheckboxItem,
|
|
4261
4261
|
{
|
|
4262
4262
|
ref,
|
|
@@ -4276,7 +4276,7 @@ var ContextMenuCheckboxItem = React38.forwardRef(({ className, children, checked
|
|
|
4276
4276
|
}
|
|
4277
4277
|
));
|
|
4278
4278
|
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
4279
|
-
var ContextMenuRadioItem =
|
|
4279
|
+
var ContextMenuRadioItem = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
4280
4280
|
ContextMenuPrimitive.RadioItem,
|
|
4281
4281
|
{
|
|
4282
4282
|
ref,
|
|
@@ -4295,7 +4295,7 @@ var ContextMenuRadioItem = React38.forwardRef(({ className, children, ...props }
|
|
|
4295
4295
|
}
|
|
4296
4296
|
));
|
|
4297
4297
|
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
4298
|
-
var ContextMenuLabel =
|
|
4298
|
+
var ContextMenuLabel = React39.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4299
4299
|
ContextMenuPrimitive.Label,
|
|
4300
4300
|
{
|
|
4301
4301
|
ref,
|
|
@@ -4308,7 +4308,7 @@ var ContextMenuLabel = React38.forwardRef(({ className, inset, ...props }, ref)
|
|
|
4308
4308
|
}
|
|
4309
4309
|
));
|
|
4310
4310
|
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
4311
|
-
var ContextMenuSeparator =
|
|
4311
|
+
var ContextMenuSeparator = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4312
4312
|
ContextMenuPrimitive.Separator,
|
|
4313
4313
|
{
|
|
4314
4314
|
ref,
|
|
@@ -4403,7 +4403,7 @@ var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
|
4403
4403
|
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
4404
4404
|
var PopoverPortal = PopoverPrimitive.Portal;
|
|
4405
4405
|
var PopoverClose = PopoverPrimitive.Close;
|
|
4406
|
-
var PopoverContent =
|
|
4406
|
+
var PopoverContent = React39.forwardRef(({ className, align = "center", side = "bottom", sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
4407
4407
|
PopoverPrimitive.Content,
|
|
4408
4408
|
{
|
|
4409
4409
|
ref,
|
|
@@ -4948,7 +4948,7 @@ var chipVariants = cva(
|
|
|
4948
4948
|
}
|
|
4949
4949
|
}
|
|
4950
4950
|
);
|
|
4951
|
-
var DismissibleChip =
|
|
4951
|
+
var DismissibleChip = React39.forwardRef(function DismissibleChip2({ label, onDismiss, variant, className, ...props }, ref) {
|
|
4952
4952
|
return /* @__PURE__ */ jsxs(
|
|
4953
4953
|
"button",
|
|
4954
4954
|
{
|
|
@@ -5151,7 +5151,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
|
5151
5151
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
5152
5152
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
5153
5153
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
5154
|
-
var DropdownMenuSubTrigger =
|
|
5154
|
+
var DropdownMenuSubTrigger = React39.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
5155
5155
|
DropdownMenuPrimitive.SubTrigger,
|
|
5156
5156
|
{
|
|
5157
5157
|
ref,
|
|
@@ -5172,7 +5172,7 @@ var DropdownMenuSubTrigger = React38.forwardRef(({ className, inset, children, .
|
|
|
5172
5172
|
}
|
|
5173
5173
|
));
|
|
5174
5174
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
5175
|
-
var DropdownMenuSubContent =
|
|
5175
|
+
var DropdownMenuSubContent = React39.forwardRef(({ className, ...props }, ref) => (
|
|
5176
5176
|
// Portal the sub-content to the body. The parent Content keeps a persistent
|
|
5177
5177
|
// `scale-100` transform (its open-state animation), which makes it the
|
|
5178
5178
|
// containing block for `position: fixed` descendants — and its
|
|
@@ -5195,7 +5195,7 @@ var DropdownMenuSubContent = React38.forwardRef(({ className, ...props }, ref) =
|
|
|
5195
5195
|
) })
|
|
5196
5196
|
));
|
|
5197
5197
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
5198
|
-
var DropdownMenuContent =
|
|
5198
|
+
var DropdownMenuContent = React39.forwardRef(({ className, sideOffset = 6, align = "start", ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
5199
5199
|
DropdownMenuPrimitive.Content,
|
|
5200
5200
|
{
|
|
5201
5201
|
ref,
|
|
@@ -5213,7 +5213,7 @@ var DropdownMenuContent = React38.forwardRef(({ className, sideOffset = 6, align
|
|
|
5213
5213
|
}
|
|
5214
5214
|
) }));
|
|
5215
5215
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
5216
|
-
var DropdownMenuItem =
|
|
5216
|
+
var DropdownMenuItem = React39.forwardRef(({ className, destructive, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5217
5217
|
DropdownMenuPrimitive.Item,
|
|
5218
5218
|
{
|
|
5219
5219
|
ref,
|
|
@@ -5231,7 +5231,7 @@ var DropdownMenuItem = React38.forwardRef(({ className, destructive, inset, ...p
|
|
|
5231
5231
|
}
|
|
5232
5232
|
));
|
|
5233
5233
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
5234
|
-
var DropdownMenuCheckboxItem =
|
|
5234
|
+
var DropdownMenuCheckboxItem = React39.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
5235
5235
|
DropdownMenuPrimitive.CheckboxItem,
|
|
5236
5236
|
{
|
|
5237
5237
|
ref,
|
|
@@ -5251,7 +5251,7 @@ var DropdownMenuCheckboxItem = React38.forwardRef(({ className, children, checke
|
|
|
5251
5251
|
}
|
|
5252
5252
|
));
|
|
5253
5253
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
5254
|
-
var DropdownMenuRadioItem =
|
|
5254
|
+
var DropdownMenuRadioItem = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
5255
5255
|
DropdownMenuPrimitive.RadioItem,
|
|
5256
5256
|
{
|
|
5257
5257
|
ref,
|
|
@@ -5270,7 +5270,7 @@ var DropdownMenuRadioItem = React38.forwardRef(({ className, children, ...props
|
|
|
5270
5270
|
}
|
|
5271
5271
|
));
|
|
5272
5272
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
5273
|
-
var DropdownMenuLabel =
|
|
5273
|
+
var DropdownMenuLabel = React39.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5274
5274
|
DropdownMenuPrimitive.Label,
|
|
5275
5275
|
{
|
|
5276
5276
|
ref,
|
|
@@ -5283,7 +5283,7 @@ var DropdownMenuLabel = React38.forwardRef(({ className, inset, ...props }, ref)
|
|
|
5283
5283
|
}
|
|
5284
5284
|
));
|
|
5285
5285
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
5286
|
-
var DropdownMenuSeparator =
|
|
5286
|
+
var DropdownMenuSeparator = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5287
5287
|
DropdownMenuPrimitive.Separator,
|
|
5288
5288
|
{
|
|
5289
5289
|
ref,
|
|
@@ -5536,7 +5536,7 @@ FormSection.displayName = "FormSection";
|
|
|
5536
5536
|
var HoverCard = HoverCardPrimitive.Root;
|
|
5537
5537
|
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
5538
5538
|
var HoverCardPortal = HoverCardPrimitive.Portal;
|
|
5539
|
-
var HoverCardContent =
|
|
5539
|
+
var HoverCardContent = React39.forwardRef(({ className, align = "center", side = "bottom", sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsx(HoverCardPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
5540
5540
|
HoverCardPrimitive.Content,
|
|
5541
5541
|
{
|
|
5542
5542
|
ref,
|
|
@@ -5708,8 +5708,8 @@ function KeyboardShortcutsDialog({
|
|
|
5708
5708
|
sections,
|
|
5709
5709
|
hotkey = "?"
|
|
5710
5710
|
} = {}) {
|
|
5711
|
-
const [open, setOpen] =
|
|
5712
|
-
|
|
5711
|
+
const [open, setOpen] = React39.useState(false);
|
|
5712
|
+
React39.useEffect(() => {
|
|
5713
5713
|
if (hotkey === null) return;
|
|
5714
5714
|
function handleKeyDown(e) {
|
|
5715
5715
|
const target = e.target;
|
|
@@ -5747,7 +5747,7 @@ function KeyboardShortcutsDialog({
|
|
|
5747
5747
|
className: "flex items-center justify-between gap-3 py-1",
|
|
5748
5748
|
children: [
|
|
5749
5749
|
/* @__PURE__ */ jsx("span", { className: "text-fg text-sm", children: shortcut.description }),
|
|
5750
|
-
/* @__PURE__ */ jsx("div", { className: "flex shrink-0 items-center gap-1", children: shortcut.keys.map((key, i) => /* @__PURE__ */ jsxs(
|
|
5750
|
+
/* @__PURE__ */ jsx("div", { className: "flex shrink-0 items-center gap-1", children: shortcut.keys.map((key, i) => /* @__PURE__ */ jsxs(React39.Fragment, { children: [
|
|
5751
5751
|
i > 0 && /* @__PURE__ */ jsx("span", { className: "text-fg-4 mx-0.5 text-[11px]", children: "then" }),
|
|
5752
5752
|
/* @__PURE__ */ jsx("kbd", { className: kbdClass2, children: key })
|
|
5753
5753
|
] }, i)) })
|
|
@@ -5766,7 +5766,7 @@ function KeyboardShortcutsDialog({
|
|
|
5766
5766
|
var labelVariants = cva(
|
|
5767
5767
|
"text-[13px] font-medium leading-none text-fg select-none peer-disabled:cursor-not-allowed peer-disabled:text-fg-disabled has-[+input:disabled]:text-fg-disabled"
|
|
5768
5768
|
);
|
|
5769
|
-
var Label4 =
|
|
5769
|
+
var Label4 = React39.forwardRef(
|
|
5770
5770
|
function Label5({ children, required, className, ...props }, ref) {
|
|
5771
5771
|
return /* @__PURE__ */ jsxs(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props, children: [
|
|
5772
5772
|
children,
|
|
@@ -6221,7 +6221,7 @@ function MultiSelectField({
|
|
|
6221
6221
|
size = "md",
|
|
6222
6222
|
id
|
|
6223
6223
|
}) {
|
|
6224
|
-
const selected =
|
|
6224
|
+
const selected = React39.useMemo(
|
|
6225
6225
|
() => new Set(value ? value.split(",").filter(Boolean) : []),
|
|
6226
6226
|
[value]
|
|
6227
6227
|
);
|
|
@@ -6234,7 +6234,7 @@ function MultiSelectField({
|
|
|
6234
6234
|
}
|
|
6235
6235
|
onChange(Array.from(next).join(","));
|
|
6236
6236
|
};
|
|
6237
|
-
const generatedId =
|
|
6237
|
+
const generatedId = React39.useId();
|
|
6238
6238
|
const groupId = id ?? generatedId;
|
|
6239
6239
|
return /* @__PURE__ */ jsxs("div", { className: cn("w-full", className), children: [
|
|
6240
6240
|
/* @__PURE__ */ jsx(
|
|
@@ -7256,12 +7256,12 @@ var ProgressRing = forwardRef(function ProgressRing2({ value, max = 100, size =
|
|
|
7256
7256
|
);
|
|
7257
7257
|
});
|
|
7258
7258
|
ProgressRing.displayName = "ProgressRing";
|
|
7259
|
-
var RadioGroup3 =
|
|
7259
|
+
var RadioGroup3 = React39.forwardRef(function RadioGroup4({ className, ...props }, ref) {
|
|
7260
7260
|
return /* @__PURE__ */ jsx(RadioGroupPrimitive.Root, { ref, className: cn("grid gap-2", className), ...props });
|
|
7261
7261
|
});
|
|
7262
7262
|
RadioGroup3.displayName = RadioGroupPrimitive.Root.displayName;
|
|
7263
|
-
var RadioGroupItem =
|
|
7264
|
-
const generatedId =
|
|
7263
|
+
var RadioGroupItem = React39.forwardRef(function RadioGroupItem2({ className, label, id: providedId, ...props }, ref) {
|
|
7264
|
+
const generatedId = React39.useId();
|
|
7265
7265
|
const id = providedId ?? generatedId;
|
|
7266
7266
|
const root = /* @__PURE__ */ jsx(
|
|
7267
7267
|
RadioGroupPrimitive.Item,
|
|
@@ -7346,13 +7346,13 @@ var RankedBars = forwardRef(function RankedBars2({ items, className, ...props },
|
|
|
7346
7346
|
}) });
|
|
7347
7347
|
});
|
|
7348
7348
|
RankedBars.displayName = "RankedBars";
|
|
7349
|
-
var SheetSideContext =
|
|
7349
|
+
var SheetSideContext = React39.createContext({});
|
|
7350
7350
|
var Sheet = ({ side, children, ...props }) => /* @__PURE__ */ jsx(DialogPrimitive.Root, { ...props, children: /* @__PURE__ */ jsx(SheetSideContext, { value: { side }, children }) });
|
|
7351
7351
|
Sheet.displayName = "Sheet";
|
|
7352
7352
|
var SheetTrigger = DialogPrimitive.Trigger;
|
|
7353
7353
|
var SheetClose = DialogPrimitive.Close;
|
|
7354
7354
|
var SheetPortal = DialogPrimitive.Portal;
|
|
7355
|
-
var SheetOverlay =
|
|
7355
|
+
var SheetOverlay = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
7356
7356
|
DialogPrimitive.Overlay,
|
|
7357
7357
|
{
|
|
7358
7358
|
ref,
|
|
@@ -7404,9 +7404,9 @@ var sheetWidthClasses = {
|
|
|
7404
7404
|
xl: "w-[95vw] max-w-[95vw] sm:w-[760px]",
|
|
7405
7405
|
full: "w-full max-w-none"
|
|
7406
7406
|
};
|
|
7407
|
-
var SheetContent =
|
|
7407
|
+
var SheetContent = React39.forwardRef(
|
|
7408
7408
|
({ side, width = "default", customWidth, className, children, showCloseButton = true, style, ...props }, ref) => {
|
|
7409
|
-
const ctx =
|
|
7409
|
+
const ctx = React39.use(SheetSideContext);
|
|
7410
7410
|
const resolvedSide = side ?? ctx.side ?? "right";
|
|
7411
7411
|
const supportsWidth = resolvedSide === "left" || resolvedSide === "right";
|
|
7412
7412
|
const widthClass = supportsWidth && width !== "default" ? sheetWidthClasses[width] : null;
|
|
@@ -7456,7 +7456,7 @@ var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
|
7456
7456
|
}
|
|
7457
7457
|
);
|
|
7458
7458
|
SheetFooter.displayName = "SheetFooter";
|
|
7459
|
-
var SheetTitle =
|
|
7459
|
+
var SheetTitle = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
7460
7460
|
DialogPrimitive.Title,
|
|
7461
7461
|
{
|
|
7462
7462
|
ref,
|
|
@@ -7468,12 +7468,12 @@ var SheetTitle = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
7468
7468
|
}
|
|
7469
7469
|
));
|
|
7470
7470
|
SheetTitle.displayName = DialogPrimitive.Title.displayName;
|
|
7471
|
-
var SheetDescription =
|
|
7471
|
+
var SheetDescription = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Description, { ref, className: cn("text-fg-3 text-sm", className), ...props }));
|
|
7472
7472
|
SheetDescription.displayName = DialogPrimitive.Description.displayName;
|
|
7473
7473
|
var MOBILE_QUERY = "(max-width: 639.98px)";
|
|
7474
7474
|
function useIsMobile() {
|
|
7475
|
-
const [state, setState] =
|
|
7476
|
-
|
|
7475
|
+
const [state, setState] = React39.useState({ isMobile: false, mounted: false });
|
|
7476
|
+
React39.useEffect(() => {
|
|
7477
7477
|
const mql = window.matchMedia(MOBILE_QUERY);
|
|
7478
7478
|
const update = () => setState({ isMobile: mql.matches, mounted: true });
|
|
7479
7479
|
update();
|
|
@@ -7494,7 +7494,7 @@ function ResponsiveDialog({
|
|
|
7494
7494
|
size = "md"
|
|
7495
7495
|
}) {
|
|
7496
7496
|
const { isMobile, mounted } = useIsMobile();
|
|
7497
|
-
const close =
|
|
7497
|
+
const close = React39.useCallback(() => onOpenChange(false), [onOpenChange]);
|
|
7498
7498
|
const resolvedFooter = typeof footer === "function" ? footer(close) : footer;
|
|
7499
7499
|
const hasHeader = Boolean(title || description);
|
|
7500
7500
|
if (mounted && isMobile) {
|
|
@@ -7556,7 +7556,7 @@ var RouteTransition = forwardRef(
|
|
|
7556
7556
|
}
|
|
7557
7557
|
);
|
|
7558
7558
|
RouteTransition.displayName = "RouteTransition";
|
|
7559
|
-
var ScrollArea =
|
|
7559
|
+
var ScrollArea = React39.forwardRef(function ScrollArea2({ className, children, ...props }, ref) {
|
|
7560
7560
|
return /* @__PURE__ */ jsxs(
|
|
7561
7561
|
ScrollAreaPrimitive.Root,
|
|
7562
7562
|
{
|
|
@@ -7579,7 +7579,7 @@ var ScrollArea = React38.forwardRef(function ScrollArea2({ className, children,
|
|
|
7579
7579
|
);
|
|
7580
7580
|
});
|
|
7581
7581
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
7582
|
-
var ScrollBar =
|
|
7582
|
+
var ScrollBar = React39.forwardRef(function ScrollBar2({ className, orientation = "vertical", ...props }, ref) {
|
|
7583
7583
|
return /* @__PURE__ */ jsx(
|
|
7584
7584
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
7585
7585
|
{
|
|
@@ -7644,7 +7644,7 @@ var searchInputVariants = cva(
|
|
|
7644
7644
|
}
|
|
7645
7645
|
}
|
|
7646
7646
|
);
|
|
7647
|
-
var SearchInput =
|
|
7647
|
+
var SearchInput = React39.forwardRef(
|
|
7648
7648
|
function SearchInput2({
|
|
7649
7649
|
value,
|
|
7650
7650
|
onValueChange,
|
|
@@ -7657,8 +7657,8 @@ var SearchInput = React38.forwardRef(
|
|
|
7657
7657
|
...props
|
|
7658
7658
|
}, ref) {
|
|
7659
7659
|
const debouncedValue = useDebounce(value, debounceMs);
|
|
7660
|
-
const isFirstRender =
|
|
7661
|
-
|
|
7660
|
+
const isFirstRender = React39.useRef(true);
|
|
7661
|
+
React39.useEffect(() => {
|
|
7662
7662
|
if (isFirstRender.current) {
|
|
7663
7663
|
isFirstRender.current = false;
|
|
7664
7664
|
return;
|
|
@@ -7736,15 +7736,15 @@ function SearchSelect({
|
|
|
7736
7736
|
descriptionVariant = "inline"
|
|
7737
7737
|
}) {
|
|
7738
7738
|
const isSingleMode = value !== void 0 || onValueChange !== void 0;
|
|
7739
|
-
const singleSelectedOption =
|
|
7739
|
+
const singleSelectedOption = React39.useMemo(
|
|
7740
7740
|
() => isSingleMode && value ? options.find((o) => o.id === value) ?? null : null,
|
|
7741
7741
|
[isSingleMode, value, options]
|
|
7742
7742
|
);
|
|
7743
|
-
const selected =
|
|
7743
|
+
const selected = React39.useMemo(
|
|
7744
7744
|
() => isSingleMode ? singleSelectedOption ? [singleSelectedOption] : [] : selectedProp ?? [],
|
|
7745
7745
|
[isSingleMode, singleSelectedOption, selectedProp]
|
|
7746
7746
|
);
|
|
7747
|
-
const onSelect =
|
|
7747
|
+
const onSelect = React39.useCallback(
|
|
7748
7748
|
(option) => {
|
|
7749
7749
|
if (isSingleMode) {
|
|
7750
7750
|
onValueChange?.(option.id);
|
|
@@ -7754,7 +7754,7 @@ function SearchSelect({
|
|
|
7754
7754
|
},
|
|
7755
7755
|
[isSingleMode, onValueChange, onSelectProp]
|
|
7756
7756
|
);
|
|
7757
|
-
const onRemove =
|
|
7757
|
+
const onRemove = React39.useCallback(
|
|
7758
7758
|
(option) => {
|
|
7759
7759
|
if (isSingleMode) {
|
|
7760
7760
|
onValueChange?.("");
|
|
@@ -7765,15 +7765,15 @@ function SearchSelect({
|
|
|
7765
7765
|
[isSingleMode, onValueChange, onRemoveProp]
|
|
7766
7766
|
);
|
|
7767
7767
|
const closeOnSelect = isSingleMode || closeOnSelectProp;
|
|
7768
|
-
const [search, setSearch] =
|
|
7769
|
-
const [open, setOpen] =
|
|
7770
|
-
const [activeChip, setActiveChip] =
|
|
7771
|
-
const selectedIds =
|
|
7772
|
-
const filtered =
|
|
7768
|
+
const [search, setSearch] = React39.useState("");
|
|
7769
|
+
const [open, setOpen] = React39.useState(false);
|
|
7770
|
+
const [activeChip, setActiveChip] = React39.useState(null);
|
|
7771
|
+
const selectedIds = React39.useMemo(() => new Set(selected.map((s) => s.id)), [selected]);
|
|
7772
|
+
const filtered = React39.useMemo(
|
|
7773
7773
|
() => options.filter((opt) => !selectedIds.has(opt.id)),
|
|
7774
7774
|
[options, selectedIds]
|
|
7775
7775
|
);
|
|
7776
|
-
const groups =
|
|
7776
|
+
const groups = React39.useMemo(() => {
|
|
7777
7777
|
const order = [];
|
|
7778
7778
|
const byGroup = /* @__PURE__ */ new Map();
|
|
7779
7779
|
for (const opt of filtered) {
|
|
@@ -7785,25 +7785,25 @@ function SearchSelect({
|
|
|
7785
7785
|
}
|
|
7786
7786
|
return order.map((g) => [g, byGroup.get(g)]);
|
|
7787
7787
|
}, [filtered]);
|
|
7788
|
-
const hasGroups =
|
|
7789
|
-
const pinnedSet =
|
|
7790
|
-
const chips =
|
|
7788
|
+
const hasGroups = React39.useMemo(() => groups.some(([g]) => g != null), [groups]);
|
|
7789
|
+
const pinnedSet = React39.useMemo(() => new Set(pinnedGroups ?? []), [pinnedGroups]);
|
|
7790
|
+
const chips = React39.useMemo(() => {
|
|
7791
7791
|
if (!groupFilter || !hasGroups) return [];
|
|
7792
7792
|
return groups.map(([g]) => g).filter((g) => g != null && !pinnedSet.has(g));
|
|
7793
7793
|
}, [groupFilter, hasGroups, groups, pinnedSet]);
|
|
7794
|
-
const visibleGroups =
|
|
7794
|
+
const visibleGroups = React39.useMemo(() => {
|
|
7795
7795
|
if (chips.length > 0 && activeChip) {
|
|
7796
7796
|
return groups.filter(([g]) => g === activeChip);
|
|
7797
7797
|
}
|
|
7798
7798
|
return groups;
|
|
7799
7799
|
}, [groups, chips.length, activeChip]);
|
|
7800
7800
|
const trimmedSearch = search.trim();
|
|
7801
|
-
const hasExactMatch =
|
|
7801
|
+
const hasExactMatch = React39.useMemo(
|
|
7802
7802
|
() => options.some((opt) => opt.label.toLowerCase() === trimmedSearch.toLowerCase()),
|
|
7803
7803
|
[options, trimmedSearch]
|
|
7804
7804
|
);
|
|
7805
7805
|
const showCreate = !!onCreate && trimmedSearch.length > 0 && !hasExactMatch;
|
|
7806
|
-
const handleSelect =
|
|
7806
|
+
const handleSelect = React39.useCallback(
|
|
7807
7807
|
(option) => {
|
|
7808
7808
|
onSelect(option);
|
|
7809
7809
|
setSearch("");
|
|
@@ -7811,16 +7811,16 @@ function SearchSelect({
|
|
|
7811
7811
|
},
|
|
7812
7812
|
[onSelect, closeOnSelect]
|
|
7813
7813
|
);
|
|
7814
|
-
const handleCreate =
|
|
7814
|
+
const handleCreate = React39.useCallback(() => {
|
|
7815
7815
|
if (onCreate && trimmedSearch) {
|
|
7816
7816
|
onCreate(trimmedSearch);
|
|
7817
7817
|
setSearch("");
|
|
7818
7818
|
setOpen(false);
|
|
7819
7819
|
}
|
|
7820
7820
|
}, [onCreate, trimmedSearch]);
|
|
7821
|
-
const inputRef =
|
|
7822
|
-
const listboxId =
|
|
7823
|
-
const setInputRef =
|
|
7821
|
+
const inputRef = React39.useRef(null);
|
|
7822
|
+
const listboxId = React39.useId();
|
|
7823
|
+
const setInputRef = React39.useCallback((node) => {
|
|
7824
7824
|
inputRef.current = node;
|
|
7825
7825
|
node?.removeAttribute("aria-labelledby");
|
|
7826
7826
|
node?.setAttribute("aria-controls", listboxId);
|
|
@@ -7829,12 +7829,12 @@ function SearchSelect({
|
|
|
7829
7829
|
const singleValue = closeOnSelect ? selected[0] ?? null : null;
|
|
7830
7830
|
const showValue = singleValue !== null && !open;
|
|
7831
7831
|
const popoverOpen = open && !disabled;
|
|
7832
|
-
|
|
7832
|
+
React39.useEffect(() => {
|
|
7833
7833
|
inputRef.current?.removeAttribute("aria-labelledby");
|
|
7834
7834
|
inputRef.current?.setAttribute("aria-controls", listboxId);
|
|
7835
7835
|
inputRef.current?.removeAttribute("aria-activedescendant");
|
|
7836
7836
|
});
|
|
7837
|
-
|
|
7837
|
+
React39.useEffect(() => {
|
|
7838
7838
|
if (open && closeOnSelect) {
|
|
7839
7839
|
const raf = requestAnimationFrame(() => inputRef.current?.focus());
|
|
7840
7840
|
return () => cancelAnimationFrame(raf);
|
|
@@ -8279,7 +8279,7 @@ var SegmentedProgress = forwardRef(
|
|
|
8279
8279
|
}
|
|
8280
8280
|
);
|
|
8281
8281
|
SegmentedProgress.displayName = "SegmentedProgress";
|
|
8282
|
-
var Separator4 =
|
|
8282
|
+
var Separator4 = React39.forwardRef(function Separator5({ className, orientation = "horizontal", decorative = true, ...props }, ref) {
|
|
8283
8283
|
return /* @__PURE__ */ jsx(
|
|
8284
8284
|
SeparatorPrimitive.Root,
|
|
8285
8285
|
{
|
|
@@ -8411,7 +8411,7 @@ function SideDrawerFooter({ children, className }) {
|
|
|
8411
8411
|
SideDrawer.Header = SideDrawerHeader;
|
|
8412
8412
|
SideDrawer.Body = SideDrawerBody;
|
|
8413
8413
|
SideDrawer.Footer = SideDrawerFooter;
|
|
8414
|
-
var Slider =
|
|
8414
|
+
var Slider = React39.forwardRef(
|
|
8415
8415
|
function Slider2({
|
|
8416
8416
|
className,
|
|
8417
8417
|
label,
|
|
@@ -8423,7 +8423,7 @@ var Slider = React38.forwardRef(
|
|
|
8423
8423
|
defaultValue,
|
|
8424
8424
|
...props
|
|
8425
8425
|
}, ref) {
|
|
8426
|
-
const generatedId =
|
|
8426
|
+
const generatedId = React39.useId();
|
|
8427
8427
|
const id = providedId ?? generatedId;
|
|
8428
8428
|
const displayValue = (() => {
|
|
8429
8429
|
const v = value ?? defaultValue;
|
|
@@ -9387,9 +9387,9 @@ var switchThumbVariants = cva(
|
|
|
9387
9387
|
}
|
|
9388
9388
|
}
|
|
9389
9389
|
);
|
|
9390
|
-
var Switch =
|
|
9390
|
+
var Switch = React39.forwardRef(
|
|
9391
9391
|
function Switch2({ label, size, className, id: providedId, ...props }, ref) {
|
|
9392
|
-
const generatedId =
|
|
9392
|
+
const generatedId = React39.useId();
|
|
9393
9393
|
const id = providedId ?? generatedId;
|
|
9394
9394
|
const root = /* @__PURE__ */ jsx(
|
|
9395
9395
|
SwitchPrimitive.Root,
|
|
@@ -9523,13 +9523,13 @@ var TableCaption = forwardRef(
|
|
|
9523
9523
|
}
|
|
9524
9524
|
);
|
|
9525
9525
|
TableCaption.displayName = "TableCaption";
|
|
9526
|
-
var Tabs =
|
|
9526
|
+
var Tabs = React39.forwardRef(
|
|
9527
9527
|
function Tabs2({ className, ...props }, ref) {
|
|
9528
9528
|
return /* @__PURE__ */ jsx(TabsPrimitive.Root, { ref, className: cn(className), ...props });
|
|
9529
9529
|
}
|
|
9530
9530
|
);
|
|
9531
9531
|
Tabs.displayName = TabsPrimitive.Root.displayName;
|
|
9532
|
-
var TabsList =
|
|
9532
|
+
var TabsList = React39.forwardRef(function TabsList2({ className, ...props }, ref) {
|
|
9533
9533
|
return /* @__PURE__ */ jsx(
|
|
9534
9534
|
TabsPrimitive.List,
|
|
9535
9535
|
{
|
|
@@ -9574,7 +9574,7 @@ var triggerVariants = cva(
|
|
|
9574
9574
|
}
|
|
9575
9575
|
}
|
|
9576
9576
|
);
|
|
9577
|
-
var TabsTrigger =
|
|
9577
|
+
var TabsTrigger = React39.forwardRef(function TabsTrigger2({ className, variant, ...props }, ref) {
|
|
9578
9578
|
return /* @__PURE__ */ jsx(
|
|
9579
9579
|
TabsPrimitive.Trigger,
|
|
9580
9580
|
{
|
|
@@ -9585,7 +9585,7 @@ var TabsTrigger = React38.forwardRef(function TabsTrigger2({ className, variant,
|
|
|
9585
9585
|
);
|
|
9586
9586
|
});
|
|
9587
9587
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
9588
|
-
var TabsContent =
|
|
9588
|
+
var TabsContent = React39.forwardRef(function TabsContent2({ className, ...props }, ref) {
|
|
9589
9589
|
return /* @__PURE__ */ jsx(
|
|
9590
9590
|
TabsPrimitive.Content,
|
|
9591
9591
|
{
|
|
@@ -9610,7 +9610,7 @@ function TeamMemberSelect({
|
|
|
9610
9610
|
placeholder = "Select team member...",
|
|
9611
9611
|
className
|
|
9612
9612
|
}) {
|
|
9613
|
-
const options =
|
|
9613
|
+
const options = React39.useMemo(() => {
|
|
9614
9614
|
const meBadge = /* @__PURE__ */ jsx(
|
|
9615
9615
|
Badge,
|
|
9616
9616
|
{
|
|
@@ -10104,10 +10104,10 @@ var itemVariants = cva(
|
|
|
10104
10104
|
}
|
|
10105
10105
|
}
|
|
10106
10106
|
);
|
|
10107
|
-
var ToggleGroupContext =
|
|
10107
|
+
var ToggleGroupContext = React39.createContext({
|
|
10108
10108
|
variant: "default"
|
|
10109
10109
|
});
|
|
10110
|
-
var ToggleGroup =
|
|
10110
|
+
var ToggleGroup = React39.forwardRef(function ToggleGroup2({ className, variant, children, ...props }, ref) {
|
|
10111
10111
|
return /* @__PURE__ */ jsx(
|
|
10112
10112
|
ToggleGroupPrimitive.Root,
|
|
10113
10113
|
{
|
|
@@ -10119,8 +10119,8 @@ var ToggleGroup = React38.forwardRef(function ToggleGroup2({ className, variant,
|
|
|
10119
10119
|
);
|
|
10120
10120
|
});
|
|
10121
10121
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
10122
|
-
var ToggleGroupItem =
|
|
10123
|
-
const ctx =
|
|
10122
|
+
var ToggleGroupItem = React39.forwardRef(function ToggleGroupItem2({ className, variant, ...props }, ref) {
|
|
10123
|
+
const ctx = React39.useContext(ToggleGroupContext);
|
|
10124
10124
|
return /* @__PURE__ */ jsx(
|
|
10125
10125
|
ToggleGroupPrimitive.Item,
|
|
10126
10126
|
{
|
|
@@ -10139,7 +10139,7 @@ var Tooltip = ({ delayMs, delayDuration, children, ...props }) => {
|
|
|
10139
10139
|
return /* @__PURE__ */ jsx(TooltipPrimitive.Provider, { delayDuration: resolvedDelay, children: /* @__PURE__ */ jsx(TooltipPrimitive.Root, { delayDuration: resolvedDelay, ...props, children }) });
|
|
10140
10140
|
};
|
|
10141
10141
|
Tooltip.displayName = "Tooltip";
|
|
10142
|
-
var TooltipContent =
|
|
10142
|
+
var TooltipContent = React39.forwardRef(({ className, sideOffset = 6, ...props }, ref) => /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
10143
10143
|
TooltipPrimitive.Content,
|
|
10144
10144
|
{
|
|
10145
10145
|
ref,
|
|
@@ -11552,6 +11552,7 @@ var Questions = forwardRef(function Questions2({
|
|
|
11552
11552
|
max,
|
|
11553
11553
|
step = 1,
|
|
11554
11554
|
countLabel,
|
|
11555
|
+
itemNoun,
|
|
11555
11556
|
onValueChange,
|
|
11556
11557
|
onValuesChange,
|
|
11557
11558
|
onAddressChange,
|
|
@@ -11968,7 +11969,7 @@ var Questions = forwardRef(function Questions2({
|
|
|
11968
11969
|
tableRows.map((row, rowIndex) => /* @__PURE__ */ jsxs("div", { className: "border-rule bg-surface-2 rounded-[16px] border p-4", children: [
|
|
11969
11970
|
/* @__PURE__ */ jsxs("div", { className: "mb-3 flex items-center justify-between gap-3", children: [
|
|
11970
11971
|
/* @__PURE__ */ jsxs("span", { className: "text-fg text-[13px] font-semibold", children: [
|
|
11971
|
-
type === "repeater" ? "Item" : "Row",
|
|
11972
|
+
type === "repeater" ? itemNoun ?? "Item" : "Row",
|
|
11972
11973
|
" ",
|
|
11973
11974
|
rowIndex + 1
|
|
11974
11975
|
] }),
|
|
@@ -13024,7 +13025,7 @@ function MetaText({
|
|
|
13024
13025
|
if (presentValues.length === 0) {
|
|
13025
13026
|
return null;
|
|
13026
13027
|
}
|
|
13027
|
-
return /* @__PURE__ */ jsx("div", { className, children: presentValues.map((value, index) => /* @__PURE__ */ jsxs(
|
|
13028
|
+
return /* @__PURE__ */ jsx("div", { className, children: presentValues.map((value, index) => /* @__PURE__ */ jsxs(React39.Fragment, { children: [
|
|
13028
13029
|
index > 0 && /* @__PURE__ */ jsx(
|
|
13029
13030
|
"span",
|
|
13030
13031
|
{
|
|
@@ -13100,7 +13101,7 @@ function MoreActions({ menu }) {
|
|
|
13100
13101
|
/* @__PURE__ */ jsx(DropdownMenuContent, { align: "end", onClick: (event) => event.stopPropagation(), children: menu })
|
|
13101
13102
|
] });
|
|
13102
13103
|
}
|
|
13103
|
-
var DocumentFileRow =
|
|
13104
|
+
var DocumentFileRow = React39.forwardRef(
|
|
13104
13105
|
function DocumentFileRow2({
|
|
13105
13106
|
name,
|
|
13106
13107
|
fileType,
|
|
@@ -13167,7 +13168,7 @@ var DocumentFileRow = React38.forwardRef(
|
|
|
13167
13168
|
}
|
|
13168
13169
|
);
|
|
13169
13170
|
DocumentFileRow.displayName = "DocumentFileRow";
|
|
13170
|
-
var DocumentFileCard =
|
|
13171
|
+
var DocumentFileCard = React39.forwardRef(
|
|
13171
13172
|
function DocumentFileCard2({
|
|
13172
13173
|
name,
|
|
13173
13174
|
fileType,
|
|
@@ -13237,6 +13238,244 @@ var DocumentFileCard = React38.forwardRef(
|
|
|
13237
13238
|
}
|
|
13238
13239
|
);
|
|
13239
13240
|
DocumentFileCard.displayName = "DocumentFileCard";
|
|
13241
|
+
var lineCaptionToneClass = {
|
|
13242
|
+
muted: "text-fg-4",
|
|
13243
|
+
warning: "text-warning-fg",
|
|
13244
|
+
danger: "text-danger-fg"
|
|
13245
|
+
};
|
|
13246
|
+
var DocumentFileLine = React39.forwardRef(
|
|
13247
|
+
function DocumentFileLine2({
|
|
13248
|
+
name,
|
|
13249
|
+
fileType = "",
|
|
13250
|
+
typeLabel,
|
|
13251
|
+
caption,
|
|
13252
|
+
captionTone = "muted",
|
|
13253
|
+
onOpen,
|
|
13254
|
+
previewLabel,
|
|
13255
|
+
className,
|
|
13256
|
+
...props
|
|
13257
|
+
}, ref) {
|
|
13258
|
+
const { Icon: Icon3, colorClass } = getFileTypeParts(fileType);
|
|
13259
|
+
return /* @__PURE__ */ jsxs(
|
|
13260
|
+
"div",
|
|
13261
|
+
{
|
|
13262
|
+
ref,
|
|
13263
|
+
className: cn(
|
|
13264
|
+
"flex items-center gap-2.5 rounded-[10px] px-2.5 py-2",
|
|
13265
|
+
"transition-colors duration-[120ms] motion-reduce:transition-none hover:bg-surface-2",
|
|
13266
|
+
className
|
|
13267
|
+
),
|
|
13268
|
+
...props,
|
|
13269
|
+
children: [
|
|
13270
|
+
/* @__PURE__ */ jsx(
|
|
13271
|
+
"span",
|
|
13272
|
+
{
|
|
13273
|
+
className: "grid size-8 shrink-0 place-items-center rounded-lg bg-surface-2",
|
|
13274
|
+
"aria-hidden": "true",
|
|
13275
|
+
children: /* @__PURE__ */ jsx(Icon3, { className: colorClass, size: 16 })
|
|
13276
|
+
}
|
|
13277
|
+
),
|
|
13278
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
13279
|
+
/* @__PURE__ */ jsx("p", { className: "truncate text-[13px] font-medium text-fg", children: name }),
|
|
13280
|
+
caption != null && /* @__PURE__ */ jsx(
|
|
13281
|
+
"p",
|
|
13282
|
+
{
|
|
13283
|
+
className: cn(
|
|
13284
|
+
"mt-0.5 truncate text-[11.5px] leading-none",
|
|
13285
|
+
lineCaptionToneClass[captionTone]
|
|
13286
|
+
),
|
|
13287
|
+
children: caption
|
|
13288
|
+
}
|
|
13289
|
+
)
|
|
13290
|
+
] }),
|
|
13291
|
+
typeLabel != null && /* @__PURE__ */ jsx("div", { className: "shrink-0", children: typeLabel }),
|
|
13292
|
+
onOpen != null && /* @__PURE__ */ jsx(
|
|
13293
|
+
"button",
|
|
13294
|
+
{
|
|
13295
|
+
type: "button",
|
|
13296
|
+
"aria-label": previewLabel ?? `Preview ${name}`,
|
|
13297
|
+
onClick: onOpen,
|
|
13298
|
+
className: cn(
|
|
13299
|
+
"grid size-7 shrink-0 place-items-center rounded-lg text-fg-4",
|
|
13300
|
+
"transition-colors duration-[120ms] motion-reduce:transition-none",
|
|
13301
|
+
"hover:bg-surface hover:text-brand",
|
|
13302
|
+
"focus-visible:outline-none focus-visible:[box-shadow:var(--shadow-focus-ring)]"
|
|
13303
|
+
),
|
|
13304
|
+
children: /* @__PURE__ */ jsx(EyeIcon, { size: 15 })
|
|
13305
|
+
}
|
|
13306
|
+
)
|
|
13307
|
+
]
|
|
13308
|
+
}
|
|
13309
|
+
);
|
|
13310
|
+
}
|
|
13311
|
+
);
|
|
13312
|
+
DocumentFileLine.displayName = "DocumentFileLine";
|
|
13313
|
+
var DONE_STATUSES = /* @__PURE__ */ new Set(["received", "complete"]);
|
|
13314
|
+
function StatePill({ status }) {
|
|
13315
|
+
switch (status) {
|
|
13316
|
+
case "received":
|
|
13317
|
+
return /* @__PURE__ */ jsx(StatusPill, { status: "received", dot: false });
|
|
13318
|
+
case "complete":
|
|
13319
|
+
return /* @__PURE__ */ jsx(StatusPill, { status: "complete", dot: false });
|
|
13320
|
+
case "in-review":
|
|
13321
|
+
return /* @__PURE__ */ jsx(StatusPill, { status: "in-review", dot: false, children: "Reviewing" });
|
|
13322
|
+
case "not-applicable":
|
|
13323
|
+
return /* @__PURE__ */ jsx(StatusPill, { status: "draft", dot: false, children: "Not needed" });
|
|
13324
|
+
default:
|
|
13325
|
+
return /* @__PURE__ */ jsx(StatusPill, { status: "pending", dot: false, children: "Awaiting" });
|
|
13326
|
+
}
|
|
13327
|
+
}
|
|
13328
|
+
function StateGlyph({ status }) {
|
|
13329
|
+
if (DONE_STATUSES.has(status)) {
|
|
13330
|
+
return /* @__PURE__ */ jsx(
|
|
13331
|
+
"span",
|
|
13332
|
+
{
|
|
13333
|
+
className: "grid size-[22px] shrink-0 place-items-center rounded-full bg-success-bg text-success-fg ring-1 ring-inset ring-success-line/70",
|
|
13334
|
+
"aria-hidden": "true",
|
|
13335
|
+
children: /* @__PURE__ */ jsx(CheckIcon, { size: 13 })
|
|
13336
|
+
}
|
|
13337
|
+
);
|
|
13338
|
+
}
|
|
13339
|
+
if (status === "in-review") {
|
|
13340
|
+
return /* @__PURE__ */ jsx(
|
|
13341
|
+
"span",
|
|
13342
|
+
{
|
|
13343
|
+
className: "grid size-[22px] shrink-0 place-items-center rounded-full bg-warning-bg text-warning-fg ring-1 ring-inset ring-warning-line/70",
|
|
13344
|
+
"aria-hidden": "true",
|
|
13345
|
+
children: /* @__PURE__ */ jsx(ClockIcon, { size: 12 })
|
|
13346
|
+
}
|
|
13347
|
+
);
|
|
13348
|
+
}
|
|
13349
|
+
if (status === "not-applicable") {
|
|
13350
|
+
return /* @__PURE__ */ jsx(
|
|
13351
|
+
"span",
|
|
13352
|
+
{
|
|
13353
|
+
className: "grid size-[22px] shrink-0 place-items-center rounded-full border border-rule text-fg-4",
|
|
13354
|
+
"aria-hidden": "true",
|
|
13355
|
+
children: /* @__PURE__ */ jsx("span", { className: "h-px w-2.5 rounded-full bg-current" })
|
|
13356
|
+
}
|
|
13357
|
+
);
|
|
13358
|
+
}
|
|
13359
|
+
return /* @__PURE__ */ jsx(
|
|
13360
|
+
"span",
|
|
13361
|
+
{
|
|
13362
|
+
className: "size-[22px] shrink-0 rounded-full border-[1.5px] border-fg-4/35 bg-surface",
|
|
13363
|
+
"aria-hidden": "true"
|
|
13364
|
+
}
|
|
13365
|
+
);
|
|
13366
|
+
}
|
|
13367
|
+
function ChecklistItemRow({ item }) {
|
|
13368
|
+
const done = DONE_STATUSES.has(item.status);
|
|
13369
|
+
const files = item.files ?? [];
|
|
13370
|
+
return /* @__PURE__ */ jsxs(
|
|
13371
|
+
"div",
|
|
13372
|
+
{
|
|
13373
|
+
className: cn(
|
|
13374
|
+
"rounded-xl border px-3.5 py-2.5 shadow-quiet transition-colors duration-[120ms] motion-reduce:transition-none",
|
|
13375
|
+
done ? "border-success-line/70 bg-success-bg/30" : item.status === "in-review" ? "border-warning-line/70 bg-warning-bg/25" : "border-rule bg-surface"
|
|
13376
|
+
),
|
|
13377
|
+
children: [
|
|
13378
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-x-3", children: [
|
|
13379
|
+
/* @__PURE__ */ jsx(StateGlyph, { status: item.status }),
|
|
13380
|
+
/* @__PURE__ */ jsx("p", { className: "min-w-0 flex-1 truncate text-[13.5px] font-semibold tracking-tight text-fg", children: item.label }),
|
|
13381
|
+
item.action != null && /* @__PURE__ */ jsx("div", { className: "order-3 w-full border-t border-rule/70 pt-3 @2xl/checklist:order-2 @2xl/checklist:w-72 @2xl/checklist:border-t-0 @2xl/checklist:pt-0", children: item.action }),
|
|
13382
|
+
/* @__PURE__ */ jsx("div", { className: "order-2 shrink-0 @2xl/checklist:order-3", children: /* @__PURE__ */ jsx(StatePill, { status: item.status }) })
|
|
13383
|
+
] }),
|
|
13384
|
+
files.length > 0 && /* @__PURE__ */ jsx("div", { className: "mt-2 flex flex-col gap-0.5 pl-[30px]", children: files.map((file) => /* @__PURE__ */ jsx(
|
|
13385
|
+
DocumentFileLine,
|
|
13386
|
+
{
|
|
13387
|
+
name: file.name,
|
|
13388
|
+
fileType: file.fileType,
|
|
13389
|
+
typeLabel: file.typeLabel,
|
|
13390
|
+
caption: file.caption,
|
|
13391
|
+
captionTone: file.captionTone,
|
|
13392
|
+
onOpen: file.onOpen
|
|
13393
|
+
},
|
|
13394
|
+
file.id
|
|
13395
|
+
)) })
|
|
13396
|
+
]
|
|
13397
|
+
}
|
|
13398
|
+
);
|
|
13399
|
+
}
|
|
13400
|
+
function GroupDivider({ label }) {
|
|
13401
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 pt-1", children: [
|
|
13402
|
+
/* @__PURE__ */ jsx("span", { className: "text-[11px] font-semibold uppercase tracking-wider text-fg-4", children: label }),
|
|
13403
|
+
/* @__PURE__ */ jsx("span", { className: "h-px flex-1 bg-rule" })
|
|
13404
|
+
] });
|
|
13405
|
+
}
|
|
13406
|
+
function FileGroup({ files }) {
|
|
13407
|
+
return /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-0.5 rounded-xl border border-rule bg-surface p-1.5 shadow-quiet", children: files.map((file) => /* @__PURE__ */ jsx(
|
|
13408
|
+
DocumentFileLine,
|
|
13409
|
+
{
|
|
13410
|
+
name: file.name,
|
|
13411
|
+
fileType: file.fileType,
|
|
13412
|
+
typeLabel: file.typeLabel,
|
|
13413
|
+
caption: file.caption,
|
|
13414
|
+
captionTone: file.captionTone,
|
|
13415
|
+
onOpen: file.onOpen
|
|
13416
|
+
},
|
|
13417
|
+
file.id
|
|
13418
|
+
)) });
|
|
13419
|
+
}
|
|
13420
|
+
var DocumentChecklist = React39.forwardRef(
|
|
13421
|
+
function DocumentChecklist2({
|
|
13422
|
+
items,
|
|
13423
|
+
title = "Your documents",
|
|
13424
|
+
progress,
|
|
13425
|
+
upload,
|
|
13426
|
+
reviewing,
|
|
13427
|
+
extra,
|
|
13428
|
+
reviewingLabel = "We're sorting these",
|
|
13429
|
+
extraLabel = "Also received",
|
|
13430
|
+
emptyState,
|
|
13431
|
+
className,
|
|
13432
|
+
...props
|
|
13433
|
+
}, ref) {
|
|
13434
|
+
const hasProgress = progress != null && progress.total > 0;
|
|
13435
|
+
const reviewingFiles = reviewing ?? [];
|
|
13436
|
+
const extraFiles = extra ?? [];
|
|
13437
|
+
const isEmpty = items.length === 0 && reviewingFiles.length === 0 && extraFiles.length === 0;
|
|
13438
|
+
return /* @__PURE__ */ jsxs("div", { ref, className: cn("@container/checklist flex flex-col gap-4", className), ...props, children: [
|
|
13439
|
+
(title || hasProgress) && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
13440
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-baseline justify-between gap-3", children: [
|
|
13441
|
+
/* @__PURE__ */ jsx("h3", { className: "text-[15px] font-semibold tracking-tight text-fg", children: title }),
|
|
13442
|
+
hasProgress && /* @__PURE__ */ jsxs("span", { className: "shrink-0 text-[12.5px] tabular-nums text-fg-3", children: [
|
|
13443
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold text-fg-2", children: progress.received }),
|
|
13444
|
+
" of",
|
|
13445
|
+
" ",
|
|
13446
|
+
progress.total,
|
|
13447
|
+
" received"
|
|
13448
|
+
] })
|
|
13449
|
+
] }),
|
|
13450
|
+
hasProgress && /* @__PURE__ */ jsx(ProgressBar, { value: progress.percent, max: 100 })
|
|
13451
|
+
] }),
|
|
13452
|
+
upload,
|
|
13453
|
+
items.length > 0 ? /* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-2", children: items.map((item) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(ChecklistItemRow, { item }) }, item.id)) }) : isEmpty ? emptyState ?? /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-2 rounded-2xl border border-dashed border-rule bg-surface px-4 py-10 text-center", children: [
|
|
13454
|
+
/* @__PURE__ */ jsx(FileTextIcon, { size: 20, className: "text-fg-4", "aria-hidden": "true" }),
|
|
13455
|
+
/* @__PURE__ */ jsx("p", { className: "text-[13px] font-medium text-fg-3", children: "No documents expected yet." })
|
|
13456
|
+
] }) : null,
|
|
13457
|
+
reviewingFiles.length > 0 && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
13458
|
+
/* @__PURE__ */ jsx(GroupDivider, { label: reviewingLabel }),
|
|
13459
|
+
/* @__PURE__ */ jsx("div", { className: "rounded-xl border border-warning-line/70 bg-warning-bg/20 p-1.5 shadow-quiet", children: reviewingFiles.map((file) => /* @__PURE__ */ jsx(
|
|
13460
|
+
DocumentFileLine,
|
|
13461
|
+
{
|
|
13462
|
+
name: file.name,
|
|
13463
|
+
fileType: file.fileType,
|
|
13464
|
+
caption: file.caption ?? "Categorizing\u2026",
|
|
13465
|
+
captionTone: file.captionTone ?? "warning",
|
|
13466
|
+
onOpen: file.onOpen
|
|
13467
|
+
},
|
|
13468
|
+
file.id
|
|
13469
|
+
)) })
|
|
13470
|
+
] }),
|
|
13471
|
+
extraFiles.length > 0 && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
13472
|
+
/* @__PURE__ */ jsx(GroupDivider, { label: extraLabel }),
|
|
13473
|
+
/* @__PURE__ */ jsx(FileGroup, { files: extraFiles })
|
|
13474
|
+
] })
|
|
13475
|
+
] });
|
|
13476
|
+
}
|
|
13477
|
+
);
|
|
13478
|
+
DocumentChecklist.displayName = "DocumentChecklist";
|
|
13240
13479
|
var DocumentRequestField = forwardRef(
|
|
13241
13480
|
function DocumentRequestField2({
|
|
13242
13481
|
index,
|
|
@@ -13463,7 +13702,7 @@ var Content16 = forwardRef(function Content17({ padTop, padBottom, className, st
|
|
|
13463
13702
|
);
|
|
13464
13703
|
});
|
|
13465
13704
|
Content16.displayName = "Content";
|
|
13466
|
-
var SidebarContext =
|
|
13705
|
+
var SidebarContext = React39.createContext(null);
|
|
13467
13706
|
var NOOP_CONTEXT = {
|
|
13468
13707
|
state: "expanded",
|
|
13469
13708
|
setState: () => {
|
|
@@ -13476,7 +13715,7 @@ var NOOP_CONTEXT = {
|
|
|
13476
13715
|
}
|
|
13477
13716
|
};
|
|
13478
13717
|
function useSidebarState() {
|
|
13479
|
-
return
|
|
13718
|
+
return React39.useContext(SidebarContext) ?? NOOP_CONTEXT;
|
|
13480
13719
|
}
|
|
13481
13720
|
var DEFAULT_SHORTCUT = "Mod+\\";
|
|
13482
13721
|
function readStorage(key) {
|
|
@@ -13496,16 +13735,16 @@ function SidebarProvider({
|
|
|
13496
13735
|
storageKey,
|
|
13497
13736
|
shortcut = DEFAULT_SHORTCUT
|
|
13498
13737
|
}) {
|
|
13499
|
-
const [uncontrolled, setUncontrolled] =
|
|
13738
|
+
const [uncontrolled, setUncontrolled] = React39.useState(
|
|
13500
13739
|
controlled ?? defaultState
|
|
13501
13740
|
);
|
|
13502
|
-
|
|
13741
|
+
React39.useEffect(() => {
|
|
13503
13742
|
if (controlled !== void 0) return;
|
|
13504
13743
|
const stored = readStorage(storageKey);
|
|
13505
13744
|
if (stored && stored !== uncontrolled) setUncontrolled(stored);
|
|
13506
13745
|
}, []);
|
|
13507
13746
|
const state = controlled ?? uncontrolled;
|
|
13508
|
-
const setState =
|
|
13747
|
+
const setState = React39.useCallback(
|
|
13509
13748
|
(next) => {
|
|
13510
13749
|
if (controlled === void 0) setUncontrolled(next);
|
|
13511
13750
|
onStateChange?.(next);
|
|
@@ -13518,11 +13757,11 @@ function SidebarProvider({
|
|
|
13518
13757
|
},
|
|
13519
13758
|
[controlled, onStateChange, storageKey]
|
|
13520
13759
|
);
|
|
13521
|
-
const toggle =
|
|
13760
|
+
const toggle = React39.useCallback(() => {
|
|
13522
13761
|
setState(state === "expanded" ? "rail" : "expanded");
|
|
13523
13762
|
}, [state, setState]);
|
|
13524
|
-
const [peekLockCount, setPeekLockCount] =
|
|
13525
|
-
const acquirePeekLock =
|
|
13763
|
+
const [peekLockCount, setPeekLockCount] = React39.useState(0);
|
|
13764
|
+
const acquirePeekLock = React39.useCallback(() => {
|
|
13526
13765
|
setPeekLockCount((n) => n + 1);
|
|
13527
13766
|
let released = false;
|
|
13528
13767
|
return () => {
|
|
@@ -13531,7 +13770,7 @@ function SidebarProvider({
|
|
|
13531
13770
|
setPeekLockCount((n) => Math.max(0, n - 1));
|
|
13532
13771
|
};
|
|
13533
13772
|
}, []);
|
|
13534
|
-
|
|
13773
|
+
React39.useEffect(() => {
|
|
13535
13774
|
if (!shortcut) return;
|
|
13536
13775
|
const parts = shortcut.split("+");
|
|
13537
13776
|
const key = parts.pop() ?? "";
|
|
@@ -13551,7 +13790,7 @@ function SidebarProvider({
|
|
|
13551
13790
|
window.addEventListener("keydown", onKey);
|
|
13552
13791
|
return () => window.removeEventListener("keydown", onKey);
|
|
13553
13792
|
}, [shortcut, toggle]);
|
|
13554
|
-
const value =
|
|
13793
|
+
const value = React39.useMemo(
|
|
13555
13794
|
() => ({ state, setState, toggle, collapsible: true, peekLockCount, acquirePeekLock }),
|
|
13556
13795
|
[state, setState, toggle, peekLockCount, acquirePeekLock]
|
|
13557
13796
|
);
|
|
@@ -13560,15 +13799,15 @@ function SidebarProvider({
|
|
|
13560
13799
|
SidebarProvider.displayName = "SidebarProvider";
|
|
13561
13800
|
var PEEK_ENTER_DELAY_MS = 100;
|
|
13562
13801
|
var PEEK_LEAVE_DELAY_MS = 200;
|
|
13563
|
-
var Sidebar =
|
|
13802
|
+
var Sidebar = React39.forwardRef(function Sidebar2({ className, collapsible = false, variant = "classic", onMouseEnter, onMouseLeave, style, ...props }, ref) {
|
|
13564
13803
|
const isFloating = variant === "floating";
|
|
13565
|
-
const ctx =
|
|
13804
|
+
const ctx = React39.useContext(SidebarContext);
|
|
13566
13805
|
const state = collapsible && ctx ? ctx.state : "expanded";
|
|
13567
13806
|
const peekLockCount = collapsible && ctx ? ctx.peekLockCount : 0;
|
|
13568
|
-
const [peek, setPeek] =
|
|
13569
|
-
const enterTimer =
|
|
13570
|
-
const leaveTimer =
|
|
13571
|
-
const clearTimers =
|
|
13807
|
+
const [peek, setPeek] = React39.useState(false);
|
|
13808
|
+
const enterTimer = React39.useRef(null);
|
|
13809
|
+
const leaveTimer = React39.useRef(null);
|
|
13810
|
+
const clearTimers = React39.useCallback(() => {
|
|
13572
13811
|
if (enterTimer.current != null) {
|
|
13573
13812
|
window.clearTimeout(enterTimer.current);
|
|
13574
13813
|
enterTimer.current = null;
|
|
@@ -13578,8 +13817,8 @@ var Sidebar = React38.forwardRef(function Sidebar2({ className, collapsible = fa
|
|
|
13578
13817
|
leaveTimer.current = null;
|
|
13579
13818
|
}
|
|
13580
13819
|
}, []);
|
|
13581
|
-
|
|
13582
|
-
|
|
13820
|
+
React39.useEffect(() => () => clearTimers(), [clearTimers]);
|
|
13821
|
+
React39.useEffect(() => {
|
|
13583
13822
|
if (state === "expanded") {
|
|
13584
13823
|
clearTimers();
|
|
13585
13824
|
setPeek(false);
|
|
@@ -13660,7 +13899,7 @@ var Sidebar = React38.forwardRef(function Sidebar2({ className, collapsible = fa
|
|
|
13660
13899
|
);
|
|
13661
13900
|
});
|
|
13662
13901
|
Sidebar.displayName = "Sidebar";
|
|
13663
|
-
var SidebarTrigger =
|
|
13902
|
+
var SidebarTrigger = React39.forwardRef(
|
|
13664
13903
|
function SidebarTrigger2({
|
|
13665
13904
|
className,
|
|
13666
13905
|
expandLabel = "Expand sidebar",
|
|
@@ -13668,7 +13907,7 @@ var SidebarTrigger = React38.forwardRef(
|
|
|
13668
13907
|
onClick,
|
|
13669
13908
|
...props
|
|
13670
13909
|
}, ref) {
|
|
13671
|
-
const ctx =
|
|
13910
|
+
const ctx = React39.useContext(SidebarContext);
|
|
13672
13911
|
if (!ctx) return null;
|
|
13673
13912
|
const { state, toggle } = ctx;
|
|
13674
13913
|
const label = state === "expanded" ? collapseLabel : expandLabel;
|
|
@@ -13699,14 +13938,14 @@ var SidebarTrigger = React38.forwardRef(
|
|
|
13699
13938
|
);
|
|
13700
13939
|
SidebarTrigger.displayName = "SidebarTrigger";
|
|
13701
13940
|
function useSidebarPeekLock(active) {
|
|
13702
|
-
const ctx =
|
|
13703
|
-
|
|
13941
|
+
const ctx = React39.useContext(SidebarContext);
|
|
13942
|
+
React39.useEffect(() => {
|
|
13704
13943
|
if (!active || !ctx) return;
|
|
13705
13944
|
const release = ctx.acquirePeekLock();
|
|
13706
13945
|
return release;
|
|
13707
13946
|
}, [active, ctx]);
|
|
13708
13947
|
}
|
|
13709
|
-
var SidebarPinButton =
|
|
13948
|
+
var SidebarPinButton = React39.forwardRef(
|
|
13710
13949
|
function SidebarPinButton2({
|
|
13711
13950
|
pinLabel = "Pin sidebar",
|
|
13712
13951
|
unpinLabel = "Unpin sidebar",
|
|
@@ -13714,7 +13953,7 @@ var SidebarPinButton = React38.forwardRef(
|
|
|
13714
13953
|
onClick,
|
|
13715
13954
|
...props
|
|
13716
13955
|
}, ref) {
|
|
13717
|
-
const ctx =
|
|
13956
|
+
const ctx = React39.useContext(SidebarContext);
|
|
13718
13957
|
if (!ctx || !ctx.collapsible) return null;
|
|
13719
13958
|
const { state, setState } = ctx;
|
|
13720
13959
|
const isPinned = state === "expanded";
|
|
@@ -13779,7 +14018,7 @@ function PinGlyph({
|
|
|
13779
14018
|
}
|
|
13780
14019
|
);
|
|
13781
14020
|
}
|
|
13782
|
-
var SidebarBrand =
|
|
14021
|
+
var SidebarBrand = React39.forwardRef(
|
|
13783
14022
|
function SidebarBrand2({ className, ...props }, ref) {
|
|
13784
14023
|
return /* @__PURE__ */ jsx(
|
|
13785
14024
|
"div",
|
|
@@ -13795,7 +14034,7 @@ var SidebarBrand = React38.forwardRef(
|
|
|
13795
14034
|
}
|
|
13796
14035
|
);
|
|
13797
14036
|
SidebarBrand.displayName = "SidebarBrand";
|
|
13798
|
-
var SidebarBrandText =
|
|
14037
|
+
var SidebarBrandText = React39.forwardRef(
|
|
13799
14038
|
function SidebarBrandText2({ className, ...props }, ref) {
|
|
13800
14039
|
return /* @__PURE__ */ jsx(
|
|
13801
14040
|
"span",
|
|
@@ -13820,16 +14059,16 @@ var SidebarBrandText = React38.forwardRef(
|
|
|
13820
14059
|
}
|
|
13821
14060
|
);
|
|
13822
14061
|
SidebarBrandText.displayName = "SidebarBrandText";
|
|
13823
|
-
var SidebarGroupScopeContext =
|
|
13824
|
-
var SidebarSection =
|
|
14062
|
+
var SidebarGroupScopeContext = React39.createContext(null);
|
|
14063
|
+
var SidebarSection = React39.forwardRef(
|
|
13825
14064
|
function SidebarSection2({ label, tone = "pro", className, children, ...props }, ref) {
|
|
13826
14065
|
const ariaLabel = typeof label === "string" ? label : typeof label === "number" ? String(label) : void 0;
|
|
13827
|
-
const [exclusiveId, setExclusiveIdState] =
|
|
13828
|
-
const setExclusive =
|
|
14066
|
+
const [exclusiveId, setExclusiveIdState] = React39.useState(null);
|
|
14067
|
+
const setExclusive = React39.useCallback(
|
|
13829
14068
|
(id) => setExclusiveIdState(id),
|
|
13830
14069
|
[]
|
|
13831
14070
|
);
|
|
13832
|
-
const scope =
|
|
14071
|
+
const scope = React39.useMemo(
|
|
13833
14072
|
() => ({ exclusiveId, setExclusive }),
|
|
13834
14073
|
[exclusiveId, setExclusive]
|
|
13835
14074
|
);
|
|
@@ -13882,12 +14121,12 @@ function getTextContent(node) {
|
|
|
13882
14121
|
if (node == null || typeof node === "boolean") return "";
|
|
13883
14122
|
if (typeof node === "string" || typeof node === "number") return String(node);
|
|
13884
14123
|
if (Array.isArray(node)) return node.map(getTextContent).filter(Boolean).join(" ");
|
|
13885
|
-
if (
|
|
14124
|
+
if (React39.isValidElement(node)) {
|
|
13886
14125
|
return getTextContent(node.props.children);
|
|
13887
14126
|
}
|
|
13888
14127
|
return "";
|
|
13889
14128
|
}
|
|
13890
|
-
var SidebarLink =
|
|
14129
|
+
var SidebarLink = React39.forwardRef(
|
|
13891
14130
|
function SidebarLink2({ href, icon, active = false, asChild, className, children, "aria-label": ariaLabel, ...props }, ref) {
|
|
13892
14131
|
const Comp = asChild ? Slot : "a";
|
|
13893
14132
|
const accessibleLabel = ariaLabel ?? (asChild ? void 0 : getTextContent(children) || void 0);
|
|
@@ -13958,7 +14197,7 @@ var SidebarLink = React38.forwardRef(
|
|
|
13958
14197
|
}
|
|
13959
14198
|
);
|
|
13960
14199
|
SidebarLink.displayName = "SidebarLink";
|
|
13961
|
-
var SidebarLinkLabel =
|
|
14200
|
+
var SidebarLinkLabel = React39.forwardRef(
|
|
13962
14201
|
function SidebarLinkLabel2({ className, ...props }, ref) {
|
|
13963
14202
|
return /* @__PURE__ */ jsx(
|
|
13964
14203
|
"span",
|
|
@@ -13983,7 +14222,7 @@ var SidebarLinkLabel = React38.forwardRef(
|
|
|
13983
14222
|
}
|
|
13984
14223
|
);
|
|
13985
14224
|
SidebarLinkLabel.displayName = "SidebarLinkLabel";
|
|
13986
|
-
var SidebarLinkAction =
|
|
14225
|
+
var SidebarLinkAction = React39.forwardRef(
|
|
13987
14226
|
function SidebarLinkAction2({ className, ...props }, ref) {
|
|
13988
14227
|
return /* @__PURE__ */ jsx(
|
|
13989
14228
|
"span",
|
|
@@ -14015,13 +14254,13 @@ var sidebarLinkBadgeVariants = cva(
|
|
|
14015
14254
|
defaultVariants: { tone: "default" }
|
|
14016
14255
|
}
|
|
14017
14256
|
);
|
|
14018
|
-
var SidebarLinkBadge =
|
|
14257
|
+
var SidebarLinkBadge = React39.forwardRef(
|
|
14019
14258
|
function SidebarLinkBadge2({ tone, className, ...props }, ref) {
|
|
14020
14259
|
return /* @__PURE__ */ jsx("span", { ref, className: cn(sidebarLinkBadgeVariants({ tone }), className), ...props });
|
|
14021
14260
|
}
|
|
14022
14261
|
);
|
|
14023
14262
|
SidebarLinkBadge.displayName = "SidebarLinkBadge";
|
|
14024
|
-
var SidebarLinkGroup =
|
|
14263
|
+
var SidebarLinkGroup = React39.forwardRef(
|
|
14025
14264
|
function SidebarLinkGroup2({
|
|
14026
14265
|
id: idProp,
|
|
14027
14266
|
icon,
|
|
@@ -14036,19 +14275,19 @@ var SidebarLinkGroup = React38.forwardRef(
|
|
|
14036
14275
|
children,
|
|
14037
14276
|
...props
|
|
14038
14277
|
}, ref) {
|
|
14039
|
-
const reactId =
|
|
14278
|
+
const reactId = React39.useId();
|
|
14040
14279
|
const id = idProp ?? reactId;
|
|
14041
|
-
const scope =
|
|
14042
|
-
const [uncontrolledOpen, setUncontrolledOpen] =
|
|
14280
|
+
const scope = React39.useContext(SidebarGroupScopeContext);
|
|
14281
|
+
const [uncontrolledOpen, setUncontrolledOpen] = React39.useState(defaultOpen);
|
|
14043
14282
|
const open = controlled ?? uncontrolledOpen;
|
|
14044
|
-
const setOpen =
|
|
14283
|
+
const setOpen = React39.useCallback(
|
|
14045
14284
|
(next) => {
|
|
14046
14285
|
if (controlled === void 0) setUncontrolledOpen(next);
|
|
14047
14286
|
onOpenChange?.(next);
|
|
14048
14287
|
},
|
|
14049
14288
|
[controlled, onOpenChange]
|
|
14050
14289
|
);
|
|
14051
|
-
|
|
14290
|
+
React39.useEffect(() => {
|
|
14052
14291
|
if (scope?.exclusiveId && scope.exclusiveId !== id && open) {
|
|
14053
14292
|
setOpen(false);
|
|
14054
14293
|
}
|
|
@@ -14157,7 +14396,7 @@ var SidebarLinkGroup = React38.forwardRef(
|
|
|
14157
14396
|
}
|
|
14158
14397
|
);
|
|
14159
14398
|
SidebarLinkGroup.displayName = "SidebarLinkGroup";
|
|
14160
|
-
var SidebarFooter =
|
|
14399
|
+
var SidebarFooter = React39.forwardRef(
|
|
14161
14400
|
function SidebarFooter2({ className, ...props }, ref) {
|
|
14162
14401
|
return /* @__PURE__ */ jsx(
|
|
14163
14402
|
"div",
|
|
@@ -14174,7 +14413,7 @@ var SidebarFooter = React38.forwardRef(
|
|
|
14174
14413
|
}
|
|
14175
14414
|
);
|
|
14176
14415
|
SidebarFooter.displayName = "SidebarFooter";
|
|
14177
|
-
var SidebarUser =
|
|
14416
|
+
var SidebarUser = React39.forwardRef(function SidebarUser2({ name, subtitle, avatarSrc, className, ...props }, ref) {
|
|
14178
14417
|
return /* @__PURE__ */ jsxs("div", { ref, className: cn("flex min-w-0 items-center gap-2.5", className), ...props, children: [
|
|
14179
14418
|
/* @__PURE__ */ jsx(Avatar, { size: "sm", variant: "branded", name, src: avatarSrc ?? void 0 }),
|
|
14180
14419
|
/* @__PURE__ */ jsxs(
|
|
@@ -14195,7 +14434,7 @@ var SidebarUser = React38.forwardRef(function SidebarUser2({ name, subtitle, ava
|
|
|
14195
14434
|
] });
|
|
14196
14435
|
});
|
|
14197
14436
|
SidebarUser.displayName = "SidebarUser";
|
|
14198
|
-
var SidebarBrandSwitcher =
|
|
14437
|
+
var SidebarBrandSwitcher = React39.forwardRef(
|
|
14199
14438
|
function SidebarBrandSwitcher2({
|
|
14200
14439
|
brand,
|
|
14201
14440
|
label,
|
|
@@ -14216,7 +14455,7 @@ var SidebarBrandSwitcher = React38.forwardRef(
|
|
|
14216
14455
|
rowClassName,
|
|
14217
14456
|
trailing
|
|
14218
14457
|
}, ref) {
|
|
14219
|
-
const [open, setOpen] =
|
|
14458
|
+
const [open, setOpen] = React39.useState(false);
|
|
14220
14459
|
useSidebarPeekLock(open);
|
|
14221
14460
|
const others = items.filter((p) => p.id !== current.id);
|
|
14222
14461
|
return (
|
|
@@ -14376,7 +14615,7 @@ function SidebarBrandSwitcherOtherRow({
|
|
|
14376
14615
|
isLaunching
|
|
14377
14616
|
}) {
|
|
14378
14617
|
const reachable = item.available !== false;
|
|
14379
|
-
const [launching, setLaunching] =
|
|
14618
|
+
const [launching, setLaunching] = React39.useState(false);
|
|
14380
14619
|
const externalLaunching = isLaunching?.(item) ?? false;
|
|
14381
14620
|
const busy = launching || externalLaunching;
|
|
14382
14621
|
const handleSelect = async () => {
|
|
@@ -17348,7 +17587,7 @@ var FilterChip = forwardRef(function FilterChip2({ active = false, size, count,
|
|
|
17348
17587
|
);
|
|
17349
17588
|
});
|
|
17350
17589
|
FilterChip.displayName = "FilterChip";
|
|
17351
|
-
var BulkActionBarContext =
|
|
17590
|
+
var BulkActionBarContext = React39.createContext({ tone: "surface" });
|
|
17352
17591
|
function actionClasses(tone, destructive) {
|
|
17353
17592
|
const base = cn(
|
|
17354
17593
|
"inline-flex h-8 items-center gap-1.5 rounded-btn px-3 text-[13px] font-medium",
|
|
@@ -17371,8 +17610,8 @@ function actionClasses(tone, destructive) {
|
|
|
17371
17610
|
destructive ? "text-control-destructive-fg hover:bg-control-destructive-hover-bg" : "text-control-fg hover:bg-control-hover-bg hover:text-control-hover-fg"
|
|
17372
17611
|
);
|
|
17373
17612
|
}
|
|
17374
|
-
var BulkActionBarAction =
|
|
17375
|
-
const { tone } =
|
|
17613
|
+
var BulkActionBarAction = React39.forwardRef(function BulkActionBarAction2({ asChild = false, destructive, className, type, ...props }, ref) {
|
|
17614
|
+
const { tone } = React39.use(BulkActionBarContext);
|
|
17376
17615
|
const Comp = asChild ? Slot : "button";
|
|
17377
17616
|
return /* @__PURE__ */ jsx(
|
|
17378
17617
|
Comp,
|
|
@@ -17386,7 +17625,7 @@ var BulkActionBarAction = React38.forwardRef(function BulkActionBarAction2({ asC
|
|
|
17386
17625
|
});
|
|
17387
17626
|
BulkActionBarAction.displayName = "BulkActionBarAction";
|
|
17388
17627
|
function BulkActionBarSeparator({ className }) {
|
|
17389
|
-
const { tone } =
|
|
17628
|
+
const { tone } = React39.use(BulkActionBarContext);
|
|
17390
17629
|
return /* @__PURE__ */ jsx(
|
|
17391
17630
|
"span",
|
|
17392
17631
|
{
|
|
@@ -17891,6 +18130,6 @@ var BrandScope = forwardRef(function BrandScope2({ product, children, ...props }
|
|
|
17891
18130
|
});
|
|
17892
18131
|
BrandScope.displayName = "BrandScope";
|
|
17893
18132
|
|
|
17894
|
-
export { AIReceiptPanel, Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActivityEventItem, ActivityItem, ActivityList, AgreementPaneHeading, AgreementViewer, AiDraftCard, Alert, AlertCircleIcon, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AlertTriangleIcon, AlertTriangleSolidIcon, AppHeader, AppHeaderActions, AppHeaderBreadcrumb, AppHeaderSearch, AppHeaderTitle, AreaChart, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowRightSmallIcon, ArrowUpIcon, AspectRatio, Assignee, AssureAuditBrandIcon, AssureBooksBrandIcon, AssureProBrandIcon, AssureTaxBrandIcon, AtSignIcon, AttachmentChip, AttentionItem, Avatar, BRAND_PRODUCTS, Badge, BarChartIcon, BellIcon, Blockquote, BoldIcon, BottomNav, BrandScope, BrandScopeProvider, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, BriefcaseIcon, Building2Icon, BuildingIcon, BulkActionBar, BulkActionBarAction, BulkActionBarSeparator, Button, COUNTRY_CODES, Calendar, CalendarIcon, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CategoryDivider, CategoryTag, ChannelTabs, ChatBubbleIcon, CheckCircle2Icon, CheckCircleSolidIcon, CheckIcon, Checkbox, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsUpDownIcon, CircleDotIcon, CircleIcon, ClientRailGroupHeader, ClientRailItem, ClientSelect, ClipboardCheckIcon, ClockIcon, CloseIcon, Collapsible, CollapsibleContent, CollapsibleTrigger, ComingSoon, CommandIcon, CommandPalette, ConfirmActionButton, Content16 as Content, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyButton, CopyIcon, CornerDownLeftIcon, CountryFlag, CountrySelect, CreditCardIcon, DATE_DISPLAY_PLACEHOLDER, DangerAction, Dash, DashGrid, DataItem, DataTable, DataTableBody, DataTableCell, DataTableCellDue, DataTableCellId, DataTableCellMono, DataTableCellName, DataTableCheckbox, DataTableHead, DataTableHeader, DataTablePagination, DataTableResultsCount, DataTableRow, DataTableSearch, DataTableSpacer, DataTableToolbar, DataTableView, DatePicker, DateRangePicker, DetailGrid, DetailMain, DetailSpine, DetailSpineHeader, DetailSpineSection, DetailSpineStats, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DismissibleChip, DocumentDetailActions, DocumentDetailBody, DocumentDetailHeader, DocumentDetailMetaRow, DocumentDetailPanel, DocumentDetailRequester, DocumentDetailTitle, DocumentFileCard, DocumentFileRow, DocumentIcon, DocumentList, DocumentListSection, DocumentRequestCard, DocumentRequestDetail, DocumentRequestField, DocumentRequestUpload, DocumentRow, DocumentSourceFilter, DocumentSourceTag, DocumentsWorkspaceLayout, DollarSignIcon, DonutChart, DownloadIcon, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmailMessageCard, EmptyState, EngagementCard, EngagementTimeline, EngagementTimelineStep, ExtractIcon, EyeIcon, EyeOffIcon, Eyebrow, FileChip, FileIcon, FileReturnIcon, FileTextIcon, FileTypeBadge, FileUpload, FilterChip, FilterIcon, FlagIcon, FolderClosedIcon, FolderOpenIcon, FolderPlusIcon, FolderTree, FolderUpIcon, FormError, FormSection, FormSuccess, GlobeIcon, GoogleBrandIcon, Grid, HelpCircleIcon, HistoryIcon, HomeIcon, HoverCard, HoverCardContent, HoverCardPortal, HoverCardTrigger, IconAction, IconTile, InboxIcon, InfoCircleSolidIcon, InfoIcon, Input, IntentBadge, ItalicIcon, Kanban, KanbanCard, KanbanColumn, KanbanIcon, KbdHint, KeyIcon, KeyboardShortcutsDialog, KpiCard, Label4 as Label, LandmarkIcon, LayoutDashboardIcon, LayoutGridIcon, LayoutListIcon, LightningIcon, Link2Icon, LinkAction, LinkButton, LinkIcon, ListChecksIcon, ListIcon, ListOrderedIcon, LoaderIcon, LoadingRows, LockIcon, LockKeyholeIcon, LockOpenIcon, LogOutIcon, Logo, MailIcon, Main, MapPinIcon, MasterDetailLayout, MenuIcon, MessageBubble, MessageBubbleAction, MessageBubbleTombstone, MessageCircleIcon, MessageCircleWarningIcon, MessageComposer, MetadataGrid, MicrosoftBrandIcon, MinusIcon, MissingDocumentsPanel, MoneyCell, MonitorIcon, MoonIcon, MoreHorizontalIcon, MoveIcon, MultiFilterPill, MultiSelectField, MutedSpec, NewMenu, NotificationFilter, NotificationItem, NotificationList, NotificationPanel, NotificationPanelFooter, NotificationPanelHeader, Numeric, OTPInput, PageHeader, PageHeaderSep, PageHeaderSpec, Pagination, PaletteIcon, PanelLeftCloseIcon, PanelLeftIcon, PaperclipIcon, PauseIcon, PdfPreview, PenSignIcon, PenToolIcon, PencilIcon, PhoneCountryInput, PhoneIcon, PhoneInput, PlayIcon, PlusIcon, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, PrimaryAction, PriorityIcon, ProgressBar, ProgressRing, ProposalAddOn, ProposalBillingTerms, ProposalConsentGate, ProposalCustomPage, ProposalNote, ProposalPackageCard, ProposalPaymentCapture, ProposalPricingSummary, ProposalServiceRow, ProposalSignatureBlock, ProposalSignerList, QuestionnairePanel, Questions, RadioGroup3 as RadioGroup, RadioGroupItem, RankedBars, ReceiptIcon, ReplyIcon, ResponsiveDialog, RotateCcwIcon, RouteTransition, SERVICE_TONES, SaveIcon, ScrollArea, ScrollBar, SearchIcon, SearchInput, SearchSelect, SecondaryAction, Section, SectionHead, SectionHeader, SegmentedProgress, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectRoot, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectableKpiCard, SendIcon, Separator4 as Separator, SettingsIcon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Shell, ShieldIcon, SideDrawer, Sidebar, SidebarBrand, SidebarBrandSwitcher, SidebarBrandSwitcherTile, SidebarBrandText, SidebarFooter, SidebarLink, SidebarLinkAction, SidebarLinkBadge, SidebarLinkGroup, SidebarLinkLabel, SidebarPinButton, SidebarProvider, SidebarSection, SidebarTrigger, SidebarUser, SignatureEditor, Skeleton, SkeletonCircle, SkeletonText, SlashIcon, Slider, SmartphoneIcon, SparkleIcon, SparklesIcon, Spinner, SpreadsheetPreview, StackedBarChart, StagePill, StarIcon, StarRating, Stat, StatusDot, StatusIcon, StatusPill, Stepper, StickyActionBar, StopIcon, StrikethroughIcon, SubmitButton, SuggestionPills, SuiteProgress, SunIcon, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableIcon, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagIcon, TagsCell, TeamIcon, TeamMemberSelect, Textarea, TimeLogger, TimeLoggerActions, TimeLoggerBillable, TimeLoggerContextRow, TimeLoggerEntry, TimeLoggerEntryList, TimeLoggerField, TimeLoggerFooter, TimeLoggerHeader, TimeLoggerNotes, TimeLoggerTimer, ToastProvider, ToggleGroup, ToggleGroupItem, Toolbar, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, Trash2Icon, TrashIcon, TrendingDownIcon, TrendingUpIcon, UnderlineIcon, UploadIcon, UserCircleIcon, UserIcon, UsersIcon, VisuallyHidden, WorkflowIcon, XCircleSolidIcon, XIcon, YEAR_DISPLAY_PLACEHOLDER, ZoomInIcon, ZoomOutIcon, alertVariants, applyMask, applyYearMask, attachmentChipVariants, badgeVariants, brandLabel, brandScope, buttonVariants, cardVariants, cn, colors, dateToIso, displayToIso, fileTypeBadgeVariants, fileTypeFromName, filterChipVariants, formatClock, formatCurrency, formatDuration, getFlagEmoji, iconTileVariants, inputVariants, isoToDate, isoToDisplay, isoToYear, labelVariants, parseDuration, parsePhoneForEditing, progressBarVariants, progressRingVariants, radii, reference, searchInputVariants, serviceToneLabel, serviceToneStyle, shadows, sidebarLinkBadgeVariants, spacing, spinnerVariants, starRatingVariants, statusDotVariants, suiteProgressFillVariants, surfaces, systemTokens, textareaVariants, typography, useBrandScope, useSidebarPeekLock, useSidebarState, useStopwatch, useToast, yearToIso };
|
|
18133
|
+
export { AIReceiptPanel, Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActivityEventItem, ActivityItem, ActivityList, AgreementPaneHeading, AgreementViewer, AiDraftCard, Alert, AlertCircleIcon, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AlertTriangleIcon, AlertTriangleSolidIcon, AppHeader, AppHeaderActions, AppHeaderBreadcrumb, AppHeaderSearch, AppHeaderTitle, AreaChart, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowRightSmallIcon, ArrowUpIcon, AspectRatio, Assignee, AssureAuditBrandIcon, AssureBooksBrandIcon, AssureProBrandIcon, AssureTaxBrandIcon, AtSignIcon, AttachmentChip, AttentionItem, Avatar, BRAND_PRODUCTS, Badge, BarChartIcon, BellIcon, Blockquote, BoldIcon, BottomNav, BrandScope, BrandScopeProvider, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, BriefcaseIcon, Building2Icon, BuildingIcon, BulkActionBar, BulkActionBarAction, BulkActionBarSeparator, Button, COUNTRY_CODES, Calendar, CalendarIcon, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CategoryDivider, CategoryTag, ChannelTabs, ChatBubbleIcon, CheckCircle2Icon, CheckCircleSolidIcon, CheckIcon, Checkbox, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsUpDownIcon, CircleDotIcon, CircleIcon, ClientRailGroupHeader, ClientRailItem, ClientSelect, ClipboardCheckIcon, ClockIcon, CloseIcon, Collapsible, CollapsibleContent, CollapsibleTrigger, ComingSoon, CommandIcon, CommandPalette, ConfirmActionButton, Content16 as Content, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyButton, CopyIcon, CornerDownLeftIcon, CountryFlag, CountrySelect, CreditCardIcon, DATE_DISPLAY_PLACEHOLDER, DangerAction, Dash, DashGrid, DataItem, DataTable, DataTableBody, DataTableCell, DataTableCellDue, DataTableCellId, DataTableCellMono, DataTableCellName, DataTableCheckbox, DataTableHead, DataTableHeader, DataTablePagination, DataTableResultsCount, DataTableRow, DataTableSearch, DataTableSpacer, DataTableToolbar, DataTableView, DatePicker, DateRangePicker, DetailGrid, DetailMain, DetailSpine, DetailSpineHeader, DetailSpineSection, DetailSpineStats, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DismissibleChip, DocumentChecklist, DocumentDetailActions, DocumentDetailBody, DocumentDetailHeader, DocumentDetailMetaRow, DocumentDetailPanel, DocumentDetailRequester, DocumentDetailTitle, DocumentFileCard, DocumentFileLine, DocumentFileRow, DocumentIcon, DocumentList, DocumentListSection, DocumentRequestCard, DocumentRequestDetail, DocumentRequestField, DocumentRequestUpload, DocumentRow, DocumentSourceFilter, DocumentSourceTag, DocumentsWorkspaceLayout, DollarSignIcon, DonutChart, DownloadIcon, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmailMessageCard, EmptyState, EngagementCard, EngagementTimeline, EngagementTimelineStep, ExtractIcon, EyeIcon, EyeOffIcon, Eyebrow, FileChip, FileIcon, FileReturnIcon, FileTextIcon, FileTypeBadge, FileUpload, FilterChip, FilterIcon, FlagIcon, FolderClosedIcon, FolderOpenIcon, FolderPlusIcon, FolderTree, FolderUpIcon, FormError, FormSection, FormSuccess, GlobeIcon, GoogleBrandIcon, Grid, HelpCircleIcon, HistoryIcon, HomeIcon, HoverCard, HoverCardContent, HoverCardPortal, HoverCardTrigger, IconAction, IconTile, InboxIcon, InfoCircleSolidIcon, InfoIcon, Input, IntentBadge, ItalicIcon, Kanban, KanbanCard, KanbanColumn, KanbanIcon, KbdHint, KeyIcon, KeyboardShortcutsDialog, KpiCard, Label4 as Label, LandmarkIcon, LayoutDashboardIcon, LayoutGridIcon, LayoutListIcon, LightningIcon, Link2Icon, LinkAction, LinkButton, LinkIcon, ListChecksIcon, ListIcon, ListOrderedIcon, LoaderIcon, LoadingRows, LockIcon, LockKeyholeIcon, LockOpenIcon, LogOutIcon, Logo, MailIcon, Main, MapPinIcon, MasterDetailLayout, MenuIcon, MessageBubble, MessageBubbleAction, MessageBubbleTombstone, MessageCircleIcon, MessageCircleWarningIcon, MessageComposer, MetadataGrid, MicrosoftBrandIcon, MinusIcon, MissingDocumentsPanel, MoneyCell, MonitorIcon, MoonIcon, MoreHorizontalIcon, MoveIcon, MultiFilterPill, MultiSelectField, MutedSpec, NewMenu, NotificationFilter, NotificationItem, NotificationList, NotificationPanel, NotificationPanelFooter, NotificationPanelHeader, Numeric, OTPInput, PageHeader, PageHeaderSep, PageHeaderSpec, Pagination, PaletteIcon, PanelLeftCloseIcon, PanelLeftIcon, PaperclipIcon, PauseIcon, PdfPreview, PenSignIcon, PenToolIcon, PencilIcon, PhoneCountryInput, PhoneIcon, PhoneInput, PlayIcon, PlusIcon, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, PrimaryAction, PriorityIcon, ProgressBar, ProgressRing, ProposalAddOn, ProposalBillingTerms, ProposalConsentGate, ProposalCustomPage, ProposalNote, ProposalPackageCard, ProposalPaymentCapture, ProposalPricingSummary, ProposalServiceRow, ProposalSignatureBlock, ProposalSignerList, QuestionnairePanel, Questions, RadioGroup3 as RadioGroup, RadioGroupItem, RankedBars, ReceiptIcon, ReplyIcon, ResponsiveDialog, RotateCcwIcon, RouteTransition, SERVICE_TONES, SaveIcon, ScrollArea, ScrollBar, SearchIcon, SearchInput, SearchSelect, SecondaryAction, Section, SectionHead, SectionHeader, SegmentedProgress, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectRoot, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectableKpiCard, SendIcon, Separator4 as Separator, SettingsIcon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Shell, ShieldIcon, SideDrawer, Sidebar, SidebarBrand, SidebarBrandSwitcher, SidebarBrandSwitcherTile, SidebarBrandText, SidebarFooter, SidebarLink, SidebarLinkAction, SidebarLinkBadge, SidebarLinkGroup, SidebarLinkLabel, SidebarPinButton, SidebarProvider, SidebarSection, SidebarTrigger, SidebarUser, SignatureEditor, Skeleton, SkeletonCircle, SkeletonText, SlashIcon, Slider, SmartphoneIcon, SparkleIcon, SparklesIcon, Spinner, SpreadsheetPreview, StackedBarChart, StagePill, StarIcon, StarRating, Stat, StatusDot, StatusIcon, StatusPill, Stepper, StickyActionBar, StopIcon, StrikethroughIcon, SubmitButton, SuggestionPills, SuiteProgress, SunIcon, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableIcon, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagIcon, TagsCell, TeamIcon, TeamMemberSelect, Textarea, TimeLogger, TimeLoggerActions, TimeLoggerBillable, TimeLoggerContextRow, TimeLoggerEntry, TimeLoggerEntryList, TimeLoggerField, TimeLoggerFooter, TimeLoggerHeader, TimeLoggerNotes, TimeLoggerTimer, ToastProvider, ToggleGroup, ToggleGroupItem, Toolbar, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, Trash2Icon, TrashIcon, TrendingDownIcon, TrendingUpIcon, UnderlineIcon, UploadIcon, UserCircleIcon, UserIcon, UsersIcon, VisuallyHidden, WorkflowIcon, XCircleSolidIcon, XIcon, YEAR_DISPLAY_PLACEHOLDER, ZoomInIcon, ZoomOutIcon, alertVariants, applyMask, applyYearMask, attachmentChipVariants, badgeVariants, brandLabel, brandScope, buttonVariants, cardVariants, cn, colors, dateToIso, displayToIso, fileTypeBadgeVariants, fileTypeFromName, filterChipVariants, formatClock, formatCurrency, formatDuration, getFlagEmoji, iconTileVariants, inputVariants, isoToDate, isoToDisplay, isoToYear, labelVariants, parseDuration, parsePhoneForEditing, progressBarVariants, progressRingVariants, radii, reference, searchInputVariants, serviceToneLabel, serviceToneStyle, shadows, sidebarLinkBadgeVariants, spacing, spinnerVariants, starRatingVariants, statusDotVariants, suiteProgressFillVariants, surfaces, systemTokens, textareaVariants, typography, useBrandScope, useSidebarPeekLock, useSidebarState, useStopwatch, useToast, yearToIso };
|
|
17895
18134
|
//# sourceMappingURL=index.js.map
|
|
17896
18135
|
//# sourceMappingURL=index.js.map
|