24 Commits

Author SHA1 Message Date
06460f0009 Update @mantine/* dependencies to 8.3.7 2025-11-09 12:28:34 +03:00
b8f9de5c17 Update all dependencies (#48) 2025-11-09 07:25:21 +03:00
5fc5f6a18c Add next-env.d.ts to .gitignore (#47)
* Remove next-env

* Add next env to gitignore

* Add typegen to test script
2025-11-04 09:23:43 +03:00
48454f0847 Update storybook to v10 (#45)
* Update all dependencies to v10

* Update module resolution in tsconfig

* Update all dependencies to v10

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vitaly Rtishchev <rtivital@gmail.com>
2025-11-02 19:10:49 +03:00
dcbe29abd6 Update all dependencies (#44)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-02 10:13:03 +03:00
2a9bf8aa25 Update dependencies 2025-10-29 08:50:55 +03:00
0eb5557881 Update @mantine/* dependencies to 8.3.6 2025-10-29 08:49:52 +03:00
161eea40d5 Update Next.js to 16 (#43)
* Update all dependencies to v16

* Update to Next.js 16

* Remove eslint from build

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vitaly Rtishchev <rtivital@gmail.com>
2025-10-26 10:41:40 +03:00
4bb12a4a28 Update all dependencies (#42) 2025-10-26 07:29:24 +03:00
d9831e2cbd Update actions/setup-node action to v6 (#41) 2025-10-19 07:25:43 +03:00
1924944ef2 Update all dependencies (#40) 2025-10-19 07:25:21 +03:00
de0ee08e02 Update actions dependencies (#39)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-12 07:38:12 +03:00
67e5781db0 Update all dependencies (#38) 2025-10-12 07:36:56 +03:00
801324e17e Update dependencies and setup renovate 2025-10-09 22:47:44 +03:00
dba951aee5 Fix broke storybook 2025-10-09 22:43:51 +03:00
ec459e32a1 Update @mantine/* dependencies to 8.3.4 2025-10-09 21:58:09 +03:00
e41a6d974b Update @mantine/* dependencies to 8.3.3 2025-10-02 22:17:33 +03:00
7a9918204c Update dependencies to the latest version 2025-10-01 15:27:25 +03:00
c6079c7741 Update @mantine/* dependencies to 8.3.2 2025-09-23 20:50:17 +03:00
596bfa3093 Update yarn to 4.10.3 2025-09-23 19:28:53 +03:00
8926c997b9 Update yarn to 4.10.2 2025-09-18 21:44:51 +03:00
f3ab9bddb7 Update next lint command 2025-09-12 11:18:49 +03:00
929c09edd7 Update dependencies to the latest version 2025-09-12 11:02:10 +03:00
f5d9bc78ac Update @mantine/* dependencies to 8.3.1 2025-09-12 09:27:55 +03:00
15 changed files with 2790 additions and 3305 deletions

View File

@ -13,8 +13,8 @@ jobs:
test_pull_request: test_pull_request:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v5
- uses: actions/setup-node@v3 - uses: actions/setup-node@v6
with: with:
node-version-file: '.nvmrc' node-version-file: '.nvmrc'
cache: 'yarn' cache: 'yarn'

1
.gitignore vendored
View File

@ -130,3 +130,4 @@ dist
.pnp.* .pnp.*
.DS_Store .DS_Store
next-env.d.ts

2
.nvmrc
View File

@ -1 +1 @@
v24.3.0 24.11.0

View File

@ -1 +1,2 @@
.next .next
next-env.d.ts

View File

@ -7,7 +7,7 @@ const config: StorybookConfig = {
enableCrashReports: false, enableCrashReports: false,
}, },
stories: ['../components/**/*.(stories|story).@(js|jsx|ts|tsx)'], stories: ['../components/**/*.(stories|story).@(js|jsx|ts|tsx)'],
addons: ['storybook-dark-mode'], addons: ['@storybook/addon-themes'],
framework: { framework: {
name: '@storybook/nextjs', name: '@storybook/nextjs',
options: {}, options: {},

View File

@ -1,36 +1,41 @@
import '@mantine/core/styles.css'; import '@mantine/core/styles.css';
import React, { useEffect } from 'react'; import { ColorSchemeScript, MantineProvider } from '@mantine/core';
import { addons } from '@storybook/preview-api';
import { DARK_MODE_EVENT_NAME } from 'storybook-dark-mode';
import { MantineProvider, useMantineColorScheme } from '@mantine/core';
import { theme } from '../theme'; import { theme } from '../theme';
export const parameters = { export const parameters = {
layout: 'fullscreen', layout: 'fullscreen',
options: { options: {
showPanel: false, showPanel: false,
storySort: (a, b) => { // @ts-expect-error storybook throws build error for (a: any, b: any)
return a.title.localeCompare(b.title, undefined, { numeric: true }); storySort: (a, b) => a.title.localeCompare(b.title, undefined, { numeric: true }),
},
backgrounds: { disable: true },
};
export const globalTypes = {
theme: {
name: 'Theme',
description: 'Mantine color scheme',
defaultValue: 'light',
toolbar: {
icon: 'mirror',
items: [
{ value: 'light', title: 'Light' },
{ value: 'dark', title: 'Dark' },
],
}, },
}, },
}; };
const channel = addons.getChannel();
function ColorSchemeWrapper({ children }: { children: React.ReactNode }) {
const { setColorScheme } = useMantineColorScheme();
const handleColorScheme = (value: boolean) => setColorScheme(value ? 'dark' : 'light');
useEffect(() => {
channel.on(DARK_MODE_EVENT_NAME, handleColorScheme);
return () => channel.off(DARK_MODE_EVENT_NAME, handleColorScheme);
}, [channel]);
return <>{children}</>;
}
export const decorators = [ export const decorators = [
(renderStory: any) => <ColorSchemeWrapper>{renderStory()}</ColorSchemeWrapper>, (renderStory: any, context: any) => {
(renderStory: any) => <MantineProvider theme={theme}>{renderStory()}</MantineProvider>, const scheme = (context.globals.theme || 'light') as 'light' | 'dark';
return (
<MantineProvider theme={theme} forceColorScheme={scheme}>
<ColorSchemeScript />
{renderStory()}
</MantineProvider>
);
},
]; ];

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,3 @@
nodeLinker: node-modules nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-4.9.4.cjs yarnPath: .yarn/releases/yarn-4.11.0.cjs

View File

@ -1,11 +1,22 @@
import mantine from 'eslint-config-mantine'; import mantine from 'eslint-config-mantine';
import { defineConfig } from 'eslint/config';
import tseslint from 'typescript-eslint'; import tseslint from 'typescript-eslint';
export default tseslint.config( // @ts-check
export default defineConfig(
tseslint.configs.recommended,
...mantine, ...mantine,
{ ignores: ['**/*.{mjs,cjs,js,d.ts,d.mts}'] }, { ignores: ['**/*.{mjs,cjs,js,d.ts,d.mts}', '.next'] },
{ {
files: ['**/*.story.tsx'], files: ['**/*.story.tsx'],
rules: { 'no-console': 'off' }, rules: { 'no-console': 'off' },
},
{
languageOptions: {
parserOptions: {
tsconfigRootDir: process.cwd(),
project: ['./tsconfig.json'],
},
},
} }
); );

5
next-env.d.ts vendored
View File

@ -1,5 +0,0 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

View File

@ -6,9 +6,6 @@ const withBundleAnalyzer = bundleAnalyzer({
export default withBundleAnalyzer({ export default withBundleAnalyzer({
reactStrictMode: false, reactStrictMode: false,
eslint: {
ignoreDuringBuilds: true,
},
experimental: { experimental: {
optimizePackageImports: ['@mantine/core', '@mantine/hooks'], optimizePackageImports: ['@mantine/core', '@mantine/hooks'],
}, },

View File

@ -9,57 +9,59 @@
"start": "next start", "start": "next start",
"typecheck": "tsc --noEmit", "typecheck": "tsc --noEmit",
"lint": "npm run eslint && npm run stylelint", "lint": "npm run eslint && npm run stylelint",
"eslint": "next lint", "eslint": "eslint .",
"stylelint": "stylelint '**/*.css' --cache", "stylelint": "stylelint '**/*.css' --cache",
"jest": "jest", "jest": "jest",
"jest:watch": "jest --watch", "jest:watch": "jest --watch",
"prettier:check": "prettier --check \"**/*.{ts,tsx}\"", "prettier:check": "prettier --check \"**/*.{ts,tsx}\"",
"prettier:write": "prettier --write \"**/*.{ts,tsx}\"", "prettier:write": "prettier --write \"**/*.{ts,tsx}\"",
"test": "npm run prettier:check && npm run lint && npm run typecheck && npm run jest", "test": "npx next typegen && npm run prettier:check && npm run lint && npm run typecheck && npm run jest",
"storybook": "storybook dev -p 6006", "storybook": "storybook dev -p 6006",
"storybook:build": "storybook build" "storybook:build": "storybook build"
}, },
"dependencies": { "dependencies": {
"@mantine/core": "8.3.0", "@mantine/core": "8.3.7",
"@mantine/hooks": "8.3.0", "@mantine/hooks": "8.3.7",
"@next/bundle-analyzer": "^15.3.3", "@next/bundle-analyzer": "^16.0.0",
"@tabler/icons-react": "^3.34.0", "@tabler/icons-react": "^3.35.0",
"next": "15.3.3", "next": "16.0.1",
"react": "19.1.0", "react": "19.2.0",
"react-dom": "19.1.0" "react-dom": "19.2.0"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.27.4", "@babel/core": "^7.28.4",
"@eslint/js": "^9.29.0", "@eslint/eslintrc": "^3",
"@ianvs/prettier-plugin-sort-imports": "^4.4.2", "@eslint/js": "^9.37.0",
"@storybook/nextjs": "^8.6.8", "@ianvs/prettier-plugin-sort-imports": "^4.7.0",
"@storybook/react": "^8.6.8", "@storybook/addon-themes": "^10.0.0",
"@testing-library/dom": "^10.4.0", "@storybook/nextjs": "^10.0.0",
"@testing-library/jest-dom": "^6.6.3", "@storybook/react": "^10.0.0",
"@testing-library/dom": "^10.4.1",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.0", "@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.6.1", "@testing-library/user-event": "^14.6.1",
"@types/eslint-plugin-jsx-a11y": "^6", "@types/eslint-plugin-jsx-a11y": "^6",
"@types/jest": "^29.5.14", "@types/jest": "^30.0.0",
"@types/node": "^22.13.11", "@types/node": "^24.7.1",
"@types/react": "19.1.8", "@types/react": "19.2.2",
"babel-loader": "^10.0.0", "babel-loader": "^10.0.0",
"eslint": "^9.29.0", "eslint": "^9.37.0",
"eslint-config-mantine": "^4.0.3", "eslint-config-mantine": "^4.0.3",
"eslint-config-next": "16.0.1",
"eslint-plugin-jsx-a11y": "^6.10.2", "eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-react": "^7.37.5", "eslint-plugin-react": "^7.37.5",
"jest": "^30.0.0", "jest": "^30.2.0",
"jest-environment-jsdom": "^30.0.0", "jest-environment-jsdom": "^30.2.0",
"postcss": "^8.5.5", "postcss": "^8.5.6",
"postcss-preset-mantine": "1.17.0", "postcss-preset-mantine": "1.18.0",
"postcss-simple-vars": "^7.0.1", "postcss-simple-vars": "^7.0.1",
"prettier": "^3.5.3", "prettier": "^3.6.2",
"storybook": "^8.6.8", "storybook": "^10.0.0",
"storybook-dark-mode": "^4.0.2", "stylelint": "^16.25.0",
"stylelint": "^16.20.0", "stylelint-config-standard-scss": "^16.0.0",
"stylelint-config-standard-scss": "^15.0.1", "ts-jest": "^29.4.4",
"ts-jest": "^29.4.0", "typescript": "5.9.3",
"typescript": "5.8.3", "typescript-eslint": "^8.46.0"
"typescript-eslint": "^8.34.0"
}, },
"packageManager": "yarn@4.9.4" "packageManager": "yarn@4.11.0"
} }

13
renovate.json Normal file
View File

@ -0,0 +1,13 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"schedule": ["before 5am on sunday"],
"groupName": "all dependencies",
"packageRules": [
{
"matchPackagePatterns": ["*"],
"groupName": "all dependencies"
}
],
"prHourlyLimit": 0,
"prConcurrentLimit": 0
}

View File

@ -10,16 +10,28 @@
"noEmit": true, "noEmit": true,
"esModuleInterop": true, "esModuleInterop": true,
"module": "esnext", "module": "esnext",
"moduleResolution": "node", "moduleResolution": "bundler",
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"jsx": "preserve", "jsx": "react-jsx",
"incremental": true, "incremental": true,
"paths": { "paths": {
"@/*": ["./*"] "@/*": ["./*"]
}, },
"plugins": [{ "name": "next" }] "plugins": [
{
"name": "next"
}
]
}, },
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], "include": [
"**/*.ts",
"**/*.tsx",
".storybook/main.ts",
".storybook/preview.tsx",
"next-env.d.ts",
".next/types/**/*.ts",
".next/dev/types/**/*.ts"
],
"exclude": ["node_modules"] "exclude": ["node_modules"]
} }

5250
yarn.lock

File diff suppressed because it is too large Load Diff