49 Commits

Author SHA1 Message Date
da7b03909f Update postcss-preset-mantine dependency to 1.17.0 2024-07-21 20:13:29 +04:00
5da3f96e19 Update postcss-preset-mantine dependency to 1.16.0 2024-07-17 15:50:16 +04:00
06654aa2fb Update @mantine/* dependencies to 7.11.2 2024-07-13 19:28:04 +04:00
060cc561d9 Update @mantine/* dependencies to 7.11.1 2024-07-03 12:49:32 +04:00
8cdd3e0c40 Update @mantine/* dependencies to 7.11.0 2024-06-26 20:49:42 +04:00
3aabc6598c Update yarn to 4.3.1 2024-06-23 14:39:51 +04:00
81693bdf35 Update dependencies to the latest version 2024-06-23 14:24:50 +04:00
ed4fb3a500 Update @mantine/* dependencies to 7.10.2 2024-06-13 13:05:48 +04:00
210b9e3655 Update storybook to the latest version 2024-05-24 15:26:17 +04:00
be152406ef Update yarn to 4.2.2 2024-05-24 15:15:52 +04:00
2def41a2e3 Update @mantine/* dependencies to 7.10.0 2024-05-23 17:24:14 +04:00
92580fae10 Update @mantine/* dependencies to 7.9.2 2024-05-19 15:21:28 +04:00
8e9aa5918d Add GitHub workflow 2024-04-26 13:20:01 +04:00
512f7fe8b7 Update postcss-preset-mantine dependency to 1.15.0 2024-04-26 13:16:52 +04:00
d80c8050b8 Update @mantine/* dependencies to 7.8.1 2024-04-26 13:15:07 +04:00
d99e6247c4 Update postcss-preset-mantine dependency to 1.14.4 2024-04-12 14:28:10 +04:00
b94938783b Update @mantine/* dependencies to 7.8.0 2024-04-12 14:26:07 +04:00
ca230d642e Update @mantine/* dependencies to 7.7.1 2024-04-02 12:59:05 +04:00
75d75126d4 Add Jest scrollIntoView mock 2024-03-15 15:40:39 +04:00
df6fcffe80 Update dependencies to the latest version 2024-03-12 15:20:07 +04:00
52b02c8e4b Update @mantine/* dependencies to 7.6.1 2024-02-27 15:37:31 +04:00
e9fcda02af Update @mantine/* dependencies to 7.6.0 2024-02-26 15:19:10 +04:00
d0721178db Update @mantine/* dependencies to 7.5.3 2024-02-17 16:14:07 +04:00
9547d74226 Update postcss-preset-mantine dependency to 1.13.0 2024-02-01 16:11:06 +04:00
1b329ae7ce Update @mantine/* dependencies to 7.5.1 2024-02-01 10:32:54 +04:00
959af2e32b Update @mantine/* dependencies to 7.4.2 2024-01-17 23:27:00 +04:00
55c4883729 Update @mantine/* dependencies to 7.4.1 2024-01-15 14:21:59 +04:00
77b979b2e1 Update @mantine/* dependencies to 7.4.0 2024-01-03 10:37:12 +04:00
414e3c4b5c Update postcss-preset-mantine dependency to 1.12.3 2024-01-03 10:35:58 +04:00
e1d572f6db Update @mantine/* dependencies to 7.3.2 2023-12-21 09:59:35 +04:00
a280211ac8 Update postcss-preset-mantine dependency to 1.12.0 2023-12-17 18:25:27 +04:00
e912744391 Update @mantine/* dependencies to 7.3.1 2023-12-09 20:24:16 +04:00
bcc07a7c59 Update postcss-preset-mantine dependency to 1.11.1 2023-12-05 10:10:15 +04:00
05411fa287 Update @mantine/* dependencies to 7.3.0 2023-12-04 12:31:53 +04:00
893ad91d71 Update @mantine/* dependencies to 7.2.2 2023-11-16 21:21:24 +04:00
8fd71b288c Remove unexpected background-color 2023-11-16 16:22:10 +04:00
8ee9720044 Add stylelint 2023-11-15 11:02:16 +04:00
bd385eae7f Update @mantine/* dependencies to version 1.11.0 2023-11-14 13:54:15 +04:00
7f88fcd322 Update @mantine/* dependencies to version 7.2.1 2023-11-10 18:00:43 +04:00
8cc5221a83 Update @mantine/* dependencies to version 1.10.0 2023-11-10 15:56:24 +04:00
84451ce1f3 Update @mantine/* dependencies to version 7.2.0 2023-11-06 17:46:19 +04:00
2e0c3f3ba7 Add DS_Store to gitignore 2023-11-06 15:27:42 +04:00
08d0fd548b Fix incorrect import in jest setup 2023-11-05 17:29:22 +04:00
1e771619d7 Update all packages to the latest version 2023-11-04 18:27:58 +04:00
ad03e8a795 Migrate to yarn v4 2023-11-04 18:19:48 +04:00
ea200db349 Update @mantine/* dependencies to version 7.1.7 2023-10-26 17:20:02 +04:00
70294c4892 Update @mantine/* dependencies to version 7.1.6 2023-10-26 10:37:50 +04:00
4e66fce93f Update @mantine/* dependencies to version 7.1.5 2023-10-22 12:59:03 +04:00
3396f1acf5 Update @mantine/* dependencies to version 1.9.0 2023-10-18 12:47:46 +04:00
18 changed files with 18467 additions and 11020 deletions

View File

@ -1 +1,3 @@
*.cjs
*.mjs
*.js

27
.github/workflows/npm_test.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: npm test
on:
pull_request:
branches:
- '**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
jobs:
test_pull_request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'
- name: Install dependencies
run: yarn
- name: Run build
run: npm run build
- name: Run tests
run: npm test

152
.gitignore vendored
View File

@ -1,38 +1,132 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# next.js
/.next/
/out/
# production
/build
# misc
.DS_Store
*.pem
# debug
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*
# local env files
.env.local
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional stylelint cache
.stylelintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local
# vercel
.vercel
*.tsbuildinfo
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache
# storybook
storybook-static
# Next.js build output
.next
out
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# vuepress v2.x temp and cache directory
.temp
.cache
# Docusaurus cache and generated files
.docusaurus
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
.DS_Store

1
.nvmrc Normal file
View File

@ -0,0 +1 @@
v20.9.0

View File

@ -1,10 +1,16 @@
import type { StorybookConfig } from '@storybook/nextjs';
const config: StorybookConfig = {
stories: ['../components/**/*.(stories|story).@(js|jsx|ts|tsx)'],
addons: ['@storybook/addon-essentials', 'storybook-dark-mode', '@storybook/addon-styling'],
addons: [
'@storybook/addon-essentials',
'storybook-dark-mode',
'@storybook/addon-styling-webpack',
],
framework: {
name: '@storybook/nextjs',
options: {},
},
};
export default config;

2
.stylelintignore Normal file
View File

@ -0,0 +1,2 @@
.next
out

28
.stylelintrc.json Normal file
View File

@ -0,0 +1,28 @@
{
"extends": ["stylelint-config-standard-scss"],
"rules": {
"custom-property-pattern": null,
"selector-class-pattern": null,
"scss/no-duplicate-mixins": null,
"declaration-empty-line-before": null,
"declaration-block-no-redundant-longhand-properties": null,
"alpha-value-notation": null,
"custom-property-empty-line-before": null,
"property-no-vendor-prefix": null,
"color-function-notation": null,
"length-zero-no-unit": null,
"selector-not-notation": null,
"no-descending-specificity": null,
"comment-empty-line-before": null,
"scss/at-mixin-pattern": null,
"scss/at-rule-no-unknown": null,
"value-keyword-case": null,
"media-feature-range-notation": null,
"selector-pseudo-class-no-unknown": [
true,
{
"ignorePseudoClasses": ["global"]
}
]
}
}

894
.yarn/releases/yarn-4.3.1.cjs vendored Executable file

File diff suppressed because one or more lines are too long

3
.yarnrc.yml Normal file
View File

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

View File

@ -5,7 +5,7 @@ const createJestConfig = nextJest({
});
const customJestConfig = {
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
setupFilesAfterEnv: ['<rootDir>/jest.setup.cjs'],
moduleNameMapper: {
'^@/components/(.*)$': '<rootDir>/components/$1',
'^@/pages/(.*)$': '<rootDir>/pages/$1',

View File

@ -1,7 +1,8 @@
import '@testing-library/jest-dom/extend-expect';
require('@testing-library/jest-dom');
const { getComputedStyle } = window;
window.getComputedStyle = (elt) => getComputedStyle(elt);
window.HTMLElement.prototype.scrollIntoView = () => {};
Object.defineProperty(window, 'matchMedia', {
writable: true,

View File

@ -1,8 +1,10 @@
const withBundleAnalyzer = require('@next/bundle-analyzer')({
import bundleAnalyzer from '@next/bundle-analyzer';
const withBundleAnalyzer = bundleAnalyzer({
enabled: process.env.ANALYZE === 'true',
});
module.exports = withBundleAnalyzer({
export default withBundleAnalyzer({
reactStrictMode: false,
eslint: {
ignoreDuringBuilds: true,

View File

@ -8,7 +8,8 @@
"analyze": "ANALYZE=true next build",
"start": "next start",
"typecheck": "tsc --noEmit",
"lint": "next lint",
"lint": "next lint && npm run lint:stylelint",
"lint:stylelint": "stylelint '**/*.css' --cache",
"jest": "jest",
"jest:watch": "jest --watch",
"prettier:check": "prettier --check \"**/*.{ts,tsx}\"",
@ -18,51 +19,54 @@
"storybook:build": "storybook build"
},
"dependencies": {
"@mantine/core": "7.1.3",
"@mantine/hooks": "7.1.3",
"@next/bundle-analyzer": "^13.5.3",
"@tabler/icons-react": "^2.20.0",
"next": "13.5.3",
"react": "18.2.0",
"react-dom": "18.2.0"
"@mantine/core": "7.11.2",
"@mantine/hooks": "7.11.2",
"@next/bundle-analyzer": "^14.2.4",
"@tabler/icons-react": "^3.6.0",
"next": "14.2.4",
"react": "18.3.1",
"react-dom": "18.3.1"
},
"devDependencies": {
"@babel/core": "^7.22.1",
"@next/eslint-plugin-next": "^13.5.3",
"@storybook/addon-essentials": "^7.4.3",
"@storybook/addon-styling": "^1.0.8",
"@storybook/blocks": "^7.4.3",
"@storybook/nextjs": "^7.4.3",
"@storybook/react": "^7.4.3",
"@testing-library/dom": "^9.3.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
"@types/jest": "^29.5.1",
"@types/node": "^20.2.5",
"@types/react": "18.2.7",
"@typescript-eslint/eslint-plugin": "^5.59.7",
"@typescript-eslint/parser": "^5.59.7",
"babel-loader": "^9.1.2",
"eslint": "^8.41.0",
"@babel/core": "^7.24.7",
"@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/react": "^8.1.10",
"@testing-library/dom": "^10.1.0",
"@testing-library/jest-dom": "^6.4.6",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.12",
"@types/node": "^20.14.8",
"@types/react": "18.3.3",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"babel-loader": "^9.1.3",
"eslint": "^8.57.0",
"eslint-config-airbnb": "19.0.4",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-mantine": "2.0.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-testing-library": "^5.11.0",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"postcss": "^8.4.23",
"postcss-preset-mantine": "1.8.0",
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-config-mantine": "3.2.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^28.6.0",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-testing-library": "^6.2.2",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"postcss": "^8.4.38",
"postcss-preset-mantine": "1.17.0",
"postcss-simple-vars": "^7.0.1",
"prettier": "^2.8.8",
"storybook": "^7.4.3",
"storybook-dark-mode": "^3.0.0",
"ts-jest": "^29.1.0",
"typescript": "5.2.2"
}
"prettier": "^3.3.2",
"storybook": "^8.1.10",
"storybook-dark-mode": "^4.0.2",
"stylelint": "^16.6.1",
"stylelint-config-standard-scss": "^13.1.0",
"ts-jest": "^29.1.5",
"typescript": "5.5.2"
},
"packageManager": "yarn@4.3.1"
}

View File

@ -1,11 +1,8 @@
{
"compilerOptions": {
"types": ["node", "jest", "@testing-library/jest-dom"],
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
@ -19,23 +16,10 @@
"jsx": "preserve",
"incremental": true,
"paths": {
"@/*": [
"./*"
]
"@/*": ["./*"]
},
"plugins": [
{
"name": "next"
}
]
"plugins": [{ "name": "next" }]
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
],
"exclude": [
"node_modules"
]
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}

28239
yarn.lock

File diff suppressed because it is too large Load Diff