Skip to content

Commit

Permalink
chore: Bump to React 19
Browse files Browse the repository at this point in the history
- Update React to v19.0.0
- Adapt sass @import to new syntax
- Update dependencies
  • Loading branch information
ChrisUser committed Dec 26, 2024
1 parent ff5e123 commit 9f91c49
Show file tree
Hide file tree
Showing 5 changed files with 2,508 additions and 2,522 deletions.
45 changes: 17 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,11 @@
"version": "1.0.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^6.1.4",
"@testing-library/react": "^14.1.2",
"@testing-library/user-event": "^14.5.1",
"axios": "^0.28.0",
"eslint-plugin-prettier": "^5.0.1",
"nth-check": "2.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.19.0",
"react-scripts": "5.0.1",
"sass": "^1.69.5",
"sass-loader": "^13.3.2",
"semver": "7.5.4",
"webpack": "5.94.0"
"axios": "^1.7.9",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-router-dom": "^7.1.1",
"react-scripts": "5.0.1"
},
"scripts": {
"start": "react-scripts start",
Expand All @@ -33,20 +24,18 @@
"not IE 11"
],
"devDependencies": {
"@types/jest": "^29.5.8",
"@types/node": "^20.9.2",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"typescript": "^5.2.2"
},
"resolutions": {
"axios": "1.7.4",
"follow-redirects": "1.15.6",
"nth-check": "2.1.1",
"postcss": "8.4.31",
"semver": "7.5.4",
"tough-cookie": "4.1.3",
"webpack": "5.94.0"
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.14",
"@types/node": "^22.10.2",
"@types/react": "^19.0.2",
"@types/react-dom": "^19.0.2",
"eslint-plugin-prettier": "^5.2.1",
"typescript": "^5.7.2",
"sass": "^1.83.0",
"sass-loader": "^16.0.1"
},
"homepage": ".",
"postcss": {
Expand Down
4 changes: 2 additions & 2 deletions src/styles/Components.sass
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import 'mixins'
@import 'variables'
@use 'mixins' as *
@use 'variables' as *

.o-main-header
position: relative
Expand Down
2 changes: 1 addition & 1 deletion src/styles/_mixins.sass
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import './_variables'
@use './_variables' as *

=flexbox($justify, $align, $direction, $wrap)
display: flex
Expand Down
15 changes: 8 additions & 7 deletions src/styles/main.sass
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import './_variables'
@import './_mixins'
@use './_variables' as *
@use './_mixins' as *
@use "sass:color"

*
box-sizing: border-box
Expand Down Expand Up @@ -87,10 +88,10 @@ textarea
color: $white

&:hover
background-color: lighten($blue, 4%)
background-color: color.adjust($blue, $lightness: 4%)

&:active
background-color: lighten($blue, 10%)
background-color: color.adjust($blue, $lightness: 10%)

&:disabled,
&:disabled:hover
Expand All @@ -103,15 +104,15 @@ textarea
color: $black

&:hover
background-color: darken($white, 6%)
background-color: color.adjust($white, $lightness: -6%)

&:active
background-color: darken($white, 10%)
background-color: color.adjust($white, $lightness: -10%)

.o-error-text-container
font-weight: bold
letter-spacing: 0.6px
color: darken($red, 14%)
color: color.adjust($red, $lightness: -14%)
background: rgba($red, 0.16)
border: 1px solid $red
border-radius: $main-border-radius
Expand Down
Loading

0 comments on commit 9f91c49

Please sign in to comment.