@syscore/ui-library 1.1.9 → 1.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/client/components/ui/Navigation.tsx +958 -0
  2. package/client/components/ui/SearchField.tsx +157 -0
  3. package/client/components/ui/StrategyTable.tsx +303 -0
  4. package/client/components/ui/Tag.tsx +127 -0
  5. package/client/components/ui/alert-dialog.tsx +1 -1
  6. package/client/components/ui/button.tsx +67 -127
  7. package/client/components/ui/calendar.tsx +2 -2
  8. package/client/components/ui/card.tsx +10 -13
  9. package/client/components/ui/carousel.tsx +56 -46
  10. package/client/components/ui/command.tsx +27 -16
  11. package/client/components/ui/dialog.tsx +113 -92
  12. package/client/components/ui/label.tsx +5 -3
  13. package/client/components/ui/menubar.tsx +1 -1
  14. package/client/components/ui/pagination.tsx +3 -3
  15. package/client/components/ui/sidebar.tsx +1 -1
  16. package/client/components/ui/tabs.tsx +350 -5
  17. package/client/components/ui/toggle.tsx +71 -19
  18. package/client/components/ui/tooltip.tsx +69 -18
  19. package/client/global.css +635 -58
  20. package/dist/ui/fonts/FT-Made/FTMade-Regular.otf +0 -0
  21. package/dist/ui/fonts/FT-Made/FTMade-Regular.ttf +0 -0
  22. package/dist/ui/fonts/FT-Made/FTMade-Regular.woff +0 -0
  23. package/dist/ui/fonts/FT-Made/FTMade-Regular.woff2 +0 -0
  24. package/dist/ui/fonts/Mazzard-M/mazzardsoftm-black.otf +0 -0
  25. package/dist/ui/fonts/Mazzard-M/mazzardsoftm-blackitalic.otf +0 -0
  26. package/dist/ui/fonts/Mazzard-M/mazzardsoftm-bold.otf +0 -0
  27. package/dist/ui/fonts/Mazzard-M/mazzardsoftm-bolditalic.otf +0 -0
  28. package/dist/ui/fonts/Mazzard-M/mazzardsoftm-extrabold.otf +0 -0
  29. package/dist/ui/fonts/Mazzard-M/mazzardsoftm-extrabolditalic.otf +0 -0
  30. package/dist/ui/fonts/Mazzard-M/mazzardsoftm-extralight.otf +0 -0
  31. package/dist/ui/fonts/Mazzard-M/mazzardsoftm-extralightitalic.otf +0 -0
  32. package/dist/ui/fonts/Mazzard-M/mazzardsoftm-italic.otf +0 -0
  33. package/dist/ui/fonts/Mazzard-M/mazzardsoftm-light.otf +0 -0
  34. package/dist/ui/fonts/Mazzard-M/mazzardsoftm-lightitalic.otf +0 -0
  35. package/dist/ui/fonts/Mazzard-M/mazzardsoftm-medium.otf +0 -0
  36. package/dist/ui/fonts/Mazzard-M/mazzardsoftm-mediumitalic.otf +0 -0
  37. package/dist/ui/fonts/Mazzard-M/mazzardsoftm-regular.otf +0 -0
  38. package/dist/ui/fonts/Mazzard-M/mazzardsoftm-semibold.otf +0 -0
  39. package/dist/ui/fonts/Mazzard-M/mazzardsoftm-semibolditalic.otf +0 -0
  40. package/dist/ui/fonts/Mazzard-M/mazzardsoftm-thin.otf +0 -0
  41. package/dist/ui/fonts/Mazzard-M/mazzardsoftm-thinitalic.otf +0 -0
  42. package/dist/ui/index.cjs.js +1 -1
  43. package/dist/ui/index.d.ts +1 -1
  44. package/dist/ui/index.es.js +401 -329
  45. package/package.json +3 -2
@@ -1,7 +1,8 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
+ import React__default, { useState, useEffect, useCallback } from "react";
3
4
  import * as AccordionPrimitive from "@radix-ui/react-accordion";
4
- import { ChevronDown, GripVertical, X, PanelLeft, Check, Circle, Dot, ChevronUp, ChevronRight, ChevronLeft, MoreHorizontal, ArrowLeft, ArrowRight, Search } from "lucide-react";
5
+ import { ChevronDown, GripVertical, X, PanelLeft, Check, Circle, Dot, ChevronUp, ChevronRight, ChevronLeft, MoreHorizontal, XIcon, ArrowLeft, ArrowRight, Search } from "lucide-react";
5
6
  import { clsx } from "clsx";
6
7
  import { twMerge } from "tailwind-merge";
7
8
  import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
@@ -21,11 +22,11 @@ import { OTPInput, OTPInputContext } from "input-otp";
21
22
  import * as SelectPrimitive from "@radix-ui/react-select";
22
23
  import { useFormContext, FormProvider, Controller } from "react-hook-form";
23
24
  import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
24
- import * as TogglePrimitive from "@radix-ui/react-toggle";
25
25
  import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
26
26
  import * as AvatarPrimitive from "@radix-ui/react-avatar";
27
27
  import * as ProgressPrimitive from "@radix-ui/react-progress";
28
28
  import { DayPicker } from "react-day-picker";
29
+ import "motion/react";
29
30
  import * as TabsPrimitive from "@radix-ui/react-tabs";
30
31
  import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
31
32
  import * as MenubarPrimitive from "@radix-ui/react-menubar";
@@ -86,30 +87,20 @@ const Card = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
86
87
  {
87
88
  ref,
88
89
  className: cn(
89
- "rounded-lg border bg-card text-card-foreground shadow-xs",
90
+ "rounded-lg border border-gray-100 bg-cyan-50 shadow-xs p-6 space-y-6",
90
91
  className
91
92
  ),
92
93
  ...props
93
94
  }
94
95
  ));
95
96
  Card.displayName = "Card";
96
- const CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
97
- "div",
98
- {
99
- ref,
100
- className: cn("flex flex-col space-y-1.5 p-6", className),
101
- ...props
102
- }
103
- ));
97
+ const CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex flex-col gap-6", className), ...props }));
104
98
  CardHeader.displayName = "CardHeader";
105
99
  const CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
106
100
  "h3",
107
101
  {
108
102
  ref,
109
- className: cn(
110
- "text-2xl font-semibold leading-none tracking-tight",
111
- className
112
- ),
103
+ className: cn("heading-xxsmall text-gray-800", className),
113
104
  ...props
114
105
  }
115
106
  ));
@@ -118,18 +109,25 @@ const CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @_
118
109
  "p",
119
110
  {
120
111
  ref,
121
- className: cn("text-sm text-muted-foreground", className),
112
+ className: cn("body-base text-gray-800", className),
122
113
  ...props
123
114
  }
124
115
  ));
125
116
  CardDescription.displayName = "CardDescription";
126
- const CardContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("p-6 pt-0", className), ...props }));
117
+ const CardContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
118
+ "div",
119
+ {
120
+ ref,
121
+ className: cn("body-base text-gray-800", className),
122
+ ...props
123
+ }
124
+ ));
127
125
  CardContent.displayName = "CardContent";
128
126
  const CardFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
129
127
  "div",
130
128
  {
131
129
  ref,
132
- className: cn("flex items-center p-6 pt-0", className),
130
+ className: cn("flex items-center body-base text-gray-800", className),
133
131
  ...props
134
132
  }
135
133
  ));
@@ -301,144 +299,64 @@ function useIsMobile() {
301
299
  return !!isMobile;
302
300
  }
303
301
  const buttonVariants = cva(
304
- "inline-flex items-center justify-center gap-2 whitespace-nowrap font-semibold transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-60 active:scale-[.98]",
302
+ "group inline-flex items-center justify-center rounded-full transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 cursor-pointer",
305
303
  {
306
304
  variants: {
307
305
  variant: {
308
- // CTA Button Variants
309
- "primary-gradient": [
310
- "text-white shadow-xs",
311
- "bg-linear-to-r from-cyan-gradient-from via-cyan-gradient-via to-cyan-gradient-to",
312
- "hover:shadow-lg hover:scale-[1.02]",
313
- "relative",
314
- "before:absolute before:inset-0 before:rounded-[inherit] before:bg-linear-to-r before:from-cyan-800 before:to-cyan-800 before:opacity-60 before:mix-blend-overlay"
315
- ],
316
- "primary-dark": [
317
- "text-white shadow-xs",
318
- "bg-linear-to-r from-cyan-800 to-cyan-dark",
319
- "hover:shadow-lg hover:brightness-110"
320
- ],
321
- "secondary-light": [
322
- "text-cyan-800 bg-white shadow-xs",
323
- "border border-gray-200",
324
- "hover:bg-gray-50/80"
325
- ],
326
- "tertiary-light": [
327
- "text-blue-600 bg-blue-50 shadow-xs",
328
- "border border-blue-200",
329
- "hover:bg-blue-50/80"
330
- ],
331
- // Utility Button Variants
332
- "utility-primary": ["text-white bg-blue-600", "hover:bg-blue-600/90"],
333
- "utility-secondary": [
334
- "text-blue-600 bg-white",
335
- "border border-blue-200",
336
- "hover:bg-gray-50"
337
- ],
338
- "utility-tertiary": [
339
- "text-gray-600 bg-white",
340
- "border border-gray-200",
341
- "hover:bg-gray-50"
342
- ],
343
- "tooltip-primary": ["text-white bg-cyan-300", "hover:bg-cyan-300/90"],
344
- "tooltip-secondary": ["text-white bg-gray-500", "hover:bg-gray-500/90"],
345
- // Icon Button Variants
346
- "icon-reset": [
347
- "text-gray-500 bg-white",
348
- "border border-gray-100",
349
- "hover:bg-gray-50",
350
- "p-0"
351
- ],
352
- "icon-close": [
353
- "text-gray-500 bg-white",
354
- "border border-gray-100",
355
- "hover:bg-gray-50",
356
- "p-0"
357
- ],
358
- "icon-close-semi": [
359
- "text-white bg-black/8",
360
- "hover:bg-black/12",
361
- "p-0"
362
- ],
363
- "icon-utility": [
364
- "text-gray-500 bg-white",
365
- "border border-gray-100",
366
- "hover:bg-gray-50",
367
- "p-0"
368
- ],
369
- "icon-account": [
370
- "bg-white border border-gray-100",
371
- "hover:bg-gray-50",
372
- "p-0"
373
- ],
374
- "icon-account-semi": ["bg-black/8 hover:bg-black/12", "p-0"]
306
+ // CTA variants
307
+ "primary-gradient": "text-white hover:opacity-90 btn-primary-gradient",
308
+ "primary-dark": "bg-cyan-800 text-white hover:bg-cyan-900 focus-visible:ring-cyan-800",
309
+ "secondary-light": "bg-white border border-gray-200 text-cyan-800 hover:bg-gray-50 focus-visible:ring-gray-200",
310
+ "tertiary-light": "bg-blue-50 border border-blue-200 text-blue-600 hover:bg-blue-100 focus-visible:ring-blue-200",
311
+ // Utility variants
312
+ "general-primary": "bg-blue-600 text-white hover:bg-blue-700 focus-visible:ring-blue-600",
313
+ "general-secondary": "bg-white border border-blue-200 text-blue-600 hover:bg-blue-50 focus-visible:ring-blue-200",
314
+ "general-tertiary": "bg-white border border-gray-200 text-gray-600 hover:bg-gray-50 focus-visible:ring-gray-200",
315
+ "tooltip-primary": "bg-cyan-300 text-white hover:bg-cyan-400 focus-visible:ring-cyan-300",
316
+ "tooltip-secondary": "bg-gray-500 text-white hover:bg-gray-600 focus-visible:ring-gray-500"
375
317
  },
376
318
  size: {
377
- xs: "h-8 px-4 text-sm rounded-full",
378
- // utility buttons
379
- sm: "h-8 px-3 text-xs rounded-md",
380
- md: "h-10 px-4 text-sm rounded-md",
381
- lg: "h-12 px-8 text-base rounded-full",
382
- // large CTA
383
- xl: "h-16 px-10 text-lg rounded-full",
384
- // xlarge CTA
385
- icon: "h-8 w-8 rounded-full"
386
- // 32px icon buttons
387
- },
388
- fullWidth: {
389
- true: "w-full"
319
+ xlarge: "h-16 px-10",
320
+ large: "h-12 px-8",
321
+ utility: "h-8 px-4",
322
+ icon: "size-[32px]"
390
323
  }
391
324
  },
325
+ compoundVariants: [
326
+ {
327
+ size: "xlarge",
328
+ className: "font-semibold"
329
+ },
330
+ {
331
+ size: "large",
332
+ className: "font-semibold"
333
+ },
334
+ {
335
+ size: "utility",
336
+ className: "font-semibold"
337
+ },
338
+ {
339
+ size: "icon",
340
+ className: "p-0 bg-white border border-gray-100 "
341
+ }
342
+ ],
392
343
  defaultVariants: {
393
- variant: "primary-gradient",
394
- size: "md"
344
+ variant: "primary-dark",
345
+ size: "large"
395
346
  }
396
347
  }
397
348
  );
398
349
  const Button = React.forwardRef(
399
- ({
400
- className,
401
- variant,
402
- size,
403
- fullWidth,
404
- leftIcon,
405
- rightIcon,
406
- iconOnly,
407
- children,
408
- style,
409
- ...props
410
- }, ref) => {
411
- const buttonStyle = {
412
- fontFamily: "'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
413
- ...style
414
- };
415
- if (iconOnly) {
416
- return /* @__PURE__ */ jsx(
417
- "button",
418
- {
419
- ref,
420
- className: cn(
421
- buttonVariants({ variant, size: size || "icon", fullWidth }),
422
- className
423
- ),
424
- style: buttonStyle,
425
- ...props,
426
- children: iconOnly
427
- }
428
- );
429
- }
430
- return /* @__PURE__ */ jsxs(
350
+ ({ className, variant, size, children, style, ...props }, ref) => {
351
+ const bodyClass = size === "xlarge" ? "body-large" : size === "large" ? "body-base" : size === "utility" ? "body-small" : "";
352
+ return /* @__PURE__ */ jsx(
431
353
  "button",
432
354
  {
355
+ className: cn(buttonVariants({ variant, size }), className),
356
+ style,
433
357
  ref,
434
- className: cn(buttonVariants({ variant, size, fullWidth }), className),
435
- style: buttonStyle,
436
358
  ...props,
437
- children: [
438
- leftIcon,
439
- /* @__PURE__ */ jsx("span", { children }),
440
- rightIcon
441
- ]
359
+ children: size === "icon" ? children : /* @__PURE__ */ jsx("span", { className: cn("relative z-10", bodyClass), children })
442
360
  }
443
361
  );
444
362
  }
@@ -570,22 +488,72 @@ function Skeleton({
570
488
  }
571
489
  );
572
490
  }
573
- const TooltipProvider = TooltipPrimitive.Provider;
574
- const Tooltip = TooltipPrimitive.Root;
575
- const TooltipTrigger = TooltipPrimitive.Trigger;
576
- const TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(
577
- TooltipPrimitive.Content,
578
- {
579
- ref,
580
- sideOffset,
581
- className: cn(
582
- "z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",
583
- className
584
- ),
585
- ...props
586
- }
587
- ));
588
- TooltipContent.displayName = TooltipPrimitive.Content.displayName;
491
+ function TooltipProvider({
492
+ delayDuration = 0,
493
+ ...props
494
+ }) {
495
+ return /* @__PURE__ */ jsx(
496
+ TooltipPrimitive.Provider,
497
+ {
498
+ "data-slot": "tooltip-provider",
499
+ delayDuration,
500
+ ...props
501
+ }
502
+ );
503
+ }
504
+ function Tooltip({
505
+ ...props
506
+ }) {
507
+ return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props }) });
508
+ }
509
+ function TooltipTrigger({
510
+ ...props
511
+ }) {
512
+ return /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
513
+ }
514
+ function TooltipContent({
515
+ className,
516
+ sideOffset = 0,
517
+ side = "bottom",
518
+ children,
519
+ alignOffset = 0,
520
+ ...props
521
+ }) {
522
+ return /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
523
+ TooltipPrimitive.Content,
524
+ {
525
+ "data-slot": "tooltip-content",
526
+ sideOffset,
527
+ alignOffset,
528
+ side,
529
+ className: cn(
530
+ "group relative bg-gray-700 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-lg px-6 pt-8 pb-6 text-balance shadow-sm",
531
+ className
532
+ ),
533
+ ...props,
534
+ children: [
535
+ /* @__PURE__ */ jsx("div", { className: "absolute left-1/2 -translate-x-1/2 flex justify-center group-data-[side=top]:bottom-0 group-data-[side=top]:rotate-180 group-data-[side=bottom]:top-0 group-data-[side=left]:right-0 group-data-[side=right]:left-0", children: /* @__PURE__ */ jsx(
536
+ "svg",
537
+ {
538
+ xmlns: "http://www.w3.org/2000/svg",
539
+ width: "10",
540
+ height: "5",
541
+ viewBox: "0 0 10 5",
542
+ fill: "none",
543
+ children: /* @__PURE__ */ jsx(
544
+ "path",
545
+ {
546
+ d: "M10 -1.74846e-06L-7.36867e-07 0C-3.29906e-07 2.76142 2.23858 5 5 5C7.76142 5 10 2.76142 10 -1.74846e-06Z",
547
+ fill: "#39C9EA"
548
+ }
549
+ )
550
+ }
551
+ ) }),
552
+ children
553
+ ]
554
+ }
555
+ ) });
556
+ }
589
557
  const SIDEBAR_COOKIE_NAME = "sidebar:state";
590
558
  const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
591
559
  const SIDEBAR_WIDTH = "16rem";
@@ -774,7 +742,7 @@ const SidebarTrigger = React.forwardRef(({ className, onClick, ...props }, ref)
774
742
  {
775
743
  ref,
776
744
  "data-sidebar": "trigger",
777
- variant: "ghost",
745
+ variant: "general-tertiary",
778
746
  size: "icon",
779
747
  className: cn("h-7 w-7", className),
780
748
  onClick: (event) => {
@@ -1154,14 +1122,15 @@ const SidebarMenuSubButton = React.forwardRef(({ asChild = false, size = "md", i
1154
1122
  });
1155
1123
  SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
1156
1124
  const labelVariants = cva(
1157
- "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
1125
+ "overline-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
1158
1126
  );
1159
- const Label = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1127
+ const Label = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
1160
1128
  LabelPrimitive.Root,
1161
1129
  {
1162
1130
  ref,
1163
1131
  className: cn(labelVariants(), className),
1164
- ...props
1132
+ ...props,
1133
+ children
1165
1134
  }
1166
1135
  ));
1167
1136
  Label.displayName = LabelPrimitive.Root.displayName;
@@ -1500,8 +1469,36 @@ const FormMessage = React.forwardRef(({ className, children, ...props }, ref) =>
1500
1469
  );
1501
1470
  });
1502
1471
  FormMessage.displayName = "FormMessage";
1472
+ function useSegmentedControl({
1473
+ value,
1474
+ defaultValue,
1475
+ onValueChange
1476
+ }) {
1477
+ const [internalValue, setInternalValue] = useState(
1478
+ value ?? defaultValue
1479
+ );
1480
+ useEffect(() => {
1481
+ if (value !== void 0) {
1482
+ setInternalValue(value);
1483
+ }
1484
+ }, [value]);
1485
+ const handleValueChange = useCallback(
1486
+ (newValue) => {
1487
+ if (value === void 0) {
1488
+ setInternalValue(newValue);
1489
+ }
1490
+ onValueChange == null ? void 0 : onValueChange(newValue);
1491
+ },
1492
+ [value, onValueChange]
1493
+ );
1494
+ const currentValue = value ?? internalValue;
1495
+ return {
1496
+ value: currentValue,
1497
+ onValueChange: handleValueChange
1498
+ };
1499
+ }
1503
1500
  const toggleVariants = cva(
1504
- "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
1501
+ "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
1505
1502
  {
1506
1503
  variants: {
1507
1504
  variant: {
@@ -1520,15 +1517,36 @@ const toggleVariants = cva(
1520
1517
  }
1521
1518
  }
1522
1519
  );
1523
- const Toggle = React.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
1524
- TogglePrimitive.Root,
1525
- {
1526
- ref,
1527
- className: cn(toggleVariants({ variant, size, className })),
1528
- ...props
1520
+ const SegmentedControlInner = React.forwardRef(
1521
+ ({ className, options, value, defaultValue, onValueChange, ...props }, ref) => {
1522
+ var _a;
1523
+ const { value: selectedValue, onValueChange: handleValueChange } = useSegmentedControl({
1524
+ value,
1525
+ defaultValue: defaultValue ?? ((_a = options[0]) == null ? void 0 : _a.value),
1526
+ onValueChange
1527
+ });
1528
+ return /* @__PURE__ */ jsx("div", { ref, className: cn(className), ...props, children: options.map((option) => {
1529
+ const isReactElement = React.isValidElement(option.label);
1530
+ return /* @__PURE__ */ jsx(
1531
+ "button",
1532
+ {
1533
+ className: cn(
1534
+ "inline-flex items-center justify-center h-8 px-6 rounded-full transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring",
1535
+ selectedValue === option.value ? "bg-cyan-700 text-white font-semibold" : "text-gray-600 hover:bg-gray-50 font-medium"
1536
+ ),
1537
+ onClick: () => handleValueChange(option.value),
1538
+ type: "button",
1539
+ "data-active": selectedValue === option.value,
1540
+ children: isReactElement ? option.label : /* @__PURE__ */ jsx("span", { className: "body-small font-medium", children: option.label })
1541
+ },
1542
+ option.value
1543
+ );
1544
+ }) });
1529
1545
  }
1530
- ));
1531
- Toggle.displayName = TogglePrimitive.Root.displayName;
1546
+ );
1547
+ SegmentedControlInner.displayName = "SegmentedControl";
1548
+ const SegmentedControl = SegmentedControlInner;
1549
+ const Toggle = SegmentedControl;
1532
1550
  const ToggleGroupContext = React.createContext({
1533
1551
  size: "default",
1534
1552
  variant: "default"
@@ -1713,7 +1731,7 @@ const AlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => /*
1713
1731
  {
1714
1732
  ref,
1715
1733
  className: cn(
1716
- buttonVariants({ variant: "outline" }),
1734
+ buttonVariants({ variant: "general-secondary" }),
1717
1735
  "mt-2 sm:mt-0",
1718
1736
  className
1719
1737
  ),
@@ -1853,7 +1871,7 @@ function Calendar({
1853
1871
  caption_label: "text-sm font-medium",
1854
1872
  nav: "space-x-1 flex items-center",
1855
1873
  nav_button: cn(
1856
- buttonVariants({ variant: "outline" }),
1874
+ buttonVariants({ variant: "general-secondary" }),
1857
1875
  "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
1858
1876
  ),
1859
1877
  nav_button_previous: "absolute left-1",
@@ -1864,7 +1882,7 @@ function Calendar({
1864
1882
  row: "flex w-full mt-2",
1865
1883
  cell: "h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",
1866
1884
  day: cn(
1867
- buttonVariants({ variant: "ghost" }),
1885
+ buttonVariants({ variant: "general-tertiary" }),
1868
1886
  "h-9 w-9 p-0 font-normal aria-selected:opacity-100"
1869
1887
  ),
1870
1888
  day_range_end: "day-range-end",
@@ -1889,8 +1907,16 @@ function Calendar({
1889
1907
  );
1890
1908
  }
1891
1909
  Calendar.displayName = "Calendar";
1892
- const Tabs = TabsPrimitive.Root;
1893
- const TabsList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1910
+ const TabsRoot = React__default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1911
+ TabsPrimitive.Root,
1912
+ {
1913
+ ref,
1914
+ className: cn("w-full", className),
1915
+ ...props
1916
+ }
1917
+ ));
1918
+ TabsRoot.displayName = TabsPrimitive.Root.displayName;
1919
+ const TabsList = React__default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1894
1920
  TabsPrimitive.List,
1895
1921
  {
1896
1922
  ref,
@@ -1902,24 +1928,24 @@ const TabsList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
1902
1928
  }
1903
1929
  ));
1904
1930
  TabsList.displayName = TabsPrimitive.List.displayName;
1905
- const TabsTrigger = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1931
+ const TabsTrigger = React__default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1906
1932
  TabsPrimitive.Trigger,
1907
1933
  {
1908
1934
  ref,
1909
1935
  className: cn(
1910
- "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-xs",
1936
+ "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",
1911
1937
  className
1912
1938
  ),
1913
1939
  ...props
1914
1940
  }
1915
1941
  ));
1916
1942
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
1917
- const TabsContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1943
+ const TabsContent = React__default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1918
1944
  TabsPrimitive.Content,
1919
1945
  {
1920
1946
  ref,
1921
1947
  className: cn(
1922
- "mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
1948
+ "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
1923
1949
  className
1924
1950
  ),
1925
1951
  ...props
@@ -1958,7 +1984,7 @@ const PaginationLink = ({
1958
1984
  "aria-current": isActive ? "page" : void 0,
1959
1985
  className: cn(
1960
1986
  buttonVariants({
1961
- variant: isActive ? "outline-solid" : "ghost",
1987
+ variant: isActive ? "general-secondary" : "general-tertiary",
1962
1988
  size
1963
1989
  }),
1964
1990
  className
@@ -1974,7 +2000,7 @@ const PaginationPrevious = ({
1974
2000
  PaginationLink,
1975
2001
  {
1976
2002
  "aria-label": "Go to previous page",
1977
- size: "default",
2003
+ size: "utility",
1978
2004
  className: cn("gap-1 pl-2.5", className),
1979
2005
  ...props,
1980
2006
  children: [
@@ -1991,7 +2017,7 @@ const PaginationNext = ({
1991
2017
  PaginationLink,
1992
2018
  {
1993
2019
  "aria-label": "Go to next page",
1994
- size: "default",
2020
+ size: "utility",
1995
2021
  className: cn("gap-1 pr-2.5", className),
1996
2022
  ...props,
1997
2023
  children: [
@@ -2393,93 +2419,126 @@ const DropdownMenuShortcut = ({
2393
2419
  );
2394
2420
  };
2395
2421
  DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
2396
- const Dialog = SheetPrimitive.Root;
2397
- const DialogTrigger = SheetPrimitive.Trigger;
2398
- const DialogPortal = SheetPrimitive.Portal;
2399
- const DialogClose = SheetPrimitive.Close;
2400
- const DialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2401
- SheetPrimitive.Overlay,
2402
- {
2403
- ref,
2404
- className: cn(
2405
- "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
2406
- className
2407
- ),
2408
- ...props
2409
- }
2410
- ));
2411
- DialogOverlay.displayName = SheetPrimitive.Overlay.displayName;
2412
- const DialogContent = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
2413
- /* @__PURE__ */ jsx(DialogOverlay, {}),
2414
- /* @__PURE__ */ jsxs(
2415
- SheetPrimitive.Content,
2422
+ function Dialog({
2423
+ ...props
2424
+ }) {
2425
+ return /* @__PURE__ */ jsx(SheetPrimitive.Root, { "data-slot": "dialog", ...props });
2426
+ }
2427
+ function DialogTrigger({
2428
+ ...props
2429
+ }) {
2430
+ return /* @__PURE__ */ jsx(SheetPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
2431
+ }
2432
+ function DialogPortal({
2433
+ ...props
2434
+ }) {
2435
+ return /* @__PURE__ */ jsx(SheetPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
2436
+ }
2437
+ function DialogClose({
2438
+ ...props
2439
+ }) {
2440
+ return /* @__PURE__ */ jsx(SheetPrimitive.Close, { "data-slot": "dialog-close", ...props });
2441
+ }
2442
+ function DialogOverlay({
2443
+ className,
2444
+ ...props
2445
+ }) {
2446
+ return /* @__PURE__ */ jsx(
2447
+ SheetPrimitive.Overlay,
2416
2448
  {
2417
- ref,
2449
+ "data-slot": "dialog-overlay",
2418
2450
  className: cn(
2419
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
2451
+ "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",
2420
2452
  className
2421
2453
  ),
2422
- ...props,
2423
- children: [
2424
- children,
2425
- /* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
2426
- /* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
2427
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
2428
- ] })
2429
- ]
2454
+ ...props
2430
2455
  }
2431
- )
2432
- ] }));
2433
- DialogContent.displayName = SheetPrimitive.Content.displayName;
2434
- const DialogHeader = ({
2456
+ );
2457
+ }
2458
+ function DialogContent({
2435
2459
  className,
2460
+ children,
2461
+ showCloseButton = true,
2436
2462
  ...props
2437
- }) => /* @__PURE__ */ jsx(
2438
- "div",
2439
- {
2440
- className: cn(
2441
- "flex flex-col space-y-1.5 text-center sm:text-left",
2442
- className
2443
- ),
2444
- ...props
2445
- }
2446
- );
2447
- DialogHeader.displayName = "DialogHeader";
2448
- const DialogFooter = ({
2463
+ }) {
2464
+ return /* @__PURE__ */ jsxs(DialogPortal, { "data-slot": "dialog-portal", children: [
2465
+ /* @__PURE__ */ jsx(DialogOverlay, {}),
2466
+ /* @__PURE__ */ jsxs(
2467
+ SheetPrimitive.Content,
2468
+ {
2469
+ "data-slot": "dialog-content",
2470
+ className: cn(
2471
+ "DialogContent overflow-hidden rounded-[40px] gap-4 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-[30%] left-[50%] z-50 grid max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] border-12 border-[rgba(255,255,255,0.20)] duration-200 sm:max-w-lg",
2472
+ className
2473
+ ),
2474
+ ...props,
2475
+ children: [
2476
+ /* @__PURE__ */ jsx("div", { className: "p-6 bg-gray-50", children }),
2477
+ showCloseButton && /* @__PURE__ */ jsxs(
2478
+ SheetPrimitive.Close,
2479
+ {
2480
+ "data-slot": "dialog-close",
2481
+ className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
2482
+ children: [
2483
+ /* @__PURE__ */ jsx(XIcon, {}),
2484
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
2485
+ ]
2486
+ }
2487
+ )
2488
+ ]
2489
+ }
2490
+ )
2491
+ ] });
2492
+ }
2493
+ function DialogHeader({ className, ...props }) {
2494
+ return /* @__PURE__ */ jsx(
2495
+ "div",
2496
+ {
2497
+ "data-slot": "dialog-header",
2498
+ className: cn("flex flex-col gap-2 text-center sm:text-left", className),
2499
+ ...props
2500
+ }
2501
+ );
2502
+ }
2503
+ function DialogFooter({ className, ...props }) {
2504
+ return /* @__PURE__ */ jsx(
2505
+ "div",
2506
+ {
2507
+ "data-slot": "dialog-footer",
2508
+ className: cn(
2509
+ "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
2510
+ className
2511
+ ),
2512
+ ...props
2513
+ }
2514
+ );
2515
+ }
2516
+ function DialogTitle({
2449
2517
  className,
2450
2518
  ...props
2451
- }) => /* @__PURE__ */ jsx(
2452
- "div",
2453
- {
2454
- className: cn(
2455
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
2456
- className
2457
- ),
2458
- ...props
2459
- }
2460
- );
2461
- DialogFooter.displayName = "DialogFooter";
2462
- const DialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2463
- SheetPrimitive.Title,
2464
- {
2465
- ref,
2466
- className: cn(
2467
- "text-lg font-semibold leading-none tracking-tight",
2468
- className
2469
- ),
2470
- ...props
2471
- }
2472
- ));
2473
- DialogTitle.displayName = SheetPrimitive.Title.displayName;
2474
- const DialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2475
- SheetPrimitive.Description,
2476
- {
2477
- ref,
2478
- className: cn("text-sm text-muted-foreground", className),
2479
- ...props
2480
- }
2481
- ));
2482
- DialogDescription.displayName = SheetPrimitive.Description.displayName;
2519
+ }) {
2520
+ return /* @__PURE__ */ jsx(
2521
+ SheetPrimitive.Title,
2522
+ {
2523
+ "data-slot": "dialog-title",
2524
+ className: cn("heading-xxsmall ", className),
2525
+ ...props
2526
+ }
2527
+ );
2528
+ }
2529
+ function DialogDescription({
2530
+ className,
2531
+ ...props
2532
+ }) {
2533
+ return /* @__PURE__ */ jsx(
2534
+ SheetPrimitive.Description,
2535
+ {
2536
+ "data-slot": "dialog-description",
2537
+ className: cn("text-muted-foreground text-sm", className),
2538
+ ...props
2539
+ }
2540
+ );
2541
+ }
2483
2542
  const Drawer = ({
2484
2543
  shouldScaleBackground = true,
2485
2544
  ...props
@@ -2861,53 +2920,57 @@ const CarouselItem = React.forwardRef(({ className, ...props }, ref) => {
2861
2920
  );
2862
2921
  });
2863
2922
  CarouselItem.displayName = "CarouselItem";
2864
- const CarouselPrevious = React.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
2865
- const { orientation, scrollPrev, canScrollPrev } = useCarousel();
2866
- return /* @__PURE__ */ jsxs(
2867
- Button,
2868
- {
2869
- ref,
2870
- variant,
2871
- size,
2872
- className: cn(
2873
- "absolute h-8 w-8 rounded-full",
2874
- orientation === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
2875
- className
2876
- ),
2877
- disabled: !canScrollPrev,
2878
- onClick: scrollPrev,
2879
- ...props,
2880
- children: [
2881
- /* @__PURE__ */ jsx(ArrowLeft, { className: "h-4 w-4" }),
2882
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Previous slide" })
2883
- ]
2884
- }
2885
- );
2886
- });
2923
+ const CarouselPrevious = React.forwardRef(
2924
+ ({ className, variant = "general-secondary", size = "icon", ...props }, ref) => {
2925
+ const { orientation, scrollPrev, canScrollPrev } = useCarousel();
2926
+ return /* @__PURE__ */ jsxs(
2927
+ Button,
2928
+ {
2929
+ ref,
2930
+ variant,
2931
+ size,
2932
+ className: cn(
2933
+ "absolute h-8 w-8 rounded-full",
2934
+ orientation === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
2935
+ className
2936
+ ),
2937
+ disabled: !canScrollPrev,
2938
+ onClick: scrollPrev,
2939
+ ...props,
2940
+ children: [
2941
+ /* @__PURE__ */ jsx(ArrowLeft, { className: "h-4 w-4" }),
2942
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Previous slide" })
2943
+ ]
2944
+ }
2945
+ );
2946
+ }
2947
+ );
2887
2948
  CarouselPrevious.displayName = "CarouselPrevious";
2888
- const CarouselNext = React.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
2889
- const { orientation, scrollNext, canScrollNext } = useCarousel();
2890
- return /* @__PURE__ */ jsxs(
2891
- Button,
2892
- {
2893
- ref,
2894
- variant,
2895
- size,
2896
- className: cn(
2897
- "absolute h-8 w-8 rounded-full",
2898
- orientation === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
2899
- className
2900
- ),
2901
- disabled: !canScrollNext,
2902
- onClick: scrollNext,
2903
- ...props,
2904
- children: [
2905
- /* @__PURE__ */ jsx(ArrowRight, { className: "h-4 w-4" }),
2906
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Next slide" })
2907
- ]
2908
- }
2909
- );
2910
- });
2949
+ const CarouselNext = React.forwardRef(
2950
+ ({ className, variant = "general-secondary", size = "icon", ...props }, ref) => {
2951
+ const { orientation, scrollNext, canScrollNext } = useCarousel();
2952
+ return /* @__PURE__ */ jsxs(
2953
+ Button,
2954
+ {
2955
+ ref,
2956
+ variant,
2957
+ size,
2958
+ className: cn(
2959
+ "absolute h-8 w-8 rounded-full",
2960
+ orientation === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
2961
+ className
2962
+ ),
2963
+ disabled: !canScrollNext,
2964
+ onClick: scrollNext,
2965
+ ...props,
2966
+ children: [
2967
+ /* @__PURE__ */ jsx(ArrowRight, { className: "h-4 w-4" }),
2968
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Next slide" })
2969
+ ]
2970
+ }
2971
+ );
2972
+ }
2973
+ );
2911
2974
  CarouselNext.displayName = "CarouselNext";
2912
2975
  const Collapsible = CollapsiblePrimitive.Root;
2913
2976
  const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger;
@@ -2916,37 +2979,47 @@ const Command = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
2916
2979
  Command$1,
2917
2980
  {
2918
2981
  ref,
2919
- className: cn(
2920
- "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
2921
- className
2922
- ),
2982
+ className: cn("flex h-full w-full flex-col overflow-hidden", className),
2923
2983
  ...props
2924
2984
  }
2925
2985
  ));
2926
2986
  Command.displayName = Command$1.displayName;
2927
2987
  const CommandDialog = ({ children, ...props }) => {
2928
- return /* @__PURE__ */ jsx(Dialog, { ...props, children: /* @__PURE__ */ jsx(DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ jsx(Command, { className: "**:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 **:[[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 **:[[cmdk-input]]:h-12 **:[[cmdk-item]]:px-2 **:[[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) }) });
2988
+ return /* @__PURE__ */ jsx(Dialog, { ...props, children: /* @__PURE__ */ jsx(DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ jsx(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) }) });
2929
2989
  };
2930
- const CommandInput = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
2931
- /* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
2932
- /* @__PURE__ */ jsx(
2933
- Command$1.Input,
2934
- {
2935
- ref,
2936
- className: cn(
2937
- "flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
2938
- className
2939
- ),
2940
- ...props
2941
- }
2942
- )
2943
- ] }));
2990
+ const CommandInput = React.forwardRef(({ className, icon: Icon = Search, ...props }, ref) => /* @__PURE__ */ jsxs(
2991
+ "div",
2992
+ {
2993
+ className: cn(
2994
+ "group relative flex h-14 w-full sm:min-w-[344px] items-center gap-4 rounded-lg border border-gray-200 bg-white p-4 focus:ring-0 focus:outline-none",
2995
+ className
2996
+ ),
2997
+ "cmdk-input-wrapper": "",
2998
+ children: [
2999
+ /* @__PURE__ */ jsx(Icon, { className: " h-4 w-4 shrink-0 group-focus-within:-translate-x-4 group-focus-within:opacity-0 ease-in-out duration-200" }),
3000
+ /* @__PURE__ */ jsx(
3001
+ Command$1.Input,
3002
+ {
3003
+ ref,
3004
+ className: cn(
3005
+ "text-base w-full ring-0 outline-none group-focus-within:-translate-x-8 ease-in-out duration-200",
3006
+ className
3007
+ ),
3008
+ ...props
3009
+ }
3010
+ )
3011
+ ]
3012
+ }
3013
+ ));
2944
3014
  CommandInput.displayName = Command$1.Input.displayName;
2945
3015
  const CommandList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2946
3016
  Command$1.List,
2947
3017
  {
2948
3018
  ref,
2949
- className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className),
3019
+ className: cn(
3020
+ "max-h-[300px] overflow-y-auto overflow-x-hidden bg-gray-700 rounded-b-lg",
3021
+ className
3022
+ ),
2950
3023
  ...props
2951
3024
  }
2952
3025
  ));
@@ -2965,7 +3038,7 @@ const CommandGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PU
2965
3038
  {
2966
3039
  ref,
2967
3040
  className: cn(
2968
- "overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground",
3041
+ "group overflow-hidden [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground ",
2969
3042
  className
2970
3043
  ),
2971
3044
  ...props
@@ -2986,7 +3059,7 @@ const CommandItem = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
2986
3059
  {
2987
3060
  ref,
2988
3061
  className: cn(
2989
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",
3062
+ "relative flex w-full items-center gap-2 cursor-default select-none p-4 text-sm outline-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 bg-gray-700 hover:bg-[rgba(0,0,0,0.2)] text-gray-200",
2990
3063
  className
2991
3064
  ),
2992
3065
  ...props
@@ -3674,7 +3747,7 @@ export {
3674
3747
  TableHead,
3675
3748
  TableHeader,
3676
3749
  TableRow,
3677
- Tabs,
3750
+ TabsRoot as Tabs,
3678
3751
  TabsContent,
3679
3752
  TabsList,
3680
3753
  TabsTrigger,
@@ -3697,6 +3770,5 @@ export {
3697
3770
  badgeVariants,
3698
3771
  buttonVariants,
3699
3772
  navigationMenuTriggerStyle,
3700
- toggleVariants,
3701
3773
  useToast
3702
3774
  };