Spaces:
Running
Running
James McCool
commited on
Commit
·
a458144
1
Parent(s):
b967c2c
Remove PostCSS and Tailwind configuration files, and refactor CSS styles in index.css to implement custom styles. Update button and table components to use new class names for styling consistency. Delete utility functions for class name merging.
Browse files- postcss.config.js +0 -6
- src/components/ui/button.jsx +1 -14
- src/components/ui/table.jsx +9 -16
- src/index.css +373 -54
- src/lib/utils.js +0 -6
- tailwind.config.js +0 -77
postcss.config.js
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
module.exports = {
|
2 |
-
plugins: {
|
3 |
-
tailwindcss: {},
|
4 |
-
autoprefixer: {},
|
5 |
-
},
|
6 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
src/components/ui/button.jsx
CHANGED
@@ -1,24 +1,11 @@
|
|
1 |
import * as React from "react"
|
2 |
import { Slot } from "@radix-ui/react-slot"
|
3 |
-
import { cn } from "../../lib/utils"
|
4 |
-
|
5 |
-
const buttonVariants = cn(
|
6 |
-
"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",
|
7 |
-
"bg-primary text-primary-foreground hover:bg-primary/90 h-10 px-4 py-2",
|
8 |
-
"bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
9 |
-
"bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
10 |
-
"border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
11 |
-
"bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
12 |
-
"hover:bg-accent hover:text-accent-foreground",
|
13 |
-
"h-9 w-9 p-0",
|
14 |
-
"h-11 w-11"
|
15 |
-
)
|
16 |
|
17 |
const Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
|
18 |
const Comp = asChild ? Slot : "button"
|
19 |
return (
|
20 |
<Comp
|
21 |
-
className={
|
22 |
ref={ref}
|
23 |
{...props}
|
24 |
/>
|
|
|
1 |
import * as React from "react"
|
2 |
import { Slot } from "@radix-ui/react-slot"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
const Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
|
5 |
const Comp = asChild ? Slot : "button"
|
6 |
return (
|
7 |
<Comp
|
8 |
+
className={`btn btn-primary ${className || ''}`}
|
9 |
ref={ref}
|
10 |
{...props}
|
11 |
/>
|
src/components/ui/table.jsx
CHANGED
@@ -1,11 +1,10 @@
|
|
1 |
import * as React from "react"
|
2 |
-
import { cn } from "../../lib/utils"
|
3 |
|
4 |
const Table = React.forwardRef(({ className, ...props }, ref) => (
|
5 |
-
<div className="
|
6 |
<table
|
7 |
ref={ref}
|
8 |
-
className={
|
9 |
{...props}
|
10 |
/>
|
11 |
</div>
|
@@ -13,14 +12,14 @@ const Table = React.forwardRef(({ className, ...props }, ref) => (
|
|
13 |
Table.displayName = "Table"
|
14 |
|
15 |
const TableHeader = React.forwardRef(({ className, ...props }, ref) => (
|
16 |
-
<thead ref={ref} className={
|
17 |
))
|
18 |
TableHeader.displayName = "TableHeader"
|
19 |
|
20 |
const TableBody = React.forwardRef(({ className, ...props }, ref) => (
|
21 |
<tbody
|
22 |
ref={ref}
|
23 |
-
className={
|
24 |
{...props}
|
25 |
/>
|
26 |
))
|
@@ -29,7 +28,7 @@ TableBody.displayName = "TableBody"
|
|
29 |
const TableFooter = React.forwardRef(({ className, ...props }, ref) => (
|
30 |
<tfoot
|
31 |
ref={ref}
|
32 |
-
className={
|
33 |
{...props}
|
34 |
/>
|
35 |
))
|
@@ -38,10 +37,7 @@ TableFooter.displayName = "TableFooter"
|
|
38 |
const TableRow = React.forwardRef(({ className, ...props }, ref) => (
|
39 |
<tr
|
40 |
ref={ref}
|
41 |
-
className={
|
42 |
-
"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
|
43 |
-
className
|
44 |
-
)}
|
45 |
{...props}
|
46 |
/>
|
47 |
))
|
@@ -50,10 +46,7 @@ TableRow.displayName = "TableRow"
|
|
50 |
const TableHead = React.forwardRef(({ className, ...props }, ref) => (
|
51 |
<th
|
52 |
ref={ref}
|
53 |
-
className={
|
54 |
-
"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
|
55 |
-
className
|
56 |
-
)}
|
57 |
{...props}
|
58 |
/>
|
59 |
))
|
@@ -62,7 +55,7 @@ TableHead.displayName = "TableHead"
|
|
62 |
const TableCell = React.forwardRef(({ className, ...props }, ref) => (
|
63 |
<td
|
64 |
ref={ref}
|
65 |
-
className={
|
66 |
{...props}
|
67 |
/>
|
68 |
))
|
@@ -71,7 +64,7 @@ TableCell.displayName = "TableCell"
|
|
71 |
const TableCaption = React.forwardRef(({ className, ...props }, ref) => (
|
72 |
<caption
|
73 |
ref={ref}
|
74 |
-
className={
|
75 |
{...props}
|
76 |
/>
|
77 |
))
|
|
|
1 |
import * as React from "react"
|
|
|
2 |
|
3 |
const Table = React.forwardRef(({ className, ...props }, ref) => (
|
4 |
+
<div className="table-container">
|
5 |
<table
|
6 |
ref={ref}
|
7 |
+
className={`table ${className || ''}`}
|
8 |
{...props}
|
9 |
/>
|
10 |
</div>
|
|
|
12 |
Table.displayName = "Table"
|
13 |
|
14 |
const TableHeader = React.forwardRef(({ className, ...props }, ref) => (
|
15 |
+
<thead ref={ref} className={className} {...props} />
|
16 |
))
|
17 |
TableHeader.displayName = "TableHeader"
|
18 |
|
19 |
const TableBody = React.forwardRef(({ className, ...props }, ref) => (
|
20 |
<tbody
|
21 |
ref={ref}
|
22 |
+
className={className}
|
23 |
{...props}
|
24 |
/>
|
25 |
))
|
|
|
28 |
const TableFooter = React.forwardRef(({ className, ...props }, ref) => (
|
29 |
<tfoot
|
30 |
ref={ref}
|
31 |
+
className={className}
|
32 |
{...props}
|
33 |
/>
|
34 |
))
|
|
|
37 |
const TableRow = React.forwardRef(({ className, ...props }, ref) => (
|
38 |
<tr
|
39 |
ref={ref}
|
40 |
+
className={className}
|
|
|
|
|
|
|
41 |
{...props}
|
42 |
/>
|
43 |
))
|
|
|
46 |
const TableHead = React.forwardRef(({ className, ...props }, ref) => (
|
47 |
<th
|
48 |
ref={ref}
|
49 |
+
className={className}
|
|
|
|
|
|
|
50 |
{...props}
|
51 |
/>
|
52 |
))
|
|
|
55 |
const TableCell = React.forwardRef(({ className, ...props }, ref) => (
|
56 |
<td
|
57 |
ref={ref}
|
58 |
+
className={className}
|
59 |
{...props}
|
60 |
/>
|
61 |
))
|
|
|
64 |
const TableCaption = React.forwardRef(({ className, ...props }, ref) => (
|
65 |
<caption
|
66 |
ref={ref}
|
67 |
+
className={className}
|
68 |
{...props}
|
69 |
/>
|
70 |
))
|
src/index.css
CHANGED
@@ -1,59 +1,378 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
:
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
--input: 214.3 31.8% 91.4%;
|
25 |
-
--ring: 222.2 84% 4.9%;
|
26 |
-
--radius: 0.5rem;
|
27 |
-
}
|
28 |
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
}
|
50 |
}
|
51 |
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
}
|
59 |
}
|
|
|
1 |
+
/* Custom CSS for shadcn/ui-like styling */
|
2 |
+
:root {
|
3 |
+
--background: #ffffff;
|
4 |
+
--foreground: #020817;
|
5 |
+
--card: #ffffff;
|
6 |
+
--card-foreground: #020817;
|
7 |
+
--popover: #ffffff;
|
8 |
+
--popover-foreground: #020817;
|
9 |
+
--primary: #0f172a;
|
10 |
+
--primary-foreground: #f8fafc;
|
11 |
+
--secondary: #f1f5f9;
|
12 |
+
--secondary-foreground: #0f172a;
|
13 |
+
--muted: #f1f5f9;
|
14 |
+
--muted-foreground: #64748b;
|
15 |
+
--accent: #f1f5f9;
|
16 |
+
--accent-foreground: #0f172a;
|
17 |
+
--destructive: #ef4444;
|
18 |
+
--destructive-foreground: #f8fafc;
|
19 |
+
--border: #e2e8f0;
|
20 |
+
--input: #e2e8f0;
|
21 |
+
--ring: #020817;
|
22 |
+
--radius: 0.5rem;
|
23 |
+
}
|
|
|
|
|
|
|
|
|
24 |
|
25 |
+
.dark {
|
26 |
+
--background: #020817;
|
27 |
+
--foreground: #f8fafc;
|
28 |
+
--card: #020817;
|
29 |
+
--card-foreground: #f8fafc;
|
30 |
+
--popover: #020817;
|
31 |
+
--popover-foreground: #f8fafc;
|
32 |
+
--primary: #f8fafc;
|
33 |
+
--primary-foreground: #0f172a;
|
34 |
+
--secondary: #1e293b;
|
35 |
+
--secondary-foreground: #f8fafc;
|
36 |
+
--muted: #1e293b;
|
37 |
+
--muted-foreground: #94a3b8;
|
38 |
+
--accent: #1e293b;
|
39 |
+
--accent-foreground: #f8fafc;
|
40 |
+
--destructive: #7f1d1d;
|
41 |
+
--destructive-foreground: #f8fafc;
|
42 |
+
--border: #1e293b;
|
43 |
+
--input: #1e293b;
|
44 |
+
--ring: #cbd5e1;
|
|
|
45 |
}
|
46 |
|
47 |
+
* {
|
48 |
+
box-sizing: border-box;
|
49 |
+
border-color: var(--border);
|
50 |
+
}
|
51 |
+
|
52 |
+
body {
|
53 |
+
margin: 0;
|
54 |
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
55 |
+
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
56 |
+
sans-serif;
|
57 |
+
-webkit-font-smoothing: antialiased;
|
58 |
+
-moz-osx-font-smoothing: grayscale;
|
59 |
+
background-color: var(--background);
|
60 |
+
color: var(--foreground);
|
61 |
+
}
|
62 |
+
|
63 |
+
code {
|
64 |
+
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
|
65 |
+
monospace;
|
66 |
+
}
|
67 |
+
|
68 |
+
/* Utility classes */
|
69 |
+
.min-h-screen {
|
70 |
+
min-height: 100vh;
|
71 |
+
}
|
72 |
+
|
73 |
+
.bg-background {
|
74 |
+
background-color: var(--background);
|
75 |
+
}
|
76 |
+
|
77 |
+
.bg-card {
|
78 |
+
background-color: var(--card);
|
79 |
+
}
|
80 |
+
|
81 |
+
.text-foreground {
|
82 |
+
color: var(--foreground);
|
83 |
+
}
|
84 |
+
|
85 |
+
.text-muted-foreground {
|
86 |
+
color: var(--muted-foreground);
|
87 |
+
}
|
88 |
+
|
89 |
+
.border {
|
90 |
+
border: 1px solid var(--border);
|
91 |
+
}
|
92 |
+
|
93 |
+
.border-b {
|
94 |
+
border-bottom: 1px solid var(--border);
|
95 |
+
}
|
96 |
+
|
97 |
+
.rounded-lg {
|
98 |
+
border-radius: 0.5rem;
|
99 |
+
}
|
100 |
+
|
101 |
+
.p-4 {
|
102 |
+
padding: 1rem;
|
103 |
+
}
|
104 |
+
|
105 |
+
.p-6 {
|
106 |
+
padding: 1.5rem;
|
107 |
+
}
|
108 |
+
|
109 |
+
.p-8 {
|
110 |
+
padding: 2rem;
|
111 |
+
}
|
112 |
+
|
113 |
+
.px-4 {
|
114 |
+
padding-left: 1rem;
|
115 |
+
padding-right: 1rem;
|
116 |
+
}
|
117 |
+
|
118 |
+
.px-6 {
|
119 |
+
padding-left: 1.5rem;
|
120 |
+
padding-right: 1.5rem;
|
121 |
+
}
|
122 |
+
|
123 |
+
.py-4 {
|
124 |
+
padding-top: 1rem;
|
125 |
+
padding-bottom: 1rem;
|
126 |
+
}
|
127 |
+
|
128 |
+
.py-8 {
|
129 |
+
padding-top: 2rem;
|
130 |
+
padding-bottom: 2rem;
|
131 |
+
}
|
132 |
+
|
133 |
+
.m-0 {
|
134 |
+
margin: 0;
|
135 |
+
}
|
136 |
+
|
137 |
+
.mb-6 {
|
138 |
+
margin-bottom: 1.5rem;
|
139 |
+
}
|
140 |
+
|
141 |
+
.mt-2 {
|
142 |
+
margin-top: 0.5rem;
|
143 |
+
}
|
144 |
+
|
145 |
+
.mx-auto {
|
146 |
+
margin-left: auto;
|
147 |
+
margin-right: auto;
|
148 |
+
}
|
149 |
+
|
150 |
+
.w-full {
|
151 |
+
width: 100%;
|
152 |
+
}
|
153 |
+
|
154 |
+
.max-w-4xl {
|
155 |
+
max-width: 56rem;
|
156 |
+
}
|
157 |
+
|
158 |
+
.h-10 {
|
159 |
+
height: 2.5rem;
|
160 |
+
}
|
161 |
+
|
162 |
+
.h-12 {
|
163 |
+
height: 3rem;
|
164 |
+
}
|
165 |
+
|
166 |
+
.text-2xl {
|
167 |
+
font-size: 1.5rem;
|
168 |
+
line-height: 2rem;
|
169 |
+
}
|
170 |
+
|
171 |
+
.text-3xl {
|
172 |
+
font-size: 1.875rem;
|
173 |
+
line-height: 2.25rem;
|
174 |
+
}
|
175 |
+
|
176 |
+
.text-lg {
|
177 |
+
font-size: 1.125rem;
|
178 |
+
line-height: 1.75rem;
|
179 |
+
}
|
180 |
+
|
181 |
+
.text-sm {
|
182 |
+
font-size: 0.875rem;
|
183 |
+
line-height: 1.25rem;
|
184 |
+
}
|
185 |
+
|
186 |
+
.font-bold {
|
187 |
+
font-weight: 700;
|
188 |
+
}
|
189 |
+
|
190 |
+
.font-medium {
|
191 |
+
font-weight: 500;
|
192 |
+
}
|
193 |
+
|
194 |
+
.flex {
|
195 |
+
display: flex;
|
196 |
+
}
|
197 |
+
|
198 |
+
.items-center {
|
199 |
+
align-items: center;
|
200 |
+
}
|
201 |
+
|
202 |
+
.justify-center {
|
203 |
+
justify-content: center;
|
204 |
+
}
|
205 |
+
|
206 |
+
.justify-between {
|
207 |
+
justify-content: space-between;
|
208 |
+
}
|
209 |
+
|
210 |
+
.relative {
|
211 |
+
position: relative;
|
212 |
+
}
|
213 |
+
|
214 |
+
.overflow-auto {
|
215 |
+
overflow: auto;
|
216 |
+
}
|
217 |
+
|
218 |
+
.caption-bottom {
|
219 |
+
caption-side: bottom;
|
220 |
+
}
|
221 |
+
|
222 |
+
.transition-colors {
|
223 |
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
224 |
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
225 |
+
transition-duration: 150ms;
|
226 |
+
}
|
227 |
+
|
228 |
+
.hover\:bg-muted\/50:hover {
|
229 |
+
background-color: rgba(241, 245, 249, 0.5);
|
230 |
+
}
|
231 |
+
|
232 |
+
.hover\:bg-primary\/90:hover {
|
233 |
+
background-color: rgba(15, 23, 42, 0.9);
|
234 |
+
}
|
235 |
+
|
236 |
+
.focus-visible\:outline-none:focus-visible {
|
237 |
+
outline: 2px solid transparent;
|
238 |
+
outline-offset: 2px;
|
239 |
+
}
|
240 |
+
|
241 |
+
.focus-visible\:ring-2:focus-visible {
|
242 |
+
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
243 |
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
244 |
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
245 |
+
}
|
246 |
+
|
247 |
+
.focus-visible\:ring-ring:focus-visible {
|
248 |
+
--tw-ring-color: var(--ring);
|
249 |
+
}
|
250 |
+
|
251 |
+
.focus-visible\:ring-offset-2:focus-visible {
|
252 |
+
--tw-ring-offset-width: 2px;
|
253 |
+
}
|
254 |
+
|
255 |
+
.disabled\:pointer-events-none:disabled {
|
256 |
+
pointer-events: none;
|
257 |
+
}
|
258 |
+
|
259 |
+
.disabled\:opacity-50:disabled {
|
260 |
+
opacity: 0.5;
|
261 |
+
}
|
262 |
+
|
263 |
+
.inline-flex {
|
264 |
+
display: inline-flex;
|
265 |
+
}
|
266 |
+
|
267 |
+
.whitespace-nowrap {
|
268 |
+
white-space: nowrap;
|
269 |
+
}
|
270 |
+
|
271 |
+
.rounded-md {
|
272 |
+
border-radius: 0.375rem;
|
273 |
+
}
|
274 |
+
|
275 |
+
.ring-offset-background {
|
276 |
+
--tw-ring-offset-color: var(--background);
|
277 |
+
}
|
278 |
+
|
279 |
+
/* Button styles */
|
280 |
+
.btn {
|
281 |
+
display: inline-flex;
|
282 |
+
align-items: center;
|
283 |
+
justify-content: center;
|
284 |
+
white-space: nowrap;
|
285 |
+
border-radius: 0.375rem;
|
286 |
+
font-size: 0.875rem;
|
287 |
+
font-weight: 500;
|
288 |
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
289 |
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
290 |
+
transition-duration: 150ms;
|
291 |
+
cursor: pointer;
|
292 |
+
border: none;
|
293 |
+
outline: none;
|
294 |
+
}
|
295 |
+
|
296 |
+
.btn:focus-visible {
|
297 |
+
outline: 2px solid transparent;
|
298 |
+
outline-offset: 2px;
|
299 |
+
box-shadow: 0 0 0 2px var(--ring);
|
300 |
+
}
|
301 |
+
|
302 |
+
.btn:disabled {
|
303 |
+
pointer-events: none;
|
304 |
+
opacity: 0.5;
|
305 |
+
}
|
306 |
+
|
307 |
+
.btn-primary {
|
308 |
+
background-color: var(--primary);
|
309 |
+
color: var(--primary-foreground);
|
310 |
+
height: 2.5rem;
|
311 |
+
padding: 0.5rem 1rem;
|
312 |
+
}
|
313 |
+
|
314 |
+
.btn-primary:hover {
|
315 |
+
background-color: rgba(15, 23, 42, 0.9);
|
316 |
+
}
|
317 |
+
|
318 |
+
/* Table styles */
|
319 |
+
.table-container {
|
320 |
+
position: relative;
|
321 |
+
width: 100%;
|
322 |
+
overflow: auto;
|
323 |
+
}
|
324 |
+
|
325 |
+
.table {
|
326 |
+
width: 100%;
|
327 |
+
font-size: 0.875rem;
|
328 |
+
caption-side: bottom;
|
329 |
+
border-collapse: collapse;
|
330 |
+
}
|
331 |
+
|
332 |
+
.table th {
|
333 |
+
height: 3rem;
|
334 |
+
padding: 0 1rem;
|
335 |
+
text-align: left;
|
336 |
+
vertical-align: middle;
|
337 |
+
font-weight: 500;
|
338 |
+
color: var(--muted-foreground);
|
339 |
+
}
|
340 |
+
|
341 |
+
.table td {
|
342 |
+
padding: 1rem;
|
343 |
+
vertical-align: middle;
|
344 |
+
}
|
345 |
+
|
346 |
+
.table tbody tr {
|
347 |
+
border-bottom: 1px solid var(--border);
|
348 |
+
transition: background-color 150ms;
|
349 |
+
}
|
350 |
+
|
351 |
+
.table tbody tr:last-child {
|
352 |
+
border-bottom: none;
|
353 |
+
}
|
354 |
+
|
355 |
+
.table tbody tr:hover {
|
356 |
+
background-color: rgba(241, 245, 249, 0.5);
|
357 |
+
}
|
358 |
+
|
359 |
+
.table caption {
|
360 |
+
margin-top: 1rem;
|
361 |
+
font-size: 0.875rem;
|
362 |
+
color: var(--muted-foreground);
|
363 |
+
}
|
364 |
+
|
365 |
+
/* Container */
|
366 |
+
.container {
|
367 |
+
width: 100%;
|
368 |
+
margin-left: auto;
|
369 |
+
margin-right: auto;
|
370 |
+
padding-left: 2rem;
|
371 |
+
padding-right: 2rem;
|
372 |
+
}
|
373 |
+
|
374 |
+
@media (min-width: 1400px) {
|
375 |
+
.container {
|
376 |
+
max-width: 1400px;
|
377 |
}
|
378 |
}
|
src/lib/utils.js
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
import { clsx } from "clsx"
|
2 |
-
import { twMerge } from "tailwind-merge"
|
3 |
-
|
4 |
-
export function cn(...inputs) {
|
5 |
-
return twMerge(clsx(inputs))
|
6 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tailwind.config.js
DELETED
@@ -1,77 +0,0 @@
|
|
1 |
-
/** @type {import('tailwindcss').Config} */
|
2 |
-
module.exports = {
|
3 |
-
darkMode: ["class"],
|
4 |
-
content: [
|
5 |
-
'./pages/**/*.{js,jsx}',
|
6 |
-
'./components/**/*.{js,jsx}',
|
7 |
-
'./app/**/*.{js,jsx}',
|
8 |
-
'./src/**/*.{js,jsx}',
|
9 |
-
],
|
10 |
-
prefix: "",
|
11 |
-
theme: {
|
12 |
-
container: {
|
13 |
-
center: true,
|
14 |
-
padding: "2rem",
|
15 |
-
screens: {
|
16 |
-
"2xl": "1400px",
|
17 |
-
},
|
18 |
-
},
|
19 |
-
extend: {
|
20 |
-
colors: {
|
21 |
-
border: "hsl(var(--border))",
|
22 |
-
input: "hsl(var(--input))",
|
23 |
-
ring: "hsl(var(--ring))",
|
24 |
-
background: "hsl(var(--background))",
|
25 |
-
foreground: "hsl(var(--foreground))",
|
26 |
-
primary: {
|
27 |
-
DEFAULT: "hsl(var(--primary))",
|
28 |
-
foreground: "hsl(var(--primary-foreground))",
|
29 |
-
},
|
30 |
-
secondary: {
|
31 |
-
DEFAULT: "hsl(var(--secondary))",
|
32 |
-
foreground: "hsl(var(--secondary-foreground))",
|
33 |
-
},
|
34 |
-
destructive: {
|
35 |
-
DEFAULT: "hsl(var(--destructive))",
|
36 |
-
foreground: "hsl(var(--destructive-foreground))",
|
37 |
-
},
|
38 |
-
muted: {
|
39 |
-
DEFAULT: "hsl(var(--muted))",
|
40 |
-
foreground: "hsl(var(--muted-foreground))",
|
41 |
-
},
|
42 |
-
accent: {
|
43 |
-
DEFAULT: "hsl(var(--accent))",
|
44 |
-
foreground: "hsl(var(--accent-foreground))",
|
45 |
-
},
|
46 |
-
popover: {
|
47 |
-
DEFAULT: "hsl(var(--popover))",
|
48 |
-
foreground: "hsl(var(--popover-foreground))",
|
49 |
-
},
|
50 |
-
card: {
|
51 |
-
DEFAULT: "hsl(var(--card))",
|
52 |
-
foreground: "hsl(var(--card-foreground))",
|
53 |
-
},
|
54 |
-
},
|
55 |
-
borderRadius: {
|
56 |
-
lg: "var(--radius)",
|
57 |
-
md: "calc(var(--radius) - 2px)",
|
58 |
-
sm: "calc(var(--radius) - 4px)",
|
59 |
-
},
|
60 |
-
keyframes: {
|
61 |
-
"accordion-down": {
|
62 |
-
from: { height: "0" },
|
63 |
-
to: { height: "var(--radix-accordion-content-height)" },
|
64 |
-
},
|
65 |
-
"accordion-up": {
|
66 |
-
from: { height: "var(--radix-accordion-content-height)" },
|
67 |
-
to: { height: "0" },
|
68 |
-
},
|
69 |
-
},
|
70 |
-
animation: {
|
71 |
-
"accordion-down": "accordion-down 0.2s ease-out",
|
72 |
-
"accordion-up": "accordion-up 0.2s ease-out",
|
73 |
-
},
|
74 |
-
},
|
75 |
-
},
|
76 |
-
plugins: [require("tailwindcss-animate")],
|
77 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|