Skip to content

Commit e23dd8f

Browse files
committed
Update tailwind ui
1 parent 7b1fd28 commit e23dd8f

File tree

5 files changed

+65
-10
lines changed

5 files changed

+65
-10
lines changed

apps/web/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
"superjson": "^2.2.1",
5050
"tailwind-merge": "^3.1.0",
5151
"tw-animate-css": "^1.2.5",
52-
"zod": "^3.24.2"
52+
"zod": "^3.24.2",
53+
"@onlook/ui-v4": "*"
5354
},
5455
"devDependencies": {
5556
"@onlook/typescript": "*",

apps/web/src/app/_components/main.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"use client";
22
import { Routes } from "@/utils/constants";
33
import { createClient } from "@/utils/supabase/client";
4+
import { Button } from "@onlook/ui-v4/button";
45
import { type User } from "@supabase/supabase-js";
56
import { redirect } from "next/navigation";
67
import { useEffect, useState } from "react";
@@ -25,14 +26,13 @@ export default function Main() {
2526
return (
2627
<main className="flex min-h-screen flex-col items-center justify-center relative">
2728
{/* Top bar */}
28-
<div className="absolute flex top-0 left-0 w-full h-12 bg-gray-100 items-center justify-end p-2">
29-
29+
<div className="absolute flex top-0 left-0 w-full h-12 items-center justify-end p-2">
3030
{user ? (
3131
<div className="flex items-center gap-2">
3232
<p>{user.user_metadata.name}</p>
33-
<button onClick={handleSignOut}>
33+
<Button onClick={handleSignOut}>
3434
Sign Out
35-
</button>
35+
</Button>
3636
</div>
3737
) : (
3838
<button onClick={() => redirect(Routes.LOGIN)}>

apps/web/src/app/login/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use client'
22

33
import { Dunes } from '@/components/ui/dunes';
4-
import { Button } from '@onlook/ui/button';
5-
import { Icons } from '@onlook/ui/icons';
4+
import { Button } from '@onlook/ui-v4/button';
5+
import { Icons } from '@onlook/ui-v4/icons';
66
import { useTranslations } from 'next-intl';
77
import { useEffect, useState } from 'react';
88
import { login } from './actions';

bun.lock

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,58 @@
254254
"packages/ui": {
255255
"name": "@onlook/ui",
256256
"version": "0.0.0",
257+
"dependencies": {
258+
"@emotion/react": "^11.13.3",
259+
"@emotion/styled": "^11.13.0",
260+
"@onlook/foundation": "*",
261+
"@radix-ui/react-accordion": "^1.2.0",
262+
"@radix-ui/react-alert-dialog": "^1.1.1",
263+
"@radix-ui/react-checkbox": "^1.1.2",
264+
"@radix-ui/react-collapsible": "^1.1.2",
265+
"@radix-ui/react-context-menu": "^2.2.1",
266+
"@radix-ui/react-dialog": "^1.1.1",
267+
"@radix-ui/react-dropdown-menu": "^2.1.1",
268+
"@radix-ui/react-icons": "^1.3.0",
269+
"@radix-ui/react-label": "^2.1.0",
270+
"@radix-ui/react-popover": "^1.1.1",
271+
"@radix-ui/react-progress": "^1.1.0",
272+
"@radix-ui/react-scroll-area": "^1.2.0",
273+
"@radix-ui/react-select": "^2.1.2",
274+
"@radix-ui/react-separator": "^1.1.0",
275+
"@radix-ui/react-slot": "^1.1.0",
276+
"@radix-ui/react-tabs": "^1.1.0",
277+
"@radix-ui/react-toast": "^1.2.1",
278+
"@radix-ui/react-toggle": "^1.1.0",
279+
"@radix-ui/react-toggle-group": "^1.1.0",
280+
"@radix-ui/react-tooltip": "^1.1.2",
281+
"class-variance-authority": "^0.7.0",
282+
"clsx": "^2.1.1",
283+
"cmdk": "1.0.4",
284+
"color-namer": "^1.4.0",
285+
"css-color-names": "^1.0.1",
286+
"lodash.debounce": "^4.0.8",
287+
"motion": "^11.15.0",
288+
"parse-css-color": "^0.2.1",
289+
"prosemirror-view": "^1.34.2",
290+
"react-merge-refs": "^2.1.1",
291+
"tailwind-merge": "^2.3.0",
292+
"tailwind-styled-components": "^2.2.0",
293+
"tailwindcss-animate": "^1.0.7",
294+
"use-eye-dropper": "^1.6.4",
295+
},
296+
"devDependencies": {
297+
"@onlook/typescript": "*",
298+
"@onlook/utility": "*",
299+
"@types/color-namer": "^1.3.3",
300+
"autoprefixer": "^10.4.20",
301+
"react": "^18.3.1",
302+
"react-dom": "^18.3.1",
303+
"typescript": "^5.5.4",
304+
},
305+
},
306+
"packages/ui-v4": {
307+
"name": "@onlook/ui-v4",
308+
"version": "0.0.0",
257309
"dependencies": {
258310
"@emotion/react": "^11.13.3",
259311
"@emotion/styled": "^11.13.0",
@@ -638,6 +690,8 @@
638690

639691
"@onlook/ui": ["@onlook/ui@workspace:packages/ui"],
640692

693+
"@onlook/ui-v4": ["@onlook/ui-v4@workspace:packages/ui-v4"],
694+
641695
"@onlook/utility": ["@onlook/utility@workspace:packages/utility"],
642696

643697
"@onlook/web": ["@onlook/web@workspace:apps/web"],
@@ -2964,7 +3018,7 @@
29643018

29653019
"@npmcli/move-file/rimraf": ["[email protected]", "", { "dependencies": { "glob": "^7.1.3" }, "bin": { "rimraf": "bin.js" } }, "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA=="],
29663020

2967-
"@onlook/ui/tailwindcss": ["[email protected]", "", {}, "sha512-vBYstoFnvUZCDxaauNGQQEvJNQgCd1vSMDRYuZZMH1xRRcTboOk1rJrW5yFkEabU9X6Yx1C4LQ+QvPOvQj4Daw=="],
3021+
"@onlook/ui-v4/tailwindcss": ["[email protected]", "", {}, "sha512-vBYstoFnvUZCDxaauNGQQEvJNQgCd1vSMDRYuZZMH1xRRcTboOk1rJrW5yFkEabU9X6Yx1C4LQ+QvPOvQj4Daw=="],
29683022

29693023
"@onlook/web/@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~6.19.2" } }, "sha512-DHlH/fNL6Mho38jTy7/JT7sn2wnXI+wULR6PV4gy4VHLVvnrV/d3pHAMQHhc4gjdLmK2ZiPoMxzp6B3yRajLSQ=="],
29703024

packages/ui-v4/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@onlook/ui",
3-
"description": "A ui library for Onlook",
2+
"name": "@onlook/ui-v4",
3+
"description": "A tailwind v4 ui library for Onlook",
44
"version": "0.0.0",
55
"private": true,
66
"type": "module",

0 commit comments

Comments
 (0)