Skip to content

Commit cb30c4e

Browse files
committed
refactor(tailwind_classes) refactor tailwind classes to use new tailwind v4 util classes
1 parent 5e5a37e commit cb30c4e

File tree

52 files changed

+1108
-1265
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1108
-1265
lines changed

package-lock.json

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

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393
"react-router-dom": "6.24.0",
9494
"react-toastify": "^10.0.5",
9595
"tailwind-merge": "^2.2.1",
96-
"tailwindcss-animate": "^1.0.7",
9796
"use-debounce": "^10.0.3",
9897
"uuid": "^10.0.0",
9998
"vaul": "^0.9.0",
@@ -112,6 +111,8 @@
112111
"@semantic-release/exec": "^6.0.3",
113112
"@semantic-release/git": "^10.0.1",
114113
"@semantic-release/npm": "^12.0.2",
114+
"@tailwindcss/postcss": "^4.1.14",
115+
"@tailwindcss/vite": "^4.1.14",
115116
"@tauri-apps/cli": "^2.0.0",
116117
"@testing-library/jest-dom": "^6.5.0",
117118
"@testing-library/react": "^14.2.2",
@@ -121,7 +122,6 @@
121122
"@types/react-dom": "^18.2.19",
122123
"@types/uuid": "^10.0.0",
123124
"@vitejs/plugin-react-swc": "^3.11.0",
124-
"autoprefixer": "^10.4.18",
125125
"better-npm-audit": "^3.7.3",
126126
"conventional-changelog-conventionalcommits": "^8.0.0",
127127
"cpy-cli": "^5.0.0",
@@ -130,16 +130,16 @@
130130
"eslint-plugin-react": "^7.37.2",
131131
"eslint-plugin-react-hooks": "^5.0.0",
132132
"eslint-plugin-react-refresh": "^0.4.20",
133-
"eslint-plugin-tailwindcss": "^3.17.5",
134133
"fake-indexeddb": "^6.0.0",
135134
"happy-dom": "^15.7.3",
136135
"npm-run-all2": "^8.0.4",
137136
"patch-package": "^8.0.0",
138137
"postcss": "^8.4.35",
139138
"prettier": "^3.2.5",
140-
"prettier-plugin-tailwindcss": "^0.6.14",
139+
"prettier-plugin-tailwindcss": "^0.7.1",
141140
"semantic-release-export-data": "^1.0.1",
142-
"tailwindcss": "^3.4.1",
141+
"tailwindcss": "^4.1.14",
142+
"tw-animate-css": "^1.4.0",
143143
"typescript": "^5.6.3",
144144
"typescript-eslint": "^8.15.0",
145145
"vite": "^7.0.5",

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/features/applications/components/application-local-state.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function ApplicationLocalState({ application }: Props) {
2929

3030
return (
3131
<div className="space-y-4 overflow-hidden">
32-
<div className="max-w-[35rem] rounded-md border border-input bg-popover text-popover-foreground">
32+
<div className="max-w-140 rounded-md border border-input bg-popover text-popover-foreground">
3333
<div className="flex items-center px-3">
3434
<MagnifyingGlassIcon className="mr-2 size-4 shrink-0 opacity-50" />
3535
<input
@@ -39,7 +39,7 @@ export function ApplicationLocalState({ application }: Props) {
3939
id="local-state-address"
4040
value={address}
4141
onChange={handleInput}
42-
className="flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"
42+
className="flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"
4343
/>
4444
<Button
4545
onClick={handleClear}

src/features/common/components/badge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { CircleDollarSign, SquareArrowRight, Bolt, Snowflake, ShieldCheck, Key,
55
import { TransactionType } from '@/features/transactions/models'
66

77
const badgeVariants = cva(
8-
'inline-flex h-5 items-center truncate rounded-md border px-1.5 py-0.5 text-xs tracking-tighter transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',
8+
'inline-flex h-5 items-center truncate rounded-md border px-1.5 py-0.5 text-xs tracking-tighter transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2',
99
{
1010
variants: {
1111
variant: {

src/features/common/components/button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Loader2 as Loader } from 'lucide-react'
77
import { Tooltip, TooltipContent, TooltipTrigger } from './tooltip'
88

99
const buttonVariants = cva(
10-
'relative 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',
10+
'relative 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',
1111
{
1212
variants: {
1313
variant: {

src/features/common/components/card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as React from 'react'
33
import { cn } from '@/features/common/utils'
44

55
const Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (
6-
<div ref={ref} className={cn('rounded-lg border bg-card text-card-foreground shadow-sm p-4 [&:has(_h2)]:pt-2.5', className)} {...props} />
6+
<div ref={ref} className={cn('rounded-lg border bg-card text-card-foreground shadow-xs p-4 [&:has(h2)]:pt-2.5', className)} {...props} />
77
))
88
Card.displayName = 'Card'
99

src/features/common/components/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 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 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/features/common/components/command.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const CommandInput = React.forwardRef<
4646
<CommandPrimitive.Input
4747
ref={ref}
4848
className={cn(
49-
'flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50',
49+
'flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50',
5050
className
5151
)}
5252
{...props}
@@ -123,7 +123,7 @@ const CommandItem = React.forwardRef<
123123
<CommandPrimitive.Item
124124
ref={ref}
125125
className={cn(
126-
'relative flex cursor-pointer 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=true]:pointer-events-none data-[disabled=true]:opacity-50',
126+
'relative flex cursor-pointer 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=true]:pointer-events-none data-[disabled=true]:opacity-50',
127127
className
128128
)}
129129
{...props}

src/features/common/components/description-list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function DescriptionList({ items, dtClassName }: Props) {
1616
{items.map((item, index) => (
1717
<dl key={index} className={cn('grid grid-cols-subgrid col-span-2')}>
1818
<dt className={cn('font-medium', dtClassName)}>{item.dt}</dt>
19-
<dd className={cn('overflow-ellipsis whitespace-normal overflow-hidden')}>
19+
<dd className={cn('text-ellipsis whitespace-normal overflow-hidden')}>
2020
{typeof item.dd === 'bigint' ? item.dd.toString() : item.dd}
2121
</dd>
2222
</dl>

0 commit comments

Comments
 (0)