Skip to content

Commit

Permalink
upgrade react-icons and react-datepicker
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Lerner committed Feb 22, 2024
1 parent 40e9d4a commit 3eb5759
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,16 @@ html.react-timekeeper-noscroll {
border-radius: 0.3rem 0 0 0.3rem;
border-color: $input-border-color;
border-width: 0px 1px 0px 0px;
.react-datepicker__navigation {
padding-top: 1em;
}
.react-datepicker__header {
text-align: center;
background-color: theme-color("light");
border-bottom: 1px solid $input-border-color;
border-top-left-radius: 0.3rem;
border-top-right-radius: 0rem;
padding-top: 0px;
padding-top: 1em;
padding-bottom: 0px;
height: 4.5rem;
position: relative;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ const DateTimePicker: React.FC<DateTimeProps> = (props) => {
/>
<TimePicker
time={value?.toFormat('hh:mm a')}
switchToMinuteOnHourDropdownSelect
switchToMinuteOnHourSelect
onChange={(time): void => {
if (disabled) return;
if (onChange) {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@
"react-codemirror-runmode": "^1.0.5",
"react-codemirror2": "^7.2.1",
"react-color": "^2.19.3",
"react-datepicker": "^4.7.0",
"react-datepicker": "^6.1.0",
"react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "^18.2.0",
"react-hot-loader": "^4.12.21",
"react-icons": "^4.9.0",
"react-icons": "^5.0.0",
"react-loading-overlay": "^1.0.1",
"react-redux": "^8",
"react-relay": "^14.0.0",
Expand Down Expand Up @@ -117,7 +117,7 @@
"@types/mime": "^3.0.0",
"@types/rails__actioncable": "^6.1.5",
"@types/react": "^18.0.15",
"@types/react-datepicker": "^4.0.0",
"@types/react-datepicker": "^6.0.0",
"@types/react-dom": "^18.0.6",
"@types/react-relay": "^13.0.2",
"@types/react-router-dom": "^5.1.7",
Expand Down
70 changes: 31 additions & 39 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1333,6 +1333,15 @@
aria-hidden "^1.2.3"
tabbable "^6.0.1"

"@floating-ui/react@^0.26.2":
version "0.26.9"
resolved "https://registry.yarnpkg.com/@floating-ui/react/-/react-0.26.9.tgz#bbccbefa0e60c8b7f4c0387ba0fc0607bb65f2cc"
integrity sha512-p86wynZJVEkEq2BBjY/8p2g3biQ6TlgT4o/3KgFKyTWoJLU1GZ8wpctwRqtkEl2tseYA+kw7dBAIDFcednfI5w==
dependencies:
"@floating-ui/react-dom" "^2.0.8"
"@floating-ui/utils" "^0.2.1"
tabbable "^6.0.1"

"@floating-ui/utils@^0.2.0", "@floating-ui/utils@^0.2.1":
version "0.2.1"
resolved "https://registry.yarnpkg.com/@floating-ui/utils/-/utils-0.2.1.tgz#16308cea045f0fc777b6ff20a9f25474dd8293d2"
Expand Down Expand Up @@ -1769,7 +1778,7 @@
dependencies:
svgmoji "^3.2.0"

"@popperjs/core@^2.11.6", "@popperjs/core@^2.11.8", "@popperjs/core@^2.9.2":
"@popperjs/core@^2.11.6", "@popperjs/core@^2.11.8":
version "2.11.8"
resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.11.8.tgz#6b79032e760a0899cd4204710beede972a3a185f"
integrity sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==
Expand Down Expand Up @@ -3461,15 +3470,14 @@
"@types/react" "*"
"@types/reactcss" "*"

"@types/react-datepicker@^4.0.0":
version "4.19.6"
resolved "https://registry.yarnpkg.com/@types/react-datepicker/-/react-datepicker-4.19.6.tgz#3095fb3c4b38b598c7e3104d73d246c9b4eddb19"
integrity sha512-uH5fzxt9eXxnc+hDCy/iRSFqU2+9lR/q2lAmaG4WILMai1o3IOdpcV+VSypzBFJLTEC2jrfeDXcdol0CJVMq4g==
"@types/react-datepicker@^6.0.0":
version "6.0.1"
resolved "https://registry.yarnpkg.com/@types/react-datepicker/-/react-datepicker-6.0.1.tgz#1e6fad06a74308d4c2f3123480048ed427cb04d0"
integrity sha512-oAavACLXz+Vm6kO1XZe1/LQJClOO32UUv4xva9G16KQJ2hNROtXyeGzmRg6mktHrQ+YGLnnNlN6S/XykQE2HMA==
dependencies:
"@popperjs/core" "^2.9.2"
"@floating-ui/react" "^0.26.2"
"@types/react" "*"
date-fns "^2.0.1"
react-popper "^2.2.5"
date-fns "^3.3.1"

"@types/react-dom@^18.0.6":
version "18.2.19"
Expand Down Expand Up @@ -4876,12 +4884,10 @@ dash-get@^1.0.2:
resolved "https://registry.yarnpkg.com/dash-get/-/dash-get-1.0.2.tgz#4c9e9ad5ef04c4bf9d3c9a451f6f7997298dcc7c"
integrity sha512-4FbVrHDwfOASx7uQVxeiCTo7ggSdYZbqs8lH+WU6ViypPlDbe9y6IP5VVUDQBv9DcnyaiPT5XT0UWHgJ64zLeQ==

date-fns@^2.0.1, date-fns@^2.30.0:
version "2.30.0"
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.30.0.tgz#f367e644839ff57894ec6ac480de40cae4b0f4d0"
integrity sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==
dependencies:
"@babel/runtime" "^7.21.0"
date-fns@^3.3.1:
version "3.3.1"
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-3.3.1.tgz#7581daca0892d139736697717a168afbb908cfed"
integrity sha512-y8e109LYGgoQDveiEBD3DYXKba1jWf5BA8YU1FL5Tvm0BTdEfy54WLCwnuYWZNnzzvALy/QQ4Hov+Q9RVRv+Zw==

[email protected]:
version "2.6.9"
Expand Down Expand Up @@ -8001,17 +8007,16 @@ react-color@^2.19.3:
reactcss "^1.2.0"
tinycolor2 "^1.4.1"

react-datepicker@^4.7.0:
version "4.25.0"
resolved "https://registry.yarnpkg.com/react-datepicker/-/react-datepicker-4.25.0.tgz#86b3ee8ac764bad1650046d0cf9280837bf6d845"
integrity sha512-zB7CSi44SJ0sqo8hUQ3BF1saE/knn7u25qEMTO1CQGofY1VAKahO8k9drZtp0cfW1DMfoYLR3uSY1/uMvbEzbg==
react-datepicker@^6.1.0:
version "6.1.0"
resolved "https://registry.yarnpkg.com/react-datepicker/-/react-datepicker-6.1.0.tgz#c227de6afce232b5737214eb4b71044e8e6b308a"
integrity sha512-8uz+hAOpvHqZGvD4Ky1hJ0/tLI4S9B0Gu9LV7LtLxRKXODs/xrxEay0aMVp7AW9iizTeImZh/6aA00fFaRZpJw==
dependencies:
"@popperjs/core" "^2.11.8"
"@floating-ui/react" "^0.26.2"
classnames "^2.2.6"
date-fns "^2.30.0"
date-fns "^3.3.1"
prop-types "^15.7.2"
react-onclickoutside "^6.13.0"
react-popper "^2.3.0"

react-dnd-html5-backend@^16.0.1:
version "16.0.1"
Expand Down Expand Up @@ -8039,11 +8044,6 @@ react-dom@^18.2.0:
loose-envify "^1.1.0"
scheduler "^0.23.0"

react-fast-compare@^3.0.1:
version "3.2.2"
resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-3.2.2.tgz#929a97a532304ce9fee4bcae44234f1ce2c21d49"
integrity sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==

react-hot-loader@^4.12.21:
version "4.13.1"
resolved "https://registry.yarnpkg.com/react-hot-loader/-/react-hot-loader-4.13.1.tgz#979fd7598e27338b3faffae6ed01c65374dace5e"
Expand All @@ -8058,10 +8058,10 @@ react-hot-loader@^4.12.21:
shallowequal "^1.1.0"
source-map "^0.7.3"

react-icons@^4.9.0:
version "4.12.0"
resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-4.12.0.tgz#54806159a966961bfd5cdb26e492f4dafd6a8d78"
integrity sha512-IBaDuHiShdZqmfc/TwHu6+d6k2ltNCf3AszxNmjJc1KUfXdEeRJOKyNvLmAHaarhzGmTSVygNdyu8/opXv2gaw==
react-icons@^5.0.0:
version "5.0.1"
resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-5.0.1.tgz#1694e11bfa2a2888cab47dcc30154ce90485feee"
integrity sha512-WqLZJ4bLzlhmsvme6iFdgO8gfZP17rfjYEJ2m9RsZjZ+cc4k1hTzknEz63YS1MeT50kVzoa1Nz36f4BEx+Wigw==

react-is@^16.10.2, react-is@^16.13.1, react-is@^16.3.2, react-is@^16.4.2, react-is@^16.6.0, react-is@^16.7.0:
version "16.13.1"
Expand Down Expand Up @@ -8111,14 +8111,6 @@ react-overlays@^5.1.2:
uncontrollable "^7.2.1"
warning "^4.0.3"

react-popper@^2.2.5, react-popper@^2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/react-popper/-/react-popper-2.3.0.tgz#17891c620e1320dce318bad9fede46a5f71c70ba"
integrity sha512-e1hj8lL3uM+sgSR4Lxzn5h1GxBlpa4CQz0XLF8kx4MDrDRWY0Ena4c97PUeSX9i5W3UAfDP0z0FXCTQkoXUl3Q==
dependencies:
react-fast-compare "^3.0.1"
warning "^4.0.2"

react-redux@^8:
version "8.1.3"
resolved "https://registry.yarnpkg.com/react-redux/-/react-redux-8.1.3.tgz#4fdc0462d0acb59af29a13c27ffef6f49ab4df46"
Expand Down Expand Up @@ -9591,7 +9583,7 @@ w3c-keyname@^2.2.0, w3c-keyname@^2.2.7:
resolved "https://registry.yarnpkg.com/w3c-keyname/-/w3c-keyname-2.2.8.tgz#7b17c8c6883d4e8b86ac8aba79d39e880f8869c5"
integrity sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==

warning@^4.0.0, warning@^4.0.2, warning@^4.0.3:
warning@^4.0.0, warning@^4.0.3:
version "4.0.3"
resolved "https://registry.yarnpkg.com/warning/-/warning-4.0.3.tgz#16e9e077eb8a86d6af7d64aa1e05fd85b4678ca3"
integrity sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==
Expand Down

0 comments on commit 3eb5759

Please sign in to comment.