@nomad-e/bluma-cli 0.26.1 → 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 -47918
  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,19 +0,0 @@
1
- import * as React from 'react';
2
- import { cn } from '@/lib/utils';
3
-
4
- const Input = React.forwardRef(({ className, type, ...props }, ref) => {
5
- return (
6
- <input
7
- type={type}
8
- className={cn(
9
- 'flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground 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',
10
- className
11
- )}
12
- ref={ref}
13
- {...props}
14
- />
15
- );
16
- });
17
- Input.displayName = 'Input';
18
-
19
- export { Input };
@@ -1,15 +0,0 @@
1
- import * as React from 'react';
2
- import * as LabelPrimitive from '@radix-ui/react-label';
3
- import { cva } from 'class-variance-authority';
4
- import { cn } from '@/lib/utils';
5
-
6
- const labelVariants = cva(
7
- 'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70'
8
- );
9
-
10
- const Label = React.forwardRef(({ className, ...props }, ref) => (
11
- <LabelPrimitive.Root ref={ref} className={cn(labelVariants(), className)} {...props} />
12
- ));
13
- Label.displayName = LabelPrimitive.Root.displayName;
14
-
15
- export { Label };
@@ -1,161 +0,0 @@
1
- import * as React from 'react';
2
- import * as MenubarPrimitive from '@radix-ui/react-menubar';
3
- import { Check, ChevronRight, Circle } from 'lucide-react';
4
- import { cn } from '@/lib/utils';
5
-
6
- const MenubarMenu = MenubarPrimitive.Menu;
7
- const MenubarGroup = MenubarPrimitive.Group;
8
- const MenubarPortal = MenubarPrimitive.Portal;
9
- const MenubarSub = MenubarPrimitive.Sub;
10
- const MenubarRadioGroup = MenubarPrimitive.RadioGroup;
11
-
12
- const Menubar = React.forwardRef(({ className, ...props }, ref) => (
13
- <MenubarPrimitive.Root
14
- ref={ref}
15
- className={cn('flex h-10 items-center space-x-1 rounded-md border bg-background p-1', className)}
16
- {...props}
17
- />
18
- ));
19
- Menubar.displayName = MenubarPrimitive.Root.displayName;
20
-
21
- const MenubarTrigger = React.forwardRef(({ className, ...props }, ref) => (
22
- <MenubarPrimitive.Trigger
23
- ref={ref}
24
- className={cn(
25
- 'flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',
26
- className
27
- )}
28
- {...props}
29
- />
30
- ));
31
- MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
32
-
33
- const MenubarSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => (
34
- <MenubarPrimitive.SubTrigger
35
- ref={ref}
36
- className={cn(
37
- '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',
38
- inset && 'pl-8',
39
- className
40
- )}
41
- {...props}
42
- >
43
- {children}
44
- <ChevronRight className="ml-auto h-4 w-4" />
45
- </MenubarPrimitive.SubTrigger>
46
- ));
47
- MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
48
-
49
- const MenubarSubContent = React.forwardRef(({ className, ...props }, ref) => (
50
- <MenubarPrimitive.SubContent
51
- ref={ref}
52
- className={cn(
53
- 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg',
54
- className
55
- )}
56
- {...props}
57
- />
58
- ));
59
- MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
60
-
61
- const MenubarContent = React.forwardRef(({ className, align = 'start', alignOffset = -4, sideOffset = 8, ...props }, ref) => (
62
- <MenubarPrimitive.Portal>
63
- <MenubarPrimitive.Content
64
- ref={ref}
65
- align={align}
66
- alignOffset={alignOffset}
67
- sideOffset={sideOffset}
68
- className={cn(
69
- 'z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md',
70
- className
71
- )}
72
- {...props}
73
- />
74
- </MenubarPrimitive.Portal>
75
- ));
76
- MenubarContent.displayName = MenubarPrimitive.Content.displayName;
77
-
78
- const MenubarItem = React.forwardRef(({ className, inset, ...props }, ref) => (
79
- <MenubarPrimitive.Item
80
- ref={ref}
81
- className={cn(
82
- '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',
83
- inset && 'pl-8',
84
- className
85
- )}
86
- {...props}
87
- />
88
- ));
89
- MenubarItem.displayName = MenubarPrimitive.Item.displayName;
90
-
91
- const MenubarCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => (
92
- <MenubarPrimitive.CheckboxItem
93
- ref={ref}
94
- className={cn(
95
- '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',
96
- className
97
- )}
98
- checked={checked}
99
- {...props}
100
- >
101
- <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
102
- <MenubarPrimitive.ItemIndicator>
103
- <Check className="h-4 w-4" />
104
- </MenubarPrimitive.ItemIndicator>
105
- </span>
106
- {children}
107
- </MenubarPrimitive.CheckboxItem>
108
- ));
109
- MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
110
-
111
- const MenubarRadioItem = React.forwardRef(({ className, children, ...props }, ref) => (
112
- <MenubarPrimitive.RadioItem
113
- ref={ref}
114
- className={cn(
115
- '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',
116
- className
117
- )}
118
- {...props}
119
- >
120
- <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
121
- <MenubarPrimitive.ItemIndicator>
122
- <Circle className="h-2 w-2 fill-current" />
123
- </MenubarPrimitive.ItemIndicator>
124
- </span>
125
- {children}
126
- </MenubarPrimitive.RadioItem>
127
- ));
128
- MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
129
-
130
- const MenubarLabel = React.forwardRef(({ className, inset, ...props }, ref) => (
131
- <MenubarPrimitive.Label ref={ref} className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)} {...props} />
132
- ));
133
- MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
134
-
135
- const MenubarSeparator = React.forwardRef(({ className, ...props }, ref) => (
136
- <MenubarPrimitive.Separator ref={ref} className={cn('-mx-1 my-1 h-px bg-muted', className)} {...props} />
137
- ));
138
- MenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;
139
-
140
- const MenubarShortcut = ({ className, ...props }) => {
141
- return <span className={cn('ml-auto text-xs tracking-widest text-muted-foreground', className)} {...props} />;
142
- };
143
-
144
- export {
145
- Menubar,
146
- MenubarMenu,
147
- MenubarTrigger,
148
- MenubarContent,
149
- MenubarItem,
150
- MenubarSeparator,
151
- MenubarLabel,
152
- MenubarCheckboxItem,
153
- MenubarRadioGroup,
154
- MenubarRadioItem,
155
- MenubarPortal,
156
- MenubarSubContent,
157
- MenubarSubTrigger,
158
- MenubarGroup,
159
- MenubarSub,
160
- MenubarShortcut,
161
- };
@@ -1,95 +0,0 @@
1
- import * as React from 'react';
2
- import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
3
- import { cva } from 'class-variance-authority';
4
- import { ChevronDown } from 'lucide-react';
5
- import { cn } from '@/lib/utils';
6
-
7
- const NavigationMenu = React.forwardRef(({ className, children, ...props }, ref) => (
8
- <NavigationMenuPrimitive.Root
9
- ref={ref}
10
- className={cn('relative z-10 flex max-w-max flex-1 items-center justify-center', className)}
11
- {...props}
12
- >
13
- {children}
14
- <NavigationMenuViewport />
15
- </NavigationMenuPrimitive.Root>
16
- ));
17
- NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
18
-
19
- const NavigationMenuList = React.forwardRef(({ className, ...props }, ref) => (
20
- <NavigationMenuPrimitive.List
21
- ref={ref}
22
- className={cn('group flex flex-1 list-none items-center justify-center space-x-1', className)}
23
- {...props}
24
- />
25
- ));
26
- NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
27
-
28
- const NavigationMenuItem = NavigationMenuPrimitive.Item;
29
-
30
- const navigationMenuTriggerStyle = cva(
31
- 'group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50'
32
- );
33
-
34
- const NavigationMenuTrigger = React.forwardRef(({ className, children, ...props }, ref) => (
35
- <NavigationMenuPrimitive.Trigger
36
- ref={ref}
37
- className={cn(navigationMenuTriggerStyle(), 'group', className)}
38
- {...props}
39
- >
40
- {children}{' '}
41
- <ChevronDown
42
- className="relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180"
43
- aria-hidden="true"
44
- />
45
- </NavigationMenuPrimitive.Trigger>
46
- ));
47
- NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
48
-
49
- const NavigationMenuContent = React.forwardRef(({ className, ...props }, ref) => (
50
- <NavigationMenuPrimitive.Content
51
- ref={ref}
52
- className={cn('left-0 top-0 w-full p-2 md:absolute md:w-auto', className)}
53
- {...props}
54
- />
55
- ));
56
- NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
57
-
58
- const NavigationMenuLink = NavigationMenuPrimitive.Link;
59
-
60
- const NavigationMenuViewport = React.forwardRef(({ className, ...props }, ref) => (
61
- <div className={cn('absolute left-0 top-full flex justify-center')}>
62
- <NavigationMenuPrimitive.Viewport
63
- className={cn(
64
- 'origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg md:w-[var(--radix-navigation-menu-viewport-width)]',
65
- className
66
- )}
67
- ref={ref}
68
- {...props}
69
- />
70
- </div>
71
- ));
72
- NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
73
-
74
- const NavigationMenuIndicator = React.forwardRef(({ className, ...props }, ref) => (
75
- <NavigationMenuPrimitive.Indicator
76
- ref={ref}
77
- className={cn('top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden', className)}
78
- {...props}
79
- >
80
- <div className="relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" />
81
- </NavigationMenuPrimitive.Indicator>
82
- ));
83
- NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
84
-
85
- export {
86
- navigationMenuTriggerStyle,
87
- NavigationMenu,
88
- NavigationMenuList,
89
- NavigationMenuItem,
90
- NavigationMenuContent,
91
- NavigationMenuTrigger,
92
- NavigationMenuLink,
93
- NavigationMenuIndicator,
94
- NavigationMenuViewport,
95
- };
@@ -1,77 +0,0 @@
1
- import * as React from 'react';
2
- import { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react';
3
- import { cn } from '@/lib/utils';
4
- import { buttonVariants } from '@/components/ui/button';
5
-
6
- const Pagination = ({ className, ...props }) => (
7
- <nav
8
- role="navigation"
9
- aria-label="pagination"
10
- className={cn('mx-auto flex w-full justify-center', className)}
11
- {...props}
12
- />
13
- );
14
- Pagination.displayName = 'Pagination';
15
-
16
- const PaginationContent = React.forwardRef(({ className, ...props }, ref) => (
17
- <ul ref={ref} className={cn('flex flex-row items-center gap-1', className)} {...props} />
18
- ));
19
- PaginationContent.displayName = 'PaginationContent';
20
-
21
- const PaginationItem = React.forwardRef(({ className, ...props }, ref) => (
22
- <li ref={ref} className={cn('', className)} {...props} />
23
- ));
24
- PaginationItem.displayName = 'PaginationItem';
25
-
26
- const PaginationLink = ({ className, isActive, size = 'icon', ...props }) => (
27
- <a
28
- aria-current={isActive ? 'page' : undefined}
29
- className={cn(
30
- buttonVariants({
31
- variant: isActive ? 'outline' : 'ghost',
32
- size,
33
- }),
34
- className
35
- )}
36
- {...props}
37
- />
38
- );
39
- PaginationLink.displayName = 'PaginationLink';
40
-
41
- const PaginationPrevious = ({ className, ...props }) => (
42
- <PaginationLink aria-label="Go to previous page" size="default" className={cn('gap-1 pl-2.5', className)} {...props}>
43
- <ChevronLeft className="h-4 w-4" />
44
- <span>Previous</span>
45
- </PaginationLink>
46
- );
47
- PaginationPrevious.displayName = 'PaginationPrevious';
48
-
49
- const PaginationNext = ({ className, ...props }) => (
50
- <PaginationLink aria-label="Go to next page" size="default" className={cn('gap-1 pr-2.5', className)} {...props}>
51
- <span>Next</span>
52
- <ChevronRight className="h-4 w-4" />
53
- </PaginationLink>
54
- );
55
- PaginationNext.displayName = 'PaginationNext';
56
-
57
- const PaginationEllipsis = ({ className, ...props }) => (
58
- <span
59
- aria-hidden
60
- className={cn('flex h-9 w-9 items-center justify-center', className)}
61
- {...props}
62
- >
63
- <MoreHorizontal className="h-4 w-4" />
64
- <span className="sr-only">More pages</span>
65
- </span>
66
- );
67
- PaginationEllipsis.displayName = 'PaginationEllipsis';
68
-
69
- export {
70
- Pagination,
71
- PaginationContent,
72
- PaginationEllipsis,
73
- PaginationItem,
74
- PaginationLink,
75
- PaginationNext,
76
- PaginationPrevious,
77
- };
@@ -1,25 +0,0 @@
1
- import * as React from 'react';
2
- import * as PopoverPrimitive from '@radix-ui/react-popover';
3
- import { cn } from '@/lib/utils';
4
-
5
- const Popover = PopoverPrimitive.Root;
6
- const PopoverTrigger = PopoverPrimitive.Trigger;
7
- const PopoverAnchor = PopoverPrimitive.Anchor;
8
-
9
- const PopoverContent = React.forwardRef(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (
10
- <PopoverPrimitive.Portal>
11
- <PopoverPrimitive.Content
12
- ref={ref}
13
- align={align}
14
- sideOffset={sideOffset}
15
- className={cn(
16
- 'z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none',
17
- className
18
- )}
19
- {...props}
20
- />
21
- </PopoverPrimitive.Portal>
22
- ));
23
- PopoverContent.displayName = PopoverPrimitive.Content.displayName;
24
-
25
- export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
@@ -1,19 +0,0 @@
1
- import * as React from 'react';
2
- import * as ProgressPrimitive from '@radix-ui/react-progress';
3
- import { cn } from '@/lib/utils';
4
-
5
- const Progress = React.forwardRef(({ className, value, ...props }, ref) => (
6
- <ProgressPrimitive.Root
7
- ref={ref}
8
- className={cn('relative h-4 w-full overflow-hidden rounded-full bg-secondary', className)}
9
- {...props}
10
- >
11
- <ProgressPrimitive.Indicator
12
- className="h-full w-full flex-1 bg-primary transition-all"
13
- style={{ transform: `translateX(-${100 - (value || 0)}%)` }}
14
- />
15
- </ProgressPrimitive.Root>
16
- ));
17
- Progress.displayName = ProgressPrimitive.Root.displayName;
18
-
19
- export { Progress };
@@ -1,29 +0,0 @@
1
- import * as React from 'react';
2
- import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
3
- import { Circle } from 'lucide-react';
4
- import { cn } from '@/lib/utils';
5
-
6
- const RadioGroup = React.forwardRef(({ className, ...props }, ref) => {
7
- return <RadioGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} ref={ref} />;
8
- });
9
- RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
10
-
11
- const RadioGroupItem = React.forwardRef(({ className, ...props }, ref) => {
12
- return (
13
- <RadioGroupPrimitive.Item
14
- ref={ref}
15
- className={cn(
16
- 'aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
17
- className
18
- )}
19
- {...props}
20
- >
21
- <RadioGroupPrimitive.Indicator className="flex items-center justify-center">
22
- <Circle className="h-2.5 w-2.5 fill-current text-current" />
23
- </RadioGroupPrimitive.Indicator>
24
- </RadioGroupPrimitive.Item>
25
- );
26
- });
27
- RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
28
-
29
- export { RadioGroup, RadioGroupItem };
@@ -1,27 +0,0 @@
1
- import { GripVertical } from 'lucide-react';
2
- import { Group, Panel, Separator } from 'react-resizable-panels';
3
- import { cn } from '@/lib/utils';
4
-
5
- const ResizablePanelGroup = ({ className, ...props }) => (
6
- <Group className={cn('h-full w-full', className)} {...props} />
7
- );
8
-
9
- const ResizablePanel = Panel;
10
-
11
- const ResizableHandle = ({ withHandle, className, ...props }) => (
12
- <Separator
13
- className={cn(
14
- 'relative flex w-px shrink-0 items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1',
15
- className
16
- )}
17
- {...props}
18
- >
19
- {withHandle && (
20
- <div className="z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border">
21
- <GripVertical className="h-2.5 w-2.5" />
22
- </div>
23
- )}
24
- </Separator>
25
- );
26
-
27
- export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
@@ -1,31 +0,0 @@
1
- import * as React from 'react';
2
- import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
3
- import { cn } from '@/lib/utils';
4
-
5
- const ScrollArea = React.forwardRef(({ className, children, ...props }, ref) => (
6
- <ScrollAreaPrimitive.Root ref={ref} className={cn('relative overflow-hidden', className)} {...props}>
7
- <ScrollAreaPrimitive.Viewport className="h-full w-full rounded-[inherit]">{children}</ScrollAreaPrimitive.Viewport>
8
- <ScrollBar />
9
- <ScrollAreaPrimitive.Corner />
10
- </ScrollAreaPrimitive.Root>
11
- ));
12
- ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
13
-
14
- const ScrollBar = React.forwardRef(({ className, orientation = 'vertical', ...props }, ref) => (
15
- <ScrollAreaPrimitive.ScrollAreaScrollbar
16
- ref={ref}
17
- orientation={orientation}
18
- className={cn(
19
- 'flex touch-none select-none transition-colors',
20
- orientation === 'vertical' && 'h-full w-2.5 border-l border-l-transparent p-[1px]',
21
- orientation === 'horizontal' && 'h-2.5 flex-col border-t border-t-transparent p-[1px]',
22
- className
23
- )}
24
- {...props}
25
- >
26
- <ScrollAreaPrimitive.ScrollAreaThumb className="relative flex-1 rounded-full bg-border" />
27
- </ScrollAreaPrimitive.ScrollAreaScrollbar>
28
- ));
29
- ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
30
-
31
- export { ScrollArea, ScrollBar };
@@ -1,117 +0,0 @@
1
- import * as React from 'react';
2
- import * as SelectPrimitive from '@radix-ui/react-select';
3
- import { Check, ChevronDown, ChevronUp } from 'lucide-react';
4
- import { cn } from '@/lib/utils';
5
-
6
- const Select = SelectPrimitive.Root;
7
- const SelectGroup = SelectPrimitive.Group;
8
- const SelectValue = SelectPrimitive.Value;
9
-
10
- const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => (
11
- <SelectPrimitive.Trigger
12
- ref={ref}
13
- className={cn(
14
- 'flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1',
15
- className
16
- )}
17
- {...props}
18
- >
19
- {children}
20
- <SelectPrimitive.Icon asChild>
21
- <ChevronDown className="h-4 w-4 opacity-50" />
22
- </SelectPrimitive.Icon>
23
- </SelectPrimitive.Trigger>
24
- ));
25
- SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
26
-
27
- const SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) => (
28
- <SelectPrimitive.ScrollUpButton
29
- ref={ref}
30
- className={cn('flex cursor-default items-center justify-center py-1', className)}
31
- {...props}
32
- >
33
- <ChevronUp className="h-4 w-4" />
34
- </SelectPrimitive.ScrollUpButton>
35
- ));
36
- SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
37
-
38
- const SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) => (
39
- <SelectPrimitive.ScrollDownButton
40
- ref={ref}
41
- className={cn('flex cursor-default items-center justify-center py-1', className)}
42
- {...props}
43
- >
44
- <ChevronDown className="h-4 w-4" />
45
- </SelectPrimitive.ScrollDownButton>
46
- ));
47
- SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
48
-
49
- const SelectContent = React.forwardRef(({ className, children, position = 'popper', ...props }, ref) => (
50
- <SelectPrimitive.Portal>
51
- <SelectPrimitive.Content
52
- ref={ref}
53
- className={cn(
54
- 'relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md',
55
- position === 'popper' &&
56
- 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',
57
- className
58
- )}
59
- position={position}
60
- {...props}
61
- >
62
- <SelectScrollUpButton />
63
- <SelectPrimitive.Viewport
64
- className={cn(
65
- position === 'popper' &&
66
- 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] p-1'
67
- )}
68
- >
69
- {children}
70
- </SelectPrimitive.Viewport>
71
- <SelectScrollDownButton />
72
- </SelectPrimitive.Content>
73
- </SelectPrimitive.Portal>
74
- ));
75
- SelectContent.displayName = SelectPrimitive.Content.displayName;
76
-
77
- const SelectLabel = React.forwardRef(({ className, ...props }, ref) => (
78
- <SelectPrimitive.Label ref={ref} className={cn('py-1.5 pl-8 pr-2 text-sm font-semibold', className)} {...props} />
79
- ));
80
- SelectLabel.displayName = SelectPrimitive.Label.displayName;
81
-
82
- const SelectItem = React.forwardRef(({ className, children, ...props }, ref) => (
83
- <SelectPrimitive.Item
84
- ref={ref}
85
- className={cn(
86
- 'relative flex w-full 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',
87
- className
88
- )}
89
- {...props}
90
- >
91
- <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
92
- <SelectPrimitive.ItemIndicator>
93
- <Check className="h-4 w-4" />
94
- </SelectPrimitive.ItemIndicator>
95
- </span>
96
- <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
97
- </SelectPrimitive.Item>
98
- ));
99
- SelectItem.displayName = SelectPrimitive.Item.displayName;
100
-
101
- const SelectSeparator = React.forwardRef(({ className, ...props }, ref) => (
102
- <SelectPrimitive.Separator ref={ref} className={cn('-mx-1 my-1 h-px bg-muted', className)} {...props} />
103
- ));
104
- SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
105
-
106
- export {
107
- Select,
108
- SelectGroup,
109
- SelectValue,
110
- SelectTrigger,
111
- SelectContent,
112
- SelectLabel,
113
- SelectItem,
114
- SelectSeparator,
115
- SelectScrollUpButton,
116
- SelectScrollDownButton,
117
- };
@@ -1,22 +0,0 @@
1
- import * as React from 'react';
2
- import * as SeparatorPrimitive from '@radix-ui/react-separator';
3
- import { cn } from '@/lib/utils';
4
-
5
- const Separator = React.forwardRef(
6
- ({ className, orientation = 'horizontal', decorative = true, ...props }, ref) => (
7
- <SeparatorPrimitive.Root
8
- ref={ref}
9
- decorative={decorative}
10
- orientation={orientation}
11
- className={cn(
12
- 'shrink-0 bg-border',
13
- orientation === 'horizontal' ? 'h-[1px] w-full' : 'h-full w-[1px]',
14
- className
15
- )}
16
- {...props}
17
- />
18
- )
19
- );
20
- Separator.displayName = SeparatorPrimitive.Root.displayName;
21
-
22
- export { Separator };