@react-aria/autocomplete 3.0.0-nightly.5042 → 3.0.0-rc.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 (190) 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 +3 -1
  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 +3 -0
  103. package/dist/main.js.map +1 -1
  104. package/dist/module.js +3 -1
  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 +52 -1
  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 +301 -0
  174. package/dist/useAutocomplete.main.js.map +1 -0
  175. package/dist/useAutocomplete.mjs +296 -0
  176. package/dist/useAutocomplete.module.js +296 -0
  177. package/dist/useAutocomplete.module.js.map +1 -0
  178. package/dist/zh-CN.main.js +6 -0
  179. package/dist/zh-CN.main.js.map +1 -0
  180. package/dist/zh-CN.mjs +8 -0
  181. package/dist/zh-CN.module.js +8 -0
  182. package/dist/zh-CN.module.js.map +1 -0
  183. package/dist/zh-TW.main.js +6 -0
  184. package/dist/zh-TW.main.js.map +1 -0
  185. package/dist/zh-TW.mjs +8 -0
  186. package/dist/zh-TW.module.js +8 -0
  187. package/dist/zh-TW.module.js.map +1 -0
  188. package/package.json +22 -13
  189. package/src/index.ts +3 -0
  190. package/src/useAutocomplete.ts +414 -0
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ "collectionLabel": `Sugestii`
3
+ };
4
+
5
+
6
+ //# sourceMappingURL=ro-RO.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,mBAAmB,CAAC,QAAQ,CAAC;AACjD","sources":["packages/@react-aria/autocomplete/intl/ro-RO.json"],"sourcesContent":["{\n \"collectionLabel\": \"Sugestii\"\n}\n"],"names":[],"version":3,"file":"ro-RO.main.js.map"}
package/dist/ro-RO.mjs ADDED
@@ -0,0 +1,8 @@
1
+ var $42d5bcc619a7aaac$exports = {};
2
+ $42d5bcc619a7aaac$exports = {
3
+ "collectionLabel": `Sugestii`
4
+ };
5
+
6
+
7
+ export {$42d5bcc619a7aaac$exports as default};
8
+ //# sourceMappingURL=ro-RO.module.js.map
@@ -0,0 +1,8 @@
1
+ var $42d5bcc619a7aaac$exports = {};
2
+ $42d5bcc619a7aaac$exports = {
3
+ "collectionLabel": `Sugestii`
4
+ };
5
+
6
+
7
+ export {$42d5bcc619a7aaac$exports as default};
8
+ //# sourceMappingURL=ro-RO.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,mBAAmB,CAAC,QAAQ,CAAC;AACjD","sources":["packages/@react-aria/autocomplete/intl/ro-RO.json"],"sourcesContent":["{\n \"collectionLabel\": \"Sugestii\"\n}\n"],"names":[],"version":3,"file":"ro-RO.module.js.map"}
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ "collectionLabel": `\u{41F}\u{440}\u{435}\u{434}\u{43B}\u{43E}\u{436}\u{435}\u{43D}\u{438}\u{44F}`
3
+ };
4
+
5
+
6
+ //# sourceMappingURL=ru-RU.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,mBAAmB,CAAC,6EAAW,CAAC;AACpD","sources":["packages/@react-aria/autocomplete/intl/ru-RU.json"],"sourcesContent":["{\n \"collectionLabel\": \"Предложения\"\n}\n"],"names":[],"version":3,"file":"ru-RU.main.js.map"}
package/dist/ru-RU.mjs ADDED
@@ -0,0 +1,8 @@
1
+ var $bafcc9870f83af97$exports = {};
2
+ $bafcc9870f83af97$exports = {
3
+ "collectionLabel": `\u{41F}\u{440}\u{435}\u{434}\u{43B}\u{43E}\u{436}\u{435}\u{43D}\u{438}\u{44F}`
4
+ };
5
+
6
+
7
+ export {$bafcc9870f83af97$exports as default};
8
+ //# sourceMappingURL=ru-RU.module.js.map
@@ -0,0 +1,8 @@
1
+ var $bafcc9870f83af97$exports = {};
2
+ $bafcc9870f83af97$exports = {
3
+ "collectionLabel": `\u{41F}\u{440}\u{435}\u{434}\u{43B}\u{43E}\u{436}\u{435}\u{43D}\u{438}\u{44F}`
4
+ };
5
+
6
+
7
+ export {$bafcc9870f83af97$exports as default};
8
+ //# sourceMappingURL=ru-RU.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,mBAAmB,CAAC,6EAAW,CAAC;AACpD","sources":["packages/@react-aria/autocomplete/intl/ru-RU.json"],"sourcesContent":["{\n \"collectionLabel\": \"Предложения\"\n}\n"],"names":[],"version":3,"file":"ru-RU.module.js.map"}
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ "collectionLabel": `N\xe1vrhy`
3
+ };
4
+
5
+
6
+ //# sourceMappingURL=sk-SK.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,mBAAmB,CAAC,SAAM,CAAC;AAC/C","sources":["packages/@react-aria/autocomplete/intl/sk-SK.json"],"sourcesContent":["{\n \"collectionLabel\": \"Návrhy\"\n}\n"],"names":[],"version":3,"file":"sk-SK.main.js.map"}
package/dist/sk-SK.mjs ADDED
@@ -0,0 +1,8 @@
1
+ var $a59a67776704c670$exports = {};
2
+ $a59a67776704c670$exports = {
3
+ "collectionLabel": `N\xe1vrhy`
4
+ };
5
+
6
+
7
+ export {$a59a67776704c670$exports as default};
8
+ //# sourceMappingURL=sk-SK.module.js.map
@@ -0,0 +1,8 @@
1
+ var $a59a67776704c670$exports = {};
2
+ $a59a67776704c670$exports = {
3
+ "collectionLabel": `N\xe1vrhy`
4
+ };
5
+
6
+
7
+ export {$a59a67776704c670$exports as default};
8
+ //# sourceMappingURL=sk-SK.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,mBAAmB,CAAC,SAAM,CAAC;AAC/C","sources":["packages/@react-aria/autocomplete/intl/sk-SK.json"],"sourcesContent":["{\n \"collectionLabel\": \"Návrhy\"\n}\n"],"names":[],"version":3,"file":"sk-SK.module.js.map"}
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ "collectionLabel": `Predlogi`
3
+ };
4
+
5
+
6
+ //# sourceMappingURL=sl-SI.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,mBAAmB,CAAC,QAAQ,CAAC;AACjD","sources":["packages/@react-aria/autocomplete/intl/sl-SI.json"],"sourcesContent":["{\n \"collectionLabel\": \"Predlogi\"\n}\n"],"names":[],"version":3,"file":"sl-SI.main.js.map"}
package/dist/sl-SI.mjs ADDED
@@ -0,0 +1,8 @@
1
+ var $070e1709fddbf199$exports = {};
2
+ $070e1709fddbf199$exports = {
3
+ "collectionLabel": `Predlogi`
4
+ };
5
+
6
+
7
+ export {$070e1709fddbf199$exports as default};
8
+ //# sourceMappingURL=sl-SI.module.js.map
@@ -0,0 +1,8 @@
1
+ var $070e1709fddbf199$exports = {};
2
+ $070e1709fddbf199$exports = {
3
+ "collectionLabel": `Predlogi`
4
+ };
5
+
6
+
7
+ export {$070e1709fddbf199$exports as default};
8
+ //# sourceMappingURL=sl-SI.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,mBAAmB,CAAC,QAAQ,CAAC;AACjD","sources":["packages/@react-aria/autocomplete/intl/sl-SI.json"],"sourcesContent":["{\n \"collectionLabel\": \"Predlogi\"\n}\n"],"names":[],"version":3,"file":"sl-SI.module.js.map"}
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ "collectionLabel": `Predlozi`
3
+ };
4
+
5
+
6
+ //# sourceMappingURL=sr-SP.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,mBAAmB,CAAC,QAAQ,CAAC;AACjD","sources":["packages/@react-aria/autocomplete/intl/sr-SP.json"],"sourcesContent":["{\n \"collectionLabel\": \"Predlozi\"\n}\n"],"names":[],"version":3,"file":"sr-SP.main.js.map"}
package/dist/sr-SP.mjs ADDED
@@ -0,0 +1,8 @@
1
+ var $4ed19d2fc07f94be$exports = {};
2
+ $4ed19d2fc07f94be$exports = {
3
+ "collectionLabel": `Predlozi`
4
+ };
5
+
6
+
7
+ export {$4ed19d2fc07f94be$exports as default};
8
+ //# sourceMappingURL=sr-SP.module.js.map
@@ -0,0 +1,8 @@
1
+ var $4ed19d2fc07f94be$exports = {};
2
+ $4ed19d2fc07f94be$exports = {
3
+ "collectionLabel": `Predlozi`
4
+ };
5
+
6
+
7
+ export {$4ed19d2fc07f94be$exports as default};
8
+ //# sourceMappingURL=sr-SP.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,mBAAmB,CAAC,QAAQ,CAAC;AACjD","sources":["packages/@react-aria/autocomplete/intl/sr-SP.json"],"sourcesContent":["{\n \"collectionLabel\": \"Predlozi\"\n}\n"],"names":[],"version":3,"file":"sr-SP.module.js.map"}
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ "collectionLabel": `F\xf6rslag`
3
+ };
4
+
5
+
6
+ //# sourceMappingURL=sv-SE.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,mBAAmB,CAAC,UAAO,CAAC;AAChD","sources":["packages/@react-aria/autocomplete/intl/sv-SE.json"],"sourcesContent":["{\n \"collectionLabel\": \"Förslag\"\n}\n"],"names":[],"version":3,"file":"sv-SE.main.js.map"}
package/dist/sv-SE.mjs ADDED
@@ -0,0 +1,8 @@
1
+ var $bb4efe76ac2ad6af$exports = {};
2
+ $bb4efe76ac2ad6af$exports = {
3
+ "collectionLabel": `F\xf6rslag`
4
+ };
5
+
6
+
7
+ export {$bb4efe76ac2ad6af$exports as default};
8
+ //# sourceMappingURL=sv-SE.module.js.map
@@ -0,0 +1,8 @@
1
+ var $bb4efe76ac2ad6af$exports = {};
2
+ $bb4efe76ac2ad6af$exports = {
3
+ "collectionLabel": `F\xf6rslag`
4
+ };
5
+
6
+
7
+ export {$bb4efe76ac2ad6af$exports as default};
8
+ //# sourceMappingURL=sv-SE.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,mBAAmB,CAAC,UAAO,CAAC;AAChD","sources":["packages/@react-aria/autocomplete/intl/sv-SE.json"],"sourcesContent":["{\n \"collectionLabel\": \"Förslag\"\n}\n"],"names":[],"version":3,"file":"sv-SE.module.js.map"}
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ "collectionLabel": `\xd6neriler`
3
+ };
4
+
5
+
6
+ //# sourceMappingURL=tr-TR.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,mBAAmB,CAAC,WAAQ,CAAC;AACjD","sources":["packages/@react-aria/autocomplete/intl/tr-TR.json"],"sourcesContent":["{\n \"collectionLabel\": \"Öneriler\"\n}\n"],"names":[],"version":3,"file":"tr-TR.main.js.map"}
package/dist/tr-TR.mjs ADDED
@@ -0,0 +1,8 @@
1
+ var $ecc6dce838a94ce1$exports = {};
2
+ $ecc6dce838a94ce1$exports = {
3
+ "collectionLabel": `\xd6neriler`
4
+ };
5
+
6
+
7
+ export {$ecc6dce838a94ce1$exports as default};
8
+ //# sourceMappingURL=tr-TR.module.js.map
@@ -0,0 +1,8 @@
1
+ var $ecc6dce838a94ce1$exports = {};
2
+ $ecc6dce838a94ce1$exports = {
3
+ "collectionLabel": `\xd6neriler`
4
+ };
5
+
6
+
7
+ export {$ecc6dce838a94ce1$exports as default};
8
+ //# sourceMappingURL=tr-TR.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,mBAAmB,CAAC,WAAQ,CAAC;AACjD","sources":["packages/@react-aria/autocomplete/intl/tr-TR.json"],"sourcesContent":["{\n \"collectionLabel\": \"Öneriler\"\n}\n"],"names":[],"version":3,"file":"tr-TR.module.js.map"}
package/dist/types.d.ts CHANGED
@@ -2,8 +2,10 @@ import { AriaButtonProps } from "@react-types/button";
2
2
  import { AriaListBoxOptions } from "@react-aria/listbox";
3
3
  import { AriaSearchAutocompleteProps } from "@react-types/autocomplete";
4
4
  import { ComboBoxState } from "@react-stately/combobox";
5
- import { DOMAttributes, KeyboardDelegate, LayoutDelegate, RefObject, ValidationResult } from "@react-types/shared";
5
+ import { DOMAttributes, KeyboardDelegate, LayoutDelegate, RefObject, ValidationResult, AriaLabelingProps, DOMProps, FocusableElement, FocusEvents, KeyboardEvents, Node, ValueBase } from "@react-types/shared";
6
6
  import { InputHTMLAttributes } from "react";
7
+ import { AriaTextFieldProps } from "@react-aria/textfield";
8
+ import { AutocompleteProps, AutocompleteState } from "@react-stately/autocomplete";
7
9
  export interface SearchAutocompleteAria<T> extends ValidationResult {
8
10
  /** Props for the label element. */
9
11
  labelProps: DOMAttributes;
@@ -41,6 +43,55 @@ export interface AriaSearchAutocompleteOptions<T> extends AriaSearchAutocomplete
41
43
  * @param state - State for the search autocomplete, as returned by `useSearchAutocomplete`.
42
44
  */
43
45
  export function useSearchAutocomplete<T>(props: AriaSearchAutocompleteOptions<T>, state: ComboBoxState<T>): SearchAutocompleteAria<T>;
46
+ export interface CollectionOptions extends DOMProps, AriaLabelingProps {
47
+ /** Whether the collection items should use virtual focus instead of being focused directly. */
48
+ shouldUseVirtualFocus: boolean;
49
+ /** Whether typeahead is disabled. */
50
+ disallowTypeAhead: boolean;
51
+ }
52
+ export interface InputProps<T = FocusableElement> extends DOMProps, FocusEvents<T>, KeyboardEvents, Pick<ValueBase<string>, 'onChange' | 'value'>, Pick<AriaTextFieldProps, 'enterKeyHint' | 'aria-controls' | 'aria-autocomplete' | 'aria-activedescendant' | 'spellCheck' | 'autoCorrect' | 'autoComplete'> {
53
+ }
54
+ export interface AriaAutocompleteProps<T> extends AutocompleteProps {
55
+ /**
56
+ * An optional filter function used to determine if a option should be included in the autocomplete list.
57
+ * Include this if the items you are providing to your wrapped collection aren't filtered by default.
58
+ */
59
+ filter?: (textValue: string, inputValue: string, node: Node<T>) => boolean;
60
+ /**
61
+ * Whether or not to focus the first item in the collection after a filter is performed. Note this is only applicable
62
+ * if virtual focus behavior is not turned off via `disableVirtualFocus`.
63
+ * @default false
64
+ */
65
+ disableAutoFocusFirst?: boolean;
66
+ /**
67
+ * Whether the autocomplete should disable virtual focus, instead making the wrapped collection directly tabbable.
68
+ * @default false
69
+ */
70
+ disableVirtualFocus?: boolean;
71
+ }
72
+ export interface AriaAutocompleteOptions<T> extends Omit<AriaAutocompleteProps<T>, 'children'> {
73
+ /** The ref for the wrapped collection element. */
74
+ inputRef: RefObject<HTMLInputElement | null>;
75
+ /** The ref for the wrapped collection element. */
76
+ collectionRef: RefObject<HTMLElement | null>;
77
+ }
78
+ export interface AutocompleteAria<T> {
79
+ /** Props for the autocomplete input element. These should be passed to the input's aria hooks (e.g. useTextField/useSearchField/etc) respectively. */
80
+ inputProps: InputProps;
81
+ /** Props for the collection, to be passed to collection's respective aria hook (e.g. useMenu). */
82
+ collectionProps: CollectionOptions;
83
+ /** Ref to attach to the wrapped collection. */
84
+ collectionRef: RefObject<HTMLElement | null>;
85
+ /** A filter function that returns if the provided collection node should be filtered out of the collection. */
86
+ filter?: (nodeTextValue: string, node: Node<T>) => boolean;
87
+ }
88
+ /**
89
+ * Provides the behavior and accessibility implementation for an autocomplete component.
90
+ * An autocomplete combines a text input with a collection, allowing users to filter the collection's contents match a query.
91
+ * @param props - Props for the autocomplete.
92
+ * @param state - State for the autocomplete, as returned by `useAutocompleteState`.
93
+ */
94
+ export function useAutocomplete<T>(props: AriaAutocompleteOptions<T>, state: AutocompleteState): AutocompleteAria<T>;
44
95
  export type { AriaSearchAutocompleteProps } from '@react-types/autocomplete';
45
96
 
46
97
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"mappings":";;;;;;AAsBA,wCAAwC,CAAC,CAAE,SAAQ,gBAAgB;IACjE,mCAAmC;IACnC,UAAU,EAAE,aAAa,CAAC;IAC1B,0CAA0C;IAC1C,UAAU,EAAE,oBAAoB,gBAAgB,CAAC,CAAC;IAClD,6EAA6E;IAC7E,YAAY,EAAE,mBAAmB,CAAC,CAAC,CAAC;IACpC,iDAAiD;IACjD,gBAAgB,EAAE,eAAe,CAAC;IAClC,qEAAqE;IACrE,gBAAgB,EAAE,aAAa,CAAC;IAChC,uEAAuE;IACvE,iBAAiB,EAAE,aAAa,CAAA;CACjC;AAED,+CAA+C,CAAC,CAAE,SAAQ,4BAA4B,CAAC,CAAC;IACtF,qCAAqC;IACrC,QAAQ,EAAE,UAAU,gBAAgB,GAAG,IAAI,CAAC,CAAC;IAC7C,wCAAwC;IACxC,UAAU,EAAE,UAAU,cAAc,GAAG,IAAI,CAAC,CAAC;IAC7C,gCAAgC;IAChC,UAAU,EAAE,UAAU,WAAW,GAAG,IAAI,CAAC,CAAC;IAC1C,6EAA6E;IAC7E,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC;;;;OAIG;IACH,cAAc,CAAC,EAAE,cAAc,CAAA;CAChC;AAED;;;;;GAKG;AACH,sCAAsC,CAAC,EAAE,KAAK,EAAE,8BAA8B,CAAC,CAAC,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC,GAAG,uBAAuB,CAAC,CAAC,CAwEpI;ACvHD,YAAY,EAAC,2BAA2B,EAAC,MAAM,2BAA2B,CAAC","sources":["packages/@react-aria/autocomplete/src/packages/@react-aria/autocomplete/src/useSearchAutocomplete.ts","packages/@react-aria/autocomplete/src/packages/@react-aria/autocomplete/src/index.ts","packages/@react-aria/autocomplete/src/index.ts"],"sourcesContent":[null,null,"/*\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 {AriaSearchAutocompleteOptions, SearchAutocompleteAria} from './useSearchAutocomplete';\nexport type {AriaSearchAutocompleteProps} from '@react-types/autocomplete';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
1
+ {"mappings":";;;;;;;;AAsBA,wCAAwC,CAAC,CAAE,SAAQ,gBAAgB;IACjE,mCAAmC;IACnC,UAAU,EAAE,aAAa,CAAC;IAC1B,0CAA0C;IAC1C,UAAU,EAAE,oBAAoB,gBAAgB,CAAC,CAAC;IAClD,6EAA6E;IAC7E,YAAY,EAAE,mBAAmB,CAAC,CAAC,CAAC;IACpC,iDAAiD;IACjD,gBAAgB,EAAE,eAAe,CAAC;IAClC,qEAAqE;IACrE,gBAAgB,EAAE,aAAa,CAAC;IAChC,uEAAuE;IACvE,iBAAiB,EAAE,aAAa,CAAA;CACjC;AAED,+CAA+C,CAAC,CAAE,SAAQ,4BAA4B,CAAC,CAAC;IACtF,qCAAqC;IACrC,QAAQ,EAAE,UAAU,gBAAgB,GAAG,IAAI,CAAC,CAAC;IAC7C,wCAAwC;IACxC,UAAU,EAAE,UAAU,cAAc,GAAG,IAAI,CAAC,CAAC;IAC7C,gCAAgC;IAChC,UAAU,EAAE,UAAU,WAAW,GAAG,IAAI,CAAC,CAAC;IAC1C,6EAA6E;IAC7E,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC;;;;OAIG;IACH,cAAc,CAAC,EAAE,cAAc,CAAA;CAChC;AAED;;;;;GAKG;AACH,sCAAsC,CAAC,EAAE,KAAK,EAAE,8BAA8B,CAAC,CAAC,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC,GAAG,uBAAuB,CAAC,CAAC,CAwEpI;AC7GD,kCAAmC,SAAQ,QAAQ,EAAE,iBAAiB;IACpE,+FAA+F;IAC/F,qBAAqB,EAAE,OAAO,CAAC;IAC/B,qCAAqC;IACrC,iBAAiB,EAAE,OAAO,CAAA;CAC3B;AAED,4BAA4B,CAAC,GAAG,gBAAgB,CAAE,SAAQ,QAAQ,EAChE,YAAY,CAAC,CAAC,EACd,cAAc,EACd,IAAI,CAAC,UAAU,MAAM,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,EAC7C,IAAI,CAAC,kBAAkB,EAAE,cAAc,GAAG,eAAe,GAAG,mBAAmB,GAAG,uBAAuB,GAAG,YAAY,GAAG,aAAa,GAAG,cAAc,CAAC;CAAG;AAE/J,uCAAuC,CAAC,CAAE,SAAQ,iBAAiB;IACjE;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,KAAK,OAAO,CAAC;IAE3E;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B;AAED,yCAAyC,CAAC,CAAE,SAAQ,IAAI,CAAC,sBAAsB,CAAC,CAAC,EAAE,UAAU,CAAC;IAC5F,kDAAkD;IAClD,QAAQ,EAAE,UAAU,gBAAgB,GAAG,IAAI,CAAC,CAAC;IAC7C,kDAAkD;IAClD,aAAa,EAAE,UAAU,WAAW,GAAG,IAAI,CAAC,CAAA;CAC7C;AAED,kCAAkC,CAAC;IACjC,sJAAsJ;IACtJ,UAAU,EAAE,UAAU,CAAC;IACvB,kGAAkG;IAClG,eAAe,EAAE,iBAAiB,CAAC;IACnC,+CAA+C;IAC/C,aAAa,EAAE,UAAU,WAAW,GAAG,IAAI,CAAC,CAAC;IAC7C,+GAA+G;IAC/G,MAAM,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,KAAK,OAAO,CAAA;CAC3D;AAED;;;;;GAKG;AACH,gCAAgC,CAAC,EAAE,KAAK,EAAE,wBAAwB,CAAC,CAAC,EAAE,KAAK,EAAE,iBAAiB,GAAG,iBAAiB,CAAC,CAAC,CA4UnH;AC9YD,YAAY,EAAC,2BAA2B,EAAC,MAAM,2BAA2B,CAAC","sources":["packages/@react-aria/autocomplete/src/packages/@react-aria/autocomplete/src/useSearchAutocomplete.ts","packages/@react-aria/autocomplete/src/packages/@react-aria/autocomplete/src/useAutocomplete.ts","packages/@react-aria/autocomplete/src/packages/@react-aria/autocomplete/src/index.ts","packages/@react-aria/autocomplete/src/index.ts"],"sourcesContent":[null,null,null,"/*\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, InputProps} from './useAutocomplete';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ "collectionLabel": `\u{41F}\u{440}\u{43E}\u{43F}\u{43E}\u{437}\u{438}\u{446}\u{456}\u{457}`
3
+ };
4
+
5
+
6
+ //# sourceMappingURL=uk-UA.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,mBAAmB,CAAC,sEAAU,CAAC;AACnD","sources":["packages/@react-aria/autocomplete/intl/uk-UA.json"],"sourcesContent":["{\n \"collectionLabel\": \"Пропозиції\"\n}\n"],"names":[],"version":3,"file":"uk-UA.main.js.map"}
package/dist/uk-UA.mjs ADDED
@@ -0,0 +1,8 @@
1
+ var $61d6a54fe0f4cb76$exports = {};
2
+ $61d6a54fe0f4cb76$exports = {
3
+ "collectionLabel": `\u{41F}\u{440}\u{43E}\u{43F}\u{43E}\u{437}\u{438}\u{446}\u{456}\u{457}`
4
+ };
5
+
6
+
7
+ export {$61d6a54fe0f4cb76$exports as default};
8
+ //# sourceMappingURL=uk-UA.module.js.map
@@ -0,0 +1,8 @@
1
+ var $61d6a54fe0f4cb76$exports = {};
2
+ $61d6a54fe0f4cb76$exports = {
3
+ "collectionLabel": `\u{41F}\u{440}\u{43E}\u{43F}\u{43E}\u{437}\u{438}\u{446}\u{456}\u{457}`
4
+ };
5
+
6
+
7
+ export {$61d6a54fe0f4cb76$exports as default};
8
+ //# sourceMappingURL=uk-UA.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,mBAAmB,CAAC,sEAAU,CAAC;AACnD","sources":["packages/@react-aria/autocomplete/intl/uk-UA.json"],"sourcesContent":["{\n \"collectionLabel\": \"Пропозиції\"\n}\n"],"names":[],"version":3,"file":"uk-UA.module.js.map"}