@react-aria/combobox 3.8.5-nightly.4555 → 3.8.5-nightly.4558

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/ar-AE.mjs +1 -1
  2. package/dist/bg-BG.mjs +1 -1
  3. package/dist/cs-CZ.mjs +1 -1
  4. package/dist/da-DK.mjs +1 -1
  5. package/dist/de-DE.mjs +1 -1
  6. package/dist/el-GR.mjs +1 -1
  7. package/dist/en-US.mjs +1 -1
  8. package/dist/es-ES.mjs +1 -1
  9. package/dist/et-EE.mjs +1 -1
  10. package/dist/fi-FI.mjs +1 -1
  11. package/dist/fr-FR.mjs +1 -1
  12. package/dist/he-IL.mjs +1 -1
  13. package/dist/hr-HR.mjs +1 -1
  14. package/dist/hu-HU.mjs +1 -1
  15. package/dist/import.mjs +1 -388
  16. package/dist/intlStrings.main.js +108 -0
  17. package/dist/intlStrings.main.js.map +1 -0
  18. package/dist/intlStrings.mjs +110 -0
  19. package/dist/intlStrings.module.js +110 -0
  20. package/dist/intlStrings.module.js.map +1 -0
  21. package/dist/it-IT.mjs +1 -1
  22. package/dist/ja-JP.mjs +1 -1
  23. package/dist/ko-KR.mjs +1 -1
  24. package/dist/lt-LT.mjs +1 -1
  25. package/dist/lv-LV.mjs +1 -1
  26. package/dist/main.js +2 -389
  27. package/dist/main.js.map +1 -1
  28. package/dist/module.js +1 -388
  29. package/dist/module.js.map +1 -1
  30. package/dist/nb-NO.mjs +1 -1
  31. package/dist/nl-NL.mjs +1 -1
  32. package/dist/pl-PL.mjs +1 -1
  33. package/dist/pt-BR.mjs +1 -1
  34. package/dist/pt-PT.mjs +1 -1
  35. package/dist/ro-RO.mjs +1 -1
  36. package/dist/ru-RU.mjs +1 -1
  37. package/dist/sk-SK.mjs +1 -1
  38. package/dist/sl-SI.mjs +1 -1
  39. package/dist/sr-SP.mjs +1 -1
  40. package/dist/sv-SE.mjs +1 -1
  41. package/dist/tr-TR.mjs +1 -1
  42. package/dist/uk-UA.mjs +1 -1
  43. package/dist/useComboBox.main.js +292 -0
  44. package/dist/useComboBox.main.js.map +1 -0
  45. package/dist/useComboBox.mjs +287 -0
  46. package/dist/useComboBox.module.js +287 -0
  47. package/dist/useComboBox.module.js.map +1 -0
  48. package/dist/zh-CN.mjs +1 -1
  49. package/dist/zh-TW.mjs +1 -1
  50. package/package.json +16 -16
@@ -0,0 +1,110 @@
1
+ import $hlgbr$arAEmodulejs from "./ar-AE.mjs";
2
+ import $hlgbr$bgBGmodulejs from "./bg-BG.mjs";
3
+ import $hlgbr$csCZmodulejs from "./cs-CZ.mjs";
4
+ import $hlgbr$daDKmodulejs from "./da-DK.mjs";
5
+ import $hlgbr$deDEmodulejs from "./de-DE.mjs";
6
+ import $hlgbr$elGRmodulejs from "./el-GR.mjs";
7
+ import $hlgbr$enUSmodulejs from "./en-US.mjs";
8
+ import $hlgbr$esESmodulejs from "./es-ES.mjs";
9
+ import $hlgbr$etEEmodulejs from "./et-EE.mjs";
10
+ import $hlgbr$fiFImodulejs from "./fi-FI.mjs";
11
+ import $hlgbr$frFRmodulejs from "./fr-FR.mjs";
12
+ import $hlgbr$heILmodulejs from "./he-IL.mjs";
13
+ import $hlgbr$hrHRmodulejs from "./hr-HR.mjs";
14
+ import $hlgbr$huHUmodulejs from "./hu-HU.mjs";
15
+ import $hlgbr$itITmodulejs from "./it-IT.mjs";
16
+ import $hlgbr$jaJPmodulejs from "./ja-JP.mjs";
17
+ import $hlgbr$koKRmodulejs from "./ko-KR.mjs";
18
+ import $hlgbr$ltLTmodulejs from "./lt-LT.mjs";
19
+ import $hlgbr$lvLVmodulejs from "./lv-LV.mjs";
20
+ import $hlgbr$nbNOmodulejs from "./nb-NO.mjs";
21
+ import $hlgbr$nlNLmodulejs from "./nl-NL.mjs";
22
+ import $hlgbr$plPLmodulejs from "./pl-PL.mjs";
23
+ import $hlgbr$ptBRmodulejs from "./pt-BR.mjs";
24
+ import $hlgbr$ptPTmodulejs from "./pt-PT.mjs";
25
+ import $hlgbr$roROmodulejs from "./ro-RO.mjs";
26
+ import $hlgbr$ruRUmodulejs from "./ru-RU.mjs";
27
+ import $hlgbr$skSKmodulejs from "./sk-SK.mjs";
28
+ import $hlgbr$slSImodulejs from "./sl-SI.mjs";
29
+ import $hlgbr$srSPmodulejs from "./sr-SP.mjs";
30
+ import $hlgbr$svSEmodulejs from "./sv-SE.mjs";
31
+ import $hlgbr$trTRmodulejs from "./tr-TR.mjs";
32
+ import $hlgbr$ukUAmodulejs from "./uk-UA.mjs";
33
+ import $hlgbr$zhCNmodulejs from "./zh-CN.mjs";
34
+ import $hlgbr$zhTWmodulejs from "./zh-TW.mjs";
35
+
36
+ var $de5926a92e8ebc5b$exports = {};
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+ $de5926a92e8ebc5b$exports = {
72
+ "ar-AE": $hlgbr$arAEmodulejs,
73
+ "bg-BG": $hlgbr$bgBGmodulejs,
74
+ "cs-CZ": $hlgbr$csCZmodulejs,
75
+ "da-DK": $hlgbr$daDKmodulejs,
76
+ "de-DE": $hlgbr$deDEmodulejs,
77
+ "el-GR": $hlgbr$elGRmodulejs,
78
+ "en-US": $hlgbr$enUSmodulejs,
79
+ "es-ES": $hlgbr$esESmodulejs,
80
+ "et-EE": $hlgbr$etEEmodulejs,
81
+ "fi-FI": $hlgbr$fiFImodulejs,
82
+ "fr-FR": $hlgbr$frFRmodulejs,
83
+ "he-IL": $hlgbr$heILmodulejs,
84
+ "hr-HR": $hlgbr$hrHRmodulejs,
85
+ "hu-HU": $hlgbr$huHUmodulejs,
86
+ "it-IT": $hlgbr$itITmodulejs,
87
+ "ja-JP": $hlgbr$jaJPmodulejs,
88
+ "ko-KR": $hlgbr$koKRmodulejs,
89
+ "lt-LT": $hlgbr$ltLTmodulejs,
90
+ "lv-LV": $hlgbr$lvLVmodulejs,
91
+ "nb-NO": $hlgbr$nbNOmodulejs,
92
+ "nl-NL": $hlgbr$nlNLmodulejs,
93
+ "pl-PL": $hlgbr$plPLmodulejs,
94
+ "pt-BR": $hlgbr$ptBRmodulejs,
95
+ "pt-PT": $hlgbr$ptPTmodulejs,
96
+ "ro-RO": $hlgbr$roROmodulejs,
97
+ "ru-RU": $hlgbr$ruRUmodulejs,
98
+ "sk-SK": $hlgbr$skSKmodulejs,
99
+ "sl-SI": $hlgbr$slSImodulejs,
100
+ "sr-SP": $hlgbr$srSPmodulejs,
101
+ "sv-SE": $hlgbr$svSEmodulejs,
102
+ "tr-TR": $hlgbr$trTRmodulejs,
103
+ "uk-UA": $hlgbr$ukUAmodulejs,
104
+ "zh-CN": $hlgbr$zhCNmodulejs,
105
+ "zh-TW": $hlgbr$zhTWmodulejs
106
+ };
107
+
108
+
109
+ export {$de5926a92e8ebc5b$exports as default};
110
+ //# sourceMappingURL=intlStrings.mjs.map
@@ -0,0 +1,110 @@
1
+ import $hlgbr$arAEmodulejs from "./ar-AE.module.js";
2
+ import $hlgbr$bgBGmodulejs from "./bg-BG.module.js";
3
+ import $hlgbr$csCZmodulejs from "./cs-CZ.module.js";
4
+ import $hlgbr$daDKmodulejs from "./da-DK.module.js";
5
+ import $hlgbr$deDEmodulejs from "./de-DE.module.js";
6
+ import $hlgbr$elGRmodulejs from "./el-GR.module.js";
7
+ import $hlgbr$enUSmodulejs from "./en-US.module.js";
8
+ import $hlgbr$esESmodulejs from "./es-ES.module.js";
9
+ import $hlgbr$etEEmodulejs from "./et-EE.module.js";
10
+ import $hlgbr$fiFImodulejs from "./fi-FI.module.js";
11
+ import $hlgbr$frFRmodulejs from "./fr-FR.module.js";
12
+ import $hlgbr$heILmodulejs from "./he-IL.module.js";
13
+ import $hlgbr$hrHRmodulejs from "./hr-HR.module.js";
14
+ import $hlgbr$huHUmodulejs from "./hu-HU.module.js";
15
+ import $hlgbr$itITmodulejs from "./it-IT.module.js";
16
+ import $hlgbr$jaJPmodulejs from "./ja-JP.module.js";
17
+ import $hlgbr$koKRmodulejs from "./ko-KR.module.js";
18
+ import $hlgbr$ltLTmodulejs from "./lt-LT.module.js";
19
+ import $hlgbr$lvLVmodulejs from "./lv-LV.module.js";
20
+ import $hlgbr$nbNOmodulejs from "./nb-NO.module.js";
21
+ import $hlgbr$nlNLmodulejs from "./nl-NL.module.js";
22
+ import $hlgbr$plPLmodulejs from "./pl-PL.module.js";
23
+ import $hlgbr$ptBRmodulejs from "./pt-BR.module.js";
24
+ import $hlgbr$ptPTmodulejs from "./pt-PT.module.js";
25
+ import $hlgbr$roROmodulejs from "./ro-RO.module.js";
26
+ import $hlgbr$ruRUmodulejs from "./ru-RU.module.js";
27
+ import $hlgbr$skSKmodulejs from "./sk-SK.module.js";
28
+ import $hlgbr$slSImodulejs from "./sl-SI.module.js";
29
+ import $hlgbr$srSPmodulejs from "./sr-SP.module.js";
30
+ import $hlgbr$svSEmodulejs from "./sv-SE.module.js";
31
+ import $hlgbr$trTRmodulejs from "./tr-TR.module.js";
32
+ import $hlgbr$ukUAmodulejs from "./uk-UA.module.js";
33
+ import $hlgbr$zhCNmodulejs from "./zh-CN.module.js";
34
+ import $hlgbr$zhTWmodulejs from "./zh-TW.module.js";
35
+
36
+ var $de5926a92e8ebc5b$exports = {};
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+ $de5926a92e8ebc5b$exports = {
72
+ "ar-AE": $hlgbr$arAEmodulejs,
73
+ "bg-BG": $hlgbr$bgBGmodulejs,
74
+ "cs-CZ": $hlgbr$csCZmodulejs,
75
+ "da-DK": $hlgbr$daDKmodulejs,
76
+ "de-DE": $hlgbr$deDEmodulejs,
77
+ "el-GR": $hlgbr$elGRmodulejs,
78
+ "en-US": $hlgbr$enUSmodulejs,
79
+ "es-ES": $hlgbr$esESmodulejs,
80
+ "et-EE": $hlgbr$etEEmodulejs,
81
+ "fi-FI": $hlgbr$fiFImodulejs,
82
+ "fr-FR": $hlgbr$frFRmodulejs,
83
+ "he-IL": $hlgbr$heILmodulejs,
84
+ "hr-HR": $hlgbr$hrHRmodulejs,
85
+ "hu-HU": $hlgbr$huHUmodulejs,
86
+ "it-IT": $hlgbr$itITmodulejs,
87
+ "ja-JP": $hlgbr$jaJPmodulejs,
88
+ "ko-KR": $hlgbr$koKRmodulejs,
89
+ "lt-LT": $hlgbr$ltLTmodulejs,
90
+ "lv-LV": $hlgbr$lvLVmodulejs,
91
+ "nb-NO": $hlgbr$nbNOmodulejs,
92
+ "nl-NL": $hlgbr$nlNLmodulejs,
93
+ "pl-PL": $hlgbr$plPLmodulejs,
94
+ "pt-BR": $hlgbr$ptBRmodulejs,
95
+ "pt-PT": $hlgbr$ptPTmodulejs,
96
+ "ro-RO": $hlgbr$roROmodulejs,
97
+ "ru-RU": $hlgbr$ruRUmodulejs,
98
+ "sk-SK": $hlgbr$skSKmodulejs,
99
+ "sl-SI": $hlgbr$slSImodulejs,
100
+ "sr-SP": $hlgbr$srSPmodulejs,
101
+ "sv-SE": $hlgbr$svSEmodulejs,
102
+ "tr-TR": $hlgbr$trTRmodulejs,
103
+ "uk-UA": $hlgbr$ukUAmodulejs,
104
+ "zh-CN": $hlgbr$zhCNmodulejs,
105
+ "zh-TW": $hlgbr$zhTWmodulejs
106
+ };
107
+
108
+
109
+ export {$de5926a92e8ebc5b$exports as default};
110
+ //# sourceMappingURL=intlStrings.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,4BAAiB;IACf,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;AACX","sources":["packages/@react-aria/combobox/src/*.js"],"sourcesContent":["const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}"],"names":[],"version":3,"file":"intlStrings.module.js.map"}
package/dist/it-IT.mjs CHANGED
@@ -21,4 +21,4 @@ $77f075bb86ad7091$exports = {
21
21
 
22
22
 
23
23
  export {$77f075bb86ad7091$exports as default};
24
- //# sourceMappingURL=it-IT.module.js.map
24
+ //# sourceMappingURL=it-IT.mjs.map
package/dist/ja-JP.mjs CHANGED
@@ -21,4 +21,4 @@ $6e87462e84907983$exports = {
21
21
 
22
22
 
23
23
  export {$6e87462e84907983$exports as default};
24
- //# sourceMappingURL=ja-JP.module.js.map
24
+ //# sourceMappingURL=ja-JP.mjs.map
package/dist/ko-KR.mjs CHANGED
@@ -21,4 +21,4 @@ $9246f2c6edc6b232$exports = {
21
21
 
22
22
 
23
23
  export {$9246f2c6edc6b232$exports as default};
24
- //# sourceMappingURL=ko-KR.module.js.map
24
+ //# sourceMappingURL=ko-KR.mjs.map
package/dist/lt-LT.mjs CHANGED
@@ -21,4 +21,4 @@ $e587accc6c0a434c$exports = {
21
21
 
22
22
 
23
23
  export {$e587accc6c0a434c$exports as default};
24
- //# sourceMappingURL=lt-LT.module.js.map
24
+ //# sourceMappingURL=lt-LT.mjs.map
package/dist/lv-LV.mjs CHANGED
@@ -21,4 +21,4 @@ $03a1900e7400b5ab$exports = {
21
21
 
22
22
 
23
23
  export {$03a1900e7400b5ab$exports as default};
24
- //# sourceMappingURL=lv-LV.module.js.map
24
+ //# sourceMappingURL=lv-LV.mjs.map
package/dist/main.js CHANGED
@@ -1,70 +1,12 @@
1
- var $a756282ae45b5180$exports = require("./ar-AE.main.js");
2
- var $50569559b1387c57$exports = require("./bg-BG.main.js");
3
- var $bff243ee21f5616f$exports = require("./cs-CZ.main.js");
4
- var $1508d10b8eb2180a$exports = require("./da-DK.main.js");
5
- var $aa4e6d422b8a72e9$exports = require("./de-DE.main.js");
6
- var $b88e038b0dd4dc0a$exports = require("./el-GR.main.js");
7
- var $dbcec05b5ddcd323$exports = require("./en-US.main.js");
8
- var $3a762c75d410ecfe$exports = require("./es-ES.main.js");
9
- var $345540ad7e1ca6bf$exports = require("./et-EE.main.js");
10
- var $f314257d456879ad$exports = require("./fi-FI.main.js");
11
- var $ebebc2f5e8da1157$exports = require("./fr-FR.main.js");
12
- var $3dda6220a904406b$exports = require("./he-IL.main.js");
13
- var $21178dd033a9f6f2$exports = require("./hr-HR.main.js");
14
- var $f12e9cac54fcde83$exports = require("./hu-HU.main.js");
15
- var $c7ad5d19d847ae9c$exports = require("./it-IT.main.js");
16
- var $2cd660cb05523578$exports = require("./ja-JP.main.js");
17
- var $854156a4c27f569c$exports = require("./ko-KR.main.js");
18
- var $dabe6c727809b774$exports = require("./lt-LT.main.js");
19
- var $7810eacb77cdba0d$exports = require("./lv-LV.main.js");
20
- var $5e329fda39bb6d70$exports = require("./nb-NO.main.js");
21
- var $29be2a564837167c$exports = require("./nl-NL.main.js");
22
- var $7c0ffa214495a56b$exports = require("./pl-PL.main.js");
23
- var $e8665834548c9563$exports = require("./pt-BR.main.js");
24
- var $3f614fe48e86ff5a$exports = require("./pt-PT.main.js");
25
- var $e7efe9ced5993d70$exports = require("./ro-RO.main.js");
26
- var $d56743931b3be207$exports = require("./ru-RU.main.js");
27
- var $68a40ce74b5b67bf$exports = require("./sk-SK.main.js");
28
- var $58f7d43d88008c7d$exports = require("./sl-SI.main.js");
29
- var $914aa7442fad912d$exports = require("./sr-SP.main.js");
30
- var $85af38f91b727899$exports = require("./sv-SE.main.js");
31
- var $72a40ca4dde96679$exports = require("./tr-TR.main.js");
32
- var $300dce19c9e0d13f$exports = require("./uk-UA.main.js");
33
- var $015ff4188b7f78eb$exports = require("./zh-CN.main.js");
34
- var $713552ac3e0ac749$exports = require("./zh-TW.main.js");
35
- var $8Zqhq$reactarialiveannouncer = require("@react-aria/live-announcer");
36
- var $8Zqhq$reactariaoverlays = require("@react-aria/overlays");
37
- var $8Zqhq$reactarialistbox = require("@react-aria/listbox");
38
- var $8Zqhq$reactariautils = require("@react-aria/utils");
39
- var $8Zqhq$react = require("react");
40
- var $8Zqhq$reactstatelycollections = require("@react-stately/collections");
41
- var $8Zqhq$reactariaselection = require("@react-aria/selection");
42
- var $8Zqhq$reactstatelyform = require("@react-stately/form");
43
- var $8Zqhq$reactariai18n = require("@react-aria/i18n");
44
- var $8Zqhq$reactariamenu = require("@react-aria/menu");
45
- var $8Zqhq$reactariatextfield = require("@react-aria/textfield");
1
+ var $242452271d1e4c0e$exports = require("./useComboBox.main.js");
46
2
 
47
3
 
48
4
  function $parcel$export(e, n, v, s) {
49
5
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
50
6
  }
51
7
 
52
- function $parcel$interopDefault(a) {
53
- return a && a.__esModule ? a.default : a;
54
- }
55
-
56
- $parcel$export(module.exports, "useComboBox", () => $242452271d1e4c0e$export$8c18d1b4f7232bbf);
8
+ $parcel$export(module.exports, "useComboBox", () => $242452271d1e4c0e$exports.useComboBox);
57
9
  /*
58
- * Copyright 2020 Adobe. All rights reserved.
59
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
60
- * you may not use this file except in compliance with the License. You may obtain a copy
61
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
62
- *
63
- * Unless required by applicable law or agreed to in writing, software distributed under
64
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
65
- * OF ANY KIND, either express or implied. See the License for the specific language
66
- * governing permissions and limitations under the License.
67
- */ /*
68
10
  * Copyright 2020 Adobe. All rights reserved.
69
11
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
70
12
  * you may not use this file except in compliance with the License. You may obtain a copy
@@ -77,333 +19,4 @@ $parcel$export(module.exports, "useComboBox", () => $242452271d1e4c0e$export$8c1
77
19
  */
78
20
 
79
21
 
80
-
81
-
82
-
83
- var $8d1e5da058b86bb9$exports = {};
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
- $8d1e5da058b86bb9$exports = {
119
- "ar-AE": $a756282ae45b5180$exports,
120
- "bg-BG": $50569559b1387c57$exports,
121
- "cs-CZ": $bff243ee21f5616f$exports,
122
- "da-DK": $1508d10b8eb2180a$exports,
123
- "de-DE": $aa4e6d422b8a72e9$exports,
124
- "el-GR": $b88e038b0dd4dc0a$exports,
125
- "en-US": $dbcec05b5ddcd323$exports,
126
- "es-ES": $3a762c75d410ecfe$exports,
127
- "et-EE": $345540ad7e1ca6bf$exports,
128
- "fi-FI": $f314257d456879ad$exports,
129
- "fr-FR": $ebebc2f5e8da1157$exports,
130
- "he-IL": $3dda6220a904406b$exports,
131
- "hr-HR": $21178dd033a9f6f2$exports,
132
- "hu-HU": $f12e9cac54fcde83$exports,
133
- "it-IT": $c7ad5d19d847ae9c$exports,
134
- "ja-JP": $2cd660cb05523578$exports,
135
- "ko-KR": $854156a4c27f569c$exports,
136
- "lt-LT": $dabe6c727809b774$exports,
137
- "lv-LV": $7810eacb77cdba0d$exports,
138
- "nb-NO": $5e329fda39bb6d70$exports,
139
- "nl-NL": $29be2a564837167c$exports,
140
- "pl-PL": $7c0ffa214495a56b$exports,
141
- "pt-BR": $e8665834548c9563$exports,
142
- "pt-PT": $3f614fe48e86ff5a$exports,
143
- "ro-RO": $e7efe9ced5993d70$exports,
144
- "ru-RU": $d56743931b3be207$exports,
145
- "sk-SK": $68a40ce74b5b67bf$exports,
146
- "sl-SI": $58f7d43d88008c7d$exports,
147
- "sr-SP": $914aa7442fad912d$exports,
148
- "sv-SE": $85af38f91b727899$exports,
149
- "tr-TR": $72a40ca4dde96679$exports,
150
- "uk-UA": $300dce19c9e0d13f$exports,
151
- "zh-CN": $015ff4188b7f78eb$exports,
152
- "zh-TW": $713552ac3e0ac749$exports
153
- };
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
- function $242452271d1e4c0e$export$8c18d1b4f7232bbf(props, state) {
162
- let { buttonRef: buttonRef, popoverRef: popoverRef, inputRef: inputRef, listBoxRef: listBoxRef, keyboardDelegate: keyboardDelegate, shouldFocusWrap: // completionMode = 'suggest',
163
- shouldFocusWrap, isReadOnly: isReadOnly, isDisabled: isDisabled } = props;
164
- let stringFormatter = (0, $8Zqhq$reactariai18n.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($8d1e5da058b86bb9$exports))), "@react-aria/combobox");
165
- let { menuTriggerProps: menuTriggerProps, menuProps: menuProps } = (0, $8Zqhq$reactariamenu.useMenuTrigger)({
166
- type: "listbox",
167
- isDisabled: isDisabled || isReadOnly
168
- }, state, buttonRef);
169
- // Set listbox id so it can be used when calling getItemId later
170
- (0, $8Zqhq$reactarialistbox.listData).set(state, {
171
- id: menuProps.id
172
- });
173
- // By default, a KeyboardDelegate is provided which uses the DOM to query layout information (e.g. for page up/page down).
174
- // When virtualized, the layout object will be passed in as a prop and override this.
175
- let delegate = (0, $8Zqhq$react.useMemo)(()=>keyboardDelegate || new (0, $8Zqhq$reactariaselection.ListKeyboardDelegate)(state.collection, state.disabledKeys, listBoxRef), [
176
- keyboardDelegate,
177
- state.collection,
178
- state.disabledKeys,
179
- listBoxRef
180
- ]);
181
- // Use useSelectableCollection to get the keyboard handlers to apply to the textfield
182
- let { collectionProps: collectionProps } = (0, $8Zqhq$reactariaselection.useSelectableCollection)({
183
- selectionManager: state.selectionManager,
184
- keyboardDelegate: delegate,
185
- disallowTypeAhead: true,
186
- disallowEmptySelection: true,
187
- shouldFocusWrap: shouldFocusWrap,
188
- ref: inputRef,
189
- // Prevent item scroll behavior from being applied here, should be handled in the user's Popover + ListBox component
190
- isVirtualized: true
191
- });
192
- let router = (0, $8Zqhq$reactariautils.useRouter)();
193
- // For textfield specific keydown operations
194
- let onKeyDown = (e)=>{
195
- switch(e.key){
196
- case "Enter":
197
- case "Tab":
198
- // Prevent form submission if menu is open since we may be selecting a option
199
- if (state.isOpen && e.key === "Enter") e.preventDefault();
200
- // If the focused item is a link, trigger opening it. Items that are links are not selectable.
201
- if (state.isOpen && state.selectionManager.focusedKey != null && state.selectionManager.isLink(state.selectionManager.focusedKey)) {
202
- if (e.key === "Enter") {
203
- let item = listBoxRef.current.querySelector(`[data-key="${CSS.escape(state.selectionManager.focusedKey.toString())}"]`);
204
- if (item instanceof HTMLAnchorElement) {
205
- let collectionItem = state.collection.getItem(state.selectionManager.focusedKey);
206
- router.open(item, e, collectionItem.props.href, collectionItem.props.routerOptions);
207
- }
208
- }
209
- state.close();
210
- } else state.commit();
211
- break;
212
- case "Escape":
213
- if (state.selectedKey !== null || state.inputValue === "" || props.allowsCustomValue) e.continuePropagation();
214
- state.revert();
215
- break;
216
- case "ArrowDown":
217
- state.open("first", "manual");
218
- break;
219
- case "ArrowUp":
220
- state.open("last", "manual");
221
- break;
222
- case "ArrowLeft":
223
- case "ArrowRight":
224
- state.selectionManager.setFocusedKey(null);
225
- break;
226
- }
227
- };
228
- let onBlur = (e)=>{
229
- var _popoverRef_current;
230
- let blurFromButton = (buttonRef === null || buttonRef === void 0 ? void 0 : buttonRef.current) && buttonRef.current === e.relatedTarget;
231
- let blurIntoPopover = (_popoverRef_current = popoverRef.current) === null || _popoverRef_current === void 0 ? void 0 : _popoverRef_current.contains(e.relatedTarget);
232
- // Ignore blur if focused moved to the button(if exists) or into the popover.
233
- if (blurFromButton || blurIntoPopover) return;
234
- if (props.onBlur) props.onBlur(e);
235
- state.setFocused(false);
236
- };
237
- let onFocus = (e)=>{
238
- if (state.isFocused) return;
239
- if (props.onFocus) props.onFocus(e);
240
- state.setFocused(true);
241
- };
242
- let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = state.displayValidation;
243
- let { labelProps: labelProps, inputProps: inputProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = (0, $8Zqhq$reactariatextfield.useTextField)({
244
- ...props,
245
- onChange: state.setInputValue,
246
- onKeyDown: !isReadOnly ? (0, $8Zqhq$reactariautils.chain)(state.isOpen && collectionProps.onKeyDown, onKeyDown, props.onKeyDown) : props.onKeyDown,
247
- onBlur: onBlur,
248
- value: state.inputValue,
249
- onFocus: onFocus,
250
- autoComplete: "off",
251
- validate: undefined,
252
- [(0, $8Zqhq$reactstatelyform.privateValidationStateProp)]: state
253
- }, inputRef);
254
- // Press handlers for the ComboBox button
255
- let onPress = (e)=>{
256
- if (e.pointerType === "touch") {
257
- // Focus the input field in case it isn't focused yet
258
- inputRef.current.focus();
259
- state.toggle(null, "manual");
260
- }
261
- };
262
- let onPressStart = (e)=>{
263
- if (e.pointerType !== "touch") {
264
- inputRef.current.focus();
265
- state.toggle(e.pointerType === "keyboard" || e.pointerType === "virtual" ? "first" : null, "manual");
266
- }
267
- };
268
- let triggerLabelProps = (0, $8Zqhq$reactariautils.useLabels)({
269
- id: menuTriggerProps.id,
270
- "aria-label": stringFormatter.format("buttonLabel"),
271
- "aria-labelledby": props["aria-labelledby"] || labelProps.id
272
- });
273
- let listBoxProps = (0, $8Zqhq$reactariautils.useLabels)({
274
- id: menuProps.id,
275
- "aria-label": stringFormatter.format("listboxLabel"),
276
- "aria-labelledby": props["aria-labelledby"] || labelProps.id
277
- });
278
- // If a touch happens on direct center of ComboBox input, might be virtual click from iPad so open ComboBox menu
279
- let lastEventTime = (0, $8Zqhq$react.useRef)(0);
280
- let onTouchEnd = (e)=>{
281
- if (isDisabled || isReadOnly) return;
282
- // Sometimes VoiceOver on iOS fires two touchend events in quick succession. Ignore the second one.
283
- if (e.timeStamp - lastEventTime.current < 500) {
284
- e.preventDefault();
285
- inputRef.current.focus();
286
- return;
287
- }
288
- let rect = e.target.getBoundingClientRect();
289
- let touch = e.changedTouches[0];
290
- let centerX = Math.ceil(rect.left + .5 * rect.width);
291
- let centerY = Math.ceil(rect.top + .5 * rect.height);
292
- if (touch.clientX === centerX && touch.clientY === centerY) {
293
- e.preventDefault();
294
- inputRef.current.focus();
295
- state.toggle(null, "manual");
296
- lastEventTime.current = e.timeStamp;
297
- }
298
- };
299
- // VoiceOver has issues with announcing aria-activedescendant properly on change
300
- // (especially on iOS). We use a live region announcer to announce focus changes
301
- // manually. In addition, section titles are announced when navigating into a new section.
302
- let focusedItem = state.selectionManager.focusedKey != null && state.isOpen ? state.collection.getItem(state.selectionManager.focusedKey) : undefined;
303
- var _focusedItem_parentKey;
304
- let sectionKey = (_focusedItem_parentKey = focusedItem === null || focusedItem === void 0 ? void 0 : focusedItem.parentKey) !== null && _focusedItem_parentKey !== void 0 ? _focusedItem_parentKey : null;
305
- var _state_selectionManager_focusedKey;
306
- let itemKey = (_state_selectionManager_focusedKey = state.selectionManager.focusedKey) !== null && _state_selectionManager_focusedKey !== void 0 ? _state_selectionManager_focusedKey : null;
307
- let lastSection = (0, $8Zqhq$react.useRef)(sectionKey);
308
- let lastItem = (0, $8Zqhq$react.useRef)(itemKey);
309
- (0, $8Zqhq$react.useEffect)(()=>{
310
- if ((0, $8Zqhq$reactariautils.isAppleDevice)() && focusedItem != null && itemKey !== lastItem.current) {
311
- let isSelected = state.selectionManager.isSelected(itemKey);
312
- let section = sectionKey != null ? state.collection.getItem(sectionKey) : null;
313
- let sectionTitle = (section === null || section === void 0 ? void 0 : section["aria-label"]) || (typeof (section === null || section === void 0 ? void 0 : section.rendered) === "string" ? section.rendered : "") || "";
314
- let announcement = stringFormatter.format("focusAnnouncement", {
315
- isGroupChange: section && sectionKey !== lastSection.current,
316
- groupTitle: sectionTitle,
317
- groupCount: section ? [
318
- ...(0, $8Zqhq$reactstatelycollections.getChildNodes)(section, state.collection)
319
- ].length : 0,
320
- optionText: focusedItem["aria-label"] || focusedItem.textValue || "",
321
- isSelected: isSelected
322
- });
323
- (0, $8Zqhq$reactarialiveannouncer.announce)(announcement);
324
- }
325
- lastSection.current = sectionKey;
326
- lastItem.current = itemKey;
327
- });
328
- // Announce the number of available suggestions when it changes
329
- let optionCount = (0, $8Zqhq$reactstatelycollections.getItemCount)(state.collection);
330
- let lastSize = (0, $8Zqhq$react.useRef)(optionCount);
331
- let lastOpen = (0, $8Zqhq$react.useRef)(state.isOpen);
332
- (0, $8Zqhq$react.useEffect)(()=>{
333
- // Only announce the number of options available when the menu opens if there is no
334
- // focused item, otherwise screen readers will typically read e.g. "1 of 6".
335
- // The exception is VoiceOver since this isn't included in the message above.
336
- let didOpenWithoutFocusedItem = state.isOpen !== lastOpen.current && (state.selectionManager.focusedKey == null || (0, $8Zqhq$reactariautils.isAppleDevice)());
337
- if (state.isOpen && (didOpenWithoutFocusedItem || optionCount !== lastSize.current)) {
338
- let announcement = stringFormatter.format("countAnnouncement", {
339
- optionCount: optionCount
340
- });
341
- (0, $8Zqhq$reactarialiveannouncer.announce)(announcement);
342
- }
343
- lastSize.current = optionCount;
344
- lastOpen.current = state.isOpen;
345
- });
346
- // Announce when a selection occurs for VoiceOver. Other screen readers typically do this automatically.
347
- let lastSelectedKey = (0, $8Zqhq$react.useRef)(state.selectedKey);
348
- (0, $8Zqhq$react.useEffect)(()=>{
349
- if ((0, $8Zqhq$reactariautils.isAppleDevice)() && state.isFocused && state.selectedItem && state.selectedKey !== lastSelectedKey.current) {
350
- let optionText = state.selectedItem["aria-label"] || state.selectedItem.textValue || "";
351
- let announcement = stringFormatter.format("selectedAnnouncement", {
352
- optionText: optionText
353
- });
354
- (0, $8Zqhq$reactarialiveannouncer.announce)(announcement);
355
- }
356
- lastSelectedKey.current = state.selectedKey;
357
- });
358
- (0, $8Zqhq$react.useEffect)(()=>{
359
- if (state.isOpen) return (0, $8Zqhq$reactariaoverlays.ariaHideOutside)([
360
- inputRef.current,
361
- popoverRef.current
362
- ]);
363
- }, [
364
- state.isOpen,
365
- inputRef,
366
- popoverRef
367
- ]);
368
- return {
369
- labelProps: labelProps,
370
- buttonProps: {
371
- ...menuTriggerProps,
372
- ...triggerLabelProps,
373
- excludeFromTabOrder: true,
374
- onPress: onPress,
375
- onPressStart: onPressStart,
376
- isDisabled: isDisabled || isReadOnly
377
- },
378
- inputProps: (0, $8Zqhq$reactariautils.mergeProps)(inputProps, {
379
- role: "combobox",
380
- "aria-expanded": menuTriggerProps["aria-expanded"],
381
- "aria-controls": state.isOpen ? menuProps.id : undefined,
382
- // TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)
383
- "aria-autocomplete": "list",
384
- "aria-activedescendant": focusedItem ? (0, $8Zqhq$reactarialistbox.getItemId)(state, focusedItem.key) : undefined,
385
- onTouchEnd: onTouchEnd,
386
- // This disable's iOS's autocorrect suggestions, since the combo box provides its own suggestions.
387
- autoCorrect: "off",
388
- // This disable's the macOS Safari spell check auto corrections.
389
- spellCheck: "false"
390
- }),
391
- listBoxProps: (0, $8Zqhq$reactariautils.mergeProps)(menuProps, listBoxProps, {
392
- autoFocus: state.focusStrategy,
393
- shouldUseVirtualFocus: true,
394
- shouldSelectOnPressUp: true,
395
- shouldFocusOnHover: true,
396
- linkBehavior: "selection"
397
- }),
398
- descriptionProps: descriptionProps,
399
- errorMessageProps: errorMessageProps,
400
- isInvalid: isInvalid,
401
- validationErrors: validationErrors,
402
- validationDetails: validationDetails
403
- };
404
- }
405
-
406
-
407
-
408
-
409
22
  //# sourceMappingURL=main.js.map