Skip to content

Commit 28a4e2e

Browse files
authored
update next-themes (#163)
1 parent 6da21dd commit 28a4e2e

File tree

5 files changed

+21
-20
lines changed

5 files changed

+21
-20
lines changed

.changeset/green-berries-fail.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@enalmada/nextui-admin": patch
3+
---
4+
5+
update to next-themes

bun.lockb

-1.63 KB
Binary file not shown.

dist/navbar/darkmodeswitch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// src/navbar/darkmodeswitch.tsx
2-
import { useTheme as useNextTheme } from "@enalmada/next-themes";
2+
import { useTheme as useNextTheme } from "next-themes";
33
import { Switch } from "@nextui-org/react";
44
import React from "react";
55
var DarkModeSwitch = () => {

package.json

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,37 +16,35 @@
1616
"type-check": "tsc --noEmit"
1717
},
1818
"dependencies": {
19-
"@enalmada/next-themes": "0.3.0",
19+
"next-themes": "0.4.4",
2020
"change-case": "5.4.4"
2121
},
2222
"devDependencies": {
2323
"@biomejs/biome": "1.9.4",
24-
"@changesets/cli": "2.27.9",
25-
"@enalmada/bun-externals": "0.0.7",
24+
"@changesets/cli": "2.27.10",
25+
"@enalmada/bun-externals": "0.0.8",
2626
"@scaleway/changesets-renovate": "2.1.2",
27-
"@types/node": "22.7.7",
28-
"@types/react": "18.3.11",
27+
"@types/node": "22.10.1",
28+
"@types/react": "19.0.1",
2929
"cross-env": "7.0.3",
3030
"fixpack": "4.0.0",
31-
"husky": "9.1.6",
32-
"lint-staged": "15.2.10",
33-
"typescript": "5.6.3",
34-
"vitest": "2.1.3"
31+
"husky": "9.1.7",
32+
"lint-staged": "15.2.11",
33+
"typescript": "5.7.2",
34+
"vitest": "2.1.8"
3535
},
3636
"peerDependencies": {
3737
"@nextui-org/react": "^2.1.13",
3838
"clsx": "^2.0.0",
3939
"framer-motion": "^10.16.4 || ^11.0.0",
40-
"next": "^13.5.4 || ^14.0.0",
41-
"react": "^18.2.0"
40+
"next": "^13.5.4 || ^14.0.0 || ^15.0.0",
41+
"react": "^18.2.0 || ^19"
4242
},
4343
"main": "dist/index.js",
4444
"types": "dist/index.d.ts",
4545
"author": "Adam Lane",
4646
"description": "nextui admin components",
47-
"keywords": [
48-
"nextui admin"
49-
],
47+
"keywords": ["nextui admin"],
5048
"license": "MIT",
5149
"bugs": {
5250
"url": "https://github.com/Enalmada/nextui-admin/issues"
@@ -61,8 +59,6 @@
6159
"access": "public"
6260
},
6361
"type": "module",
64-
"packageManager": "[email protected]",
65-
"trustedDependencies": [
66-
"@biomejs/biome"
67-
]
62+
"packageManager": "[email protected]",
63+
"trustedDependencies": ["@biomejs/biome"]
6864
}

src/navbar/darkmodeswitch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { useTheme as useNextTheme } from "@enalmada/next-themes";
21
import { Switch } from "@nextui-org/react";
2+
import { useTheme as useNextTheme } from "next-themes";
33
import React from "react";
44

55
export const DarkModeSwitch = () => {

0 commit comments

Comments
 (0)