@the21og/yc 0.0.1

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.
@@ -0,0 +1,52 @@
1
+ import * as React from "react"
2
+ import { Slot } from "@radix-ui/react-slot"
3
+ import { cva, type VariantProps } from "class-variance-authority"
4
+ import { cn } from "../../lib/utils"
5
+
6
+ const buttonVariants = cva(
7
+ "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
8
+ {
9
+ variants: {
10
+ variant: {
11
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
12
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
13
+ outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
14
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
15
+ ghost: "hover:bg-accent hover:text-accent-foreground",
16
+ link: "text-primary underline-offset-4 hover:underline",
17
+ },
18
+ size: {
19
+ default: "h-10 px-4 py-2",
20
+ sm: "h-9 rounded-md px-3",
21
+ lg: "h-11 rounded-md px-8",
22
+ icon: "h-10 w-10",
23
+ },
24
+ },
25
+ defaultVariants: {
26
+ variant: "default",
27
+ size: "default",
28
+ },
29
+ }
30
+ )
31
+
32
+ export interface ButtonProps
33
+ extends React.ButtonHTMLAttributes<HTMLButtonElement>,
34
+ VariantProps<typeof buttonVariants> {
35
+ asChild?: boolean
36
+ }
37
+
38
+ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
39
+ ({ className, variant, size, asChild = false, ...props }, ref) => {
40
+ const Comp = asChild ? Slot : "button"
41
+ return (
42
+ <Comp
43
+ className={cn(buttonVariants({ variant, size, className }))}
44
+ ref={ref}
45
+ {...props}
46
+ />
47
+ )
48
+ }
49
+ )
50
+ Button.displayName = "Button"
51
+
52
+ export { Button, buttonVariants }
@@ -0,0 +1,60 @@
1
+ import * as React from "react"
2
+ import { cn } from "../../lib/utils"
3
+
4
+ const Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (
5
+ <div
6
+ ref={ref}
7
+ className={cn(
8
+ "rounded-lg border bg-card text-card-foreground shadow-sm",
9
+ className
10
+ )}
11
+ {...props}
12
+ />
13
+ ))
14
+ Card.displayName = "Card"
15
+
16
+ const CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (
17
+ <div
18
+ ref={ref}
19
+ className={cn("flex flex-col space-y-1.5 p-6", className)}
20
+ {...props}
21
+ />
22
+ ))
23
+ CardHeader.displayName = "CardHeader"
24
+
25
+ const CardTitle = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLHeadingElement>>(({ className, ...props }, ref) => (
26
+ <h3
27
+ ref={ref}
28
+ className={cn(
29
+ "text-2xl font-semibold leading-none tracking-tight",
30
+ className
31
+ )}
32
+ {...props}
33
+ />
34
+ ))
35
+ CardTitle.displayName = "CardTitle"
36
+
37
+ const CardDescription = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>(({ className, ...props }, ref) => (
38
+ <p
39
+ ref={ref}
40
+ className={cn("text-sm text-muted-foreground", className)}
41
+ {...props}
42
+ />
43
+ ))
44
+ CardDescription.displayName = "CardDescription"
45
+
46
+ const CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (
47
+ <div ref={ref} className={cn("p-6 pt-0", className)} {...props} />
48
+ ))
49
+ CardContent.displayName = "CardContent"
50
+
51
+ const CardFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (
52
+ <div
53
+ ref={ref}
54
+ className={cn("flex items-center p-6 pt-0", className)}
55
+ {...props}
56
+ />
57
+ ))
58
+ CardFooter.displayName = "CardFooter"
59
+
60
+ export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }
@@ -0,0 +1,24 @@
1
+ import * as React from "react"
2
+ import { cn } from "../../lib/utils"
3
+
4
+ export interface InputProps
5
+ extends React.InputHTMLAttributes<HTMLInputElement> {}
6
+
7
+ const Input = React.forwardRef<HTMLInputElement, InputProps>(
8
+ ({ className, type, ...props }, ref) => {
9
+ return (
10
+ <input
11
+ type={type}
12
+ className={cn(
13
+ "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium 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",
14
+ className
15
+ )}
16
+ ref={ref}
17
+ {...props}
18
+ />
19
+ )
20
+ }
21
+ )
22
+ Input.displayName = "Input"
23
+
24
+ export { Input }
package/index.css ADDED
@@ -0,0 +1,31 @@
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
4
+
5
+ @layer base {
6
+ :root {
7
+ --card: 0 0% 100%;
8
+ --ring: 221.2 83.2% 53.3%;
9
+ --input: 214.3 31.8% 91.4%;
10
+ --muted: 210 40% 96.1%;
11
+ --accent: 210 40% 96.1%;
12
+ --border: 214.3 31.8% 91.4%;
13
+ --radius: 0.5rem;
14
+ --popover: 0 0% 100%;
15
+ --primary: 221.2 83.2% 53.3%;
16
+ --secondary: 210 40% 96.1%;
17
+ --background: 0 0% 100%;
18
+ --foreground: 222.2 84% 4.9%;
19
+ --destructive: 0 84.2% 60.2%;
20
+ --card-foreground: 222.2 84% 4.9%;
21
+ --muted-foreground: 215.4 16.3% 46.9%;
22
+ --accent-foreground: 222.2 47.4% 11.2%;
23
+ --popover-foreground: 222.2 84% 4.9%;
24
+ --primary-foreground: 210 40% 98%;
25
+ --secondary-foreground: 222.2 47.4% 11.2%;
26
+ --destructive-foreground: 210 40% 98%;
27
+ }
28
+
29
+ .dark {
30
+ }
31
+ }
package/index.ts ADDED
@@ -0,0 +1,5 @@
1
+ import "./index.css";
2
+ export * from "./components/ui/card";
3
+ export * from "./components/ui/input";
4
+ export * from "./components/ui/button";
5
+ export * from "./lib/utils";
package/lib/utils.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { type ClassValue, clsx } from "clsx"
2
+ import { twMerge } from "tailwind-merge"
3
+
4
+ export function cn(...inputs: ClassValue[]) {
5
+ return twMerge(clsx(inputs))
6
+ }
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@the21og/yc",
3
+ "version": "0.0.1",
4
+ "description": "Y Combinator (YC) is a startup accelerator and venture capital firm",
5
+ "main": "index.js",
6
+ "style": "index.css",
7
+ "license": "MIT",
8
+ "peerDependencies": {
9
+ "react": "^18.0.0",
10
+ "react-dom": "^18.0.0",
11
+ "tailwindcss": "^3.0.0",
12
+ "class-variance-authority": "^0.7.0",
13
+ "clsx": "^2.0.0",
14
+ "tailwind-merge": "^2.0.0",
15
+ "lucide-react": "^0.300.0"
16
+ }
17
+ }