Skip to content

Commit 8832dee

Browse files
authored
Merge pull request #5696 from GeekyAnts/release/3.4.27
release 3.4.27
2 parents ea50b56 + 107736f commit 8832dee

File tree

3 files changed

+75
-69
lines changed

3 files changed

+75
-69
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"prettier --write"
3737
]
3838
},
39-
"version": "3.4.26",
39+
"version": "3.4.27",
4040
"license": "MIT",
4141
"private": false,
4242
"main": "lib/commonjs/index",
@@ -179,7 +179,7 @@
179179
"dependencies": {
180180
"@react-aria/visually-hidden": "^3.2.1",
181181
"@react-native-aria/button": "^0.2.4",
182-
"@react-native-aria/checkbox": "^0.2.2",
182+
"@react-native-aria/checkbox": "^0.2.3",
183183
"@react-native-aria/combobox": "^0.2.4-alpha.0",
184184
"@react-native-aria/focus": "^0.2.6",
185185
"@react-native-aria/interactions": "^0.2.2",
@@ -189,7 +189,7 @@
189189
"@react-native-aria/slider": "^0.2.5-alpha.1",
190190
"@react-native-aria/tabs": "^0.2.7",
191191
"@react-native-aria/utils": "^0.2.8",
192-
"@react-stately/checkbox": "3.0.3",
192+
"@react-stately/checkbox": "3.4.0",
193193
"@react-stately/collections": "3.3.0",
194194
"@react-stately/combobox": "3.0.0-alpha.1",
195195
"@react-stately/radio": "3.2.1",

src/components/primitives/Checkbox/CheckboxGroup.tsx

+14-12
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { createContext, memo, forwardRef } from 'react';
1+
import React, { createContext, memo, forwardRef, useMemo } from 'react';
22
import { useCheckboxGroupState } from '@react-stately/checkbox';
33
import { useCheckboxGroup } from '@react-native-aria/checkbox';
44
import { useFormControlContext } from '../../composites/FormControl';
@@ -22,23 +22,25 @@ function CheckboxGroup(
2222
{ 'aria-label': props.accessibilityLabel, ...props },
2323
state
2424
);
25-
2625
const formControlContext = useFormControlContext();
26+
const value = useMemo(
27+
() => ({
28+
size,
29+
colorScheme,
30+
..._checkbox,
31+
...formControlContext,
32+
state,
33+
}),
34+
[_checkbox, colorScheme, formControlContext, size, state]
35+
);
36+
2737
//TODO: refactor for responsive prop
2838
if (useHasResponsiveProps({ ...props, size, colorScheme })) {
2939
return null;
3040
}
3141
return (
32-
<CheckboxGroupContext.Provider
33-
value={{
34-
//@ts-ignore
35-
size,
36-
colorScheme,
37-
..._checkbox,
38-
...formControlContext,
39-
state,
40-
}}
41-
>
42+
// @ts-ignore
43+
<CheckboxGroupContext.Provider value={value}>
4244
<Box {...resolvedProps} {...groupProps} {...props} ref={ref}>
4345
{children}
4446
</Box>

yarn.lock

+58-54
Original file line numberDiff line numberDiff line change
@@ -2271,15 +2271,15 @@
22712271
"@react-stately/toggle" "^3.2.1"
22722272
"@react-types/checkbox" "^3.2.1"
22732273

2274-
"@react-native-aria/checkbox@^0.2.2":
2275-
version "0.2.2"
2276-
resolved "https://registry.yarnpkg.com/@react-native-aria/checkbox/-/checkbox-0.2.2.tgz#fc63537bee8eace82755c27d93249bfd9377aa83"
2277-
integrity sha512-Jtl5A1TTbQbF9QrABm/3fJ2RtHtal/LSgnMoyrfW24UZk4PytMnLxhcPCKipSaivUV6CAxQPkaLUk7lDHzVt2g==
2274+
"@react-native-aria/checkbox@^0.2.3":
2275+
version "0.2.3"
2276+
resolved "https://registry.yarnpkg.com/@react-native-aria/checkbox/-/checkbox-0.2.3.tgz#b6c99c215677df872f1bb4e596b54573f1c7a5f0"
2277+
integrity sha512-YtWtXGg5tvOaV6v1CmbusXoOZvGRAVYygms9qNeUF7/B8/iDNGSKjlxHE5LVOLRtJO/B9ndZnr6RkL326ceyng==
22782278
dependencies:
22792279
"@react-aria/checkbox" "^3.2.1"
2280-
"@react-aria/utils" "^3.5.0"
2281-
"@react-native-aria/toggle" "^0.2.2-alpha.0"
2282-
"@react-native-aria/utils" "^0.2.2"
2280+
"@react-aria/utils" "^3.6.0"
2281+
"@react-native-aria/toggle" "^0.2.3"
2282+
"@react-native-aria/utils" "^0.2.6"
22832283
"@react-stately/toggle" "^3.2.1"
22842284

22852285
"@react-native-aria/combobox@^0.2.4-alpha.0":
@@ -2301,15 +2301,6 @@
23012301
dependencies:
23022302
"@react-aria/focus" "^3.2.3"
23032303

2304-
"@react-native-aria/interactions@^0.2.1":
2305-
version "0.2.1"
2306-
resolved "https://registry.yarnpkg.com/@react-native-aria/interactions/-/interactions-0.2.1.tgz#6984809f6fc5f666e9028b3961f958ad87ac161b"
2307-
integrity sha512-zWa8hz7t5H7aLtXKOpbmjS+1hIH31jAq1qb3+M3aNhUzgnTFmJ/9OuHgyiZBwkr/4nQreQ9RBH24QMGNtEN8kg==
2308-
dependencies:
2309-
"@react-aria/interactions" "^3.3.2"
2310-
"@react-aria/utils" "^3.5.0"
2311-
"@react-native-aria/utils" "^0.2.1"
2312-
23132304
"@react-native-aria/interactions@^0.2.2":
23142305
version "0.2.2"
23152306
resolved "https://registry.yarnpkg.com/@react-native-aria/interactions/-/interactions-0.2.2.tgz#93d27c7af348802978461b72eb92513f44fa05d2"
@@ -2399,19 +2390,19 @@
23992390
"@react-stately/tabs" "3.0.0-alpha.1"
24002391
"@react-types/tabs" "3.0.0-alpha.2"
24012392

2402-
"@react-native-aria/toggle@^0.2.2-alpha.0":
2403-
version "0.2.2-alpha.0"
2404-
resolved "https://registry.yarnpkg.com/@react-native-aria/toggle/-/toggle-0.2.2-alpha.0.tgz#b50e285c7403fe4475b320297f02904cba73ae4d"
2405-
integrity sha512-c9SD7hJtzVOOqaj5MDUFHdn/TmYdgXQzdDfJMx2QZtQk8XWcQ7gB/hDuK0BtyjlGXpINvjJycQ0xgX4lz/1JpA==
2393+
"@react-native-aria/toggle@^0.2.3":
2394+
version "0.2.3"
2395+
resolved "https://registry.yarnpkg.com/@react-native-aria/toggle/-/toggle-0.2.3.tgz#a387f03480aa0d97dc0191acbcae66122f7bcf7f"
2396+
integrity sha512-3aOlchMxpR0b2h3Z7V0aYZaQMVJD6uKOWKWJm82VsLrni4iDnDX/mLv30ujuuK3+LclUhVlJd2kRuCl+xnf3XQ==
24062397
dependencies:
24072398
"@react-aria/focus" "^3.2.3"
2408-
"@react-aria/utils" "^3.5.0"
2409-
"@react-native-aria/interactions" "^0.2.1"
2410-
"@react-native-aria/utils" "^0.2.1"
2399+
"@react-aria/utils" "^3.6.0"
2400+
"@react-native-aria/interactions" "^0.2.3"
2401+
"@react-native-aria/utils" "^0.2.6"
24112402
"@react-stately/toggle" "^3.2.1"
24122403
"@react-types/checkbox" "^3.2.1"
24132404

2414-
"@react-native-aria/utils@^0.2.1", "@react-native-aria/utils@^0.2.2", "@react-native-aria/utils@^0.2.4", "@react-native-aria/utils@^0.2.6", "@react-native-aria/utils@^0.2.7":
2405+
"@react-native-aria/utils@^0.2.2", "@react-native-aria/utils@^0.2.4", "@react-native-aria/utils@^0.2.6", "@react-native-aria/utils@^0.2.7":
24152406
version "0.2.7"
24162407
resolved "https://registry.npmjs.org/@react-native-aria/utils/-/utils-0.2.7.tgz#53d1f4a44cad382bd9d1a6b5af6cb86624e70f76"
24172408
integrity sha512-mozajHovHHYjNY28j5lrIzUQ3p3mQ7EnaKlukd0EuSaAwBboPQ1sVK9ToxPLyyixkxGe4pxy+br5ahzd6wlf5Q==
@@ -2598,15 +2589,16 @@
25982589
resolved "https://registry.yarnpkg.com/@react-native-community/eslint-plugin/-/eslint-plugin-1.1.0.tgz#e42b1bef12d2415411519fd528e64b593b1363dc"
25992590
integrity sha512-W/J0fNYVO01tioHjvYWQ9m6RgndVtbElzYozBq1ZPrHO/iCzlqoySHl4gO/fpCl9QEFjvJfjPgtPMTMlsoq5DQ==
26002591

2601-
"@react-stately/checkbox@3.0.3":
2602-
version "3.0.3"
2603-
resolved "https://registry.yarnpkg.com/@react-stately/checkbox/-/checkbox-3.0.3.tgz#18ee6bd3b544334b6f853bb5c5f7017ac3bb9c37"
2604-
integrity sha512-amT889DTLdbjAVjZ9j9TytN73PszynGIspKi1QSUCvXeA2OVyCwShxhV0Pn7yYX8cMinvGXrjhWdhn0nhYeMdg==
2592+
"@react-stately/checkbox@3.4.0":
2593+
version "3.4.0"
2594+
resolved "https://registry.yarnpkg.com/@react-stately/checkbox/-/checkbox-3.4.0.tgz#34712864e6b6dbae033b30a279dc32a26bbc1a9b"
2595+
integrity sha512-zqwHMmlzza1exS6Bbqj4Mom3ygtG8pLguHweZ9OO7BFQLwBmzJsrFNqDcj7xh8iEWxXKQfZ2YOuhkaGvu4GRjA==
26052596
dependencies:
2606-
"@babel/runtime" "^7.6.2"
2607-
"@react-stately/toggle" "^3.2.3"
2608-
"@react-stately/utils" "^3.2.2"
2609-
"@react-types/checkbox" "^3.2.3"
2597+
"@react-stately/toggle" "^3.5.0"
2598+
"@react-stately/utils" "^3.6.0"
2599+
"@react-types/checkbox" "^3.4.2"
2600+
"@react-types/shared" "^3.17.0"
2601+
"@swc/helpers" "^0.4.14"
26102602

26112603
"@react-stately/checkbox@^3.0.1":
26122604
version "3.0.1"
@@ -2773,15 +2765,15 @@
27732765
"@react-types/checkbox" "^3.2.1"
27742766
"@react-types/shared" "^3.2.1"
27752767

2776-
"@react-stately/toggle@^3.2.3":
2777-
version "3.2.6"
2778-
resolved "https://registry.yarnpkg.com/@react-stately/toggle/-/toggle-3.2.6.tgz#4f4558d13700d5f9486037e45a585daf9b2ed1c9"
2779-
integrity sha512-M/+iX6eHYZScKfaOQvp3KqityOuRTWLOgskCNlnQBTq5VSszuD2p4uWxJQWXq3DbU+q872Fz4vJ7eTc2l9YA/Q==
2768+
"@react-stately/toggle@^3.5.0":
2769+
version "3.5.0"
2770+
resolved "https://registry.yarnpkg.com/@react-stately/toggle/-/toggle-3.5.0.tgz#fee5a29d7699e43867c52981834af5393f47c1c4"
2771+
integrity sha512-vKwLLkFsiIve4pXIQC/dqLAz7Z+qtzJ8+D00EXXO1Nf8YHcyIMDkTmi3NTM8Qtvmt4xX2hbJFiPDF6WvF6mBIg==
27802772
dependencies:
2781-
"@babel/runtime" "^7.6.2"
2782-
"@react-stately/utils" "^3.4.1"
2783-
"@react-types/checkbox" "^3.2.6"
2784-
"@react-types/shared" "^3.11.2"
2773+
"@react-stately/utils" "^3.6.0"
2774+
"@react-types/checkbox" "^3.4.2"
2775+
"@react-types/shared" "^3.17.0"
2776+
"@swc/helpers" "^0.4.14"
27852777

27862778
"@react-stately/tree@^3.1.2":
27872779
version "3.1.2"
@@ -2815,12 +2807,12 @@
28152807
dependencies:
28162808
"@babel/runtime" "^7.6.2"
28172809

2818-
"@react-stately/utils@^3.4.1":
2819-
version "3.4.1"
2820-
resolved "https://registry.yarnpkg.com/@react-stately/utils/-/utils-3.4.1.tgz#56f049aa1704d338968b5973c796ee606e9c0c62"
2821-
integrity sha512-mjFbKklj/W8KRw1CQSpUJxHd7lhUge4i00NwJTwGxbzmiJgsTWlKKS/1rBf48ey9hUBopXT5x5vG/AxQfWTQug==
2810+
"@react-stately/utils@^3.6.0":
2811+
version "3.6.0"
2812+
resolved "https://registry.yarnpkg.com/@react-stately/utils/-/utils-3.6.0.tgz#f273e7fcb348254347d2e88c8f0c45571060c207"
2813+
integrity sha512-rptF7iUWDrquaYvBAS4QQhOBQyLBncDeHF03WnHXAxnuPJXNcr9cXJtjJPGCs036ZB8Q2hc9BGG5wNyMkF5v+Q==
28222814
dependencies:
2823-
"@babel/runtime" "^7.6.2"
2815+
"@swc/helpers" "^0.4.14"
28242816

28252817
"@react-stately/virtualizer@^3.1.2":
28262818
version "3.1.2"
@@ -2852,12 +2844,12 @@
28522844
dependencies:
28532845
"@react-types/shared" "^3.2.1"
28542846

2855-
"@react-types/checkbox@^3.2.3", "@react-types/checkbox@^3.2.6":
2856-
version "3.2.6"
2857-
resolved "https://registry.yarnpkg.com/@react-types/checkbox/-/checkbox-3.2.6.tgz#61fd70857bdd2d6da9289892ea366f305ab47ed6"
2858-
integrity sha512-bOQAnnDEpXL1P4oRBiwjnOskKQtawc+JcRZzQk/9k7NwKWfv5MHG/MFDJsW057GPm9Ks0onNATohtw6LFvzAQA==
2847+
"@react-types/checkbox@^3.4.2":
2848+
version "3.4.2"
2849+
resolved "https://registry.yarnpkg.com/@react-types/checkbox/-/checkbox-3.4.2.tgz#6089e9ef2d023415a5f871e312f30bae54143ba5"
2850+
integrity sha512-/NWFCEQLvVgo25afPt2jv4syxYvZeY/D/n2Y92IGtoNV4akdz4AuQ65+1X+JOhQc/ZbAblWw5fFWUZoQs3CLZg==
28592851
dependencies:
2860-
"@react-types/shared" "^3.11.2"
2852+
"@react-types/shared" "^3.17.0"
28612853

28622854
"@react-types/combobox@3.0.0-alpha.1":
28632855
version "3.0.0-alpha.1"
@@ -2916,10 +2908,10 @@
29162908
dependencies:
29172909
"@react-types/shared" "^3.4.0"
29182910

2919-
"@react-types/shared@^3.11.2":
2920-
version "3.11.2"
2921-
resolved "https://registry.yarnpkg.com/@react-types/shared/-/shared-3.11.2.tgz#b269c0cf6223664ac42d980b7add1b67b51b87d4"
2922-
integrity sha512-MIjjjkFi/DTzMVmeFJJrpc51eS/PLNzLZEv6o/QJPhQ9uOMElYqA790qAcG75u3tR0XGU2Vv9RyeOC7+ppw8/Q==
2911+
"@react-types/shared@^3.17.0":
2912+
version "3.17.0"
2913+
resolved "https://registry.yarnpkg.com/@react-types/shared/-/shared-3.17.0.tgz#b7c5e318664aadb315d305a27dd2a209d1837d95"
2914+
integrity sha512-1SNZ/RhVrrQ1e6yE0bPV7d5Sfp+Uv0dfUEhwF9MAu2v5msu7AMewnsiojKNA0QA6Ing1gpDLjHCxtayQfuxqcg==
29232915

29242916
"@react-types/shared@^3.2.1", "@react-types/shared@^3.3.0":
29252917
version "3.3.0"
@@ -3007,6 +2999,13 @@
30072999
dependencies:
30083000
"@sinonjs/commons" "^1.7.0"
30093001

3002+
"@swc/helpers@^0.4.14":
3003+
version "0.4.14"
3004+
resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.4.14.tgz#1352ac6d95e3617ccb7c1498ff019654f1e12a74"
3005+
integrity sha512-4C7nX/dvpzB7za4Ql9K81xK3HPxCpHMgwTZVyf+9JQ6VUbn9jjZVN7/Nkdz/Ugzs2CSjqnL/UPXroiVBVHUWUw==
3006+
dependencies:
3007+
tslib "^2.4.0"
3008+
30103009
"@szmarczak/http-timer@^1.1.2":
30113010
version "1.1.2"
30123011
resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-1.1.2.tgz#b1665e2c461a2cd92f4c1bbf50d5454de0d4b421"
@@ -12135,6 +12134,11 @@ tslib@^2.1.0:
1213512134
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01"
1213612135
integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==
1213712136

12137+
tslib@^2.4.0:
12138+
version "2.5.0"
12139+
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf"
12140+
integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==
12141+
1213812142
tsutils@^3.17.1:
1213912143
version "3.17.1"
1214012144
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.17.1.tgz#ed719917f11ca0dee586272b2ac49e015a2dd759"

0 commit comments

Comments
 (0)