@nomad-e/bluma-cli 0.26.3 → 2026.27.0-darwin-x64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +189 -70
- package/README.md +2 -162
- package/THIRD-PARTY-NOTICES.txt +46201 -0
- package/bin/bluma-core +0 -0
- package/package.json +24 -124
- package/third-party/option-ext/.cargo_vcs_info.json +6 -0
- package/third-party/option-ext/Cargo.toml +22 -0
- package/third-party/option-ext/LICENSE.txt +373 -0
- package/third-party/option-ext/README.md +67 -0
- package/third-party/option-ext/src/impl.rs +20 -0
- package/third-party/option-ext/src/lib.rs +71 -0
- package/assets/bg.png +0 -0
- package/assets/bg1.png +0 -0
- package/assets/bluma.png +0 -0
- package/assets/image.png +0 -0
- package/dist/assets/bg.png +0 -0
- package/dist/assets/bg1.png +0 -0
- package/dist/assets/bluma.png +0 -0
- package/dist/assets/image.png +0 -0
- package/dist/config/native_tools.json +0 -1151
- package/dist/config/plan_mode_instructions.md +0 -218
- package/dist/config/skills/factorai-sh/SKILL.md +0 -98
- package/dist/config/skills/git-commit/LICENSE.txt +0 -18
- package/dist/config/skills/git-commit/SKILL.md +0 -300
- package/dist/config/skills/git-commit/references/REFERENCE.md +0 -253
- package/dist/config/skills/git-commit/scripts/validate_commit_msg.py +0 -163
- package/dist/config/skills/git-pr/LICENSE.txt +0 -18
- package/dist/config/skills/git-pr/SKILL.md +0 -293
- package/dist/config/skills/git-pr/references/REFERENCE.md +0 -256
- package/dist/config/skills/git-pr/scripts/validate_commits.py +0 -120
- package/dist/config/skills/git-release/LICENSE.txt +0 -18
- package/dist/config/skills/git-release/SKILL.md +0 -408
- package/dist/config/skills/pdf/LICENSE.txt +0 -26
- package/dist/config/skills/pdf/SKILL.md +0 -736
- package/dist/config/skills/pdf/references/DOCUMENT_TYPES.md +0 -59
- package/dist/config/skills/pdf/references/FORMS.md +0 -69
- package/dist/config/skills/pdf/references/REFERENCE.md +0 -52
- package/dist/config/skills/pdf/scripts/__pycache__/create_report.cpython-312.pyc +0 -0
- package/dist/config/skills/pdf/scripts/create_report.py +0 -936
- package/dist/config/skills/pdf/scripts/merge_pdfs.py +0 -48
- package/dist/config/skills/skill-creator/LICENSE.txt +0 -26
- package/dist/config/skills/skill-creator/SKILL.md +0 -229
- package/dist/config/skills/xlsx/LICENSE.txt +0 -18
- package/dist/config/skills/xlsx/SKILL.md +0 -340
- package/dist/config/skills/xlsx/references/REFERENCE.md +0 -337
- package/dist/config/skills/xlsx/scripts/office/__init__.py +0 -2
- package/dist/config/skills/xlsx/scripts/office/pack.py +0 -58
- package/dist/config/skills/xlsx/scripts/office/soffice.py +0 -180
- package/dist/config/skills/xlsx/scripts/office/unpack.py +0 -63
- package/dist/config/skills/xlsx/scripts/office/validate.py +0 -122
- package/dist/config/skills/xlsx/scripts/recalc.py +0 -152
- package/dist/main.js +0 -47932
- package/dist/native/bluma-clipboard.linux-x64-gnu.node +0 -0
- package/dist/native/index.d.ts +0 -38
- package/dist/native/index.js +0 -319
- package/dist/native/package.json +0 -38
- package/dist/scaffold/.eslintrc.json +0 -3
- package/dist/scaffold/app/globals.css +0 -46
- package/dist/scaffold/app/layout.tsx +0 -19
- package/dist/scaffold/app/page.tsx +0 -124
- package/dist/scaffold/components/ui/README.md +0 -12
- package/dist/scaffold/components/ui/accordion.jsx +0 -42
- package/dist/scaffold/components/ui/alert-dialog.jsx +0 -80
- package/dist/scaffold/components/ui/alert.jsx +0 -33
- package/dist/scaffold/components/ui/aspect-ratio.jsx +0 -5
- package/dist/scaffold/components/ui/avatar.jsx +0 -28
- package/dist/scaffold/components/ui/badge.jsx +0 -24
- package/dist/scaffold/components/ui/breadcrumb.jsx +0 -72
- package/dist/scaffold/components/ui/button.jsx +0 -40
- package/dist/scaffold/components/ui/calendar.jsx +0 -56
- package/dist/scaffold/components/ui/card.jsx +0 -38
- package/dist/scaffold/components/ui/carousel.jsx +0 -168
- package/dist/scaffold/components/ui/chart.jsx +0 -76
- package/dist/scaffold/components/ui/checkbox.jsx +0 -22
- package/dist/scaffold/components/ui/collapsible.jsx +0 -7
- package/dist/scaffold/components/ui/command.jsx +0 -100
- package/dist/scaffold/components/ui/context-menu.jsx +0 -137
- package/dist/scaffold/components/ui/dialog.jsx +0 -72
- package/dist/scaffold/components/ui/drawer.jsx +0 -68
- package/dist/scaffold/components/ui/dropdown-menu.jsx +0 -143
- package/dist/scaffold/components/ui/form.jsx +0 -88
- package/dist/scaffold/components/ui/hover-card.jsx +0 -22
- package/dist/scaffold/components/ui/input-otp.jsx +0 -49
- package/dist/scaffold/components/ui/input.jsx +0 -19
- package/dist/scaffold/components/ui/label.jsx +0 -15
- package/dist/scaffold/components/ui/menubar.jsx +0 -161
- package/dist/scaffold/components/ui/navigation-menu.jsx +0 -95
- package/dist/scaffold/components/ui/pagination.jsx +0 -77
- package/dist/scaffold/components/ui/popover.jsx +0 -25
- package/dist/scaffold/components/ui/progress.jsx +0 -19
- package/dist/scaffold/components/ui/radio-group.jsx +0 -29
- package/dist/scaffold/components/ui/resizable.jsx +0 -27
- package/dist/scaffold/components/ui/scroll-area.jsx +0 -31
- package/dist/scaffold/components/ui/select.jsx +0 -117
- package/dist/scaffold/components/ui/separator.jsx +0 -22
- package/dist/scaffold/components/ui/sheet.jsx +0 -81
- package/dist/scaffold/components/ui/skeleton.jsx +0 -7
- package/dist/scaffold/components/ui/slider.jsx +0 -19
- package/dist/scaffold/components/ui/sonner.jsx +0 -22
- package/dist/scaffold/components/ui/switch.jsx +0 -23
- package/dist/scaffold/components/ui/table.jsx +0 -61
- package/dist/scaffold/components/ui/tabs.jsx +0 -43
- package/dist/scaffold/components/ui/textarea.jsx +0 -18
- package/dist/scaffold/components/ui/toast.jsx +0 -85
- package/dist/scaffold/components/ui/toaster.jsx +0 -33
- package/dist/scaffold/components/ui/toggle-group.jsx +0 -41
- package/dist/scaffold/components/ui/toggle.jsx +0 -30
- package/dist/scaffold/components/ui/tooltip.jsx +0 -22
- package/dist/scaffold/hooks/use-toast.ts +0 -101
- package/dist/scaffold/lib/utils.ts +0 -6
- package/dist/scaffold/next.config.js +0 -5
- package/dist/scaffold/next.config.mjs +0 -15
- package/dist/scaffold/next.config.ts +0 -19
- package/dist/scaffold/package.json +0 -70
- package/dist/scaffold/postcss.config.js +0 -6
- package/dist/scaffold/tailwind.config.ts +0 -57
- package/dist/scaffold/tsconfig.json +0 -20
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
3
|
-
import { cva } from 'class-variance-authority';
|
|
4
|
-
import { X } from 'lucide-react';
|
|
5
|
-
import { cn } from '@/lib/utils';
|
|
6
|
-
|
|
7
|
-
const Sheet = SheetPrimitive.Root;
|
|
8
|
-
const SheetTrigger = SheetPrimitive.Trigger;
|
|
9
|
-
const SheetClose = SheetPrimitive.Close;
|
|
10
|
-
const SheetPortal = SheetPrimitive.Portal;
|
|
11
|
-
|
|
12
|
-
const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => (
|
|
13
|
-
<SheetPrimitive.Overlay
|
|
14
|
-
className={cn('fixed inset-0 z-50 bg-black/80', className)}
|
|
15
|
-
{...props}
|
|
16
|
-
ref={ref}
|
|
17
|
-
/>
|
|
18
|
-
));
|
|
19
|
-
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
20
|
-
|
|
21
|
-
const sheetVariants = cva(
|
|
22
|
-
'fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:duration-300 data-[state=closed]:duration-200',
|
|
23
|
-
{
|
|
24
|
-
variants: {
|
|
25
|
-
side: {
|
|
26
|
-
top: 'inset-x-0 top-0 border-b data-[state=closed]:-translate-y-full data-[state=open]:translate-y-0',
|
|
27
|
-
bottom: 'inset-x-0 bottom-0 border-t data-[state=closed]:translate-y-full data-[state=open]:translate-y-0',
|
|
28
|
-
left: 'inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:-translate-x-full data-[state=open]:translate-x-0 sm:max-w-sm',
|
|
29
|
-
right: 'inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:translate-x-full data-[state=open]:translate-x-0 sm:max-w-sm',
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
defaultVariants: { side: 'right' },
|
|
33
|
-
}
|
|
34
|
-
);
|
|
35
|
-
|
|
36
|
-
const SheetContent = React.forwardRef(({ side = 'right', className, children, ...props }, ref) => (
|
|
37
|
-
<SheetPortal>
|
|
38
|
-
<SheetOverlay />
|
|
39
|
-
<SheetPrimitive.Content ref={ref} className={cn(sheetVariants({ side }), className)} {...props}>
|
|
40
|
-
{children}
|
|
41
|
-
<SheetPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none">
|
|
42
|
-
<X className="h-4 w-4" />
|
|
43
|
-
<span className="sr-only">Close</span>
|
|
44
|
-
</SheetPrimitive.Close>
|
|
45
|
-
</SheetPrimitive.Content>
|
|
46
|
-
</SheetPortal>
|
|
47
|
-
));
|
|
48
|
-
SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
49
|
-
|
|
50
|
-
const SheetHeader = ({ className, ...props }) => (
|
|
51
|
-
<div className={cn('flex flex-col space-y-2 text-center sm:text-left', className)} {...props} />
|
|
52
|
-
);
|
|
53
|
-
SheetHeader.displayName = 'SheetHeader';
|
|
54
|
-
|
|
55
|
-
const SheetFooter = ({ className, ...props }) => (
|
|
56
|
-
<div className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2', className)} {...props} />
|
|
57
|
-
);
|
|
58
|
-
SheetFooter.displayName = 'SheetFooter';
|
|
59
|
-
|
|
60
|
-
const SheetTitle = React.forwardRef(({ className, ...props }, ref) => (
|
|
61
|
-
<SheetPrimitive.Title ref={ref} className={cn('text-lg font-semibold text-foreground', className)} {...props} />
|
|
62
|
-
));
|
|
63
|
-
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
64
|
-
|
|
65
|
-
const SheetDescription = React.forwardRef(({ className, ...props }, ref) => (
|
|
66
|
-
<SheetPrimitive.Description ref={ref} className={cn('text-sm text-muted-foreground', className)} {...props} />
|
|
67
|
-
));
|
|
68
|
-
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
69
|
-
|
|
70
|
-
export {
|
|
71
|
-
Sheet,
|
|
72
|
-
SheetPortal,
|
|
73
|
-
SheetOverlay,
|
|
74
|
-
SheetTrigger,
|
|
75
|
-
SheetClose,
|
|
76
|
-
SheetContent,
|
|
77
|
-
SheetHeader,
|
|
78
|
-
SheetFooter,
|
|
79
|
-
SheetTitle,
|
|
80
|
-
SheetDescription,
|
|
81
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
3
|
-
import { cn } from '@/lib/utils';
|
|
4
|
-
|
|
5
|
-
const Slider = React.forwardRef(({ className, ...props }, ref) => (
|
|
6
|
-
<SliderPrimitive.Root
|
|
7
|
-
ref={ref}
|
|
8
|
-
className={cn('relative flex w-full touch-none select-none items-center', className)}
|
|
9
|
-
{...props}
|
|
10
|
-
>
|
|
11
|
-
<SliderPrimitive.Track className="relative h-2 w-full grow overflow-hidden rounded-full bg-secondary">
|
|
12
|
-
<SliderPrimitive.Range className="absolute h-full bg-primary" />
|
|
13
|
-
</SliderPrimitive.Track>
|
|
14
|
-
<SliderPrimitive.Thumb className="block h-5 w-5 rounded-full border-2 border-primary bg-background 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" />
|
|
15
|
-
</SliderPrimitive.Root>
|
|
16
|
-
));
|
|
17
|
-
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
18
|
-
|
|
19
|
-
export { Slider };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Toaster as Sonner } from 'sonner';
|
|
3
|
-
|
|
4
|
-
const Toaster = ({ ...props }) => {
|
|
5
|
-
return (
|
|
6
|
-
<Sonner
|
|
7
|
-
className="toaster group"
|
|
8
|
-
toastOptions={{
|
|
9
|
-
classNames: {
|
|
10
|
-
toast:
|
|
11
|
-
'group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg',
|
|
12
|
-
description: 'group-[.toast]:text-muted-foreground',
|
|
13
|
-
actionButton: 'group-[.toast]:bg-primary group-[.toast]:text-primary-foreground',
|
|
14
|
-
cancelButton: 'group-[.toast]:bg-muted group-[.toast]:text-muted-foreground',
|
|
15
|
-
},
|
|
16
|
-
}}
|
|
17
|
-
{...props}
|
|
18
|
-
/>
|
|
19
|
-
);
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export { Toaster };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
3
|
-
import { cn } from '@/lib/utils';
|
|
4
|
-
|
|
5
|
-
const Switch = React.forwardRef(({ className, ...props }, ref) => (
|
|
6
|
-
<SwitchPrimitives.Root
|
|
7
|
-
className={cn(
|
|
8
|
-
'peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input',
|
|
9
|
-
className
|
|
10
|
-
)}
|
|
11
|
-
{...props}
|
|
12
|
-
ref={ref}
|
|
13
|
-
>
|
|
14
|
-
<SwitchPrimitives.Thumb
|
|
15
|
-
className={cn(
|
|
16
|
-
'pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0'
|
|
17
|
-
)}
|
|
18
|
-
/>
|
|
19
|
-
</SwitchPrimitives.Root>
|
|
20
|
-
));
|
|
21
|
-
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
22
|
-
|
|
23
|
-
export { Switch };
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { cn } from '@/lib/utils';
|
|
3
|
-
|
|
4
|
-
const Table = React.forwardRef(({ className, ...props }, ref) => (
|
|
5
|
-
<div className="relative w-full overflow-auto">
|
|
6
|
-
<table ref={ref} className={cn('w-full caption-bottom text-sm', className)} {...props} />
|
|
7
|
-
</div>
|
|
8
|
-
));
|
|
9
|
-
Table.displayName = 'Table';
|
|
10
|
-
|
|
11
|
-
const TableHeader = React.forwardRef(({ className, ...props }, ref) => (
|
|
12
|
-
<thead ref={ref} className={cn('[&_tr]:border-b', className)} {...props} />
|
|
13
|
-
));
|
|
14
|
-
TableHeader.displayName = 'TableHeader';
|
|
15
|
-
|
|
16
|
-
const TableBody = React.forwardRef(({ className, ...props }, ref) => (
|
|
17
|
-
<tbody ref={ref} className={cn('[&_tr:last-child]:border-0', className)} {...props} />
|
|
18
|
-
));
|
|
19
|
-
TableBody.displayName = 'TableBody';
|
|
20
|
-
|
|
21
|
-
const TableFooter = React.forwardRef(({ className, ...props }, ref) => (
|
|
22
|
-
<tfoot
|
|
23
|
-
ref={ref}
|
|
24
|
-
className={cn('border-t bg-muted/50 font-medium [&>tr]:last:border-b-0', className)}
|
|
25
|
-
{...props}
|
|
26
|
-
/>
|
|
27
|
-
));
|
|
28
|
-
TableFooter.displayName = 'TableFooter';
|
|
29
|
-
|
|
30
|
-
const TableRow = React.forwardRef(({ className, ...props }, ref) => (
|
|
31
|
-
<tr
|
|
32
|
-
ref={ref}
|
|
33
|
-
className={cn('border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted', className)}
|
|
34
|
-
{...props}
|
|
35
|
-
/>
|
|
36
|
-
));
|
|
37
|
-
TableRow.displayName = 'TableRow';
|
|
38
|
-
|
|
39
|
-
const TableHead = React.forwardRef(({ className, ...props }, ref) => (
|
|
40
|
-
<th
|
|
41
|
-
ref={ref}
|
|
42
|
-
className={cn(
|
|
43
|
-
'h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0',
|
|
44
|
-
className
|
|
45
|
-
)}
|
|
46
|
-
{...props}
|
|
47
|
-
/>
|
|
48
|
-
));
|
|
49
|
-
TableHead.displayName = 'TableHead';
|
|
50
|
-
|
|
51
|
-
const TableCell = React.forwardRef(({ className, ...props }, ref) => (
|
|
52
|
-
<td ref={ref} className={cn('p-4 align-middle [&:has([role=checkbox])]:pr-0', className)} {...props} />
|
|
53
|
-
));
|
|
54
|
-
TableCell.displayName = 'TableCell';
|
|
55
|
-
|
|
56
|
-
const TableCaption = React.forwardRef(({ className, ...props }, ref) => (
|
|
57
|
-
<caption ref={ref} className={cn('mt-4 text-sm text-muted-foreground', className)} {...props} />
|
|
58
|
-
));
|
|
59
|
-
TableCaption.displayName = 'TableCaption';
|
|
60
|
-
|
|
61
|
-
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
3
|
-
import { cn } from '@/lib/utils';
|
|
4
|
-
|
|
5
|
-
const Tabs = TabsPrimitive.Root;
|
|
6
|
-
|
|
7
|
-
const TabsList = React.forwardRef(({ className, ...props }, ref) => (
|
|
8
|
-
<TabsPrimitive.List
|
|
9
|
-
ref={ref}
|
|
10
|
-
className={cn(
|
|
11
|
-
'inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground',
|
|
12
|
-
className
|
|
13
|
-
)}
|
|
14
|
-
{...props}
|
|
15
|
-
/>
|
|
16
|
-
));
|
|
17
|
-
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
18
|
-
|
|
19
|
-
const TabsTrigger = React.forwardRef(({ className, ...props }, ref) => (
|
|
20
|
-
<TabsPrimitive.Trigger
|
|
21
|
-
ref={ref}
|
|
22
|
-
className={cn(
|
|
23
|
-
'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',
|
|
24
|
-
className
|
|
25
|
-
)}
|
|
26
|
-
{...props}
|
|
27
|
-
/>
|
|
28
|
-
));
|
|
29
|
-
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
30
|
-
|
|
31
|
-
const TabsContent = React.forwardRef(({ className, ...props }, ref) => (
|
|
32
|
-
<TabsPrimitive.Content
|
|
33
|
-
ref={ref}
|
|
34
|
-
className={cn(
|
|
35
|
-
'mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',
|
|
36
|
-
className
|
|
37
|
-
)}
|
|
38
|
-
{...props}
|
|
39
|
-
/>
|
|
40
|
-
));
|
|
41
|
-
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
42
|
-
|
|
43
|
-
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { cn } from '@/lib/utils';
|
|
3
|
-
|
|
4
|
-
const Textarea = React.forwardRef(({ className, ...props }, ref) => {
|
|
5
|
-
return (
|
|
6
|
-
<textarea
|
|
7
|
-
className={cn(
|
|
8
|
-
'flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
|
|
9
|
-
className
|
|
10
|
-
)}
|
|
11
|
-
ref={ref}
|
|
12
|
-
{...props}
|
|
13
|
-
/>
|
|
14
|
-
);
|
|
15
|
-
});
|
|
16
|
-
Textarea.displayName = 'Textarea';
|
|
17
|
-
|
|
18
|
-
export { Textarea };
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
3
|
-
import { X } from 'lucide-react';
|
|
4
|
-
import { cva } from 'class-variance-authority';
|
|
5
|
-
import { cn } from '@/lib/utils';
|
|
6
|
-
|
|
7
|
-
const ToastProvider = ToastPrimitives.Provider;
|
|
8
|
-
|
|
9
|
-
const ToastViewport = React.forwardRef(({ className, ...props }, ref) => (
|
|
10
|
-
<ToastPrimitives.Viewport
|
|
11
|
-
ref={ref}
|
|
12
|
-
className={cn(
|
|
13
|
-
'fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]',
|
|
14
|
-
className
|
|
15
|
-
)}
|
|
16
|
-
{...props}
|
|
17
|
-
/>
|
|
18
|
-
));
|
|
19
|
-
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
20
|
-
|
|
21
|
-
const toastVariants = cva(
|
|
22
|
-
'group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none',
|
|
23
|
-
{
|
|
24
|
-
variants: {
|
|
25
|
-
variant: {
|
|
26
|
-
default: 'border bg-background text-foreground',
|
|
27
|
-
destructive: 'destructive group border-destructive bg-destructive text-destructive-foreground',
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
defaultVariants: { variant: 'default' },
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
|
|
34
|
-
const Toast = React.forwardRef(({ className, variant, ...props }, ref) => {
|
|
35
|
-
return <ToastPrimitives.Root ref={ref} className={cn(toastVariants({ variant }), className)} {...props} />;
|
|
36
|
-
});
|
|
37
|
-
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
38
|
-
|
|
39
|
-
const ToastAction = React.forwardRef(({ className, ...props }, ref) => (
|
|
40
|
-
<ToastPrimitives.Action
|
|
41
|
-
ref={ref}
|
|
42
|
-
className={cn(
|
|
43
|
-
'inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive',
|
|
44
|
-
className
|
|
45
|
-
)}
|
|
46
|
-
{...props}
|
|
47
|
-
/>
|
|
48
|
-
));
|
|
49
|
-
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
50
|
-
|
|
51
|
-
const ToastClose = React.forwardRef(({ className, ...props }, ref) => (
|
|
52
|
-
<ToastPrimitives.Close
|
|
53
|
-
ref={ref}
|
|
54
|
-
className={cn(
|
|
55
|
-
'absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600',
|
|
56
|
-
className
|
|
57
|
-
)}
|
|
58
|
-
toast-close=""
|
|
59
|
-
{...props}
|
|
60
|
-
>
|
|
61
|
-
<X className="h-4 w-4" />
|
|
62
|
-
</ToastPrimitives.Close>
|
|
63
|
-
));
|
|
64
|
-
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
65
|
-
|
|
66
|
-
const ToastTitle = React.forwardRef(({ className, ...props }, ref) => (
|
|
67
|
-
<ToastPrimitives.Title ref={ref} className={cn('text-sm font-semibold', className)} {...props} />
|
|
68
|
-
));
|
|
69
|
-
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
70
|
-
|
|
71
|
-
const ToastDescription = React.forwardRef(({ className, ...props }, ref) => (
|
|
72
|
-
<ToastPrimitives.Description ref={ref} className={cn('text-sm opacity-90', className)} {...props} />
|
|
73
|
-
));
|
|
74
|
-
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
75
|
-
|
|
76
|
-
export {
|
|
77
|
-
ToastProvider,
|
|
78
|
-
ToastViewport,
|
|
79
|
-
Toast,
|
|
80
|
-
ToastTitle,
|
|
81
|
-
ToastDescription,
|
|
82
|
-
ToastClose,
|
|
83
|
-
ToastAction,
|
|
84
|
-
toastVariants,
|
|
85
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Toast,
|
|
3
|
-
ToastClose,
|
|
4
|
-
ToastDescription,
|
|
5
|
-
ToastProvider,
|
|
6
|
-
ToastTitle,
|
|
7
|
-
ToastViewport,
|
|
8
|
-
} from '@/components/ui/toast';
|
|
9
|
-
import { useToast } from '@/hooks/use-toast';
|
|
10
|
-
|
|
11
|
-
function Toaster() {
|
|
12
|
-
const { toasts } = useToast();
|
|
13
|
-
|
|
14
|
-
return (
|
|
15
|
-
<ToastProvider>
|
|
16
|
-
{toasts.map(function ({ id, title, description, action, open, onOpenChange, ...props }) {
|
|
17
|
-
return (
|
|
18
|
-
<Toast key={id} open={open} onOpenChange={onOpenChange} {...props}>
|
|
19
|
-
<div className="grid gap-1">
|
|
20
|
-
{title && <ToastTitle>{title}</ToastTitle>}
|
|
21
|
-
{description && <ToastDescription>{description}</ToastDescription>}
|
|
22
|
-
</div>
|
|
23
|
-
{action}
|
|
24
|
-
<ToastClose />
|
|
25
|
-
</Toast>
|
|
26
|
-
);
|
|
27
|
-
})}
|
|
28
|
-
<ToastViewport />
|
|
29
|
-
</ToastProvider>
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { Toaster };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
3
|
-
import { cn } from '@/lib/utils';
|
|
4
|
-
import { toggleVariants } from '@/components/ui/toggle';
|
|
5
|
-
|
|
6
|
-
const ToggleGroupContext = React.createContext({ size: 'default', variant: 'default' });
|
|
7
|
-
|
|
8
|
-
const ToggleGroup = React.forwardRef(({ className, variant, size, children, ...props }, ref) => (
|
|
9
|
-
<ToggleGroupPrimitive.Root
|
|
10
|
-
ref={ref}
|
|
11
|
-
className={cn('flex items-center justify-center gap-1', className)}
|
|
12
|
-
{...props}
|
|
13
|
-
>
|
|
14
|
-
<ToggleGroupContext.Provider value={{ variant, size }}>{children}</ToggleGroupContext.Provider>
|
|
15
|
-
</ToggleGroupPrimitive.Root>
|
|
16
|
-
));
|
|
17
|
-
|
|
18
|
-
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
19
|
-
|
|
20
|
-
const ToggleGroupItem = React.forwardRef(({ className, children, ...props }, ref) => {
|
|
21
|
-
const context = React.useContext(ToggleGroupContext);
|
|
22
|
-
return (
|
|
23
|
-
<ToggleGroupPrimitive.Item
|
|
24
|
-
ref={ref}
|
|
25
|
-
className={cn(
|
|
26
|
-
toggleVariants({
|
|
27
|
-
variant: context.variant,
|
|
28
|
-
size: context.size,
|
|
29
|
-
}),
|
|
30
|
-
className
|
|
31
|
-
)}
|
|
32
|
-
{...props}
|
|
33
|
-
>
|
|
34
|
-
{children}
|
|
35
|
-
</ToggleGroupPrimitive.Item>
|
|
36
|
-
);
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
40
|
-
|
|
41
|
-
export { ToggleGroup, ToggleGroupItem };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
3
|
-
import { cva } from 'class-variance-authority';
|
|
4
|
-
import { cn } from '@/lib/utils';
|
|
5
|
-
|
|
6
|
-
const toggleVariants = cva(
|
|
7
|
-
'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',
|
|
8
|
-
{
|
|
9
|
-
variants: {
|
|
10
|
-
variant: {
|
|
11
|
-
default: 'bg-transparent',
|
|
12
|
-
outline: 'border border-input bg-transparent hover:bg-accent hover:text-accent-foreground',
|
|
13
|
-
},
|
|
14
|
-
size: {
|
|
15
|
-
default: 'h-10 px-3',
|
|
16
|
-
sm: 'h-9 px-2.5',
|
|
17
|
-
lg: 'h-11 px-5',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
defaultVariants: { variant: 'default', size: 'default' },
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
|
|
24
|
-
const Toggle = React.forwardRef(({ className, variant, size, ...props }, ref) => (
|
|
25
|
-
<TogglePrimitive.Root ref={ref} className={cn(toggleVariants({ variant, size, className }))} {...props} />
|
|
26
|
-
));
|
|
27
|
-
|
|
28
|
-
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
29
|
-
|
|
30
|
-
export { Toggle, toggleVariants };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
3
|
-
import { cn } from '@/lib/utils';
|
|
4
|
-
|
|
5
|
-
const TooltipProvider = TooltipPrimitive.Provider;
|
|
6
|
-
const Tooltip = TooltipPrimitive.Root;
|
|
7
|
-
const TooltipTrigger = TooltipPrimitive.Trigger;
|
|
8
|
-
|
|
9
|
-
const TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => (
|
|
10
|
-
<TooltipPrimitive.Content
|
|
11
|
-
ref={ref}
|
|
12
|
-
sideOffset={sideOffset}
|
|
13
|
-
className={cn(
|
|
14
|
-
'z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md',
|
|
15
|
-
className
|
|
16
|
-
)}
|
|
17
|
-
{...props}
|
|
18
|
-
/>
|
|
19
|
-
));
|
|
20
|
-
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
21
|
-
|
|
22
|
-
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck — shadcn toast hook (JS port); app code is typed separately.
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
const TOAST_LIMIT = 20;
|
|
5
|
-
const TOAST_REMOVE_DELAY = 1000;
|
|
6
|
-
|
|
7
|
-
let count = 0;
|
|
8
|
-
function genId() {
|
|
9
|
-
count = (count + 1) % Number.MAX_SAFE_INTEGER;
|
|
10
|
-
return count.toString();
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const toastTimeouts = new Map();
|
|
14
|
-
|
|
15
|
-
const addToRemoveQueue = (toastId) => {
|
|
16
|
-
if (toastTimeouts.has(toastId)) return;
|
|
17
|
-
const timeout = setTimeout(() => {
|
|
18
|
-
toastTimeouts.delete(toastId);
|
|
19
|
-
dispatch({ type: 'REMOVE_TOAST', toastId });
|
|
20
|
-
}, TOAST_REMOVE_DELAY);
|
|
21
|
-
toastTimeouts.set(toastId, timeout);
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
const listeners = [];
|
|
25
|
-
let memoryState = { toasts: [] };
|
|
26
|
-
|
|
27
|
-
function dispatch(action) {
|
|
28
|
-
memoryState = reducer(memoryState, action);
|
|
29
|
-
listeners.forEach((listener) => listener(memoryState));
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function reducer(state, action) {
|
|
33
|
-
switch (action.type) {
|
|
34
|
-
case 'ADD_TOAST':
|
|
35
|
-
return {
|
|
36
|
-
...state,
|
|
37
|
-
toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),
|
|
38
|
-
};
|
|
39
|
-
case 'UPDATE_TOAST':
|
|
40
|
-
return {
|
|
41
|
-
...state,
|
|
42
|
-
toasts: state.toasts.map((t) => (t.id === action.toast.id ? { ...t, ...action.toast } : t)),
|
|
43
|
-
};
|
|
44
|
-
case 'DISMISS_TOAST': {
|
|
45
|
-
const { toastId } = action;
|
|
46
|
-
if (toastId) addToRemoveQueue(toastId);
|
|
47
|
-
else state.toasts.forEach((t) => addToRemoveQueue(t.id));
|
|
48
|
-
return {
|
|
49
|
-
...state,
|
|
50
|
-
toasts: state.toasts.map((t) =>
|
|
51
|
-
t.id === toastId || toastId === undefined ? { ...t, open: false } : t
|
|
52
|
-
),
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
case 'REMOVE_TOAST':
|
|
56
|
-
if (action.toastId === undefined) return { ...state, toasts: [] };
|
|
57
|
-
return { ...state, toasts: state.toasts.filter((t) => t.id !== action.toastId) };
|
|
58
|
-
default:
|
|
59
|
-
return state;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
function toastFn(props) {
|
|
64
|
-
const id = genId();
|
|
65
|
-
const update = (p) => dispatch({ type: 'UPDATE_TOAST', toast: { ...p, id } });
|
|
66
|
-
const dismiss = () => dispatch({ type: 'DISMISS_TOAST', toastId: id });
|
|
67
|
-
|
|
68
|
-
dispatch({
|
|
69
|
-
type: 'ADD_TOAST',
|
|
70
|
-
toast: {
|
|
71
|
-
...props,
|
|
72
|
-
id,
|
|
73
|
-
open: true,
|
|
74
|
-
onOpenChange: (open) => {
|
|
75
|
-
if (!open) dismiss();
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
return { id, dismiss, update };
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
function useToast() {
|
|
84
|
-
const [state, setState] = React.useState(memoryState);
|
|
85
|
-
|
|
86
|
-
React.useEffect(() => {
|
|
87
|
-
listeners.push(setState);
|
|
88
|
-
return () => {
|
|
89
|
-
const i = listeners.indexOf(setState);
|
|
90
|
-
if (i > -1) listeners.splice(i, 1);
|
|
91
|
-
};
|
|
92
|
-
}, []);
|
|
93
|
-
|
|
94
|
-
return {
|
|
95
|
-
...state,
|
|
96
|
-
toast: toastFn,
|
|
97
|
-
dismiss: (toastId) => dispatch({ type: 'DISMISS_TOAST', toastId }),
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export { useToast, toastFn as toast };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import path from 'path';
|
|
2
|
-
import { fileURLToPath } from 'url';
|
|
3
|
-
|
|
4
|
-
const appRoot = path.dirname(fileURLToPath(import.meta.url));
|
|
5
|
-
|
|
6
|
-
/** @type {import('next').NextConfig} */
|
|
7
|
-
const nextConfig = {
|
|
8
|
-
output: 'standalone',
|
|
9
|
-
reactStrictMode: true,
|
|
10
|
-
experimental: {
|
|
11
|
-
outputFileTracingRoot: appRoot,
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export default nextConfig;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { NextConfig } from 'next';
|
|
2
|
-
import path from 'path';
|
|
3
|
-
import { fileURLToPath } from 'url';
|
|
4
|
-
|
|
5
|
-
const appRoot = path.dirname(fileURLToPath(import.meta.url));
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* FactorAI deployer injects basePath here before build.
|
|
9
|
-
* Keep output: 'standalone' — required for PM2 / Unix socket runtime.
|
|
10
|
-
*/
|
|
11
|
-
const nextConfig: NextConfig = {
|
|
12
|
-
output: 'standalone',
|
|
13
|
-
reactStrictMode: true,
|
|
14
|
-
experimental: {
|
|
15
|
-
outputFileTracingRoot: appRoot,
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export default nextConfig;
|