@nomad-e/bluma-cli 0.26.3 → 2026.27.0-darwin-arm64

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 (117) hide show
  1. package/LICENSE +189 -70
  2. package/README.md +2 -162
  3. package/THIRD-PARTY-NOTICES.txt +46201 -0
  4. package/bin/bluma-core +0 -0
  5. package/package.json +24 -124
  6. package/third-party/option-ext/.cargo_vcs_info.json +6 -0
  7. package/third-party/option-ext/Cargo.toml +22 -0
  8. package/third-party/option-ext/LICENSE.txt +373 -0
  9. package/third-party/option-ext/README.md +67 -0
  10. package/third-party/option-ext/src/impl.rs +20 -0
  11. package/third-party/option-ext/src/lib.rs +71 -0
  12. package/assets/bg.png +0 -0
  13. package/assets/bg1.png +0 -0
  14. package/assets/bluma.png +0 -0
  15. package/assets/image.png +0 -0
  16. package/dist/assets/bg.png +0 -0
  17. package/dist/assets/bg1.png +0 -0
  18. package/dist/assets/bluma.png +0 -0
  19. package/dist/assets/image.png +0 -0
  20. package/dist/config/native_tools.json +0 -1151
  21. package/dist/config/plan_mode_instructions.md +0 -218
  22. package/dist/config/skills/factorai-sh/SKILL.md +0 -98
  23. package/dist/config/skills/git-commit/LICENSE.txt +0 -18
  24. package/dist/config/skills/git-commit/SKILL.md +0 -300
  25. package/dist/config/skills/git-commit/references/REFERENCE.md +0 -253
  26. package/dist/config/skills/git-commit/scripts/validate_commit_msg.py +0 -163
  27. package/dist/config/skills/git-pr/LICENSE.txt +0 -18
  28. package/dist/config/skills/git-pr/SKILL.md +0 -293
  29. package/dist/config/skills/git-pr/references/REFERENCE.md +0 -256
  30. package/dist/config/skills/git-pr/scripts/validate_commits.py +0 -120
  31. package/dist/config/skills/git-release/LICENSE.txt +0 -18
  32. package/dist/config/skills/git-release/SKILL.md +0 -408
  33. package/dist/config/skills/pdf/LICENSE.txt +0 -26
  34. package/dist/config/skills/pdf/SKILL.md +0 -736
  35. package/dist/config/skills/pdf/references/DOCUMENT_TYPES.md +0 -59
  36. package/dist/config/skills/pdf/references/FORMS.md +0 -69
  37. package/dist/config/skills/pdf/references/REFERENCE.md +0 -52
  38. package/dist/config/skills/pdf/scripts/__pycache__/create_report.cpython-312.pyc +0 -0
  39. package/dist/config/skills/pdf/scripts/create_report.py +0 -936
  40. package/dist/config/skills/pdf/scripts/merge_pdfs.py +0 -48
  41. package/dist/config/skills/skill-creator/LICENSE.txt +0 -26
  42. package/dist/config/skills/skill-creator/SKILL.md +0 -229
  43. package/dist/config/skills/xlsx/LICENSE.txt +0 -18
  44. package/dist/config/skills/xlsx/SKILL.md +0 -340
  45. package/dist/config/skills/xlsx/references/REFERENCE.md +0 -337
  46. package/dist/config/skills/xlsx/scripts/office/__init__.py +0 -2
  47. package/dist/config/skills/xlsx/scripts/office/pack.py +0 -58
  48. package/dist/config/skills/xlsx/scripts/office/soffice.py +0 -180
  49. package/dist/config/skills/xlsx/scripts/office/unpack.py +0 -63
  50. package/dist/config/skills/xlsx/scripts/office/validate.py +0 -122
  51. package/dist/config/skills/xlsx/scripts/recalc.py +0 -152
  52. package/dist/main.js +0 -47932
  53. package/dist/native/bluma-clipboard.linux-x64-gnu.node +0 -0
  54. package/dist/native/index.d.ts +0 -38
  55. package/dist/native/index.js +0 -319
  56. package/dist/native/package.json +0 -38
  57. package/dist/scaffold/.eslintrc.json +0 -3
  58. package/dist/scaffold/app/globals.css +0 -46
  59. package/dist/scaffold/app/layout.tsx +0 -19
  60. package/dist/scaffold/app/page.tsx +0 -124
  61. package/dist/scaffold/components/ui/README.md +0 -12
  62. package/dist/scaffold/components/ui/accordion.jsx +0 -42
  63. package/dist/scaffold/components/ui/alert-dialog.jsx +0 -80
  64. package/dist/scaffold/components/ui/alert.jsx +0 -33
  65. package/dist/scaffold/components/ui/aspect-ratio.jsx +0 -5
  66. package/dist/scaffold/components/ui/avatar.jsx +0 -28
  67. package/dist/scaffold/components/ui/badge.jsx +0 -24
  68. package/dist/scaffold/components/ui/breadcrumb.jsx +0 -72
  69. package/dist/scaffold/components/ui/button.jsx +0 -40
  70. package/dist/scaffold/components/ui/calendar.jsx +0 -56
  71. package/dist/scaffold/components/ui/card.jsx +0 -38
  72. package/dist/scaffold/components/ui/carousel.jsx +0 -168
  73. package/dist/scaffold/components/ui/chart.jsx +0 -76
  74. package/dist/scaffold/components/ui/checkbox.jsx +0 -22
  75. package/dist/scaffold/components/ui/collapsible.jsx +0 -7
  76. package/dist/scaffold/components/ui/command.jsx +0 -100
  77. package/dist/scaffold/components/ui/context-menu.jsx +0 -137
  78. package/dist/scaffold/components/ui/dialog.jsx +0 -72
  79. package/dist/scaffold/components/ui/drawer.jsx +0 -68
  80. package/dist/scaffold/components/ui/dropdown-menu.jsx +0 -143
  81. package/dist/scaffold/components/ui/form.jsx +0 -88
  82. package/dist/scaffold/components/ui/hover-card.jsx +0 -22
  83. package/dist/scaffold/components/ui/input-otp.jsx +0 -49
  84. package/dist/scaffold/components/ui/input.jsx +0 -19
  85. package/dist/scaffold/components/ui/label.jsx +0 -15
  86. package/dist/scaffold/components/ui/menubar.jsx +0 -161
  87. package/dist/scaffold/components/ui/navigation-menu.jsx +0 -95
  88. package/dist/scaffold/components/ui/pagination.jsx +0 -77
  89. package/dist/scaffold/components/ui/popover.jsx +0 -25
  90. package/dist/scaffold/components/ui/progress.jsx +0 -19
  91. package/dist/scaffold/components/ui/radio-group.jsx +0 -29
  92. package/dist/scaffold/components/ui/resizable.jsx +0 -27
  93. package/dist/scaffold/components/ui/scroll-area.jsx +0 -31
  94. package/dist/scaffold/components/ui/select.jsx +0 -117
  95. package/dist/scaffold/components/ui/separator.jsx +0 -22
  96. package/dist/scaffold/components/ui/sheet.jsx +0 -81
  97. package/dist/scaffold/components/ui/skeleton.jsx +0 -7
  98. package/dist/scaffold/components/ui/slider.jsx +0 -19
  99. package/dist/scaffold/components/ui/sonner.jsx +0 -22
  100. package/dist/scaffold/components/ui/switch.jsx +0 -23
  101. package/dist/scaffold/components/ui/table.jsx +0 -61
  102. package/dist/scaffold/components/ui/tabs.jsx +0 -43
  103. package/dist/scaffold/components/ui/textarea.jsx +0 -18
  104. package/dist/scaffold/components/ui/toast.jsx +0 -85
  105. package/dist/scaffold/components/ui/toaster.jsx +0 -33
  106. package/dist/scaffold/components/ui/toggle-group.jsx +0 -41
  107. package/dist/scaffold/components/ui/toggle.jsx +0 -30
  108. package/dist/scaffold/components/ui/tooltip.jsx +0 -22
  109. package/dist/scaffold/hooks/use-toast.ts +0 -101
  110. package/dist/scaffold/lib/utils.ts +0 -6
  111. package/dist/scaffold/next.config.js +0 -5
  112. package/dist/scaffold/next.config.mjs +0 -15
  113. package/dist/scaffold/next.config.ts +0 -19
  114. package/dist/scaffold/package.json +0 -70
  115. package/dist/scaffold/postcss.config.js +0 -6
  116. package/dist/scaffold/tailwind.config.ts +0 -57
  117. package/dist/scaffold/tsconfig.json +0 -20
@@ -1,80 +0,0 @@
1
- import * as React from 'react';
2
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
- import { cn } from '@/lib/utils';
4
- import { buttonVariants } from '@/components/ui/button';
5
-
6
- const AlertDialog = AlertDialogPrimitive.Root;
7
- const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
8
- const AlertDialogPortal = AlertDialogPrimitive.Portal;
9
-
10
- const AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => (
11
- <AlertDialogPrimitive.Overlay
12
- className={cn('fixed inset-0 z-50 bg-black/80', className)}
13
- {...props}
14
- ref={ref}
15
- />
16
- ));
17
- AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
18
-
19
- const AlertDialogContent = React.forwardRef(({ className, ...props }, ref) => (
20
- <AlertDialogPortal>
21
- <AlertDialogOverlay />
22
- <AlertDialogPrimitive.Content
23
- ref={ref}
24
- className={cn(
25
- '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 sm:rounded-lg',
26
- className
27
- )}
28
- {...props}
29
- />
30
- </AlertDialogPortal>
31
- ));
32
- AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
33
-
34
- const AlertDialogHeader = ({ className, ...props }) => (
35
- <div className={cn('flex flex-col space-y-2 text-center sm:text-left', className)} {...props} />
36
- );
37
- AlertDialogHeader.displayName = 'AlertDialogHeader';
38
-
39
- const AlertDialogFooter = ({ className, ...props }) => (
40
- <div className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2', className)} {...props} />
41
- );
42
- AlertDialogFooter.displayName = 'AlertDialogFooter';
43
-
44
- const AlertDialogTitle = React.forwardRef(({ className, ...props }, ref) => (
45
- <AlertDialogPrimitive.Title ref={ref} className={cn('text-lg font-semibold', className)} {...props} />
46
- ));
47
- AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
48
-
49
- const AlertDialogDescription = React.forwardRef(({ className, ...props }, ref) => (
50
- <AlertDialogPrimitive.Description ref={ref} className={cn('text-sm text-muted-foreground', className)} {...props} />
51
- ));
52
- AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
53
-
54
- const AlertDialogAction = React.forwardRef(({ className, ...props }, ref) => (
55
- <AlertDialogPrimitive.Action ref={ref} className={cn(buttonVariants(), className)} {...props} />
56
- ));
57
- AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
58
-
59
- const AlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => (
60
- <AlertDialogPrimitive.Cancel
61
- ref={ref}
62
- className={cn(buttonVariants({ variant: 'outline' }), 'mt-2 sm:mt-0', className)}
63
- {...props}
64
- />
65
- ));
66
- AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
67
-
68
- export {
69
- AlertDialog,
70
- AlertDialogPortal,
71
- AlertDialogOverlay,
72
- AlertDialogTrigger,
73
- AlertDialogContent,
74
- AlertDialogHeader,
75
- AlertDialogFooter,
76
- AlertDialogTitle,
77
- AlertDialogDescription,
78
- AlertDialogAction,
79
- AlertDialogCancel,
80
- };
@@ -1,33 +0,0 @@
1
- import * as React from 'react';
2
- import { cva } from 'class-variance-authority';
3
- import { cn } from '@/lib/utils';
4
-
5
- const alertVariants = cva(
6
- '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',
7
- {
8
- variants: {
9
- variant: {
10
- default: 'bg-background text-foreground',
11
- destructive: 'border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive',
12
- },
13
- },
14
- defaultVariants: { variant: 'default' },
15
- }
16
- );
17
-
18
- const Alert = React.forwardRef(({ className, variant, ...props }, ref) => (
19
- <div ref={ref} role="alert" className={cn(alertVariants({ variant }), className)} {...props} />
20
- ));
21
- Alert.displayName = 'Alert';
22
-
23
- const AlertTitle = React.forwardRef(({ className, ...props }, ref) => (
24
- <h5 ref={ref} className={cn('mb-1 font-medium leading-none tracking-tight', className)} {...props} />
25
- ));
26
- AlertTitle.displayName = 'AlertTitle';
27
-
28
- const AlertDescription = React.forwardRef(({ className, ...props }, ref) => (
29
- <div ref={ref} className={cn('text-sm [&_p]:leading-relaxed', className)} {...props} />
30
- ));
31
- AlertDescription.displayName = 'AlertDescription';
32
-
33
- 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,28 +0,0 @@
1
- import * as React from 'react';
2
- import * as AvatarPrimitive from '@radix-ui/react-avatar';
3
- import { cn } from '@/lib/utils';
4
-
5
- const Avatar = React.forwardRef(({ className, ...props }, ref) => (
6
- <AvatarPrimitive.Root
7
- ref={ref}
8
- className={cn('relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full', className)}
9
- {...props}
10
- />
11
- ));
12
- Avatar.displayName = AvatarPrimitive.Root.displayName;
13
-
14
- const AvatarImage = React.forwardRef(({ className, ...props }, ref) => (
15
- <AvatarPrimitive.Image ref={ref} className={cn('aspect-square h-full w-full', className)} {...props} />
16
- ));
17
- AvatarImage.displayName = AvatarPrimitive.Image.displayName;
18
-
19
- const AvatarFallback = React.forwardRef(({ className, ...props }, ref) => (
20
- <AvatarPrimitive.Fallback
21
- ref={ref}
22
- className={cn('flex h-full w-full items-center justify-center rounded-full bg-muted', className)}
23
- {...props}
24
- />
25
- ));
26
- AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
27
-
28
- export { Avatar, AvatarImage, AvatarFallback };
@@ -1,24 +0,0 @@
1
- import * as React from 'react';
2
- import { cva } from 'class-variance-authority';
3
- import { cn } from '@/lib/utils';
4
-
5
- const badgeVariants = cva(
6
- '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',
7
- {
8
- variants: {
9
- variant: {
10
- default: 'border-transparent bg-primary text-primary-foreground hover:bg-primary/80',
11
- secondary: 'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80',
12
- destructive: 'border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80',
13
- outline: 'text-foreground',
14
- },
15
- },
16
- defaultVariants: { variant: 'default' },
17
- }
18
- );
19
-
20
- function Badge({ className, variant, ...props }) {
21
- return <div className={cn(badgeVariants({ variant }), className)} {...props} />;
22
- }
23
-
24
- export { Badge, badgeVariants };
@@ -1,72 +0,0 @@
1
- import * as React from 'react';
2
- import { Slot } from '@radix-ui/react-slot';
3
- import { ChevronRight, MoreHorizontal } from 'lucide-react';
4
- import { cn } from '@/lib/utils';
5
-
6
- const Breadcrumb = React.forwardRef(({ ...props }, ref) => <nav ref={ref} aria-label="breadcrumb" {...props} />);
7
- Breadcrumb.displayName = 'Breadcrumb';
8
-
9
- const BreadcrumbList = React.forwardRef(({ className, ...props }, ref) => (
10
- <ol
11
- ref={ref}
12
- className={cn(
13
- 'flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5',
14
- className
15
- )}
16
- {...props}
17
- />
18
- ));
19
- BreadcrumbList.displayName = 'BreadcrumbList';
20
-
21
- const BreadcrumbItem = React.forwardRef(({ className, ...props }, ref) => (
22
- <li ref={ref} className={cn('inline-flex items-center gap-1.5', className)} {...props} />
23
- ));
24
- BreadcrumbItem.displayName = 'BreadcrumbItem';
25
-
26
- const BreadcrumbLink = React.forwardRef(({ asChild, className, ...props }, ref) => {
27
- const Comp = asChild ? Slot : 'a';
28
- return <Comp ref={ref} className={cn('transition-colors hover:text-foreground', className)} {...props} />;
29
- });
30
- BreadcrumbLink.displayName = 'BreadcrumbLink';
31
-
32
- const BreadcrumbPage = React.forwardRef(({ className, ...props }, ref) => (
33
- <span
34
- ref={ref}
35
- role="link"
36
- aria-disabled="true"
37
- aria-current="page"
38
- className={cn('font-normal text-foreground', className)}
39
- {...props}
40
- />
41
- ));
42
- BreadcrumbPage.displayName = 'BreadcrumbPage';
43
-
44
- const BreadcrumbSeparator = ({ children, className, ...props }) => (
45
- <li role="presentation" aria-hidden="true" className={cn('[&>svg]:size-3.5', className)} {...props}>
46
- {children ?? <ChevronRight />}
47
- </li>
48
- );
49
- BreadcrumbSeparator.displayName = 'BreadcrumbSeparator';
50
-
51
- const BreadcrumbEllipsis = ({ className, ...props }) => (
52
- <span
53
- role="presentation"
54
- aria-hidden="true"
55
- className={cn('flex h-9 w-9 items-center justify-center', className)}
56
- {...props}
57
- >
58
- <MoreHorizontal className="h-4 w-4" />
59
- <span className="sr-only">More</span>
60
- </span>
61
- );
62
- BreadcrumbEllipsis.displayName = 'BreadcrumbEllipsis';
63
-
64
- export {
65
- Breadcrumb,
66
- BreadcrumbList,
67
- BreadcrumbItem,
68
- BreadcrumbLink,
69
- BreadcrumbPage,
70
- BreadcrumbSeparator,
71
- BreadcrumbEllipsis,
72
- };
@@ -1,40 +0,0 @@
1
- import * as React from 'react';
2
- import { Slot } from '@radix-ui/react-slot';
3
- import { cva } from 'class-variance-authority';
4
- import { cn } from '@/lib/utils';
5
-
6
- const buttonVariants = cva(
7
- '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',
8
- {
9
- variants: {
10
- variant: {
11
- default: 'bg-primary text-primary-foreground hover:bg-primary/90',
12
- destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',
13
- outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',
14
- secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',
15
- ghost: 'hover:bg-accent hover:text-accent-foreground',
16
- link: 'text-primary underline-offset-4 hover:underline',
17
- },
18
- size: {
19
- default: 'h-10 px-4 py-2',
20
- sm: 'h-9 rounded-md px-3',
21
- lg: 'h-11 rounded-md px-8',
22
- icon: 'h-10 w-10',
23
- },
24
- },
25
- defaultVariants: {
26
- variant: 'default',
27
- size: 'default',
28
- },
29
- }
30
- );
31
-
32
- const Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
33
- const Comp = asChild ? Slot : 'button';
34
- return (
35
- <Comp className={cn(buttonVariants({ variant, size, className }))} ref={ref} {...props} />
36
- );
37
- });
38
- Button.displayName = 'Button';
39
-
40
- export { Button, buttonVariants };
@@ -1,56 +0,0 @@
1
- import * as React from 'react';
2
- import { DayPicker } from 'react-day-picker';
3
- import { ChevronLeft, ChevronRight } from 'lucide-react';
4
- import { cn } from '@/lib/utils';
5
- import { buttonVariants } from '@/components/ui/button';
6
-
7
- function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
8
- return (
9
- <DayPicker
10
- showOutsideDays={showOutsideDays}
11
- className={cn('p-3', className)}
12
- classNames={{
13
- root: 'w-fit',
14
- months: 'flex flex-col gap-4 sm:flex-row sm:gap-4',
15
- month: 'flex flex-col gap-4',
16
- month_caption: 'relative flex items-center justify-center pt-1',
17
- caption_label: 'text-sm font-medium',
18
- nav: 'flex items-center gap-1',
19
- button_previous: cn(
20
- buttonVariants({ variant: 'outline' }),
21
- 'absolute left-1 h-7 w-7 bg-transparent p-0 opacity-70 hover:opacity-100'
22
- ),
23
- button_next: cn(
24
- buttonVariants({ variant: 'outline' }),
25
- 'absolute right-1 h-7 w-7 bg-transparent p-0 opacity-70 hover:opacity-100'
26
- ),
27
- month_grid: 'mt-4 w-full border-collapse',
28
- weekdays: 'flex',
29
- weekday: 'w-9 rounded-md text-[0.8rem] font-normal text-muted-foreground',
30
- week: 'mt-2 flex w-full',
31
- day: 'relative p-0 text-center text-sm focus-within:relative focus-within:z-20',
32
- day_button: cn(buttonVariants({ variant: 'ghost' }), 'h-9 w-9 p-0 font-normal aria-selected:opacity-100'),
33
- selected:
34
- 'rounded-md bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground',
35
- today: 'rounded-md bg-accent text-accent-foreground',
36
- outside: 'text-muted-foreground opacity-50',
37
- disabled: 'text-muted-foreground opacity-50',
38
- range_middle: 'rounded-none aria-selected:bg-accent aria-selected:text-accent-foreground',
39
- range_start: 'rounded-l-md',
40
- range_end: 'rounded-r-md',
41
- hidden: 'invisible',
42
- ...classNames,
43
- }}
44
- components={{
45
- Chevron: ({ className: iconClass, orientation, ...iconProps }) => {
46
- const Icon = orientation === 'left' ? ChevronLeft : ChevronRight;
47
- return <Icon className={cn('h-4 w-4', iconClass)} {...iconProps} />;
48
- },
49
- }}
50
- {...props}
51
- />
52
- );
53
- }
54
- Calendar.displayName = 'Calendar';
55
-
56
- export { Calendar };
@@ -1,38 +0,0 @@
1
- import * as React from 'react';
2
- import { cn } from '@/lib/utils';
3
-
4
- const Card = React.forwardRef(({ className, ...props }, ref) => (
5
- <div
6
- ref={ref}
7
- className={cn('rounded-lg border bg-card text-card-foreground shadow-sm', className)}
8
- {...props}
9
- />
10
- ));
11
- Card.displayName = 'Card';
12
-
13
- const CardHeader = React.forwardRef(({ className, ...props }, ref) => (
14
- <div ref={ref} className={cn('flex flex-col space-y-1.5 p-6', className)} {...props} />
15
- ));
16
- CardHeader.displayName = 'CardHeader';
17
-
18
- const CardTitle = React.forwardRef(({ className, ...props }, ref) => (
19
- <h3 ref={ref} className={cn('text-2xl font-semibold leading-none tracking-tight', className)} {...props} />
20
- ));
21
- CardTitle.displayName = 'CardTitle';
22
-
23
- const CardDescription = React.forwardRef(({ className, ...props }, ref) => (
24
- <p ref={ref} className={cn('text-sm text-muted-foreground', className)} {...props} />
25
- ));
26
- CardDescription.displayName = 'CardDescription';
27
-
28
- const CardContent = React.forwardRef(({ className, ...props }, ref) => (
29
- <div ref={ref} className={cn('p-6 pt-0', className)} {...props} />
30
- ));
31
- CardContent.displayName = 'CardContent';
32
-
33
- const CardFooter = React.forwardRef(({ className, ...props }, ref) => (
34
- <div ref={ref} className={cn('flex items-center p-6 pt-0', className)} {...props} />
35
- ));
36
- CardFooter.displayName = 'CardFooter';
37
-
38
- export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
@@ -1,168 +0,0 @@
1
- import * as React from 'react';
2
- import useEmblaCarousel from 'embla-carousel-react';
3
- import { ArrowLeft, ArrowRight } from 'lucide-react';
4
- import { cn } from '@/lib/utils';
5
- import { Button } from '@/components/ui/button';
6
-
7
- const CarouselContext = React.createContext(null);
8
-
9
- function useCarousel() {
10
- const ctx = React.useContext(CarouselContext);
11
- if (!ctx) throw new Error('useCarousel must be within <Carousel />');
12
- return ctx;
13
- }
14
-
15
- const Carousel = React.forwardRef(
16
- ({ orientation = 'horizontal', opts, setApi, plugins, className, children, ...props }, ref) => {
17
- const [carouselRef, api] = useEmblaCarousel(
18
- { ...opts, axis: orientation === 'horizontal' ? 'x' : 'y' },
19
- plugins
20
- );
21
- const [canScrollPrev, setCanScrollPrev] = React.useState(false);
22
- const [canScrollNext, setCanScrollNext] = React.useState(false);
23
-
24
- const onSelect = React.useCallback((emblaApi) => {
25
- if (!emblaApi) return;
26
- setCanScrollPrev(emblaApi.canScrollPrev());
27
- setCanScrollNext(emblaApi.canScrollNext());
28
- }, []);
29
-
30
- const scrollPrev = React.useCallback(() => api?.scrollPrev(), [api]);
31
- const scrollNext = React.useCallback(() => api?.scrollNext(), [api]);
32
-
33
- const handleKeyDown = React.useCallback(
34
- (event) => {
35
- if (event.key === 'ArrowLeft') {
36
- event.preventDefault();
37
- scrollPrev();
38
- } else if (event.key === 'ArrowRight') {
39
- event.preventDefault();
40
- scrollNext();
41
- }
42
- },
43
- [scrollPrev, scrollNext]
44
- );
45
-
46
- React.useEffect(() => {
47
- if (!api || !setApi) return;
48
- setApi(api);
49
- }, [api, setApi]);
50
-
51
- React.useEffect(() => {
52
- if (!api) return;
53
- onSelect(api);
54
- api.on('reInit', onSelect);
55
- api.on('select', onSelect);
56
- return () => {
57
- api?.off('select', onSelect);
58
- };
59
- }, [api, onSelect]);
60
-
61
- return (
62
- <CarouselContext.Provider
63
- value={{
64
- carouselRef,
65
- api,
66
- opts,
67
- orientation: orientation || 'horizontal',
68
- scrollPrev,
69
- scrollNext,
70
- canScrollPrev,
71
- canScrollNext,
72
- }}
73
- >
74
- <div
75
- ref={ref}
76
- onKeyDownCapture={handleKeyDown}
77
- className={cn('relative', className)}
78
- role="region"
79
- aria-roledescription="carousel"
80
- {...props}
81
- >
82
- {children}
83
- </div>
84
- </CarouselContext.Provider>
85
- );
86
- }
87
- );
88
- Carousel.displayName = 'Carousel';
89
-
90
- const CarouselContent = React.forwardRef(({ className, ...props }, ref) => {
91
- const { carouselRef, orientation } = useCarousel();
92
- return (
93
- <div ref={carouselRef} className="overflow-hidden">
94
- <div
95
- ref={ref}
96
- className={cn('flex', orientation === 'horizontal' ? '-ml-4' : '-mt-4 flex-col', className)}
97
- {...props}
98
- />
99
- </div>
100
- );
101
- });
102
- CarouselContent.displayName = 'CarouselContent';
103
-
104
- const CarouselItem = React.forwardRef(({ className, ...props }, ref) => {
105
- const { orientation } = useCarousel();
106
- return (
107
- <div
108
- ref={ref}
109
- role="group"
110
- aria-roledescription="slide"
111
- className={cn('min-w-0 shrink-0 grow-0 basis-full', orientation === 'horizontal' ? 'pl-4' : 'pt-4', className)}
112
- {...props}
113
- />
114
- );
115
- });
116
- CarouselItem.displayName = 'CarouselItem';
117
-
118
- const CarouselPrevious = React.forwardRef(({ className, variant = 'outline', size = 'icon', ...props }, ref) => {
119
- const { orientation, scrollPrev, canScrollPrev } = useCarousel();
120
- return (
121
- <Button
122
- ref={ref}
123
- variant={variant}
124
- size={size}
125
- className={cn(
126
- 'absolute h-8 w-8 rounded-full',
127
- orientation === 'horizontal'
128
- ? '-left-12 top-1/2 -translate-y-1/2'
129
- : '-top-12 left-1/2 -translate-x-1/2 rotate-90',
130
- className
131
- )}
132
- disabled={!canScrollPrev}
133
- onClick={scrollPrev}
134
- {...props}
135
- >
136
- <ArrowLeft className="h-4 w-4" />
137
- <span className="sr-only">Previous slide</span>
138
- </Button>
139
- );
140
- });
141
- CarouselPrevious.displayName = 'CarouselPrevious';
142
-
143
- const CarouselNext = React.forwardRef(({ className, variant = 'outline', size = 'icon', ...props }, ref) => {
144
- const { orientation, scrollNext, canScrollNext } = useCarousel();
145
- return (
146
- <Button
147
- ref={ref}
148
- variant={variant}
149
- size={size}
150
- className={cn(
151
- 'absolute h-8 w-8 rounded-full',
152
- orientation === 'horizontal'
153
- ? '-right-12 top-1/2 -translate-y-1/2'
154
- : '-bottom-12 left-1/2 -translate-x-1/2 rotate-90',
155
- className
156
- )}
157
- disabled={!canScrollNext}
158
- onClick={scrollNext}
159
- {...props}
160
- >
161
- <ArrowRight className="h-4 w-4" />
162
- <span className="sr-only">Next slide</span>
163
- </Button>
164
- );
165
- });
166
- CarouselNext.displayName = 'CarouselNext';
167
-
168
- export { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, useCarousel };
@@ -1,76 +0,0 @@
1
- import * as React from 'react';
2
- import * as RechartsPrimitive from 'recharts';
3
- import { cn } from '@/lib/utils';
4
-
5
- const ChartContainer = React.forwardRef(({ id, className, children, ...props }, ref) => {
6
- const uniqueId = React.useId();
7
- const chartId = `chart-${id || uniqueId.replace(/:/g, '')}`;
8
- return (
9
- <div
10
- data-chart={chartId}
11
- ref={ref}
12
- className={cn(
13
- 'flex aspect-video justify-center text-xs [&_.recharts-cartesian-grid_line]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none',
14
- className
15
- )}
16
- {...props}
17
- >
18
- <RechartsPrimitive.ResponsiveContainer width="100%" height="100%">
19
- {children}
20
- </RechartsPrimitive.ResponsiveContainer>
21
- </div>
22
- );
23
- });
24
- ChartContainer.displayName = 'Chart';
25
-
26
- const ChartTooltip = RechartsPrimitive.Tooltip;
27
-
28
- const ChartTooltipContent = React.forwardRef(({ active, payload, className, label, ...props }, ref) => {
29
- if (!active || !payload?.length) return null;
30
- return (
31
- <div
32
- ref={ref}
33
- className={cn('grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl', className)}
34
- {...props}
35
- >
36
- {label != null && <div className="font-medium">{label}</div>}
37
- <div className="grid gap-1.5">
38
- {payload.map((item, i) => (
39
- <div key={i} className="flex items-center gap-2">
40
- <div
41
- className="h-2.5 w-2.5 shrink-0 rounded-[2px]"
42
- style={{ backgroundColor: item.color }}
43
- />
44
- <span className="text-muted-foreground">{item.name}</span>
45
- <span className="ml-auto font-mono font-medium">{item.value}</span>
46
- </div>
47
- ))}
48
- </div>
49
- </div>
50
- );
51
- });
52
- ChartTooltipContent.displayName = 'ChartTooltip';
53
-
54
- export {
55
- ChartContainer,
56
- ChartTooltip,
57
- ChartTooltipContent,
58
- };
59
-
60
- export {
61
- Area,
62
- AreaChart,
63
- Bar,
64
- BarChart,
65
- CartesianGrid,
66
- Cell,
67
- Legend,
68
- Line,
69
- LineChart,
70
- Pie,
71
- PieChart,
72
- ResponsiveContainer,
73
- Tooltip,
74
- XAxis,
75
- YAxis,
76
- } from 'recharts';
@@ -1,22 +0,0 @@
1
- import * as React from 'react';
2
- import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
3
- import { Check } from 'lucide-react';
4
- import { cn } from '@/lib/utils';
5
-
6
- const Checkbox = React.forwardRef(({ className, ...props }, ref) => (
7
- <CheckboxPrimitive.Root
8
- ref={ref}
9
- className={cn(
10
- 'peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground',
11
- className
12
- )}
13
- {...props}
14
- >
15
- <CheckboxPrimitive.Indicator className={cn('flex items-center justify-center text-current')}>
16
- <Check className="h-4 w-4" />
17
- </CheckboxPrimitive.Indicator>
18
- </CheckboxPrimitive.Root>
19
- ));
20
- Checkbox.displayName = CheckboxPrimitive.Root.displayName;
21
-
22
- export { Checkbox };
@@ -1,7 +0,0 @@
1
- import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
2
-
3
- const Collapsible = CollapsiblePrimitive.Root;
4
- const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger;
5
- const CollapsibleContent = CollapsiblePrimitive.CollapsibleContent;
6
-
7
- export { Collapsible, CollapsibleTrigger, CollapsibleContent };