From d6589191b72b61c239d5b4312fb2cb22cdb5d1b7 Mon Sep 17 00:00:00 2001 From: Mayank Date: Mon, 16 Dec 2024 10:07:19 +0530 Subject: [PATCH] nextjs-darkmode and nextjs-darkmode-lite very well together --- examples/nextjs/package.json | 1 + examples/nextjs/src/app/layout.tsx | 2 +- pnpm-lock.yaml | 25 +++++++++++++++++++++---- 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/examples/nextjs/package.json b/examples/nextjs/package.json index da1cac8b..138b9f21 100644 --- a/examples/nextjs/package.json +++ b/examples/nextjs/package.json @@ -14,6 +14,7 @@ "@repo/shared": "workspace:*", "next": "^15.1.0", "nextjs-darkmode": "^1.0.7", + "nextjs-darkmode-lite": "^1.0.7", "nextjs-themes": "^4.0.4", "r18gs": "workspace:*", "react": "^19.0.0", diff --git a/examples/nextjs/src/app/layout.tsx b/examples/nextjs/src/app/layout.tsx index 3cbe9544..09ad2a84 100644 --- a/examples/nextjs/src/app/layout.tsx +++ b/examples/nextjs/src/app/layout.tsx @@ -1,6 +1,6 @@ import "./styles.css"; import "react18-loaders/dist/index.css"; -import { Core } from "nextjs-darkmode"; +import { Core } from "nextjs-darkmode-lite"; import { Layout } from "@repo/shared/dist/server"; import { GlobalLoader, Header } from "@repo/shared"; import { Inter } from "next/font/google"; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8feba134..c3034655 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -62,6 +62,9 @@ importers: nextjs-darkmode: specifier: ^1.0.7 version: 1.0.7(@types/react@19.0.1)(next@15.1.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.0))(react@19.0.0) + nextjs-darkmode-lite: + specifier: ^1.0.7 + version: 1.0.7(@types/react@19.0.1)(r18gs@lib)(react@19.0.0) nextjs-themes: specifier: ^4.0.4 version: 4.0.4(@types/react@19.0.1)(next@15.1.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.0))(react@19.0.0) @@ -292,9 +295,6 @@ importers: '@repo/scripts': specifier: workspace:* version: link:../../scripts - next: - specifier: 10 - 14 - version: 14.2.15(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.0) nextjs-darkmode: specifier: ^1.0.7 version: 1.0.7(@types/react@19.0.1)(next@14.2.15(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.0))(react@19.0.0) @@ -4953,6 +4953,13 @@ packages: sass: optional: true + nextjs-darkmode-lite@1.0.7: + resolution: {integrity: sha512-P+Wio6Lp2HBA/4cs24KntiL8Xy7JsfgCI55AAAnvoFJnJJS5i941c83Kxzb81PDrIQeoP+44CafbXBWIXkvWyQ==} + peerDependencies: + '@types/react': 16.8 - 19 + r18gs: ^2 + react: 16.8 - 19 + nextjs-darkmode@1.0.7: resolution: {integrity: sha512-3AxFO5ZFEG+xdt2lOcKQ2QAgNh8QcqnPQDmLFMl2GNYweAmHnnWxjZsHR/mYPFF9aM191w77PZg+EModveUBRQ==} peerDependencies: @@ -7969,7 +7976,8 @@ snapshots: '@microsoft/tsdoc@0.14.2': {} - '@next/env@14.2.15': {} + '@next/env@14.2.15': + optional: true '@next/env@15.1.0': {} @@ -8491,6 +8499,7 @@ snapshots: dependencies: '@swc/counter': 0.1.3 tslib: 2.8.1 + optional: true '@testing-library/dom@10.4.0': dependencies: @@ -12614,6 +12623,7 @@ snapshots: transitivePeerDependencies: - '@babel/core' - babel-plugin-macros + optional: true next@15.1.0(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.0): dependencies: @@ -12641,6 +12651,12 @@ snapshots: - '@babel/core' - babel-plugin-macros + nextjs-darkmode-lite@1.0.7(@types/react@19.0.1)(r18gs@lib)(react@19.0.0): + dependencies: + '@types/react': 19.0.1 + r18gs: link:lib + react: 19.0.0 + nextjs-darkmode@1.0.7(@types/react@19.0.1)(next@14.2.15(@babel/core@7.26.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.83.0))(react@19.0.0): dependencies: '@types/react': 19.0.1 @@ -13982,6 +13998,7 @@ snapshots: react: 19.0.0 optionalDependencies: '@babel/core': 7.26.0 + optional: true styled-jsx@5.1.6(@babel/core@7.26.0)(react@19.0.0): dependencies: