Skip to content

Commit 20a85d9

Browse files
committed
fix darkmode
1 parent 49667e6 commit 20a85d9

File tree

8 files changed

+17
-73
lines changed

8 files changed

+17
-73
lines changed

.storybook-s2/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const config: StorybookConfig = {
2222
addons: [
2323
'./custom-addons/provider/register',
2424
// "@storybook/addon-styling-webpack",
25-
"storybook-dark-mode",
25+
"storybook-dark-mode2",
2626
"@storybook/addon-a11y",
2727
],
2828
framework: {

.storybook-s2/preview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import '@react-spectrum/s2/page.css';
22
import { themes } from 'storybook/theming';
3-
import { DARK_MODE_EVENT_NAME } from 'storybook-dark-mode';
4-
import { store } from 'storybook-dark-mode/dist/esm/Tool';
3+
import { DARK_MODE_EVENT_NAME } from 'storybook-dark-mode2';
4+
import { store } from 'storybook-dark-mode2/dist/esm/Tool';
55
import { addons } from 'storybook/preview-api';
66
import React, { useEffect, useState } from 'react';
77
import {withProviderSwitcher} from './custom-addons/provider';

.storybook/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
addons: [
1010
"storybook/actions",
1111
"@storybook/addon-a11y",
12-
"storybook-dark-mode",
12+
"storybook-dark-mode2",
1313
'./custom-addons/provider/register.js',
1414
'./custom-addons/descriptions/register.js',
1515
'./custom-addons/theme/register.js',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
"sharp": "^0.33.5",
194194
"sinon": "^7.3.1",
195195
"storybook": "^9.0.4",
196-
"storybook-dark-mode": "^4.0.2",
196+
"storybook-dark-mode2": "^5.4.0",
197197
"storybook-react-parcel": "workspace:^",
198198
"tailwind-variants": "patch:tailwind-variants@npm%3A0.3.1#~/.yarn/patches/tailwind-variants-npm-0.3.1-48888516de.patch",
199199
"tailwindcss": "^4.0.0",

packages/dev/storybook-builder-parcel/gen-iframe-modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { normalizeStories } = require("@storybook/core-common");
1+
const { normalizeStories } = require("storybook/internal/common");
22

33
const TEMPLATE = `<!DOCTYPE html>
44
<html lang="en">

packages/dev/storybook-builder-parcel/gen-preview-modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const {
33
loadPreviewOrConfigFile,
44
normalizeStories,
55
stripAbsNodeModulesPath,
6-
} = require("@storybook/core-common");
6+
} = require("storybook/internal/common");
77
const {relativePath} = require('@parcel/utils');
88

99
module.exports.generatePreviewModern = async function generatePreviewModern(

starters/docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"react-aria-components": "latest",
2121
"react-dom": "^19.1.0",
2222
"storybook": "^9.0.4",
23-
"storybook-dark-mode": "^4.0.2",
23+
"storybook-dark-mode2": "^5.4.0",
2424
"typescript": "5.3.3"
2525
},
2626
"resolutions": {

yarn.lock

Lines changed: 9 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -9152,24 +9152,6 @@ __metadata:
91529152
languageName: node
91539153
linkType: hard
91549154

9155-
"@storybook/components@npm:^8.0.0":
9156-
version: 8.6.14
9157-
resolution: "@storybook/components@npm:8.6.14"
9158-
peerDependencies:
9159-
storybook: ^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0
9160-
checksum: 10c0/43a9192f312c8b2ac1aaeabcfc7c766215e934efd340b01edd9e71ca194ebf30ac896f60817ed539aec9d4183dc77296056e78c5c3705607875df79df7ab7acc
9161-
languageName: node
9162-
linkType: hard
9163-
9164-
"@storybook/core-events@npm:^8.0.0":
9165-
version: 8.6.14
9166-
resolution: "@storybook/core-events@npm:8.6.14"
9167-
peerDependencies:
9168-
storybook: ^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0
9169-
checksum: 10c0/8fc9941e3ef9954ed82a845e29867ba4bcc2e0c1749c1ab6a916a24d3941d878cc509769b6c0c073e78ec91d22c7895787219bb6b5d3e787c8223963dbef6b3e
9170-
languageName: node
9171-
linkType: hard
9172-
91739155
"@storybook/csf-plugin@npm:9.0.18":
91749156
version: 9.0.18
91759157
resolution: "@storybook/csf-plugin@npm:9.0.18"
@@ -9206,7 +9188,7 @@ __metadata:
92069188
languageName: node
92079189
linkType: hard
92089190

9209-
"@storybook/icons@npm:^1.2.12, @storybook/icons@npm:^1.2.5":
9191+
"@storybook/icons@npm:^1.2.12, @storybook/icons@npm:^1.4.0":
92109192
version: 1.4.0
92119193
resolution: "@storybook/icons@npm:1.4.0"
92129194
peerDependencies:
@@ -9228,15 +9210,6 @@ __metadata:
92289210
languageName: node
92299211
linkType: hard
92309212

9231-
"@storybook/manager-api@npm:^8.0.0":
9232-
version: 8.6.14
9233-
resolution: "@storybook/manager-api@npm:8.6.14"
9234-
peerDependencies:
9235-
storybook: ^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0
9236-
checksum: 10c0/141089caf50df9f1dbd18c22b8e8dfa45641f67ab148c9956c046c0141ff7a70f3341f440c454d5f6247dac389499d67bad8b6c81cbcd6f08c7fe34bf42fd264
9237-
languageName: node
9238-
linkType: hard
9239-
92409213
"@storybook/react-dom-shim@npm:9.0.18":
92419214
version: 9.0.18
92429215
resolution: "@storybook/react-dom-shim@npm:9.0.18"
@@ -9297,15 +9270,6 @@ __metadata:
92979270
languageName: node
92989271
linkType: hard
92999272

9300-
"@storybook/theming@npm:^8.0.0":
9301-
version: 8.6.14
9302-
resolution: "@storybook/theming@npm:8.6.14"
9303-
peerDependencies:
9304-
storybook: ^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0
9305-
checksum: 10c0/765bfbfedcbdcdb719b164a14bb61b8ad60819c6124d0e1f243b6b45e62de877ec8dff6259092207a58d6c2771f4883650e9784a2be1aaf7e0ef0fe75465db0d
9306-
languageName: node
9307-
linkType: hard
9308-
93099273
"@stylistic/eslint-plugin-ts@npm:^2.9.0":
93109274
version: 2.9.0
93119275
resolution: "@stylistic/eslint-plugin-ts@npm:2.9.0"
@@ -21727,13 +21691,6 @@ __metadata:
2172721691
languageName: node
2172821692
linkType: hard
2172921693

21730-
"map-or-similar@npm:^1.5.0":
21731-
version: 1.5.0
21732-
resolution: "map-or-similar@npm:1.5.0"
21733-
checksum: 10c0/33c6ccfdc272992e33e4e99a69541a3e7faed9de3ac5bc732feb2500a9ee71d3f9d098980a70b7746e7eeb7f859ff7dfb8aa9b5ecc4e34170a32ab78cfb18def
21734-
languageName: node
21735-
linkType: hard
21736-
2173721694
"map-stream@npm:0.0.7":
2173821695
version: 0.0.7
2173921696
resolution: "map-stream@npm:0.0.7"
@@ -22027,15 +21984,6 @@ __metadata:
2202721984
languageName: node
2202821985
linkType: hard
2202921986

22030-
"memoizerific@npm:^1.11.3":
22031-
version: 1.11.3
22032-
resolution: "memoizerific@npm:1.11.3"
22033-
dependencies:
22034-
map-or-similar: "npm:^1.5.0"
22035-
checksum: 10c0/661bf69b7afbfad57f0208f0c63324f4c96087b480708115b78ee3f0237d86c7f91347f6db31528740b2776c2e34c709bcb034e1e910edee2270c9603a0a469e
22036-
languageName: node
22037-
linkType: hard
22038-
2203921987
"meow@npm:^3.3.0":
2204021988
version: 3.7.0
2204121989
resolution: "meow@npm:3.7.0"
@@ -25838,7 +25786,7 @@ __metadata:
2583825786
sharp: "npm:^0.33.5"
2583925787
sinon: "npm:^7.3.1"
2584025788
storybook: "npm:^9.0.4"
25841-
storybook-dark-mode: "npm:^4.0.2"
25789+
storybook-dark-mode2: "npm:^5.4.0"
2584225790
storybook-react-parcel: "workspace:^"
2584325791
tailwind-variants: "patch:tailwind-variants@npm%3A0.3.1#~/.yarn/patches/tailwind-variants-npm-0.3.1-48888516de.patch"
2584425792
tailwindcss: "npm:^4.0.0"
@@ -27874,19 +27822,15 @@ __metadata:
2787427822
languageName: unknown
2787527823
linkType: soft
2787627824

27877-
"storybook-dark-mode@npm:^4.0.2":
27878-
version: 4.0.2
27879-
resolution: "storybook-dark-mode@npm:4.0.2"
27825+
"storybook-dark-mode2@npm:^5.4.0":
27826+
version: 5.4.0
27827+
resolution: "storybook-dark-mode2@npm:5.4.0"
2788027828
dependencies:
27881-
"@storybook/components": "npm:^8.0.0"
27882-
"@storybook/core-events": "npm:^8.0.0"
27883-
"@storybook/global": "npm:^5.0.0"
27884-
"@storybook/icons": "npm:^1.2.5"
27885-
"@storybook/manager-api": "npm:^8.0.0"
27886-
"@storybook/theming": "npm:^8.0.0"
27829+
"@storybook/icons": "npm:^1.4.0"
2788727830
fast-deep-equal: "npm:^3.1.3"
27888-
memoizerific: "npm:^1.11.3"
27889-
checksum: 10c0/d4fc652ff080f6cc9f0effab0c989b66ead3372b267c2c328eef608f27c9822bf47aaa177405e42768b2de22f8a3e9a0280af50430efd0cf78bd6ed1f12c8b29
27831+
peerDependencies:
27832+
storybook: ^9.0.0
27833+
checksum: 10c0/548ef870a2210b3bc597ed1b139816a674072f551df2a979af0677c47bd2b74a48c098fc30d50838b35a26afb1d25ffab3be60946805faf1eed8ca7827edde02
2789027834
languageName: node
2789127835
linkType: hard
2789227836

0 commit comments

Comments
 (0)