@blinkdotnew/ui 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +245 -182
- package/dist/index.mjs +195 -133
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React26, { createContext, useState, useId, useContext, useEffect, useRef, useCallback } from 'react';
|
|
2
2
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { clsx } from 'clsx';
|
|
4
4
|
import { twMerge } from 'tailwind-merge';
|
|
5
5
|
import { Slot } from '@radix-ui/react-slot';
|
|
6
6
|
import { cva } from 'class-variance-authority';
|
|
7
7
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
8
|
-
import { ChevronDown, ChevronUp, Check, Circle, X, ChevronRight, ChevronLeft, EyeOff, Eye, Search, Upload, Calendar, Plus, ArrowUp, ArrowDown, ArrowUpDown, TrendingUp, TrendingDown, ArrowRight, Loader2, LayoutDashboard, FolderOpen, Users, Settings, BarChart2, CreditCard, HelpCircle, Bell, Pencil, User, LogOut, Send, Info, XCircle, AlertTriangle, CheckCircle2, FileText, Archive, Film, FileCode, Image, File, MoreHorizontal, Download, Trash2 } from 'lucide-react';
|
|
8
|
+
import { ChevronDown, ChevronUp, Check, Circle, X, ChevronRight, ChevronLeft, Menu, EyeOff, Eye, Search, Upload, Calendar, Plus, ArrowUp, ArrowDown, ArrowUpDown, TrendingUp, TrendingDown, ArrowRight, Loader2, LayoutDashboard, FolderOpen, Users, Settings, BarChart2, CreditCard, HelpCircle, Bell, Pencil, User, LogOut, Send, Info, XCircle, AlertTriangle, CheckCircle2, FileText, Archive, Film, FileCode, Image, File, MoreHorizontal, Download, Trash2 } from 'lucide-react';
|
|
9
9
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
10
10
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
11
11
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
@@ -91,14 +91,14 @@ var buttonVariants = cva(
|
|
|
91
91
|
defaultVariants: { variant: "default", size: "default" }
|
|
92
92
|
}
|
|
93
93
|
);
|
|
94
|
-
var Button =
|
|
94
|
+
var Button = React26.forwardRef(
|
|
95
95
|
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
96
96
|
const Comp = asChild ? Slot : "button";
|
|
97
97
|
return /* @__PURE__ */ jsx(Comp, { className: cn(buttonVariants({ variant, size }), className), ref, ...props });
|
|
98
98
|
}
|
|
99
99
|
);
|
|
100
100
|
Button.displayName = "Button";
|
|
101
|
-
var Input =
|
|
101
|
+
var Input = React26.forwardRef(
|
|
102
102
|
({ className, type, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
103
103
|
"input",
|
|
104
104
|
{
|
|
@@ -117,7 +117,7 @@ var Input = React14.forwardRef(
|
|
|
117
117
|
)
|
|
118
118
|
);
|
|
119
119
|
Input.displayName = "Input";
|
|
120
|
-
var Textarea =
|
|
120
|
+
var Textarea = React26.forwardRef(
|
|
121
121
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
122
122
|
"textarea",
|
|
123
123
|
{
|
|
@@ -138,7 +138,7 @@ Textarea.displayName = "Textarea";
|
|
|
138
138
|
var Select = SelectPrimitive.Root;
|
|
139
139
|
var SelectGroup = SelectPrimitive.Group;
|
|
140
140
|
var SelectValue = SelectPrimitive.Value;
|
|
141
|
-
var SelectTrigger =
|
|
141
|
+
var SelectTrigger = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
142
142
|
SelectPrimitive.Trigger,
|
|
143
143
|
{
|
|
144
144
|
ref,
|
|
@@ -158,7 +158,7 @@ var SelectTrigger = React14.forwardRef(({ className, children, ...props }, ref)
|
|
|
158
158
|
}
|
|
159
159
|
));
|
|
160
160
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
161
|
-
var SelectScrollUpButton =
|
|
161
|
+
var SelectScrollUpButton = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
162
162
|
SelectPrimitive.ScrollUpButton,
|
|
163
163
|
{
|
|
164
164
|
ref,
|
|
@@ -168,7 +168,7 @@ var SelectScrollUpButton = React14.forwardRef(({ className, ...props }, ref) =>
|
|
|
168
168
|
}
|
|
169
169
|
));
|
|
170
170
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
171
|
-
var SelectScrollDownButton =
|
|
171
|
+
var SelectScrollDownButton = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
172
172
|
SelectPrimitive.ScrollDownButton,
|
|
173
173
|
{
|
|
174
174
|
ref,
|
|
@@ -178,7 +178,7 @@ var SelectScrollDownButton = React14.forwardRef(({ className, ...props }, ref) =
|
|
|
178
178
|
}
|
|
179
179
|
));
|
|
180
180
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
181
|
-
var SelectContent =
|
|
181
|
+
var SelectContent = React26.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
|
|
182
182
|
SelectPrimitive.Content,
|
|
183
183
|
{
|
|
184
184
|
ref,
|
|
@@ -205,7 +205,7 @@ var SelectContent = React14.forwardRef(({ className, children, position = "poppe
|
|
|
205
205
|
}
|
|
206
206
|
) }));
|
|
207
207
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
208
|
-
var SelectLabel =
|
|
208
|
+
var SelectLabel = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
209
209
|
SelectPrimitive.Label,
|
|
210
210
|
{
|
|
211
211
|
ref,
|
|
@@ -214,7 +214,7 @@ var SelectLabel = React14.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
214
214
|
}
|
|
215
215
|
));
|
|
216
216
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
217
|
-
var SelectItem =
|
|
217
|
+
var SelectItem = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
218
218
|
SelectPrimitive.Item,
|
|
219
219
|
{
|
|
220
220
|
ref,
|
|
@@ -232,7 +232,7 @@ var SelectItem = React14.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
232
232
|
}
|
|
233
233
|
));
|
|
234
234
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
235
|
-
var SelectSeparator =
|
|
235
|
+
var SelectSeparator = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
236
236
|
SelectPrimitive.Separator,
|
|
237
237
|
{
|
|
238
238
|
ref,
|
|
@@ -241,7 +241,7 @@ var SelectSeparator = React14.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
241
241
|
}
|
|
242
242
|
));
|
|
243
243
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
244
|
-
var Checkbox =
|
|
244
|
+
var Checkbox = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
245
245
|
CheckboxPrimitive.Root,
|
|
246
246
|
{
|
|
247
247
|
ref,
|
|
@@ -257,9 +257,9 @@ var Checkbox = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
257
257
|
}
|
|
258
258
|
));
|
|
259
259
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
260
|
-
var RadioGroup =
|
|
260
|
+
var RadioGroup = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(RadioGroupPrimitive.Root, { className: cn("grid gap-2", className), ref, ...props }));
|
|
261
261
|
RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
|
|
262
|
-
var RadioGroupItem =
|
|
262
|
+
var RadioGroupItem = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
263
263
|
RadioGroupPrimitive.Item,
|
|
264
264
|
{
|
|
265
265
|
ref,
|
|
@@ -274,7 +274,7 @@ var RadioGroupItem = React14.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
274
274
|
}
|
|
275
275
|
));
|
|
276
276
|
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
277
|
-
var Switch =
|
|
277
|
+
var Switch = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
278
278
|
SwitchPrimitive.Root,
|
|
279
279
|
{
|
|
280
280
|
ref,
|
|
@@ -300,7 +300,7 @@ var Switch = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
300
300
|
}
|
|
301
301
|
));
|
|
302
302
|
Switch.displayName = SwitchPrimitive.Root.displayName;
|
|
303
|
-
var Slider =
|
|
303
|
+
var Slider = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
304
304
|
SliderPrimitive.Root,
|
|
305
305
|
{
|
|
306
306
|
ref,
|
|
@@ -317,7 +317,7 @@ var Dialog = DialogPrimitive.Root;
|
|
|
317
317
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
318
318
|
var DialogPortal = DialogPrimitive.Portal;
|
|
319
319
|
var DialogClose = DialogPrimitive.Close;
|
|
320
|
-
var DialogOverlay =
|
|
320
|
+
var DialogOverlay = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
321
321
|
DialogPrimitive.Overlay,
|
|
322
322
|
{
|
|
323
323
|
ref,
|
|
@@ -331,7 +331,7 @@ var DialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
331
331
|
}
|
|
332
332
|
));
|
|
333
333
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
334
|
-
var DialogContent =
|
|
334
|
+
var DialogContent = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
|
|
335
335
|
/* @__PURE__ */ jsx(DialogOverlay, {}),
|
|
336
336
|
/* @__PURE__ */ jsxs(
|
|
337
337
|
DialogPrimitive.Content,
|
|
@@ -361,7 +361,7 @@ var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { cla
|
|
|
361
361
|
DialogHeader.displayName = "DialogHeader";
|
|
362
362
|
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
363
363
|
DialogFooter.displayName = "DialogFooter";
|
|
364
|
-
var DialogTitle =
|
|
364
|
+
var DialogTitle = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
365
365
|
DialogPrimitive.Title,
|
|
366
366
|
{
|
|
367
367
|
ref,
|
|
@@ -370,7 +370,7 @@ var DialogTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
370
370
|
}
|
|
371
371
|
));
|
|
372
372
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
373
|
-
var DialogDescription =
|
|
373
|
+
var DialogDescription = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
374
374
|
DialogPrimitive.Description,
|
|
375
375
|
{
|
|
376
376
|
ref,
|
|
@@ -383,7 +383,7 @@ var Sheet = DialogPrimitive.Root;
|
|
|
383
383
|
var SheetTrigger = DialogPrimitive.Trigger;
|
|
384
384
|
var SheetClose = DialogPrimitive.Close;
|
|
385
385
|
var SheetPortal = DialogPrimitive.Portal;
|
|
386
|
-
var SheetOverlay =
|
|
386
|
+
var SheetOverlay = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
387
387
|
DialogPrimitive.Overlay,
|
|
388
388
|
{
|
|
389
389
|
ref,
|
|
@@ -411,7 +411,7 @@ var sheetVariants = cva(
|
|
|
411
411
|
defaultVariants: { side: "right" }
|
|
412
412
|
}
|
|
413
413
|
);
|
|
414
|
-
var SheetContent =
|
|
414
|
+
var SheetContent = React26.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
|
|
415
415
|
/* @__PURE__ */ jsx(SheetOverlay, {}),
|
|
416
416
|
/* @__PURE__ */ jsxs(DialogPrimitive.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children: [
|
|
417
417
|
/* @__PURE__ */ jsxs(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-[hsl(var(--ring))]", children: [
|
|
@@ -424,14 +424,14 @@ var SheetContent = React14.forwardRef(({ side = "right", className, children, ..
|
|
|
424
424
|
SheetContent.displayName = DialogPrimitive.Content.displayName;
|
|
425
425
|
var SheetHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
426
426
|
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
427
|
-
var SheetTitle =
|
|
427
|
+
var SheetTitle = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Title, { ref, className: cn("text-lg font-semibold", className), ...props }));
|
|
428
428
|
SheetTitle.displayName = DialogPrimitive.Title.displayName;
|
|
429
|
-
var SheetDescription =
|
|
429
|
+
var SheetDescription = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Description, { ref, className: cn("text-sm text-[hsl(var(--muted-foreground))]", className), ...props }));
|
|
430
430
|
SheetDescription.displayName = DialogPrimitive.Description.displayName;
|
|
431
431
|
var Popover = PopoverPrimitive.Root;
|
|
432
432
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
433
433
|
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
434
|
-
var PopoverContent =
|
|
434
|
+
var PopoverContent = React26.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
435
435
|
PopoverPrimitive.Content,
|
|
436
436
|
{
|
|
437
437
|
ref,
|
|
@@ -451,7 +451,7 @@ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
|
451
451
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
452
452
|
var Tooltip = TooltipPrimitive.Root;
|
|
453
453
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
454
|
-
var TooltipContent =
|
|
454
|
+
var TooltipContent = React26.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
455
455
|
TooltipPrimitive.Content,
|
|
456
456
|
{
|
|
457
457
|
ref,
|
|
@@ -483,30 +483,30 @@ var itemStyle = cn(
|
|
|
483
483
|
"focus:bg-[hsl(var(--accent))] focus:text-[hsl(var(--accent-foreground))]",
|
|
484
484
|
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
|
|
485
485
|
);
|
|
486
|
-
var DropdownMenuContent =
|
|
486
|
+
var DropdownMenuContent = React26.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.Content, { ref, sideOffset, className: cn(contentStyle, className), ...props }) }));
|
|
487
487
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
488
|
-
var DropdownMenuItem =
|
|
488
|
+
var DropdownMenuItem = React26.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Item, { ref, className: cn(itemStyle, inset && "pl-8", className), ...props }));
|
|
489
489
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
490
|
-
var DropdownMenuCheckboxItem =
|
|
490
|
+
var DropdownMenuCheckboxItem = React26.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(DropdownMenuPrimitive.CheckboxItem, { ref, className: cn(itemStyle, "pl-8", className), checked, ...props, children: [
|
|
491
491
|
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) }) }),
|
|
492
492
|
children
|
|
493
493
|
] }));
|
|
494
494
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
495
|
-
var DropdownMenuRadioItem =
|
|
495
|
+
var DropdownMenuRadioItem = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DropdownMenuPrimitive.RadioItem, { ref, className: cn(itemStyle, "pl-8", className), ...props, children: [
|
|
496
496
|
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
497
497
|
children
|
|
498
498
|
] }));
|
|
499
499
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
500
|
-
var DropdownMenuLabel =
|
|
500
|
+
var DropdownMenuLabel = React26.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Label, { ref, className: cn("px-2 py-1.5 text-xs font-semibold text-[hsl(var(--muted-foreground))]", inset && "pl-8", className), ...props }));
|
|
501
501
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
502
|
-
var DropdownMenuSeparator =
|
|
502
|
+
var DropdownMenuSeparator = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-[hsl(var(--muted))]", className), ...props }));
|
|
503
503
|
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
504
|
-
var DropdownMenuSubTrigger =
|
|
504
|
+
var DropdownMenuSubTrigger = React26.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(DropdownMenuPrimitive.SubTrigger, { ref, className: cn(itemStyle, inset && "pl-8", "data-[state=open]:bg-[hsl(var(--accent))]", className), ...props, children: [
|
|
505
505
|
children,
|
|
506
506
|
/* @__PURE__ */ jsx(ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
507
507
|
] }));
|
|
508
508
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
509
|
-
var DropdownMenuSubContent =
|
|
509
|
+
var DropdownMenuSubContent = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.SubContent, { ref, className: cn(contentStyle, className), ...props }));
|
|
510
510
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
511
511
|
var DropdownMenuShortcut = ({ className, ...props }) => /* @__PURE__ */ jsx("span", { className: cn("ml-auto text-xs tracking-widest opacity-60", className), ...props });
|
|
512
512
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
@@ -518,33 +518,33 @@ var ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
|
518
518
|
var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
519
519
|
var contentStyle2 = "z-50 min-w-[8rem] overflow-hidden rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--popover))] p-1 text-[hsl(var(--popover-foreground))] shadow-md animate-in fade-in-80";
|
|
520
520
|
var itemStyle2 = "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-[hsl(var(--accent))] focus:text-[hsl(var(--accent-foreground))] data-[disabled]:pointer-events-none data-[disabled]:opacity-50";
|
|
521
|
-
var ContextMenuContent =
|
|
521
|
+
var ContextMenuContent = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(ContextMenuPrimitive.Content, { ref, className: cn(contentStyle2, className), ...props }) }));
|
|
522
522
|
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
523
|
-
var ContextMenuItem =
|
|
523
|
+
var ContextMenuItem = React26.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(ContextMenuPrimitive.Item, { ref, className: cn(itemStyle2, inset && "pl-8", className), ...props }));
|
|
524
524
|
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
525
|
-
var ContextMenuCheckboxItem =
|
|
525
|
+
var ContextMenuCheckboxItem = React26.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(ContextMenuPrimitive.CheckboxItem, { ref, className: cn(itemStyle2, "pl-8", className), checked, ...props, children: [
|
|
526
526
|
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) }) }),
|
|
527
527
|
children
|
|
528
528
|
] }));
|
|
529
529
|
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
530
|
-
var ContextMenuRadioItem =
|
|
530
|
+
var ContextMenuRadioItem = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(ContextMenuPrimitive.RadioItem, { ref, className: cn(itemStyle2, "pl-8", className), ...props, children: [
|
|
531
531
|
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
532
532
|
children
|
|
533
533
|
] }));
|
|
534
534
|
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
535
|
-
var ContextMenuLabel =
|
|
535
|
+
var ContextMenuLabel = React26.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(ContextMenuPrimitive.Label, { ref, className: cn("px-2 py-1.5 text-xs font-semibold text-[hsl(var(--muted-foreground))]", inset && "pl-8", className), ...props }));
|
|
536
536
|
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
537
|
-
var ContextMenuSeparator =
|
|
537
|
+
var ContextMenuSeparator = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ContextMenuPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-[hsl(var(--muted))]", className), ...props }));
|
|
538
538
|
ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
|
|
539
|
-
var ContextMenuSubTrigger =
|
|
539
|
+
var ContextMenuSubTrigger = React26.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(ContextMenuPrimitive.SubTrigger, { ref, className: cn(itemStyle2, inset && "pl-8", className), ...props, children: [
|
|
540
540
|
children,
|
|
541
541
|
/* @__PURE__ */ jsx(ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
542
542
|
] }));
|
|
543
543
|
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
544
|
-
var ContextMenuSubContent =
|
|
544
|
+
var ContextMenuSubContent = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ContextMenuPrimitive.SubContent, { ref, className: cn(contentStyle2, className), ...props }));
|
|
545
545
|
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
546
546
|
var ContextMenuShortcut = ({ className, ...props }) => /* @__PURE__ */ jsx("span", { className: cn("ml-auto text-xs tracking-widest opacity-60", className), ...props });
|
|
547
|
-
var Card =
|
|
547
|
+
var Card = React26.forwardRef(
|
|
548
548
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
549
549
|
"div",
|
|
550
550
|
{
|
|
@@ -555,23 +555,23 @@ var Card = React14.forwardRef(
|
|
|
555
555
|
)
|
|
556
556
|
);
|
|
557
557
|
Card.displayName = "Card";
|
|
558
|
-
var CardHeader =
|
|
558
|
+
var CardHeader = React26.forwardRef(
|
|
559
559
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })
|
|
560
560
|
);
|
|
561
561
|
CardHeader.displayName = "CardHeader";
|
|
562
|
-
var CardTitle =
|
|
562
|
+
var CardTitle = React26.forwardRef(
|
|
563
563
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("font-semibold leading-none tracking-tight", className), ...props })
|
|
564
564
|
);
|
|
565
565
|
CardTitle.displayName = "CardTitle";
|
|
566
|
-
var CardDescription =
|
|
566
|
+
var CardDescription = React26.forwardRef(
|
|
567
567
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props })
|
|
568
568
|
);
|
|
569
569
|
CardDescription.displayName = "CardDescription";
|
|
570
|
-
var CardContent =
|
|
570
|
+
var CardContent = React26.forwardRef(
|
|
571
571
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("p-6 pt-0", className), ...props })
|
|
572
572
|
);
|
|
573
573
|
CardContent.displayName = "CardContent";
|
|
574
|
-
var CardFooter =
|
|
574
|
+
var CardFooter = React26.forwardRef(
|
|
575
575
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center p-6 pt-0", className), ...props })
|
|
576
576
|
);
|
|
577
577
|
CardFooter.displayName = "CardFooter";
|
|
@@ -592,7 +592,7 @@ var badgeVariants = cva(
|
|
|
592
592
|
function Badge({ className, variant, ...props }) {
|
|
593
593
|
return /* @__PURE__ */ jsx("div", { className: cn(badgeVariants({ variant }), className), ...props });
|
|
594
594
|
}
|
|
595
|
-
var Avatar =
|
|
595
|
+
var Avatar = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
596
596
|
AvatarPrimitive.Root,
|
|
597
597
|
{
|
|
598
598
|
ref,
|
|
@@ -601,9 +601,9 @@ var Avatar = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
601
601
|
}
|
|
602
602
|
));
|
|
603
603
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
604
|
-
var AvatarImage =
|
|
604
|
+
var AvatarImage = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AvatarPrimitive.Image, { ref, className: cn("aspect-square h-full w-full object-cover", className), ...props }));
|
|
605
605
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
606
|
-
var AvatarFallback =
|
|
606
|
+
var AvatarFallback = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
607
607
|
AvatarPrimitive.Fallback,
|
|
608
608
|
{
|
|
609
609
|
ref,
|
|
@@ -612,7 +612,7 @@ var AvatarFallback = React14.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
612
612
|
}
|
|
613
613
|
));
|
|
614
614
|
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
615
|
-
var Separator4 =
|
|
615
|
+
var Separator4 = React26.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
616
616
|
SeparatorPrimitive.Root,
|
|
617
617
|
{
|
|
618
618
|
ref,
|
|
@@ -636,7 +636,7 @@ function Skeleton({ className, ...props }) {
|
|
|
636
636
|
}
|
|
637
637
|
);
|
|
638
638
|
}
|
|
639
|
-
var Progress =
|
|
639
|
+
var Progress = React26.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
640
640
|
ProgressPrimitive.Root,
|
|
641
641
|
{
|
|
642
642
|
ref,
|
|
@@ -653,7 +653,7 @@ var Progress = React14.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
653
653
|
));
|
|
654
654
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
655
655
|
var Tabs = TabsPrimitive.Root;
|
|
656
|
-
var TabsList =
|
|
656
|
+
var TabsList = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
657
657
|
TabsPrimitive.List,
|
|
658
658
|
{
|
|
659
659
|
ref,
|
|
@@ -665,7 +665,7 @@ var TabsList = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
665
665
|
}
|
|
666
666
|
));
|
|
667
667
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
668
|
-
var TabsTrigger =
|
|
668
|
+
var TabsTrigger = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
669
669
|
TabsPrimitive.Trigger,
|
|
670
670
|
{
|
|
671
671
|
ref,
|
|
@@ -680,7 +680,7 @@ var TabsTrigger = React14.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
680
680
|
}
|
|
681
681
|
));
|
|
682
682
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
683
|
-
var TabsContent =
|
|
683
|
+
var TabsContent = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
684
684
|
TabsPrimitive.Content,
|
|
685
685
|
{
|
|
686
686
|
ref,
|
|
@@ -713,7 +713,7 @@ var justifyMap = {
|
|
|
713
713
|
around: "justify-around",
|
|
714
714
|
evenly: "justify-evenly"
|
|
715
715
|
};
|
|
716
|
-
var Stack =
|
|
716
|
+
var Stack = React26.forwardRef(
|
|
717
717
|
({ className, gap, direction = "col", align, justify, wrap, style, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
718
718
|
"div",
|
|
719
719
|
{
|
|
@@ -732,11 +732,11 @@ var Stack = React14.forwardRef(
|
|
|
732
732
|
)
|
|
733
733
|
);
|
|
734
734
|
Stack.displayName = "Stack";
|
|
735
|
-
var HStack =
|
|
735
|
+
var HStack = React26.forwardRef(
|
|
736
736
|
(props, ref) => /* @__PURE__ */ jsx(Stack, { ref, direction: "row", ...props })
|
|
737
737
|
);
|
|
738
738
|
HStack.displayName = "HStack";
|
|
739
|
-
var VStack =
|
|
739
|
+
var VStack = React26.forwardRef(
|
|
740
740
|
(props, ref) => /* @__PURE__ */ jsx(Stack, { ref, direction: "col", ...props })
|
|
741
741
|
);
|
|
742
742
|
VStack.displayName = "VStack";
|
|
@@ -747,7 +747,7 @@ var sizeMap = {
|
|
|
747
747
|
xl: "max-w-screen-xl",
|
|
748
748
|
full: "max-w-full"
|
|
749
749
|
};
|
|
750
|
-
var Container =
|
|
750
|
+
var Container = React26.forwardRef(
|
|
751
751
|
({ className, size = "lg", noPadding = false, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
752
752
|
"div",
|
|
753
753
|
{
|
|
@@ -763,7 +763,7 @@ var Container = React14.forwardRef(
|
|
|
763
763
|
)
|
|
764
764
|
);
|
|
765
765
|
Container.displayName = "Container";
|
|
766
|
-
var Page =
|
|
766
|
+
var Page = React26.forwardRef(
|
|
767
767
|
({ className, maxWidth, style, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
768
768
|
"div",
|
|
769
769
|
{
|
|
@@ -775,7 +775,7 @@ var Page = React14.forwardRef(
|
|
|
775
775
|
)
|
|
776
776
|
);
|
|
777
777
|
Page.displayName = "Page";
|
|
778
|
-
var PageHeader =
|
|
778
|
+
var PageHeader = React26.forwardRef(
|
|
779
779
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
780
780
|
"div",
|
|
781
781
|
{
|
|
@@ -786,7 +786,7 @@ var PageHeader = React14.forwardRef(
|
|
|
786
786
|
)
|
|
787
787
|
);
|
|
788
788
|
PageHeader.displayName = "PageHeader";
|
|
789
|
-
var PageTitle =
|
|
789
|
+
var PageTitle = React26.forwardRef(
|
|
790
790
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
791
791
|
"h1",
|
|
792
792
|
{
|
|
@@ -797,28 +797,28 @@ var PageTitle = React14.forwardRef(
|
|
|
797
797
|
)
|
|
798
798
|
);
|
|
799
799
|
PageTitle.displayName = "PageTitle";
|
|
800
|
-
var PageDescription =
|
|
800
|
+
var PageDescription = React26.forwardRef(
|
|
801
801
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("p", { ref, className: cn("text-sm text-[hsl(var(--muted-foreground))] mt-1", className), ...props })
|
|
802
802
|
);
|
|
803
803
|
PageDescription.displayName = "PageDescription";
|
|
804
|
-
var PageActions =
|
|
804
|
+
var PageActions = React26.forwardRef(
|
|
805
805
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center gap-2 shrink-0", className), ...props })
|
|
806
806
|
);
|
|
807
807
|
PageActions.displayName = "PageActions";
|
|
808
|
-
var PageBody =
|
|
808
|
+
var PageBody = React26.forwardRef(
|
|
809
809
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex-1 p-6", className), ...props })
|
|
810
810
|
);
|
|
811
811
|
PageBody.displayName = "PageBody";
|
|
812
|
-
var SidebarCtx =
|
|
813
|
-
var useSidebarCtx = () =>
|
|
812
|
+
var SidebarCtx = React26.createContext({ collapsed: false });
|
|
813
|
+
var useSidebarCtx = () => React26.useContext(SidebarCtx);
|
|
814
814
|
var makeSlot = (name, cls) => {
|
|
815
|
-
const C =
|
|
815
|
+
const C = React26.forwardRef(
|
|
816
816
|
({ className, ...p }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn(cls, className), ...p })
|
|
817
817
|
);
|
|
818
818
|
C.displayName = name;
|
|
819
819
|
return C;
|
|
820
820
|
};
|
|
821
|
-
var Sidebar =
|
|
821
|
+
var Sidebar = React26.forwardRef(
|
|
822
822
|
({ className, collapsed = false, onCollapse, width = "240px", style, children, ...props }, ref) => /* @__PURE__ */ jsx(SidebarCtx.Provider, { value: { collapsed }, children: /* @__PURE__ */ jsxs(
|
|
823
823
|
"div",
|
|
824
824
|
{
|
|
@@ -846,7 +846,7 @@ var SidebarContent = makeSlot("SidebarContent", "flex-1 overflow-y-auto py-2");
|
|
|
846
846
|
var SidebarFooter = makeSlot("SidebarFooter", "px-3 py-3 border-t border-[hsl(var(--border))] shrink-0");
|
|
847
847
|
var SidebarGroup = makeSlot("SidebarGroup", "mb-2");
|
|
848
848
|
var SidebarSeparator = makeSlot("SidebarSeparator", "h-px bg-[hsl(var(--border))] mx-3 my-2");
|
|
849
|
-
var SidebarGroupLabel =
|
|
849
|
+
var SidebarGroupLabel = React26.forwardRef(
|
|
850
850
|
({ className, ...props }, ref) => {
|
|
851
851
|
const { collapsed } = useSidebarCtx();
|
|
852
852
|
return /* @__PURE__ */ jsx(
|
|
@@ -860,7 +860,7 @@ var SidebarGroupLabel = React14.forwardRef(
|
|
|
860
860
|
}
|
|
861
861
|
);
|
|
862
862
|
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
863
|
-
var SidebarItem =
|
|
863
|
+
var SidebarItem = React26.forwardRef(
|
|
864
864
|
({ className, icon, label, active, href, badge, onClick, ...props }, ref) => {
|
|
865
865
|
const { collapsed } = useSidebarCtx();
|
|
866
866
|
const cls = cn(
|
|
@@ -880,7 +880,7 @@ var SidebarItem = React14.forwardRef(
|
|
|
880
880
|
}
|
|
881
881
|
);
|
|
882
882
|
SidebarItem.displayName = "SidebarItem";
|
|
883
|
-
var Navbar =
|
|
883
|
+
var Navbar = React26.forwardRef(
|
|
884
884
|
({ className, sticky = false, border = true, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
885
885
|
"nav",
|
|
886
886
|
{
|
|
@@ -896,7 +896,7 @@ var Navbar = React14.forwardRef(
|
|
|
896
896
|
)
|
|
897
897
|
);
|
|
898
898
|
Navbar.displayName = "Navbar";
|
|
899
|
-
var NavbarBrand =
|
|
899
|
+
var NavbarBrand = React26.forwardRef(
|
|
900
900
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center gap-2 px-4 shrink-0", className), ...props })
|
|
901
901
|
);
|
|
902
902
|
NavbarBrand.displayName = "NavbarBrand";
|
|
@@ -905,7 +905,7 @@ var alignMap2 = {
|
|
|
905
905
|
center: "justify-center flex-1",
|
|
906
906
|
end: "justify-end ml-auto"
|
|
907
907
|
};
|
|
908
|
-
var NavbarContent =
|
|
908
|
+
var NavbarContent = React26.forwardRef(
|
|
909
909
|
({ className, align = "start", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
910
910
|
"div",
|
|
911
911
|
{
|
|
@@ -916,44 +916,106 @@ var NavbarContent = React14.forwardRef(
|
|
|
916
916
|
)
|
|
917
917
|
);
|
|
918
918
|
NavbarContent.displayName = "NavbarContent";
|
|
919
|
-
var NavbarItem =
|
|
919
|
+
var NavbarItem = React26.forwardRef(
|
|
920
920
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center", className), ...props })
|
|
921
921
|
);
|
|
922
922
|
NavbarItem.displayName = "NavbarItem";
|
|
923
|
-
var AppShellCtx =
|
|
923
|
+
var AppShellCtx = React26.createContext({
|
|
924
924
|
collapsed: false,
|
|
925
925
|
setCollapsed: () => {
|
|
926
|
+
},
|
|
927
|
+
mobileOpen: false,
|
|
928
|
+
setMobileOpen: () => {
|
|
926
929
|
}
|
|
927
930
|
});
|
|
928
|
-
var useAppShell = () =>
|
|
929
|
-
var AppShell =
|
|
931
|
+
var useAppShell = () => React26.useContext(AppShellCtx);
|
|
932
|
+
var AppShell = React26.forwardRef(
|
|
930
933
|
({ className, defaultCollapsed = false, children, ...props }, ref) => {
|
|
931
|
-
const [collapsed, setCollapsed] =
|
|
932
|
-
|
|
934
|
+
const [collapsed, setCollapsed] = React26.useState(defaultCollapsed);
|
|
935
|
+
const [mobileOpen, setMobileOpen] = React26.useState(false);
|
|
936
|
+
React26.useEffect(() => {
|
|
937
|
+
const handleClick = (e) => {
|
|
938
|
+
const target = e.target;
|
|
939
|
+
if (target.closest("a[href]") || target.closest("[data-mobile-close]")) {
|
|
940
|
+
setMobileOpen(false);
|
|
941
|
+
}
|
|
942
|
+
};
|
|
943
|
+
document.addEventListener("click", handleClick);
|
|
944
|
+
return () => document.removeEventListener("click", handleClick);
|
|
945
|
+
}, []);
|
|
946
|
+
return /* @__PURE__ */ jsx(AppShellCtx.Provider, { value: { collapsed, setCollapsed, mobileOpen, setMobileOpen }, children: /* @__PURE__ */ jsxs(
|
|
933
947
|
"div",
|
|
934
948
|
{
|
|
935
949
|
ref,
|
|
936
|
-
className: cn("flex h-screen w-full overflow-hidden bg-
|
|
950
|
+
className: cn("flex h-screen w-full overflow-hidden bg-background", className),
|
|
937
951
|
...props,
|
|
938
|
-
children
|
|
952
|
+
children: [
|
|
953
|
+
mobileOpen && /* @__PURE__ */ jsx(
|
|
954
|
+
"div",
|
|
955
|
+
{
|
|
956
|
+
className: "fixed inset-0 z-40 bg-black/50 md:hidden",
|
|
957
|
+
onClick: () => setMobileOpen(false)
|
|
958
|
+
}
|
|
959
|
+
),
|
|
960
|
+
children
|
|
961
|
+
]
|
|
939
962
|
}
|
|
940
963
|
) });
|
|
941
964
|
}
|
|
942
965
|
);
|
|
943
966
|
AppShell.displayName = "AppShell";
|
|
944
|
-
var AppShellSidebar =
|
|
945
|
-
({ className, ...props }, ref) =>
|
|
967
|
+
var AppShellSidebar = React26.forwardRef(
|
|
968
|
+
({ className, ...props }, ref) => {
|
|
969
|
+
const { mobileOpen } = useAppShell();
|
|
970
|
+
return /* @__PURE__ */ jsx(
|
|
971
|
+
"div",
|
|
972
|
+
{
|
|
973
|
+
ref,
|
|
974
|
+
className: cn(
|
|
975
|
+
// Desktop: always visible
|
|
976
|
+
"shrink-0 h-full",
|
|
977
|
+
// Mobile: hidden by default, slide in as fixed overlay when open
|
|
978
|
+
"fixed inset-y-0 left-0 z-50 md:relative md:translate-x-0 transition-transform duration-200",
|
|
979
|
+
mobileOpen ? "translate-x-0" : "-translate-x-full md:translate-x-0",
|
|
980
|
+
className
|
|
981
|
+
),
|
|
982
|
+
...props
|
|
983
|
+
}
|
|
984
|
+
);
|
|
985
|
+
}
|
|
946
986
|
);
|
|
947
987
|
AppShellSidebar.displayName = "AppShellSidebar";
|
|
948
|
-
var AppShellMain =
|
|
988
|
+
var AppShellMain = React26.forwardRef(
|
|
949
989
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex-1 min-w-0 flex flex-col overflow-auto", className), ...props })
|
|
950
990
|
);
|
|
951
991
|
AppShellMain.displayName = "AppShellMain";
|
|
952
|
-
var
|
|
992
|
+
var MobileSidebarTrigger = React26.forwardRef(
|
|
993
|
+
({ className, ...props }, ref) => {
|
|
994
|
+
const { mobileOpen, setMobileOpen } = useAppShell();
|
|
995
|
+
return /* @__PURE__ */ jsx(
|
|
996
|
+
"button",
|
|
997
|
+
{
|
|
998
|
+
ref,
|
|
999
|
+
onClick: () => setMobileOpen(!mobileOpen),
|
|
1000
|
+
"aria-label": mobileOpen ? "Close menu" : "Open menu",
|
|
1001
|
+
className: cn(
|
|
1002
|
+
"md:hidden inline-flex items-center justify-center rounded-md p-2",
|
|
1003
|
+
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
1004
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
1005
|
+
className
|
|
1006
|
+
),
|
|
1007
|
+
...props,
|
|
1008
|
+
children: mobileOpen ? /* @__PURE__ */ jsx(X, { className: "h-5 w-5" }) : /* @__PURE__ */ jsx(Menu, { className: "h-5 w-5" })
|
|
1009
|
+
}
|
|
1010
|
+
);
|
|
1011
|
+
}
|
|
1012
|
+
);
|
|
1013
|
+
MobileSidebarTrigger.displayName = "MobileSidebarTrigger";
|
|
1014
|
+
var SplitPage = React26.forwardRef(
|
|
953
1015
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex h-full w-full overflow-hidden", className), ...props })
|
|
954
1016
|
);
|
|
955
1017
|
SplitPage.displayName = "SplitPage";
|
|
956
|
-
var SplitPageList =
|
|
1018
|
+
var SplitPageList = React26.forwardRef(
|
|
957
1019
|
({ className, width = "320px", style, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
958
1020
|
"div",
|
|
959
1021
|
{
|
|
@@ -965,11 +1027,11 @@ var SplitPageList = React14.forwardRef(
|
|
|
965
1027
|
)
|
|
966
1028
|
);
|
|
967
1029
|
SplitPageList.displayName = "SplitPageList";
|
|
968
|
-
var SplitPageDetail =
|
|
1030
|
+
var SplitPageDetail = React26.forwardRef(
|
|
969
1031
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex-1 min-w-0 h-full overflow-auto", className), ...props })
|
|
970
1032
|
);
|
|
971
1033
|
SplitPageDetail.displayName = "SplitPageDetail";
|
|
972
|
-
var ResizeBox =
|
|
1034
|
+
var ResizeBox = React26.forwardRef(
|
|
973
1035
|
({ className, resize = "both", minWidth = 100, minHeight = 100, style, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
974
1036
|
"div",
|
|
975
1037
|
{
|
|
@@ -986,7 +1048,7 @@ var HandleIcon = () => /* @__PURE__ */ jsxs("svg", { width: "10", height: "10",
|
|
|
986
1048
|
/* @__PURE__ */ jsx("path", { d: "M8 5L5 8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }),
|
|
987
1049
|
/* @__PURE__ */ jsx("path", { d: "M8 8L8 8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" })
|
|
988
1050
|
] });
|
|
989
|
-
var ResizeHandle =
|
|
1051
|
+
var ResizeHandle = React26.forwardRef(
|
|
990
1052
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
991
1053
|
"div",
|
|
992
1054
|
{
|
|
@@ -1010,7 +1072,7 @@ function Field({ label, description, error, required, children, className }) {
|
|
|
1010
1072
|
error && /* @__PURE__ */ jsx(FieldError, { children: error })
|
|
1011
1073
|
] });
|
|
1012
1074
|
}
|
|
1013
|
-
var FieldLabel =
|
|
1075
|
+
var FieldLabel = React26.forwardRef(
|
|
1014
1076
|
({ className, required, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1015
1077
|
"label",
|
|
1016
1078
|
{
|
|
@@ -1025,7 +1087,7 @@ var FieldLabel = React14.forwardRef(
|
|
|
1025
1087
|
)
|
|
1026
1088
|
);
|
|
1027
1089
|
FieldLabel.displayName = "FieldLabel";
|
|
1028
|
-
var FieldDescription =
|
|
1090
|
+
var FieldDescription = React26.forwardRef(
|
|
1029
1091
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1030
1092
|
"p",
|
|
1031
1093
|
{
|
|
@@ -1036,7 +1098,7 @@ var FieldDescription = React14.forwardRef(
|
|
|
1036
1098
|
)
|
|
1037
1099
|
);
|
|
1038
1100
|
FieldDescription.displayName = "FieldDescription";
|
|
1039
|
-
var FieldError =
|
|
1101
|
+
var FieldError = React26.forwardRef(
|
|
1040
1102
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1041
1103
|
"p",
|
|
1042
1104
|
{
|
|
@@ -1056,7 +1118,7 @@ function getStrength(value) {
|
|
|
1056
1118
|
return { level: "medium", width: "w-2/3", color: "bg-yellow-500" };
|
|
1057
1119
|
return { level: "strong", width: "w-full", color: "bg-green-500" };
|
|
1058
1120
|
}
|
|
1059
|
-
var PasswordInput =
|
|
1121
|
+
var PasswordInput = React26.forwardRef(
|
|
1060
1122
|
({ className, strength, ...props }, ref) => {
|
|
1061
1123
|
const [show, setShow] = useState(false);
|
|
1062
1124
|
const value = String(props.value ?? "");
|
|
@@ -1091,7 +1153,7 @@ var PasswordInput = React14.forwardRef(
|
|
|
1091
1153
|
}
|
|
1092
1154
|
);
|
|
1093
1155
|
PasswordInput.displayName = "PasswordInput";
|
|
1094
|
-
var SearchInput =
|
|
1156
|
+
var SearchInput = React26.forwardRef(
|
|
1095
1157
|
({ className, shortcut, onClear, onChange, value: valueProp, defaultValue, ...props }, ref) => {
|
|
1096
1158
|
const [internalValue, setInternalValue] = useState(defaultValue ?? "");
|
|
1097
1159
|
const isControlled = valueProp !== void 0;
|
|
@@ -1316,7 +1378,7 @@ function FormField(props) {
|
|
|
1316
1378
|
function FormItem({ className, ...props }) {
|
|
1317
1379
|
return /* @__PURE__ */ jsx("div", { className: cn("flex flex-col gap-1.5", className), ...props });
|
|
1318
1380
|
}
|
|
1319
|
-
var FormLabel =
|
|
1381
|
+
var FormLabel = React26.forwardRef(
|
|
1320
1382
|
({ className, error, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1321
1383
|
"label",
|
|
1322
1384
|
{
|
|
@@ -1331,7 +1393,7 @@ var FormLabel = React14.forwardRef(
|
|
|
1331
1393
|
)
|
|
1332
1394
|
);
|
|
1333
1395
|
FormLabel.displayName = "FormLabel";
|
|
1334
|
-
var FormControl =
|
|
1396
|
+
var FormControl = React26.forwardRef(
|
|
1335
1397
|
({ ...props }, ref) => {
|
|
1336
1398
|
const id = useId();
|
|
1337
1399
|
return /* @__PURE__ */ jsx("div", { ref, id, ...props });
|
|
@@ -1368,7 +1430,7 @@ function StepForm({ steps, onSubmit, children, className }) {
|
|
|
1368
1430
|
isFirst: currentStep === 0,
|
|
1369
1431
|
isLast: currentStep === totalSteps - 1
|
|
1370
1432
|
};
|
|
1371
|
-
const childArray =
|
|
1433
|
+
const childArray = React26.Children.toArray(children);
|
|
1372
1434
|
const currentChild = childArray[currentStep];
|
|
1373
1435
|
return /* @__PURE__ */ jsx(StepFormContext.Provider, { value: ctx, children: /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-6", className), children: [
|
|
1374
1436
|
/* @__PURE__ */ jsx(StepIndicator, { steps, currentStep }),
|
|
@@ -1377,7 +1439,7 @@ function StepForm({ steps, onSubmit, children, className }) {
|
|
|
1377
1439
|
] }) });
|
|
1378
1440
|
}
|
|
1379
1441
|
function StepIndicator({ steps, currentStep }) {
|
|
1380
|
-
return /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: steps.map((label, i) => /* @__PURE__ */ jsxs(
|
|
1442
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: steps.map((label, i) => /* @__PURE__ */ jsxs(React26.Fragment, { children: [
|
|
1381
1443
|
i > 0 && /* @__PURE__ */ jsx("div", { className: cn("h-px flex-1 bg-[hsl(var(--border))]", i <= currentStep && "bg-[hsl(var(--primary))]") }),
|
|
1382
1444
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-1", children: [
|
|
1383
1445
|
/* @__PURE__ */ jsx("div", { className: cn(
|
|
@@ -1612,7 +1674,7 @@ function DataTableToolbar({ table, searchColumn }) {
|
|
|
1612
1674
|
) });
|
|
1613
1675
|
}
|
|
1614
1676
|
function DataTable({ columns, data, pageSize = 10, searchable, searchColumn, loading }) {
|
|
1615
|
-
const [sorting, setSorting] =
|
|
1677
|
+
const [sorting, setSorting] = React26.useState([]);
|
|
1616
1678
|
const table = useReactTable({
|
|
1617
1679
|
data,
|
|
1618
1680
|
columns,
|
|
@@ -1639,8 +1701,8 @@ function DataTable({ columns, data, pageSize = 10, searchable, searchColumn, loa
|
|
|
1639
1701
|
] });
|
|
1640
1702
|
}
|
|
1641
1703
|
function EditableCell({ value: initial, onSave }) {
|
|
1642
|
-
const [editing, setEditing] =
|
|
1643
|
-
const [val, setVal] =
|
|
1704
|
+
const [editing, setEditing] = React26.useState(false);
|
|
1705
|
+
const [val, setVal] = React26.useState(String(initial ?? ""));
|
|
1644
1706
|
const commit = () => {
|
|
1645
1707
|
onSave(val);
|
|
1646
1708
|
setEditing(false);
|
|
@@ -1673,10 +1735,10 @@ var selectionCol = () => ({
|
|
|
1673
1735
|
enableResizing: false
|
|
1674
1736
|
});
|
|
1675
1737
|
function DataGrid({ columns, data: initialData, onDataChange, editable, className }) {
|
|
1676
|
-
const [data, setData] =
|
|
1677
|
-
const [rowSelection, setRowSelection] =
|
|
1738
|
+
const [data, setData] = React26.useState(initialData);
|
|
1739
|
+
const [rowSelection, setRowSelection] = React26.useState({});
|
|
1678
1740
|
const columnResizeMode = "onChange";
|
|
1679
|
-
const editableColumns =
|
|
1741
|
+
const editableColumns = React26.useMemo(() => {
|
|
1680
1742
|
if (!editable)
|
|
1681
1743
|
return columns;
|
|
1682
1744
|
return columns.map((col) => ({
|
|
@@ -1696,7 +1758,7 @@ function DataGrid({ columns, data: initialData, onDataChange, editable, classNam
|
|
|
1696
1758
|
)
|
|
1697
1759
|
}));
|
|
1698
1760
|
}, [columns, data, editable, onDataChange]);
|
|
1699
|
-
const allColumns =
|
|
1761
|
+
const allColumns = React26.useMemo(() => [selectionCol(), ...editableColumns], [editableColumns]);
|
|
1700
1762
|
const table = useReactTable({
|
|
1701
1763
|
data,
|
|
1702
1764
|
columns: allColumns,
|
|
@@ -1714,7 +1776,7 @@ function DataGrid({ columns, data: initialData, onDataChange, editable, classNam
|
|
|
1714
1776
|
/* @__PURE__ */ jsx("tbody", { children: table.getRowModel().rows.map((row) => /* @__PURE__ */ jsx("tr", { className: cn("border-t border-[hsl(var(--border))] hover:bg-[hsl(var(--muted)/0.3)] transition-colors", row.getIsSelected() && "bg-[hsl(var(--primary)/0.06)]"), children: row.getVisibleCells().map((cell) => /* @__PURE__ */ jsx("td", { style: { width: cell.column.getSize() }, className: "px-3 py-2 border-r border-[hsl(var(--border))] last:border-r-0", children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id)) }, row.id)) })
|
|
1715
1777
|
] }) });
|
|
1716
1778
|
}
|
|
1717
|
-
var EmptyStateIcon =
|
|
1779
|
+
var EmptyStateIcon = React26.forwardRef(
|
|
1718
1780
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex h-12 w-12 items-center justify-center rounded-full bg-[hsl(var(--muted))] text-[hsl(var(--muted-foreground))]", className), ...props })
|
|
1719
1781
|
);
|
|
1720
1782
|
EmptyStateIcon.displayName = "EmptyStateIcon";
|
|
@@ -1728,7 +1790,7 @@ function EmptyState({ icon, title, description, action, className }) {
|
|
|
1728
1790
|
action && /* @__PURE__ */ jsx(Button, { onClick: action.onClick, className: "mt-1", children: action.label })
|
|
1729
1791
|
] });
|
|
1730
1792
|
}
|
|
1731
|
-
var PropertyList =
|
|
1793
|
+
var PropertyList = React26.forwardRef(
|
|
1732
1794
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("dl", { ref, className: cn("divide-y divide-[hsl(var(--border))]", className), ...props })
|
|
1733
1795
|
);
|
|
1734
1796
|
PropertyList.displayName = "PropertyList";
|
|
@@ -1744,7 +1806,7 @@ var dotColors = {
|
|
|
1744
1806
|
error: "bg-red-500",
|
|
1745
1807
|
warning: "bg-yellow-500"
|
|
1746
1808
|
};
|
|
1747
|
-
var TimelineContent =
|
|
1809
|
+
var TimelineContent = React26.forwardRef(
|
|
1748
1810
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("pb-1", className), ...props })
|
|
1749
1811
|
);
|
|
1750
1812
|
TimelineContent.displayName = "TimelineContent";
|
|
@@ -1767,9 +1829,9 @@ function TimelineItem({ icon, title, description, timestamp, variant = "default"
|
|
|
1767
1829
|
] });
|
|
1768
1830
|
}
|
|
1769
1831
|
function Timeline({ children, className }) {
|
|
1770
|
-
const items =
|
|
1832
|
+
const items = React26.Children.toArray(children);
|
|
1771
1833
|
return /* @__PURE__ */ jsx("div", { className: cn("", className), children: items.map(
|
|
1772
|
-
(child, i) =>
|
|
1834
|
+
(child, i) => React26.isValidElement(child) ? React26.cloneElement(child, { isLast: i === items.length - 1 }) : child
|
|
1773
1835
|
) });
|
|
1774
1836
|
}
|
|
1775
1837
|
function Stat({ label, value, trend, trendLabel, icon, description, className }) {
|
|
@@ -1857,7 +1919,7 @@ function StructuredListItem({ left, title, description, right, onClick, classNam
|
|
|
1857
1919
|
}
|
|
1858
1920
|
);
|
|
1859
1921
|
}
|
|
1860
|
-
var StructuredList =
|
|
1922
|
+
var StructuredList = React26.forwardRef(
|
|
1861
1923
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("space-y-4", className), ...props })
|
|
1862
1924
|
);
|
|
1863
1925
|
StructuredList.displayName = "StructuredList";
|
|
@@ -1978,8 +2040,8 @@ function Banner({
|
|
|
1978
2040
|
className,
|
|
1979
2041
|
children
|
|
1980
2042
|
}) {
|
|
1981
|
-
const [dismissed, setDismissed] =
|
|
1982
|
-
const [exiting, setExiting] =
|
|
2043
|
+
const [dismissed, setDismissed] = React26.useState(false);
|
|
2044
|
+
const [exiting, setExiting] = React26.useState(false);
|
|
1983
2045
|
const handleDismiss = () => {
|
|
1984
2046
|
setExiting(true);
|
|
1985
2047
|
setTimeout(() => {
|
|
@@ -2114,7 +2176,7 @@ function BreadcrumbSeparator({ className }) {
|
|
|
2114
2176
|
return /* @__PURE__ */ jsx("li", { role: "presentation", "aria-hidden": "true", className: cn("flex items-center text-[hsl(var(--muted-foreground))]", className), children: /* @__PURE__ */ jsx(ChevronRight, { className: "h-3.5 w-3.5" }) });
|
|
2115
2177
|
}
|
|
2116
2178
|
function Breadcrumb({ children, className }) {
|
|
2117
|
-
const items =
|
|
2179
|
+
const items = React26.Children.toArray(children);
|
|
2118
2180
|
const withSeparators = [];
|
|
2119
2181
|
items.forEach((item, i) => {
|
|
2120
2182
|
withSeparators.push(item);
|
|
@@ -2135,10 +2197,10 @@ function Hotkeys({ keys, className }) {
|
|
|
2135
2197
|
var textOps = ["contains", "equals", "starts with"];
|
|
2136
2198
|
var numOps = ["=", ">", "<", ">=", "<="];
|
|
2137
2199
|
function AddFilterPopover({ filters, onAdd }) {
|
|
2138
|
-
const [open, setOpen] =
|
|
2139
|
-
const [key, setKey] =
|
|
2140
|
-
const [op, setOp] =
|
|
2141
|
-
const [val, setVal] =
|
|
2200
|
+
const [open, setOpen] = React26.useState(false);
|
|
2201
|
+
const [key, setKey] = React26.useState("");
|
|
2202
|
+
const [op, setOp] = React26.useState("");
|
|
2203
|
+
const [val, setVal] = React26.useState("");
|
|
2142
2204
|
const def = filters.find((f) => f.key === key);
|
|
2143
2205
|
const ops = def?.type === "number" ? numOps : textOps;
|
|
2144
2206
|
const handleAdd = () => {
|
|
@@ -2241,19 +2303,19 @@ function ToggleButtonGroup(props) {
|
|
|
2241
2303
|
props.onChange(val);
|
|
2242
2304
|
}
|
|
2243
2305
|
};
|
|
2244
|
-
return /* @__PURE__ */ jsx("div", { className: cn("inline-flex items-center gap-1 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--muted)/0.4)] p-0.5", className), children:
|
|
2245
|
-
if (!
|
|
2306
|
+
return /* @__PURE__ */ jsx("div", { className: cn("inline-flex items-center gap-1 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--muted)/0.4)] p-0.5", className), children: React26.Children.map(children, (child) => {
|
|
2307
|
+
if (!React26.isValidElement(child))
|
|
2246
2308
|
return child;
|
|
2247
2309
|
const tb = child;
|
|
2248
|
-
return
|
|
2310
|
+
return React26.cloneElement(tb, {
|
|
2249
2311
|
pressed: isPressed(tb.props.value),
|
|
2250
2312
|
onClick: () => handleClick(tb.props.value)
|
|
2251
2313
|
});
|
|
2252
2314
|
}) });
|
|
2253
2315
|
}
|
|
2254
2316
|
function useCommandBar() {
|
|
2255
|
-
const [open, setOpen] =
|
|
2256
|
-
|
|
2317
|
+
const [open, setOpen] = React26.useState(false);
|
|
2318
|
+
React26.useEffect(() => {
|
|
2257
2319
|
const handler = (e) => {
|
|
2258
2320
|
if ((e.metaKey || e.ctrlKey) && e.key === "k") {
|
|
2259
2321
|
e.preventDefault();
|
|
@@ -2293,12 +2355,12 @@ function CommandBarItem({ icon, label, shortcut, onSelect, active, className })
|
|
|
2293
2355
|
);
|
|
2294
2356
|
}
|
|
2295
2357
|
function CommandBar({ open, onOpenChange, children, placeholder = "Search commands...", onSearch }) {
|
|
2296
|
-
const [query, setQuery] =
|
|
2358
|
+
const [query, setQuery] = React26.useState("");
|
|
2297
2359
|
const handleSearch = (v) => {
|
|
2298
2360
|
setQuery(v);
|
|
2299
2361
|
onSearch?.(v);
|
|
2300
2362
|
};
|
|
2301
|
-
const items =
|
|
2363
|
+
const items = React26.useRef(null);
|
|
2302
2364
|
const handleKeyDown = (e) => {
|
|
2303
2365
|
if (e.key === "Escape") {
|
|
2304
2366
|
onOpenChange(false);
|
|
@@ -2368,9 +2430,9 @@ function KanbanColumn({ column, isOver }) {
|
|
|
2368
2430
|
] });
|
|
2369
2431
|
}
|
|
2370
2432
|
function Kanban({ columns: initialColumns, onMoveCard, className }) {
|
|
2371
|
-
const [cols, setCols] =
|
|
2372
|
-
const [activeCard, setActiveCard] =
|
|
2373
|
-
const [overColId, setOverColId] =
|
|
2433
|
+
const [cols, setCols] = React26.useState(initialColumns);
|
|
2434
|
+
const [activeCard, setActiveCard] = React26.useState(null);
|
|
2435
|
+
const [overColId, setOverColId] = React26.useState(null);
|
|
2374
2436
|
const sensors = useSensors(useSensor(PointerSensor, { activationConstraint: { distance: 5 } }));
|
|
2375
2437
|
const findColByCard = (cardId) => cols.find((c) => c.cards.some((card) => card.id === cardId));
|
|
2376
2438
|
const onDragStart = ({ active }) => {
|
|
@@ -3662,7 +3724,7 @@ function FileRow({ file, onDelete }) {
|
|
|
3662
3724
|
] });
|
|
3663
3725
|
}
|
|
3664
3726
|
function FilesList({ className }) {
|
|
3665
|
-
const [files, setFiles] =
|
|
3727
|
+
const [files, setFiles] = React26.useState(FILES2);
|
|
3666
3728
|
return /* @__PURE__ */ jsx("div", { className: cn("rounded-md border border-[hsl(var(--border))] overflow-hidden", className), children: /* @__PURE__ */ jsxs("table", { className: "w-full", children: [
|
|
3667
3729
|
/* @__PURE__ */ jsx("thead", { className: "bg-[hsl(var(--muted)/0.5)]", children: /* @__PURE__ */ jsx("tr", { children: ["Name", "Type", "Size", "Modified", ""].map((h) => /* @__PURE__ */ jsx("th", { className: "px-4 py-2.5 text-left text-xs font-medium text-[hsl(var(--muted-foreground))]", children: h }, h)) }) }),
|
|
3668
3730
|
/* @__PURE__ */ jsx("tbody", { children: files.map((f) => /* @__PURE__ */ jsx(FileRow, { file: f, onDelete: () => setFiles((fs) => fs.filter((x) => x.id !== f.id)) }, f.id)) })
|
|
@@ -3758,6 +3820,6 @@ function SortableTaskList({ className }) {
|
|
|
3758
3820
|
}) });
|
|
3759
3821
|
}
|
|
3760
3822
|
|
|
3761
|
-
export { AppShell, AppShellMain, AppShellSidebar, AreaChart, ArrayField, AutoForm, Avatar, AvatarFallback, AvatarImage, Badge, Banner, BarChart, Beacon, BlinkUIProvider, Breadcrumb, BreadcrumbItem, BreadcrumbPage, BreadcrumbSeparator, BulkActions, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChatDetail, Checkbox, CommandBar, CommandBarEmpty, CommandBarGroup, CommandBarItem, CommandItem, Container, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataGrid, DataTable, DataTableColumnHeader, DataTablePagination, DataTableToolbar, DatePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, EmptyStateIcon, FeedbackModal, Field, FieldDescription, FieldError, FieldLabel, FileCards, FileUpload, FileUploadPreview, FilesList, FilterBadge, Filters, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HStack, HotkeyBadge, Hotkeys, IconBadge, Input, IntegrationCard, InviteModal, Kanban, KanbanCard, KanbanColumn, LineChart, LoadingOverlay, ManageTagsModal, MessagesCard, MetricCard, MetricCardWithButton, MetricCardWithIcon, Navbar, NavbarBrand, NavbarContent, NavbarItem, NotificationSettings, ObjectField, OrgMenu, Page, PageActions, PageBody, PageDescription, PageHeader, PageTitle, PasswordInput, Persona, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, PropertyItem, PropertyList, RadioGroup, RadioGroupItem, ResizeBox, ResizeHandle, RolesMenu, SearchInput, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectUsersModal, SelectValue, Separator4 as Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarHeader, SidebarItem, SidebarLayoutDashboard, SidebarLayoutGroups, SidebarLayoutMinimal, SidebarLayoutSearch, SidebarLayoutUser, SidebarSeparator, Skeleton, Slider, SortableTaskList, Sparkline, SplitPage, SplitPageDetail, SplitPageList, Stack, StackedLayoutBranded, StackedLayoutTabs, Stat, StatGroup, StepForm, StepFormNavigation, StepFormStep, Stepper, StructuredList, StructuredListItem, StructuredListSection, Switch, Tabs, TabsContent, TabsList, TabsTrigger, TaskCard, TaskCardWithLabels, Textarea, Timeline, TimelineConnector, TimelineContent, TimelineItem, Toaster, ToggleButton, ToggleButtonGroup, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tour, TourStep, UserMenu, VStack, WorkspaceMembers, badgeVariants, buttonVariants, cn, useAppShell, useBlinkUI, useCommandBar, useTour };
|
|
3823
|
+
export { AppShell, AppShellMain, AppShellSidebar, AreaChart, ArrayField, AutoForm, Avatar, AvatarFallback, AvatarImage, Badge, Banner, BarChart, Beacon, BlinkUIProvider, Breadcrumb, BreadcrumbItem, BreadcrumbPage, BreadcrumbSeparator, BulkActions, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChatDetail, Checkbox, CommandBar, CommandBarEmpty, CommandBarGroup, CommandBarItem, CommandItem, Container, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataGrid, DataTable, DataTableColumnHeader, DataTablePagination, DataTableToolbar, DatePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, EmptyStateIcon, FeedbackModal, Field, FieldDescription, FieldError, FieldLabel, FileCards, FileUpload, FileUploadPreview, FilesList, FilterBadge, Filters, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HStack, HotkeyBadge, Hotkeys, IconBadge, Input, IntegrationCard, InviteModal, Kanban, KanbanCard, KanbanColumn, LineChart, LoadingOverlay, ManageTagsModal, MessagesCard, MetricCard, MetricCardWithButton, MetricCardWithIcon, MobileSidebarTrigger, Navbar, NavbarBrand, NavbarContent, NavbarItem, NotificationSettings, ObjectField, OrgMenu, Page, PageActions, PageBody, PageDescription, PageHeader, PageTitle, PasswordInput, Persona, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, PropertyItem, PropertyList, RadioGroup, RadioGroupItem, ResizeBox, ResizeHandle, RolesMenu, SearchInput, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectUsersModal, SelectValue, Separator4 as Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarHeader, SidebarItem, SidebarLayoutDashboard, SidebarLayoutGroups, SidebarLayoutMinimal, SidebarLayoutSearch, SidebarLayoutUser, SidebarSeparator, Skeleton, Slider, SortableTaskList, Sparkline, SplitPage, SplitPageDetail, SplitPageList, Stack, StackedLayoutBranded, StackedLayoutTabs, Stat, StatGroup, StepForm, StepFormNavigation, StepFormStep, Stepper, StructuredList, StructuredListItem, StructuredListSection, Switch, Tabs, TabsContent, TabsList, TabsTrigger, TaskCard, TaskCardWithLabels, Textarea, Timeline, TimelineConnector, TimelineContent, TimelineItem, Toaster, ToggleButton, ToggleButtonGroup, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tour, TourStep, UserMenu, VStack, WorkspaceMembers, badgeVariants, buttonVariants, cn, useAppShell, useBlinkUI, useCommandBar, useTour };
|
|
3762
3824
|
//# sourceMappingURL=out.js.map
|
|
3763
3825
|
//# sourceMappingURL=index.mjs.map
|