From 1a27af0212fdac0d47e13e48bbfd46fc0f3071c8 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 26 Apr 2026 21:38:20 -0500 Subject: [PATCH] Apply @tailwindcss/upgrade canonical class migrations Ran `npx @tailwindcss/upgrade`. Bumps tailwindcss and @tailwindcss/vite to 4.2.x and migrates arbitrary-value syntax to the canonical v4 shorthands (e.g. translate-x-[var(--x)] \u2192 translate-x-(--x), whitespace cleanups inside calc()). --- .../files/components/AudioVisualizer.tsx | 2 +- .../note-content/files/components/NoteContent.tsx | 2 +- .../note-content/files/components/WebxdcEmbed.tsx | 2 +- .agents/skills/nwc/files/components/ZapDialog.tsx | 8 ++++---- .agents/skills/theming/SKILL.md | 2 +- package-lock.json | 4 ++-- package.json | 4 ++-- src/components/ui/alert.tsx | 2 +- src/components/ui/breadcrumb.tsx | 2 +- src/components/ui/chart.tsx | 2 +- src/components/ui/dropdown-menu.tsx | 14 +++++++------- src/components/ui/menubar.tsx | 14 +++++++------- src/components/ui/navigation-menu.tsx | 6 +++--- src/components/ui/select.tsx | 8 ++++---- src/components/ui/slider.tsx | 2 +- src/components/ui/table.tsx | 4 ++-- src/components/ui/toast-variants.ts | 2 +- src/components/ui/tooltip.tsx | 2 +- 18 files changed, 41 insertions(+), 41 deletions(-) diff --git a/.agents/skills/note-content/files/components/AudioVisualizer.tsx b/.agents/skills/note-content/files/components/AudioVisualizer.tsx index dcc143b..4db74fb 100644 --- a/.agents/skills/note-content/files/components/AudioVisualizer.tsx +++ b/.agents/skills/note-content/files/components/AudioVisualizer.tsx @@ -33,7 +33,7 @@ export function AudioVisualizer({ )} onClick={(e) => e.stopPropagation()} > -
+
{avatarUrl ? ( ) : ( diff --git a/.agents/skills/note-content/files/components/NoteContent.tsx b/.agents/skills/note-content/files/components/NoteContent.tsx index 345ce36..1751dae 100644 --- a/.agents/skills/note-content/files/components/NoteContent.tsx +++ b/.agents/skills/note-content/files/components/NoteContent.tsx @@ -599,7 +599,7 @@ export function NoteContent({ }, [groupedTokens]); return ( -
+
{groupedTokens.map((token, i) => { switch (token.type) { case 'text': diff --git a/.agents/skills/note-content/files/components/WebxdcEmbed.tsx b/.agents/skills/note-content/files/components/WebxdcEmbed.tsx index 9feafdc..06d6e09 100644 --- a/.agents/skills/note-content/files/components/WebxdcEmbed.tsx +++ b/.agents/skills/note-content/files/components/WebxdcEmbed.tsx @@ -29,7 +29,7 @@ export function WebxdcEmbed({ url, name, icon, className }: WebxdcEmbedProps) { )} > {icon && ( - + )}
{name ?? 'WebXDC app'}
diff --git a/.agents/skills/nwc/files/components/ZapDialog.tsx b/.agents/skills/nwc/files/components/ZapDialog.tsx index 8c44afb..4879304 100644 --- a/.agents/skills/nwc/files/components/ZapDialog.tsx +++ b/.agents/skills/nwc/files/components/ZapDialog.tsx @@ -413,10 +413,10 @@ export function ZapDialog({ target, children, className }: ZapDialogProps) { - + {invoice ? 'Lightning Payment' : 'Send a Zap'} - + {invoice ? ( 'Pay with Bitcoin Lightning Network' ) : ( @@ -441,10 +441,10 @@ export function ZapDialog({ target, children, className }: ZapDialogProps) { - + {invoice ? 'Lightning Payment' : 'Send a Zap'} - + {invoice ? ( 'Pay with Bitcoin Lightning Network' ) : ( diff --git a/.agents/skills/theming/SKILL.md b/.agents/skills/theming/SKILL.md index fe2ef32..6c309a7 100644 --- a/.agents/skills/theming/SKILL.md +++ b/.agents/skills/theming/SKILL.md @@ -106,7 +106,7 @@ When placing decorative elements behind content with `-z-10` (e.g. blurred backg ```tsx
-
+
{/* content */}
``` diff --git a/package-lock.json b/package-lock.json index 37e9725..73f38aa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -45,7 +45,7 @@ "@html-eslint/eslint-plugin": "^0.41.0", "@html-eslint/parser": "^0.41.0", "@tailwindcss/typography": "^0.5.16", - "@tailwindcss/vite": "^4.1.0", + "@tailwindcss/vite": "^4.2.4", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.3.0", "@types/node": "^22.5.5", @@ -58,7 +58,7 @@ "eslint-plugin-react-refresh": "^0.4.9", "globals": "^15.9.0", "jsdom": "^26.1.0", - "tailwindcss": "^4.1.0", + "tailwindcss": "^4.2.4", "typescript": "^5.5.3", "typescript-eslint": "^8.0.1", "vite": "^8.0.3", diff --git a/package.json b/package.json index 605269d..286ec20 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "@html-eslint/eslint-plugin": "^0.41.0", "@html-eslint/parser": "^0.41.0", "@tailwindcss/typography": "^0.5.16", - "@tailwindcss/vite": "^4.1.0", + "@tailwindcss/vite": "^4.2.4", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.3.0", "@types/node": "^22.5.5", @@ -59,7 +59,7 @@ "eslint-plugin-react-refresh": "^0.4.9", "globals": "^15.9.0", "jsdom": "^26.1.0", - "tailwindcss": "^4.1.0", + "tailwindcss": "^4.2.4", "typescript": "^5.5.3", "typescript-eslint": "^8.0.1", "vite": "^8.0.3", diff --git a/src/components/ui/alert.tsx b/src/components/ui/alert.tsx index f99164e..0d4ddaf 100644 --- a/src/components/ui/alert.tsx +++ b/src/components/ui/alert.tsx @@ -4,7 +4,7 @@ import { cva, type VariantProps } from "class-variance-authority" import { cn } from "@/lib/utils" const alertVariants = cva( - "relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current", + "relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[--spacing(4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current", { variants: { variant: { diff --git a/src/components/ui/breadcrumb.tsx b/src/components/ui/breadcrumb.tsx index 004bb63..f0fa16e 100644 --- a/src/components/ui/breadcrumb.tsx +++ b/src/components/ui/breadcrumb.tsx @@ -13,7 +13,7 @@ function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">) {
    {children}{" "}