@ardly/bunext 1.0.6 → 1.0.7

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 (119) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +33 -16
  3. package/cli.mjs +126 -0
  4. package/package.json +14 -58
  5. package/.eslintrc.json +0 -8
  6. package/.prettierignore +0 -4
  7. package/STRUCTURE.md +0 -77
  8. package/bin/cli.mjs +0 -126
  9. package/components.json +0 -21
  10. package/next.config.ts +0 -22
  11. package/postcss.config.mjs +0 -8
  12. package/prettier.config.js +0 -7
  13. package/public/android-chrome-192x192.png +0 -0
  14. package/public/android-chrome-512x512.png +0 -0
  15. package/public/favicon.svg +0 -1
  16. package/public/loading-dots.gif +0 -0
  17. package/public/logo.svg +0 -1
  18. package/public/ogImage.webp +0 -0
  19. package/public/site.webmanifest +0 -19
  20. package/src/actions/placeholder.ts +0 -30
  21. package/src/actions/sampleAction.ts +0 -39
  22. package/src/app/(index)/intr/TestCard.tsx +0 -31
  23. package/src/app/(index)/intr/page.tsx +0 -17
  24. package/src/app/(index)/page.tsx +0 -156
  25. package/src/app/(index)/pagetr/page.tsx +0 -37
  26. package/src/app/error-wrapper.tsx +0 -32
  27. package/src/app/global-error.tsx +0 -53
  28. package/src/app/layout.tsx +0 -56
  29. package/src/app/loading.tsx +0 -11
  30. package/src/app/not-found.tsx +0 -45
  31. package/src/app/sitemap.ts +0 -14
  32. package/src/components/Providers/root-provider.tsx +0 -22
  33. package/src/components/Providers/theme-provider.tsx +0 -27
  34. package/src/components/TestComp.tsx +0 -11
  35. package/src/components/brand.tsx +0 -35
  36. package/src/components/navigation/footer.tsx +0 -32
  37. package/src/components/navigation/main-nav.tsx +0 -55
  38. package/src/components/navigation/mobile-nav.tsx +0 -154
  39. package/src/components/navigation/site-header.tsx +0 -67
  40. package/src/components/ui/avatar.tsx +0 -50
  41. package/src/components/ui/badge.tsx +0 -36
  42. package/src/components/ui/button.tsx +0 -56
  43. package/src/components/ui/card.tsx +0 -79
  44. package/src/components/ui/command.tsx +0 -153
  45. package/src/components/ui/dialog.tsx +0 -122
  46. package/src/components/ui/drawer.tsx +0 -118
  47. package/src/components/ui/dropdown-menu.tsx +0 -200
  48. package/src/components/ui/input.tsx +0 -22
  49. package/src/components/ui/label.tsx +0 -26
  50. package/src/components/ui/multi-select.tsx +0 -380
  51. package/src/components/ui/origin/multiselect.tsx +0 -645
  52. package/src/components/ui/popover.tsx +0 -31
  53. package/src/components/ui/radio-group.tsx +0 -44
  54. package/src/components/ui/separator.tsx +0 -31
  55. package/src/components/ui/skeleton.tsx +0 -15
  56. package/src/components/ui/themeSelector.tsx +0 -157
  57. package/src/components/ui/toast.tsx +0 -129
  58. package/src/components/ui/toaster.tsx +0 -31
  59. package/src/components/ui/tooltip.tsx +0 -39
  60. package/src/components/utils/ConditionalLink.tsx +0 -46
  61. package/src/components/utils/Image.tsx +0 -57
  62. package/src/components/utils/Img.tsx +0 -104
  63. package/src/components/utils/Spinner.tsx +0 -29
  64. package/src/components/utils/TopButton.tsx +0 -67
  65. package/src/components/utils/TransitionLink.tsx +0 -67
  66. package/src/components/utils/copy.tsx +0 -98
  67. package/src/components/utils/featureFlag.tsx +0 -22
  68. package/src/components/utils/icons.tsx +0 -155
  69. package/src/components/utils/share-modal.tsx +0 -159
  70. package/src/hooks/use-intersection.ts +0 -52
  71. package/src/hooks/use-lazy-load.ts +0 -33
  72. package/src/hooks/use-meta-color.ts +0 -25
  73. package/src/hooks/use-toast.ts +0 -191
  74. package/src/lib/config/featureflags.ts +0 -63
  75. package/src/lib/config/siteConfig.ts +0 -172
  76. package/src/lib/config/user.ts +0 -9
  77. package/src/lib/data/footer-data.ts +0 -85
  78. package/src/lib/data/nav-data.ts +0 -30
  79. package/src/lib/data/siteData.ts +0 -52
  80. package/src/lib/utils/index.ts +0 -190
  81. package/src/styles/customGlobal.css +0 -141
  82. package/src/styles/globals.css +0 -72
  83. package/src/styles/tailwind/base.ts +0 -46
  84. package/src/styles/tailwind/fonts/ClashDisplay-Bold.eot +0 -0
  85. package/src/styles/tailwind/fonts/ClashDisplay-Bold.ttf +0 -0
  86. package/src/styles/tailwind/fonts/ClashDisplay-Bold.woff +0 -0
  87. package/src/styles/tailwind/fonts/ClashDisplay-Bold.woff2 +0 -0
  88. package/src/styles/tailwind/fonts/ClashDisplay-Extralight.eot +0 -0
  89. package/src/styles/tailwind/fonts/ClashDisplay-Extralight.ttf +0 -0
  90. package/src/styles/tailwind/fonts/ClashDisplay-Extralight.woff +0 -0
  91. package/src/styles/tailwind/fonts/ClashDisplay-Extralight.woff2 +0 -0
  92. package/src/styles/tailwind/fonts/ClashDisplay-Light.eot +0 -0
  93. package/src/styles/tailwind/fonts/ClashDisplay-Light.ttf +0 -0
  94. package/src/styles/tailwind/fonts/ClashDisplay-Light.woff +0 -0
  95. package/src/styles/tailwind/fonts/ClashDisplay-Light.woff2 +0 -0
  96. package/src/styles/tailwind/fonts/ClashDisplay-Medium.eot +0 -0
  97. package/src/styles/tailwind/fonts/ClashDisplay-Medium.ttf +0 -0
  98. package/src/styles/tailwind/fonts/ClashDisplay-Medium.woff +0 -0
  99. package/src/styles/tailwind/fonts/ClashDisplay-Medium.woff2 +0 -0
  100. package/src/styles/tailwind/fonts/ClashDisplay-Regular.eot +0 -0
  101. package/src/styles/tailwind/fonts/ClashDisplay-Regular.ttf +0 -0
  102. package/src/styles/tailwind/fonts/ClashDisplay-Regular.woff +0 -0
  103. package/src/styles/tailwind/fonts/ClashDisplay-Regular.woff2 +0 -0
  104. package/src/styles/tailwind/fonts/ClashDisplay-Semibold.eot +0 -0
  105. package/src/styles/tailwind/fonts/ClashDisplay-Semibold.ttf +0 -0
  106. package/src/styles/tailwind/fonts/ClashDisplay-Semibold.woff +0 -0
  107. package/src/styles/tailwind/fonts/ClashDisplay-Semibold.woff2 +0 -0
  108. package/src/styles/tailwind/fonts/ClashDisplay-Variable.eot +0 -0
  109. package/src/styles/tailwind/fonts/ClashDisplay-Variable.ttf +0 -0
  110. package/src/styles/tailwind/fonts/ClashDisplay-Variable.woff +0 -0
  111. package/src/styles/tailwind/fonts/ClashDisplay-Variable.woff2 +0 -0
  112. package/src/styles/tailwind/fonts/GeistMonoVF.woff +0 -0
  113. package/src/styles/tailwind/fonts/GeistVF.woff +0 -0
  114. package/src/styles/tailwind/fonts.ts +0 -51
  115. package/src/styles/tailwind/tailwindUtils.ts +0 -29
  116. package/src/types/index.ts +0 -80
  117. package/tailwind.config.ts +0 -104
  118. package/tsconfig.json +0 -28
  119. package/vercel.json +0 -6
@@ -1,122 +0,0 @@
1
- 'use client'
2
-
3
- import * as React from 'react'
4
- import * as DialogPrimitive from '@radix-ui/react-dialog'
5
- import { X } from 'lucide-react'
6
-
7
- import { cn } from '@/lib/utils'
8
-
9
- const Dialog = DialogPrimitive.Root
10
-
11
- const DialogTrigger = DialogPrimitive.Trigger
12
-
13
- const DialogPortal = DialogPrimitive.Portal
14
-
15
- const DialogClose = DialogPrimitive.Close
16
-
17
- const DialogOverlay = React.forwardRef<
18
- React.ElementRef<typeof DialogPrimitive.Overlay>,
19
- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>
20
- >(({ className, ...props }, ref) => (
21
- <DialogPrimitive.Overlay
22
- ref={ref}
23
- className={cn(
24
- 'fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
25
- className
26
- )}
27
- {...props}
28
- />
29
- ))
30
- DialogOverlay.displayName = DialogPrimitive.Overlay.displayName
31
-
32
- const DialogContent = React.forwardRef<
33
- React.ElementRef<typeof DialogPrimitive.Content>,
34
- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>
35
- >(({ className, children, ...props }, ref) => (
36
- <DialogPortal>
37
- <DialogOverlay />
38
- <DialogPrimitive.Content
39
- ref={ref}
40
- className={cn(
41
- 'fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg',
42
- className
43
- )}
44
- {...props}
45
- >
46
- {children}
47
- <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">
48
- <X className="h-4 w-4" />
49
- <span className="sr-only">Close</span>
50
- </DialogPrimitive.Close>
51
- </DialogPrimitive.Content>
52
- </DialogPortal>
53
- ))
54
- DialogContent.displayName = DialogPrimitive.Content.displayName
55
-
56
- const DialogHeader = ({
57
- className,
58
- ...props
59
- }: React.HTMLAttributes<HTMLDivElement>) => (
60
- <div
61
- className={cn(
62
- 'flex flex-col space-y-1.5 text-center sm:text-left',
63
- className
64
- )}
65
- {...props}
66
- />
67
- )
68
- DialogHeader.displayName = 'DialogHeader'
69
-
70
- const DialogFooter = ({
71
- className,
72
- ...props
73
- }: React.HTMLAttributes<HTMLDivElement>) => (
74
- <div
75
- className={cn(
76
- 'flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2',
77
- className
78
- )}
79
- {...props}
80
- />
81
- )
82
- DialogFooter.displayName = 'DialogFooter'
83
-
84
- const DialogTitle = React.forwardRef<
85
- React.ElementRef<typeof DialogPrimitive.Title>,
86
- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>
87
- >(({ className, ...props }, ref) => (
88
- <DialogPrimitive.Title
89
- ref={ref}
90
- className={cn(
91
- 'text-lg font-semibold leading-none tracking-tight',
92
- className
93
- )}
94
- {...props}
95
- />
96
- ))
97
- DialogTitle.displayName = DialogPrimitive.Title.displayName
98
-
99
- const DialogDescription = React.forwardRef<
100
- React.ElementRef<typeof DialogPrimitive.Description>,
101
- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>
102
- >(({ className, ...props }, ref) => (
103
- <DialogPrimitive.Description
104
- ref={ref}
105
- className={cn('text-sm text-muted-foreground', className)}
106
- {...props}
107
- />
108
- ))
109
- DialogDescription.displayName = DialogPrimitive.Description.displayName
110
-
111
- export {
112
- Dialog,
113
- DialogPortal,
114
- DialogOverlay,
115
- DialogClose,
116
- DialogTrigger,
117
- DialogContent,
118
- DialogHeader,
119
- DialogFooter,
120
- DialogTitle,
121
- DialogDescription,
122
- }
@@ -1,118 +0,0 @@
1
- 'use client'
2
-
3
- import * as React from 'react'
4
- import { Drawer as DrawerPrimitive } from 'vaul'
5
-
6
- import { cn } from '@/lib/utils'
7
-
8
- const Drawer = ({
9
- shouldScaleBackground = true,
10
- ...props
11
- }: React.ComponentProps<typeof DrawerPrimitive.Root>) => (
12
- <DrawerPrimitive.Root
13
- shouldScaleBackground={shouldScaleBackground}
14
- {...props}
15
- />
16
- )
17
- Drawer.displayName = 'Drawer'
18
-
19
- const DrawerTrigger = DrawerPrimitive.Trigger
20
-
21
- const DrawerPortal = DrawerPrimitive.Portal
22
-
23
- const DrawerClose = DrawerPrimitive.Close
24
-
25
- const DrawerOverlay = React.forwardRef<
26
- React.ElementRef<typeof DrawerPrimitive.Overlay>,
27
- React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>
28
- >(({ className, ...props }, ref) => (
29
- <DrawerPrimitive.Overlay
30
- ref={ref}
31
- className={cn('fixed inset-0 z-50 bg-black/80', className)}
32
- {...props}
33
- />
34
- ))
35
- DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName
36
-
37
- const DrawerContent = React.forwardRef<
38
- React.ElementRef<typeof DrawerPrimitive.Content>,
39
- React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content>
40
- >(({ className, children, ...props }, ref) => (
41
- <DrawerPortal>
42
- <DrawerOverlay />
43
- <DrawerPrimitive.Content
44
- ref={ref}
45
- className={cn(
46
- 'fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background',
47
- className
48
- )}
49
- {...props}
50
- >
51
- <div className="mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" />
52
- {children}
53
- </DrawerPrimitive.Content>
54
- </DrawerPortal>
55
- ))
56
- DrawerContent.displayName = 'DrawerContent'
57
-
58
- const DrawerHeader = ({
59
- className,
60
- ...props
61
- }: React.HTMLAttributes<HTMLDivElement>) => (
62
- <div
63
- className={cn('grid gap-1.5 p-4 text-center sm:text-left', className)}
64
- {...props}
65
- />
66
- )
67
- DrawerHeader.displayName = 'DrawerHeader'
68
-
69
- const DrawerFooter = ({
70
- className,
71
- ...props
72
- }: React.HTMLAttributes<HTMLDivElement>) => (
73
- <div
74
- className={cn('mt-auto flex flex-col gap-2 p-4', className)}
75
- {...props}
76
- />
77
- )
78
- DrawerFooter.displayName = 'DrawerFooter'
79
-
80
- const DrawerTitle = React.forwardRef<
81
- React.ElementRef<typeof DrawerPrimitive.Title>,
82
- React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title>
83
- >(({ className, ...props }, ref) => (
84
- <DrawerPrimitive.Title
85
- ref={ref}
86
- className={cn(
87
- 'text-lg font-semibold leading-none tracking-tight',
88
- className
89
- )}
90
- {...props}
91
- />
92
- ))
93
- DrawerTitle.displayName = DrawerPrimitive.Title.displayName
94
-
95
- const DrawerDescription = React.forwardRef<
96
- React.ElementRef<typeof DrawerPrimitive.Description>,
97
- React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description>
98
- >(({ className, ...props }, ref) => (
99
- <DrawerPrimitive.Description
100
- ref={ref}
101
- className={cn('text-sm text-muted-foreground', className)}
102
- {...props}
103
- />
104
- ))
105
- DrawerDescription.displayName = DrawerPrimitive.Description.displayName
106
-
107
- export {
108
- Drawer,
109
- DrawerPortal,
110
- DrawerOverlay,
111
- DrawerTrigger,
112
- DrawerClose,
113
- DrawerContent,
114
- DrawerHeader,
115
- DrawerFooter,
116
- DrawerTitle,
117
- DrawerDescription,
118
- }
@@ -1,200 +0,0 @@
1
- 'use client'
2
-
3
- import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'
4
- import { Check, ChevronRight, Circle } from 'lucide-react'
5
- import * as React from 'react'
6
-
7
- import { cn } from '@/lib/utils'
8
-
9
- const DropdownMenu = DropdownMenuPrimitive.Root
10
-
11
- const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger
12
-
13
- const DropdownMenuGroup = DropdownMenuPrimitive.Group
14
-
15
- const DropdownMenuPortal = DropdownMenuPrimitive.Portal
16
-
17
- const DropdownMenuSub = DropdownMenuPrimitive.Sub
18
-
19
- const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup
20
-
21
- const DropdownMenuSubTrigger = React.forwardRef<
22
- React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,
23
- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {
24
- inset?: boolean
25
- }
26
- >(({ className, inset, children, ...props }, ref) => (
27
- <DropdownMenuPrimitive.SubTrigger
28
- ref={ref}
29
- className={cn(
30
- 'flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
31
- inset && 'pl-8',
32
- className
33
- )}
34
- {...props}
35
- >
36
- {children}
37
- <ChevronRight className="ml-auto" />
38
- </DropdownMenuPrimitive.SubTrigger>
39
- ))
40
- DropdownMenuSubTrigger.displayName =
41
- DropdownMenuPrimitive.SubTrigger.displayName
42
-
43
- const DropdownMenuSubContent = React.forwardRef<
44
- React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,
45
- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>
46
- >(({ className, ...props }, ref) => (
47
- <DropdownMenuPrimitive.SubContent
48
- ref={ref}
49
- className={cn(
50
- 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
51
- className
52
- )}
53
- {...props}
54
- />
55
- ))
56
- DropdownMenuSubContent.displayName =
57
- DropdownMenuPrimitive.SubContent.displayName
58
-
59
- const DropdownMenuContent = React.forwardRef<
60
- React.ElementRef<typeof DropdownMenuPrimitive.Content>,
61
- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>
62
- >(({ className, sideOffset = 4, ...props }, ref) => (
63
- <DropdownMenuPrimitive.Portal>
64
- <DropdownMenuPrimitive.Content
65
- ref={ref}
66
- sideOffset={sideOffset}
67
- className={cn(
68
- 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
69
- className
70
- )}
71
- {...props}
72
- />
73
- </DropdownMenuPrimitive.Portal>
74
- ))
75
- DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName
76
-
77
- const DropdownMenuItem = React.forwardRef<
78
- React.ElementRef<typeof DropdownMenuPrimitive.Item>,
79
- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {
80
- inset?: boolean
81
- }
82
- >(({ className, inset, ...props }, ref) => (
83
- <DropdownMenuPrimitive.Item
84
- ref={ref}
85
- className={cn(
86
- 'relative flex cursor-default select-none items-center gap-2 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 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
87
- inset && 'pl-8',
88
- className
89
- )}
90
- {...props}
91
- />
92
- ))
93
- DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName
94
-
95
- const DropdownMenuCheckboxItem = React.forwardRef<
96
- React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,
97
- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>
98
- >(({ className, children, checked, ...props }, ref) => (
99
- <DropdownMenuPrimitive.CheckboxItem
100
- ref={ref}
101
- className={cn(
102
- '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',
103
- className
104
- )}
105
- checked={checked}
106
- {...props}
107
- >
108
- <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
109
- <DropdownMenuPrimitive.ItemIndicator>
110
- <Check className="h-4 w-4" />
111
- </DropdownMenuPrimitive.ItemIndicator>
112
- </span>
113
- {children}
114
- </DropdownMenuPrimitive.CheckboxItem>
115
- ))
116
- DropdownMenuCheckboxItem.displayName =
117
- DropdownMenuPrimitive.CheckboxItem.displayName
118
-
119
- const DropdownMenuRadioItem = React.forwardRef<
120
- React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,
121
- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>
122
- >(({ className, children, ...props }, ref) => (
123
- <DropdownMenuPrimitive.RadioItem
124
- ref={ref}
125
- className={cn(
126
- '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',
127
- className
128
- )}
129
- {...props}
130
- >
131
- <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
132
- <DropdownMenuPrimitive.ItemIndicator>
133
- <Circle className="h-2 w-2 fill-current" />
134
- </DropdownMenuPrimitive.ItemIndicator>
135
- </span>
136
- {children}
137
- </DropdownMenuPrimitive.RadioItem>
138
- ))
139
- DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName
140
-
141
- const DropdownMenuLabel = React.forwardRef<
142
- React.ElementRef<typeof DropdownMenuPrimitive.Label>,
143
- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {
144
- inset?: boolean
145
- }
146
- >(({ className, inset, ...props }, ref) => (
147
- <DropdownMenuPrimitive.Label
148
- ref={ref}
149
- className={cn(
150
- 'px-2 py-1.5 text-sm font-semibold',
151
- inset && 'pl-8',
152
- className
153
- )}
154
- {...props}
155
- />
156
- ))
157
- DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName
158
-
159
- const DropdownMenuSeparator = React.forwardRef<
160
- React.ElementRef<typeof DropdownMenuPrimitive.Separator>,
161
- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>
162
- >(({ className, ...props }, ref) => (
163
- <DropdownMenuPrimitive.Separator
164
- ref={ref}
165
- className={cn('-mx-1 my-1 h-px bg-muted', className)}
166
- {...props}
167
- />
168
- ))
169
- DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName
170
-
171
- const DropdownMenuShortcut = ({
172
- className,
173
- ...props
174
- }: React.HTMLAttributes<HTMLSpanElement>) => {
175
- return (
176
- <span
177
- className={cn('ml-auto text-xs tracking-widest opacity-60', className)}
178
- {...props}
179
- />
180
- )
181
- }
182
- DropdownMenuShortcut.displayName = 'DropdownMenuShortcut'
183
-
184
- export {
185
- DropdownMenu,
186
- DropdownMenuTrigger,
187
- DropdownMenuContent,
188
- DropdownMenuItem,
189
- DropdownMenuCheckboxItem,
190
- DropdownMenuRadioItem,
191
- DropdownMenuLabel,
192
- DropdownMenuSeparator,
193
- DropdownMenuShortcut,
194
- DropdownMenuGroup,
195
- DropdownMenuPortal,
196
- DropdownMenuSub,
197
- DropdownMenuSubContent,
198
- DropdownMenuSubTrigger,
199
- DropdownMenuRadioGroup,
200
- }
@@ -1,22 +0,0 @@
1
- import * as React from 'react'
2
-
3
- import { cn } from '@/lib/utils'
4
-
5
- const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<'input'>>(
6
- ({ className, type, ...props }, ref) => {
7
- return (
8
- <input
9
- type={type}
10
- className={cn(
11
- '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',
12
- className
13
- )}
14
- ref={ref}
15
- {...props}
16
- />
17
- )
18
- }
19
- )
20
- Input.displayName = 'Input'
21
-
22
- export { Input }
@@ -1,26 +0,0 @@
1
- 'use client'
2
-
3
- import * as LabelPrimitive from '@radix-ui/react-label'
4
- import { type VariantProps, cva } from 'class-variance-authority'
5
- import * as React from 'react'
6
-
7
- import { cn } from '@/lib/utils'
8
-
9
- const labelVariants = cva(
10
- 'font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70'
11
- )
12
-
13
- const Label = React.forwardRef<
14
- React.ElementRef<typeof LabelPrimitive.Root>,
15
- React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &
16
- VariantProps<typeof labelVariants>
17
- >(({ className, ...props }, ref) => (
18
- <LabelPrimitive.Root
19
- ref={ref}
20
- className={cn(labelVariants(), className)}
21
- {...props}
22
- />
23
- ))
24
- Label.displayName = LabelPrimitive.Root.displayName
25
-
26
- export { Label }