@react-aria/autocomplete 3.0.0-alpha.9 → 3.0.0-beta.0

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 (196) hide show
  1. package/dist/ar-AE.main.js +6 -0
  2. package/dist/ar-AE.main.js.map +1 -0
  3. package/dist/ar-AE.mjs +8 -0
  4. package/dist/ar-AE.module.js +8 -0
  5. package/dist/ar-AE.module.js.map +1 -0
  6. package/dist/bg-BG.main.js +6 -0
  7. package/dist/bg-BG.main.js.map +1 -0
  8. package/dist/bg-BG.mjs +8 -0
  9. package/dist/bg-BG.module.js +8 -0
  10. package/dist/bg-BG.module.js.map +1 -0
  11. package/dist/cs-CZ.main.js +6 -0
  12. package/dist/cs-CZ.main.js.map +1 -0
  13. package/dist/cs-CZ.mjs +8 -0
  14. package/dist/cs-CZ.module.js +8 -0
  15. package/dist/cs-CZ.module.js.map +1 -0
  16. package/dist/da-DK.main.js +6 -0
  17. package/dist/da-DK.main.js.map +1 -0
  18. package/dist/da-DK.mjs +8 -0
  19. package/dist/da-DK.module.js +8 -0
  20. package/dist/da-DK.module.js.map +1 -0
  21. package/dist/de-DE.main.js +6 -0
  22. package/dist/de-DE.main.js.map +1 -0
  23. package/dist/de-DE.mjs +8 -0
  24. package/dist/de-DE.module.js +8 -0
  25. package/dist/de-DE.module.js.map +1 -0
  26. package/dist/el-GR.main.js +6 -0
  27. package/dist/el-GR.main.js.map +1 -0
  28. package/dist/el-GR.mjs +8 -0
  29. package/dist/el-GR.module.js +8 -0
  30. package/dist/el-GR.module.js.map +1 -0
  31. package/dist/en-US.main.js +6 -0
  32. package/dist/en-US.main.js.map +1 -0
  33. package/dist/en-US.mjs +8 -0
  34. package/dist/en-US.module.js +8 -0
  35. package/dist/en-US.module.js.map +1 -0
  36. package/dist/es-ES.main.js +6 -0
  37. package/dist/es-ES.main.js.map +1 -0
  38. package/dist/es-ES.mjs +8 -0
  39. package/dist/es-ES.module.js +8 -0
  40. package/dist/es-ES.module.js.map +1 -0
  41. package/dist/et-EE.main.js +6 -0
  42. package/dist/et-EE.main.js.map +1 -0
  43. package/dist/et-EE.mjs +8 -0
  44. package/dist/et-EE.module.js +8 -0
  45. package/dist/et-EE.module.js.map +1 -0
  46. package/dist/fi-FI.main.js +6 -0
  47. package/dist/fi-FI.main.js.map +1 -0
  48. package/dist/fi-FI.mjs +8 -0
  49. package/dist/fi-FI.module.js +8 -0
  50. package/dist/fi-FI.module.js.map +1 -0
  51. package/dist/fr-FR.main.js +6 -0
  52. package/dist/fr-FR.main.js.map +1 -0
  53. package/dist/fr-FR.mjs +8 -0
  54. package/dist/fr-FR.module.js +8 -0
  55. package/dist/fr-FR.module.js.map +1 -0
  56. package/dist/he-IL.main.js +6 -0
  57. package/dist/he-IL.main.js.map +1 -0
  58. package/dist/he-IL.mjs +8 -0
  59. package/dist/he-IL.module.js +8 -0
  60. package/dist/he-IL.module.js.map +1 -0
  61. package/dist/hr-HR.main.js +6 -0
  62. package/dist/hr-HR.main.js.map +1 -0
  63. package/dist/hr-HR.mjs +8 -0
  64. package/dist/hr-HR.module.js +8 -0
  65. package/dist/hr-HR.module.js.map +1 -0
  66. package/dist/hu-HU.main.js +6 -0
  67. package/dist/hu-HU.main.js.map +1 -0
  68. package/dist/hu-HU.mjs +8 -0
  69. package/dist/hu-HU.module.js +8 -0
  70. package/dist/hu-HU.module.js.map +1 -0
  71. package/dist/import.mjs +19 -0
  72. package/dist/intlStrings.main.js +108 -0
  73. package/dist/intlStrings.main.js.map +1 -0
  74. package/dist/intlStrings.mjs +110 -0
  75. package/dist/intlStrings.module.js +110 -0
  76. package/dist/intlStrings.module.js.map +1 -0
  77. package/dist/it-IT.main.js +6 -0
  78. package/dist/it-IT.main.js.map +1 -0
  79. package/dist/it-IT.mjs +8 -0
  80. package/dist/it-IT.module.js +8 -0
  81. package/dist/it-IT.module.js.map +1 -0
  82. package/dist/ja-JP.main.js +6 -0
  83. package/dist/ja-JP.main.js.map +1 -0
  84. package/dist/ja-JP.mjs +8 -0
  85. package/dist/ja-JP.module.js +8 -0
  86. package/dist/ja-JP.module.js.map +1 -0
  87. package/dist/ko-KR.main.js +6 -0
  88. package/dist/ko-KR.main.js.map +1 -0
  89. package/dist/ko-KR.mjs +8 -0
  90. package/dist/ko-KR.module.js +8 -0
  91. package/dist/ko-KR.module.js.map +1 -0
  92. package/dist/lt-LT.main.js +6 -0
  93. package/dist/lt-LT.main.js.map +1 -0
  94. package/dist/lt-LT.mjs +8 -0
  95. package/dist/lt-LT.module.js +8 -0
  96. package/dist/lt-LT.module.js.map +1 -0
  97. package/dist/lv-LV.main.js +6 -0
  98. package/dist/lv-LV.main.js.map +1 -0
  99. package/dist/lv-LV.mjs +8 -0
  100. package/dist/lv-LV.module.js +8 -0
  101. package/dist/lv-LV.module.js.map +1 -0
  102. package/dist/main.js +16 -42
  103. package/dist/main.js.map +1 -1
  104. package/dist/module.js +14 -42
  105. package/dist/module.js.map +1 -1
  106. package/dist/nb-NO.main.js +6 -0
  107. package/dist/nb-NO.main.js.map +1 -0
  108. package/dist/nb-NO.mjs +8 -0
  109. package/dist/nb-NO.module.js +8 -0
  110. package/dist/nb-NO.module.js.map +1 -0
  111. package/dist/nl-NL.main.js +6 -0
  112. package/dist/nl-NL.main.js.map +1 -0
  113. package/dist/nl-NL.mjs +8 -0
  114. package/dist/nl-NL.module.js +8 -0
  115. package/dist/nl-NL.module.js.map +1 -0
  116. package/dist/pl-PL.main.js +6 -0
  117. package/dist/pl-PL.main.js.map +1 -0
  118. package/dist/pl-PL.mjs +8 -0
  119. package/dist/pl-PL.module.js +8 -0
  120. package/dist/pl-PL.module.js.map +1 -0
  121. package/dist/pt-BR.main.js +6 -0
  122. package/dist/pt-BR.main.js.map +1 -0
  123. package/dist/pt-BR.mjs +8 -0
  124. package/dist/pt-BR.module.js +8 -0
  125. package/dist/pt-BR.module.js.map +1 -0
  126. package/dist/pt-PT.main.js +6 -0
  127. package/dist/pt-PT.main.js.map +1 -0
  128. package/dist/pt-PT.mjs +8 -0
  129. package/dist/pt-PT.module.js +8 -0
  130. package/dist/pt-PT.module.js.map +1 -0
  131. package/dist/ro-RO.main.js +6 -0
  132. package/dist/ro-RO.main.js.map +1 -0
  133. package/dist/ro-RO.mjs +8 -0
  134. package/dist/ro-RO.module.js +8 -0
  135. package/dist/ro-RO.module.js.map +1 -0
  136. package/dist/ru-RU.main.js +6 -0
  137. package/dist/ru-RU.main.js.map +1 -0
  138. package/dist/ru-RU.mjs +8 -0
  139. package/dist/ru-RU.module.js +8 -0
  140. package/dist/ru-RU.module.js.map +1 -0
  141. package/dist/sk-SK.main.js +6 -0
  142. package/dist/sk-SK.main.js.map +1 -0
  143. package/dist/sk-SK.mjs +8 -0
  144. package/dist/sk-SK.module.js +8 -0
  145. package/dist/sk-SK.module.js.map +1 -0
  146. package/dist/sl-SI.main.js +6 -0
  147. package/dist/sl-SI.main.js.map +1 -0
  148. package/dist/sl-SI.mjs +8 -0
  149. package/dist/sl-SI.module.js +8 -0
  150. package/dist/sl-SI.module.js.map +1 -0
  151. package/dist/sr-SP.main.js +6 -0
  152. package/dist/sr-SP.main.js.map +1 -0
  153. package/dist/sr-SP.mjs +8 -0
  154. package/dist/sr-SP.module.js +8 -0
  155. package/dist/sr-SP.module.js.map +1 -0
  156. package/dist/sv-SE.main.js +6 -0
  157. package/dist/sv-SE.main.js.map +1 -0
  158. package/dist/sv-SE.mjs +8 -0
  159. package/dist/sv-SE.module.js +8 -0
  160. package/dist/sv-SE.module.js.map +1 -0
  161. package/dist/tr-TR.main.js +6 -0
  162. package/dist/tr-TR.main.js.map +1 -0
  163. package/dist/tr-TR.mjs +8 -0
  164. package/dist/tr-TR.module.js +8 -0
  165. package/dist/tr-TR.module.js.map +1 -0
  166. package/dist/types.d.ts +69 -15
  167. package/dist/types.d.ts.map +1 -1
  168. package/dist/uk-UA.main.js +6 -0
  169. package/dist/uk-UA.main.js.map +1 -0
  170. package/dist/uk-UA.mjs +8 -0
  171. package/dist/uk-UA.module.js +8 -0
  172. package/dist/uk-UA.module.js.map +1 -0
  173. package/dist/useAutocomplete.main.js +273 -0
  174. package/dist/useAutocomplete.main.js.map +1 -0
  175. package/dist/useAutocomplete.mjs +268 -0
  176. package/dist/useAutocomplete.module.js +268 -0
  177. package/dist/useAutocomplete.module.js.map +1 -0
  178. package/dist/useSearchAutocomplete.main.js +73 -0
  179. package/dist/useSearchAutocomplete.main.js.map +1 -0
  180. package/dist/useSearchAutocomplete.mjs +68 -0
  181. package/dist/useSearchAutocomplete.module.js +68 -0
  182. package/dist/useSearchAutocomplete.module.js.map +1 -0
  183. package/dist/zh-CN.main.js +6 -0
  184. package/dist/zh-CN.main.js.map +1 -0
  185. package/dist/zh-CN.mjs +8 -0
  186. package/dist/zh-CN.module.js +8 -0
  187. package/dist/zh-CN.module.js.map +1 -0
  188. package/dist/zh-TW.main.js +6 -0
  189. package/dist/zh-TW.main.js.map +1 -0
  190. package/dist/zh-TW.mjs +8 -0
  191. package/dist/zh-TW.module.js +8 -0
  192. package/dist/zh-TW.module.js.map +1 -0
  193. package/package.json +23 -21
  194. package/src/index.ts +5 -1
  195. package/src/useAutocomplete.ts +364 -0
  196. package/src/useSearchAutocomplete.ts +62 -27
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,iBAAiB;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/autocomplete/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.main.js.map"}
@@ -0,0 +1,110 @@
1
+ import $hwjOn$arAEmodulejs from "./ar-AE.mjs";
2
+ import $hwjOn$bgBGmodulejs from "./bg-BG.mjs";
3
+ import $hwjOn$csCZmodulejs from "./cs-CZ.mjs";
4
+ import $hwjOn$daDKmodulejs from "./da-DK.mjs";
5
+ import $hwjOn$deDEmodulejs from "./de-DE.mjs";
6
+ import $hwjOn$elGRmodulejs from "./el-GR.mjs";
7
+ import $hwjOn$enUSmodulejs from "./en-US.mjs";
8
+ import $hwjOn$esESmodulejs from "./es-ES.mjs";
9
+ import $hwjOn$etEEmodulejs from "./et-EE.mjs";
10
+ import $hwjOn$fiFImodulejs from "./fi-FI.mjs";
11
+ import $hwjOn$frFRmodulejs from "./fr-FR.mjs";
12
+ import $hwjOn$heILmodulejs from "./he-IL.mjs";
13
+ import $hwjOn$hrHRmodulejs from "./hr-HR.mjs";
14
+ import $hwjOn$huHUmodulejs from "./hu-HU.mjs";
15
+ import $hwjOn$itITmodulejs from "./it-IT.mjs";
16
+ import $hwjOn$jaJPmodulejs from "./ja-JP.mjs";
17
+ import $hwjOn$koKRmodulejs from "./ko-KR.mjs";
18
+ import $hwjOn$ltLTmodulejs from "./lt-LT.mjs";
19
+ import $hwjOn$lvLVmodulejs from "./lv-LV.mjs";
20
+ import $hwjOn$nbNOmodulejs from "./nb-NO.mjs";
21
+ import $hwjOn$nlNLmodulejs from "./nl-NL.mjs";
22
+ import $hwjOn$plPLmodulejs from "./pl-PL.mjs";
23
+ import $hwjOn$ptBRmodulejs from "./pt-BR.mjs";
24
+ import $hwjOn$ptPTmodulejs from "./pt-PT.mjs";
25
+ import $hwjOn$roROmodulejs from "./ro-RO.mjs";
26
+ import $hwjOn$ruRUmodulejs from "./ru-RU.mjs";
27
+ import $hwjOn$skSKmodulejs from "./sk-SK.mjs";
28
+ import $hwjOn$slSImodulejs from "./sl-SI.mjs";
29
+ import $hwjOn$srSPmodulejs from "./sr-SP.mjs";
30
+ import $hwjOn$svSEmodulejs from "./sv-SE.mjs";
31
+ import $hwjOn$trTRmodulejs from "./tr-TR.mjs";
32
+ import $hwjOn$ukUAmodulejs from "./uk-UA.mjs";
33
+ import $hwjOn$zhCNmodulejs from "./zh-CN.mjs";
34
+ import $hwjOn$zhTWmodulejs from "./zh-TW.mjs";
35
+
36
+ var $957f4f2fd749edef$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
+ $957f4f2fd749edef$exports = {
72
+ "ar-AE": $hwjOn$arAEmodulejs,
73
+ "bg-BG": $hwjOn$bgBGmodulejs,
74
+ "cs-CZ": $hwjOn$csCZmodulejs,
75
+ "da-DK": $hwjOn$daDKmodulejs,
76
+ "de-DE": $hwjOn$deDEmodulejs,
77
+ "el-GR": $hwjOn$elGRmodulejs,
78
+ "en-US": $hwjOn$enUSmodulejs,
79
+ "es-ES": $hwjOn$esESmodulejs,
80
+ "et-EE": $hwjOn$etEEmodulejs,
81
+ "fi-FI": $hwjOn$fiFImodulejs,
82
+ "fr-FR": $hwjOn$frFRmodulejs,
83
+ "he-IL": $hwjOn$heILmodulejs,
84
+ "hr-HR": $hwjOn$hrHRmodulejs,
85
+ "hu-HU": $hwjOn$huHUmodulejs,
86
+ "it-IT": $hwjOn$itITmodulejs,
87
+ "ja-JP": $hwjOn$jaJPmodulejs,
88
+ "ko-KR": $hwjOn$koKRmodulejs,
89
+ "lt-LT": $hwjOn$ltLTmodulejs,
90
+ "lv-LV": $hwjOn$lvLVmodulejs,
91
+ "nb-NO": $hwjOn$nbNOmodulejs,
92
+ "nl-NL": $hwjOn$nlNLmodulejs,
93
+ "pl-PL": $hwjOn$plPLmodulejs,
94
+ "pt-BR": $hwjOn$ptBRmodulejs,
95
+ "pt-PT": $hwjOn$ptPTmodulejs,
96
+ "ro-RO": $hwjOn$roROmodulejs,
97
+ "ru-RU": $hwjOn$ruRUmodulejs,
98
+ "sk-SK": $hwjOn$skSKmodulejs,
99
+ "sl-SI": $hwjOn$slSImodulejs,
100
+ "sr-SP": $hwjOn$srSPmodulejs,
101
+ "sv-SE": $hwjOn$svSEmodulejs,
102
+ "tr-TR": $hwjOn$trTRmodulejs,
103
+ "uk-UA": $hwjOn$ukUAmodulejs,
104
+ "zh-CN": $hwjOn$zhCNmodulejs,
105
+ "zh-TW": $hwjOn$zhTWmodulejs
106
+ };
107
+
108
+
109
+ export {$957f4f2fd749edef$exports as default};
110
+ //# sourceMappingURL=intlStrings.module.js.map
@@ -0,0 +1,110 @@
1
+ import $hwjOn$arAEmodulejs from "./ar-AE.module.js";
2
+ import $hwjOn$bgBGmodulejs from "./bg-BG.module.js";
3
+ import $hwjOn$csCZmodulejs from "./cs-CZ.module.js";
4
+ import $hwjOn$daDKmodulejs from "./da-DK.module.js";
5
+ import $hwjOn$deDEmodulejs from "./de-DE.module.js";
6
+ import $hwjOn$elGRmodulejs from "./el-GR.module.js";
7
+ import $hwjOn$enUSmodulejs from "./en-US.module.js";
8
+ import $hwjOn$esESmodulejs from "./es-ES.module.js";
9
+ import $hwjOn$etEEmodulejs from "./et-EE.module.js";
10
+ import $hwjOn$fiFImodulejs from "./fi-FI.module.js";
11
+ import $hwjOn$frFRmodulejs from "./fr-FR.module.js";
12
+ import $hwjOn$heILmodulejs from "./he-IL.module.js";
13
+ import $hwjOn$hrHRmodulejs from "./hr-HR.module.js";
14
+ import $hwjOn$huHUmodulejs from "./hu-HU.module.js";
15
+ import $hwjOn$itITmodulejs from "./it-IT.module.js";
16
+ import $hwjOn$jaJPmodulejs from "./ja-JP.module.js";
17
+ import $hwjOn$koKRmodulejs from "./ko-KR.module.js";
18
+ import $hwjOn$ltLTmodulejs from "./lt-LT.module.js";
19
+ import $hwjOn$lvLVmodulejs from "./lv-LV.module.js";
20
+ import $hwjOn$nbNOmodulejs from "./nb-NO.module.js";
21
+ import $hwjOn$nlNLmodulejs from "./nl-NL.module.js";
22
+ import $hwjOn$plPLmodulejs from "./pl-PL.module.js";
23
+ import $hwjOn$ptBRmodulejs from "./pt-BR.module.js";
24
+ import $hwjOn$ptPTmodulejs from "./pt-PT.module.js";
25
+ import $hwjOn$roROmodulejs from "./ro-RO.module.js";
26
+ import $hwjOn$ruRUmodulejs from "./ru-RU.module.js";
27
+ import $hwjOn$skSKmodulejs from "./sk-SK.module.js";
28
+ import $hwjOn$slSImodulejs from "./sl-SI.module.js";
29
+ import $hwjOn$srSPmodulejs from "./sr-SP.module.js";
30
+ import $hwjOn$svSEmodulejs from "./sv-SE.module.js";
31
+ import $hwjOn$trTRmodulejs from "./tr-TR.module.js";
32
+ import $hwjOn$ukUAmodulejs from "./uk-UA.module.js";
33
+ import $hwjOn$zhCNmodulejs from "./zh-CN.module.js";
34
+ import $hwjOn$zhTWmodulejs from "./zh-TW.module.js";
35
+
36
+ var $957f4f2fd749edef$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
+ $957f4f2fd749edef$exports = {
72
+ "ar-AE": $hwjOn$arAEmodulejs,
73
+ "bg-BG": $hwjOn$bgBGmodulejs,
74
+ "cs-CZ": $hwjOn$csCZmodulejs,
75
+ "da-DK": $hwjOn$daDKmodulejs,
76
+ "de-DE": $hwjOn$deDEmodulejs,
77
+ "el-GR": $hwjOn$elGRmodulejs,
78
+ "en-US": $hwjOn$enUSmodulejs,
79
+ "es-ES": $hwjOn$esESmodulejs,
80
+ "et-EE": $hwjOn$etEEmodulejs,
81
+ "fi-FI": $hwjOn$fiFImodulejs,
82
+ "fr-FR": $hwjOn$frFRmodulejs,
83
+ "he-IL": $hwjOn$heILmodulejs,
84
+ "hr-HR": $hwjOn$hrHRmodulejs,
85
+ "hu-HU": $hwjOn$huHUmodulejs,
86
+ "it-IT": $hwjOn$itITmodulejs,
87
+ "ja-JP": $hwjOn$jaJPmodulejs,
88
+ "ko-KR": $hwjOn$koKRmodulejs,
89
+ "lt-LT": $hwjOn$ltLTmodulejs,
90
+ "lv-LV": $hwjOn$lvLVmodulejs,
91
+ "nb-NO": $hwjOn$nbNOmodulejs,
92
+ "nl-NL": $hwjOn$nlNLmodulejs,
93
+ "pl-PL": $hwjOn$plPLmodulejs,
94
+ "pt-BR": $hwjOn$ptBRmodulejs,
95
+ "pt-PT": $hwjOn$ptPTmodulejs,
96
+ "ro-RO": $hwjOn$roROmodulejs,
97
+ "ru-RU": $hwjOn$ruRUmodulejs,
98
+ "sk-SK": $hwjOn$skSKmodulejs,
99
+ "sl-SI": $hwjOn$slSImodulejs,
100
+ "sr-SP": $hwjOn$srSPmodulejs,
101
+ "sv-SE": $hwjOn$svSEmodulejs,
102
+ "tr-TR": $hwjOn$trTRmodulejs,
103
+ "uk-UA": $hwjOn$ukUAmodulejs,
104
+ "zh-CN": $hwjOn$zhCNmodulejs,
105
+ "zh-TW": $hwjOn$zhTWmodulejs
106
+ };
107
+
108
+
109
+ export {$957f4f2fd749edef$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/autocomplete/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"}
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ "collectionLabel": `Suggerimenti`
3
+ };
4
+
5
+
6
+ //# sourceMappingURL=it-IT.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,mBAAmB,CAAC,YAAY,CAAC;AACrD","sources":["packages/@react-aria/autocomplete/intl/it-IT.json"],"sourcesContent":["{\n \"collectionLabel\": \"Suggerimenti\"\n}\n"],"names":[],"version":3,"file":"it-IT.main.js.map"}
package/dist/it-IT.mjs ADDED
@@ -0,0 +1,8 @@
1
+ var $f114a6a0dcc9e764$exports = {};
2
+ $f114a6a0dcc9e764$exports = {
3
+ "collectionLabel": `Suggerimenti`
4
+ };
5
+
6
+
7
+ export {$f114a6a0dcc9e764$exports as default};
8
+ //# sourceMappingURL=it-IT.module.js.map
@@ -0,0 +1,8 @@
1
+ var $f114a6a0dcc9e764$exports = {};
2
+ $f114a6a0dcc9e764$exports = {
3
+ "collectionLabel": `Suggerimenti`
4
+ };
5
+
6
+
7
+ export {$f114a6a0dcc9e764$exports as default};
8
+ //# sourceMappingURL=it-IT.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,mBAAmB,CAAC,YAAY,CAAC;AACrD","sources":["packages/@react-aria/autocomplete/intl/it-IT.json"],"sourcesContent":["{\n \"collectionLabel\": \"Suggerimenti\"\n}\n"],"names":[],"version":3,"file":"it-IT.module.js.map"}
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ "collectionLabel": `\u{5019}\u{88DC}`
3
+ };
4
+
5
+
6
+ //# sourceMappingURL=ja-JP.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,mBAAmB,CAAC,gBAAE,CAAC;AAC3C","sources":["packages/@react-aria/autocomplete/intl/ja-JP.json"],"sourcesContent":["{\n \"collectionLabel\": \"候補\"\n}\n"],"names":[],"version":3,"file":"ja-JP.main.js.map"}
package/dist/ja-JP.mjs ADDED
@@ -0,0 +1,8 @@
1
+ var $da9ccdb501807c66$exports = {};
2
+ $da9ccdb501807c66$exports = {
3
+ "collectionLabel": `\u{5019}\u{88DC}`
4
+ };
5
+
6
+
7
+ export {$da9ccdb501807c66$exports as default};
8
+ //# sourceMappingURL=ja-JP.module.js.map
@@ -0,0 +1,8 @@
1
+ var $da9ccdb501807c66$exports = {};
2
+ $da9ccdb501807c66$exports = {
3
+ "collectionLabel": `\u{5019}\u{88DC}`
4
+ };
5
+
6
+
7
+ export {$da9ccdb501807c66$exports as default};
8
+ //# sourceMappingURL=ja-JP.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,mBAAmB,CAAC,gBAAE,CAAC;AAC3C","sources":["packages/@react-aria/autocomplete/intl/ja-JP.json"],"sourcesContent":["{\n \"collectionLabel\": \"候補\"\n}\n"],"names":[],"version":3,"file":"ja-JP.module.js.map"}
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ "collectionLabel": `\u{C81C}\u{C548}`
3
+ };
4
+
5
+
6
+ //# sourceMappingURL=ko-KR.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,mBAAmB,CAAC,gBAAE,CAAC;AAC3C","sources":["packages/@react-aria/autocomplete/intl/ko-KR.json"],"sourcesContent":["{\n \"collectionLabel\": \"제안\"\n}\n"],"names":[],"version":3,"file":"ko-KR.main.js.map"}
package/dist/ko-KR.mjs ADDED
@@ -0,0 +1,8 @@
1
+ var $ee4f74cff6d185d7$exports = {};
2
+ $ee4f74cff6d185d7$exports = {
3
+ "collectionLabel": `\u{C81C}\u{C548}`
4
+ };
5
+
6
+
7
+ export {$ee4f74cff6d185d7$exports as default};
8
+ //# sourceMappingURL=ko-KR.module.js.map
@@ -0,0 +1,8 @@
1
+ var $ee4f74cff6d185d7$exports = {};
2
+ $ee4f74cff6d185d7$exports = {
3
+ "collectionLabel": `\u{C81C}\u{C548}`
4
+ };
5
+
6
+
7
+ export {$ee4f74cff6d185d7$exports as default};
8
+ //# sourceMappingURL=ko-KR.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,mBAAmB,CAAC,gBAAE,CAAC;AAC3C","sources":["packages/@react-aria/autocomplete/intl/ko-KR.json"],"sourcesContent":["{\n \"collectionLabel\": \"제안\"\n}\n"],"names":[],"version":3,"file":"ko-KR.module.js.map"}
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ "collectionLabel": `Pasi\u{16B}lymai`
3
+ };
4
+
5
+
6
+ //# sourceMappingURL=lt-LT.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,mBAAmB,CAAC,gBAAU,CAAC;AACnD","sources":["packages/@react-aria/autocomplete/intl/lt-LT.json"],"sourcesContent":["{\n \"collectionLabel\": \"Pasiūlymai\"\n}\n"],"names":[],"version":3,"file":"lt-LT.main.js.map"}
package/dist/lt-LT.mjs ADDED
@@ -0,0 +1,8 @@
1
+ var $9f921d880c5b9f0f$exports = {};
2
+ $9f921d880c5b9f0f$exports = {
3
+ "collectionLabel": `Pasi\u{16B}lymai`
4
+ };
5
+
6
+
7
+ export {$9f921d880c5b9f0f$exports as default};
8
+ //# sourceMappingURL=lt-LT.module.js.map
@@ -0,0 +1,8 @@
1
+ var $9f921d880c5b9f0f$exports = {};
2
+ $9f921d880c5b9f0f$exports = {
3
+ "collectionLabel": `Pasi\u{16B}lymai`
4
+ };
5
+
6
+
7
+ export {$9f921d880c5b9f0f$exports as default};
8
+ //# sourceMappingURL=lt-LT.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,mBAAmB,CAAC,gBAAU,CAAC;AACnD","sources":["packages/@react-aria/autocomplete/intl/lt-LT.json"],"sourcesContent":["{\n \"collectionLabel\": \"Pasiūlymai\"\n}\n"],"names":[],"version":3,"file":"lt-LT.module.js.map"}
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ "collectionLabel": `Ieteikumi`
3
+ };
4
+
5
+
6
+ //# sourceMappingURL=lv-LV.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,mBAAmB,CAAC,SAAS,CAAC;AAClD","sources":["packages/@react-aria/autocomplete/intl/lv-LV.json"],"sourcesContent":["{\n \"collectionLabel\": \"Ieteikumi\"\n}\n"],"names":[],"version":3,"file":"lv-LV.main.js.map"}
package/dist/lv-LV.mjs ADDED
@@ -0,0 +1,8 @@
1
+ var $2516f8bc94df6b6f$exports = {};
2
+ $2516f8bc94df6b6f$exports = {
3
+ "collectionLabel": `Ieteikumi`
4
+ };
5
+
6
+
7
+ export {$2516f8bc94df6b6f$exports as default};
8
+ //# sourceMappingURL=lv-LV.module.js.map
@@ -0,0 +1,8 @@
1
+ var $2516f8bc94df6b6f$exports = {};
2
+ $2516f8bc94df6b6f$exports = {
3
+ "collectionLabel": `Ieteikumi`
4
+ };
5
+
6
+
7
+ export {$2516f8bc94df6b6f$exports as default};
8
+ //# sourceMappingURL=lv-LV.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,mBAAmB,CAAC,SAAS,CAAC;AAClD","sources":["packages/@react-aria/autocomplete/intl/lv-LV.json"],"sourcesContent":["{\n \"collectionLabel\": \"Ieteikumi\"\n}\n"],"names":[],"version":3,"file":"lv-LV.module.js.map"}
package/dist/main.js CHANGED
@@ -1,50 +1,24 @@
1
- var $kDrMH$reactariautils = require("@react-aria/utils");
2
- var $kDrMH$reactariacombobox = require("@react-aria/combobox");
3
- var $kDrMH$reactariasearchfield = require("@react-aria/searchfield");
1
+ var $3c40871f8cc2eb01$exports = require("./useSearchAutocomplete.main.js");
2
+ var $d43aec1bf2be84e8$exports = require("./useAutocomplete.main.js");
3
+
4
4
 
5
5
  function $parcel$export(e, n, v, s) {
6
6
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
7
7
  }
8
8
 
9
- $parcel$export(module.exports, "useSearchAutocomplete", () => $3c40871f8cc2eb01$export$da7ade746446be1f);
10
-
11
-
12
-
13
- function $3c40871f8cc2eb01$export$da7ade746446be1f(props, state) {
14
- let { popoverRef: popoverRef , inputRef: inputRef , listBoxRef: listBoxRef , keyboardDelegate: keyboardDelegate , onSubmit: onSubmit = ()=>{
15
- } } = props;
16
- let { inputProps: inputProps , clearButtonProps: clearButtonProps } = $kDrMH$reactariasearchfield.useSearchField({
17
- ...props,
18
- value: state.inputValue,
19
- onChange: state.setInputValue,
20
- autoComplete: 'off',
21
- onClear: ()=>state.setInputValue('')
22
- ,
23
- onSubmit: (value)=>{
24
- // Prevent submission from search field if menu item was selected
25
- if (state.selectionManager.focusedKey === null) onSubmit(value, null);
26
- }
27
- }, {
28
- value: state.inputValue,
29
- setValue: state.setInputValue
30
- }, inputRef);
31
- let { listBoxProps: listBoxProps , labelProps: labelProps , inputProps: comboBoxInputProps } = $kDrMH$reactariacombobox.useComboBox({
32
- ...props,
33
- keyboardDelegate: keyboardDelegate,
34
- popoverRef: popoverRef,
35
- listBoxRef: listBoxRef,
36
- inputRef: inputRef,
37
- onFocus: undefined,
38
- onBlur: undefined
39
- }, state);
40
- return {
41
- labelProps: labelProps,
42
- inputProps: $kDrMH$reactariautils.mergeProps(inputProps, comboBoxInputProps),
43
- listBoxProps: listBoxProps,
44
- clearButtonProps: clearButtonProps
45
- };
46
- }
47
-
9
+ $parcel$export(module.exports, "useSearchAutocomplete", () => $3c40871f8cc2eb01$exports.useSearchAutocomplete);
10
+ $parcel$export(module.exports, "useAutocomplete", () => $d43aec1bf2be84e8$exports.useAutocomplete);
11
+ /*
12
+ * Copyright 2021 Adobe. All rights reserved.
13
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
14
+ * you may not use this file except in compliance with the License. You may obtain a copy
15
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
16
+ *
17
+ * Unless required by applicable law or agreed to in writing, software distributed under
18
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
19
+ * OF ANY KIND, either express or implied. See the License for the specific language
20
+ * governing permissions and limitations under the License.
21
+ */
48
22
 
49
23
 
50
24
 
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;SCmDgB,yCAAqB,CAAI,KAAqC,EAAE,KAAuB,EAA6B,CAAC;IACnI,GAAG,CAAC,CAAC,aACH,UAAU,aACV,QAAQ,eACR,UAAU,qBACV,gBAAgB,aAChB,QAAQ,OAAS,CAAC;IAAA,CAAC,EACrB,CAAC,GAAG,KAAK;IAET,GAAG,CAAC,CAAC,aAAA,UAAU,qBAAE,gBAAgB,EAAA,CAAC,GAAG,0CAAc,CAAC,CAAC;WAChD,KAAK;QACR,KAAK,EAAE,KAAK,CAAC,UAAU;QACvB,QAAQ,EAAE,KAAK,CAAC,aAAa;QAC7B,YAAY,EAAE,CAAK;QACnB,OAAO,MAAQ,KAAK,CAAC,aAAa,CAAC,CAAE;;QACrC,QAAQ,GAAG,KAAK,GAAK,CAAC;YACpB,EAAiE,AAAjE,+DAAiE;YACjE,EAAE,EAAE,KAAK,CAAC,gBAAgB,CAAC,UAAU,KAAK,IAAI,EAC5C,QAAQ,CAAC,KAAK,EAAE,IAAI;QAExB,CAAC;IACH,CAAC,EAAE,CAAC;QACF,KAAK,EAAE,KAAK,CAAC,UAAU;QACvB,QAAQ,EAAE,KAAK,CAAC,aAAa;IAC/B,CAAC,EAAE,QAAQ;IAGX,GAAG,CAAC,CAAC,eAAA,YAAY,eAAE,UAAU,GAAE,UAAU,EAAE,kBAAkB,EAAA,CAAC,GAAG,oCAAW,CAC1E,CAAC;WACI,KAAK;0BACR,gBAAgB;oBAChB,UAAU;oBACV,UAAU;kBACV,QAAQ;QACR,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,SAAS;IACnB,CAAC,EACD,KAAK;IAGP,MAAM,CAAC,CAAC;oBACN,UAAU;QACV,UAAU,EAAE,gCAAU,CAAC,UAAU,EAAE,kBAAkB;sBACrD,YAAY;0BACZ,gBAAgB;IAClB,CAAC;AACH,CAAC","sources":["packages/@react-aria/autocomplete/src/index.ts","packages/@react-aria/autocomplete/src/useSearchAutocomplete.ts"],"sourcesContent":["/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nexport {useSearchAutocomplete} from './useSearchAutocomplete';\nexport type {AriaSearchAutocompleteProps, SearchAutocompleteAria} from './useSearchAutocomplete';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaButtonProps} from '@react-types/button';\nimport {AriaListBoxOptions} from '@react-aria/listbox';\nimport {ComboBoxState} from '@react-stately/combobox';\nimport {DOMAttributes} from '@react-types/shared';\nimport {InputHTMLAttributes, RefObject} from 'react';\nimport {KeyboardDelegate} from '@react-types/shared';\nimport {mergeProps} from '@react-aria/utils';\nimport {SearchAutocompleteProps} from '@react-types/autocomplete';\nimport {useComboBox} from '@react-aria/combobox';\nimport {useSearchField} from '@react-aria/searchfield';\n\nexport interface AriaSearchAutocompleteProps<T> extends SearchAutocompleteProps<T> {\n /** The ref for the input element. */\n inputRef: RefObject<HTMLInputElement>,\n /** The ref for the list box popover. */\n popoverRef: RefObject<HTMLDivElement>,\n /** The ref for the list box. */\n listBoxRef: RefObject<HTMLElement>,\n /** An optional keyboard delegate implementation, to override the default. */\n keyboardDelegate?: KeyboardDelegate\n}\n\nexport interface SearchAutocompleteAria<T> {\n /** Props for the label element. */\n labelProps: DOMAttributes,\n /** Props for the search input element. */\n inputProps: InputHTMLAttributes<HTMLInputElement>,\n /** Props for the list box, to be passed to [useListBox](useListBox.html). */\n listBoxProps: AriaListBoxOptions<T>,\n /** Props for the search input's clear button. */\n clearButtonProps: AriaButtonProps\n}\n\n/**\n * Provides the behavior and accessibility implementation for a search autocomplete component.\n * A search autocomplete combines a combobox with a searchfield, allowing users to filter a list of options to items matching a query.\n * @param props - Props for the search autocomplete.\n * @param state - State for the search autocomplete, as returned by `useSearchAutocomplete`.\n */\nexport function useSearchAutocomplete<T>(props: AriaSearchAutocompleteProps<T>, state: ComboBoxState<T>): SearchAutocompleteAria<T> {\n let {\n popoverRef,\n inputRef,\n listBoxRef,\n keyboardDelegate,\n onSubmit = () => {}\n } = props;\n\n let {inputProps, clearButtonProps} = useSearchField({\n ...props,\n value: state.inputValue,\n onChange: state.setInputValue,\n autoComplete: 'off',\n onClear: () => state.setInputValue(''),\n onSubmit: (value) => {\n // Prevent submission from search field if menu item was selected\n if (state.selectionManager.focusedKey === null) {\n onSubmit(value, null);\n }\n } \n }, {\n value: state.inputValue,\n setValue: state.setInputValue\n }, inputRef);\n \n\n let {listBoxProps, labelProps, inputProps: comboBoxInputProps} = useComboBox(\n {\n ...props,\n keyboardDelegate,\n popoverRef,\n listBoxRef,\n inputRef,\n onFocus: undefined,\n onBlur: undefined\n },\n state\n );\n\n return {\n labelProps,\n inputProps: mergeProps(inputProps, comboBoxInputProps),\n listBoxProps,\n clearButtonProps\n };\n}\n"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-aria/autocomplete/src/index.ts"],"sourcesContent":["/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nexport {useSearchAutocomplete} from './useSearchAutocomplete';\nexport {useAutocomplete} from './useAutocomplete';\n\nexport type {AriaSearchAutocompleteOptions, SearchAutocompleteAria} from './useSearchAutocomplete';\nexport type {AriaSearchAutocompleteProps} from '@react-types/autocomplete';\nexport type {AriaAutocompleteProps, AriaAutocompleteOptions, AutocompleteAria, CollectionOptions} from './useAutocomplete';\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.js CHANGED
@@ -1,47 +1,19 @@
1
- import {mergeProps as $fgZRc$mergeProps} from "@react-aria/utils";
2
- import {useComboBox as $fgZRc$useComboBox} from "@react-aria/combobox";
3
- import {useSearchField as $fgZRc$useSearchField} from "@react-aria/searchfield";
1
+ import {useSearchAutocomplete as $c04f11f368135585$export$da7ade746446be1f} from "./useSearchAutocomplete.module.js";
2
+ import {useAutocomplete as $48f6ba390f8c5b59$export$1e40b3ca02d92d21} from "./useAutocomplete.module.js";
4
3
 
4
+ /*
5
+ * Copyright 2021 Adobe. All rights reserved.
6
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License. You may obtain a copy
8
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software distributed under
11
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12
+ * OF ANY KIND, either express or implied. See the License for the specific language
13
+ * governing permissions and limitations under the License.
14
+ */
5
15
 
6
16
 
7
17
 
8
- function $c04f11f368135585$export$da7ade746446be1f(props, state) {
9
- let { popoverRef: popoverRef , inputRef: inputRef , listBoxRef: listBoxRef , keyboardDelegate: keyboardDelegate , onSubmit: onSubmit = ()=>{
10
- } } = props;
11
- let { inputProps: inputProps , clearButtonProps: clearButtonProps } = $fgZRc$useSearchField({
12
- ...props,
13
- value: state.inputValue,
14
- onChange: state.setInputValue,
15
- autoComplete: 'off',
16
- onClear: ()=>state.setInputValue('')
17
- ,
18
- onSubmit: (value)=>{
19
- // Prevent submission from search field if menu item was selected
20
- if (state.selectionManager.focusedKey === null) onSubmit(value, null);
21
- }
22
- }, {
23
- value: state.inputValue,
24
- setValue: state.setInputValue
25
- }, inputRef);
26
- let { listBoxProps: listBoxProps , labelProps: labelProps , inputProps: comboBoxInputProps } = $fgZRc$useComboBox({
27
- ...props,
28
- keyboardDelegate: keyboardDelegate,
29
- popoverRef: popoverRef,
30
- listBoxRef: listBoxRef,
31
- inputRef: inputRef,
32
- onFocus: undefined,
33
- onBlur: undefined
34
- }, state);
35
- return {
36
- labelProps: labelProps,
37
- inputProps: $fgZRc$mergeProps(inputProps, comboBoxInputProps),
38
- listBoxProps: listBoxProps,
39
- clearButtonProps: clearButtonProps
40
- };
41
- }
42
-
43
-
44
-
45
-
46
- export {$c04f11f368135585$export$da7ade746446be1f as useSearchAutocomplete};
18
+ export {$c04f11f368135585$export$da7ade746446be1f as useSearchAutocomplete, $48f6ba390f8c5b59$export$1e40b3ca02d92d21 as useAutocomplete};
47
19
  //# sourceMappingURL=module.js.map
@@ -1 +1 @@
1
- {"mappings":";;;;;;;SCmDgB,yCAAqB,CAAI,KAAqC,EAAE,KAAuB,EAA6B,CAAC;IACnI,GAAG,CAAC,CAAC,aACH,UAAU,aACV,QAAQ,eACR,UAAU,qBACV,gBAAgB,aAChB,QAAQ,OAAS,CAAC;IAAA,CAAC,EACrB,CAAC,GAAG,KAAK;IAET,GAAG,CAAC,CAAC,aAAA,UAAU,qBAAE,gBAAgB,EAAA,CAAC,GAAG,qBAAc,CAAC,CAAC;WAChD,KAAK;QACR,KAAK,EAAE,KAAK,CAAC,UAAU;QACvB,QAAQ,EAAE,KAAK,CAAC,aAAa;QAC7B,YAAY,EAAE,CAAK;QACnB,OAAO,MAAQ,KAAK,CAAC,aAAa,CAAC,CAAE;;QACrC,QAAQ,GAAG,KAAK,GAAK,CAAC;YACpB,EAAiE,AAAjE,+DAAiE;YACjE,EAAE,EAAE,KAAK,CAAC,gBAAgB,CAAC,UAAU,KAAK,IAAI,EAC5C,QAAQ,CAAC,KAAK,EAAE,IAAI;QAExB,CAAC;IACH,CAAC,EAAE,CAAC;QACF,KAAK,EAAE,KAAK,CAAC,UAAU;QACvB,QAAQ,EAAE,KAAK,CAAC,aAAa;IAC/B,CAAC,EAAE,QAAQ;IAGX,GAAG,CAAC,CAAC,eAAA,YAAY,eAAE,UAAU,GAAE,UAAU,EAAE,kBAAkB,EAAA,CAAC,GAAG,kBAAW,CAC1E,CAAC;WACI,KAAK;0BACR,gBAAgB;oBAChB,UAAU;oBACV,UAAU;kBACV,QAAQ;QACR,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,SAAS;IACnB,CAAC,EACD,KAAK;IAGP,MAAM,CAAC,CAAC;oBACN,UAAU;QACV,UAAU,EAAE,iBAAU,CAAC,UAAU,EAAE,kBAAkB;sBACrD,YAAY;0BACZ,gBAAgB;IAClB,CAAC;AACH,CAAC","sources":["packages/@react-aria/autocomplete/src/index.ts","packages/@react-aria/autocomplete/src/useSearchAutocomplete.ts"],"sourcesContent":["/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nexport {useSearchAutocomplete} from './useSearchAutocomplete';\nexport type {AriaSearchAutocompleteProps, SearchAutocompleteAria} from './useSearchAutocomplete';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaButtonProps} from '@react-types/button';\nimport {AriaListBoxOptions} from '@react-aria/listbox';\nimport {ComboBoxState} from '@react-stately/combobox';\nimport {DOMAttributes} from '@react-types/shared';\nimport {InputHTMLAttributes, RefObject} from 'react';\nimport {KeyboardDelegate} from '@react-types/shared';\nimport {mergeProps} from '@react-aria/utils';\nimport {SearchAutocompleteProps} from '@react-types/autocomplete';\nimport {useComboBox} from '@react-aria/combobox';\nimport {useSearchField} from '@react-aria/searchfield';\n\nexport interface AriaSearchAutocompleteProps<T> extends SearchAutocompleteProps<T> {\n /** The ref for the input element. */\n inputRef: RefObject<HTMLInputElement>,\n /** The ref for the list box popover. */\n popoverRef: RefObject<HTMLDivElement>,\n /** The ref for the list box. */\n listBoxRef: RefObject<HTMLElement>,\n /** An optional keyboard delegate implementation, to override the default. */\n keyboardDelegate?: KeyboardDelegate\n}\n\nexport interface SearchAutocompleteAria<T> {\n /** Props for the label element. */\n labelProps: DOMAttributes,\n /** Props for the search input element. */\n inputProps: InputHTMLAttributes<HTMLInputElement>,\n /** Props for the list box, to be passed to [useListBox](useListBox.html). */\n listBoxProps: AriaListBoxOptions<T>,\n /** Props for the search input's clear button. */\n clearButtonProps: AriaButtonProps\n}\n\n/**\n * Provides the behavior and accessibility implementation for a search autocomplete component.\n * A search autocomplete combines a combobox with a searchfield, allowing users to filter a list of options to items matching a query.\n * @param props - Props for the search autocomplete.\n * @param state - State for the search autocomplete, as returned by `useSearchAutocomplete`.\n */\nexport function useSearchAutocomplete<T>(props: AriaSearchAutocompleteProps<T>, state: ComboBoxState<T>): SearchAutocompleteAria<T> {\n let {\n popoverRef,\n inputRef,\n listBoxRef,\n keyboardDelegate,\n onSubmit = () => {}\n } = props;\n\n let {inputProps, clearButtonProps} = useSearchField({\n ...props,\n value: state.inputValue,\n onChange: state.setInputValue,\n autoComplete: 'off',\n onClear: () => state.setInputValue(''),\n onSubmit: (value) => {\n // Prevent submission from search field if menu item was selected\n if (state.selectionManager.focusedKey === null) {\n onSubmit(value, null);\n }\n } \n }, {\n value: state.inputValue,\n setValue: state.setInputValue\n }, inputRef);\n \n\n let {listBoxProps, labelProps, inputProps: comboBoxInputProps} = useComboBox(\n {\n ...props,\n keyboardDelegate,\n popoverRef,\n listBoxRef,\n inputRef,\n onFocus: undefined,\n onBlur: undefined\n },\n state\n );\n\n return {\n labelProps,\n inputProps: mergeProps(inputProps, comboBoxInputProps),\n listBoxProps,\n clearButtonProps\n };\n}\n"],"names":[],"version":3,"file":"module.js.map"}
1
+ {"mappings":";;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-aria/autocomplete/src/index.ts"],"sourcesContent":["/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nexport {useSearchAutocomplete} from './useSearchAutocomplete';\nexport {useAutocomplete} from './useAutocomplete';\n\nexport type {AriaSearchAutocompleteOptions, SearchAutocompleteAria} from './useSearchAutocomplete';\nexport type {AriaSearchAutocompleteProps} from '@react-types/autocomplete';\nexport type {AriaAutocompleteProps, AriaAutocompleteOptions, AutocompleteAria, CollectionOptions} from './useAutocomplete';\n"],"names":[],"version":3,"file":"module.js.map"}
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ "collectionLabel": `Forslag`
3
+ };
4
+
5
+
6
+ //# sourceMappingURL=nb-NO.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,mBAAmB,CAAC,OAAO,CAAC;AAChD","sources":["packages/@react-aria/autocomplete/intl/nb-NO.json"],"sourcesContent":["{\n \"collectionLabel\": \"Forslag\"\n}\n"],"names":[],"version":3,"file":"nb-NO.main.js.map"}
package/dist/nb-NO.mjs ADDED
@@ -0,0 +1,8 @@
1
+ var $2f701b767fa6559c$exports = {};
2
+ $2f701b767fa6559c$exports = {
3
+ "collectionLabel": `Forslag`
4
+ };
5
+
6
+
7
+ export {$2f701b767fa6559c$exports as default};
8
+ //# sourceMappingURL=nb-NO.module.js.map
@@ -0,0 +1,8 @@
1
+ var $2f701b767fa6559c$exports = {};
2
+ $2f701b767fa6559c$exports = {
3
+ "collectionLabel": `Forslag`
4
+ };
5
+
6
+
7
+ export {$2f701b767fa6559c$exports as default};
8
+ //# sourceMappingURL=nb-NO.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,mBAAmB,CAAC,OAAO,CAAC;AAChD","sources":["packages/@react-aria/autocomplete/intl/nb-NO.json"],"sourcesContent":["{\n \"collectionLabel\": \"Forslag\"\n}\n"],"names":[],"version":3,"file":"nb-NO.module.js.map"}
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ "collectionLabel": `Suggesties`
3
+ };
4
+
5
+
6
+ //# sourceMappingURL=nl-NL.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,mBAAmB,CAAC,UAAU,CAAC;AACnD","sources":["packages/@react-aria/autocomplete/intl/nl-NL.json"],"sourcesContent":["{\n \"collectionLabel\": \"Suggesties\"\n}\n"],"names":[],"version":3,"file":"nl-NL.main.js.map"}