Skip to content

Commit a613275

Browse files
chore(deps): ⬆️ update prod dependencies (minor) (#338)
chore(deps): ⬆️ update prod dependencies (minor)
2 parents c2bcafd + 7f434e3 commit a613275

File tree

7 files changed

+70
-86
lines changed

7 files changed

+70
-86
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@
9797
]
9898
},
9999
"dependencies": {
100-
"@adaptui/react": "^1.0.0-alpha.7",
101-
"@react-aria/live-announcer": "^3.1.0",
102-
"ariakit": "2.0.0-next.31",
103-
"ariakit-utils": "0.17.0-next.22",
104-
"tailwind-merge": "^1.3.0"
100+
"@adaptui/react": "1.0.0-alpha.9",
101+
"@react-aria/live-announcer": "3.1.0",
102+
"ariakit": "2.0.0-next.36",
103+
"ariakit-utils": "0.17.0-next.23",
104+
"tailwind-merge": "1.5.1"
105105
},
106106
"devDependencies": {
107107
"@babel/cli": "7.18.9",
@@ -134,7 +134,7 @@
134134
"@testing-library/user-event": "14.3.0",
135135
"@types/jest": "28.1.6",
136136
"@types/jest-axe": "3.5.4",
137-
"@types/node": "18.0.1",
137+
"@types/node": "18.6.1",
138138
"@types/react": "18.0.15",
139139
"@types/react-dom": "18.0.6",
140140
"@types/testing-library__jest-dom": "5.14.5",

src/show-more/ShowMoreButton.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export const useShowMoreButton = createHook<ShowMoreButtonOptions>(
3333
spinner,
3434
...props,
3535
});
36+
console.log("%cstate", "color: #e5de73", state);
3637
props = useDisclosure({ state, ...props });
3738
props = useBox(props);
3839

src/show-more/ShowMoreProps.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ const componentMap = {
1717
};
1818

1919
export const useShowMoreProps = ({
20-
visible,
21-
defaultVisible,
22-
setVisible,
20+
defaultOpen,
21+
open,
22+
setOpen,
2323
animated,
2424
button,
2525
children,
2626
...props
2727
}: ShowMoreProps): ShowMorePropsReturn => {
2828
const state = useDisclosureState({
29-
visible,
30-
defaultVisible,
31-
setVisible,
29+
defaultOpen,
30+
open,
31+
setOpen,
3232
animated,
3333
});
3434
const uiState = useShowMoreUIState({ state, button });

src/show-more/ShowMoreUIState.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const useShowMoreUIState = ({
88
state,
99
button,
1010
}: ShowMoreUIStateProps): ShowMoreUIState => {
11-
button = button || !state.visible ? "Show more" : "Show less";
11+
button = button || !state.open ? "Show more" : "Show less";
1212

1313
return { button };
1414
};

src/tooltip/TooltipAnchor.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,20 @@ export const useTooltipAnchor = createHook<TooltipAnchorOptions>(
2626
}) => {
2727
if (!state) return props;
2828

29-
const { visible, hide, show } = state;
29+
const { open, hide, show } = state;
3030
const [isMobile] = useMediaQuery("(max-width: 640px)");
3131
const [hasMouseLeft, setHasMouseLeft] = React.useState(false);
3232
const wasDragging = usePrevious(isDragging);
3333

3434
React.useEffect(() => {
3535
if (isMobile) {
36-
if (!isDragging && wasDragging && visible) hide();
36+
if (!isDragging && wasDragging && open) hide();
3737
} else {
38-
if (hasMouseLeft && !isDragging && wasDragging && visible) hide();
38+
if (hasMouseLeft && !isDragging && wasDragging && open) hide();
3939
}
4040

41-
if (isDragging && !visible) show();
42-
}, [hide, wasDragging, isDragging, hasMouseLeft, visible, isMobile, show]);
41+
if (isDragging && !open) show();
42+
}, [hide, wasDragging, isDragging, hasMouseLeft, open, isMobile, show]);
4343

4444
const onMouseEnterProp = props.onMouseEnter;
4545

src/tooltip/TooltipProps.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ export const useTooltipProps = ({
3030
suffix,
3131
withArrow,
3232
isDragging,
33-
visible,
34-
defaultVisible,
35-
setVisible,
33+
defaultOpen,
34+
open,
35+
setOpen,
3636
animated = true,
3737
placement,
3838
gutter,
@@ -53,9 +53,9 @@ export const useTooltipProps = ({
5353
...restProps
5454
}: TooltipProps): TooltipPropsReturn => {
5555
const state = useTooltipState({
56-
visible,
57-
defaultVisible,
58-
setVisible,
56+
defaultOpen,
57+
open,
58+
setOpen,
5959
animated,
6060
placement,
6161
gutter,

yarn.lock

Lines changed: 45 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
# yarn lockfile v1
33

44

5-
"@adaptui/react@^1.0.0-alpha.7":
6-
version "1.0.0-alpha.7"
7-
resolved "https://registry.yarnpkg.com/@adaptui/react/-/react-1.0.0-alpha.7.tgz#e5090f26a37d266218975672bd89dfe124d97833"
8-
integrity sha512-cdgdAbLXII+g2CzD80400yt1s0H+g3rWSmJzkUXrSz416duUv+HHxaFT6hejZ1sI1Iv+DY2HkBJm+GlOWN4oVA==
5+
"@adaptui/[email protected].9":
6+
version "1.0.0-alpha.9"
7+
resolved "https://registry.yarnpkg.com/@adaptui/react/-/react-1.0.0-alpha.9.tgz#aa5f04b52ed6498157aec1b313f498f4a219fd93"
8+
integrity sha512-DJmAHXrjSLJguBDWis8crqehlPetXxB6FzvJdmUehwBBvddDkISycuDa0RdOCVzLSU2yhoY3gPc1kaKmzROlRA==
99
dependencies:
1010
"@chakra-ui/react-utils" "^2.0.1"
11-
"@chakra-ui/utils" "^2.0.2"
11+
"@chakra-ui/utils" "^2.0.4"
1212
"@internationalized/date" "3.0.0"
1313
"@react-aria/button" "^3.5.1"
1414
"@react-aria/calendar" "3.0.0"
@@ -22,8 +22,8 @@
2222
"@react-stately/datepicker" "3.0.0"
2323
"@react-stately/numberfield" "^3.1.1"
2424
"@react-stately/slider" "^3.1.1"
25-
ariakit "2.0.0-next.30"
26-
ariakit-utils "0.17.0-next.21"
25+
ariakit "2.0.0-next.36"
26+
ariakit-utils "0.17.0-next.23"
2727
raf "^3.4.1"
2828

2929
"@ampproject/remapping@^2.1.0":
@@ -1592,6 +1592,16 @@
15921592
framesync "5.3.0"
15931593
lodash.mergewith "4.6.2"
15941594

1595+
"@chakra-ui/utils@^2.0.4":
1596+
version "2.0.4"
1597+
resolved "https://registry.yarnpkg.com/@chakra-ui/utils/-/utils-2.0.4.tgz#dbed9f173edda0eb54947d98754b834729ae22bc"
1598+
integrity sha512-pr5qFTrhCja1iQTajOr2WSvb+f4lpnLnnxWOSYOuIv7k8LBEtee4LpTs0jzBBB/vycuo6ppKdXyj7db9xTqZfA==
1599+
dependencies:
1600+
"@types/lodash.mergewith" "4.6.6"
1601+
css-box-model "1.2.1"
1602+
framesync "5.3.0"
1603+
lodash.mergewith "4.6.2"
1604+
15951605
"@cnakazawa/watch@^1.0.3":
15961606
version "1.0.4"
15971607
resolved "https://registry.yarnpkg.com/@cnakazawa/watch/-/watch-1.0.4.tgz#f864ae85004d0fcab6f50be9141c4da368d1656a"
@@ -1897,24 +1907,17 @@
18971907
minimatch "^3.1.2"
18981908
strip-json-comments "^3.1.1"
18991909

1900-
"@floating-ui/core@^0.7.3":
1901-
version "0.7.3"
1902-
resolved "https://registry.yarnpkg.com/@floating-ui/core/-/core-0.7.3.tgz#d274116678ffae87f6b60e90f88cc4083eefab86"
1903-
integrity sha512-buc8BXHmG9l82+OQXOFU3Kr2XQx9ys01U/Q9HMIrZ300iLc8HLMgh7dcCqgYzAzf4BkoQvDcXf5Y+CuEZ5JBYg==
1904-
1905-
"@floating-ui/[email protected]":
1906-
version "0.5.3"
1907-
resolved "https://registry.yarnpkg.com/@floating-ui/dom/-/dom-0.5.3.tgz#ade192cf9a911fc3e95fb614fe281658b654043c"
1908-
integrity sha512-vpjWB1uC7rajvgA58uzlJZgtWqrdDQLw+XVA3w63ZTmsWwRmVd0Gl5Dy9VMAViI9cP7hBWaJt23Jy3AVgVYnoQ==
1909-
dependencies:
1910-
"@floating-ui/core" "^0.7.3"
1910+
"@floating-ui/core@^1.0.0":
1911+
version "1.0.0"
1912+
resolved "https://registry.yarnpkg.com/@floating-ui/core/-/core-1.0.0.tgz#ec1d31f54c72dd0460276e2149e59bd13c0f01f6"
1913+
integrity sha512-sm3nW0hHAxTv3gRDdCH8rNVQxijF+qPFo5gAeXCErRjKC7Qc28lIQ3R9Vd7Gw+KgwfA7RhRydDFuGeI0peGq7A==
19111914

1912-
"@floating-ui/dom@0.5.4":
1913-
version "0.5.4"
1914-
resolved "https://registry.yarnpkg.com/@floating-ui/dom/-/dom-0.5.4.tgz#4eae73f78bcd4bd553ae2ade30e6f1f9c73fe3f1"
1915-
integrity sha512-419BMceRLq0RrmTSDxn8hf9R3VCJv2K9PUfugh5JyEFmdjzDo+e8U5EdR8nzKq8Yj1htzLm3b6eQEEam3/rrtg==
1915+
"@floating-ui/dom@^1.0.0":
1916+
version "1.0.0"
1917+
resolved "https://registry.yarnpkg.com/@floating-ui/dom/-/dom-1.0.0.tgz#66923a56755b6cb7a5958ecf25fe293912672d65"
1918+
integrity sha512-PMqJvY5Fae8HVQgUqM+lidprS6p9LSvB0AUhCdYKqr3YCaV+WaWCeVNBtXPRY2YIdrgcsL2+vd5F07FxgihHUw==
19161919
dependencies:
1917-
"@floating-ui/core" "^0.7.3"
1920+
"@floating-ui/core" "^1.0.0"
19181921

19191922
"@formatjs/[email protected]":
19201923
version "1.11.4"
@@ -2659,7 +2662,7 @@
26592662
"@react-types/label" "^3.6.1"
26602663
"@react-types/shared" "^3.13.1"
26612664

2662-
"@react-aria/live-announcer@^3.1.0":
2665+
"@react-aria/live-announcer@3.1.0", "@react-aria/live-announcer@^3.1.0":
26632666
version "3.1.0"
26642667
resolved "https://registry.yarnpkg.com/@react-aria/live-announcer/-/live-announcer-3.1.0.tgz#06cfce35f6a9bcff266ab0ceab97f2fe6e487975"
26652668
integrity sha512-YEaGJh1ELho3G9zvUZGOsKsSNEqHsm0fb3Ngvj9z0tjZCXa0867h8YWKuiyTA9BG7WhH8eeJq07WN4nDvYU7fg==
@@ -4402,10 +4405,10 @@
44024405
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.0.0.tgz#67c7b724e1bcdd7a8821ce0d5ee184d3b4dd525a"
44034406
integrity sha512-cHlGmko4gWLVI27cGJntjs/Sj8th9aYwplmZFwmmgYQQvL5NUsgVJG7OddLvNfLqYS31KFN0s3qlaD9qCaxACA==
44044407

4405-
"@types/node@18.0.1":
4406-
version "18.0.1"
4407-
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.0.1.tgz#e91bd73239b338557a84d1f67f7b9e0f25643870"
4408-
integrity sha512-CmR8+Tsy95hhwtZBKJBs0/FFq4XX7sDZHlGGf+0q+BRZfMbOTkzkj0AFAuTyXbObDIoanaBBW0+KEW+m3N16Wg==
4408+
"@types/node@18.6.1":
4409+
version "18.6.1"
4410+
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.6.1.tgz#828e4785ccca13f44e2fb6852ae0ef11e3e20ba5"
4411+
integrity sha512-z+2vB6yDt1fNwKOeGbckpmirO+VBDuQqecXkgeIqDlaOtmKn6hPR/viQ8cxCfqLU4fTlvM3+YjM367TukWdxpg==
44094412

44104413
"@types/node@^14.0.10 || ^16.0.0", "@types/node@^14.14.20 || ^16.0.0":
44114414
version "16.11.42"
@@ -5366,31 +5369,18 @@ aria-query@^5.0.0:
53665369
resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-5.0.0.tgz#210c21aaf469613ee8c9a62c7f86525e058db52c"
53675370
integrity sha512-V+SM7AbUwJ+EBnB8+DXs0hPZHO0W6pqBcc0dW90OwtVG02PswOu/teuARoLQjdDOH+t9pJgGnW5/Qmouf3gPJg==
53685371

5369-
5370-
version "0.17.0-next.21"
5371-
resolved "https://registry.yarnpkg.com/ariakit-utils/-/ariakit-utils-0.17.0-next.21.tgz#bff902e8bca565c8f0a9946a63d5e24676370025"
5372-
integrity sha512-2zVBplN6O92WKDRy3RKafdl+BK0V7HtRpRX179YiWVG4ZTeeTNfj/m23d91SImue514U7PmxEp/DQb+LucQu+g==
5373-
5374-
5375-
version "0.17.0-next.22"
5376-
resolved "https://registry.yarnpkg.com/ariakit-utils/-/ariakit-utils-0.17.0-next.22.tgz#3d12871646979e1f9674ba0de1ca45018ee243ba"
5377-
integrity sha512-S2BUE4IvsX2g7y7EqwarVfxWS5sgtOqobfuTdkJO9HGASWv5nw0L1MMGtyt+HSkvMMdmPgKNQ8wMqixuWSk74g==
5378-
5379-
5380-
version "2.0.0-next.30"
5381-
resolved "https://registry.yarnpkg.com/ariakit/-/ariakit-2.0.0-next.30.tgz#436eb631f82d04313d8b7b77f106de48b40cf64e"
5382-
integrity sha512-12CW6eY6i+3FPjB5ItIxRtet5pfLBML7bbCrrrDKEj1hIrUELvJu7HqFCvhNFTzODgVU8s1xr4rEUigaz/58rA==
5383-
dependencies:
5384-
"@floating-ui/dom" "0.5.3"
5385-
ariakit-utils "0.17.0-next.21"
5372+
5373+
version "0.17.0-next.23"
5374+
resolved "https://registry.yarnpkg.com/ariakit-utils/-/ariakit-utils-0.17.0-next.23.tgz#b9c5f638e5cc7a3ddc2e3256f23d42718e3af47b"
5375+
integrity sha512-r6a8rvjTBNbdNVWhGm4XL8hTlpIlP0G+yJf3No48kK6QpR1JN9QinLI/wMwWwJnxDYfwnBhkbcROCqF7iT/4ig==
53865376

5387-
5388-
version "2.0.0-next.31"
5389-
resolved "https://registry.yarnpkg.com/ariakit/-/ariakit-2.0.0-next.31.tgz#75bb914dd77c9e5bd4cc7e9a6502534e22621cd3"
5390-
integrity sha512-ChBErZ3/qLVcrtqFXME5/fS6EcM/qN8A/6shgu5TDTqERfH5hw3iTzOW4Z2r+srIVltj8Ab+kwCXgG3UgMlE/Q==
5377+
5378+
version "2.0.0-next.36"
5379+
resolved "https://registry.yarnpkg.com/ariakit/-/ariakit-2.0.0-next.36.tgz#74b93cc839cfd9e8350c4cc961b06b8f70f16e14"
5380+
integrity sha512-H/ZqRgy5tGGKOcOsZ24lc5cBoQ83vgCFd+mC87UWdIEdYqhKNPPjFZona/V/l0SRtn9Mar+t93QbggyThOw6Qg==
53915381
dependencies:
5392-
"@floating-ui/dom" "0.5.4"
5393-
ariakit-utils "0.17.0-next.22"
5382+
"@floating-ui/dom" "^1.0.0"
5383+
ariakit-utils "0.17.0-next.23"
53945384

53955385
arr-diff@^1.0.1:
53965386
version "1.1.0"
@@ -10370,11 +10360,6 @@ hash.js@^1.0.0, hash.js@^1.0.3:
1037010360
inherits "^2.0.3"
1037110361
minimalistic-assert "^1.0.1"
1037210362

10373-
hashlru@^2.3.0:
10374-
version "2.3.0"
10375-
resolved "https://registry.yarnpkg.com/hashlru/-/hashlru-2.3.0.tgz#5dc15928b3f6961a2056416bb3a4910216fdfb51"
10376-
integrity sha512-0cMsjjIC8I+D3M44pOQdsy0OHXGLVz6Z0beRuufhKa0KfaD2wGwAev6jILzXsd3/vpnNQJmWyZtIILqM1N+n5A==
10377-
1037810363
hast-to-hyperscript@^9.0.0:
1037910364
version "9.0.1"
1038010365
resolved "https://registry.yarnpkg.com/hast-to-hyperscript/-/hast-to-hyperscript-9.0.1.tgz#9b67fd188e4c81e8ad66f803855334173920218d"
@@ -17187,12 +17172,10 @@ synchronous-promise@^2.0.15:
1718717172
resolved "https://registry.yarnpkg.com/synchronous-promise/-/synchronous-promise-2.0.15.tgz#07ca1822b9de0001f5ff73595f3d08c4f720eb8e"
1718817173
integrity sha512-k8uzYIkIVwmT+TcglpdN50pS2y1BDcUnBPK9iJeGu0Pl1lOI8pD6wtzgw91Pjpe+RxtTncw32tLxs/R0yNL2Mg==
1718917174

17190-
tailwind-merge@^1.3.0:
17191-
version "1.3.0"
17192-
resolved "https://registry.yarnpkg.com/tailwind-merge/-/tailwind-merge-1.3.0.tgz#fa29557a2e1c6947904143e45884e554f491937d"
17193-
integrity sha512-M+DC6DO5eypc3/iOt/oTuqUH68Ip+XCu/Afybg9/ATxUX6KMPk4UGU4z4EMx08BMOBL+iOL93+hx3Jxpb9qNGw==
17194-
dependencies:
17195-
hashlru "^2.3.0"
17175+
17176+
version "1.5.1"
17177+
resolved "https://registry.yarnpkg.com/tailwind-merge/-/tailwind-merge-1.5.1.tgz#fb7d6b724aef702b11fd01fddf1be1d8aeab3d7a"
17178+
integrity sha512-lqmJS6+3vsNQY77TMMRBVFbWyMcIAAD/09Vs+IXCt3cza58/O7X5DBbOu+7p6LPhw0efK45LL8kAJ7IORccMag==
1719617179

1719717180
1719817181
version "3.1.6"

0 commit comments

Comments
 (0)