@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.
- 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,100 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Command as Cmdk } from 'cmdk';
|
|
3
|
-
import { Search } from 'lucide-react';
|
|
4
|
-
import { cn } from '@/lib/utils';
|
|
5
|
-
import { Dialog, DialogContent } from '@/components/ui/dialog';
|
|
6
|
-
|
|
7
|
-
const Command = React.forwardRef(({ className, ...props }, ref) => (
|
|
8
|
-
<Cmdk
|
|
9
|
-
ref={ref}
|
|
10
|
-
className={cn(
|
|
11
|
-
'flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground',
|
|
12
|
-
className
|
|
13
|
-
)}
|
|
14
|
-
{...props}
|
|
15
|
-
/>
|
|
16
|
-
));
|
|
17
|
-
Command.displayName = Cmdk.displayName;
|
|
18
|
-
|
|
19
|
-
const CommandDialog = ({ children, ...props }) => {
|
|
20
|
-
return (
|
|
21
|
-
<Dialog {...props}>
|
|
22
|
-
<DialogContent className="overflow-hidden p-0 shadow-lg">
|
|
23
|
-
<Command className="[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[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">
|
|
24
|
-
{children}
|
|
25
|
-
</Command>
|
|
26
|
-
</DialogContent>
|
|
27
|
-
</Dialog>
|
|
28
|
-
);
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
const CommandInput = React.forwardRef(({ className, ...props }, ref) => (
|
|
32
|
-
<div className="flex items-center border-b px-3" cmdk-input-wrapper="">
|
|
33
|
-
<Search className="mr-2 h-4 w-4 shrink-0 opacity-50" />
|
|
34
|
-
<Cmdk.Input
|
|
35
|
-
ref={ref}
|
|
36
|
-
className={cn(
|
|
37
|
-
'flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50',
|
|
38
|
-
className
|
|
39
|
-
)}
|
|
40
|
-
{...props}
|
|
41
|
-
/>
|
|
42
|
-
</div>
|
|
43
|
-
));
|
|
44
|
-
CommandInput.displayName = Cmdk.Input.displayName;
|
|
45
|
-
|
|
46
|
-
const CommandList = React.forwardRef(({ className, ...props }, ref) => (
|
|
47
|
-
<Cmdk.List ref={ref} className={cn('max-h-[300px] overflow-y-auto overflow-x-hidden', className)} {...props} />
|
|
48
|
-
));
|
|
49
|
-
CommandList.displayName = Cmdk.List.displayName;
|
|
50
|
-
|
|
51
|
-
const CommandEmpty = React.forwardRef((props, ref) => (
|
|
52
|
-
<Cmdk.Empty ref={ref} className="py-6 text-center text-sm" {...props} />
|
|
53
|
-
));
|
|
54
|
-
CommandEmpty.displayName = Cmdk.Empty.displayName;
|
|
55
|
-
|
|
56
|
-
const CommandGroup = React.forwardRef(({ className, ...props }, ref) => (
|
|
57
|
-
<Cmdk.Group
|
|
58
|
-
ref={ref}
|
|
59
|
-
className={cn(
|
|
60
|
-
'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',
|
|
61
|
-
className
|
|
62
|
-
)}
|
|
63
|
-
{...props}
|
|
64
|
-
/>
|
|
65
|
-
));
|
|
66
|
-
CommandGroup.displayName = Cmdk.Group.displayName;
|
|
67
|
-
|
|
68
|
-
const CommandSeparator = React.forwardRef(({ className, ...props }, ref) => (
|
|
69
|
-
<Cmdk.Separator ref={ref} className={cn('-mx-1 h-px bg-border', className)} {...props} />
|
|
70
|
-
));
|
|
71
|
-
CommandSeparator.displayName = Cmdk.Separator.displayName;
|
|
72
|
-
|
|
73
|
-
const CommandItem = React.forwardRef(({ className, ...props }, ref) => (
|
|
74
|
-
<Cmdk.Item
|
|
75
|
-
ref={ref}
|
|
76
|
-
className={cn(
|
|
77
|
-
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",
|
|
78
|
-
className
|
|
79
|
-
)}
|
|
80
|
-
{...props}
|
|
81
|
-
/>
|
|
82
|
-
));
|
|
83
|
-
CommandItem.displayName = Cmdk.Item.displayName;
|
|
84
|
-
|
|
85
|
-
const CommandShortcut = ({ className, ...props }) => {
|
|
86
|
-
return <span className={cn('ml-auto text-xs tracking-widest text-muted-foreground', className)} {...props} />;
|
|
87
|
-
};
|
|
88
|
-
CommandShortcut.displayName = 'CommandShortcut';
|
|
89
|
-
|
|
90
|
-
export {
|
|
91
|
-
Command,
|
|
92
|
-
CommandDialog,
|
|
93
|
-
CommandInput,
|
|
94
|
-
CommandList,
|
|
95
|
-
CommandEmpty,
|
|
96
|
-
CommandGroup,
|
|
97
|
-
CommandItem,
|
|
98
|
-
CommandShortcut,
|
|
99
|
-
CommandSeparator,
|
|
100
|
-
};
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
3
|
-
import { Check, ChevronRight, Circle } from 'lucide-react';
|
|
4
|
-
import { cn } from '@/lib/utils';
|
|
5
|
-
|
|
6
|
-
const ContextMenu = ContextMenuPrimitive.Root;
|
|
7
|
-
const ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
8
|
-
const ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
9
|
-
const ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
10
|
-
const ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
11
|
-
const ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
12
|
-
|
|
13
|
-
const ContextMenuSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => (
|
|
14
|
-
<ContextMenuPrimitive.SubTrigger
|
|
15
|
-
ref={ref}
|
|
16
|
-
className={cn(
|
|
17
|
-
'flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',
|
|
18
|
-
inset && 'pl-8',
|
|
19
|
-
className
|
|
20
|
-
)}
|
|
21
|
-
{...props}
|
|
22
|
-
>
|
|
23
|
-
{children}
|
|
24
|
-
<ChevronRight className="ml-auto h-4 w-4" />
|
|
25
|
-
</ContextMenuPrimitive.SubTrigger>
|
|
26
|
-
));
|
|
27
|
-
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
28
|
-
|
|
29
|
-
const ContextMenuSubContent = React.forwardRef(({ className, ...props }, ref) => (
|
|
30
|
-
<ContextMenuPrimitive.SubContent
|
|
31
|
-
ref={ref}
|
|
32
|
-
className={cn(
|
|
33
|
-
'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md',
|
|
34
|
-
className
|
|
35
|
-
)}
|
|
36
|
-
{...props}
|
|
37
|
-
/>
|
|
38
|
-
));
|
|
39
|
-
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
40
|
-
|
|
41
|
-
const ContextMenuContent = React.forwardRef(({ className, ...props }, ref) => (
|
|
42
|
-
<ContextMenuPrimitive.Portal>
|
|
43
|
-
<ContextMenuPrimitive.Content
|
|
44
|
-
ref={ref}
|
|
45
|
-
className={cn(
|
|
46
|
-
'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md',
|
|
47
|
-
className
|
|
48
|
-
)}
|
|
49
|
-
{...props}
|
|
50
|
-
/>
|
|
51
|
-
</ContextMenuPrimitive.Portal>
|
|
52
|
-
));
|
|
53
|
-
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
54
|
-
|
|
55
|
-
const ContextMenuItem = React.forwardRef(({ className, inset, ...props }, ref) => (
|
|
56
|
-
<ContextMenuPrimitive.Item
|
|
57
|
-
ref={ref}
|
|
58
|
-
className={cn(
|
|
59
|
-
'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
|
|
60
|
-
inset && 'pl-8',
|
|
61
|
-
className
|
|
62
|
-
)}
|
|
63
|
-
{...props}
|
|
64
|
-
/>
|
|
65
|
-
));
|
|
66
|
-
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
67
|
-
|
|
68
|
-
const ContextMenuCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => (
|
|
69
|
-
<ContextMenuPrimitive.CheckboxItem
|
|
70
|
-
ref={ref}
|
|
71
|
-
className={cn(
|
|
72
|
-
'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
|
|
73
|
-
className
|
|
74
|
-
)}
|
|
75
|
-
checked={checked}
|
|
76
|
-
{...props}
|
|
77
|
-
>
|
|
78
|
-
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
|
79
|
-
<ContextMenuPrimitive.ItemIndicator>
|
|
80
|
-
<Check className="h-4 w-4" />
|
|
81
|
-
</ContextMenuPrimitive.ItemIndicator>
|
|
82
|
-
</span>
|
|
83
|
-
{children}
|
|
84
|
-
</ContextMenuPrimitive.CheckboxItem>
|
|
85
|
-
));
|
|
86
|
-
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
87
|
-
|
|
88
|
-
const ContextMenuRadioItem = React.forwardRef(({ className, children, ...props }, ref) => (
|
|
89
|
-
<ContextMenuPrimitive.RadioItem
|
|
90
|
-
ref={ref}
|
|
91
|
-
className={cn(
|
|
92
|
-
'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
|
|
93
|
-
className
|
|
94
|
-
)}
|
|
95
|
-
{...props}
|
|
96
|
-
>
|
|
97
|
-
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
|
98
|
-
<ContextMenuPrimitive.ItemIndicator>
|
|
99
|
-
<Circle className="h-2 w-2 fill-current" />
|
|
100
|
-
</ContextMenuPrimitive.ItemIndicator>
|
|
101
|
-
</span>
|
|
102
|
-
{children}
|
|
103
|
-
</ContextMenuPrimitive.RadioItem>
|
|
104
|
-
));
|
|
105
|
-
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
106
|
-
|
|
107
|
-
const ContextMenuLabel = React.forwardRef(({ className, inset, ...props }, ref) => (
|
|
108
|
-
<ContextMenuPrimitive.Label ref={ref} className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)} {...props} />
|
|
109
|
-
));
|
|
110
|
-
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
111
|
-
|
|
112
|
-
const ContextMenuSeparator = React.forwardRef(({ className, ...props }, ref) => (
|
|
113
|
-
<ContextMenuPrimitive.Separator ref={ref} className={cn('-mx-1 my-1 h-px bg-muted', className)} {...props} />
|
|
114
|
-
));
|
|
115
|
-
ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
|
|
116
|
-
|
|
117
|
-
const ContextMenuShortcut = ({ className, ...props }) => {
|
|
118
|
-
return <span className={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...props} />;
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
export {
|
|
122
|
-
ContextMenu,
|
|
123
|
-
ContextMenuTrigger,
|
|
124
|
-
ContextMenuContent,
|
|
125
|
-
ContextMenuItem,
|
|
126
|
-
ContextMenuCheckboxItem,
|
|
127
|
-
ContextMenuRadioItem,
|
|
128
|
-
ContextMenuLabel,
|
|
129
|
-
ContextMenuSeparator,
|
|
130
|
-
ContextMenuShortcut,
|
|
131
|
-
ContextMenuGroup,
|
|
132
|
-
ContextMenuPortal,
|
|
133
|
-
ContextMenuSub,
|
|
134
|
-
ContextMenuSubContent,
|
|
135
|
-
ContextMenuSubTrigger,
|
|
136
|
-
ContextMenuRadioGroup,
|
|
137
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
3
|
-
import { X } from 'lucide-react';
|
|
4
|
-
import { cn } from '@/lib/utils';
|
|
5
|
-
|
|
6
|
-
const Dialog = DialogPrimitive.Root;
|
|
7
|
-
const DialogTrigger = DialogPrimitive.Trigger;
|
|
8
|
-
const DialogPortal = DialogPrimitive.Portal;
|
|
9
|
-
const DialogClose = DialogPrimitive.Close;
|
|
10
|
-
|
|
11
|
-
const DialogOverlay = React.forwardRef(({ className, ...props }, ref) => (
|
|
12
|
-
<DialogPrimitive.Overlay
|
|
13
|
-
ref={ref}
|
|
14
|
-
className={cn('fixed inset-0 z-50 bg-black/80', className)}
|
|
15
|
-
{...props}
|
|
16
|
-
/>
|
|
17
|
-
));
|
|
18
|
-
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
19
|
-
|
|
20
|
-
const DialogContent = React.forwardRef(({ className, children, ...props }, ref) => (
|
|
21
|
-
<DialogPortal>
|
|
22
|
-
<DialogOverlay />
|
|
23
|
-
<DialogPrimitive.Content
|
|
24
|
-
ref={ref}
|
|
25
|
-
className={cn(
|
|
26
|
-
'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',
|
|
27
|
-
className
|
|
28
|
-
)}
|
|
29
|
-
{...props}
|
|
30
|
-
>
|
|
31
|
-
{children}
|
|
32
|
-
<DialogPrimitive.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 data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
|
|
33
|
-
<X className="h-4 w-4" />
|
|
34
|
-
<span className="sr-only">Close</span>
|
|
35
|
-
</DialogPrimitive.Close>
|
|
36
|
-
</DialogPrimitive.Content>
|
|
37
|
-
</DialogPortal>
|
|
38
|
-
));
|
|
39
|
-
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
40
|
-
|
|
41
|
-
const DialogHeader = ({ className, ...props }) => (
|
|
42
|
-
<div className={cn('flex flex-col space-y-1.5 text-center sm:text-left', className)} {...props} />
|
|
43
|
-
);
|
|
44
|
-
DialogHeader.displayName = 'DialogHeader';
|
|
45
|
-
|
|
46
|
-
const DialogFooter = ({ className, ...props }) => (
|
|
47
|
-
<div className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className)} {...props} />
|
|
48
|
-
);
|
|
49
|
-
DialogFooter.displayName = 'DialogFooter';
|
|
50
|
-
|
|
51
|
-
const DialogTitle = React.forwardRef(({ className, ...props }, ref) => (
|
|
52
|
-
<DialogPrimitive.Title ref={ref} className={cn('text-lg font-semibold leading-none tracking-tight', className)} {...props} />
|
|
53
|
-
));
|
|
54
|
-
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
55
|
-
|
|
56
|
-
const DialogDescription = React.forwardRef(({ className, ...props }, ref) => (
|
|
57
|
-
<DialogPrimitive.Description ref={ref} className={cn('text-sm text-muted-foreground', className)} {...props} />
|
|
58
|
-
));
|
|
59
|
-
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
60
|
-
|
|
61
|
-
export {
|
|
62
|
-
Dialog,
|
|
63
|
-
DialogPortal,
|
|
64
|
-
DialogOverlay,
|
|
65
|
-
DialogClose,
|
|
66
|
-
DialogTrigger,
|
|
67
|
-
DialogContent,
|
|
68
|
-
DialogHeader,
|
|
69
|
-
DialogFooter,
|
|
70
|
-
DialogTitle,
|
|
71
|
-
DialogDescription,
|
|
72
|
-
};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Drawer as Vaul } from 'vaul';
|
|
3
|
-
import { cn } from '@/lib/utils';
|
|
4
|
-
|
|
5
|
-
function Drawer({ shouldScaleBackground = true, ...props }) {
|
|
6
|
-
return <Vaul.Root shouldScaleBackground={shouldScaleBackground} {...props} />;
|
|
7
|
-
}
|
|
8
|
-
Drawer.displayName = 'Drawer';
|
|
9
|
-
|
|
10
|
-
const DrawerTrigger = Vaul.Trigger;
|
|
11
|
-
const DrawerPortal = Vaul.Portal;
|
|
12
|
-
const DrawerClose = Vaul.Close;
|
|
13
|
-
|
|
14
|
-
const DrawerOverlay = React.forwardRef(({ className, ...props }, ref) => (
|
|
15
|
-
<Vaul.Overlay ref={ref} className={cn('fixed inset-0 z-50 bg-black/80', className)} {...props} />
|
|
16
|
-
));
|
|
17
|
-
DrawerOverlay.displayName = Vaul.Overlay.displayName;
|
|
18
|
-
|
|
19
|
-
const DrawerContent = React.forwardRef(({ className, children, ...props }, ref) => (
|
|
20
|
-
<DrawerPortal>
|
|
21
|
-
<DrawerOverlay />
|
|
22
|
-
<Vaul.Content
|
|
23
|
-
ref={ref}
|
|
24
|
-
className={cn(
|
|
25
|
-
'fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background',
|
|
26
|
-
className
|
|
27
|
-
)}
|
|
28
|
-
{...props}
|
|
29
|
-
>
|
|
30
|
-
<Vaul.Handle className="mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" />
|
|
31
|
-
{children}
|
|
32
|
-
</Vaul.Content>
|
|
33
|
-
</DrawerPortal>
|
|
34
|
-
));
|
|
35
|
-
DrawerContent.displayName = 'DrawerContent';
|
|
36
|
-
|
|
37
|
-
const DrawerHeader = ({ className, ...props }) => (
|
|
38
|
-
<div className={cn('grid gap-1.5 p-4 text-center sm:text-left', className)} {...props} />
|
|
39
|
-
);
|
|
40
|
-
DrawerHeader.displayName = 'DrawerHeader';
|
|
41
|
-
|
|
42
|
-
const DrawerFooter = ({ className, ...props }) => (
|
|
43
|
-
<div className={cn('mt-auto flex flex-col gap-2 p-4', className)} {...props} />
|
|
44
|
-
);
|
|
45
|
-
DrawerFooter.displayName = 'DrawerFooter';
|
|
46
|
-
|
|
47
|
-
const DrawerTitle = React.forwardRef(({ className, ...props }, ref) => (
|
|
48
|
-
<Vaul.Title ref={ref} className={cn('text-lg font-semibold leading-none tracking-tight', className)} {...props} />
|
|
49
|
-
));
|
|
50
|
-
DrawerTitle.displayName = 'DrawerTitle';
|
|
51
|
-
|
|
52
|
-
const DrawerDescription = React.forwardRef(({ className, ...props }, ref) => (
|
|
53
|
-
<Vaul.Description ref={ref} className={cn('text-sm text-muted-foreground', className)} {...props} />
|
|
54
|
-
));
|
|
55
|
-
DrawerDescription.displayName = 'DrawerDescription';
|
|
56
|
-
|
|
57
|
-
export {
|
|
58
|
-
Drawer,
|
|
59
|
-
DrawerPortal,
|
|
60
|
-
DrawerOverlay,
|
|
61
|
-
DrawerTrigger,
|
|
62
|
-
DrawerClose,
|
|
63
|
-
DrawerContent,
|
|
64
|
-
DrawerHeader,
|
|
65
|
-
DrawerFooter,
|
|
66
|
-
DrawerTitle,
|
|
67
|
-
DrawerDescription,
|
|
68
|
-
};
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
|
-
import { Check, ChevronRight, Circle } from 'lucide-react';
|
|
4
|
-
import { cn } from '@/lib/utils';
|
|
5
|
-
|
|
6
|
-
const DropdownMenu = DropdownMenuPrimitive.Root;
|
|
7
|
-
const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
8
|
-
const DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
9
|
-
const DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
10
|
-
const DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
11
|
-
const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
12
|
-
|
|
13
|
-
const DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => (
|
|
14
|
-
<DropdownMenuPrimitive.SubTrigger
|
|
15
|
-
ref={ref}
|
|
16
|
-
className={cn(
|
|
17
|
-
'flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent',
|
|
18
|
-
inset && 'pl-8',
|
|
19
|
-
className
|
|
20
|
-
)}
|
|
21
|
-
{...props}
|
|
22
|
-
>
|
|
23
|
-
{children}
|
|
24
|
-
<ChevronRight className="ml-auto h-4 w-4" />
|
|
25
|
-
</DropdownMenuPrimitive.SubTrigger>
|
|
26
|
-
));
|
|
27
|
-
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
28
|
-
|
|
29
|
-
const DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) => (
|
|
30
|
-
<DropdownMenuPrimitive.SubContent
|
|
31
|
-
ref={ref}
|
|
32
|
-
className={cn(
|
|
33
|
-
'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg',
|
|
34
|
-
className
|
|
35
|
-
)}
|
|
36
|
-
{...props}
|
|
37
|
-
/>
|
|
38
|
-
));
|
|
39
|
-
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
40
|
-
|
|
41
|
-
const DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => (
|
|
42
|
-
<DropdownMenuPrimitive.Portal>
|
|
43
|
-
<DropdownMenuPrimitive.Content
|
|
44
|
-
ref={ref}
|
|
45
|
-
sideOffset={sideOffset}
|
|
46
|
-
className={cn(
|
|
47
|
-
'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md',
|
|
48
|
-
className
|
|
49
|
-
)}
|
|
50
|
-
{...props}
|
|
51
|
-
/>
|
|
52
|
-
</DropdownMenuPrimitive.Portal>
|
|
53
|
-
));
|
|
54
|
-
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
55
|
-
|
|
56
|
-
const DropdownMenuItem = React.forwardRef(({ className, inset, ...props }, ref) => (
|
|
57
|
-
<DropdownMenuPrimitive.Item
|
|
58
|
-
ref={ref}
|
|
59
|
-
className={cn(
|
|
60
|
-
'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
|
|
61
|
-
inset && 'pl-8',
|
|
62
|
-
className
|
|
63
|
-
)}
|
|
64
|
-
{...props}
|
|
65
|
-
/>
|
|
66
|
-
));
|
|
67
|
-
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
68
|
-
|
|
69
|
-
const DropdownMenuCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => (
|
|
70
|
-
<DropdownMenuPrimitive.CheckboxItem
|
|
71
|
-
ref={ref}
|
|
72
|
-
className={cn(
|
|
73
|
-
'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
|
|
74
|
-
className
|
|
75
|
-
)}
|
|
76
|
-
checked={checked}
|
|
77
|
-
{...props}
|
|
78
|
-
>
|
|
79
|
-
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
|
80
|
-
<DropdownMenuPrimitive.ItemIndicator>
|
|
81
|
-
<Check className="h-4 w-4" />
|
|
82
|
-
</DropdownMenuPrimitive.ItemIndicator>
|
|
83
|
-
</span>
|
|
84
|
-
{children}
|
|
85
|
-
</DropdownMenuPrimitive.CheckboxItem>
|
|
86
|
-
));
|
|
87
|
-
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
88
|
-
|
|
89
|
-
const DropdownMenuRadioItem = React.forwardRef(({ className, children, ...props }, ref) => (
|
|
90
|
-
<DropdownMenuPrimitive.RadioItem
|
|
91
|
-
ref={ref}
|
|
92
|
-
className={cn(
|
|
93
|
-
'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
|
|
94
|
-
className
|
|
95
|
-
)}
|
|
96
|
-
{...props}
|
|
97
|
-
>
|
|
98
|
-
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
|
99
|
-
<DropdownMenuPrimitive.ItemIndicator>
|
|
100
|
-
<Circle className="h-2 w-2 fill-current" />
|
|
101
|
-
</DropdownMenuPrimitive.ItemIndicator>
|
|
102
|
-
</span>
|
|
103
|
-
{children}
|
|
104
|
-
</DropdownMenuPrimitive.RadioItem>
|
|
105
|
-
));
|
|
106
|
-
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
107
|
-
|
|
108
|
-
const DropdownMenuLabel = React.forwardRef(({ className, inset, ...props }, ref) => (
|
|
109
|
-
<DropdownMenuPrimitive.Label
|
|
110
|
-
ref={ref}
|
|
111
|
-
className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}
|
|
112
|
-
{...props}
|
|
113
|
-
/>
|
|
114
|
-
));
|
|
115
|
-
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
116
|
-
|
|
117
|
-
const DropdownMenuSeparator = React.forwardRef(({ className, ...props }, ref) => (
|
|
118
|
-
<DropdownMenuPrimitive.Separator ref={ref} className={cn('-mx-1 my-1 h-px bg-muted', className)} {...props} />
|
|
119
|
-
));
|
|
120
|
-
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
121
|
-
|
|
122
|
-
const DropdownMenuShortcut = ({ className, ...props }) => {
|
|
123
|
-
return <span className={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...props} />;
|
|
124
|
-
};
|
|
125
|
-
DropdownMenuShortcut.displayName = 'DropdownMenuShortcut';
|
|
126
|
-
|
|
127
|
-
export {
|
|
128
|
-
DropdownMenu,
|
|
129
|
-
DropdownMenuTrigger,
|
|
130
|
-
DropdownMenuContent,
|
|
131
|
-
DropdownMenuItem,
|
|
132
|
-
DropdownMenuCheckboxItem,
|
|
133
|
-
DropdownMenuRadioItem,
|
|
134
|
-
DropdownMenuLabel,
|
|
135
|
-
DropdownMenuSeparator,
|
|
136
|
-
DropdownMenuShortcut,
|
|
137
|
-
DropdownMenuGroup,
|
|
138
|
-
DropdownMenuPortal,
|
|
139
|
-
DropdownMenuSub,
|
|
140
|
-
DropdownMenuSubContent,
|
|
141
|
-
DropdownMenuSubTrigger,
|
|
142
|
-
DropdownMenuRadioGroup,
|
|
143
|
-
};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Slot } from '@radix-ui/react-slot';
|
|
3
|
-
import { Controller, FormProvider, useFormContext } from 'react-hook-form';
|
|
4
|
-
import { cn } from '@/lib/utils';
|
|
5
|
-
import { Label } from '@/components/ui/label';
|
|
6
|
-
|
|
7
|
-
const Form = FormProvider;
|
|
8
|
-
|
|
9
|
-
const FormFieldContext = React.createContext({});
|
|
10
|
-
|
|
11
|
-
const FormField = ({ name, ...props }) => {
|
|
12
|
-
return (
|
|
13
|
-
<FormFieldContext.Provider value={{ name }}>
|
|
14
|
-
<Controller name={name} {...props} />
|
|
15
|
-
</FormFieldContext.Provider>
|
|
16
|
-
);
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
const useFormField = () => {
|
|
20
|
-
const fieldContext = React.useContext(FormFieldContext);
|
|
21
|
-
const itemContext = React.useContext(FormItemContext);
|
|
22
|
-
const { getFieldState, formState } = useFormContext();
|
|
23
|
-
const fieldState = getFieldState(fieldContext.name, formState);
|
|
24
|
-
if (!fieldContext) throw new Error('useFormField should be used within <FormField>');
|
|
25
|
-
const { id } = itemContext;
|
|
26
|
-
return {
|
|
27
|
-
id,
|
|
28
|
-
name: fieldContext.name,
|
|
29
|
-
formItemId: `${id}-form-item`,
|
|
30
|
-
formDescriptionId: `${id}-form-item-description`,
|
|
31
|
-
formMessageId: `${id}-form-item-message`,
|
|
32
|
-
...fieldState,
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
const FormItemContext = React.createContext({});
|
|
37
|
-
|
|
38
|
-
const FormItem = React.forwardRef(({ className, ...props }, ref) => {
|
|
39
|
-
const id = React.useId();
|
|
40
|
-
return (
|
|
41
|
-
<FormItemContext.Provider value={{ id }}>
|
|
42
|
-
<div ref={ref} className={cn('space-y-2', className)} {...props} />
|
|
43
|
-
</FormItemContext.Provider>
|
|
44
|
-
);
|
|
45
|
-
});
|
|
46
|
-
FormItem.displayName = 'FormItem';
|
|
47
|
-
|
|
48
|
-
const FormLabel = React.forwardRef(({ className, ...props }, ref) => {
|
|
49
|
-
const { error, formItemId } = useFormField();
|
|
50
|
-
return <Label ref={ref} className={cn(error && 'text-destructive', className)} htmlFor={formItemId} {...props} />;
|
|
51
|
-
});
|
|
52
|
-
FormLabel.displayName = 'FormLabel';
|
|
53
|
-
|
|
54
|
-
const FormControl = React.forwardRef(({ ...props }, ref) => {
|
|
55
|
-
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
56
|
-
return (
|
|
57
|
-
<Slot
|
|
58
|
-
ref={ref}
|
|
59
|
-
id={formItemId}
|
|
60
|
-
aria-describedby={!error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`}
|
|
61
|
-
aria-invalid={!!error}
|
|
62
|
-
{...props}
|
|
63
|
-
/>
|
|
64
|
-
);
|
|
65
|
-
});
|
|
66
|
-
FormControl.displayName = 'FormControl';
|
|
67
|
-
|
|
68
|
-
const FormDescription = React.forwardRef(({ className, ...props }, ref) => {
|
|
69
|
-
const { formDescriptionId } = useFormField();
|
|
70
|
-
return (
|
|
71
|
-
<p ref={ref} id={formDescriptionId} className={cn('text-sm text-muted-foreground', className)} {...props} />
|
|
72
|
-
);
|
|
73
|
-
});
|
|
74
|
-
FormDescription.displayName = 'FormDescription';
|
|
75
|
-
|
|
76
|
-
const FormMessage = React.forwardRef(({ className, children, ...props }, ref) => {
|
|
77
|
-
const { error, formMessageId } = useFormField();
|
|
78
|
-
const body = error ? String(error?.message) : children;
|
|
79
|
-
if (!body) return null;
|
|
80
|
-
return (
|
|
81
|
-
<p ref={ref} id={formMessageId} className={cn('text-sm font-medium text-destructive', className)} {...props}>
|
|
82
|
-
{body}
|
|
83
|
-
</p>
|
|
84
|
-
);
|
|
85
|
-
});
|
|
86
|
-
FormMessage.displayName = 'FormMessage';
|
|
87
|
-
|
|
88
|
-
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
3
|
-
import { cn } from '@/lib/utils';
|
|
4
|
-
|
|
5
|
-
const HoverCard = HoverCardPrimitive.Root;
|
|
6
|
-
const HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
7
|
-
|
|
8
|
-
const HoverCardContent = React.forwardRef(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (
|
|
9
|
-
<HoverCardPrimitive.Content
|
|
10
|
-
ref={ref}
|
|
11
|
-
align={align}
|
|
12
|
-
sideOffset={sideOffset}
|
|
13
|
-
className={cn(
|
|
14
|
-
'z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none',
|
|
15
|
-
className
|
|
16
|
-
)}
|
|
17
|
-
{...props}
|
|
18
|
-
/>
|
|
19
|
-
));
|
|
20
|
-
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
21
|
-
|
|
22
|
-
export { HoverCard, HoverCardTrigger, HoverCardContent };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { OTPInput } from 'input-otp';
|
|
3
|
-
import { Dot } from 'lucide-react';
|
|
4
|
-
import { cn } from '@/lib/utils';
|
|
5
|
-
|
|
6
|
-
const InputOTP = React.forwardRef(({ className, containerClassName, maxLength = 6, ...props }, ref) => (
|
|
7
|
-
<OTPInput
|
|
8
|
-
ref={ref}
|
|
9
|
-
maxLength={maxLength}
|
|
10
|
-
containerClassName={cn('flex items-center gap-2 has-[:disabled]:opacity-50', containerClassName)}
|
|
11
|
-
className={cn('disabled:cursor-not-allowed', className)}
|
|
12
|
-
render={({ slots }) => (
|
|
13
|
-
<div className="flex">
|
|
14
|
-
{slots.map((slot, idx) => (
|
|
15
|
-
<div
|
|
16
|
-
key={idx}
|
|
17
|
-
className={cn(
|
|
18
|
-
'relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md',
|
|
19
|
-
slot.isActive && 'z-10 ring-2 ring-ring ring-offset-background'
|
|
20
|
-
)}
|
|
21
|
-
>
|
|
22
|
-
{slot.char ?? slot.placeholderChar}
|
|
23
|
-
{slot.hasFakeCaret && (
|
|
24
|
-
<div className="pointer-events-none absolute inset-0 flex items-center justify-center">
|
|
25
|
-
<div className="h-4 w-px animate-pulse bg-foreground" />
|
|
26
|
-
</div>
|
|
27
|
-
)}
|
|
28
|
-
</div>
|
|
29
|
-
))}
|
|
30
|
-
</div>
|
|
31
|
-
)}
|
|
32
|
-
{...props}
|
|
33
|
-
/>
|
|
34
|
-
));
|
|
35
|
-
InputOTP.displayName = 'InputOTP';
|
|
36
|
-
|
|
37
|
-
const InputOTPGroup = React.forwardRef(({ className, ...props }, ref) => (
|
|
38
|
-
<div ref={ref} className={cn('flex items-center', className)} {...props} />
|
|
39
|
-
));
|
|
40
|
-
InputOTPGroup.displayName = 'InputOTPGroup';
|
|
41
|
-
|
|
42
|
-
const InputOTPSeparator = React.forwardRef(({ ...props }, ref) => (
|
|
43
|
-
<div ref={ref} role="separator" {...props}>
|
|
44
|
-
<Dot />
|
|
45
|
-
</div>
|
|
46
|
-
));
|
|
47
|
-
InputOTPSeparator.displayName = 'InputOTPSeparator';
|
|
48
|
-
|
|
49
|
-
export { InputOTP, InputOTPGroup, InputOTPSeparator };
|