Skip to content

Commit 5cde627

Browse files
authored
update Tailwind CSS to v4 (#34)
* Add license information for tailwindcss-animate dependency * update Tailwind CSS configuration * Fix innodb flush neighbors (#35) * Change innodb_flush_neighbors type to number with min/max constraints * Refactor input change handling to check for null or undefined values instead of empty strings * Fix ConfigField value handling to check for undefined and null values
1 parent a9c5f41 commit 5cde627

32 files changed

+756
-647
lines changed

package-lock.json

Lines changed: 618 additions & 512 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@
2828
"tailwindcss-animate": "^1.0.7"
2929
},
3030
"devDependencies": {
31+
"@tailwindcss/postcss": "^4.0.0",
3132
"@types/node": "^22.0.0",
3233
"@types/react": "^19.0.0",
3334
"@types/react-dom": "^19.0.0",
3435
"@typescript-eslint/eslint-plugin": "^8.0.0",
3536
"@typescript-eslint/parser": "^8.0.0",
3637
"@vitejs/plugin-react": "^4.3.1",
37-
"autoprefixer": "^10.4.19",
3838
"eslint": "^9.0.0",
3939
"eslint-plugin-react-hooks": "^5.0.0",
4040
"eslint-plugin-react-refresh": "^0.4.7",
4141
"glob": "^11.0.0",
4242
"postcss": "^8.4.39",
4343
"rimraf": "^6.0.0",
44-
"tailwindcss": "^3.4.4",
44+
"tailwindcss": "^4.0.0",
4545
"typescript": "^5.2.2",
4646
"vite": "^6.0.0",
4747
"vite-plugin-pages": "^0.32.4"

postcss.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
export default {
22
plugins: {
3-
tailwindcss: {},
4-
autoprefixer: {},
3+
'@tailwindcss/postcss': {},
54
},
65
}

src/artifacts/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const GeneratedCommands = ({ commands, onCopy }) => {
104104
};
105105

106106
return (
107-
<div className="bg-white p-6 rounded-lg shadow border border-gray-200">
107+
<div className="bg-white p-6 rounded-lg shadow-sm border border-gray-200">
108108
<div className="space-y-6">
109109
{/* curl Command */}
110110
<div>
@@ -1756,7 +1756,7 @@ const DatabaseConfigApp = () => {
17561756
</div>
17571757

17581758
{/* Database ID Input */}
1759-
<div className="bg-white p-6 rounded-lg shadow border border-gray-200">
1759+
<div className="bg-white p-6 rounded-lg shadow-sm border border-gray-200">
17601760
<label className="block text-lg font-semibold mb-2">Database ID</label>
17611761
<input
17621762
type="text"
@@ -1768,7 +1768,7 @@ const DatabaseConfigApp = () => {
17681768
</div>
17691769

17701770
{/* Database Type Tabs */}
1771-
<div className="bg-white rounded-lg shadow border border-gray-200">
1771+
<div className="bg-white rounded-lg shadow-sm border border-gray-200">
17721772
<div className="border-b border-gray-200">
17731773
<nav className="flex">
17741774
{tabs.map((tab) => (

src/components/ui/badge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { cva, type VariantProps } from "class-variance-authority"
44
import { cn } from "src/lib/utils"
55

66
const badgeVariants = cva(
7-
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
7+
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",
88
{
99
variants: {
1010
variant: {

src/components/ui/button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { cva, type VariantProps } from "class-variance-authority"
55
import { cn } from "@/lib/utils"
66

77
const buttonVariants = cva(
8-
"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+
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
99
{
1010
variants: {
1111
variant: {

src/components/ui/card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const Card = React.forwardRef<
99
<div
1010
ref={ref}
1111
className={cn(
12-
"rounded-lg border bg-card text-card-foreground shadow-sm",
12+
"rounded-lg border bg-card text-card-foreground shadow-xs",
1313
className
1414
)}
1515
{...props}

src/components/ui/chart.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const ChartContainer = React.forwardRef<
5050
data-chart={chartId}
5151
ref={ref}
5252
className={cn(
53-
"flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line-line]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",
53+
"flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line-line]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-hidden [&_.recharts-surface]:outline-hidden",
5454
className
5555
)}
5656
{...props}
@@ -204,7 +204,7 @@ const ChartTooltipContent = React.forwardRef<
204204
!hideIndicator && (
205205
<div
206206
className={cn(
207-
"shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",
207+
"shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",
208208
{
209209
"h-2.5 w-2.5": indicator === "dot",
210210
"w-1": indicator === "line",

src/components/ui/checkbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const Checkbox = React.forwardRef<
1111
<CheckboxPrimitive.Root
1212
ref={ref}
1313
className={cn(
14-
"peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
14+
"peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
1515
className
1616
)}
1717
{...props}

src/components/ui/command.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const CommandInput = React.forwardRef<
4444
<CommandPrimitive.Input
4545
ref={ref}
4646
className={cn(
47-
"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
47+
"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
4848
className
4949
)}
5050
{...props}
@@ -115,7 +115,7 @@ const CommandItem = React.forwardRef<
115115
<CommandPrimitive.Item
116116
ref={ref}
117117
className={cn(
118-
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
118+
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden aria-selected:bg-accent aria-selected:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
119119
className
120120
)}
121121
{...props}

0 commit comments

Comments
 (0)