@crmy/web 0.5.5 → 0.5.9

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 (121) hide show
  1. package/dist/assets/index-CskfWp8E.js +560 -0
  2. package/dist/assets/index-D763l57m.css +1 -0
  3. package/{index.html → dist/index.html} +2 -1
  4. package/package.json +4 -1
  5. package/postcss.config.js +0 -6
  6. package/src/App.tsx +0 -158
  7. package/src/api/client.ts +0 -82
  8. package/src/api/hooks.ts +0 -689
  9. package/src/components/CustomFields.tsx +0 -240
  10. package/src/components/NavLink.tsx +0 -28
  11. package/src/components/crm/AIFab.tsx +0 -37
  12. package/src/components/crm/AccountDrawer.tsx +0 -372
  13. package/src/components/crm/ActivityTimeline.tsx +0 -115
  14. package/src/components/crm/AssignmentDrawer.tsx +0 -396
  15. package/src/components/crm/BriefingPanel.tsx +0 -217
  16. package/src/components/crm/CommandPalette.tsx +0 -254
  17. package/src/components/crm/ContactAvatar.tsx +0 -49
  18. package/src/components/crm/ContactDrawer.tsx +0 -438
  19. package/src/components/crm/ContextPanel.tsx +0 -200
  20. package/src/components/crm/CrmWidgets.tsx +0 -417
  21. package/src/components/crm/DrawerShell.tsx +0 -77
  22. package/src/components/crm/ListToolbar.tsx +0 -252
  23. package/src/components/crm/OpportunityDrawer.tsx +0 -372
  24. package/src/components/crm/PaginationBar.tsx +0 -111
  25. package/src/components/crm/QuickAddDrawer.tsx +0 -652
  26. package/src/components/crm/ShortcutsOverlay.tsx +0 -65
  27. package/src/components/crm/UseCaseDrawer.tsx +0 -454
  28. package/src/components/layout/MobileNav.tsx +0 -49
  29. package/src/components/layout/Sidebar.tsx +0 -157
  30. package/src/components/layout/TopBar.tsx +0 -54
  31. package/src/components/settings/ActorsSettings.tsx +0 -1190
  32. package/src/components/ui/accordion.tsx +0 -52
  33. package/src/components/ui/alert-dialog.tsx +0 -104
  34. package/src/components/ui/alert.tsx +0 -43
  35. package/src/components/ui/aspect-ratio.tsx +0 -5
  36. package/src/components/ui/avatar.tsx +0 -38
  37. package/src/components/ui/badge.tsx +0 -29
  38. package/src/components/ui/breadcrumb.tsx +0 -90
  39. package/src/components/ui/button.tsx +0 -47
  40. package/src/components/ui/calendar.tsx +0 -54
  41. package/src/components/ui/card.tsx +0 -43
  42. package/src/components/ui/carousel.tsx +0 -224
  43. package/src/components/ui/chart.tsx +0 -303
  44. package/src/components/ui/checkbox.tsx +0 -26
  45. package/src/components/ui/collapsible.tsx +0 -9
  46. package/src/components/ui/command.tsx +0 -132
  47. package/src/components/ui/context-menu.tsx +0 -178
  48. package/src/components/ui/date-picker.tsx +0 -313
  49. package/src/components/ui/dialog.tsx +0 -95
  50. package/src/components/ui/drawer.tsx +0 -87
  51. package/src/components/ui/dropdown-menu.tsx +0 -179
  52. package/src/components/ui/form.tsx +0 -129
  53. package/src/components/ui/hover-card.tsx +0 -27
  54. package/src/components/ui/input-otp.tsx +0 -61
  55. package/src/components/ui/input.tsx +0 -22
  56. package/src/components/ui/label.tsx +0 -17
  57. package/src/components/ui/menubar.tsx +0 -207
  58. package/src/components/ui/navigation-menu.tsx +0 -120
  59. package/src/components/ui/pagination.tsx +0 -81
  60. package/src/components/ui/popover.tsx +0 -29
  61. package/src/components/ui/progress.tsx +0 -23
  62. package/src/components/ui/radio-group.tsx +0 -36
  63. package/src/components/ui/resizable.tsx +0 -37
  64. package/src/components/ui/scroll-area.tsx +0 -38
  65. package/src/components/ui/select.tsx +0 -143
  66. package/src/components/ui/separator.tsx +0 -20
  67. package/src/components/ui/sheet.tsx +0 -107
  68. package/src/components/ui/sidebar.tsx +0 -637
  69. package/src/components/ui/skeleton.tsx +0 -7
  70. package/src/components/ui/slider.tsx +0 -23
  71. package/src/components/ui/sonner.tsx +0 -24
  72. package/src/components/ui/switch.tsx +0 -27
  73. package/src/components/ui/table.tsx +0 -72
  74. package/src/components/ui/tabs.tsx +0 -53
  75. package/src/components/ui/textarea.tsx +0 -21
  76. package/src/components/ui/toast.tsx +0 -111
  77. package/src/components/ui/toaster.tsx +0 -24
  78. package/src/components/ui/toggle-group.tsx +0 -49
  79. package/src/components/ui/toggle.tsx +0 -37
  80. package/src/components/ui/tooltip.tsx +0 -28
  81. package/src/components/ui/use-toast.ts +0 -1
  82. package/src/components/ui/utils.ts +0 -9
  83. package/src/contexts/AgentSettingsContext.tsx +0 -24
  84. package/src/hooks/use-mobile.tsx +0 -19
  85. package/src/hooks/use-toast.ts +0 -186
  86. package/src/hooks/useKeyboardShortcuts.ts +0 -95
  87. package/src/hooks/useTheme.ts +0 -24
  88. package/src/index.css +0 -245
  89. package/src/lib/entityColors.ts +0 -18
  90. package/src/lib/stageConfig.ts +0 -32
  91. package/src/lib/utils.ts +0 -6
  92. package/src/main.tsx +0 -25
  93. package/src/pages/Accounts.tsx +0 -205
  94. package/src/pages/Activities.tsx +0 -251
  95. package/src/pages/Agent.tsx +0 -237
  96. package/src/pages/AgentSettings.tsx +0 -544
  97. package/src/pages/Assignments.tsx +0 -750
  98. package/src/pages/Contacts.tsx +0 -200
  99. package/src/pages/Dashboard.tsx +0 -143
  100. package/src/pages/Inbox.tsx +0 -615
  101. package/src/pages/NotFound.tsx +0 -24
  102. package/src/pages/Opportunities.tsx +0 -386
  103. package/src/pages/SearchResults.tsx +0 -49
  104. package/src/pages/Settings.tsx +0 -1884
  105. package/src/pages/UseCases.tsx +0 -396
  106. package/src/pages/auth/Login.tsx +0 -261
  107. package/src/pages/hitl/HITL.tsx +0 -101
  108. package/src/store/appStore.ts +0 -103
  109. package/src/vite-env.d.ts +0 -14
  110. package/tailwind.config.js +0 -121
  111. package/tsconfig.json +0 -24
  112. package/vite.config.ts +0 -27
  113. /package/{public → dist}/android-chrome-192x192.png +0 -0
  114. /package/{public → dist}/android-chrome-512x512.png +0 -0
  115. /package/{public → dist}/apple-touch-icon.png +0 -0
  116. /package/{src/assets/crmy-logo.png → dist/assets/crmy-logo-DWN0xBPW.png} +0 -0
  117. /package/{public → dist}/favicon-16x16.png +0 -0
  118. /package/{public → dist}/favicon-32x32.png +0 -0
  119. /package/{public → dist}/favicon.ico +0 -0
  120. /package/{public → dist}/favicon.svg +0 -0
  121. /package/{public → dist}/site.webmanifest +0 -0
@@ -1,52 +0,0 @@
1
- import * as React from "react";
2
- import * as AccordionPrimitive from "@radix-ui/react-accordion";
3
- import { ChevronDown } from "lucide-react";
4
-
5
- import { cn } from "@/lib/utils";
6
-
7
- const Accordion = AccordionPrimitive.Root;
8
-
9
- const AccordionItem = React.forwardRef<
10
- React.ElementRef<typeof AccordionPrimitive.Item>,
11
- React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>
12
- >(({ className, ...props }, ref) => (
13
- <AccordionPrimitive.Item ref={ref} className={cn("border-b", className)} {...props} />
14
- ));
15
- AccordionItem.displayName = "AccordionItem";
16
-
17
- const AccordionTrigger = React.forwardRef<
18
- React.ElementRef<typeof AccordionPrimitive.Trigger>,
19
- React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>
20
- >(({ className, children, ...props }, ref) => (
21
- <AccordionPrimitive.Header className="flex">
22
- <AccordionPrimitive.Trigger
23
- ref={ref}
24
- className={cn(
25
- "flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
26
- className,
27
- )}
28
- {...props}
29
- >
30
- {children}
31
- <ChevronDown className="h-4 w-4 shrink-0 transition-transform duration-200" />
32
- </AccordionPrimitive.Trigger>
33
- </AccordionPrimitive.Header>
34
- ));
35
- AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
36
-
37
- const AccordionContent = React.forwardRef<
38
- React.ElementRef<typeof AccordionPrimitive.Content>,
39
- React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>
40
- >(({ className, children, ...props }, ref) => (
41
- <AccordionPrimitive.Content
42
- ref={ref}
43
- className="overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"
44
- {...props}
45
- >
46
- <div className={cn("pb-4 pt-0", className)}>{children}</div>
47
- </AccordionPrimitive.Content>
48
- ));
49
-
50
- AccordionContent.displayName = AccordionPrimitive.Content.displayName;
51
-
52
- export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
@@ -1,104 +0,0 @@
1
- import * as React from "react";
2
- import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
3
-
4
- import { cn } from "@/lib/utils";
5
- import { buttonVariants } from "@/components/ui/button";
6
-
7
- const AlertDialog = AlertDialogPrimitive.Root;
8
-
9
- const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
10
-
11
- const AlertDialogPortal = AlertDialogPrimitive.Portal;
12
-
13
- const AlertDialogOverlay = React.forwardRef<
14
- React.ElementRef<typeof AlertDialogPrimitive.Overlay>,
15
- React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>
16
- >(({ className, ...props }, ref) => (
17
- <AlertDialogPrimitive.Overlay
18
- className={cn(
19
- "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",
20
- className,
21
- )}
22
- {...props}
23
- ref={ref}
24
- />
25
- ));
26
- AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
27
-
28
- const AlertDialogContent = React.forwardRef<
29
- React.ElementRef<typeof AlertDialogPrimitive.Content>,
30
- React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>
31
- >(({ className, ...props }, ref) => (
32
- <AlertDialogPortal>
33
- <AlertDialogOverlay />
34
- <AlertDialogPrimitive.Content
35
- ref={ref}
36
- className={cn(
37
- "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",
38
- className,
39
- )}
40
- {...props}
41
- />
42
- </AlertDialogPortal>
43
- ));
44
- AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
45
-
46
- const AlertDialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
47
- <div className={cn("flex flex-col space-y-2 text-center sm:text-left", className)} {...props} />
48
- );
49
- AlertDialogHeader.displayName = "AlertDialogHeader";
50
-
51
- const AlertDialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
52
- <div className={cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)} {...props} />
53
- );
54
- AlertDialogFooter.displayName = "AlertDialogFooter";
55
-
56
- const AlertDialogTitle = React.forwardRef<
57
- React.ElementRef<typeof AlertDialogPrimitive.Title>,
58
- React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>
59
- >(({ className, ...props }, ref) => (
60
- <AlertDialogPrimitive.Title ref={ref} className={cn("text-lg font-semibold", className)} {...props} />
61
- ));
62
- AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
63
-
64
- const AlertDialogDescription = React.forwardRef<
65
- React.ElementRef<typeof AlertDialogPrimitive.Description>,
66
- React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>
67
- >(({ className, ...props }, ref) => (
68
- <AlertDialogPrimitive.Description ref={ref} className={cn("text-sm text-muted-foreground", className)} {...props} />
69
- ));
70
- AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
71
-
72
- const AlertDialogAction = React.forwardRef<
73
- React.ElementRef<typeof AlertDialogPrimitive.Action>,
74
- React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>
75
- >(({ className, ...props }, ref) => (
76
- <AlertDialogPrimitive.Action ref={ref} className={cn(buttonVariants(), className)} {...props} />
77
- ));
78
- AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
79
-
80
- const AlertDialogCancel = React.forwardRef<
81
- React.ElementRef<typeof AlertDialogPrimitive.Cancel>,
82
- React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>
83
- >(({ className, ...props }, ref) => (
84
- <AlertDialogPrimitive.Cancel
85
- ref={ref}
86
- className={cn(buttonVariants({ variant: "outline" }), "mt-2 sm:mt-0", className)}
87
- {...props}
88
- />
89
- ));
90
- AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
91
-
92
- export {
93
- AlertDialog,
94
- AlertDialogPortal,
95
- AlertDialogOverlay,
96
- AlertDialogTrigger,
97
- AlertDialogContent,
98
- AlertDialogHeader,
99
- AlertDialogFooter,
100
- AlertDialogTitle,
101
- AlertDialogDescription,
102
- AlertDialogAction,
103
- AlertDialogCancel,
104
- };
@@ -1,43 +0,0 @@
1
- import * as React from "react";
2
- import { cva, type VariantProps } from "class-variance-authority";
3
-
4
- import { cn } from "@/lib/utils";
5
-
6
- const alertVariants = cva(
7
- "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
8
- {
9
- variants: {
10
- variant: {
11
- default: "bg-background text-foreground",
12
- destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",
13
- },
14
- },
15
- defaultVariants: {
16
- variant: "default",
17
- },
18
- },
19
- );
20
-
21
- const Alert = React.forwardRef<
22
- HTMLDivElement,
23
- React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>
24
- >(({ className, variant, ...props }, ref) => (
25
- <div ref={ref} role="alert" className={cn(alertVariants({ variant }), className)} {...props} />
26
- ));
27
- Alert.displayName = "Alert";
28
-
29
- const AlertTitle = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLHeadingElement>>(
30
- ({ className, ...props }, ref) => (
31
- <h5 ref={ref} className={cn("mb-1 font-medium leading-none tracking-tight", className)} {...props} />
32
- ),
33
- );
34
- AlertTitle.displayName = "AlertTitle";
35
-
36
- const AlertDescription = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>(
37
- ({ className, ...props }, ref) => (
38
- <div ref={ref} className={cn("text-sm [&_p]:leading-relaxed", className)} {...props} />
39
- ),
40
- );
41
- AlertDescription.displayName = "AlertDescription";
42
-
43
- export { Alert, AlertTitle, AlertDescription };
@@ -1,5 +0,0 @@
1
- import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
2
-
3
- const AspectRatio = AspectRatioPrimitive.Root;
4
-
5
- export { AspectRatio };
@@ -1,38 +0,0 @@
1
- import * as React from "react";
2
- import * as AvatarPrimitive from "@radix-ui/react-avatar";
3
-
4
- import { cn } from "@/lib/utils";
5
-
6
- const Avatar = React.forwardRef<
7
- React.ElementRef<typeof AvatarPrimitive.Root>,
8
- React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>
9
- >(({ className, ...props }, ref) => (
10
- <AvatarPrimitive.Root
11
- ref={ref}
12
- className={cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", className)}
13
- {...props}
14
- />
15
- ));
16
- Avatar.displayName = AvatarPrimitive.Root.displayName;
17
-
18
- const AvatarImage = React.forwardRef<
19
- React.ElementRef<typeof AvatarPrimitive.Image>,
20
- React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>
21
- >(({ className, ...props }, ref) => (
22
- <AvatarPrimitive.Image ref={ref} className={cn("aspect-square h-full w-full", className)} {...props} />
23
- ));
24
- AvatarImage.displayName = AvatarPrimitive.Image.displayName;
25
-
26
- const AvatarFallback = React.forwardRef<
27
- React.ElementRef<typeof AvatarPrimitive.Fallback>,
28
- React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>
29
- >(({ className, ...props }, ref) => (
30
- <AvatarPrimitive.Fallback
31
- ref={ref}
32
- className={cn("flex h-full w-full items-center justify-center rounded-full bg-muted", className)}
33
- {...props}
34
- />
35
- ));
36
- AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
37
-
38
- export { Avatar, AvatarImage, AvatarFallback };
@@ -1,29 +0,0 @@
1
- import * as React from "react";
2
- import { cva, type VariantProps } from "class-variance-authority";
3
-
4
- import { cn } from "@/lib/utils";
5
-
6
- const badgeVariants = cva(
7
- "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
8
- {
9
- variants: {
10
- variant: {
11
- default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
12
- secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
13
- destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
14
- outline: "text-foreground",
15
- },
16
- },
17
- defaultVariants: {
18
- variant: "default",
19
- },
20
- },
21
- );
22
-
23
- export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {}
24
-
25
- function Badge({ className, variant, ...props }: BadgeProps) {
26
- return <div className={cn(badgeVariants({ variant }), className)} {...props} />;
27
- }
28
-
29
- export { Badge, badgeVariants };
@@ -1,90 +0,0 @@
1
- import * as React from "react";
2
- import { Slot } from "@radix-ui/react-slot";
3
- import { ChevronRight, MoreHorizontal } from "lucide-react";
4
-
5
- import { cn } from "@/lib/utils";
6
-
7
- const Breadcrumb = React.forwardRef<
8
- HTMLElement,
9
- React.ComponentPropsWithoutRef<"nav"> & {
10
- separator?: React.ReactNode;
11
- }
12
- >(({ ...props }, ref) => <nav ref={ref} aria-label="breadcrumb" {...props} />);
13
- Breadcrumb.displayName = "Breadcrumb";
14
-
15
- const BreadcrumbList = React.forwardRef<HTMLOListElement, React.ComponentPropsWithoutRef<"ol">>(
16
- ({ className, ...props }, ref) => (
17
- <ol
18
- ref={ref}
19
- className={cn(
20
- "flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",
21
- className,
22
- )}
23
- {...props}
24
- />
25
- ),
26
- );
27
- BreadcrumbList.displayName = "BreadcrumbList";
28
-
29
- const BreadcrumbItem = React.forwardRef<HTMLLIElement, React.ComponentPropsWithoutRef<"li">>(
30
- ({ className, ...props }, ref) => (
31
- <li ref={ref} className={cn("inline-flex items-center gap-1.5", className)} {...props} />
32
- ),
33
- );
34
- BreadcrumbItem.displayName = "BreadcrumbItem";
35
-
36
- const BreadcrumbLink = React.forwardRef<
37
- HTMLAnchorElement,
38
- React.ComponentPropsWithoutRef<"a"> & {
39
- asChild?: boolean;
40
- }
41
- >(({ asChild, className, ...props }, ref) => {
42
- const Comp = asChild ? Slot : "a";
43
-
44
- return <Comp ref={ref} className={cn("transition-colors hover:text-foreground", className)} {...props} />;
45
- });
46
- BreadcrumbLink.displayName = "BreadcrumbLink";
47
-
48
- const BreadcrumbPage = React.forwardRef<HTMLSpanElement, React.ComponentPropsWithoutRef<"span">>(
49
- ({ className, ...props }, ref) => (
50
- <span
51
- ref={ref}
52
- role="link"
53
- aria-disabled="true"
54
- aria-current="page"
55
- className={cn("font-normal text-foreground", className)}
56
- {...props}
57
- />
58
- ),
59
- );
60
- BreadcrumbPage.displayName = "BreadcrumbPage";
61
-
62
- const BreadcrumbSeparator = ({ children, className, ...props }: React.ComponentProps<"li">) => (
63
- <li role="presentation" aria-hidden="true" className={cn("[&>svg]:size-3.5", className)} {...props}>
64
- {children ?? <ChevronRight />}
65
- </li>
66
- );
67
- BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
68
-
69
- const BreadcrumbEllipsis = ({ className, ...props }: React.ComponentProps<"span">) => (
70
- <span
71
- role="presentation"
72
- aria-hidden="true"
73
- className={cn("flex h-9 w-9 items-center justify-center", className)}
74
- {...props}
75
- >
76
- <MoreHorizontal className="h-4 w-4" />
77
- <span className="sr-only">More</span>
78
- </span>
79
- );
80
- BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
81
-
82
- export {
83
- Breadcrumb,
84
- BreadcrumbList,
85
- BreadcrumbItem,
86
- BreadcrumbLink,
87
- BreadcrumbPage,
88
- BreadcrumbSeparator,
89
- BreadcrumbEllipsis,
90
- };
@@ -1,47 +0,0 @@
1
- import * as React from "react";
2
- import { Slot } from "@radix-ui/react-slot";
3
- import { cva, type VariantProps } from "class-variance-authority";
4
-
5
- import { cn } from "@/lib/utils";
6
-
7
- const buttonVariants = cva(
8
- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
9
- {
10
- variants: {
11
- variant: {
12
- default: "bg-primary text-primary-foreground hover:bg-primary/90",
13
- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
14
- outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
15
- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
16
- ghost: "hover:bg-accent hover:text-accent-foreground",
17
- link: "text-primary underline-offset-4 hover:underline",
18
- },
19
- size: {
20
- default: "h-10 px-4 py-2",
21
- sm: "h-9 rounded-md px-3",
22
- lg: "h-11 rounded-md px-8",
23
- icon: "h-10 w-10",
24
- },
25
- },
26
- defaultVariants: {
27
- variant: "default",
28
- size: "default",
29
- },
30
- },
31
- );
32
-
33
- export interface ButtonProps
34
- extends React.ButtonHTMLAttributes<HTMLButtonElement>,
35
- VariantProps<typeof buttonVariants> {
36
- asChild?: boolean;
37
- }
38
-
39
- const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
40
- ({ className, variant, size, asChild = false, ...props }, ref) => {
41
- const Comp = asChild ? Slot : "button";
42
- return <Comp className={cn(buttonVariants({ variant, size, className }))} ref={ref} {...props} />;
43
- },
44
- );
45
- Button.displayName = "Button";
46
-
47
- export { Button, buttonVariants };
@@ -1,54 +0,0 @@
1
- import * as React from "react";
2
- import { ChevronLeft, ChevronRight } from "lucide-react";
3
- import { DayPicker } from "react-day-picker";
4
-
5
- import { cn } from "@/lib/utils";
6
- import { buttonVariants } from "@/components/ui/button";
7
-
8
- export type CalendarProps = React.ComponentProps<typeof DayPicker>;
9
-
10
- function Calendar({ className, classNames, showOutsideDays = true, ...props }: CalendarProps) {
11
- return (
12
- <DayPicker
13
- showOutsideDays={showOutsideDays}
14
- className={cn("p-3", className)}
15
- classNames={{
16
- months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
17
- month: "space-y-4",
18
- caption: "flex justify-center pt-1 relative items-center",
19
- caption_label: "text-sm font-medium",
20
- nav: "space-x-1 flex items-center",
21
- nav_button: cn(
22
- buttonVariants({ variant: "outline" }),
23
- "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100",
24
- ),
25
- nav_button_previous: "absolute left-1",
26
- nav_button_next: "absolute right-1",
27
- table: "w-full border-collapse space-y-1",
28
- head_row: "flex",
29
- head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
30
- row: "flex w-full mt-2",
31
- 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",
32
- day: cn(buttonVariants({ variant: "ghost" }), "h-9 w-9 p-0 font-normal aria-selected:opacity-100"),
33
- day_range_end: "day-range-end",
34
- day_selected:
35
- "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
36
- day_today: "font-bold text-primary",
37
- day_outside:
38
- "day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",
39
- day_disabled: "text-muted-foreground opacity-50",
40
- day_range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
41
- day_hidden: "invisible",
42
- ...classNames,
43
- }}
44
- components={{
45
- IconLeft: ({ ..._props }) => <ChevronLeft className="h-4 w-4" />,
46
- IconRight: ({ ..._props }) => <ChevronRight className="h-4 w-4" />,
47
- }}
48
- {...props}
49
- />
50
- );
51
- }
52
- Calendar.displayName = "Calendar";
53
-
54
- export { Calendar };
@@ -1,43 +0,0 @@
1
- import * as React from "react";
2
-
3
- import { cn } from "@/lib/utils";
4
-
5
- const Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (
6
- <div ref={ref} className={cn("rounded-lg border bg-card text-card-foreground shadow-sm", className)} {...props} />
7
- ));
8
- Card.displayName = "Card";
9
-
10
- const CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
11
- ({ className, ...props }, ref) => (
12
- <div ref={ref} className={cn("flex flex-col space-y-1.5 p-6", className)} {...props} />
13
- ),
14
- );
15
- CardHeader.displayName = "CardHeader";
16
-
17
- const CardTitle = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLHeadingElement>>(
18
- ({ className, ...props }, ref) => (
19
- <h3 ref={ref} className={cn("text-2xl font-semibold leading-none tracking-tight", className)} {...props} />
20
- ),
21
- );
22
- CardTitle.displayName = "CardTitle";
23
-
24
- const CardDescription = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>(
25
- ({ className, ...props }, ref) => (
26
- <p ref={ref} className={cn("text-sm text-muted-foreground", className)} {...props} />
27
- ),
28
- );
29
- CardDescription.displayName = "CardDescription";
30
-
31
- const CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
32
- ({ className, ...props }, ref) => <div ref={ref} className={cn("p-6 pt-0", className)} {...props} />,
33
- );
34
- CardContent.displayName = "CardContent";
35
-
36
- const CardFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
37
- ({ className, ...props }, ref) => (
38
- <div ref={ref} className={cn("flex items-center p-6 pt-0", className)} {...props} />
39
- ),
40
- );
41
- CardFooter.displayName = "CardFooter";
42
-
43
- export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };