@variousjs/create 3.0.0 → 3.1.0

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.
@@ -1,57 +0,0 @@
1
- import * as React from "react"
2
- import { Slot } from "@radix-ui/react-slot"
3
- import { cva, type VariantProps } from "class-variance-authority"
4
-
5
- import { cn } from "@/lib/utils"
6
-
7
- const buttonVariants = cva(
8
- "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
9
- {
10
- variants: {
11
- variant: {
12
- default:
13
- "bg-primary text-primary-foreground shadow hover:bg-primary/90",
14
- destructive:
15
- "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
16
- outline:
17
- "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
18
- secondary:
19
- "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
20
- ghost: "hover:bg-accent hover:text-accent-foreground",
21
- link: "text-primary underline-offset-4 hover:underline",
22
- },
23
- size: {
24
- default: "h-9 px-4 py-2",
25
- sm: "h-8 rounded-md px-3 text-xs",
26
- lg: "h-10 rounded-md px-8",
27
- icon: "h-9 w-9",
28
- },
29
- },
30
- defaultVariants: {
31
- variant: "default",
32
- size: "default",
33
- },
34
- }
35
- )
36
-
37
- export interface ButtonProps
38
- extends React.ButtonHTMLAttributes<HTMLButtonElement>,
39
- VariantProps<typeof buttonVariants> {
40
- asChild?: boolean
41
- }
42
-
43
- const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
44
- ({ className, variant, size, asChild = false, ...props }, ref) => {
45
- const Comp = asChild ? Slot : "button"
46
- return (
47
- <Comp
48
- className={cn(buttonVariants({ variant, size, className }))}
49
- ref={ref}
50
- {...props}
51
- />
52
- )
53
- }
54
- )
55
- Button.displayName = "Button"
56
-
57
- export { Button, buttonVariants }
@@ -1,76 +0,0 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
4
-
5
- @layer base {
6
- :root {
7
- --background: 0 0% 100%;
8
- --foreground: 222.2 84% 4.9%;
9
-
10
- --card: 0 0% 100%;
11
- --card-foreground: 222.2 84% 4.9%;
12
-
13
- --popover: 0 0% 100%;
14
- --popover-foreground: 222.2 84% 4.9%;
15
-
16
- --primary: 222.2 47.4% 11.2%;
17
- --primary-foreground: 210 40% 98%;
18
-
19
- --secondary: 210 40% 96.1%;
20
- --secondary-foreground: 222.2 47.4% 11.2%;
21
-
22
- --muted: 210 40% 96.1%;
23
- --muted-foreground: 215.4 16.3% 46.9%;
24
-
25
- --accent: 210 40% 96.1%;
26
- --accent-foreground: 222.2 47.4% 11.2%;
27
-
28
- --destructive: 0 84.2% 60.2%;
29
- --destructive-foreground: 210 40% 98%;
30
-
31
- --border: 214.3 31.8% 91.4%;
32
- --input: 214.3 31.8% 91.4%;
33
- --ring: 222.2 84% 4.9%;
34
-
35
- --radius: 0.5rem;
36
- }
37
-
38
- .dark {
39
- --background: 222.2 84% 4.9%;
40
- --foreground: 210 40% 98%;
41
-
42
- --card: 222.2 84% 4.9%;
43
- --card-foreground: 210 40% 98%;
44
-
45
- --popover: 222.2 84% 4.9%;
46
- --popover-foreground: 210 40% 98%;
47
-
48
- --primary: 210 40% 98%;
49
- --primary-foreground: 222.2 47.4% 11.2%;
50
-
51
- --secondary: 217.2 32.6% 17.5%;
52
- --secondary-foreground: 210 40% 98%;
53
-
54
- --muted: 217.2 32.6% 17.5%;
55
- --muted-foreground: 215 20.2% 65.1%;
56
-
57
- --accent: 217.2 32.6% 17.5%;
58
- --accent-foreground: 210 40% 98%;
59
-
60
- --destructive: 0 62.8% 30.6%;
61
- --destructive-foreground: 210 40% 98%;
62
-
63
- --border: 217.2 32.6% 17.5%;
64
- --input: 217.2 32.6% 17.5%;
65
- --ring: 212.7 26.8% 83.9%;
66
- }
67
- }
68
-
69
- @layer base {
70
- * {
71
- @apply border-border;
72
- }
73
- body {
74
- @apply bg-background text-foreground;
75
- }
76
- }
@@ -1 +0,0 @@
1
- export { Button } from '@/components/ui/button'
@@ -1,6 +0,0 @@
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
- }
@@ -1,134 +0,0 @@
1
- /** @type {import('tailwindcss').Config} */
2
- module.exports = {
3
- darkMode: ["class"],
4
- content: [
5
- './src/**/*.{ts,tsx}',
6
- ],
7
- prefix: "",
8
- theme: {
9
- container: {
10
- center: true,
11
- padding: "2rem",
12
- screens: {
13
- "2xl": "1400px",
14
- },
15
- },
16
- fontSize: {
17
- xs: '12px',
18
- sm: '14px',
19
- base: '16px',
20
- lg: '18px',
21
- xl: '20px',
22
- '2xl': '24px',
23
- '3xl': '30px',
24
- '4xl': '36px',
25
- '5xl': '48px',
26
- '6xl': '60px',
27
- '7xl': '72px',
28
- },
29
- spacing: {
30
- px: '1px',
31
- 0: '0',
32
- 0.5: '2px',
33
- 1: '4px',
34
- 1.5: '6px',
35
- 2: '8px',
36
- 2.5: '10px',
37
- 3: '12px',
38
- 3.5: '14px',
39
- 4: '16px',
40
- 5: '20px',
41
- 6: '24px',
42
- 7: '28px',
43
- 8: '32px',
44
- 9: '36px',
45
- 10: '40px',
46
- 11: '44px',
47
- 12: '48px',
48
- 14: '56px',
49
- 16: '64px',
50
- 20: '80px',
51
- 24: '96px',
52
- 28: '112px',
53
- 32: '128px',
54
- 36: '144px',
55
- 40: '160px',
56
- 44: '176px',
57
- 48: '192px',
58
- 52: '208px',
59
- 56: '224px',
60
- 60: '240px',
61
- 64: '256px',
62
- 72: '288px',
63
- 80: '320px',
64
- 96: '384px',
65
- },
66
- extend: {
67
- lineHeight: {
68
- 3: '12px',
69
- 4: '16px',
70
- 5: '20px',
71
- 6: '24px',
72
- 7: '28px',
73
- 8: '32px',
74
- 9: '36px',
75
- 10: '40px',
76
- },
77
- colors: {
78
- border: "hsl(var(--border))",
79
- input: "hsl(var(--input))",
80
- ring: "hsl(var(--ring))",
81
- background: "hsl(var(--background))",
82
- foreground: "hsl(var(--foreground))",
83
- primary: {
84
- DEFAULT: "hsl(var(--primary))",
85
- foreground: "hsl(var(--primary-foreground))",
86
- },
87
- secondary: {
88
- DEFAULT: "hsl(var(--secondary))",
89
- foreground: "hsl(var(--secondary-foreground))",
90
- },
91
- destructive: {
92
- DEFAULT: "hsl(var(--destructive))",
93
- foreground: "hsl(var(--destructive-foreground))",
94
- },
95
- muted: {
96
- DEFAULT: "hsl(var(--muted))",
97
- foreground: "hsl(var(--muted-foreground))",
98
- },
99
- accent: {
100
- DEFAULT: "hsl(var(--accent))",
101
- foreground: "hsl(var(--accent-foreground))",
102
- },
103
- popover: {
104
- DEFAULT: "hsl(var(--popover))",
105
- foreground: "hsl(var(--popover-foreground))",
106
- },
107
- card: {
108
- DEFAULT: "hsl(var(--card))",
109
- foreground: "hsl(var(--card-foreground))",
110
- },
111
- },
112
- borderRadius: {
113
- lg: "var(--radius)",
114
- md: "calc(var(--radius) - 2px)",
115
- sm: "calc(var(--radius) - 4px)",
116
- },
117
- keyframes: {
118
- "accordion-down": {
119
- from: { height: "0" },
120
- to: { height: "var(--radix-accordion-content-height)" },
121
- },
122
- "accordion-up": {
123
- from: { height: "var(--radix-accordion-content-height)" },
124
- to: { height: "0" },
125
- },
126
- },
127
- animation: {
128
- "accordion-down": "accordion-down 0.2s ease-out",
129
- "accordion-up": "accordion-up 0.2s ease-out",
130
- },
131
- },
132
- },
133
- plugins: [require("tailwindcss-animate")],
134
- }