Skip to content

Commit

Permalink
chore: replace radix icon package with react icons
Browse files Browse the repository at this point in the history
  • Loading branch information
mrevanzak committed Jun 13, 2024
1 parent 8b37037 commit b82bb80
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 25 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
"@nextui-org/scroll-shadow": "^2.1.16",
"@nextui-org/system": "^2.1.2",
"@nextui-org/theme": "^2.2.3",
"@radix-ui/react-icons": "^1.3.0",
"ai": "^3.1.12",
"class-variance-authority": "^0.7.0",
"framer-motion": "^11.2.5",
"next-themes": "^0.3.0",
"react-hook-form": "^7.51.1",
"react-icons": "^5.2.0",
"sonner": "^1.4.41",
"tailwind-merge": "^2.2.2",
"tailwindcss-animate": "^1.0.7"
Expand Down
6 changes: 3 additions & 3 deletions packages/ui/src/theme.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"use client";

import * as React from "react";
import { MoonIcon, SunIcon } from "@radix-ui/react-icons";
import { ThemeProvider, useTheme } from "next-themes";
import { RxMoon, RxSun } from "react-icons/rx";

import { Button } from "./button";
import {
Expand All @@ -19,8 +19,8 @@ function ThemeToggle() {
<Dropdown classNames={{ content: "min-w-32 bg-default-50" }}>
<DropdownTrigger>
<Button variant="bordered" isIconOnly>
<SunIcon className="size-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" />
<MoonIcon className="absolute size-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" />
<RxSun className="size-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" />
<RxMoon className="absolute size-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" />
<span className="sr-only">Toggle theme</span>
</Button>
</DropdownTrigger>
Expand Down
37 changes: 16 additions & 21 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
# bun ./bun.lockb --hash: D249F1970781A1F1-268e849db8d1a47e-3705B8BEBD7D1D5D-669f0a91505def1c
# bun ./bun.lockb --hash: 1E4D54D7C9070103-fbb7f04f255b9fbb-13F7D41AAA90E70E-75c067e4c4140424


"@ai-sdk/[email protected]":
Expand Down Expand Up @@ -2835,11 +2835,6 @@
"@radix-ui/react-primitive" "1.0.3"
"@radix-ui/react-use-callback-ref" "1.0.1"

"@radix-ui/react-icons@^1.3.0":
version "1.3.0"
resolved "https://registry.npmjs.org/@radix-ui/react-icons/-/react-icons-1.3.0.tgz"
integrity sha512-jQxj/0LKgp+j9BiTXz3O3sgs26RNet2iLWmsPyRz2SIcR4q/4SbazXfnYwbAr+vLYKSfc7qxzyGQA1HLlYiuNw==

"@radix-ui/[email protected]":
version "1.0.1"
resolved "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.0.1.tgz"
Expand Down Expand Up @@ -3906,7 +3901,7 @@
resolved "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.38.0.tgz"
integrity sha512-QtkoxvFcu52mNpp3+qOo9H265m3rt83Dgbw5WnNyJvr83cegrQ7zT8haHhL4Rul6ZQkeovxyWbXVW9zI0WYx6g==

"@tanstack/react-query@^5.25.0":
"@tanstack/react-query@^5.25.0", "@tanstack/react-query@^5.40.0":
version "5.39.0"
resolved "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.39.0.tgz"
integrity sha512-zc0WnyEffyTgG+myLv8cY2tJOUT6jOprCiprpbMqylCaCFipSDUPCYCt2AC+qxgk2CFuqiI/fjb1u5/HhLkrPg==
Expand Down Expand Up @@ -3972,12 +3967,12 @@
"@nextui-org/scroll-shadow" "^2.1.16"
"@nextui-org/system" "^2.1.2"
"@nextui-org/theme" "^2.2.3"
"@radix-ui/react-icons" "^1.3.0"
ai "^3.1.12"
class-variance-authority "^0.7.0"
framer-motion "^11.2.5"
next-themes "^0.3.0"
react-hook-form "^7.51.1"
react-icons "^5.2.0"
sonner "^1.4.41"
tailwind-merge "^2.2.2"
tailwindcss-animate "^1.0.7"
Expand Down Expand Up @@ -4033,7 +4028,7 @@
react-icons "^5.2.0"
recharts "^2.12.7"
superjson "2.2.1"
vaul ""
vaul "^0.9.1"
zod "^3.23.0"
zod-validation-error "^3.3.0"

Expand All @@ -4042,20 +4037,20 @@
resolved "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz"
integrity sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==

"@trpc/[email protected].390+d846f1796", "@trpc/client@next":
version "11.0.0-rc.390"
resolved "https://registry.npmjs.org/@trpc/client/-/client-11.0.0-rc.390.tgz"
integrity sha512-IT/hEekDy+ZXLFv+3NeeqcT2ka80SDyn/Yit2G7bp0xNJPjzB3l2qJvNppc3j2DrJgXWoa4lWuhVmJQA93Yf6w==
"@trpc/[email protected].403+ab71a1be6", "@trpc/client@next":
version "11.0.0-rc.403"
resolved "https://registry.npmjs.org/@trpc/client/-/client-11.0.0-rc.403.tgz"
integrity sha512-4Elc4/PQI1H2Mpt3VWVINtYI8HhuPkvu/xowGDlHhYemmuvR3OqnE4H3I1XiPS9EXDOT397VadTJ5eGhQIZxPA==

"@trpc/react-query@next":
version "11.0.0-rc.390"
resolved "https://registry.npmjs.org/@trpc/react-query/-/react-query-11.0.0-rc.390.tgz"
integrity sha512-SVty+Kx3C7CL357Q7QmI+8X/Elj4B3qtUOpP+NBpanoKpIbS9FbZHqm73rPYE0MrM+jukT8s3hLmwYnn16xQrA==
version "11.0.0-rc.403"
resolved "https://registry.npmjs.org/@trpc/react-query/-/react-query-11.0.0-rc.403.tgz"
integrity sha512-a4emDWo0EBTPULqzC92pJaJYTjM71GzdZfYcKYMxGMaevruUQAgmnXumeTkUUrj3QP6eszxVgolSu69Jw+iiSQ==

"@trpc/[email protected].390+d846f1796", "@trpc/server@next":
version "11.0.0-rc.390"
resolved "https://registry.npmjs.org/@trpc/server/-/server-11.0.0-rc.390.tgz"
integrity sha512-jDAG1atsGt9Uf6dv1x+JbAumCpHVHOmbezyogn8k68lgY9IlWHqvFSQXzF9Le9MH9sl7fh2sZ9u+LDO5oyraRw==
"@trpc/[email protected].403+ab71a1be6", "@trpc/server@next":
version "11.0.0-rc.403"
resolved "https://registry.npmjs.org/@trpc/server/-/server-11.0.0-rc.403.tgz"
integrity sha512-DIt0GijW3nzq3zk9rFw1Ly/b6E9eTcsKV+caOMSeJl6A7Pby8QpdKaN8yJZDHhEojULeIVFNE4Izals5T0fQgg==

"@trysound/[email protected]":
version "0.2.0"
Expand Down Expand Up @@ -8515,7 +8510,7 @@ rc@^1.0.1, rc@^1.1.6:
minimist "^1.2.0"
strip-json-comments "~2.0.1"

react@*, [email protected], "react@>= 16.0.0", "react@>= 16.8 || 18.0.0", "react@>= 16.8.0 || 17.x.x || ^18.0.0-0", react@>=16.6.0, react@>=16.8.0, react@>=18, react@>=18.2.0, "react@^0.14 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0", "react@^16.0.0 || ^17.0.0 || ^18.0.0", "react@^16.11.0 || ^17.0.0 || ^18.0.0", "react@^16.5.1 || ^17.0.0 || ^18.0.0", "react@^16.8 || ^17 || ^18", "react@^16.8.0 || ^17.0.0-rc.1 || ^18.0.0", "react@^16.x || ^17.x || ^18.x", react@^18.0.0, react@^18.2.0, "react@^18.2.0 || ^19.0.0-0", react@^18.3.1:
react@*, [email protected], "react@>= 16.0.0", "react@>= 16.8 || 18.0.0", "react@>= 16.8.0 || 17.x.x || ^18.0.0-0", react@>=16.6.0, react@>=16.8.0, react@>=18, react@>=18.2.0, "react@^0.14 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0", "react@^16.0.0 || ^17.0.0 || ^18.0.0", "react@^16.11.0 || ^17.0.0 || ^18.0.0", "react@^16.5.1 || ^17.0.0 || ^18.0.0", "react@^16.8 || ^17 || ^18", "react@^16.8.0 || ^17.0.0-rc.1 || ^18.0.0", react@^18.0.0, react@^18.2.0, "react@^18.2.0 || ^19.0.0-0", react@^18.3.1:
version "18.3.1"
resolved "https://registry.npmjs.org/react/-/react-18.3.1.tgz"
integrity sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==
Expand Down

0 comments on commit b82bb80

Please sign in to comment.