@hai3/uikit 0.1.0-alpha.9 → 0.2.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1167 -630
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +548 -42
- package/dist/index.d.ts +548 -42
- package/dist/index.js +1061 -548
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
- package/src/styles/applyTheme.ts +1 -1
- package/src/styles/globals.css +3 -0
package/dist/index.cjs
CHANGED
|
@@ -5,16 +5,15 @@ var clsx = require('clsx');
|
|
|
5
5
|
var tailwindMerge = require('tailwind-merge');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var AspectRatioPrimitive = require('@radix-ui/react-aspect-ratio');
|
|
8
|
-
var
|
|
8
|
+
var React26 = require('react');
|
|
9
9
|
var AvatarPrimitive = require('@radix-ui/react-avatar');
|
|
10
10
|
var reactSlot = require('@radix-ui/react-slot');
|
|
11
|
-
var
|
|
11
|
+
var SeparatorPrimitive = require('@radix-ui/react-separator');
|
|
12
12
|
var reactDayPicker = require('react-day-picker');
|
|
13
13
|
var CheckboxPrimitive = require('@radix-ui/react-checkbox');
|
|
14
14
|
var RadioGroupPrimitive = require('@radix-ui/react-radio-group');
|
|
15
15
|
var inputOtp = require('input-otp');
|
|
16
16
|
var LabelPrimitive = require('@radix-ui/react-label');
|
|
17
|
-
var SeparatorPrimitive = require('@radix-ui/react-separator');
|
|
18
17
|
var reactHookForm = require('react-hook-form');
|
|
19
18
|
var SwitchPrimitives = require('@radix-ui/react-switch');
|
|
20
19
|
var reactTable = require('@tanstack/react-table');
|
|
@@ -41,6 +40,9 @@ var useEmblaCarousel = require('embla-carousel-react');
|
|
|
41
40
|
var CollapsiblePrimitive = require('@radix-ui/react-collapsible');
|
|
42
41
|
var recharts = require('recharts');
|
|
43
42
|
var ContextMenuPrimitive = require('@radix-ui/react-context-menu');
|
|
43
|
+
var cmdk = require('cmdk');
|
|
44
|
+
var TogglePrimitive = require('@radix-ui/react-toggle');
|
|
45
|
+
var ToggleGroupPrimitive = require('@radix-ui/react-toggle-group');
|
|
44
46
|
var dateFns = require('date-fns');
|
|
45
47
|
|
|
46
48
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -64,12 +66,12 @@ function _interopNamespace(e) {
|
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
var AspectRatioPrimitive__namespace = /*#__PURE__*/_interopNamespace(AspectRatioPrimitive);
|
|
67
|
-
var
|
|
69
|
+
var React26__namespace = /*#__PURE__*/_interopNamespace(React26);
|
|
68
70
|
var AvatarPrimitive__namespace = /*#__PURE__*/_interopNamespace(AvatarPrimitive);
|
|
71
|
+
var SeparatorPrimitive__namespace = /*#__PURE__*/_interopNamespace(SeparatorPrimitive);
|
|
69
72
|
var CheckboxPrimitive__namespace = /*#__PURE__*/_interopNamespace(CheckboxPrimitive);
|
|
70
73
|
var RadioGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(RadioGroupPrimitive);
|
|
71
74
|
var LabelPrimitive__namespace = /*#__PURE__*/_interopNamespace(LabelPrimitive);
|
|
72
|
-
var SeparatorPrimitive__namespace = /*#__PURE__*/_interopNamespace(SeparatorPrimitive);
|
|
73
75
|
var SwitchPrimitives__namespace = /*#__PURE__*/_interopNamespace(SwitchPrimitives);
|
|
74
76
|
var SelectPrimitive__namespace = /*#__PURE__*/_interopNamespace(SelectPrimitive);
|
|
75
77
|
var DropdownMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(DropdownMenuPrimitive);
|
|
@@ -89,6 +91,8 @@ var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrim
|
|
|
89
91
|
var useEmblaCarousel__default = /*#__PURE__*/_interopDefault(useEmblaCarousel);
|
|
90
92
|
var CollapsiblePrimitive__namespace = /*#__PURE__*/_interopNamespace(CollapsiblePrimitive);
|
|
91
93
|
var ContextMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(ContextMenuPrimitive);
|
|
94
|
+
var TogglePrimitive__namespace = /*#__PURE__*/_interopNamespace(TogglePrimitive);
|
|
95
|
+
var ToggleGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(ToggleGroupPrimitive);
|
|
92
96
|
|
|
93
97
|
// src/base/alert.tsx
|
|
94
98
|
function cn(...inputs) {
|
|
@@ -248,7 +252,7 @@ function EmptyContent({ className, ...props }) {
|
|
|
248
252
|
}
|
|
249
253
|
);
|
|
250
254
|
}
|
|
251
|
-
var Avatar =
|
|
255
|
+
var Avatar = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
252
256
|
AvatarPrimitive__namespace.Root,
|
|
253
257
|
{
|
|
254
258
|
ref,
|
|
@@ -260,7 +264,7 @@ var Avatar = React24__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
260
264
|
}
|
|
261
265
|
));
|
|
262
266
|
Avatar.displayName = AvatarPrimitive__namespace.Root.displayName;
|
|
263
|
-
var AvatarImage =
|
|
267
|
+
var AvatarImage = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
264
268
|
AvatarPrimitive__namespace.Image,
|
|
265
269
|
{
|
|
266
270
|
ref,
|
|
@@ -269,7 +273,7 @@ var AvatarImage = React24__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
269
273
|
}
|
|
270
274
|
));
|
|
271
275
|
AvatarImage.displayName = AvatarPrimitive__namespace.Image.displayName;
|
|
272
|
-
var AvatarFallback =
|
|
276
|
+
var AvatarFallback = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
273
277
|
AvatarPrimitive__namespace.Fallback,
|
|
274
278
|
{
|
|
275
279
|
ref,
|
|
@@ -281,32 +285,88 @@ var AvatarFallback = React24__namespace.forwardRef(({ className, ...props }, ref
|
|
|
281
285
|
}
|
|
282
286
|
));
|
|
283
287
|
AvatarFallback.displayName = AvatarPrimitive__namespace.Fallback.displayName;
|
|
288
|
+
|
|
289
|
+
// src/types.ts
|
|
290
|
+
var ButtonVariant = /* @__PURE__ */ ((ButtonVariant2) => {
|
|
291
|
+
ButtonVariant2["Default"] = "default";
|
|
292
|
+
ButtonVariant2["Destructive"] = "destructive";
|
|
293
|
+
ButtonVariant2["Outline"] = "outline";
|
|
294
|
+
ButtonVariant2["Secondary"] = "secondary";
|
|
295
|
+
ButtonVariant2["Ghost"] = "ghost";
|
|
296
|
+
ButtonVariant2["Link"] = "link";
|
|
297
|
+
return ButtonVariant2;
|
|
298
|
+
})(ButtonVariant || {});
|
|
299
|
+
var ButtonSize = /* @__PURE__ */ ((ButtonSize2) => {
|
|
300
|
+
ButtonSize2["Default"] = "default";
|
|
301
|
+
ButtonSize2["Sm"] = "sm";
|
|
302
|
+
ButtonSize2["Lg"] = "lg";
|
|
303
|
+
ButtonSize2["Icon"] = "icon";
|
|
304
|
+
return ButtonSize2;
|
|
305
|
+
})(ButtonSize || {});
|
|
306
|
+
var IconButtonSize = /* @__PURE__ */ ((IconButtonSize2) => {
|
|
307
|
+
IconButtonSize2["Default"] = "default";
|
|
308
|
+
IconButtonSize2["Small"] = "sm";
|
|
309
|
+
IconButtonSize2["Large"] = "lg";
|
|
310
|
+
return IconButtonSize2;
|
|
311
|
+
})(IconButtonSize || {});
|
|
312
|
+
var UiKitComponent = /* @__PURE__ */ ((UiKitComponent2) => {
|
|
313
|
+
UiKitComponent2["Button"] = "Button";
|
|
314
|
+
UiKitComponent2["IconButton"] = "IconButton";
|
|
315
|
+
UiKitComponent2["DropdownButton"] = "DropdownButton";
|
|
316
|
+
UiKitComponent2["Switch"] = "Switch";
|
|
317
|
+
UiKitComponent2["Skeleton"] = "Skeleton";
|
|
318
|
+
UiKitComponent2["Spinner"] = "Spinner";
|
|
319
|
+
UiKitComponent2["Header"] = "Header";
|
|
320
|
+
UiKitComponent2["Sidebar"] = "Sidebar";
|
|
321
|
+
UiKitComponent2["SidebarContent"] = "SidebarContent";
|
|
322
|
+
UiKitComponent2["SidebarHeader"] = "SidebarHeader";
|
|
323
|
+
UiKitComponent2["SidebarMenu"] = "SidebarMenu";
|
|
324
|
+
UiKitComponent2["SidebarMenuItem"] = "SidebarMenuItem";
|
|
325
|
+
UiKitComponent2["SidebarMenuButton"] = "SidebarMenuButton";
|
|
326
|
+
UiKitComponent2["SidebarMenuIcon"] = "SidebarMenuIcon";
|
|
327
|
+
UiKitComponent2["SidebarMenuLabel"] = "SidebarMenuLabel";
|
|
328
|
+
UiKitComponent2["UserInfo"] = "UserInfo";
|
|
329
|
+
UiKitComponent2["DropdownMenu"] = "DropdownMenu";
|
|
330
|
+
UiKitComponent2["DropdownMenuTrigger"] = "DropdownMenuTrigger";
|
|
331
|
+
UiKitComponent2["DropdownMenuContent"] = "DropdownMenuContent";
|
|
332
|
+
UiKitComponent2["DropdownMenuItem"] = "DropdownMenuItem";
|
|
333
|
+
UiKitComponent2["DropdownMenuSub"] = "DropdownMenuSub";
|
|
334
|
+
UiKitComponent2["DropdownMenuSubTrigger"] = "DropdownMenuSubTrigger";
|
|
335
|
+
UiKitComponent2["DropdownMenuSubContent"] = "DropdownMenuSubContent";
|
|
336
|
+
return UiKitComponent2;
|
|
337
|
+
})(UiKitComponent || {});
|
|
338
|
+
var UiKitIcon = /* @__PURE__ */ ((UiKitIcon2) => {
|
|
339
|
+
UiKitIcon2["Close"] = "close";
|
|
340
|
+
UiKitIcon2["AppLogo"] = "app-logo";
|
|
341
|
+
UiKitIcon2["AppLogoText"] = "app-logo-text";
|
|
342
|
+
return UiKitIcon2;
|
|
343
|
+
})(UiKitIcon || {});
|
|
284
344
|
var buttonVariants = classVarianceAuthority.cva(
|
|
285
345
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
286
346
|
{
|
|
287
347
|
variants: {
|
|
288
348
|
variant: {
|
|
289
|
-
[
|
|
290
|
-
[
|
|
291
|
-
[
|
|
292
|
-
[
|
|
293
|
-
[
|
|
294
|
-
[
|
|
349
|
+
["default" /* Default */]: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
|
|
350
|
+
["destructive" /* Destructive */]: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
|
|
351
|
+
["outline" /* Outline */]: "border border-input bg-background shadow-sm hover:bg-accent data-[state=open]:bg-accent",
|
|
352
|
+
["secondary" /* Secondary */]: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
|
353
|
+
["ghost" /* Ghost */]: "hover:bg-accent data-[state=open]:bg-accent",
|
|
354
|
+
["link" /* Link */]: "text-primary underline-offset-4 hover:underline"
|
|
295
355
|
},
|
|
296
356
|
size: {
|
|
297
|
-
[
|
|
298
|
-
[
|
|
299
|
-
[
|
|
300
|
-
[
|
|
357
|
+
["default" /* Default */]: "h-9 px-4 py-2",
|
|
358
|
+
["sm" /* Sm */]: "h-8 rounded-md px-3 text-xs",
|
|
359
|
+
["lg" /* Lg */]: "h-10 rounded-md px-8",
|
|
360
|
+
["icon" /* Icon */]: "h-9 w-9"
|
|
301
361
|
}
|
|
302
362
|
},
|
|
303
363
|
defaultVariants: {
|
|
304
|
-
variant:
|
|
305
|
-
size:
|
|
364
|
+
variant: "default" /* Default */,
|
|
365
|
+
size: "default" /* Default */
|
|
306
366
|
}
|
|
307
367
|
}
|
|
308
368
|
);
|
|
309
|
-
var Button =
|
|
369
|
+
var Button = React26__namespace.forwardRef(
|
|
310
370
|
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
311
371
|
const Comp = asChild ? reactSlot.Slot : "button";
|
|
312
372
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -320,6 +380,91 @@ var Button = React24__namespace.forwardRef(
|
|
|
320
380
|
}
|
|
321
381
|
);
|
|
322
382
|
Button.displayName = "Button";
|
|
383
|
+
function Separator({
|
|
384
|
+
className,
|
|
385
|
+
orientation = "horizontal",
|
|
386
|
+
decorative = true,
|
|
387
|
+
...props
|
|
388
|
+
}) {
|
|
389
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
390
|
+
SeparatorPrimitive__namespace.Root,
|
|
391
|
+
{
|
|
392
|
+
"data-slot": "separator",
|
|
393
|
+
decorative,
|
|
394
|
+
orientation,
|
|
395
|
+
className: cn(
|
|
396
|
+
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
397
|
+
className
|
|
398
|
+
),
|
|
399
|
+
...props
|
|
400
|
+
}
|
|
401
|
+
);
|
|
402
|
+
}
|
|
403
|
+
var buttonGroupVariants = classVarianceAuthority.cva(
|
|
404
|
+
"flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2",
|
|
405
|
+
{
|
|
406
|
+
variants: {
|
|
407
|
+
orientation: {
|
|
408
|
+
horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",
|
|
409
|
+
vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
defaultVariants: {
|
|
413
|
+
orientation: "horizontal"
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
);
|
|
417
|
+
function ButtonGroup({
|
|
418
|
+
className,
|
|
419
|
+
orientation,
|
|
420
|
+
...props
|
|
421
|
+
}) {
|
|
422
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
423
|
+
"div",
|
|
424
|
+
{
|
|
425
|
+
role: "group",
|
|
426
|
+
"data-slot": "button-group",
|
|
427
|
+
"data-orientation": orientation,
|
|
428
|
+
className: cn(buttonGroupVariants({ orientation }), className),
|
|
429
|
+
...props
|
|
430
|
+
}
|
|
431
|
+
);
|
|
432
|
+
}
|
|
433
|
+
function ButtonGroupText({
|
|
434
|
+
className,
|
|
435
|
+
asChild = false,
|
|
436
|
+
...props
|
|
437
|
+
}) {
|
|
438
|
+
const Comp = asChild ? reactSlot.Slot : "div";
|
|
439
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
440
|
+
Comp,
|
|
441
|
+
{
|
|
442
|
+
className: cn(
|
|
443
|
+
"bg-muted flex items-center gap-2 rounded-md border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
|
|
444
|
+
className
|
|
445
|
+
),
|
|
446
|
+
...props
|
|
447
|
+
}
|
|
448
|
+
);
|
|
449
|
+
}
|
|
450
|
+
function ButtonGroupSeparator({
|
|
451
|
+
className,
|
|
452
|
+
orientation = "vertical",
|
|
453
|
+
...props
|
|
454
|
+
}) {
|
|
455
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
456
|
+
Separator,
|
|
457
|
+
{
|
|
458
|
+
"data-slot": "button-group-separator",
|
|
459
|
+
orientation,
|
|
460
|
+
className: cn(
|
|
461
|
+
"bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto",
|
|
462
|
+
className
|
|
463
|
+
),
|
|
464
|
+
...props
|
|
465
|
+
}
|
|
466
|
+
);
|
|
467
|
+
}
|
|
323
468
|
var badgeVariants = classVarianceAuthority.cva(
|
|
324
469
|
"inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
325
470
|
{
|
|
@@ -411,7 +556,7 @@ function Calendar({
|
|
|
411
556
|
classNames,
|
|
412
557
|
showOutsideDays = true,
|
|
413
558
|
captionLayout = "label",
|
|
414
|
-
buttonVariant =
|
|
559
|
+
buttonVariant = "ghost" /* Ghost */,
|
|
415
560
|
formatters,
|
|
416
561
|
components,
|
|
417
562
|
...props
|
|
@@ -553,16 +698,16 @@ function CalendarDayButton({
|
|
|
553
698
|
...props
|
|
554
699
|
}) {
|
|
555
700
|
const defaultClassNames = reactDayPicker.getDefaultClassNames();
|
|
556
|
-
const ref =
|
|
557
|
-
|
|
701
|
+
const ref = React26__namespace.useRef(null);
|
|
702
|
+
React26__namespace.useEffect(() => {
|
|
558
703
|
if (modifiers.focused) ref.current?.focus();
|
|
559
704
|
}, [modifiers.focused]);
|
|
560
705
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
561
706
|
Button,
|
|
562
707
|
{
|
|
563
708
|
ref,
|
|
564
|
-
variant:
|
|
565
|
-
size:
|
|
709
|
+
variant: "ghost" /* Ghost */,
|
|
710
|
+
size: "icon" /* Icon */,
|
|
566
711
|
"data-day": day.date.toLocaleDateString(),
|
|
567
712
|
"data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
|
|
568
713
|
"data-range-start": modifiers.range_start,
|
|
@@ -774,7 +919,7 @@ function InputOTPSlot({
|
|
|
774
919
|
className,
|
|
775
920
|
...props
|
|
776
921
|
}) {
|
|
777
|
-
const inputOTPContext =
|
|
922
|
+
const inputOTPContext = React26__namespace.useContext(inputOtp.OTPInputContext);
|
|
778
923
|
const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};
|
|
779
924
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
780
925
|
"div",
|
|
@@ -796,7 +941,7 @@ function InputOTPSlot({
|
|
|
796
941
|
function InputOTPSeparator({ ...props }) {
|
|
797
942
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(MinusIcon, {}) });
|
|
798
943
|
}
|
|
799
|
-
var Input =
|
|
944
|
+
var Input = React26__namespace.forwardRef(
|
|
800
945
|
({ className, type, ...props }, ref) => {
|
|
801
946
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
802
947
|
"input",
|
|
@@ -829,26 +974,6 @@ function Label({
|
|
|
829
974
|
}
|
|
830
975
|
);
|
|
831
976
|
}
|
|
832
|
-
function Separator({
|
|
833
|
-
className,
|
|
834
|
-
orientation = "horizontal",
|
|
835
|
-
decorative = true,
|
|
836
|
-
...props
|
|
837
|
-
}) {
|
|
838
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
839
|
-
SeparatorPrimitive__namespace.Root,
|
|
840
|
-
{
|
|
841
|
-
"data-slot": "separator",
|
|
842
|
-
decorative,
|
|
843
|
-
orientation,
|
|
844
|
-
className: cn(
|
|
845
|
-
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
846
|
-
className
|
|
847
|
-
),
|
|
848
|
-
...props
|
|
849
|
-
}
|
|
850
|
-
);
|
|
851
|
-
}
|
|
852
977
|
function FieldSet({ className, ...props }) {
|
|
853
978
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
854
979
|
"fieldset",
|
|
@@ -1029,7 +1154,7 @@ function FieldError({
|
|
|
1029
1154
|
errors,
|
|
1030
1155
|
...props
|
|
1031
1156
|
}) {
|
|
1032
|
-
const content =
|
|
1157
|
+
const content = React26.useMemo(() => {
|
|
1033
1158
|
if (children) {
|
|
1034
1159
|
return children;
|
|
1035
1160
|
}
|
|
@@ -1061,7 +1186,7 @@ function FieldError({
|
|
|
1061
1186
|
);
|
|
1062
1187
|
}
|
|
1063
1188
|
var Form = reactHookForm.FormProvider;
|
|
1064
|
-
var FormFieldContext =
|
|
1189
|
+
var FormFieldContext = React26__namespace.createContext(
|
|
1065
1190
|
{}
|
|
1066
1191
|
);
|
|
1067
1192
|
var FormField = ({
|
|
@@ -1069,12 +1194,12 @@ var FormField = ({
|
|
|
1069
1194
|
}) => {
|
|
1070
1195
|
return /* @__PURE__ */ jsxRuntime.jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsxRuntime.jsx(reactHookForm.Controller, { ...props }) });
|
|
1071
1196
|
};
|
|
1072
|
-
var FormItemContext =
|
|
1197
|
+
var FormItemContext = React26__namespace.createContext(
|
|
1073
1198
|
{}
|
|
1074
1199
|
);
|
|
1075
1200
|
var useFormField = () => {
|
|
1076
|
-
const fieldContext =
|
|
1077
|
-
const itemContext =
|
|
1201
|
+
const fieldContext = React26__namespace.useContext(FormFieldContext);
|
|
1202
|
+
const itemContext = React26__namespace.useContext(FormItemContext);
|
|
1078
1203
|
const { getFieldState } = reactHookForm.useFormContext();
|
|
1079
1204
|
const formState = reactHookForm.useFormState({ name: fieldContext.name });
|
|
1080
1205
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
@@ -1092,7 +1217,7 @@ var useFormField = () => {
|
|
|
1092
1217
|
};
|
|
1093
1218
|
};
|
|
1094
1219
|
function FormItem({ className, ...props }) {
|
|
1095
|
-
const id =
|
|
1220
|
+
const id = React26__namespace.useId();
|
|
1096
1221
|
return /* @__PURE__ */ jsxRuntime.jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1097
1222
|
"div",
|
|
1098
1223
|
{
|
|
@@ -1160,10 +1285,10 @@ function FormMessage({ className, ...props }) {
|
|
|
1160
1285
|
}
|
|
1161
1286
|
);
|
|
1162
1287
|
}
|
|
1163
|
-
var Textarea =
|
|
1288
|
+
var Textarea = React26__namespace.forwardRef(
|
|
1164
1289
|
({ className, autoResize = false, minHeight = 50, maxHeight = 350, size = "default", onChange, ...props }, ref) => {
|
|
1165
|
-
const internalRef =
|
|
1166
|
-
|
|
1290
|
+
const internalRef = React26__namespace.useRef(null);
|
|
1291
|
+
React26__namespace.useImperativeHandle(ref, () => internalRef.current);
|
|
1167
1292
|
const sizeClasses = {
|
|
1168
1293
|
sm: "min-h-11 h-11",
|
|
1169
1294
|
// 44px / 2.75rem - exact height
|
|
@@ -1180,7 +1305,7 @@ var Textarea = React24__namespace.forwardRef(
|
|
|
1180
1305
|
lg: "py-2"
|
|
1181
1306
|
// 8px top + 8px bottom (default)
|
|
1182
1307
|
};
|
|
1183
|
-
const handleResize =
|
|
1308
|
+
const handleResize = React26__namespace.useCallback(() => {
|
|
1184
1309
|
if (autoResize && size !== "sm" && internalRef.current) {
|
|
1185
1310
|
const textarea = internalRef.current;
|
|
1186
1311
|
textarea.style.height = "auto";
|
|
@@ -1188,10 +1313,10 @@ var Textarea = React24__namespace.forwardRef(
|
|
|
1188
1313
|
textarea.style.height = `${Math.min(Math.max(scrollHeight, minHeight), maxHeight)}px`;
|
|
1189
1314
|
}
|
|
1190
1315
|
}, [autoResize, size, minHeight, maxHeight]);
|
|
1191
|
-
|
|
1316
|
+
React26__namespace.useEffect(() => {
|
|
1192
1317
|
handleResize();
|
|
1193
1318
|
}, [handleResize, props.value]);
|
|
1194
|
-
const handleChange =
|
|
1319
|
+
const handleChange = React26__namespace.useCallback(
|
|
1195
1320
|
(e) => {
|
|
1196
1321
|
handleResize();
|
|
1197
1322
|
onChange?.(e);
|
|
@@ -1215,7 +1340,7 @@ var Textarea = React24__namespace.forwardRef(
|
|
|
1215
1340
|
}
|
|
1216
1341
|
);
|
|
1217
1342
|
Textarea.displayName = "Textarea";
|
|
1218
|
-
var Switch =
|
|
1343
|
+
var Switch = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1219
1344
|
SwitchPrimitives__namespace.Root,
|
|
1220
1345
|
{
|
|
1221
1346
|
className: cn(
|
|
@@ -1363,7 +1488,7 @@ var ChevronUpIcon = ({
|
|
|
1363
1488
|
var Select = SelectPrimitive__namespace.Root;
|
|
1364
1489
|
var SelectGroup = SelectPrimitive__namespace.Group;
|
|
1365
1490
|
var SelectValue = SelectPrimitive__namespace.Value;
|
|
1366
|
-
var SelectTrigger =
|
|
1491
|
+
var SelectTrigger = React26__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1367
1492
|
SelectPrimitive__namespace.Trigger,
|
|
1368
1493
|
{
|
|
1369
1494
|
ref,
|
|
@@ -1380,7 +1505,7 @@ var SelectTrigger = React24__namespace.forwardRef(({ className, children, ...pro
|
|
|
1380
1505
|
}
|
|
1381
1506
|
));
|
|
1382
1507
|
SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
|
|
1383
|
-
var SelectScrollUpButton =
|
|
1508
|
+
var SelectScrollUpButton = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1384
1509
|
SelectPrimitive__namespace.ScrollUpButton,
|
|
1385
1510
|
{
|
|
1386
1511
|
ref,
|
|
@@ -1393,7 +1518,7 @@ var SelectScrollUpButton = React24__namespace.forwardRef(({ className, ...props
|
|
|
1393
1518
|
}
|
|
1394
1519
|
));
|
|
1395
1520
|
SelectScrollUpButton.displayName = SelectPrimitive__namespace.ScrollUpButton.displayName;
|
|
1396
|
-
var SelectScrollDownButton =
|
|
1521
|
+
var SelectScrollDownButton = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1397
1522
|
SelectPrimitive__namespace.ScrollDownButton,
|
|
1398
1523
|
{
|
|
1399
1524
|
ref,
|
|
@@ -1406,7 +1531,7 @@ var SelectScrollDownButton = React24__namespace.forwardRef(({ className, ...prop
|
|
|
1406
1531
|
}
|
|
1407
1532
|
));
|
|
1408
1533
|
SelectScrollDownButton.displayName = SelectPrimitive__namespace.ScrollDownButton.displayName;
|
|
1409
|
-
var SelectContent =
|
|
1534
|
+
var SelectContent = React26__namespace.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1410
1535
|
SelectPrimitive__namespace.Content,
|
|
1411
1536
|
{
|
|
1412
1537
|
ref,
|
|
@@ -1434,7 +1559,7 @@ var SelectContent = React24__namespace.forwardRef(({ className, children, positi
|
|
|
1434
1559
|
}
|
|
1435
1560
|
) }));
|
|
1436
1561
|
SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
|
|
1437
|
-
var SelectLabel =
|
|
1562
|
+
var SelectLabel = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1438
1563
|
SelectPrimitive__namespace.Label,
|
|
1439
1564
|
{
|
|
1440
1565
|
ref,
|
|
@@ -1443,7 +1568,7 @@ var SelectLabel = React24__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
1443
1568
|
}
|
|
1444
1569
|
));
|
|
1445
1570
|
SelectLabel.displayName = SelectPrimitive__namespace.Label.displayName;
|
|
1446
|
-
var SelectItem =
|
|
1571
|
+
var SelectItem = React26__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1447
1572
|
SelectPrimitive__namespace.Item,
|
|
1448
1573
|
{
|
|
1449
1574
|
ref,
|
|
@@ -1459,7 +1584,7 @@ var SelectItem = React24__namespace.forwardRef(({ className, children, ...props
|
|
|
1459
1584
|
}
|
|
1460
1585
|
));
|
|
1461
1586
|
SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
|
|
1462
|
-
var SelectSeparator =
|
|
1587
|
+
var SelectSeparator = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1463
1588
|
SelectPrimitive__namespace.Separator,
|
|
1464
1589
|
{
|
|
1465
1590
|
ref,
|
|
@@ -1508,8 +1633,8 @@ function DataTablePagination({
|
|
|
1508
1633
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1509
1634
|
Button,
|
|
1510
1635
|
{
|
|
1511
|
-
variant:
|
|
1512
|
-
size:
|
|
1636
|
+
variant: "outline" /* Outline */,
|
|
1637
|
+
size: "icon" /* Icon */,
|
|
1513
1638
|
className: "hidden size-8 lg:flex",
|
|
1514
1639
|
onClick: () => table.setPageIndex(0),
|
|
1515
1640
|
disabled: !table.getCanPreviousPage(),
|
|
@@ -1522,8 +1647,8 @@ function DataTablePagination({
|
|
|
1522
1647
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1523
1648
|
Button,
|
|
1524
1649
|
{
|
|
1525
|
-
variant:
|
|
1526
|
-
size:
|
|
1650
|
+
variant: "outline" /* Outline */,
|
|
1651
|
+
size: "icon" /* Icon */,
|
|
1527
1652
|
className: "size-8",
|
|
1528
1653
|
onClick: () => table.previousPage(),
|
|
1529
1654
|
disabled: !table.getCanPreviousPage(),
|
|
@@ -1536,8 +1661,8 @@ function DataTablePagination({
|
|
|
1536
1661
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1537
1662
|
Button,
|
|
1538
1663
|
{
|
|
1539
|
-
variant:
|
|
1540
|
-
size:
|
|
1664
|
+
variant: "outline" /* Outline */,
|
|
1665
|
+
size: "icon" /* Icon */,
|
|
1541
1666
|
className: "size-8",
|
|
1542
1667
|
onClick: () => table.nextPage(),
|
|
1543
1668
|
disabled: !table.getCanNextPage(),
|
|
@@ -1550,8 +1675,8 @@ function DataTablePagination({
|
|
|
1550
1675
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1551
1676
|
Button,
|
|
1552
1677
|
{
|
|
1553
|
-
variant:
|
|
1554
|
-
size:
|
|
1678
|
+
variant: "outline" /* Outline */,
|
|
1679
|
+
size: "icon" /* Icon */,
|
|
1555
1680
|
className: "hidden size-8 lg:flex",
|
|
1556
1681
|
onClick: () => table.setPageIndex(table.getPageCount() - 1),
|
|
1557
1682
|
disabled: !table.getCanNextPage(),
|
|
@@ -1575,10 +1700,10 @@ function DataTable({
|
|
|
1575
1700
|
pageSize = 10,
|
|
1576
1701
|
noResultsMessage = "No results."
|
|
1577
1702
|
}) {
|
|
1578
|
-
const [sorting, setSorting] =
|
|
1579
|
-
const [columnFilters, setColumnFilters] =
|
|
1580
|
-
const [columnVisibility, setColumnVisibility] =
|
|
1581
|
-
const [rowSelection, setRowSelection] =
|
|
1703
|
+
const [sorting, setSorting] = React26__namespace.useState([]);
|
|
1704
|
+
const [columnFilters, setColumnFilters] = React26__namespace.useState([]);
|
|
1705
|
+
const [columnVisibility, setColumnVisibility] = React26__namespace.useState({});
|
|
1706
|
+
const [rowSelection, setRowSelection] = React26__namespace.useState({});
|
|
1582
1707
|
const internalTable = reactTable.useReactTable({
|
|
1583
1708
|
data,
|
|
1584
1709
|
columns,
|
|
@@ -1648,12 +1773,12 @@ var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
|
|
|
1648
1773
|
var DropdownMenuPortal = DropdownMenuPrimitive__namespace.Portal;
|
|
1649
1774
|
var DropdownMenuSub = DropdownMenuPrimitive__namespace.Sub;
|
|
1650
1775
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
|
|
1651
|
-
var DropdownMenuSubTrigger =
|
|
1776
|
+
var DropdownMenuSubTrigger = React26__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1652
1777
|
DropdownMenuPrimitive__namespace.SubTrigger,
|
|
1653
1778
|
{
|
|
1654
1779
|
ref,
|
|
1655
1780
|
className: cn(
|
|
1656
|
-
"flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
1781
|
+
"flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-foreground data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
1657
1782
|
inset && "pl-8",
|
|
1658
1783
|
className
|
|
1659
1784
|
),
|
|
@@ -1665,7 +1790,7 @@ var DropdownMenuSubTrigger = React24__namespace.forwardRef(({ className, inset,
|
|
|
1665
1790
|
}
|
|
1666
1791
|
));
|
|
1667
1792
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
|
|
1668
|
-
var DropdownMenuSubContent =
|
|
1793
|
+
var DropdownMenuSubContent = React26__namespace.forwardRef(({ className, container, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { container: container ?? void 0, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1669
1794
|
DropdownMenuPrimitive__namespace.SubContent,
|
|
1670
1795
|
{
|
|
1671
1796
|
ref,
|
|
@@ -1677,7 +1802,7 @@ var DropdownMenuSubContent = React24__namespace.forwardRef(({ className, contain
|
|
|
1677
1802
|
}
|
|
1678
1803
|
) }));
|
|
1679
1804
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
|
|
1680
|
-
var DropdownMenuContent =
|
|
1805
|
+
var DropdownMenuContent = React26__namespace.forwardRef(({ className, sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { container: container ?? void 0, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1681
1806
|
DropdownMenuPrimitive__namespace.Content,
|
|
1682
1807
|
{
|
|
1683
1808
|
ref,
|
|
@@ -1691,12 +1816,12 @@ var DropdownMenuContent = React24__namespace.forwardRef(({ className, sideOffset
|
|
|
1691
1816
|
}
|
|
1692
1817
|
) }));
|
|
1693
1818
|
DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
|
|
1694
|
-
var DropdownMenuItem =
|
|
1819
|
+
var DropdownMenuItem = React26__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1695
1820
|
DropdownMenuPrimitive__namespace.Item,
|
|
1696
1821
|
{
|
|
1697
1822
|
ref,
|
|
1698
1823
|
className: cn(
|
|
1699
|
-
"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-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
1824
|
+
"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-accent focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
1700
1825
|
inset && "pl-8",
|
|
1701
1826
|
className
|
|
1702
1827
|
),
|
|
@@ -1704,12 +1829,12 @@ var DropdownMenuItem = React24__namespace.forwardRef(({ className, inset, ...pro
|
|
|
1704
1829
|
}
|
|
1705
1830
|
));
|
|
1706
1831
|
DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
|
|
1707
|
-
var DropdownMenuCheckboxItem =
|
|
1832
|
+
var DropdownMenuCheckboxItem = React26__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1708
1833
|
DropdownMenuPrimitive__namespace.CheckboxItem,
|
|
1709
1834
|
{
|
|
1710
1835
|
ref,
|
|
1711
1836
|
className: cn(
|
|
1712
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1837
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1713
1838
|
className
|
|
1714
1839
|
),
|
|
1715
1840
|
checked,
|
|
@@ -1721,12 +1846,12 @@ var DropdownMenuCheckboxItem = React24__namespace.forwardRef(({ className, child
|
|
|
1721
1846
|
}
|
|
1722
1847
|
));
|
|
1723
1848
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
|
|
1724
|
-
var DropdownMenuRadioItem =
|
|
1849
|
+
var DropdownMenuRadioItem = React26__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1725
1850
|
DropdownMenuPrimitive__namespace.RadioItem,
|
|
1726
1851
|
{
|
|
1727
1852
|
ref,
|
|
1728
1853
|
className: cn(
|
|
1729
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1854
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1730
1855
|
className
|
|
1731
1856
|
),
|
|
1732
1857
|
...props,
|
|
@@ -1737,7 +1862,7 @@ var DropdownMenuRadioItem = React24__namespace.forwardRef(({ className, children
|
|
|
1737
1862
|
}
|
|
1738
1863
|
));
|
|
1739
1864
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
|
|
1740
|
-
var DropdownMenuLabel =
|
|
1865
|
+
var DropdownMenuLabel = React26__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1741
1866
|
DropdownMenuPrimitive__namespace.Label,
|
|
1742
1867
|
{
|
|
1743
1868
|
ref,
|
|
@@ -1750,7 +1875,7 @@ var DropdownMenuLabel = React24__namespace.forwardRef(({ className, inset, ...pr
|
|
|
1750
1875
|
}
|
|
1751
1876
|
));
|
|
1752
1877
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
|
|
1753
|
-
var DropdownMenuSeparator =
|
|
1878
|
+
var DropdownMenuSeparator = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1754
1879
|
DropdownMenuPrimitive__namespace.Separator,
|
|
1755
1880
|
{
|
|
1756
1881
|
ref,
|
|
@@ -1784,8 +1909,8 @@ function DataTableColumnHeader({
|
|
|
1784
1909
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1785
1910
|
Button,
|
|
1786
1911
|
{
|
|
1787
|
-
variant:
|
|
1788
|
-
size:
|
|
1912
|
+
variant: "ghost" /* Ghost */,
|
|
1913
|
+
size: "sm" /* Sm */,
|
|
1789
1914
|
className: "data-[state=open]:bg-accent -ml-3 h-8",
|
|
1790
1915
|
children: [
|
|
1791
1916
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: title }),
|
|
@@ -1819,8 +1944,8 @@ function DataTableViewOptions({
|
|
|
1819
1944
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1820
1945
|
Button,
|
|
1821
1946
|
{
|
|
1822
|
-
variant:
|
|
1823
|
-
size:
|
|
1947
|
+
variant: "outline" /* Outline */,
|
|
1948
|
+
size: "sm" /* Sm */,
|
|
1824
1949
|
className: "ml-auto hidden h-8 lg:flex",
|
|
1825
1950
|
children: [
|
|
1826
1951
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Settings2, { className: "size-4" }),
|
|
@@ -1865,7 +1990,7 @@ function Skeleton({
|
|
|
1865
1990
|
}
|
|
1866
1991
|
);
|
|
1867
1992
|
}
|
|
1868
|
-
var Spinner =
|
|
1993
|
+
var Spinner = React26__namespace.forwardRef(
|
|
1869
1994
|
({ className, icon: Icon2 = lucideReact.Loader2, size = "size-4", ...props }, ref) => {
|
|
1870
1995
|
const textColorClasses = className?.match(/\btext-\S+/g)?.join(" ") || "";
|
|
1871
1996
|
const wrapperClasses = lodash.trim(className?.replace(/\btext-\S+/g, "") || "");
|
|
@@ -1881,7 +2006,7 @@ var Spinner = React24__namespace.forwardRef(
|
|
|
1881
2006
|
}
|
|
1882
2007
|
);
|
|
1883
2008
|
Spinner.displayName = "Spinner";
|
|
1884
|
-
var Slider =
|
|
2009
|
+
var Slider = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1885
2010
|
SliderPrimitive__namespace.Root,
|
|
1886
2011
|
{
|
|
1887
2012
|
ref,
|
|
@@ -1893,7 +2018,7 @@ var Slider = React24__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1893
2018
|
}
|
|
1894
2019
|
));
|
|
1895
2020
|
Slider.displayName = SliderPrimitive__namespace.Root.displayName;
|
|
1896
|
-
var SliderTrack =
|
|
2021
|
+
var SliderTrack = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1897
2022
|
SliderPrimitive__namespace.Track,
|
|
1898
2023
|
{
|
|
1899
2024
|
ref,
|
|
@@ -1905,7 +2030,7 @@ var SliderTrack = React24__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
1905
2030
|
}
|
|
1906
2031
|
));
|
|
1907
2032
|
SliderTrack.displayName = SliderPrimitive__namespace.Track.displayName;
|
|
1908
|
-
var SliderRange =
|
|
2033
|
+
var SliderRange = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1909
2034
|
SliderPrimitive__namespace.Range,
|
|
1910
2035
|
{
|
|
1911
2036
|
ref,
|
|
@@ -1914,7 +2039,7 @@ var SliderRange = React24__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
1914
2039
|
}
|
|
1915
2040
|
));
|
|
1916
2041
|
SliderRange.displayName = SliderPrimitive__namespace.Range.displayName;
|
|
1917
|
-
var SliderThumb =
|
|
2042
|
+
var SliderThumb = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1918
2043
|
SliderPrimitive__namespace.Thumb,
|
|
1919
2044
|
{
|
|
1920
2045
|
ref,
|
|
@@ -1926,7 +2051,7 @@ var SliderThumb = React24__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
1926
2051
|
}
|
|
1927
2052
|
));
|
|
1928
2053
|
SliderThumb.displayName = SliderPrimitive__namespace.Thumb.displayName;
|
|
1929
|
-
var Progress =
|
|
2054
|
+
var Progress = React26__namespace.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1930
2055
|
ProgressPrimitive__namespace.Root,
|
|
1931
2056
|
{
|
|
1932
2057
|
ref,
|
|
@@ -1961,6 +2086,26 @@ var Toaster = ({ ...props }) => {
|
|
|
1961
2086
|
}
|
|
1962
2087
|
);
|
|
1963
2088
|
};
|
|
2089
|
+
function useToast(options = {}) {
|
|
2090
|
+
const { defaultDuration, defaultPosition } = options;
|
|
2091
|
+
return React26.useMemo(() => {
|
|
2092
|
+
const mergeDefaults = (opts) => ({
|
|
2093
|
+
duration: defaultDuration,
|
|
2094
|
+
position: defaultPosition,
|
|
2095
|
+
...opts
|
|
2096
|
+
});
|
|
2097
|
+
return {
|
|
2098
|
+
toast: (message, opts) => sonner.toast(message, mergeDefaults(opts)),
|
|
2099
|
+
success: (message, opts) => sonner.toast.success(message, mergeDefaults(opts)),
|
|
2100
|
+
error: (message, opts) => sonner.toast.error(message, mergeDefaults(opts)),
|
|
2101
|
+
warning: (message, opts) => sonner.toast.warning(message, mergeDefaults(opts)),
|
|
2102
|
+
info: (message, opts) => sonner.toast.info(message, mergeDefaults(opts)),
|
|
2103
|
+
loading: (message, opts) => sonner.toast.loading(message, mergeDefaults(opts)),
|
|
2104
|
+
promise: (promiseOrFn, opts) => sonner.toast.promise(promiseOrFn, opts),
|
|
2105
|
+
dismiss: (toastId) => sonner.toast.dismiss(toastId)
|
|
2106
|
+
};
|
|
2107
|
+
}, [defaultDuration, defaultPosition]);
|
|
2108
|
+
}
|
|
1964
2109
|
var TooltipProvider = ({
|
|
1965
2110
|
delayDuration = 0,
|
|
1966
2111
|
...props
|
|
@@ -1976,9 +2121,9 @@ var Tooltip = ({
|
|
|
1976
2121
|
...props
|
|
1977
2122
|
}) => /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Root, { ...props }) });
|
|
1978
2123
|
Tooltip.displayName = TooltipPrimitive__namespace.Root.displayName;
|
|
1979
|
-
var TooltipTrigger =
|
|
2124
|
+
var TooltipTrigger = React26__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Trigger, { ref, ...props }));
|
|
1980
2125
|
TooltipTrigger.displayName = TooltipPrimitive__namespace.Trigger.displayName;
|
|
1981
|
-
var TooltipContent =
|
|
2126
|
+
var TooltipContent = React26__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1982
2127
|
TooltipPrimitive__namespace.Content,
|
|
1983
2128
|
{
|
|
1984
2129
|
ref,
|
|
@@ -1993,7 +2138,7 @@ var TooltipContent = React24__namespace.forwardRef(({ className, sideOffset = 4,
|
|
|
1993
2138
|
TooltipContent.displayName = TooltipPrimitive__namespace.Content.displayName;
|
|
1994
2139
|
var Popover = PopoverPrimitive__namespace.Root;
|
|
1995
2140
|
Popover.displayName = "Popover";
|
|
1996
|
-
var PopoverTrigger =
|
|
2141
|
+
var PopoverTrigger = React26__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1997
2142
|
PopoverPrimitive__namespace.Trigger,
|
|
1998
2143
|
{
|
|
1999
2144
|
ref,
|
|
@@ -2002,7 +2147,7 @@ var PopoverTrigger = React24__namespace.forwardRef(({ ...props }, ref) => /* @__
|
|
|
2002
2147
|
}
|
|
2003
2148
|
));
|
|
2004
2149
|
PopoverTrigger.displayName = "PopoverTrigger";
|
|
2005
|
-
var PopoverContent =
|
|
2150
|
+
var PopoverContent = React26__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2006
2151
|
PopoverPrimitive__namespace.Content,
|
|
2007
2152
|
{
|
|
2008
2153
|
ref,
|
|
@@ -2017,7 +2162,7 @@ var PopoverContent = React24__namespace.forwardRef(({ className, align = "center
|
|
|
2017
2162
|
}
|
|
2018
2163
|
) }));
|
|
2019
2164
|
PopoverContent.displayName = "PopoverContent";
|
|
2020
|
-
var PopoverAnchor =
|
|
2165
|
+
var PopoverAnchor = React26__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2021
2166
|
PopoverPrimitive__namespace.Anchor,
|
|
2022
2167
|
{
|
|
2023
2168
|
ref,
|
|
@@ -2028,7 +2173,7 @@ var PopoverAnchor = React24__namespace.forwardRef(({ ...props }, ref) => /* @__P
|
|
|
2028
2173
|
PopoverAnchor.displayName = "PopoverAnchor";
|
|
2029
2174
|
var HoverCard = HoverCardPrimitive__namespace.Root;
|
|
2030
2175
|
HoverCard.displayName = "HoverCard";
|
|
2031
|
-
var HoverCardTrigger =
|
|
2176
|
+
var HoverCardTrigger = React26__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2032
2177
|
HoverCardPrimitive__namespace.Trigger,
|
|
2033
2178
|
{
|
|
2034
2179
|
ref,
|
|
@@ -2037,7 +2182,7 @@ var HoverCardTrigger = React24__namespace.forwardRef(({ ...props }, ref) => /* @
|
|
|
2037
2182
|
}
|
|
2038
2183
|
));
|
|
2039
2184
|
HoverCardTrigger.displayName = "HoverCardTrigger";
|
|
2040
|
-
var HoverCardContent =
|
|
2185
|
+
var HoverCardContent = React26__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(HoverCardPrimitive__namespace.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2041
2186
|
HoverCardPrimitive__namespace.Content,
|
|
2042
2187
|
{
|
|
2043
2188
|
ref,
|
|
@@ -2052,7 +2197,7 @@ var HoverCardContent = React24__namespace.forwardRef(({ className, align = "cent
|
|
|
2052
2197
|
}
|
|
2053
2198
|
) }));
|
|
2054
2199
|
HoverCardContent.displayName = "HoverCardContent";
|
|
2055
|
-
var Card =
|
|
2200
|
+
var Card = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2056
2201
|
"div",
|
|
2057
2202
|
{
|
|
2058
2203
|
ref,
|
|
@@ -2064,7 +2209,7 @@ var Card = React24__namespace.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
2064
2209
|
}
|
|
2065
2210
|
));
|
|
2066
2211
|
Card.displayName = "Card";
|
|
2067
|
-
var CardHeader =
|
|
2212
|
+
var CardHeader = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2068
2213
|
"div",
|
|
2069
2214
|
{
|
|
2070
2215
|
ref,
|
|
@@ -2073,7 +2218,7 @@ var CardHeader = React24__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
2073
2218
|
}
|
|
2074
2219
|
));
|
|
2075
2220
|
CardHeader.displayName = "CardHeader";
|
|
2076
|
-
var CardTitle =
|
|
2221
|
+
var CardTitle = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2077
2222
|
"div",
|
|
2078
2223
|
{
|
|
2079
2224
|
ref,
|
|
@@ -2082,7 +2227,7 @@ var CardTitle = React24__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
2082
2227
|
}
|
|
2083
2228
|
));
|
|
2084
2229
|
CardTitle.displayName = "CardTitle";
|
|
2085
|
-
var CardDescription =
|
|
2230
|
+
var CardDescription = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2086
2231
|
"div",
|
|
2087
2232
|
{
|
|
2088
2233
|
ref,
|
|
@@ -2091,9 +2236,9 @@ var CardDescription = React24__namespace.forwardRef(({ className, ...props }, re
|
|
|
2091
2236
|
}
|
|
2092
2237
|
));
|
|
2093
2238
|
CardDescription.displayName = "CardDescription";
|
|
2094
|
-
var CardContent =
|
|
2239
|
+
var CardContent = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
2095
2240
|
CardContent.displayName = "CardContent";
|
|
2096
|
-
var CardFooter =
|
|
2241
|
+
var CardFooter = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2097
2242
|
"div",
|
|
2098
2243
|
{
|
|
2099
2244
|
ref,
|
|
@@ -2102,7 +2247,7 @@ var CardFooter = React24__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
2102
2247
|
}
|
|
2103
2248
|
));
|
|
2104
2249
|
CardFooter.displayName = "CardFooter";
|
|
2105
|
-
var Header =
|
|
2250
|
+
var Header = React26__namespace.default.forwardRef(
|
|
2106
2251
|
({ children, className }, ref) => {
|
|
2107
2252
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2108
2253
|
"header",
|
|
@@ -2118,7 +2263,7 @@ var Header = React24__namespace.default.forwardRef(
|
|
|
2118
2263
|
}
|
|
2119
2264
|
);
|
|
2120
2265
|
Header.displayName = "Header";
|
|
2121
|
-
var NavigationMenu =
|
|
2266
|
+
var NavigationMenu = React26__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2122
2267
|
NavigationMenuPrimitive__namespace.Root,
|
|
2123
2268
|
{
|
|
2124
2269
|
ref,
|
|
@@ -2134,7 +2279,7 @@ var NavigationMenu = React24__namespace.forwardRef(({ className, children, ...pr
|
|
|
2134
2279
|
}
|
|
2135
2280
|
));
|
|
2136
2281
|
NavigationMenu.displayName = NavigationMenuPrimitive__namespace.Root.displayName;
|
|
2137
|
-
var NavigationMenuList =
|
|
2282
|
+
var NavigationMenuList = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2138
2283
|
NavigationMenuPrimitive__namespace.List,
|
|
2139
2284
|
{
|
|
2140
2285
|
ref,
|
|
@@ -2150,7 +2295,7 @@ var NavigationMenuItem = NavigationMenuPrimitive__namespace.Item;
|
|
|
2150
2295
|
var navigationMenuTriggerStyle = classVarianceAuthority.cva(
|
|
2151
2296
|
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"
|
|
2152
2297
|
);
|
|
2153
|
-
var NavigationMenuTrigger =
|
|
2298
|
+
var NavigationMenuTrigger = React26__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2154
2299
|
NavigationMenuPrimitive__namespace.Trigger,
|
|
2155
2300
|
{
|
|
2156
2301
|
ref,
|
|
@@ -2170,7 +2315,7 @@ var NavigationMenuTrigger = React24__namespace.forwardRef(({ className, children
|
|
|
2170
2315
|
}
|
|
2171
2316
|
));
|
|
2172
2317
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive__namespace.Trigger.displayName;
|
|
2173
|
-
var NavigationMenuContent =
|
|
2318
|
+
var NavigationMenuContent = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2174
2319
|
NavigationMenuPrimitive__namespace.Content,
|
|
2175
2320
|
{
|
|
2176
2321
|
ref,
|
|
@@ -2183,7 +2328,7 @@ var NavigationMenuContent = React24__namespace.forwardRef(({ className, ...props
|
|
|
2183
2328
|
));
|
|
2184
2329
|
NavigationMenuContent.displayName = NavigationMenuPrimitive__namespace.Content.displayName;
|
|
2185
2330
|
var NavigationMenuLink = NavigationMenuPrimitive__namespace.Link;
|
|
2186
|
-
var NavigationMenuViewport =
|
|
2331
|
+
var NavigationMenuViewport = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2187
2332
|
NavigationMenuPrimitive__namespace.Viewport,
|
|
2188
2333
|
{
|
|
2189
2334
|
className: cn(
|
|
@@ -2195,7 +2340,7 @@ var NavigationMenuViewport = React24__namespace.forwardRef(({ className, ...prop
|
|
|
2195
2340
|
}
|
|
2196
2341
|
) }));
|
|
2197
2342
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive__namespace.Viewport.displayName;
|
|
2198
|
-
var NavigationMenuIndicator =
|
|
2343
|
+
var NavigationMenuIndicator = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2199
2344
|
NavigationMenuPrimitive__namespace.Indicator,
|
|
2200
2345
|
{
|
|
2201
2346
|
ref,
|
|
@@ -2579,7 +2724,7 @@ function PaginationItem({ ...props }) {
|
|
|
2579
2724
|
function PaginationLink({
|
|
2580
2725
|
className,
|
|
2581
2726
|
isActive,
|
|
2582
|
-
size =
|
|
2727
|
+
size = "icon" /* Icon */,
|
|
2583
2728
|
asChild,
|
|
2584
2729
|
...props
|
|
2585
2730
|
}) {
|
|
@@ -2592,7 +2737,7 @@ function PaginationLink({
|
|
|
2592
2737
|
"data-active": isActive,
|
|
2593
2738
|
className: cn(
|
|
2594
2739
|
buttonVariants({
|
|
2595
|
-
variant: isActive ?
|
|
2740
|
+
variant: isActive ? "outline" /* Outline */ : "ghost" /* Ghost */,
|
|
2596
2741
|
size
|
|
2597
2742
|
}),
|
|
2598
2743
|
className
|
|
@@ -2610,7 +2755,7 @@ function PaginationPrevious({
|
|
|
2610
2755
|
PaginationLink,
|
|
2611
2756
|
{
|
|
2612
2757
|
"aria-label": "Go to previous page",
|
|
2613
|
-
size:
|
|
2758
|
+
size: "default" /* Default */,
|
|
2614
2759
|
className: cn("gap-1 px-2.5 sm:pl-2.5", className),
|
|
2615
2760
|
...props,
|
|
2616
2761
|
children: [
|
|
@@ -2629,7 +2774,7 @@ function PaginationNext({
|
|
|
2629
2774
|
PaginationLink,
|
|
2630
2775
|
{
|
|
2631
2776
|
"aria-label": "Go to next page",
|
|
2632
|
-
size:
|
|
2777
|
+
size: "default" /* Default */,
|
|
2633
2778
|
className: cn("gap-1 px-2.5 sm:pr-2.5", className),
|
|
2634
2779
|
...props,
|
|
2635
2780
|
children: [
|
|
@@ -2719,7 +2864,7 @@ var Sheet = SheetPrimitive__namespace.Root;
|
|
|
2719
2864
|
var SheetTrigger = SheetPrimitive__namespace.Trigger;
|
|
2720
2865
|
var SheetClose = SheetPrimitive__namespace.Close;
|
|
2721
2866
|
var SheetPortal = SheetPrimitive__namespace.Portal;
|
|
2722
|
-
var SheetOverlay =
|
|
2867
|
+
var SheetOverlay = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2723
2868
|
SheetPrimitive__namespace.Overlay,
|
|
2724
2869
|
{
|
|
2725
2870
|
className: cn(
|
|
@@ -2747,7 +2892,7 @@ var sheetVariants = classVarianceAuthority.cva(
|
|
|
2747
2892
|
}
|
|
2748
2893
|
}
|
|
2749
2894
|
);
|
|
2750
|
-
var SheetContent =
|
|
2895
|
+
var SheetContent = React26__namespace.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(SheetPortal, { children: [
|
|
2751
2896
|
/* @__PURE__ */ jsxRuntime.jsx(SheetOverlay, {}),
|
|
2752
2897
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2753
2898
|
SheetPrimitive__namespace.Content,
|
|
@@ -2794,7 +2939,7 @@ var SheetFooter = ({
|
|
|
2794
2939
|
}
|
|
2795
2940
|
);
|
|
2796
2941
|
SheetFooter.displayName = "SheetFooter";
|
|
2797
|
-
var SheetTitle =
|
|
2942
|
+
var SheetTitle = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2798
2943
|
SheetPrimitive__namespace.Title,
|
|
2799
2944
|
{
|
|
2800
2945
|
ref,
|
|
@@ -2803,7 +2948,7 @@ var SheetTitle = React24__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
2803
2948
|
}
|
|
2804
2949
|
));
|
|
2805
2950
|
SheetTitle.displayName = SheetPrimitive__namespace.Title.displayName;
|
|
2806
|
-
var SheetDescription =
|
|
2951
|
+
var SheetDescription = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2807
2952
|
SheetPrimitive__namespace.Description,
|
|
2808
2953
|
{
|
|
2809
2954
|
ref,
|
|
@@ -2816,7 +2961,7 @@ var Dialog = SheetPrimitive__namespace.Root;
|
|
|
2816
2961
|
var DialogTrigger = SheetPrimitive__namespace.Trigger;
|
|
2817
2962
|
var DialogPortal = SheetPrimitive__namespace.Portal;
|
|
2818
2963
|
var DialogClose = SheetPrimitive__namespace.Close;
|
|
2819
|
-
var DialogOverlay =
|
|
2964
|
+
var DialogOverlay = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2820
2965
|
SheetPrimitive__namespace.Overlay,
|
|
2821
2966
|
{
|
|
2822
2967
|
ref,
|
|
@@ -2828,7 +2973,7 @@ var DialogOverlay = React24__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
2828
2973
|
}
|
|
2829
2974
|
));
|
|
2830
2975
|
DialogOverlay.displayName = SheetPrimitive__namespace.Overlay.displayName;
|
|
2831
|
-
var DialogContent =
|
|
2976
|
+
var DialogContent = React26__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { children: [
|
|
2832
2977
|
/* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, {}),
|
|
2833
2978
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2834
2979
|
SheetPrimitive__namespace.Content,
|
|
@@ -2878,7 +3023,7 @@ var DialogFooter = ({
|
|
|
2878
3023
|
}
|
|
2879
3024
|
);
|
|
2880
3025
|
DialogFooter.displayName = "DialogFooter";
|
|
2881
|
-
var DialogTitle =
|
|
3026
|
+
var DialogTitle = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2882
3027
|
SheetPrimitive__namespace.Title,
|
|
2883
3028
|
{
|
|
2884
3029
|
ref,
|
|
@@ -2890,7 +3035,7 @@ var DialogTitle = React24__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
2890
3035
|
}
|
|
2891
3036
|
));
|
|
2892
3037
|
DialogTitle.displayName = SheetPrimitive__namespace.Title.displayName;
|
|
2893
|
-
var DialogDescription =
|
|
3038
|
+
var DialogDescription = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2894
3039
|
SheetPrimitive__namespace.Description,
|
|
2895
3040
|
{
|
|
2896
3041
|
ref,
|
|
@@ -2899,288 +3044,250 @@ var DialogDescription = React24__namespace.forwardRef(({ className, ...props },
|
|
|
2899
3044
|
}
|
|
2900
3045
|
));
|
|
2901
3046
|
DialogDescription.displayName = SheetPrimitive__namespace.Description.displayName;
|
|
2902
|
-
|
|
2903
|
-
...props
|
|
2904
|
-
}) {
|
|
2905
|
-
return /* @__PURE__ */ jsxRuntime.jsx(AlertDialogPrimitive__namespace.Root, { "data-slot": "alert-dialog", ...props });
|
|
2906
|
-
}
|
|
2907
|
-
function AlertDialogTrigger({
|
|
2908
|
-
...props
|
|
2909
|
-
}) {
|
|
2910
|
-
return /* @__PURE__ */ jsxRuntime.jsx(AlertDialogPrimitive__namespace.Trigger, { "data-slot": "alert-dialog-trigger", ...props });
|
|
2911
|
-
}
|
|
2912
|
-
function AlertDialogPortal({
|
|
3047
|
+
var AlertDialog = ({
|
|
2913
3048
|
...props
|
|
2914
|
-
}) {
|
|
2915
|
-
|
|
2916
|
-
}
|
|
2917
|
-
|
|
2918
|
-
|
|
3049
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(AlertDialogPrimitive__namespace.Root, { "data-slot": "alert-dialog", ...props });
|
|
3050
|
+
AlertDialog.displayName = "AlertDialog";
|
|
3051
|
+
var AlertDialogTrigger = React26__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3052
|
+
AlertDialogPrimitive__namespace.Trigger,
|
|
3053
|
+
{
|
|
3054
|
+
ref,
|
|
3055
|
+
"data-slot": "alert-dialog-trigger",
|
|
3056
|
+
...props
|
|
3057
|
+
}
|
|
3058
|
+
));
|
|
3059
|
+
AlertDialogTrigger.displayName = AlertDialogPrimitive__namespace.Trigger.displayName;
|
|
3060
|
+
var AlertDialogPortal = ({
|
|
2919
3061
|
...props
|
|
2920
|
-
}) {
|
|
2921
|
-
|
|
2922
|
-
|
|
3062
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(AlertDialogPrimitive__namespace.Portal, { "data-slot": "alert-dialog-portal", ...props });
|
|
3063
|
+
AlertDialogPortal.displayName = "AlertDialogPortal";
|
|
3064
|
+
var AlertDialogOverlay = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3065
|
+
AlertDialogPrimitive__namespace.Overlay,
|
|
3066
|
+
{
|
|
3067
|
+
ref,
|
|
3068
|
+
"data-slot": "alert-dialog-overlay",
|
|
3069
|
+
className: cn(
|
|
3070
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
3071
|
+
className
|
|
3072
|
+
),
|
|
3073
|
+
...props
|
|
3074
|
+
}
|
|
3075
|
+
));
|
|
3076
|
+
AlertDialogOverlay.displayName = AlertDialogPrimitive__namespace.Overlay.displayName;
|
|
3077
|
+
var AlertDialogContent = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(AlertDialogPortal, { children: [
|
|
3078
|
+
/* @__PURE__ */ jsxRuntime.jsx(AlertDialogOverlay, {}),
|
|
3079
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3080
|
+
AlertDialogPrimitive__namespace.Content,
|
|
2923
3081
|
{
|
|
2924
|
-
|
|
3082
|
+
ref,
|
|
3083
|
+
"data-slot": "alert-dialog-content",
|
|
2925
3084
|
className: cn(
|
|
2926
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed
|
|
3085
|
+
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
2927
3086
|
className
|
|
2928
3087
|
),
|
|
2929
3088
|
...props
|
|
2930
3089
|
}
|
|
2931
|
-
)
|
|
2932
|
-
}
|
|
2933
|
-
|
|
3090
|
+
)
|
|
3091
|
+
] }));
|
|
3092
|
+
AlertDialogContent.displayName = AlertDialogPrimitive__namespace.Content.displayName;
|
|
3093
|
+
var AlertDialogHeader = ({
|
|
2934
3094
|
className,
|
|
2935
3095
|
...props
|
|
2936
|
-
})
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
),
|
|
2947
|
-
...props
|
|
2948
|
-
}
|
|
2949
|
-
)
|
|
2950
|
-
] });
|
|
2951
|
-
}
|
|
2952
|
-
function AlertDialogHeader({
|
|
3096
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3097
|
+
"div",
|
|
3098
|
+
{
|
|
3099
|
+
"data-slot": "alert-dialog-header",
|
|
3100
|
+
className: cn("flex flex-col gap-2 text-center sm:text-left", className),
|
|
3101
|
+
...props
|
|
3102
|
+
}
|
|
3103
|
+
);
|
|
3104
|
+
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
3105
|
+
var AlertDialogFooter = ({
|
|
2953
3106
|
className,
|
|
2954
3107
|
...props
|
|
2955
|
-
})
|
|
2956
|
-
|
|
2957
|
-
|
|
3108
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3109
|
+
"div",
|
|
3110
|
+
{
|
|
3111
|
+
"data-slot": "alert-dialog-footer",
|
|
3112
|
+
className: cn(
|
|
3113
|
+
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
3114
|
+
className
|
|
3115
|
+
),
|
|
3116
|
+
...props
|
|
3117
|
+
}
|
|
3118
|
+
);
|
|
3119
|
+
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
3120
|
+
var AlertDialogTitle = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3121
|
+
AlertDialogPrimitive__namespace.Title,
|
|
3122
|
+
{
|
|
3123
|
+
ref,
|
|
3124
|
+
"data-slot": "alert-dialog-title",
|
|
3125
|
+
className: cn("text-lg font-semibold", className),
|
|
3126
|
+
...props
|
|
3127
|
+
}
|
|
3128
|
+
));
|
|
3129
|
+
AlertDialogTitle.displayName = AlertDialogPrimitive__namespace.Title.displayName;
|
|
3130
|
+
var AlertDialogDescription = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3131
|
+
AlertDialogPrimitive__namespace.Description,
|
|
3132
|
+
{
|
|
3133
|
+
ref,
|
|
3134
|
+
"data-slot": "alert-dialog-description",
|
|
3135
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
3136
|
+
...props
|
|
3137
|
+
}
|
|
3138
|
+
));
|
|
3139
|
+
AlertDialogDescription.displayName = AlertDialogPrimitive__namespace.Description.displayName;
|
|
3140
|
+
var AlertDialogAction = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3141
|
+
AlertDialogPrimitive__namespace.Action,
|
|
3142
|
+
{
|
|
3143
|
+
ref,
|
|
3144
|
+
className: cn(buttonVariants(), className),
|
|
3145
|
+
...props
|
|
3146
|
+
}
|
|
3147
|
+
));
|
|
3148
|
+
AlertDialogAction.displayName = AlertDialogPrimitive__namespace.Action.displayName;
|
|
3149
|
+
var AlertDialogCancel = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3150
|
+
AlertDialogPrimitive__namespace.Cancel,
|
|
3151
|
+
{
|
|
3152
|
+
ref,
|
|
3153
|
+
className: cn(buttonVariants({ variant: "outline" /* Outline */ }), className),
|
|
3154
|
+
...props
|
|
3155
|
+
}
|
|
3156
|
+
));
|
|
3157
|
+
AlertDialogCancel.displayName = AlertDialogPrimitive__namespace.Cancel.displayName;
|
|
3158
|
+
var Drawer = ({
|
|
3159
|
+
...props
|
|
3160
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Root, { "data-slot": "drawer", ...props });
|
|
3161
|
+
Drawer.displayName = "Drawer";
|
|
3162
|
+
var DrawerTrigger = React26__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Trigger, { ref, "data-slot": "drawer-trigger", ...props }));
|
|
3163
|
+
DrawerTrigger.displayName = vaul.Drawer.Trigger.displayName;
|
|
3164
|
+
var DrawerPortal = ({
|
|
3165
|
+
...props
|
|
3166
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Portal, { "data-slot": "drawer-portal", ...props });
|
|
3167
|
+
DrawerPortal.displayName = "DrawerPortal";
|
|
3168
|
+
var DrawerClose = React26__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Close, { ref, "data-slot": "drawer-close", ...props }));
|
|
3169
|
+
DrawerClose.displayName = vaul.Drawer.Close.displayName;
|
|
3170
|
+
var DrawerOverlay = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3171
|
+
vaul.Drawer.Overlay,
|
|
3172
|
+
{
|
|
3173
|
+
ref,
|
|
3174
|
+
"data-slot": "drawer-overlay",
|
|
3175
|
+
className: cn(
|
|
3176
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
3177
|
+
className
|
|
3178
|
+
),
|
|
3179
|
+
...props
|
|
3180
|
+
}
|
|
3181
|
+
));
|
|
3182
|
+
DrawerOverlay.displayName = vaul.Drawer.Overlay.displayName;
|
|
3183
|
+
var DrawerContent = React26__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DrawerPortal, { "data-slot": "drawer-portal", children: [
|
|
3184
|
+
/* @__PURE__ */ jsxRuntime.jsx(DrawerOverlay, {}),
|
|
3185
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3186
|
+
vaul.Drawer.Content,
|
|
2958
3187
|
{
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
3188
|
+
ref,
|
|
3189
|
+
"data-slot": "drawer-content",
|
|
3190
|
+
className: cn(
|
|
3191
|
+
"group/drawer-content bg-background fixed z-50 flex h-auto flex-col",
|
|
3192
|
+
"data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b",
|
|
3193
|
+
"data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t",
|
|
3194
|
+
"data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm",
|
|
3195
|
+
"data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",
|
|
3196
|
+
className
|
|
3197
|
+
),
|
|
3198
|
+
...props,
|
|
3199
|
+
children: [
|
|
3200
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
|
|
3201
|
+
children
|
|
3202
|
+
]
|
|
2962
3203
|
}
|
|
2963
|
-
)
|
|
2964
|
-
}
|
|
2965
|
-
|
|
3204
|
+
)
|
|
3205
|
+
] }));
|
|
3206
|
+
DrawerContent.displayName = vaul.Drawer.Content.displayName;
|
|
3207
|
+
var DrawerHeader = ({
|
|
3208
|
+
className,
|
|
3209
|
+
...props
|
|
3210
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3211
|
+
"div",
|
|
3212
|
+
{
|
|
3213
|
+
"data-slot": "drawer-header",
|
|
3214
|
+
className: cn("flex flex-col gap-1.5 p-4 text-center sm:text-left", className),
|
|
3215
|
+
...props
|
|
3216
|
+
}
|
|
3217
|
+
);
|
|
3218
|
+
DrawerHeader.displayName = "DrawerHeader";
|
|
3219
|
+
var DrawerFooter = ({
|
|
3220
|
+
className,
|
|
3221
|
+
...props
|
|
3222
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3223
|
+
"div",
|
|
3224
|
+
{
|
|
3225
|
+
"data-slot": "drawer-footer",
|
|
3226
|
+
className: cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
3227
|
+
...props
|
|
3228
|
+
}
|
|
3229
|
+
);
|
|
3230
|
+
DrawerFooter.displayName = "DrawerFooter";
|
|
3231
|
+
var DrawerTitle = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3232
|
+
vaul.Drawer.Title,
|
|
3233
|
+
{
|
|
3234
|
+
ref,
|
|
3235
|
+
"data-slot": "drawer-title",
|
|
3236
|
+
className: cn("text-lg font-semibold text-foreground", className),
|
|
3237
|
+
...props
|
|
3238
|
+
}
|
|
3239
|
+
));
|
|
3240
|
+
DrawerTitle.displayName = vaul.Drawer.Title.displayName;
|
|
3241
|
+
var DrawerDescription = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3242
|
+
vaul.Drawer.Description,
|
|
3243
|
+
{
|
|
3244
|
+
ref,
|
|
3245
|
+
"data-slot": "drawer-description",
|
|
3246
|
+
className: cn("text-sm text-muted-foreground", className),
|
|
3247
|
+
...props
|
|
3248
|
+
}
|
|
3249
|
+
));
|
|
3250
|
+
DrawerDescription.displayName = vaul.Drawer.Description.displayName;
|
|
3251
|
+
function ResizablePanelGroup({
|
|
2966
3252
|
className,
|
|
2967
3253
|
...props
|
|
2968
3254
|
}) {
|
|
2969
3255
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2970
|
-
|
|
3256
|
+
ResizablePrimitive__namespace.PanelGroup,
|
|
2971
3257
|
{
|
|
2972
|
-
"data-slot": "
|
|
3258
|
+
"data-slot": "resizable-panel-group",
|
|
2973
3259
|
className: cn(
|
|
2974
|
-
"flex
|
|
3260
|
+
"flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
|
|
2975
3261
|
className
|
|
2976
3262
|
),
|
|
2977
3263
|
...props
|
|
2978
3264
|
}
|
|
2979
3265
|
);
|
|
2980
3266
|
}
|
|
2981
|
-
function
|
|
2982
|
-
className,
|
|
3267
|
+
function ResizablePanel({
|
|
2983
3268
|
...props
|
|
2984
3269
|
}) {
|
|
2985
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2986
|
-
AlertDialogPrimitive__namespace.Title,
|
|
2987
|
-
{
|
|
2988
|
-
"data-slot": "alert-dialog-title",
|
|
2989
|
-
className: cn("text-lg font-semibold", className),
|
|
2990
|
-
...props
|
|
2991
|
-
}
|
|
2992
|
-
);
|
|
3270
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ResizablePrimitive__namespace.Panel, { "data-slot": "resizable-panel", ...props });
|
|
2993
3271
|
}
|
|
2994
|
-
function
|
|
3272
|
+
function ResizableHandle({
|
|
3273
|
+
withHandle,
|
|
2995
3274
|
className,
|
|
2996
3275
|
...props
|
|
2997
3276
|
}) {
|
|
2998
3277
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2999
|
-
|
|
3278
|
+
ResizablePrimitive__namespace.PanelResizeHandle,
|
|
3000
3279
|
{
|
|
3001
|
-
"data-slot": "
|
|
3002
|
-
className: cn(
|
|
3003
|
-
|
|
3280
|
+
"data-slot": "resizable-handle",
|
|
3281
|
+
className: cn(
|
|
3282
|
+
"bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",
|
|
3283
|
+
className
|
|
3284
|
+
),
|
|
3285
|
+
...props,
|
|
3286
|
+
children: withHandle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.GripVertical, { className: "size-2.5" }) })
|
|
3004
3287
|
}
|
|
3005
3288
|
);
|
|
3006
3289
|
}
|
|
3007
|
-
function
|
|
3008
|
-
className,
|
|
3009
|
-
...props
|
|
3010
|
-
}) {
|
|
3011
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3012
|
-
AlertDialogPrimitive__namespace.Action,
|
|
3013
|
-
{
|
|
3014
|
-
className: cn(buttonVariants(), className),
|
|
3015
|
-
...props
|
|
3016
|
-
}
|
|
3017
|
-
);
|
|
3018
|
-
}
|
|
3019
|
-
function AlertDialogCancel({
|
|
3020
|
-
className,
|
|
3021
|
-
...props
|
|
3022
|
-
}) {
|
|
3023
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3024
|
-
AlertDialogPrimitive__namespace.Cancel,
|
|
3025
|
-
{
|
|
3026
|
-
className: cn(buttonVariants({ variant: uikitContracts.ButtonVariant.Outline }), className),
|
|
3027
|
-
...props
|
|
3028
|
-
}
|
|
3029
|
-
);
|
|
3030
|
-
}
|
|
3031
|
-
function Drawer({
|
|
3032
|
-
...props
|
|
3033
|
-
}) {
|
|
3034
|
-
return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Root, { "data-slot": "drawer", ...props });
|
|
3035
|
-
}
|
|
3036
|
-
function DrawerTrigger({
|
|
3037
|
-
...props
|
|
3038
|
-
}) {
|
|
3039
|
-
return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Trigger, { "data-slot": "drawer-trigger", ...props });
|
|
3040
|
-
}
|
|
3041
|
-
function DrawerPortal({
|
|
3042
|
-
...props
|
|
3043
|
-
}) {
|
|
3044
|
-
return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Portal, { "data-slot": "drawer-portal", ...props });
|
|
3045
|
-
}
|
|
3046
|
-
function DrawerClose({
|
|
3047
|
-
...props
|
|
3048
|
-
}) {
|
|
3049
|
-
return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Close, { "data-slot": "drawer-close", ...props });
|
|
3050
|
-
}
|
|
3051
|
-
function DrawerOverlay({
|
|
3052
|
-
className,
|
|
3053
|
-
...props
|
|
3054
|
-
}) {
|
|
3055
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3056
|
-
vaul.Drawer.Overlay,
|
|
3057
|
-
{
|
|
3058
|
-
"data-slot": "drawer-overlay",
|
|
3059
|
-
className: cn(
|
|
3060
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
3061
|
-
className
|
|
3062
|
-
),
|
|
3063
|
-
...props
|
|
3064
|
-
}
|
|
3065
|
-
);
|
|
3066
|
-
}
|
|
3067
|
-
function DrawerContent({
|
|
3068
|
-
className,
|
|
3069
|
-
children,
|
|
3070
|
-
...props
|
|
3071
|
-
}) {
|
|
3072
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(DrawerPortal, { "data-slot": "drawer-portal", children: [
|
|
3073
|
-
/* @__PURE__ */ jsxRuntime.jsx(DrawerOverlay, {}),
|
|
3074
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3075
|
-
vaul.Drawer.Content,
|
|
3076
|
-
{
|
|
3077
|
-
"data-slot": "drawer-content",
|
|
3078
|
-
className: cn(
|
|
3079
|
-
"group/drawer-content bg-background fixed z-50 flex h-auto flex-col",
|
|
3080
|
-
"data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b",
|
|
3081
|
-
"data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t",
|
|
3082
|
-
"data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm",
|
|
3083
|
-
"data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",
|
|
3084
|
-
className
|
|
3085
|
-
),
|
|
3086
|
-
...props,
|
|
3087
|
-
children: [
|
|
3088
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
|
|
3089
|
-
children
|
|
3090
|
-
]
|
|
3091
|
-
}
|
|
3092
|
-
)
|
|
3093
|
-
] });
|
|
3094
|
-
}
|
|
3095
|
-
function DrawerHeader({ className, ...props }) {
|
|
3096
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3097
|
-
"div",
|
|
3098
|
-
{
|
|
3099
|
-
"data-slot": "drawer-header",
|
|
3100
|
-
className: cn(
|
|
3101
|
-
"flex flex-col gap-1.5 p-4 text-center sm:text-left",
|
|
3102
|
-
className
|
|
3103
|
-
),
|
|
3104
|
-
...props
|
|
3105
|
-
}
|
|
3106
|
-
);
|
|
3107
|
-
}
|
|
3108
|
-
function DrawerFooter({ className, ...props }) {
|
|
3109
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3110
|
-
"div",
|
|
3111
|
-
{
|
|
3112
|
-
"data-slot": "drawer-footer",
|
|
3113
|
-
className: cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
3114
|
-
...props
|
|
3115
|
-
}
|
|
3116
|
-
);
|
|
3117
|
-
}
|
|
3118
|
-
function DrawerTitle({
|
|
3119
|
-
className,
|
|
3120
|
-
...props
|
|
3121
|
-
}) {
|
|
3122
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3123
|
-
vaul.Drawer.Title,
|
|
3124
|
-
{
|
|
3125
|
-
"data-slot": "drawer-title",
|
|
3126
|
-
className: cn("text-lg font-semibold text-foreground", className),
|
|
3127
|
-
...props
|
|
3128
|
-
}
|
|
3129
|
-
);
|
|
3130
|
-
}
|
|
3131
|
-
function DrawerDescription({
|
|
3132
|
-
className,
|
|
3133
|
-
...props
|
|
3134
|
-
}) {
|
|
3135
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3136
|
-
vaul.Drawer.Description,
|
|
3137
|
-
{
|
|
3138
|
-
"data-slot": "drawer-description",
|
|
3139
|
-
className: cn("text-sm text-muted-foreground", className),
|
|
3140
|
-
...props
|
|
3141
|
-
}
|
|
3142
|
-
);
|
|
3143
|
-
}
|
|
3144
|
-
function ResizablePanelGroup({
|
|
3145
|
-
className,
|
|
3146
|
-
...props
|
|
3147
|
-
}) {
|
|
3148
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3149
|
-
ResizablePrimitive__namespace.PanelGroup,
|
|
3150
|
-
{
|
|
3151
|
-
"data-slot": "resizable-panel-group",
|
|
3152
|
-
className: cn(
|
|
3153
|
-
"flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
|
|
3154
|
-
className
|
|
3155
|
-
),
|
|
3156
|
-
...props
|
|
3157
|
-
}
|
|
3158
|
-
);
|
|
3159
|
-
}
|
|
3160
|
-
function ResizablePanel({
|
|
3161
|
-
...props
|
|
3162
|
-
}) {
|
|
3163
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ResizablePrimitive__namespace.Panel, { "data-slot": "resizable-panel", ...props });
|
|
3164
|
-
}
|
|
3165
|
-
function ResizableHandle({
|
|
3166
|
-
withHandle,
|
|
3167
|
-
className,
|
|
3168
|
-
...props
|
|
3169
|
-
}) {
|
|
3170
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3171
|
-
ResizablePrimitive__namespace.PanelResizeHandle,
|
|
3172
|
-
{
|
|
3173
|
-
"data-slot": "resizable-handle",
|
|
3174
|
-
className: cn(
|
|
3175
|
-
"bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",
|
|
3176
|
-
className
|
|
3177
|
-
),
|
|
3178
|
-
...props,
|
|
3179
|
-
children: withHandle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.GripVertical, { className: "size-2.5" }) })
|
|
3180
|
-
}
|
|
3181
|
-
);
|
|
3182
|
-
}
|
|
3183
|
-
function ScrollArea({
|
|
3290
|
+
function ScrollArea({
|
|
3184
3291
|
className,
|
|
3185
3292
|
children,
|
|
3186
3293
|
...props
|
|
@@ -3403,7 +3510,7 @@ function ItemFooter({ className, ...props }) {
|
|
|
3403
3510
|
}
|
|
3404
3511
|
);
|
|
3405
3512
|
}
|
|
3406
|
-
var Accordion =
|
|
3513
|
+
var Accordion = React26__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3407
3514
|
AccordionPrimitive__namespace.Root,
|
|
3408
3515
|
{
|
|
3409
3516
|
ref,
|
|
@@ -3412,7 +3519,7 @@ var Accordion = React24__namespace.forwardRef(({ ...props }, ref) => /* @__PURE_
|
|
|
3412
3519
|
}
|
|
3413
3520
|
));
|
|
3414
3521
|
Accordion.displayName = "Accordion";
|
|
3415
|
-
var AccordionItem =
|
|
3522
|
+
var AccordionItem = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3416
3523
|
AccordionPrimitive__namespace.Item,
|
|
3417
3524
|
{
|
|
3418
3525
|
ref,
|
|
@@ -3422,7 +3529,7 @@ var AccordionItem = React24__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
3422
3529
|
}
|
|
3423
3530
|
));
|
|
3424
3531
|
AccordionItem.displayName = "AccordionItem";
|
|
3425
|
-
var AccordionTrigger =
|
|
3532
|
+
var AccordionTrigger = React26__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3426
3533
|
AccordionPrimitive__namespace.Trigger,
|
|
3427
3534
|
{
|
|
3428
3535
|
ref,
|
|
@@ -3439,7 +3546,7 @@ var AccordionTrigger = React24__namespace.forwardRef(({ className, children, ...
|
|
|
3439
3546
|
}
|
|
3440
3547
|
) }));
|
|
3441
3548
|
AccordionTrigger.displayName = "AccordionTrigger";
|
|
3442
|
-
var AccordionContent =
|
|
3549
|
+
var AccordionContent = React26__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3443
3550
|
AccordionPrimitive__namespace.Content,
|
|
3444
3551
|
{
|
|
3445
3552
|
ref,
|
|
@@ -3450,15 +3557,15 @@ var AccordionContent = React24__namespace.forwardRef(({ className, children, ...
|
|
|
3450
3557
|
}
|
|
3451
3558
|
));
|
|
3452
3559
|
AccordionContent.displayName = "AccordionContent";
|
|
3453
|
-
var CarouselContext =
|
|
3560
|
+
var CarouselContext = React26__namespace.createContext(null);
|
|
3454
3561
|
function useCarousel() {
|
|
3455
|
-
const context =
|
|
3562
|
+
const context = React26__namespace.useContext(CarouselContext);
|
|
3456
3563
|
if (!context) {
|
|
3457
3564
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
3458
3565
|
}
|
|
3459
3566
|
return context;
|
|
3460
3567
|
}
|
|
3461
|
-
var Carousel =
|
|
3568
|
+
var Carousel = React26__namespace.forwardRef(
|
|
3462
3569
|
({
|
|
3463
3570
|
orientation = "horizontal",
|
|
3464
3571
|
opts,
|
|
@@ -3475,20 +3582,20 @@ var Carousel = React24__namespace.forwardRef(
|
|
|
3475
3582
|
},
|
|
3476
3583
|
plugins
|
|
3477
3584
|
);
|
|
3478
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
3479
|
-
const [canScrollNext, setCanScrollNext] =
|
|
3480
|
-
const onSelect =
|
|
3585
|
+
const [canScrollPrev, setCanScrollPrev] = React26__namespace.useState(false);
|
|
3586
|
+
const [canScrollNext, setCanScrollNext] = React26__namespace.useState(false);
|
|
3587
|
+
const onSelect = React26__namespace.useCallback((api2) => {
|
|
3481
3588
|
if (!api2) return;
|
|
3482
3589
|
setCanScrollPrev(api2.canScrollPrev());
|
|
3483
3590
|
setCanScrollNext(api2.canScrollNext());
|
|
3484
3591
|
}, []);
|
|
3485
|
-
const scrollPrev =
|
|
3592
|
+
const scrollPrev = React26__namespace.useCallback(() => {
|
|
3486
3593
|
api?.scrollPrev();
|
|
3487
3594
|
}, [api]);
|
|
3488
|
-
const scrollNext =
|
|
3595
|
+
const scrollNext = React26__namespace.useCallback(() => {
|
|
3489
3596
|
api?.scrollNext();
|
|
3490
3597
|
}, [api]);
|
|
3491
|
-
const handleKeyDown =
|
|
3598
|
+
const handleKeyDown = React26__namespace.useCallback(
|
|
3492
3599
|
(event) => {
|
|
3493
3600
|
if (event.key === "ArrowLeft") {
|
|
3494
3601
|
event.preventDefault();
|
|
@@ -3500,11 +3607,11 @@ var Carousel = React24__namespace.forwardRef(
|
|
|
3500
3607
|
},
|
|
3501
3608
|
[scrollPrev, scrollNext]
|
|
3502
3609
|
);
|
|
3503
|
-
|
|
3610
|
+
React26__namespace.useEffect(() => {
|
|
3504
3611
|
if (!api || !setApi) return;
|
|
3505
3612
|
setApi(api);
|
|
3506
3613
|
}, [api, setApi]);
|
|
3507
|
-
|
|
3614
|
+
React26__namespace.useEffect(() => {
|
|
3508
3615
|
if (!api) return;
|
|
3509
3616
|
onSelect(api);
|
|
3510
3617
|
api.on("reInit", onSelect);
|
|
@@ -3544,7 +3651,7 @@ var Carousel = React24__namespace.forwardRef(
|
|
|
3544
3651
|
}
|
|
3545
3652
|
);
|
|
3546
3653
|
Carousel.displayName = "Carousel";
|
|
3547
|
-
var CarouselContent =
|
|
3654
|
+
var CarouselContent = React26__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
3548
3655
|
const { carouselRef, orientation } = useCarousel();
|
|
3549
3656
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3550
3657
|
"div",
|
|
@@ -3568,7 +3675,7 @@ var CarouselContent = React24__namespace.forwardRef(({ className, ...props }, re
|
|
|
3568
3675
|
);
|
|
3569
3676
|
});
|
|
3570
3677
|
CarouselContent.displayName = "CarouselContent";
|
|
3571
|
-
var CarouselItem =
|
|
3678
|
+
var CarouselItem = React26__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
3572
3679
|
const { orientation } = useCarousel();
|
|
3573
3680
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3574
3681
|
"div",
|
|
@@ -3587,7 +3694,7 @@ var CarouselItem = React24__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
3587
3694
|
);
|
|
3588
3695
|
});
|
|
3589
3696
|
CarouselItem.displayName = "CarouselItem";
|
|
3590
|
-
var CarouselPrevious =
|
|
3697
|
+
var CarouselPrevious = React26__namespace.forwardRef(({ className, variant = "outline" /* Outline */, size = "icon" /* Icon */, ...props }, ref) => {
|
|
3591
3698
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
3592
3699
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3593
3700
|
Button,
|
|
@@ -3612,7 +3719,7 @@ var CarouselPrevious = React24__namespace.forwardRef(({ className, variant = uik
|
|
|
3612
3719
|
);
|
|
3613
3720
|
});
|
|
3614
3721
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
3615
|
-
var CarouselNext =
|
|
3722
|
+
var CarouselNext = React26__namespace.forwardRef(({ className, variant = "outline" /* Outline */, size = "icon" /* Icon */, ...props }, ref) => {
|
|
3616
3723
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
3617
3724
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3618
3725
|
Button,
|
|
@@ -3637,7 +3744,7 @@ var CarouselNext = React24__namespace.forwardRef(({ className, variant = uikitCo
|
|
|
3637
3744
|
);
|
|
3638
3745
|
});
|
|
3639
3746
|
CarouselNext.displayName = "CarouselNext";
|
|
3640
|
-
var Collapsible =
|
|
3747
|
+
var Collapsible = React26__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3641
3748
|
CollapsiblePrimitive__namespace.Root,
|
|
3642
3749
|
{
|
|
3643
3750
|
ref,
|
|
@@ -3646,7 +3753,7 @@ var Collapsible = React24__namespace.forwardRef(({ ...props }, ref) => /* @__PUR
|
|
|
3646
3753
|
}
|
|
3647
3754
|
));
|
|
3648
3755
|
Collapsible.displayName = "Collapsible";
|
|
3649
|
-
var CollapsibleTrigger2 =
|
|
3756
|
+
var CollapsibleTrigger2 = React26__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3650
3757
|
CollapsiblePrimitive__namespace.CollapsibleTrigger,
|
|
3651
3758
|
{
|
|
3652
3759
|
ref,
|
|
@@ -3655,7 +3762,7 @@ var CollapsibleTrigger2 = React24__namespace.forwardRef(({ ...props }, ref) => /
|
|
|
3655
3762
|
}
|
|
3656
3763
|
));
|
|
3657
3764
|
CollapsibleTrigger2.displayName = "CollapsibleTrigger";
|
|
3658
|
-
var CollapsibleContent2 =
|
|
3765
|
+
var CollapsibleContent2 = React26__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3659
3766
|
CollapsiblePrimitive__namespace.CollapsibleContent,
|
|
3660
3767
|
{
|
|
3661
3768
|
ref,
|
|
@@ -3778,185 +3885,611 @@ function ContextMenuRadioGroup({
|
|
|
3778
3885
|
}
|
|
3779
3886
|
);
|
|
3780
3887
|
}
|
|
3781
|
-
function ContextMenuSubTrigger({
|
|
3888
|
+
function ContextMenuSubTrigger({
|
|
3889
|
+
className,
|
|
3890
|
+
inset,
|
|
3891
|
+
children,
|
|
3892
|
+
...props
|
|
3893
|
+
}) {
|
|
3894
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3895
|
+
ContextMenuPrimitive__namespace.SubTrigger,
|
|
3896
|
+
{
|
|
3897
|
+
"data-slot": "context-menu-sub-trigger",
|
|
3898
|
+
"data-inset": inset,
|
|
3899
|
+
className: cn(
|
|
3900
|
+
"focus:bg-accent focus:text-foreground data-[state=open]:bg-accent data-[state=open]:text-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
3901
|
+
className
|
|
3902
|
+
),
|
|
3903
|
+
...props,
|
|
3904
|
+
children: [
|
|
3905
|
+
children,
|
|
3906
|
+
/* @__PURE__ */ jsxRuntime.jsx(ChevronRightIcon, { className: "ml-auto" })
|
|
3907
|
+
]
|
|
3908
|
+
}
|
|
3909
|
+
);
|
|
3910
|
+
}
|
|
3911
|
+
function ContextMenuSubContent({
|
|
3912
|
+
className,
|
|
3913
|
+
...props
|
|
3914
|
+
}) {
|
|
3915
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3916
|
+
ContextMenuPrimitive__namespace.SubContent,
|
|
3917
|
+
{
|
|
3918
|
+
"data-slot": "context-menu-sub-content",
|
|
3919
|
+
className: cn(
|
|
3920
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-[var(--radix-context-menu-content-transform-origin)] overflow-hidden rounded-md border p-1 shadow-lg",
|
|
3921
|
+
className
|
|
3922
|
+
),
|
|
3923
|
+
...props
|
|
3924
|
+
}
|
|
3925
|
+
);
|
|
3926
|
+
}
|
|
3927
|
+
function ContextMenuContent({
|
|
3928
|
+
className,
|
|
3929
|
+
...props
|
|
3930
|
+
}) {
|
|
3931
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3932
|
+
ContextMenuPrimitive__namespace.Content,
|
|
3933
|
+
{
|
|
3934
|
+
"data-slot": "context-menu-content",
|
|
3935
|
+
className: cn(
|
|
3936
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-[var(--radix-context-menu-content-available-height)] min-w-[8rem] origin-[var(--radix-context-menu-content-transform-origin)] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
3937
|
+
className
|
|
3938
|
+
),
|
|
3939
|
+
...props
|
|
3940
|
+
}
|
|
3941
|
+
) });
|
|
3942
|
+
}
|
|
3943
|
+
function ContextMenuItem({
|
|
3944
|
+
className,
|
|
3945
|
+
inset,
|
|
3946
|
+
variant = "default",
|
|
3947
|
+
...props
|
|
3948
|
+
}) {
|
|
3949
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3950
|
+
ContextMenuPrimitive__namespace.Item,
|
|
3951
|
+
{
|
|
3952
|
+
"data-slot": "context-menu-item",
|
|
3953
|
+
"data-inset": inset,
|
|
3954
|
+
"data-variant": variant,
|
|
3955
|
+
className: cn(
|
|
3956
|
+
"focus:bg-accent focus:text-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
3957
|
+
className
|
|
3958
|
+
),
|
|
3959
|
+
...props
|
|
3960
|
+
}
|
|
3961
|
+
);
|
|
3962
|
+
}
|
|
3963
|
+
function ContextMenuCheckboxItem({
|
|
3964
|
+
className,
|
|
3965
|
+
children,
|
|
3966
|
+
checked,
|
|
3967
|
+
...props
|
|
3968
|
+
}) {
|
|
3969
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3970
|
+
ContextMenuPrimitive__namespace.CheckboxItem,
|
|
3971
|
+
{
|
|
3972
|
+
"data-slot": "context-menu-checkbox-item",
|
|
3973
|
+
className: cn(
|
|
3974
|
+
"focus:bg-accent focus:text-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
3975
|
+
className
|
|
3976
|
+
),
|
|
3977
|
+
checked,
|
|
3978
|
+
...props,
|
|
3979
|
+
children: [
|
|
3980
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(CheckIcon, { className: "size-4" }) }) }),
|
|
3981
|
+
children
|
|
3982
|
+
]
|
|
3983
|
+
}
|
|
3984
|
+
);
|
|
3985
|
+
}
|
|
3986
|
+
function ContextMenuRadioItem({
|
|
3987
|
+
className,
|
|
3988
|
+
children,
|
|
3989
|
+
...props
|
|
3990
|
+
}) {
|
|
3991
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3992
|
+
ContextMenuPrimitive__namespace.RadioItem,
|
|
3993
|
+
{
|
|
3994
|
+
"data-slot": "context-menu-radio-item",
|
|
3995
|
+
className: cn(
|
|
3996
|
+
"focus:bg-accent focus:text-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
3997
|
+
className
|
|
3998
|
+
),
|
|
3999
|
+
...props,
|
|
4000
|
+
children: [
|
|
4001
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
4002
|
+
children
|
|
4003
|
+
]
|
|
4004
|
+
}
|
|
4005
|
+
);
|
|
4006
|
+
}
|
|
4007
|
+
function ContextMenuLabel({
|
|
4008
|
+
className,
|
|
4009
|
+
inset,
|
|
4010
|
+
...props
|
|
4011
|
+
}) {
|
|
4012
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4013
|
+
ContextMenuPrimitive__namespace.Label,
|
|
4014
|
+
{
|
|
4015
|
+
"data-slot": "context-menu-label",
|
|
4016
|
+
"data-inset": inset,
|
|
4017
|
+
className: cn(
|
|
4018
|
+
"text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
4019
|
+
className
|
|
4020
|
+
),
|
|
4021
|
+
...props
|
|
4022
|
+
}
|
|
4023
|
+
);
|
|
4024
|
+
}
|
|
4025
|
+
function ContextMenuSeparator({
|
|
4026
|
+
className,
|
|
4027
|
+
...props
|
|
4028
|
+
}) {
|
|
4029
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4030
|
+
ContextMenuPrimitive__namespace.Separator,
|
|
4031
|
+
{
|
|
4032
|
+
"data-slot": "context-menu-separator",
|
|
4033
|
+
className: cn("bg-border -mx-1 my-1 h-px", className),
|
|
4034
|
+
...props
|
|
4035
|
+
}
|
|
4036
|
+
);
|
|
4037
|
+
}
|
|
4038
|
+
function ContextMenuShortcut({
|
|
4039
|
+
className,
|
|
4040
|
+
...props
|
|
4041
|
+
}) {
|
|
4042
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4043
|
+
"span",
|
|
4044
|
+
{
|
|
4045
|
+
"data-slot": "context-menu-shortcut",
|
|
4046
|
+
className: cn(
|
|
4047
|
+
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
4048
|
+
className
|
|
4049
|
+
),
|
|
4050
|
+
...props
|
|
4051
|
+
}
|
|
4052
|
+
);
|
|
4053
|
+
}
|
|
4054
|
+
function Command({
|
|
4055
|
+
className,
|
|
4056
|
+
...props
|
|
4057
|
+
}) {
|
|
4058
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4059
|
+
cmdk.Command,
|
|
4060
|
+
{
|
|
4061
|
+
"data-slot": "command",
|
|
4062
|
+
className: cn(
|
|
4063
|
+
"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
4064
|
+
className
|
|
4065
|
+
),
|
|
4066
|
+
...props
|
|
4067
|
+
}
|
|
4068
|
+
);
|
|
4069
|
+
}
|
|
4070
|
+
function CommandDialog({
|
|
4071
|
+
title = "Command Palette",
|
|
4072
|
+
description = "Search for a command to run...",
|
|
4073
|
+
children,
|
|
4074
|
+
className,
|
|
4075
|
+
...props
|
|
4076
|
+
}) {
|
|
4077
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Dialog, { ...props, children: [
|
|
4078
|
+
/* @__PURE__ */ jsxRuntime.jsxs(DialogHeader, { className: "sr-only", children: [
|
|
4079
|
+
/* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { children: title }),
|
|
4080
|
+
/* @__PURE__ */ jsxRuntime.jsx(DialogDescription, { children: description })
|
|
4081
|
+
] }),
|
|
4082
|
+
/* @__PURE__ */ jsxRuntime.jsx(DialogContent, { className: cn("overflow-hidden p-0 [&>button]:hidden", className), children: /* @__PURE__ */ jsxRuntime.jsx(Command, { className: "[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) })
|
|
4083
|
+
] });
|
|
4084
|
+
}
|
|
4085
|
+
function CommandInput({
|
|
4086
|
+
className,
|
|
4087
|
+
...props
|
|
4088
|
+
}) {
|
|
4089
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4090
|
+
"div",
|
|
4091
|
+
{
|
|
4092
|
+
"data-slot": "command-input-wrapper",
|
|
4093
|
+
className: "flex h-12 items-center gap-2 border-b px-3",
|
|
4094
|
+
children: [
|
|
4095
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
|
|
4096
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4097
|
+
cmdk.Command.Input,
|
|
4098
|
+
{
|
|
4099
|
+
"data-slot": "command-input",
|
|
4100
|
+
className: cn(
|
|
4101
|
+
"placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
4102
|
+
className
|
|
4103
|
+
),
|
|
4104
|
+
...props
|
|
4105
|
+
}
|
|
4106
|
+
)
|
|
4107
|
+
]
|
|
4108
|
+
}
|
|
4109
|
+
);
|
|
4110
|
+
}
|
|
4111
|
+
function CommandList({
|
|
4112
|
+
className,
|
|
4113
|
+
...props
|
|
4114
|
+
}) {
|
|
4115
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4116
|
+
cmdk.Command.List,
|
|
4117
|
+
{
|
|
4118
|
+
"data-slot": "command-list",
|
|
4119
|
+
className: cn(
|
|
4120
|
+
"max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
|
|
4121
|
+
className
|
|
4122
|
+
),
|
|
4123
|
+
...props
|
|
4124
|
+
}
|
|
4125
|
+
);
|
|
4126
|
+
}
|
|
4127
|
+
function CommandEmpty({
|
|
4128
|
+
...props
|
|
4129
|
+
}) {
|
|
4130
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4131
|
+
cmdk.Command.Empty,
|
|
4132
|
+
{
|
|
4133
|
+
"data-slot": "command-empty",
|
|
4134
|
+
className: "py-6 text-center text-sm",
|
|
4135
|
+
...props
|
|
4136
|
+
}
|
|
4137
|
+
);
|
|
4138
|
+
}
|
|
4139
|
+
function CommandGroup({
|
|
4140
|
+
className,
|
|
4141
|
+
...props
|
|
4142
|
+
}) {
|
|
4143
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4144
|
+
cmdk.Command.Group,
|
|
4145
|
+
{
|
|
4146
|
+
"data-slot": "command-group",
|
|
4147
|
+
className: cn(
|
|
4148
|
+
"text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
|
|
4149
|
+
className
|
|
4150
|
+
),
|
|
4151
|
+
...props
|
|
4152
|
+
}
|
|
4153
|
+
);
|
|
4154
|
+
}
|
|
4155
|
+
function CommandSeparator({
|
|
4156
|
+
className,
|
|
4157
|
+
...props
|
|
4158
|
+
}) {
|
|
4159
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4160
|
+
cmdk.Command.Separator,
|
|
4161
|
+
{
|
|
4162
|
+
"data-slot": "command-separator",
|
|
4163
|
+
className: cn("bg-border -mx-1 h-px", className),
|
|
4164
|
+
...props
|
|
4165
|
+
}
|
|
4166
|
+
);
|
|
4167
|
+
}
|
|
4168
|
+
function CommandItem({
|
|
4169
|
+
className,
|
|
4170
|
+
...props
|
|
4171
|
+
}) {
|
|
4172
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4173
|
+
cmdk.Command.Item,
|
|
4174
|
+
{
|
|
4175
|
+
"data-slot": "command-item",
|
|
4176
|
+
className: cn(
|
|
4177
|
+
"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
4178
|
+
className
|
|
4179
|
+
),
|
|
4180
|
+
...props
|
|
4181
|
+
}
|
|
4182
|
+
);
|
|
4183
|
+
}
|
|
4184
|
+
function CommandShortcut({
|
|
4185
|
+
className,
|
|
4186
|
+
...props
|
|
4187
|
+
}) {
|
|
4188
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4189
|
+
"span",
|
|
4190
|
+
{
|
|
4191
|
+
"data-slot": "command-shortcut",
|
|
4192
|
+
className: cn(
|
|
4193
|
+
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
4194
|
+
className
|
|
4195
|
+
),
|
|
4196
|
+
...props
|
|
4197
|
+
}
|
|
4198
|
+
);
|
|
4199
|
+
}
|
|
4200
|
+
var toggleVariants = classVarianceAuthority.cva(
|
|
4201
|
+
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
|
|
4202
|
+
{
|
|
4203
|
+
variants: {
|
|
4204
|
+
variant: {
|
|
4205
|
+
default: "bg-transparent",
|
|
4206
|
+
outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"
|
|
4207
|
+
},
|
|
4208
|
+
size: {
|
|
4209
|
+
default: "h-9 px-2 min-w-9",
|
|
4210
|
+
sm: "h-8 px-1.5 min-w-8",
|
|
4211
|
+
lg: "h-10 px-2.5 min-w-10"
|
|
4212
|
+
}
|
|
4213
|
+
},
|
|
4214
|
+
defaultVariants: {
|
|
4215
|
+
variant: "default",
|
|
4216
|
+
size: "default"
|
|
4217
|
+
}
|
|
4218
|
+
}
|
|
4219
|
+
);
|
|
4220
|
+
function Toggle({
|
|
4221
|
+
className,
|
|
4222
|
+
variant,
|
|
4223
|
+
size,
|
|
4224
|
+
...props
|
|
4225
|
+
}) {
|
|
4226
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4227
|
+
TogglePrimitive__namespace.Root,
|
|
4228
|
+
{
|
|
4229
|
+
"data-slot": "toggle",
|
|
4230
|
+
className: cn(toggleVariants({ variant, size, className })),
|
|
4231
|
+
...props
|
|
4232
|
+
}
|
|
4233
|
+
);
|
|
4234
|
+
}
|
|
4235
|
+
var ToggleGroupContext = React26__namespace.createContext({
|
|
4236
|
+
size: "default",
|
|
4237
|
+
variant: "default",
|
|
4238
|
+
spacing: 0
|
|
4239
|
+
});
|
|
4240
|
+
function ToggleGroup({
|
|
4241
|
+
className,
|
|
4242
|
+
variant,
|
|
4243
|
+
size,
|
|
4244
|
+
spacing = 0,
|
|
4245
|
+
children,
|
|
4246
|
+
...props
|
|
4247
|
+
}) {
|
|
4248
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4249
|
+
ToggleGroupPrimitive__namespace.Root,
|
|
4250
|
+
{
|
|
4251
|
+
"data-slot": "toggle-group",
|
|
4252
|
+
"data-variant": variant,
|
|
4253
|
+
"data-size": size,
|
|
4254
|
+
"data-spacing": spacing,
|
|
4255
|
+
className: cn(
|
|
4256
|
+
"group/toggle-group flex w-fit items-center rounded-md",
|
|
4257
|
+
spacing > 0 && "gap-1",
|
|
4258
|
+
spacing === 0 && variant === "outline" && "shadow-xs",
|
|
4259
|
+
className
|
|
4260
|
+
),
|
|
4261
|
+
...props,
|
|
4262
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupContext.Provider, { value: { variant, size, spacing }, children })
|
|
4263
|
+
}
|
|
4264
|
+
);
|
|
4265
|
+
}
|
|
4266
|
+
function ToggleGroupItem({
|
|
3782
4267
|
className,
|
|
3783
|
-
inset,
|
|
3784
4268
|
children,
|
|
4269
|
+
variant,
|
|
4270
|
+
size,
|
|
3785
4271
|
...props
|
|
3786
4272
|
}) {
|
|
3787
|
-
|
|
3788
|
-
|
|
4273
|
+
const context = React26__namespace.useContext(ToggleGroupContext);
|
|
4274
|
+
const resolvedSpacing = context.spacing ?? 0;
|
|
4275
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4276
|
+
ToggleGroupPrimitive__namespace.Item,
|
|
3789
4277
|
{
|
|
3790
|
-
"data-slot": "
|
|
3791
|
-
"data-
|
|
4278
|
+
"data-slot": "toggle-group-item",
|
|
4279
|
+
"data-variant": context.variant || variant,
|
|
4280
|
+
"data-size": context.size || size,
|
|
4281
|
+
"data-spacing": resolvedSpacing,
|
|
3792
4282
|
className: cn(
|
|
3793
|
-
|
|
4283
|
+
toggleVariants({
|
|
4284
|
+
variant: context.variant || variant,
|
|
4285
|
+
size: context.size || size
|
|
4286
|
+
}),
|
|
4287
|
+
"min-w-0 shrink-0 focus:z-10 focus-visible:z-10",
|
|
4288
|
+
resolvedSpacing === 0 && "rounded-none shadow-none first:rounded-l-md last:rounded-r-md",
|
|
4289
|
+
resolvedSpacing === 0 && (context.variant || variant) === "outline" && "border-l-0 first:border-l",
|
|
3794
4290
|
className
|
|
3795
4291
|
),
|
|
3796
4292
|
...props,
|
|
3797
|
-
children
|
|
3798
|
-
children,
|
|
3799
|
-
/* @__PURE__ */ jsxRuntime.jsx(ChevronRightIcon, { className: "ml-auto" })
|
|
3800
|
-
]
|
|
4293
|
+
children
|
|
3801
4294
|
}
|
|
3802
4295
|
);
|
|
3803
4296
|
}
|
|
3804
|
-
function
|
|
3805
|
-
className,
|
|
3806
|
-
...props
|
|
3807
|
-
}) {
|
|
4297
|
+
function Kbd({ className, ...props }) {
|
|
3808
4298
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3809
|
-
|
|
4299
|
+
"kbd",
|
|
3810
4300
|
{
|
|
3811
|
-
"data-slot": "
|
|
4301
|
+
"data-slot": "kbd",
|
|
3812
4302
|
className: cn(
|
|
3813
|
-
"bg-
|
|
4303
|
+
"bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none",
|
|
4304
|
+
"[&_svg:not([class*='size-'])]:size-3",
|
|
4305
|
+
"[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10",
|
|
3814
4306
|
className
|
|
3815
4307
|
),
|
|
3816
4308
|
...props
|
|
3817
4309
|
}
|
|
3818
4310
|
);
|
|
3819
4311
|
}
|
|
3820
|
-
function
|
|
4312
|
+
function KbdGroup({ className, ...props }) {
|
|
4313
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4314
|
+
"span",
|
|
4315
|
+
{
|
|
4316
|
+
"data-slot": "kbd-group",
|
|
4317
|
+
className: cn("inline-flex items-center gap-1", className),
|
|
4318
|
+
...props
|
|
4319
|
+
}
|
|
4320
|
+
);
|
|
4321
|
+
}
|
|
4322
|
+
function TypographyH1({
|
|
3821
4323
|
className,
|
|
3822
4324
|
...props
|
|
3823
4325
|
}) {
|
|
3824
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3825
|
-
|
|
4326
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4327
|
+
"h1",
|
|
3826
4328
|
{
|
|
3827
|
-
"data-slot": "
|
|
4329
|
+
"data-slot": "typography-h1",
|
|
3828
4330
|
className: cn(
|
|
3829
|
-
"
|
|
4331
|
+
"scroll-m-20 text-4xl font-extrabold tracking-tight",
|
|
3830
4332
|
className
|
|
3831
4333
|
),
|
|
3832
4334
|
...props
|
|
3833
4335
|
}
|
|
3834
|
-
)
|
|
4336
|
+
);
|
|
3835
4337
|
}
|
|
3836
|
-
function
|
|
4338
|
+
function TypographyH2({
|
|
3837
4339
|
className,
|
|
3838
|
-
inset,
|
|
3839
|
-
variant = "default",
|
|
3840
4340
|
...props
|
|
3841
4341
|
}) {
|
|
3842
4342
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3843
|
-
|
|
4343
|
+
"h2",
|
|
3844
4344
|
{
|
|
3845
|
-
"data-slot": "
|
|
3846
|
-
"data-inset": inset,
|
|
3847
|
-
"data-variant": variant,
|
|
4345
|
+
"data-slot": "typography-h2",
|
|
3848
4346
|
className: cn(
|
|
3849
|
-
"
|
|
4347
|
+
"scroll-m-20 text-3xl font-semibold tracking-tight",
|
|
3850
4348
|
className
|
|
3851
4349
|
),
|
|
3852
4350
|
...props
|
|
3853
4351
|
}
|
|
3854
4352
|
);
|
|
3855
4353
|
}
|
|
3856
|
-
function
|
|
4354
|
+
function TypographyH3({
|
|
3857
4355
|
className,
|
|
3858
|
-
children,
|
|
3859
|
-
checked,
|
|
3860
4356
|
...props
|
|
3861
4357
|
}) {
|
|
3862
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
3863
|
-
|
|
4358
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4359
|
+
"h3",
|
|
3864
4360
|
{
|
|
3865
|
-
"data-slot": "
|
|
4361
|
+
"data-slot": "typography-h3",
|
|
3866
4362
|
className: cn(
|
|
3867
|
-
"
|
|
4363
|
+
"scroll-m-20 text-2xl font-semibold tracking-tight",
|
|
3868
4364
|
className
|
|
3869
4365
|
),
|
|
3870
|
-
|
|
3871
|
-
...props,
|
|
3872
|
-
children: [
|
|
3873
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(CheckIcon, { className: "size-4" }) }) }),
|
|
3874
|
-
children
|
|
3875
|
-
]
|
|
4366
|
+
...props
|
|
3876
4367
|
}
|
|
3877
4368
|
);
|
|
3878
4369
|
}
|
|
3879
|
-
function
|
|
4370
|
+
function TypographyH4({
|
|
3880
4371
|
className,
|
|
3881
|
-
children,
|
|
3882
4372
|
...props
|
|
3883
4373
|
}) {
|
|
3884
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
3885
|
-
|
|
4374
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4375
|
+
"h4",
|
|
3886
4376
|
{
|
|
3887
|
-
"data-slot": "
|
|
4377
|
+
"data-slot": "typography-h4",
|
|
3888
4378
|
className: cn(
|
|
3889
|
-
"
|
|
4379
|
+
"scroll-m-20 text-xl font-semibold tracking-tight",
|
|
3890
4380
|
className
|
|
3891
4381
|
),
|
|
3892
|
-
...props
|
|
3893
|
-
children: [
|
|
3894
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
3895
|
-
children
|
|
3896
|
-
]
|
|
4382
|
+
...props
|
|
3897
4383
|
}
|
|
3898
4384
|
);
|
|
3899
4385
|
}
|
|
3900
|
-
function
|
|
4386
|
+
function TypographyP({
|
|
3901
4387
|
className,
|
|
3902
|
-
inset,
|
|
3903
4388
|
...props
|
|
3904
4389
|
}) {
|
|
3905
4390
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3906
|
-
|
|
4391
|
+
"p",
|
|
3907
4392
|
{
|
|
3908
|
-
"data-slot": "
|
|
3909
|
-
"
|
|
3910
|
-
className: cn(
|
|
3911
|
-
"text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
3912
|
-
className
|
|
3913
|
-
),
|
|
4393
|
+
"data-slot": "typography-p",
|
|
4394
|
+
className: cn("leading-7 [&:not(:first-child)]:mt-6", className),
|
|
3914
4395
|
...props
|
|
3915
4396
|
}
|
|
3916
4397
|
);
|
|
3917
4398
|
}
|
|
3918
|
-
function
|
|
4399
|
+
function TypographyBlockquote({
|
|
3919
4400
|
className,
|
|
3920
4401
|
...props
|
|
3921
4402
|
}) {
|
|
3922
4403
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3923
|
-
|
|
4404
|
+
"blockquote",
|
|
3924
4405
|
{
|
|
3925
|
-
"data-slot": "
|
|
3926
|
-
className: cn("
|
|
4406
|
+
"data-slot": "typography-blockquote",
|
|
4407
|
+
className: cn("mt-6 border-l-2 pl-6 italic", className),
|
|
3927
4408
|
...props
|
|
3928
4409
|
}
|
|
3929
4410
|
);
|
|
3930
4411
|
}
|
|
3931
|
-
function
|
|
4412
|
+
function TypographyList({
|
|
3932
4413
|
className,
|
|
3933
4414
|
...props
|
|
3934
4415
|
}) {
|
|
3935
4416
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3936
|
-
"
|
|
4417
|
+
"ul",
|
|
3937
4418
|
{
|
|
3938
|
-
"data-slot": "
|
|
4419
|
+
"data-slot": "typography-list",
|
|
4420
|
+
className: cn("my-6 ml-6 list-disc [&>li]:mt-2", className),
|
|
4421
|
+
...props
|
|
4422
|
+
}
|
|
4423
|
+
);
|
|
4424
|
+
}
|
|
4425
|
+
function TypographyInlineCode({
|
|
4426
|
+
className,
|
|
4427
|
+
...props
|
|
4428
|
+
}) {
|
|
4429
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4430
|
+
"code",
|
|
4431
|
+
{
|
|
4432
|
+
"data-slot": "typography-inline-code",
|
|
3939
4433
|
className: cn(
|
|
3940
|
-
"
|
|
4434
|
+
"bg-muted relative rounded px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold",
|
|
3941
4435
|
className
|
|
3942
4436
|
),
|
|
3943
4437
|
...props
|
|
3944
4438
|
}
|
|
3945
4439
|
);
|
|
3946
4440
|
}
|
|
3947
|
-
|
|
3948
|
-
|
|
4441
|
+
function TypographyLarge({
|
|
4442
|
+
className,
|
|
4443
|
+
...props
|
|
4444
|
+
}) {
|
|
4445
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4446
|
+
"div",
|
|
4447
|
+
{
|
|
4448
|
+
"data-slot": "typography-large",
|
|
4449
|
+
className: cn("text-lg font-semibold", className),
|
|
4450
|
+
...props
|
|
4451
|
+
}
|
|
4452
|
+
);
|
|
4453
|
+
}
|
|
4454
|
+
function TypographySmall({
|
|
4455
|
+
className,
|
|
4456
|
+
...props
|
|
4457
|
+
}) {
|
|
4458
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4459
|
+
"small",
|
|
4460
|
+
{
|
|
4461
|
+
"data-slot": "typography-small",
|
|
4462
|
+
className: cn("text-sm leading-none font-medium", className),
|
|
4463
|
+
...props
|
|
4464
|
+
}
|
|
4465
|
+
);
|
|
4466
|
+
}
|
|
4467
|
+
function TypographyMuted({
|
|
4468
|
+
className,
|
|
4469
|
+
...props
|
|
4470
|
+
}) {
|
|
4471
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4472
|
+
"p",
|
|
4473
|
+
{
|
|
4474
|
+
"data-slot": "typography-muted",
|
|
4475
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
4476
|
+
...props
|
|
4477
|
+
}
|
|
4478
|
+
);
|
|
4479
|
+
}
|
|
4480
|
+
var IconButton = React26__namespace.default.forwardRef(
|
|
4481
|
+
({ variant = "ghost" /* Ghost */, size = "default" /* Default */, className, ...props }, ref) => {
|
|
3949
4482
|
const sizeStyles = {
|
|
3950
|
-
[
|
|
3951
|
-
[
|
|
3952
|
-
[
|
|
4483
|
+
["sm" /* Small */]: "h-8 w-8",
|
|
4484
|
+
["default" /* Default */]: "h-9 w-9",
|
|
4485
|
+
["lg" /* Large */]: "h-10 w-10"
|
|
3953
4486
|
};
|
|
3954
4487
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3955
4488
|
Button,
|
|
3956
4489
|
{
|
|
3957
4490
|
ref,
|
|
3958
4491
|
variant,
|
|
3959
|
-
size:
|
|
4492
|
+
size: "icon" /* Icon */,
|
|
3960
4493
|
className: cn(sizeStyles[size], className),
|
|
3961
4494
|
...props
|
|
3962
4495
|
}
|
|
@@ -3964,7 +4497,7 @@ var IconButton = React24__namespace.default.forwardRef(
|
|
|
3964
4497
|
}
|
|
3965
4498
|
);
|
|
3966
4499
|
IconButton.displayName = "IconButton";
|
|
3967
|
-
var DropdownButton =
|
|
4500
|
+
var DropdownButton = React26__namespace.default.forwardRef(({ children, variant = "outline" /* Outline */, className, ...props }, ref) => {
|
|
3968
4501
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3969
4502
|
Button,
|
|
3970
4503
|
{
|
|
@@ -3980,30 +4513,30 @@ var DropdownButton = React24__namespace.default.forwardRef(({ children, variant
|
|
|
3980
4513
|
);
|
|
3981
4514
|
});
|
|
3982
4515
|
DropdownButton.displayName = "DropdownButton";
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4516
|
+
var InputGroup = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4517
|
+
"div",
|
|
4518
|
+
{
|
|
4519
|
+
ref,
|
|
4520
|
+
"data-slot": "input-group",
|
|
4521
|
+
role: "group",
|
|
4522
|
+
className: cn(
|
|
4523
|
+
"group/input-group border-input dark:bg-input/30 relative flex w-full items-center rounded-md border shadow-xs transition-[color,box-shadow] outline-none",
|
|
4524
|
+
"h-9 min-w-0 has-[>textarea]:h-auto",
|
|
4525
|
+
// Variants based on alignment.
|
|
4526
|
+
"has-[>[data-align=inline-start]]:[&>input]:pl-2",
|
|
4527
|
+
"has-[>[data-align=inline-end]]:[&>input]:pr-2",
|
|
4528
|
+
"has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3",
|
|
4529
|
+
"has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3",
|
|
4530
|
+
// Focus state.
|
|
4531
|
+
"has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]",
|
|
4532
|
+
// Error state.
|
|
4533
|
+
"has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",
|
|
4534
|
+
className
|
|
4535
|
+
),
|
|
4536
|
+
...props
|
|
4537
|
+
}
|
|
4538
|
+
));
|
|
4539
|
+
InputGroup.displayName = "InputGroup";
|
|
4007
4540
|
var inputGroupAddonVariants = classVarianceAuthority.cva(
|
|
4008
4541
|
"text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50",
|
|
4009
4542
|
{
|
|
@@ -4020,28 +4553,24 @@ var inputGroupAddonVariants = classVarianceAuthority.cva(
|
|
|
4020
4553
|
}
|
|
4021
4554
|
}
|
|
4022
4555
|
);
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
"
|
|
4030
|
-
{
|
|
4031
|
-
|
|
4032
|
-
"
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
...props
|
|
4042
|
-
}
|
|
4043
|
-
);
|
|
4044
|
-
}
|
|
4556
|
+
var InputGroupAddon = React26__namespace.forwardRef(({ className, align = "inline-start", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4557
|
+
"div",
|
|
4558
|
+
{
|
|
4559
|
+
ref,
|
|
4560
|
+
role: "group",
|
|
4561
|
+
"data-slot": "input-group-addon",
|
|
4562
|
+
"data-align": align,
|
|
4563
|
+
className: cn(inputGroupAddonVariants({ align }), className),
|
|
4564
|
+
onClick: (e) => {
|
|
4565
|
+
if (e.target.closest("button")) {
|
|
4566
|
+
return;
|
|
4567
|
+
}
|
|
4568
|
+
e.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
4569
|
+
},
|
|
4570
|
+
...props
|
|
4571
|
+
}
|
|
4572
|
+
));
|
|
4573
|
+
InputGroupAddon.displayName = "InputGroupAddon";
|
|
4045
4574
|
var inputGroupButtonVariants = classVarianceAuthority.cva(
|
|
4046
4575
|
"text-sm shadow-none flex gap-2 items-center",
|
|
4047
4576
|
{
|
|
@@ -4058,68 +4587,56 @@ var inputGroupButtonVariants = classVarianceAuthority.cva(
|
|
|
4058
4587
|
}
|
|
4059
4588
|
}
|
|
4060
4589
|
);
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4112
|
-
Textarea,
|
|
4113
|
-
{
|
|
4114
|
-
"data-slot": "input-group-control",
|
|
4115
|
-
className: cn(
|
|
4116
|
-
"flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",
|
|
4117
|
-
className
|
|
4118
|
-
),
|
|
4119
|
-
...props
|
|
4120
|
-
}
|
|
4121
|
-
);
|
|
4122
|
-
}
|
|
4590
|
+
var InputGroupButton = React26__namespace.forwardRef(({ className, type = "button", variant = "ghost" /* Ghost */, size = "xs", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4591
|
+
Button,
|
|
4592
|
+
{
|
|
4593
|
+
ref,
|
|
4594
|
+
type,
|
|
4595
|
+
"data-size": size,
|
|
4596
|
+
variant,
|
|
4597
|
+
className: cn(inputGroupButtonVariants({ size }), className),
|
|
4598
|
+
...props
|
|
4599
|
+
}
|
|
4600
|
+
));
|
|
4601
|
+
InputGroupButton.displayName = "InputGroupButton";
|
|
4602
|
+
var InputGroupText = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4603
|
+
"span",
|
|
4604
|
+
{
|
|
4605
|
+
ref,
|
|
4606
|
+
className: cn(
|
|
4607
|
+
"text-muted-foreground flex items-center gap-2 text-sm [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
|
|
4608
|
+
className
|
|
4609
|
+
),
|
|
4610
|
+
...props
|
|
4611
|
+
}
|
|
4612
|
+
));
|
|
4613
|
+
InputGroupText.displayName = "InputGroupText";
|
|
4614
|
+
var InputGroupInput = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4615
|
+
Input,
|
|
4616
|
+
{
|
|
4617
|
+
ref,
|
|
4618
|
+
"data-slot": "input-group-control",
|
|
4619
|
+
className: cn(
|
|
4620
|
+
"flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",
|
|
4621
|
+
className
|
|
4622
|
+
),
|
|
4623
|
+
...props
|
|
4624
|
+
}
|
|
4625
|
+
));
|
|
4626
|
+
InputGroupInput.displayName = "InputGroupInput";
|
|
4627
|
+
var InputGroupTextarea = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4628
|
+
Textarea,
|
|
4629
|
+
{
|
|
4630
|
+
ref,
|
|
4631
|
+
"data-slot": "input-group-control",
|
|
4632
|
+
className: cn(
|
|
4633
|
+
"flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",
|
|
4634
|
+
className
|
|
4635
|
+
),
|
|
4636
|
+
...props
|
|
4637
|
+
}
|
|
4638
|
+
));
|
|
4639
|
+
InputGroupTextarea.displayName = "InputGroupTextarea";
|
|
4123
4640
|
var CalendarIcon = ({
|
|
4124
4641
|
className = "",
|
|
4125
4642
|
...props
|
|
@@ -4146,9 +4663,9 @@ var CalendarIcon = ({
|
|
|
4146
4663
|
}
|
|
4147
4664
|
);
|
|
4148
4665
|
};
|
|
4149
|
-
var DatePickerContext =
|
|
4666
|
+
var DatePickerContext = React26__namespace.createContext(null);
|
|
4150
4667
|
function useDatePickerContext() {
|
|
4151
|
-
const context =
|
|
4668
|
+
const context = React26__namespace.useContext(DatePickerContext);
|
|
4152
4669
|
if (!context) {
|
|
4153
4670
|
throw new Error("DatePicker components must be used within a DatePicker");
|
|
4154
4671
|
}
|
|
@@ -4167,25 +4684,25 @@ function DatePicker({
|
|
|
4167
4684
|
defaultOpen = false,
|
|
4168
4685
|
formatDate: formatDateProp = defaultFormatDate
|
|
4169
4686
|
}) {
|
|
4170
|
-
const [uncontrolledDate, setUncontrolledDate] =
|
|
4171
|
-
const [uncontrolledOpen, setUncontrolledOpen] =
|
|
4687
|
+
const [uncontrolledDate, setUncontrolledDate] = React26__namespace.useState(defaultDate);
|
|
4688
|
+
const [uncontrolledOpen, setUncontrolledOpen] = React26__namespace.useState(defaultOpen);
|
|
4172
4689
|
const isDateControlled = controlledDate !== void 0;
|
|
4173
4690
|
const isOpenControlled = controlledOpen !== void 0;
|
|
4174
4691
|
const date = isDateControlled ? controlledDate : uncontrolledDate;
|
|
4175
4692
|
const open = isOpenControlled ? controlledOpen : uncontrolledOpen;
|
|
4176
|
-
const setDate =
|
|
4693
|
+
const setDate = React26__namespace.useCallback((newDate) => {
|
|
4177
4694
|
if (!isDateControlled) {
|
|
4178
4695
|
setUncontrolledDate(newDate);
|
|
4179
4696
|
}
|
|
4180
4697
|
onDateChange?.(newDate);
|
|
4181
4698
|
}, [isDateControlled, onDateChange]);
|
|
4182
|
-
const setOpen =
|
|
4699
|
+
const setOpen = React26__namespace.useCallback((newOpen) => {
|
|
4183
4700
|
if (!isOpenControlled) {
|
|
4184
4701
|
setUncontrolledOpen(newOpen);
|
|
4185
4702
|
}
|
|
4186
4703
|
onOpenChange?.(newOpen);
|
|
4187
4704
|
}, [isOpenControlled, onOpenChange]);
|
|
4188
|
-
const contextValue =
|
|
4705
|
+
const contextValue = React26__namespace.useMemo(() => ({
|
|
4189
4706
|
date,
|
|
4190
4707
|
setDate,
|
|
4191
4708
|
open,
|
|
@@ -4205,7 +4722,7 @@ function DatePickerTrigger({
|
|
|
4205
4722
|
return /* @__PURE__ */ jsxRuntime.jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4206
4723
|
Button,
|
|
4207
4724
|
{
|
|
4208
|
-
variant:
|
|
4725
|
+
variant: "outline" /* Outline */,
|
|
4209
4726
|
"data-slot": "date-picker-trigger",
|
|
4210
4727
|
"data-empty": !date,
|
|
4211
4728
|
className: cn(
|
|
@@ -4258,9 +4775,9 @@ function DatePickerInput({
|
|
|
4258
4775
|
id
|
|
4259
4776
|
}) {
|
|
4260
4777
|
const { date, setDate, setOpen, formatDate } = useDatePickerContext();
|
|
4261
|
-
const [inputValue, setInputValue] =
|
|
4262
|
-
const [month, setMonth] =
|
|
4263
|
-
|
|
4778
|
+
const [inputValue, setInputValue] = React26__namespace.useState(date ? formatDate(date) : "");
|
|
4779
|
+
const [month, setMonth] = React26__namespace.useState(date);
|
|
4780
|
+
React26__namespace.useEffect(() => {
|
|
4264
4781
|
setInputValue(date ? formatDate(date) : "");
|
|
4265
4782
|
}, [date, formatDate]);
|
|
4266
4783
|
const handleInputChange = (e) => {
|
|
@@ -4299,7 +4816,7 @@ function DatePickerInput({
|
|
|
4299
4816
|
/* @__PURE__ */ jsxRuntime.jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4300
4817
|
Button,
|
|
4301
4818
|
{
|
|
4302
|
-
variant:
|
|
4819
|
+
variant: "ghost" /* Ghost */,
|
|
4303
4820
|
className: "absolute top-1/2 right-2 size-6 -translate-y-1/2 p-0",
|
|
4304
4821
|
"aria-label": "Select date",
|
|
4305
4822
|
children: /* @__PURE__ */ jsxRuntime.jsx(CalendarIcon, { className: "size-3.5" })
|
|
@@ -4327,7 +4844,7 @@ function DatePickerInput({
|
|
|
4327
4844
|
)
|
|
4328
4845
|
] });
|
|
4329
4846
|
}
|
|
4330
|
-
var Sidebar =
|
|
4847
|
+
var Sidebar = React26__namespace.forwardRef(({ collapsed = false, className, children, ...props }, ref) => {
|
|
4331
4848
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4332
4849
|
"aside",
|
|
4333
4850
|
{
|
|
@@ -4346,7 +4863,7 @@ var Sidebar = React24__namespace.forwardRef(({ collapsed = false, className, chi
|
|
|
4346
4863
|
);
|
|
4347
4864
|
});
|
|
4348
4865
|
Sidebar.displayName = "Sidebar";
|
|
4349
|
-
var SidebarContent =
|
|
4866
|
+
var SidebarContent = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4350
4867
|
"div",
|
|
4351
4868
|
{
|
|
4352
4869
|
ref,
|
|
@@ -4360,7 +4877,7 @@ var SidebarContent = React24__namespace.forwardRef(({ className, ...props }, ref
|
|
|
4360
4877
|
}
|
|
4361
4878
|
));
|
|
4362
4879
|
SidebarContent.displayName = "SidebarContent";
|
|
4363
|
-
var SidebarMenu =
|
|
4880
|
+
var SidebarMenu = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4364
4881
|
"ul",
|
|
4365
4882
|
{
|
|
4366
4883
|
ref,
|
|
@@ -4370,7 +4887,7 @@ var SidebarMenu = React24__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
4370
4887
|
}
|
|
4371
4888
|
));
|
|
4372
4889
|
SidebarMenu.displayName = "SidebarMenu";
|
|
4373
|
-
var SidebarMenuItem =
|
|
4890
|
+
var SidebarMenuItem = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4374
4891
|
"li",
|
|
4375
4892
|
{
|
|
4376
4893
|
ref,
|
|
@@ -4402,7 +4919,7 @@ var sidebarMenuButtonVariants = classVarianceAuthority.cva(
|
|
|
4402
4919
|
}
|
|
4403
4920
|
}
|
|
4404
4921
|
);
|
|
4405
|
-
var SidebarMenuButton =
|
|
4922
|
+
var SidebarMenuButton = React26__namespace.forwardRef(
|
|
4406
4923
|
({
|
|
4407
4924
|
asChild = false,
|
|
4408
4925
|
isActive = false,
|
|
@@ -4428,7 +4945,7 @@ var SidebarMenuButton = React24__namespace.forwardRef(
|
|
|
4428
4945
|
}
|
|
4429
4946
|
);
|
|
4430
4947
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
4431
|
-
var SidebarMenuIcon =
|
|
4948
|
+
var SidebarMenuIcon = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4432
4949
|
"span",
|
|
4433
4950
|
{
|
|
4434
4951
|
ref,
|
|
@@ -4437,7 +4954,7 @@ var SidebarMenuIcon = React24__namespace.forwardRef(({ className, ...props }, re
|
|
|
4437
4954
|
}
|
|
4438
4955
|
));
|
|
4439
4956
|
SidebarMenuIcon.displayName = "SidebarMenuIcon";
|
|
4440
|
-
var SidebarMenuLabel =
|
|
4957
|
+
var SidebarMenuLabel = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4441
4958
|
"span",
|
|
4442
4959
|
{
|
|
4443
4960
|
ref,
|
|
@@ -4446,7 +4963,7 @@ var SidebarMenuLabel = React24__namespace.forwardRef(({ className, ...props }, r
|
|
|
4446
4963
|
}
|
|
4447
4964
|
));
|
|
4448
4965
|
SidebarMenuLabel.displayName = "SidebarMenuLabel";
|
|
4449
|
-
var SidebarHeader =
|
|
4966
|
+
var SidebarHeader = React26__namespace.forwardRef(
|
|
4450
4967
|
({ logo, logoText, collapsed = false, onClick, className, ...props }, ref) => {
|
|
4451
4968
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4452
4969
|
"div",
|
|
@@ -4469,7 +4986,7 @@ var SidebarHeader = React24__namespace.forwardRef(
|
|
|
4469
4986
|
}
|
|
4470
4987
|
);
|
|
4471
4988
|
SidebarHeader.displayName = "SidebarHeader";
|
|
4472
|
-
var UserInfo =
|
|
4989
|
+
var UserInfo = React26__namespace.default.forwardRef(
|
|
4473
4990
|
({ displayName, email, avatarUrl, className, loading }, ref) => {
|
|
4474
4991
|
const getInitials = () => {
|
|
4475
4992
|
if (!displayName) return lodash.toUpper(email?.[0] || "") || "?";
|
|
@@ -4637,8 +5154,8 @@ var ChatInput = ({
|
|
|
4637
5154
|
onAttachFile && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4638
5155
|
Button,
|
|
4639
5156
|
{
|
|
4640
|
-
variant:
|
|
4641
|
-
size:
|
|
5157
|
+
variant: "ghost" /* Ghost */,
|
|
5158
|
+
size: "icon" /* Icon */,
|
|
4642
5159
|
onClick: onAttachFile,
|
|
4643
5160
|
disabled,
|
|
4644
5161
|
className: "flex-shrink-0",
|
|
@@ -4697,8 +5214,8 @@ var ThreadList = ({
|
|
|
4697
5214
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4698
5215
|
Button,
|
|
4699
5216
|
{
|
|
4700
|
-
variant:
|
|
4701
|
-
size:
|
|
5217
|
+
variant: "ghost" /* Ghost */,
|
|
5218
|
+
size: "icon" /* Icon */,
|
|
4702
5219
|
onClick: onNewThread,
|
|
4703
5220
|
"aria-label": "New chat",
|
|
4704
5221
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { size: 16 })
|
|
@@ -4883,18 +5400,6 @@ var applyTheme = (theme, themeName) => {
|
|
|
4883
5400
|
}
|
|
4884
5401
|
};
|
|
4885
5402
|
|
|
4886
|
-
Object.defineProperty(exports, "ButtonSize", {
|
|
4887
|
-
enumerable: true,
|
|
4888
|
-
get: function () { return uikitContracts.ButtonSize; }
|
|
4889
|
-
});
|
|
4890
|
-
Object.defineProperty(exports, "ButtonVariant", {
|
|
4891
|
-
enumerable: true,
|
|
4892
|
-
get: function () { return uikitContracts.ButtonVariant; }
|
|
4893
|
-
});
|
|
4894
|
-
Object.defineProperty(exports, "IconButtonSize", {
|
|
4895
|
-
enumerable: true,
|
|
4896
|
-
get: function () { return uikitContracts.IconButtonSize; }
|
|
4897
|
-
});
|
|
4898
5403
|
Object.defineProperty(exports, "flexRender", {
|
|
4899
5404
|
enumerable: true,
|
|
4900
5405
|
get: function () { return reactTable.flexRender; }
|
|
@@ -4919,10 +5424,6 @@ Object.defineProperty(exports, "useReactTable", {
|
|
|
4919
5424
|
enumerable: true,
|
|
4920
5425
|
get: function () { return reactTable.useReactTable; }
|
|
4921
5426
|
});
|
|
4922
|
-
Object.defineProperty(exports, "toast", {
|
|
4923
|
-
enumerable: true,
|
|
4924
|
-
get: function () { return sonner.toast; }
|
|
4925
|
-
});
|
|
4926
5427
|
Object.defineProperty(exports, "Area", {
|
|
4927
5428
|
enumerable: true,
|
|
4928
5429
|
get: function () { return recharts.Area; }
|
|
@@ -5134,6 +5635,11 @@ exports.BreadcrumbList = BreadcrumbList;
|
|
|
5134
5635
|
exports.BreadcrumbPage = BreadcrumbPage;
|
|
5135
5636
|
exports.BreadcrumbSeparator = BreadcrumbSeparator;
|
|
5136
5637
|
exports.Button = Button;
|
|
5638
|
+
exports.ButtonGroup = ButtonGroup;
|
|
5639
|
+
exports.ButtonGroupSeparator = ButtonGroupSeparator;
|
|
5640
|
+
exports.ButtonGroupText = ButtonGroupText;
|
|
5641
|
+
exports.ButtonSize = ButtonSize;
|
|
5642
|
+
exports.ButtonVariant = ButtonVariant;
|
|
5137
5643
|
exports.CLOSE_ICON_ID = CLOSE_ICON_ID;
|
|
5138
5644
|
exports.Calendar = Calendar;
|
|
5139
5645
|
exports.CalendarDayButton = CalendarDayButton;
|
|
@@ -5162,6 +5668,15 @@ exports.CloseIcon = CloseIcon;
|
|
|
5162
5668
|
exports.Collapsible = Collapsible;
|
|
5163
5669
|
exports.CollapsibleContent = CollapsibleContent2;
|
|
5164
5670
|
exports.CollapsibleTrigger = CollapsibleTrigger2;
|
|
5671
|
+
exports.Command = Command;
|
|
5672
|
+
exports.CommandDialog = CommandDialog;
|
|
5673
|
+
exports.CommandEmpty = CommandEmpty;
|
|
5674
|
+
exports.CommandGroup = CommandGroup;
|
|
5675
|
+
exports.CommandInput = CommandInput;
|
|
5676
|
+
exports.CommandItem = CommandItem;
|
|
5677
|
+
exports.CommandList = CommandList;
|
|
5678
|
+
exports.CommandSeparator = CommandSeparator;
|
|
5679
|
+
exports.CommandShortcut = CommandShortcut;
|
|
5165
5680
|
exports.ContextMenu = ContextMenu;
|
|
5166
5681
|
exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem;
|
|
5167
5682
|
exports.ContextMenuContent = ContextMenuContent;
|
|
@@ -5249,6 +5764,7 @@ exports.HoverCard = HoverCard;
|
|
|
5249
5764
|
exports.HoverCardContent = HoverCardContent;
|
|
5250
5765
|
exports.HoverCardTrigger = HoverCardTrigger;
|
|
5251
5766
|
exports.IconButton = IconButton;
|
|
5767
|
+
exports.IconButtonSize = IconButtonSize;
|
|
5252
5768
|
exports.Input = Input;
|
|
5253
5769
|
exports.InputGroup = InputGroup;
|
|
5254
5770
|
exports.InputGroupAddon = InputGroupAddon;
|
|
@@ -5270,6 +5786,8 @@ exports.ItemHeader = ItemHeader;
|
|
|
5270
5786
|
exports.ItemMedia = ItemMedia;
|
|
5271
5787
|
exports.ItemSeparator = ItemSeparator;
|
|
5272
5788
|
exports.ItemTitle = ItemTitle;
|
|
5789
|
+
exports.Kbd = Kbd;
|
|
5790
|
+
exports.KbdGroup = KbdGroup;
|
|
5273
5791
|
exports.Label = Label;
|
|
5274
5792
|
exports.MENU_ICON_ID = MENU_ICON_ID;
|
|
5275
5793
|
exports.MenuIcon = MenuIcon;
|
|
@@ -5372,15 +5890,34 @@ exports.TabsTrigger = TabsTrigger;
|
|
|
5372
5890
|
exports.Textarea = Textarea;
|
|
5373
5891
|
exports.ThreadList = ThreadList;
|
|
5374
5892
|
exports.Toaster = Toaster;
|
|
5893
|
+
exports.Toggle = Toggle;
|
|
5894
|
+
exports.ToggleGroup = ToggleGroup;
|
|
5895
|
+
exports.ToggleGroupItem = ToggleGroupItem;
|
|
5375
5896
|
exports.Tooltip = Tooltip;
|
|
5376
5897
|
exports.TooltipContent = TooltipContent;
|
|
5377
5898
|
exports.TooltipProvider = TooltipProvider;
|
|
5378
5899
|
exports.TooltipTrigger = TooltipTrigger;
|
|
5900
|
+
exports.TypographyBlockquote = TypographyBlockquote;
|
|
5901
|
+
exports.TypographyH1 = TypographyH1;
|
|
5902
|
+
exports.TypographyH2 = TypographyH2;
|
|
5903
|
+
exports.TypographyH3 = TypographyH3;
|
|
5904
|
+
exports.TypographyH4 = TypographyH4;
|
|
5905
|
+
exports.TypographyInlineCode = TypographyInlineCode;
|
|
5906
|
+
exports.TypographyLarge = TypographyLarge;
|
|
5907
|
+
exports.TypographyList = TypographyList;
|
|
5908
|
+
exports.TypographyMuted = TypographyMuted;
|
|
5909
|
+
exports.TypographyP = TypographyP;
|
|
5910
|
+
exports.TypographySmall = TypographySmall;
|
|
5911
|
+
exports.UiKitComponent = UiKitComponent;
|
|
5912
|
+
exports.UiKitIcon = UiKitIcon;
|
|
5379
5913
|
exports.UserInfo = UserInfo;
|
|
5380
5914
|
exports.alertVariants = alertVariants;
|
|
5381
5915
|
exports.applyTheme = applyTheme;
|
|
5382
5916
|
exports.badgeVariants = badgeVariants;
|
|
5917
|
+
exports.buttonGroupVariants = buttonGroupVariants;
|
|
5383
5918
|
exports.emptyMediaVariants = emptyMediaVariants;
|
|
5919
|
+
exports.toggleVariants = toggleVariants;
|
|
5384
5920
|
exports.useFormField = useFormField;
|
|
5921
|
+
exports.useToast = useToast;
|
|
5385
5922
|
//# sourceMappingURL=index.cjs.map
|
|
5386
5923
|
//# sourceMappingURL=index.cjs.map
|