Skip to content

Commit 54c3e80

Browse files
committedSep 5, 2021
chore: upgrade dependencies
1 parent c0af780 commit 54c3e80

File tree

6 files changed

+357
-408
lines changed

6 files changed

+357
-408
lines changed
 

‎next-env.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/types/global" />
3+
/// <reference types="next/image-types/global" />
4+
5+
// NOTE: This file should not be edited
6+
// see https://nextjs.org/docs/basic-features/typescript for more information.

‎next.config.js

-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,5 @@ module.exports = withPlugins(
55
{
66
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
77
assetPrefix: process.env.NEXT_PUBLIC_BASE_PATH,
8-
future: {
9-
webpack5: true,
10-
},
118
},
129
);

‎package.json

+21-21
Original file line numberDiff line numberDiff line change
@@ -15,36 +15,36 @@
1515
"clean-nm": "rimraf node_modules"
1616
},
1717
"dependencies": {
18-
"@next/bundle-analyzer": "^10.2.3",
19-
"@radix-ui/react-polymorphic": "^0.0.11",
20-
"@stitches/react": "^0.1.9",
21-
"chart.js": "^3.3.2",
18+
"@next/bundle-analyzer": "^11.1.2",
19+
"@radix-ui/react-polymorphic": "^0.0.13",
20+
"@stitches/react": "^1.0.0",
21+
"chart.js": "^3.5.1",
2222
"lodash": "^4.17.20",
23-
"next": "10.2.3",
23+
"next": "11.1.2",
2424
"next-compose-plugins": "^2.2.1",
2525
"react": "17.0.2",
26-
"react-chartjs-2": "^3.0.3",
26+
"react-chartjs-2": "^3.0.4",
2727
"react-dom": "17.0.2",
28-
"react-hook-form": "^7.7.1"
28+
"react-hook-form": "^7.15.0"
2929
},
3030
"devDependencies": {
31-
"@types/lodash": "^4.14.170",
32-
"@types/node": "^14.14.19",
33-
"@types/react": "^17.0.9",
34-
"@typescript-eslint/eslint-plugin": "^4.26.0",
35-
"@typescript-eslint/parser": "^4.26.0",
36-
"eslint": "^7.28.0",
37-
"eslint-config-airbnb-typescript": "^12.0.0",
31+
"@types/lodash": "^4.14.172",
32+
"@types/node": "^16.7.10",
33+
"@types/react": "^17.0.20",
34+
"@typescript-eslint/eslint-plugin": "^4.30.0",
35+
"@typescript-eslint/parser": "^4.30.0",
36+
"eslint": "^7.32.0",
37+
"eslint-config-airbnb-typescript": "^14.0.0",
3838
"eslint-config-prettier": "^8.3.0",
39-
"eslint-plugin-import": "^2.23.4",
39+
"eslint-plugin-import": "^2.24.2",
4040
"eslint-plugin-jsx-a11y": "^6.4.1",
41-
"eslint-plugin-prettier": "^3.4.0",
42-
"eslint-plugin-react": "^7.24.0",
41+
"eslint-plugin-prettier": "^4.0.0",
42+
"eslint-plugin-react": "^7.25.1",
4343
"eslint-plugin-react-hooks": "^4.2.0",
44-
"lint-staged": ">=11.0.0",
45-
"prettier": "^2.3.0",
46-
"simple-git-hooks": ">=2.4.1",
47-
"typescript": "^4.3.2"
44+
"lint-staged": ">=11.1.2",
45+
"prettier": "^2.3.2",
46+
"simple-git-hooks": ">=2.6.1",
47+
"typescript": "^4.4.2"
4848
},
4949
"simple-git-hooks": {
5050
"pre-commit": "npx lint-staged"

‎pages/_document.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import NextDocument, { Html, Head, Main, NextScript } from 'next/document';
2-
import { getCssString } from 'stitches.config';
1+
import NextDocument, { Head, Html, Main, NextScript } from 'next/document';
32
import React from 'react';
3+
import { getCssText } from 'stitches.config';
44

55
export const pathPrefix = process.env.NEXT_PUBLIC_BASE_PATH || '';
66

@@ -34,7 +34,7 @@ export default class Document extends NextDocument {
3434
type="text/css"
3535
charSet="utf-8"
3636
/>
37-
<style id="stitches" dangerouslySetInnerHTML={{ __html: getCssString() }} />
37+
<style id="stitches" dangerouslySetInnerHTML={{ __html: getCssText() }} />
3838
</Head>
3939
<body>
4040
<Main />

‎stitches.config.ts

+22-26
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
import { createCss, StitchesCss } from '@stitches/react';
1+
import type * as Stitches from '@stitches/react';
2+
import { createStitches } from '@stitches/react';
23

34
const minWidth = (width: string) => `(min-width: ${width})`;
4-
const stitches = createCss({
5+
6+
const stitches = createStitches({
57
theme: {
68
colors: {
79
main: '#6CCAFF',
@@ -25,60 +27,54 @@ const stitches = createCss({
2527
'2xl': minWidth('1536px'),
2628
},
2729
utils: {
28-
m: () => (value) => ({
29-
marginTop: value,
30-
marginBottom: value,
31-
marginLeft: value,
32-
marginRight: value,
30+
m: (value: Stitches.PropertyValue<'margin'>) => ({
31+
margin: value,
3332
}),
34-
mt: () => (value) => ({
33+
mt: (value: Stitches.PropertyValue<'marginTop'>) => ({
3534
marginTop: value,
3635
}),
37-
mr: () => (value) => ({
36+
mr: (value: Stitches.PropertyValue<'marginRight'>) => ({
3837
marginRight: value,
3938
}),
40-
mb: () => (value) => ({
39+
mb: (value: Stitches.PropertyValue<'marginBottom'>) => ({
4140
marginBottom: value,
4241
}),
43-
ml: () => (value) => ({
42+
ml: (value: Stitches.PropertyValue<'marginLeft'>) => ({
4443
marginLeft: value,
4544
}),
46-
mx: () => (value) => ({
45+
mx: (value: Stitches.PropertyValue<'margin'>) => ({
4746
marginLeft: value,
4847
marginRight: value,
4948
}),
50-
my: () => (value) => ({
49+
my: (value: Stitches.PropertyValue<'margin'>) => ({
5150
marginTop: value,
5251
marginBottom: value,
5352
}),
54-
p: () => (value) => ({
55-
paddingTop: value,
56-
paddingBottom: value,
57-
paddingLeft: value,
58-
paddingRight: value,
53+
p: (value: Stitches.PropertyValue<'padding'>) => ({
54+
padding: value,
5955
}),
60-
pt: () => (value) => ({
56+
pt: (value: Stitches.PropertyValue<'paddingTop'>) => ({
6157
paddingTop: value,
6258
}),
63-
pr: () => (value) => ({
59+
pr: (value: Stitches.PropertyValue<'paddingRight'>) => ({
6460
paddingRight: value,
6561
}),
66-
pb: () => (value) => ({
62+
pb: (value: Stitches.PropertyValue<'paddingBottom'>) => ({
6763
paddingBottom: value,
6864
}),
69-
pl: () => (value) => ({
65+
pl: (value: Stitches.PropertyValue<'paddingLeft'>) => ({
7066
paddingLeft: value,
7167
}),
72-
px: () => (value) => ({
68+
px: (value: Stitches.PropertyValue<'padding'>) => ({
7369
paddingLeft: value,
7470
paddingRight: value,
7571
}),
76-
py: () => (value) => ({
72+
py: (value: Stitches.PropertyValue<'padding'>) => ({
7773
paddingTop: value,
7874
paddingBottom: value,
7975
}),
8076
},
8177
});
8278

83-
export type CSS = StitchesCss<typeof stitches>;
84-
export const { styled, css, getCssString } = stitches;
79+
export type CSS = Stitches.CSS<typeof stitches>;
80+
export const { styled, css, getCssText } = stitches;

‎yarn.lock

+307-355
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.