mirror of
https://github.com/mantinedev/next-app-template.git
synced 2025-11-16 09:41:07 +10:00
Compare commits
6 Commits
406145dd0d
...
next-15
| Author | SHA1 | Date | |
|---|---|---|---|
| 80772b4044 | |||
| 8f50381361 | |||
| 6f71ff274f | |||
| bf2c8f2863 | |||
| ba896e0c50 | |||
| aa2c27d9b9 |
@ -1,16 +1,16 @@
|
|||||||
import type { StorybookConfig } from '@storybook/nextjs';
|
import type { StorybookConfig } from '@storybook/nextjs';
|
||||||
|
|
||||||
const config: StorybookConfig = {
|
const config: StorybookConfig = {
|
||||||
|
core: {
|
||||||
|
disableWhatsNewNotifications: true,
|
||||||
|
disableTelemetry: true,
|
||||||
|
enableCrashReports: false,
|
||||||
|
},
|
||||||
stories: ['../components/**/*.(stories|story).@(js|jsx|ts|tsx)'],
|
stories: ['../components/**/*.(stories|story).@(js|jsx|ts|tsx)'],
|
||||||
addons: [
|
addons: ['storybook-dark-mode'],
|
||||||
'@storybook/addon-essentials',
|
|
||||||
'storybook-dark-mode',
|
|
||||||
'@storybook/addon-styling-webpack',
|
|
||||||
],
|
|
||||||
framework: {
|
framework: {
|
||||||
name: '@storybook/nextjs',
|
name: '@storybook/nextjs',
|
||||||
options: {},
|
options: {},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
|||||||
@ -6,6 +6,13 @@ import { DARK_MODE_EVENT_NAME } from 'storybook-dark-mode';
|
|||||||
import { MantineProvider, useMantineColorScheme } from '@mantine/core';
|
import { MantineProvider, useMantineColorScheme } from '@mantine/core';
|
||||||
import { theme } from '../theme';
|
import { theme } from '../theme';
|
||||||
|
|
||||||
|
export const parameters = {
|
||||||
|
layout: 'fullscreen',
|
||||||
|
options: {
|
||||||
|
showPanel: false,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
const channel = addons.getChannel();
|
const channel = addons.getChannel();
|
||||||
|
|
||||||
function ColorSchemeWrapper({ children }: { children: React.ReactNode }) {
|
function ColorSchemeWrapper({ children }: { children: React.ReactNode }) {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1,3 +1,3 @@
|
|||||||
nodeLinker: node-modules
|
nodeLinker: node-modules
|
||||||
|
|
||||||
yarnPath: .yarn/releases/yarn-4.4.1.cjs
|
yarnPath: .yarn/releases/yarn-4.5.0.cjs
|
||||||
|
|||||||
@ -11,7 +11,7 @@ export const metadata = {
|
|||||||
|
|
||||||
export default function RootLayout({ children }: { children: any }) {
|
export default function RootLayout({ children }: { children: any }) {
|
||||||
return (
|
return (
|
||||||
<html lang="en">
|
<html lang="en" suppressHydrationWarning>
|
||||||
<head>
|
<head>
|
||||||
<ColorSchemeScript />
|
<ColorSchemeScript />
|
||||||
<link rel="shortcut icon" href="/favicon.svg" />
|
<link rel="shortcut icon" href="/favicon.svg" />
|
||||||
|
|||||||
2
next-env.d.ts
vendored
2
next-env.d.ts
vendored
@ -2,4 +2,4 @@
|
|||||||
/// <reference types="next/image-types/global" />
|
/// <reference types="next/image-types/global" />
|
||||||
|
|
||||||
// NOTE: This file should not be edited
|
// NOTE: This file should not be edited
|
||||||
// see https://nextjs.org/docs/basic-features/typescript for more information.
|
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
|
||||||
|
|||||||
11
package.json
11
package.json
@ -19,11 +19,11 @@
|
|||||||
"storybook:build": "storybook build"
|
"storybook:build": "storybook build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mantine/core": "7.12.2",
|
"@mantine/core": "7.13.3",
|
||||||
"@mantine/hooks": "7.12.2",
|
"@mantine/hooks": "7.13.3",
|
||||||
"@next/bundle-analyzer": "^14.2.4",
|
"@next/bundle-analyzer": "^14.2.4",
|
||||||
"@tabler/icons-react": "^3.6.0",
|
"@tabler/icons-react": "^3.6.0",
|
||||||
"next": "14.2.4",
|
"next": "15.0.1",
|
||||||
"react": "18.3.1",
|
"react": "18.3.1",
|
||||||
"react-dom": "18.3.1"
|
"react-dom": "18.3.1"
|
||||||
},
|
},
|
||||||
@ -31,9 +31,6 @@
|
|||||||
"@babel/core": "^7.24.7",
|
"@babel/core": "^7.24.7",
|
||||||
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
|
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
|
||||||
"@next/eslint-plugin-next": "^14.2.4",
|
"@next/eslint-plugin-next": "^14.2.4",
|
||||||
"@storybook/addon-essentials": "^8.1.10",
|
|
||||||
"@storybook/addon-styling-webpack": "^1.0.0",
|
|
||||||
"@storybook/blocks": "^8.1.10",
|
|
||||||
"@storybook/nextjs": "^8.1.10",
|
"@storybook/nextjs": "^8.1.10",
|
||||||
"@storybook/react": "^8.1.10",
|
"@storybook/react": "^8.1.10",
|
||||||
"@testing-library/dom": "^10.1.0",
|
"@testing-library/dom": "^10.1.0",
|
||||||
@ -69,5 +66,5 @@
|
|||||||
"ts-jest": "^29.1.5",
|
"ts-jest": "^29.1.5",
|
||||||
"typescript": "5.5.2"
|
"typescript": "5.5.2"
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@4.4.1"
|
"packageManager": "yarn@4.5.0"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user