@protonradio/proton-ui 0.11.5-beta.2 → 0.11.6

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 (609) hide show
  1. package/dist/components/ActionMenu/ActionMenu.cjs.js +1 -1
  2. package/dist/components/ActionMenu/ActionMenu.cjs.js.map +1 -1
  3. package/dist/components/ActionMenu/ActionMenu.es.js +238 -186
  4. package/dist/components/ActionMenu/ActionMenu.es.js.map +1 -1
  5. package/dist/components/ButtonWithSelect/ButtonWithSelect.cjs.js +1 -1
  6. package/dist/components/ButtonWithSelect/ButtonWithSelect.cjs.js.map +1 -1
  7. package/dist/components/ButtonWithSelect/ButtonWithSelect.es.js +7 -8
  8. package/dist/components/ButtonWithSelect/ButtonWithSelect.es.js.map +1 -1
  9. package/dist/components/Menu/MenuTrigger.cjs.js +1 -1
  10. package/dist/components/Menu/MenuTrigger.cjs.js.map +1 -1
  11. package/dist/components/Menu/MenuTrigger.es.js +65 -73
  12. package/dist/components/Menu/MenuTrigger.es.js.map +1 -1
  13. package/dist/components/Menu/PopoverMenu.cjs.js +1 -1
  14. package/dist/components/Menu/PopoverMenu.cjs.js.map +1 -1
  15. package/dist/components/Menu/PopoverMenu.es.js +110 -104
  16. package/dist/components/Menu/PopoverMenu.es.js.map +1 -1
  17. package/dist/components/Popover/Popover.cjs.js +1 -1
  18. package/dist/components/Popover/Popover.cjs.js.map +1 -1
  19. package/dist/components/Popover/Popover.es.js +43 -64
  20. package/dist/components/Popover/Popover.es.js.map +1 -1
  21. package/dist/components/Select/Select.cjs.js +1 -1
  22. package/dist/components/Select/Select.cjs.js.map +1 -1
  23. package/dist/components/Select/Select.es.js +170 -119
  24. package/dist/components/Select/Select.es.js.map +1 -1
  25. package/dist/components/ThemeProvider.cjs.js +1 -1
  26. package/dist/components/ThemeProvider.cjs.js.map +1 -1
  27. package/dist/components/ThemeProvider.es.js +14 -13
  28. package/dist/components/ThemeProvider.es.js.map +1 -1
  29. package/dist/index.cjs.js +1 -1
  30. package/dist/index.d.ts +62 -78
  31. package/dist/index.es.js +37 -38
  32. package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.cjs.js +1 -1
  33. package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.cjs.js.map +1 -1
  34. package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.es.js +12 -16
  35. package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.es.js.map +1 -1
  36. package/dist/node_modules/@react-aria/overlays/dist/Overlay.cjs.js +1 -1
  37. package/dist/node_modules/@react-aria/overlays/dist/Overlay.cjs.js.map +1 -1
  38. package/dist/node_modules/@react-aria/overlays/dist/Overlay.es.js +8 -31
  39. package/dist/node_modules/@react-aria/overlays/dist/Overlay.es.js.map +1 -1
  40. package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.cjs.js +1 -1
  41. package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.cjs.js.map +1 -1
  42. package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.es.js +35 -43
  43. package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.es.js.map +1 -1
  44. package/dist/node_modules/react-aria-components/dist/utils.cjs.js +1 -1
  45. package/dist/node_modules/react-aria-components/dist/utils.cjs.js.map +1 -1
  46. package/dist/node_modules/react-aria-components/dist/utils.es.js +36 -48
  47. package/dist/node_modules/react-aria-components/dist/utils.es.js.map +1 -1
  48. package/dist/style.css +1 -1
  49. package/package.json +2 -1
  50. package/dist/_virtual/index.cjs.js +0 -2
  51. package/dist/_virtual/index.cjs.js.map +0 -1
  52. package/dist/_virtual/index.es.js +0 -5
  53. package/dist/_virtual/index.es.js.map +0 -1
  54. package/dist/_virtual/use-sync-external-store-shim.development.cjs.js +0 -2
  55. package/dist/_virtual/use-sync-external-store-shim.development.cjs.js.map +0 -1
  56. package/dist/_virtual/use-sync-external-store-shim.development.es.js +0 -5
  57. package/dist/_virtual/use-sync-external-store-shim.development.es.js.map +0 -1
  58. package/dist/_virtual/use-sync-external-store-shim.production.cjs.js +0 -2
  59. package/dist/_virtual/use-sync-external-store-shim.production.cjs.js.map +0 -1
  60. package/dist/_virtual/use-sync-external-store-shim.production.es.js +0 -5
  61. package/dist/_virtual/use-sync-external-store-shim.production.es.js.map +0 -1
  62. package/dist/components/ListBox/ListBox.cjs.js +0 -2
  63. package/dist/components/ListBox/ListBox.cjs.js.map +0 -1
  64. package/dist/components/ListBox/ListBox.es.js +0 -25
  65. package/dist/components/ListBox/ListBox.es.js.map +0 -1
  66. package/dist/node_modules/@internationalized/string/dist/LocalizedStringDictionary.cjs.js +0 -2
  67. package/dist/node_modules/@internationalized/string/dist/LocalizedStringDictionary.cjs.js.map +0 -1
  68. package/dist/node_modules/@internationalized/string/dist/LocalizedStringDictionary.es.js +0 -48
  69. package/dist/node_modules/@internationalized/string/dist/LocalizedStringDictionary.es.js.map +0 -1
  70. package/dist/node_modules/@internationalized/string/dist/LocalizedStringFormatter.cjs.js +0 -2
  71. package/dist/node_modules/@internationalized/string/dist/LocalizedStringFormatter.cjs.js.map +0 -1
  72. package/dist/node_modules/@internationalized/string/dist/LocalizedStringFormatter.es.js +0 -33
  73. package/dist/node_modules/@internationalized/string/dist/LocalizedStringFormatter.es.js.map +0 -1
  74. package/dist/node_modules/@react-aria/collections/dist/BaseCollection.cjs.js +0 -2
  75. package/dist/node_modules/@react-aria/collections/dist/BaseCollection.cjs.js.map +0 -1
  76. package/dist/node_modules/@react-aria/collections/dist/BaseCollection.es.js +0 -134
  77. package/dist/node_modules/@react-aria/collections/dist/BaseCollection.es.js.map +0 -1
  78. package/dist/node_modules/@react-aria/collections/dist/CollectionBuilder.cjs.js +0 -2
  79. package/dist/node_modules/@react-aria/collections/dist/CollectionBuilder.cjs.js.map +0 -1
  80. package/dist/node_modules/@react-aria/collections/dist/CollectionBuilder.es.js +0 -145
  81. package/dist/node_modules/@react-aria/collections/dist/CollectionBuilder.es.js.map +0 -1
  82. package/dist/node_modules/@react-aria/collections/dist/Document.cjs.js +0 -2
  83. package/dist/node_modules/@react-aria/collections/dist/Document.cjs.js.map +0 -1
  84. package/dist/node_modules/@react-aria/collections/dist/Document.es.js +0 -220
  85. package/dist/node_modules/@react-aria/collections/dist/Document.es.js.map +0 -1
  86. package/dist/node_modules/@react-aria/collections/dist/Hidden.cjs.js +0 -2
  87. package/dist/node_modules/@react-aria/collections/dist/Hidden.cjs.js.map +0 -1
  88. package/dist/node_modules/@react-aria/collections/dist/Hidden.es.js +0 -36
  89. package/dist/node_modules/@react-aria/collections/dist/Hidden.es.js.map +0 -1
  90. package/dist/node_modules/@react-aria/collections/dist/useCachedChildren.cjs.js +0 -2
  91. package/dist/node_modules/@react-aria/collections/dist/useCachedChildren.cjs.js.map +0 -1
  92. package/dist/node_modules/@react-aria/collections/dist/useCachedChildren.es.js +0 -37
  93. package/dist/node_modules/@react-aria/collections/dist/useCachedChildren.es.js.map +0 -1
  94. package/dist/node_modules/@react-aria/focus/dist/virtualFocus.cjs.js +0 -2
  95. package/dist/node_modules/@react-aria/focus/dist/virtualFocus.cjs.js.map +0 -1
  96. package/dist/node_modules/@react-aria/focus/dist/virtualFocus.es.js +0 -32
  97. package/dist/node_modules/@react-aria/focus/dist/virtualFocus.es.js.map +0 -1
  98. package/dist/node_modules/@react-aria/i18n/dist/useCollator.cjs.js +0 -2
  99. package/dist/node_modules/@react-aria/i18n/dist/useCollator.cjs.js.map +0 -1
  100. package/dist/node_modules/@react-aria/i18n/dist/useCollator.es.js +0 -12
  101. package/dist/node_modules/@react-aria/i18n/dist/useCollator.es.js.map +0 -1
  102. package/dist/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.cjs.js +0 -2
  103. package/dist/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.cjs.js.map +0 -1
  104. package/dist/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.es.js +0 -24
  105. package/dist/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.es.js.map +0 -1
  106. package/dist/node_modules/@react-aria/interactions/dist/PressResponder.cjs.js +0 -2
  107. package/dist/node_modules/@react-aria/interactions/dist/PressResponder.cjs.js.map +0 -1
  108. package/dist/node_modules/@react-aria/interactions/dist/PressResponder.es.js +0 -15
  109. package/dist/node_modules/@react-aria/interactions/dist/PressResponder.es.js.map +0 -1
  110. package/dist/node_modules/@react-aria/interactions/dist/useHover.cjs.js +0 -2
  111. package/dist/node_modules/@react-aria/interactions/dist/useHover.cjs.js.map +0 -1
  112. package/dist/node_modules/@react-aria/interactions/dist/useHover.es.js +0 -85
  113. package/dist/node_modules/@react-aria/interactions/dist/useHover.es.js.map +0 -1
  114. package/dist/node_modules/@react-aria/interactions/dist/useLongPress.cjs.js +0 -2
  115. package/dist/node_modules/@react-aria/interactions/dist/useLongPress.cjs.js.map +0 -1
  116. package/dist/node_modules/@react-aria/interactions/dist/useLongPress.es.js +0 -50
  117. package/dist/node_modules/@react-aria/interactions/dist/useLongPress.es.js.map +0 -1
  118. package/dist/node_modules/@react-aria/listbox/dist/useListBox.cjs.js +0 -2
  119. package/dist/node_modules/@react-aria/listbox/dist/useListBox.cjs.js.map +0 -1
  120. package/dist/node_modules/@react-aria/listbox/dist/useListBox.es.js +0 -52
  121. package/dist/node_modules/@react-aria/listbox/dist/useListBox.es.js.map +0 -1
  122. package/dist/node_modules/@react-aria/listbox/dist/useOption.cjs.js +0 -2
  123. package/dist/node_modules/@react-aria/listbox/dist/useOption.cjs.js.map +0 -1
  124. package/dist/node_modules/@react-aria/listbox/dist/useOption.es.js +0 -79
  125. package/dist/node_modules/@react-aria/listbox/dist/useOption.es.js.map +0 -1
  126. package/dist/node_modules/@react-aria/listbox/dist/utils.cjs.js +0 -2
  127. package/dist/node_modules/@react-aria/listbox/dist/utils.cjs.js.map +0 -1
  128. package/dist/node_modules/@react-aria/listbox/dist/utils.es.js +0 -14
  129. package/dist/node_modules/@react-aria/listbox/dist/utils.es.js.map +0 -1
  130. package/dist/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.cjs.js +0 -2
  131. package/dist/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.cjs.js.map +0 -1
  132. package/dist/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.es.js +0 -48
  133. package/dist/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.es.js.map +0 -1
  134. package/dist/node_modules/@react-aria/menu/dist/ar-AE.cjs.js +0 -2
  135. package/dist/node_modules/@react-aria/menu/dist/ar-AE.cjs.js.map +0 -1
  136. package/dist/node_modules/@react-aria/menu/dist/ar-AE.es.js +0 -8
  137. package/dist/node_modules/@react-aria/menu/dist/ar-AE.es.js.map +0 -1
  138. package/dist/node_modules/@react-aria/menu/dist/bg-BG.cjs.js +0 -2
  139. package/dist/node_modules/@react-aria/menu/dist/bg-BG.cjs.js.map +0 -1
  140. package/dist/node_modules/@react-aria/menu/dist/bg-BG.es.js +0 -8
  141. package/dist/node_modules/@react-aria/menu/dist/bg-BG.es.js.map +0 -1
  142. package/dist/node_modules/@react-aria/menu/dist/cs-CZ.cjs.js +0 -2
  143. package/dist/node_modules/@react-aria/menu/dist/cs-CZ.cjs.js.map +0 -1
  144. package/dist/node_modules/@react-aria/menu/dist/cs-CZ.es.js +0 -8
  145. package/dist/node_modules/@react-aria/menu/dist/cs-CZ.es.js.map +0 -1
  146. package/dist/node_modules/@react-aria/menu/dist/da-DK.cjs.js +0 -2
  147. package/dist/node_modules/@react-aria/menu/dist/da-DK.cjs.js.map +0 -1
  148. package/dist/node_modules/@react-aria/menu/dist/da-DK.es.js +0 -8
  149. package/dist/node_modules/@react-aria/menu/dist/da-DK.es.js.map +0 -1
  150. package/dist/node_modules/@react-aria/menu/dist/de-DE.cjs.js +0 -2
  151. package/dist/node_modules/@react-aria/menu/dist/de-DE.cjs.js.map +0 -1
  152. package/dist/node_modules/@react-aria/menu/dist/de-DE.es.js +0 -8
  153. package/dist/node_modules/@react-aria/menu/dist/de-DE.es.js.map +0 -1
  154. package/dist/node_modules/@react-aria/menu/dist/el-GR.cjs.js +0 -2
  155. package/dist/node_modules/@react-aria/menu/dist/el-GR.cjs.js.map +0 -1
  156. package/dist/node_modules/@react-aria/menu/dist/el-GR.es.js +0 -8
  157. package/dist/node_modules/@react-aria/menu/dist/el-GR.es.js.map +0 -1
  158. package/dist/node_modules/@react-aria/menu/dist/en-US.cjs.js +0 -2
  159. package/dist/node_modules/@react-aria/menu/dist/en-US.cjs.js.map +0 -1
  160. package/dist/node_modules/@react-aria/menu/dist/en-US.es.js +0 -8
  161. package/dist/node_modules/@react-aria/menu/dist/en-US.es.js.map +0 -1
  162. package/dist/node_modules/@react-aria/menu/dist/es-ES.cjs.js +0 -2
  163. package/dist/node_modules/@react-aria/menu/dist/es-ES.cjs.js.map +0 -1
  164. package/dist/node_modules/@react-aria/menu/dist/es-ES.es.js +0 -8
  165. package/dist/node_modules/@react-aria/menu/dist/es-ES.es.js.map +0 -1
  166. package/dist/node_modules/@react-aria/menu/dist/et-EE.cjs.js +0 -2
  167. package/dist/node_modules/@react-aria/menu/dist/et-EE.cjs.js.map +0 -1
  168. package/dist/node_modules/@react-aria/menu/dist/et-EE.es.js +0 -8
  169. package/dist/node_modules/@react-aria/menu/dist/et-EE.es.js.map +0 -1
  170. package/dist/node_modules/@react-aria/menu/dist/fi-FI.cjs.js +0 -2
  171. package/dist/node_modules/@react-aria/menu/dist/fi-FI.cjs.js.map +0 -1
  172. package/dist/node_modules/@react-aria/menu/dist/fi-FI.es.js +0 -8
  173. package/dist/node_modules/@react-aria/menu/dist/fi-FI.es.js.map +0 -1
  174. package/dist/node_modules/@react-aria/menu/dist/fr-FR.cjs.js +0 -2
  175. package/dist/node_modules/@react-aria/menu/dist/fr-FR.cjs.js.map +0 -1
  176. package/dist/node_modules/@react-aria/menu/dist/fr-FR.es.js +0 -8
  177. package/dist/node_modules/@react-aria/menu/dist/fr-FR.es.js.map +0 -1
  178. package/dist/node_modules/@react-aria/menu/dist/he-IL.cjs.js +0 -2
  179. package/dist/node_modules/@react-aria/menu/dist/he-IL.cjs.js.map +0 -1
  180. package/dist/node_modules/@react-aria/menu/dist/he-IL.es.js +0 -8
  181. package/dist/node_modules/@react-aria/menu/dist/he-IL.es.js.map +0 -1
  182. package/dist/node_modules/@react-aria/menu/dist/hr-HR.cjs.js +0 -2
  183. package/dist/node_modules/@react-aria/menu/dist/hr-HR.cjs.js.map +0 -1
  184. package/dist/node_modules/@react-aria/menu/dist/hr-HR.es.js +0 -8
  185. package/dist/node_modules/@react-aria/menu/dist/hr-HR.es.js.map +0 -1
  186. package/dist/node_modules/@react-aria/menu/dist/hu-HU.cjs.js +0 -2
  187. package/dist/node_modules/@react-aria/menu/dist/hu-HU.cjs.js.map +0 -1
  188. package/dist/node_modules/@react-aria/menu/dist/hu-HU.es.js +0 -8
  189. package/dist/node_modules/@react-aria/menu/dist/hu-HU.es.js.map +0 -1
  190. package/dist/node_modules/@react-aria/menu/dist/intlStrings.cjs.js +0 -2
  191. package/dist/node_modules/@react-aria/menu/dist/intlStrings.cjs.js.map +0 -1
  192. package/dist/node_modules/@react-aria/menu/dist/intlStrings.es.js +0 -75
  193. package/dist/node_modules/@react-aria/menu/dist/intlStrings.es.js.map +0 -1
  194. package/dist/node_modules/@react-aria/menu/dist/it-IT.cjs.js +0 -2
  195. package/dist/node_modules/@react-aria/menu/dist/it-IT.cjs.js.map +0 -1
  196. package/dist/node_modules/@react-aria/menu/dist/it-IT.es.js +0 -8
  197. package/dist/node_modules/@react-aria/menu/dist/it-IT.es.js.map +0 -1
  198. package/dist/node_modules/@react-aria/menu/dist/ja-JP.cjs.js +0 -2
  199. package/dist/node_modules/@react-aria/menu/dist/ja-JP.cjs.js.map +0 -1
  200. package/dist/node_modules/@react-aria/menu/dist/ja-JP.es.js +0 -8
  201. package/dist/node_modules/@react-aria/menu/dist/ja-JP.es.js.map +0 -1
  202. package/dist/node_modules/@react-aria/menu/dist/ko-KR.cjs.js +0 -2
  203. package/dist/node_modules/@react-aria/menu/dist/ko-KR.cjs.js.map +0 -1
  204. package/dist/node_modules/@react-aria/menu/dist/ko-KR.es.js +0 -8
  205. package/dist/node_modules/@react-aria/menu/dist/ko-KR.es.js.map +0 -1
  206. package/dist/node_modules/@react-aria/menu/dist/lt-LT.cjs.js +0 -2
  207. package/dist/node_modules/@react-aria/menu/dist/lt-LT.cjs.js.map +0 -1
  208. package/dist/node_modules/@react-aria/menu/dist/lt-LT.es.js +0 -8
  209. package/dist/node_modules/@react-aria/menu/dist/lt-LT.es.js.map +0 -1
  210. package/dist/node_modules/@react-aria/menu/dist/lv-LV.cjs.js +0 -2
  211. package/dist/node_modules/@react-aria/menu/dist/lv-LV.cjs.js.map +0 -1
  212. package/dist/node_modules/@react-aria/menu/dist/lv-LV.es.js +0 -8
  213. package/dist/node_modules/@react-aria/menu/dist/lv-LV.es.js.map +0 -1
  214. package/dist/node_modules/@react-aria/menu/dist/nb-NO.cjs.js +0 -2
  215. package/dist/node_modules/@react-aria/menu/dist/nb-NO.cjs.js.map +0 -1
  216. package/dist/node_modules/@react-aria/menu/dist/nb-NO.es.js +0 -8
  217. package/dist/node_modules/@react-aria/menu/dist/nb-NO.es.js.map +0 -1
  218. package/dist/node_modules/@react-aria/menu/dist/nl-NL.cjs.js +0 -2
  219. package/dist/node_modules/@react-aria/menu/dist/nl-NL.cjs.js.map +0 -1
  220. package/dist/node_modules/@react-aria/menu/dist/nl-NL.es.js +0 -8
  221. package/dist/node_modules/@react-aria/menu/dist/nl-NL.es.js.map +0 -1
  222. package/dist/node_modules/@react-aria/menu/dist/pl-PL.cjs.js +0 -2
  223. package/dist/node_modules/@react-aria/menu/dist/pl-PL.cjs.js.map +0 -1
  224. package/dist/node_modules/@react-aria/menu/dist/pl-PL.es.js +0 -8
  225. package/dist/node_modules/@react-aria/menu/dist/pl-PL.es.js.map +0 -1
  226. package/dist/node_modules/@react-aria/menu/dist/pt-BR.cjs.js +0 -2
  227. package/dist/node_modules/@react-aria/menu/dist/pt-BR.cjs.js.map +0 -1
  228. package/dist/node_modules/@react-aria/menu/dist/pt-BR.es.js +0 -8
  229. package/dist/node_modules/@react-aria/menu/dist/pt-BR.es.js.map +0 -1
  230. package/dist/node_modules/@react-aria/menu/dist/pt-PT.cjs.js +0 -2
  231. package/dist/node_modules/@react-aria/menu/dist/pt-PT.cjs.js.map +0 -1
  232. package/dist/node_modules/@react-aria/menu/dist/pt-PT.es.js +0 -8
  233. package/dist/node_modules/@react-aria/menu/dist/pt-PT.es.js.map +0 -1
  234. package/dist/node_modules/@react-aria/menu/dist/ro-RO.cjs.js +0 -2
  235. package/dist/node_modules/@react-aria/menu/dist/ro-RO.cjs.js.map +0 -1
  236. package/dist/node_modules/@react-aria/menu/dist/ro-RO.es.js +0 -8
  237. package/dist/node_modules/@react-aria/menu/dist/ro-RO.es.js.map +0 -1
  238. package/dist/node_modules/@react-aria/menu/dist/ru-RU.cjs.js +0 -2
  239. package/dist/node_modules/@react-aria/menu/dist/ru-RU.cjs.js.map +0 -1
  240. package/dist/node_modules/@react-aria/menu/dist/ru-RU.es.js +0 -8
  241. package/dist/node_modules/@react-aria/menu/dist/ru-RU.es.js.map +0 -1
  242. package/dist/node_modules/@react-aria/menu/dist/sk-SK.cjs.js +0 -2
  243. package/dist/node_modules/@react-aria/menu/dist/sk-SK.cjs.js.map +0 -1
  244. package/dist/node_modules/@react-aria/menu/dist/sk-SK.es.js +0 -8
  245. package/dist/node_modules/@react-aria/menu/dist/sk-SK.es.js.map +0 -1
  246. package/dist/node_modules/@react-aria/menu/dist/sl-SI.cjs.js +0 -2
  247. package/dist/node_modules/@react-aria/menu/dist/sl-SI.cjs.js.map +0 -1
  248. package/dist/node_modules/@react-aria/menu/dist/sl-SI.es.js +0 -8
  249. package/dist/node_modules/@react-aria/menu/dist/sl-SI.es.js.map +0 -1
  250. package/dist/node_modules/@react-aria/menu/dist/sr-SP.cjs.js +0 -2
  251. package/dist/node_modules/@react-aria/menu/dist/sr-SP.cjs.js.map +0 -1
  252. package/dist/node_modules/@react-aria/menu/dist/sr-SP.es.js +0 -8
  253. package/dist/node_modules/@react-aria/menu/dist/sr-SP.es.js.map +0 -1
  254. package/dist/node_modules/@react-aria/menu/dist/sv-SE.cjs.js +0 -2
  255. package/dist/node_modules/@react-aria/menu/dist/sv-SE.cjs.js.map +0 -1
  256. package/dist/node_modules/@react-aria/menu/dist/sv-SE.es.js +0 -8
  257. package/dist/node_modules/@react-aria/menu/dist/sv-SE.es.js.map +0 -1
  258. package/dist/node_modules/@react-aria/menu/dist/tr-TR.cjs.js +0 -2
  259. package/dist/node_modules/@react-aria/menu/dist/tr-TR.cjs.js.map +0 -1
  260. package/dist/node_modules/@react-aria/menu/dist/tr-TR.es.js +0 -8
  261. package/dist/node_modules/@react-aria/menu/dist/tr-TR.es.js.map +0 -1
  262. package/dist/node_modules/@react-aria/menu/dist/uk-UA.cjs.js +0 -2
  263. package/dist/node_modules/@react-aria/menu/dist/uk-UA.cjs.js.map +0 -1
  264. package/dist/node_modules/@react-aria/menu/dist/uk-UA.es.js +0 -8
  265. package/dist/node_modules/@react-aria/menu/dist/uk-UA.es.js.map +0 -1
  266. package/dist/node_modules/@react-aria/menu/dist/useMenu.cjs.js +0 -2
  267. package/dist/node_modules/@react-aria/menu/dist/useMenu.cjs.js.map +0 -1
  268. package/dist/node_modules/@react-aria/menu/dist/useMenu.es.js +0 -39
  269. package/dist/node_modules/@react-aria/menu/dist/useMenu.es.js.map +0 -1
  270. package/dist/node_modules/@react-aria/menu/dist/useMenuItem.cjs.js +0 -2
  271. package/dist/node_modules/@react-aria/menu/dist/useMenuItem.cjs.js.map +0 -1
  272. package/dist/node_modules/@react-aria/menu/dist/useMenuItem.es.js +0 -144
  273. package/dist/node_modules/@react-aria/menu/dist/useMenuItem.es.js.map +0 -1
  274. package/dist/node_modules/@react-aria/menu/dist/useMenuTrigger.cjs.js +0 -2
  275. package/dist/node_modules/@react-aria/menu/dist/useMenuTrigger.cjs.js.map +0 -1
  276. package/dist/node_modules/@react-aria/menu/dist/useMenuTrigger.es.js +0 -64
  277. package/dist/node_modules/@react-aria/menu/dist/useMenuTrigger.es.js.map +0 -1
  278. package/dist/node_modules/@react-aria/menu/dist/utils.cjs.js +0 -2
  279. package/dist/node_modules/@react-aria/menu/dist/utils.cjs.js.map +0 -1
  280. package/dist/node_modules/@react-aria/menu/dist/utils.es.js +0 -5
  281. package/dist/node_modules/@react-aria/menu/dist/utils.es.js.map +0 -1
  282. package/dist/node_modules/@react-aria/menu/dist/zh-CN.cjs.js +0 -2
  283. package/dist/node_modules/@react-aria/menu/dist/zh-CN.cjs.js.map +0 -1
  284. package/dist/node_modules/@react-aria/menu/dist/zh-CN.es.js +0 -8
  285. package/dist/node_modules/@react-aria/menu/dist/zh-CN.es.js.map +0 -1
  286. package/dist/node_modules/@react-aria/menu/dist/zh-TW.cjs.js +0 -2
  287. package/dist/node_modules/@react-aria/menu/dist/zh-TW.cjs.js.map +0 -1
  288. package/dist/node_modules/@react-aria/menu/dist/zh-TW.es.js +0 -8
  289. package/dist/node_modules/@react-aria/menu/dist/zh-TW.es.js.map +0 -1
  290. package/dist/node_modules/@react-aria/overlays/dist/DismissButton.cjs.js +0 -2
  291. package/dist/node_modules/@react-aria/overlays/dist/DismissButton.cjs.js.map +0 -1
  292. package/dist/node_modules/@react-aria/overlays/dist/DismissButton.es.js +0 -26
  293. package/dist/node_modules/@react-aria/overlays/dist/DismissButton.es.js.map +0 -1
  294. package/dist/node_modules/@react-aria/overlays/dist/PortalProvider.cjs.js +0 -2
  295. package/dist/node_modules/@react-aria/overlays/dist/PortalProvider.cjs.js.map +0 -1
  296. package/dist/node_modules/@react-aria/overlays/dist/PortalProvider.es.js +0 -11
  297. package/dist/node_modules/@react-aria/overlays/dist/PortalProvider.es.js.map +0 -1
  298. package/dist/node_modules/@react-aria/overlays/dist/ar-AE.cjs.js +0 -2
  299. package/dist/node_modules/@react-aria/overlays/dist/ar-AE.cjs.js.map +0 -1
  300. package/dist/node_modules/@react-aria/overlays/dist/ar-AE.es.js +0 -8
  301. package/dist/node_modules/@react-aria/overlays/dist/ar-AE.es.js.map +0 -1
  302. package/dist/node_modules/@react-aria/overlays/dist/bg-BG.cjs.js +0 -2
  303. package/dist/node_modules/@react-aria/overlays/dist/bg-BG.cjs.js.map +0 -1
  304. package/dist/node_modules/@react-aria/overlays/dist/bg-BG.es.js +0 -8
  305. package/dist/node_modules/@react-aria/overlays/dist/bg-BG.es.js.map +0 -1
  306. package/dist/node_modules/@react-aria/overlays/dist/calculatePosition.cjs.js +0 -2
  307. package/dist/node_modules/@react-aria/overlays/dist/calculatePosition.cjs.js.map +0 -1
  308. package/dist/node_modules/@react-aria/overlays/dist/calculatePosition.es.js +0 -200
  309. package/dist/node_modules/@react-aria/overlays/dist/calculatePosition.es.js.map +0 -1
  310. package/dist/node_modules/@react-aria/overlays/dist/cs-CZ.cjs.js +0 -2
  311. package/dist/node_modules/@react-aria/overlays/dist/cs-CZ.cjs.js.map +0 -1
  312. package/dist/node_modules/@react-aria/overlays/dist/cs-CZ.es.js +0 -8
  313. package/dist/node_modules/@react-aria/overlays/dist/cs-CZ.es.js.map +0 -1
  314. package/dist/node_modules/@react-aria/overlays/dist/da-DK.cjs.js +0 -2
  315. package/dist/node_modules/@react-aria/overlays/dist/da-DK.cjs.js.map +0 -1
  316. package/dist/node_modules/@react-aria/overlays/dist/da-DK.es.js +0 -8
  317. package/dist/node_modules/@react-aria/overlays/dist/da-DK.es.js.map +0 -1
  318. package/dist/node_modules/@react-aria/overlays/dist/de-DE.cjs.js +0 -2
  319. package/dist/node_modules/@react-aria/overlays/dist/de-DE.cjs.js.map +0 -1
  320. package/dist/node_modules/@react-aria/overlays/dist/de-DE.es.js +0 -8
  321. package/dist/node_modules/@react-aria/overlays/dist/de-DE.es.js.map +0 -1
  322. package/dist/node_modules/@react-aria/overlays/dist/el-GR.cjs.js +0 -2
  323. package/dist/node_modules/@react-aria/overlays/dist/el-GR.cjs.js.map +0 -1
  324. package/dist/node_modules/@react-aria/overlays/dist/el-GR.es.js +0 -8
  325. package/dist/node_modules/@react-aria/overlays/dist/el-GR.es.js.map +0 -1
  326. package/dist/node_modules/@react-aria/overlays/dist/en-US.cjs.js +0 -2
  327. package/dist/node_modules/@react-aria/overlays/dist/en-US.cjs.js.map +0 -1
  328. package/dist/node_modules/@react-aria/overlays/dist/en-US.es.js +0 -8
  329. package/dist/node_modules/@react-aria/overlays/dist/en-US.es.js.map +0 -1
  330. package/dist/node_modules/@react-aria/overlays/dist/es-ES.cjs.js +0 -2
  331. package/dist/node_modules/@react-aria/overlays/dist/es-ES.cjs.js.map +0 -1
  332. package/dist/node_modules/@react-aria/overlays/dist/es-ES.es.js +0 -8
  333. package/dist/node_modules/@react-aria/overlays/dist/es-ES.es.js.map +0 -1
  334. package/dist/node_modules/@react-aria/overlays/dist/et-EE.cjs.js +0 -2
  335. package/dist/node_modules/@react-aria/overlays/dist/et-EE.cjs.js.map +0 -1
  336. package/dist/node_modules/@react-aria/overlays/dist/et-EE.es.js +0 -8
  337. package/dist/node_modules/@react-aria/overlays/dist/et-EE.es.js.map +0 -1
  338. package/dist/node_modules/@react-aria/overlays/dist/fi-FI.cjs.js +0 -2
  339. package/dist/node_modules/@react-aria/overlays/dist/fi-FI.cjs.js.map +0 -1
  340. package/dist/node_modules/@react-aria/overlays/dist/fi-FI.es.js +0 -8
  341. package/dist/node_modules/@react-aria/overlays/dist/fi-FI.es.js.map +0 -1
  342. package/dist/node_modules/@react-aria/overlays/dist/fr-FR.cjs.js +0 -2
  343. package/dist/node_modules/@react-aria/overlays/dist/fr-FR.cjs.js.map +0 -1
  344. package/dist/node_modules/@react-aria/overlays/dist/fr-FR.es.js +0 -8
  345. package/dist/node_modules/@react-aria/overlays/dist/fr-FR.es.js.map +0 -1
  346. package/dist/node_modules/@react-aria/overlays/dist/he-IL.cjs.js +0 -2
  347. package/dist/node_modules/@react-aria/overlays/dist/he-IL.cjs.js.map +0 -1
  348. package/dist/node_modules/@react-aria/overlays/dist/he-IL.es.js +0 -8
  349. package/dist/node_modules/@react-aria/overlays/dist/he-IL.es.js.map +0 -1
  350. package/dist/node_modules/@react-aria/overlays/dist/hr-HR.cjs.js +0 -2
  351. package/dist/node_modules/@react-aria/overlays/dist/hr-HR.cjs.js.map +0 -1
  352. package/dist/node_modules/@react-aria/overlays/dist/hr-HR.es.js +0 -8
  353. package/dist/node_modules/@react-aria/overlays/dist/hr-HR.es.js.map +0 -1
  354. package/dist/node_modules/@react-aria/overlays/dist/hu-HU.cjs.js +0 -2
  355. package/dist/node_modules/@react-aria/overlays/dist/hu-HU.cjs.js.map +0 -1
  356. package/dist/node_modules/@react-aria/overlays/dist/hu-HU.es.js +0 -8
  357. package/dist/node_modules/@react-aria/overlays/dist/hu-HU.es.js.map +0 -1
  358. package/dist/node_modules/@react-aria/overlays/dist/intlStrings.cjs.js +0 -2
  359. package/dist/node_modules/@react-aria/overlays/dist/intlStrings.cjs.js.map +0 -1
  360. package/dist/node_modules/@react-aria/overlays/dist/intlStrings.es.js +0 -75
  361. package/dist/node_modules/@react-aria/overlays/dist/intlStrings.es.js.map +0 -1
  362. package/dist/node_modules/@react-aria/overlays/dist/it-IT.cjs.js +0 -2
  363. package/dist/node_modules/@react-aria/overlays/dist/it-IT.cjs.js.map +0 -1
  364. package/dist/node_modules/@react-aria/overlays/dist/it-IT.es.js +0 -8
  365. package/dist/node_modules/@react-aria/overlays/dist/it-IT.es.js.map +0 -1
  366. package/dist/node_modules/@react-aria/overlays/dist/ja-JP.cjs.js +0 -2
  367. package/dist/node_modules/@react-aria/overlays/dist/ja-JP.cjs.js.map +0 -1
  368. package/dist/node_modules/@react-aria/overlays/dist/ja-JP.es.js +0 -8
  369. package/dist/node_modules/@react-aria/overlays/dist/ja-JP.es.js.map +0 -1
  370. package/dist/node_modules/@react-aria/overlays/dist/ko-KR.cjs.js +0 -2
  371. package/dist/node_modules/@react-aria/overlays/dist/ko-KR.cjs.js.map +0 -1
  372. package/dist/node_modules/@react-aria/overlays/dist/ko-KR.es.js +0 -8
  373. package/dist/node_modules/@react-aria/overlays/dist/ko-KR.es.js.map +0 -1
  374. package/dist/node_modules/@react-aria/overlays/dist/lt-LT.cjs.js +0 -2
  375. package/dist/node_modules/@react-aria/overlays/dist/lt-LT.cjs.js.map +0 -1
  376. package/dist/node_modules/@react-aria/overlays/dist/lt-LT.es.js +0 -8
  377. package/dist/node_modules/@react-aria/overlays/dist/lt-LT.es.js.map +0 -1
  378. package/dist/node_modules/@react-aria/overlays/dist/lv-LV.cjs.js +0 -2
  379. package/dist/node_modules/@react-aria/overlays/dist/lv-LV.cjs.js.map +0 -1
  380. package/dist/node_modules/@react-aria/overlays/dist/lv-LV.es.js +0 -8
  381. package/dist/node_modules/@react-aria/overlays/dist/lv-LV.es.js.map +0 -1
  382. package/dist/node_modules/@react-aria/overlays/dist/nb-NO.cjs.js +0 -2
  383. package/dist/node_modules/@react-aria/overlays/dist/nb-NO.cjs.js.map +0 -1
  384. package/dist/node_modules/@react-aria/overlays/dist/nb-NO.es.js +0 -8
  385. package/dist/node_modules/@react-aria/overlays/dist/nb-NO.es.js.map +0 -1
  386. package/dist/node_modules/@react-aria/overlays/dist/nl-NL.cjs.js +0 -2
  387. package/dist/node_modules/@react-aria/overlays/dist/nl-NL.cjs.js.map +0 -1
  388. package/dist/node_modules/@react-aria/overlays/dist/nl-NL.es.js +0 -8
  389. package/dist/node_modules/@react-aria/overlays/dist/nl-NL.es.js.map +0 -1
  390. package/dist/node_modules/@react-aria/overlays/dist/pl-PL.cjs.js +0 -2
  391. package/dist/node_modules/@react-aria/overlays/dist/pl-PL.cjs.js.map +0 -1
  392. package/dist/node_modules/@react-aria/overlays/dist/pl-PL.es.js +0 -8
  393. package/dist/node_modules/@react-aria/overlays/dist/pl-PL.es.js.map +0 -1
  394. package/dist/node_modules/@react-aria/overlays/dist/pt-BR.cjs.js +0 -2
  395. package/dist/node_modules/@react-aria/overlays/dist/pt-BR.cjs.js.map +0 -1
  396. package/dist/node_modules/@react-aria/overlays/dist/pt-BR.es.js +0 -8
  397. package/dist/node_modules/@react-aria/overlays/dist/pt-BR.es.js.map +0 -1
  398. package/dist/node_modules/@react-aria/overlays/dist/pt-PT.cjs.js +0 -2
  399. package/dist/node_modules/@react-aria/overlays/dist/pt-PT.cjs.js.map +0 -1
  400. package/dist/node_modules/@react-aria/overlays/dist/pt-PT.es.js +0 -8
  401. package/dist/node_modules/@react-aria/overlays/dist/pt-PT.es.js.map +0 -1
  402. package/dist/node_modules/@react-aria/overlays/dist/ro-RO.cjs.js +0 -2
  403. package/dist/node_modules/@react-aria/overlays/dist/ro-RO.cjs.js.map +0 -1
  404. package/dist/node_modules/@react-aria/overlays/dist/ro-RO.es.js +0 -8
  405. package/dist/node_modules/@react-aria/overlays/dist/ro-RO.es.js.map +0 -1
  406. package/dist/node_modules/@react-aria/overlays/dist/ru-RU.cjs.js +0 -2
  407. package/dist/node_modules/@react-aria/overlays/dist/ru-RU.cjs.js.map +0 -1
  408. package/dist/node_modules/@react-aria/overlays/dist/ru-RU.es.js +0 -8
  409. package/dist/node_modules/@react-aria/overlays/dist/ru-RU.es.js.map +0 -1
  410. package/dist/node_modules/@react-aria/overlays/dist/sk-SK.cjs.js +0 -2
  411. package/dist/node_modules/@react-aria/overlays/dist/sk-SK.cjs.js.map +0 -1
  412. package/dist/node_modules/@react-aria/overlays/dist/sk-SK.es.js +0 -8
  413. package/dist/node_modules/@react-aria/overlays/dist/sk-SK.es.js.map +0 -1
  414. package/dist/node_modules/@react-aria/overlays/dist/sl-SI.cjs.js +0 -2
  415. package/dist/node_modules/@react-aria/overlays/dist/sl-SI.cjs.js.map +0 -1
  416. package/dist/node_modules/@react-aria/overlays/dist/sl-SI.es.js +0 -8
  417. package/dist/node_modules/@react-aria/overlays/dist/sl-SI.es.js.map +0 -1
  418. package/dist/node_modules/@react-aria/overlays/dist/sr-SP.cjs.js +0 -2
  419. package/dist/node_modules/@react-aria/overlays/dist/sr-SP.cjs.js.map +0 -1
  420. package/dist/node_modules/@react-aria/overlays/dist/sr-SP.es.js +0 -8
  421. package/dist/node_modules/@react-aria/overlays/dist/sr-SP.es.js.map +0 -1
  422. package/dist/node_modules/@react-aria/overlays/dist/sv-SE.cjs.js +0 -2
  423. package/dist/node_modules/@react-aria/overlays/dist/sv-SE.cjs.js.map +0 -1
  424. package/dist/node_modules/@react-aria/overlays/dist/sv-SE.es.js +0 -8
  425. package/dist/node_modules/@react-aria/overlays/dist/sv-SE.es.js.map +0 -1
  426. package/dist/node_modules/@react-aria/overlays/dist/tr-TR.cjs.js +0 -2
  427. package/dist/node_modules/@react-aria/overlays/dist/tr-TR.cjs.js.map +0 -1
  428. package/dist/node_modules/@react-aria/overlays/dist/tr-TR.es.js +0 -8
  429. package/dist/node_modules/@react-aria/overlays/dist/tr-TR.es.js.map +0 -1
  430. package/dist/node_modules/@react-aria/overlays/dist/uk-UA.cjs.js +0 -2
  431. package/dist/node_modules/@react-aria/overlays/dist/uk-UA.cjs.js.map +0 -1
  432. package/dist/node_modules/@react-aria/overlays/dist/uk-UA.es.js +0 -8
  433. package/dist/node_modules/@react-aria/overlays/dist/uk-UA.es.js.map +0 -1
  434. package/dist/node_modules/@react-aria/overlays/dist/useCloseOnScroll.cjs.js +0 -2
  435. package/dist/node_modules/@react-aria/overlays/dist/useCloseOnScroll.cjs.js.map +0 -1
  436. package/dist/node_modules/@react-aria/overlays/dist/useCloseOnScroll.es.js +0 -26
  437. package/dist/node_modules/@react-aria/overlays/dist/useCloseOnScroll.es.js.map +0 -1
  438. package/dist/node_modules/@react-aria/overlays/dist/useOverlayPosition.cjs.js +0 -2
  439. package/dist/node_modules/@react-aria/overlays/dist/useOverlayPosition.cjs.js.map +0 -1
  440. package/dist/node_modules/@react-aria/overlays/dist/useOverlayPosition.es.js +0 -143
  441. package/dist/node_modules/@react-aria/overlays/dist/useOverlayPosition.es.js.map +0 -1
  442. package/dist/node_modules/@react-aria/overlays/dist/useOverlayTrigger.cjs.js +0 -2
  443. package/dist/node_modules/@react-aria/overlays/dist/useOverlayTrigger.cjs.js.map +0 -1
  444. package/dist/node_modules/@react-aria/overlays/dist/useOverlayTrigger.es.js +0 -27
  445. package/dist/node_modules/@react-aria/overlays/dist/useOverlayTrigger.es.js.map +0 -1
  446. package/dist/node_modules/@react-aria/overlays/dist/usePopover.cjs.js +0 -2
  447. package/dist/node_modules/@react-aria/overlays/dist/usePopover.cjs.js.map +0 -1
  448. package/dist/node_modules/@react-aria/overlays/dist/usePopover.es.js +0 -45
  449. package/dist/node_modules/@react-aria/overlays/dist/usePopover.es.js.map +0 -1
  450. package/dist/node_modules/@react-aria/overlays/dist/zh-CN.cjs.js +0 -2
  451. package/dist/node_modules/@react-aria/overlays/dist/zh-CN.cjs.js.map +0 -1
  452. package/dist/node_modules/@react-aria/overlays/dist/zh-CN.es.js +0 -8
  453. package/dist/node_modules/@react-aria/overlays/dist/zh-CN.es.js.map +0 -1
  454. package/dist/node_modules/@react-aria/overlays/dist/zh-TW.cjs.js +0 -2
  455. package/dist/node_modules/@react-aria/overlays/dist/zh-TW.cjs.js.map +0 -1
  456. package/dist/node_modules/@react-aria/overlays/dist/zh-TW.es.js +0 -8
  457. package/dist/node_modules/@react-aria/overlays/dist/zh-TW.es.js.map +0 -1
  458. package/dist/node_modules/@react-aria/select/dist/HiddenSelect.cjs.js +0 -2
  459. package/dist/node_modules/@react-aria/select/dist/HiddenSelect.cjs.js.map +0 -1
  460. package/dist/node_modules/@react-aria/select/dist/HiddenSelect.es.js +0 -73
  461. package/dist/node_modules/@react-aria/select/dist/HiddenSelect.es.js.map +0 -1
  462. package/dist/node_modules/@react-aria/select/dist/useSelect.cjs.js +0 -2
  463. package/dist/node_modules/@react-aria/select/dist/useSelect.cjs.js.map +0 -1
  464. package/dist/node_modules/@react-aria/select/dist/useSelect.es.js +0 -117
  465. package/dist/node_modules/@react-aria/select/dist/useSelect.es.js.map +0 -1
  466. package/dist/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.cjs.js +0 -2
  467. package/dist/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.cjs.js.map +0 -1
  468. package/dist/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.es.js +0 -41
  469. package/dist/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.es.js.map +0 -1
  470. package/dist/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.cjs.js +0 -2
  471. package/dist/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.cjs.js.map +0 -1
  472. package/dist/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.es.js +0 -122
  473. package/dist/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.es.js.map +0 -1
  474. package/dist/node_modules/@react-aria/selection/dist/useSelectableCollection.cjs.js +0 -2
  475. package/dist/node_modules/@react-aria/selection/dist/useSelectableCollection.cjs.js.map +0 -1
  476. package/dist/node_modules/@react-aria/selection/dist/useSelectableCollection.es.js +0 -227
  477. package/dist/node_modules/@react-aria/selection/dist/useSelectableCollection.es.js.map +0 -1
  478. package/dist/node_modules/@react-aria/selection/dist/useSelectableItem.cjs.js +0 -2
  479. package/dist/node_modules/@react-aria/selection/dist/useSelectableItem.cjs.js.map +0 -1
  480. package/dist/node_modules/@react-aria/selection/dist/useSelectableItem.es.js +0 -122
  481. package/dist/node_modules/@react-aria/selection/dist/useSelectableItem.es.js.map +0 -1
  482. package/dist/node_modules/@react-aria/selection/dist/useSelectableList.cjs.js +0 -2
  483. package/dist/node_modules/@react-aria/selection/dist/useSelectableList.cjs.js.map +0 -1
  484. package/dist/node_modules/@react-aria/selection/dist/useSelectableList.es.js +0 -37
  485. package/dist/node_modules/@react-aria/selection/dist/useSelectableList.es.js.map +0 -1
  486. package/dist/node_modules/@react-aria/selection/dist/useTypeSelect.cjs.js +0 -2
  487. package/dist/node_modules/@react-aria/selection/dist/useTypeSelect.cjs.js.map +0 -1
  488. package/dist/node_modules/@react-aria/selection/dist/useTypeSelect.es.js +0 -33
  489. package/dist/node_modules/@react-aria/selection/dist/useTypeSelect.es.js.map +0 -1
  490. package/dist/node_modules/@react-aria/selection/dist/utils.cjs.js +0 -2
  491. package/dist/node_modules/@react-aria/selection/dist/utils.cjs.js.map +0 -1
  492. package/dist/node_modules/@react-aria/selection/dist/utils.es.js +0 -24
  493. package/dist/node_modules/@react-aria/selection/dist/utils.es.js.map +0 -1
  494. package/dist/node_modules/@react-stately/collections/dist/CollectionBuilder.cjs.js +0 -2
  495. package/dist/node_modules/@react-stately/collections/dist/CollectionBuilder.cjs.js.map +0 -1
  496. package/dist/node_modules/@react-stately/collections/dist/CollectionBuilder.es.js +0 -171
  497. package/dist/node_modules/@react-stately/collections/dist/CollectionBuilder.es.js.map +0 -1
  498. package/dist/node_modules/@react-stately/collections/dist/Item.cjs.js +0 -2
  499. package/dist/node_modules/@react-stately/collections/dist/Item.cjs.js.map +0 -1
  500. package/dist/node_modules/@react-stately/collections/dist/Item.es.js +0 -38
  501. package/dist/node_modules/@react-stately/collections/dist/Item.es.js.map +0 -1
  502. package/dist/node_modules/@react-stately/collections/dist/getChildNodes.cjs.js +0 -2
  503. package/dist/node_modules/@react-stately/collections/dist/getChildNodes.cjs.js.map +0 -1
  504. package/dist/node_modules/@react-stately/collections/dist/getChildNodes.es.js +0 -34
  505. package/dist/node_modules/@react-stately/collections/dist/getChildNodes.es.js.map +0 -1
  506. package/dist/node_modules/@react-stately/collections/dist/getItemCount.cjs.js +0 -2
  507. package/dist/node_modules/@react-stately/collections/dist/getItemCount.cjs.js.map +0 -1
  508. package/dist/node_modules/@react-stately/collections/dist/getItemCount.es.js +0 -14
  509. package/dist/node_modules/@react-stately/collections/dist/getItemCount.es.js.map +0 -1
  510. package/dist/node_modules/@react-stately/collections/dist/useCollection.cjs.js +0 -2
  511. package/dist/node_modules/@react-stately/collections/dist/useCollection.cjs.js.map +0 -1
  512. package/dist/node_modules/@react-stately/collections/dist/useCollection.es.js +0 -24
  513. package/dist/node_modules/@react-stately/collections/dist/useCollection.es.js.map +0 -1
  514. package/dist/node_modules/@react-stately/list/dist/ListCollection.cjs.js +0 -2
  515. package/dist/node_modules/@react-stately/list/dist/ListCollection.cjs.js.map +0 -1
  516. package/dist/node_modules/@react-stately/list/dist/ListCollection.es.js +0 -57
  517. package/dist/node_modules/@react-stately/list/dist/ListCollection.es.js.map +0 -1
  518. package/dist/node_modules/@react-stately/list/dist/useListState.cjs.js +0 -2
  519. package/dist/node_modules/@react-stately/list/dist/useListState.cjs.js.map +0 -1
  520. package/dist/node_modules/@react-stately/list/dist/useListState.es.js +0 -70
  521. package/dist/node_modules/@react-stately/list/dist/useListState.es.js.map +0 -1
  522. package/dist/node_modules/@react-stately/list/dist/useSingleSelectListState.cjs.js +0 -2
  523. package/dist/node_modules/@react-stately/list/dist/useSingleSelectListState.cjs.js.map +0 -1
  524. package/dist/node_modules/@react-stately/list/dist/useSingleSelectListState.es.js +0 -35
  525. package/dist/node_modules/@react-stately/list/dist/useSingleSelectListState.es.js.map +0 -1
  526. package/dist/node_modules/@react-stately/menu/dist/useMenuTriggerState.cjs.js +0 -2
  527. package/dist/node_modules/@react-stately/menu/dist/useMenuTriggerState.cjs.js.map +0 -1
  528. package/dist/node_modules/@react-stately/menu/dist/useMenuTriggerState.es.js +0 -34
  529. package/dist/node_modules/@react-stately/menu/dist/useMenuTriggerState.es.js.map +0 -1
  530. package/dist/node_modules/@react-stately/select/dist/useSelectState.cjs.js +0 -2
  531. package/dist/node_modules/@react-stately/select/dist/useSelectState.cjs.js.map +0 -1
  532. package/dist/node_modules/@react-stately/select/dist/useSelectState.es.js +0 -33
  533. package/dist/node_modules/@react-stately/select/dist/useSelectState.es.js.map +0 -1
  534. package/dist/node_modules/@react-stately/selection/dist/Selection.cjs.js +0 -2
  535. package/dist/node_modules/@react-stately/selection/dist/Selection.cjs.js.map +0 -1
  536. package/dist/node_modules/@react-stately/selection/dist/Selection.es.js +0 -9
  537. package/dist/node_modules/@react-stately/selection/dist/Selection.es.js.map +0 -1
  538. package/dist/node_modules/@react-stately/selection/dist/SelectionManager.cjs.js +0 -2
  539. package/dist/node_modules/@react-stately/selection/dist/SelectionManager.cjs.js.map +0 -1
  540. package/dist/node_modules/@react-stately/selection/dist/SelectionManager.es.js +0 -285
  541. package/dist/node_modules/@react-stately/selection/dist/SelectionManager.es.js.map +0 -1
  542. package/dist/node_modules/@react-stately/selection/dist/useMultipleSelectionState.cjs.js +0 -2
  543. package/dist/node_modules/@react-stately/selection/dist/useMultipleSelectionState.cjs.js.map +0 -1
  544. package/dist/node_modules/@react-stately/selection/dist/useMultipleSelectionState.es.js +0 -58
  545. package/dist/node_modules/@react-stately/selection/dist/useMultipleSelectionState.es.js.map +0 -1
  546. package/dist/node_modules/@react-stately/tree/dist/TreeCollection.cjs.js +0 -2
  547. package/dist/node_modules/@react-stately/tree/dist/TreeCollection.cjs.js.map +0 -1
  548. package/dist/node_modules/@react-stately/tree/dist/TreeCollection.es.js +0 -53
  549. package/dist/node_modules/@react-stately/tree/dist/TreeCollection.es.js.map +0 -1
  550. package/dist/node_modules/@react-stately/tree/dist/useTreeState.cjs.js +0 -2
  551. package/dist/node_modules/@react-stately/tree/dist/useTreeState.cjs.js.map +0 -1
  552. package/dist/node_modules/@react-stately/tree/dist/useTreeState.es.js +0 -38
  553. package/dist/node_modules/@react-stately/tree/dist/useTreeState.es.js.map +0 -1
  554. package/dist/node_modules/react-aria-components/dist/Autocomplete.cjs.js +0 -2
  555. package/dist/node_modules/react-aria-components/dist/Autocomplete.cjs.js.map +0 -1
  556. package/dist/node_modules/react-aria-components/dist/Autocomplete.es.js +0 -6
  557. package/dist/node_modules/react-aria-components/dist/Autocomplete.es.js.map +0 -1
  558. package/dist/node_modules/react-aria-components/dist/Button.cjs.js +0 -2
  559. package/dist/node_modules/react-aria-components/dist/Button.cjs.js.map +0 -1
  560. package/dist/node_modules/react-aria-components/dist/Button.es.js +0 -77
  561. package/dist/node_modules/react-aria-components/dist/Button.es.js.map +0 -1
  562. package/dist/node_modules/react-aria-components/dist/Collection.cjs.js +0 -2
  563. package/dist/node_modules/react-aria-components/dist/Collection.cjs.js.map +0 -1
  564. package/dist/node_modules/react-aria-components/dist/Collection.es.js +0 -48
  565. package/dist/node_modules/react-aria-components/dist/Collection.es.js.map +0 -1
  566. package/dist/node_modules/react-aria-components/dist/Dialog.cjs.js +0 -2
  567. package/dist/node_modules/react-aria-components/dist/Dialog.cjs.js.map +0 -1
  568. package/dist/node_modules/react-aria-components/dist/Dialog.es.js +0 -6
  569. package/dist/node_modules/react-aria-components/dist/Dialog.es.js.map +0 -1
  570. package/dist/node_modules/react-aria-components/dist/Header.cjs.js +0 -2
  571. package/dist/node_modules/react-aria-components/dist/Header.cjs.js.map +0 -1
  572. package/dist/node_modules/react-aria-components/dist/Header.es.js +0 -15
  573. package/dist/node_modules/react-aria-components/dist/Header.es.js.map +0 -1
  574. package/dist/node_modules/react-aria-components/dist/Keyboard.cjs.js +0 -2
  575. package/dist/node_modules/react-aria-components/dist/Keyboard.cjs.js.map +0 -1
  576. package/dist/node_modules/react-aria-components/dist/Keyboard.es.js +0 -6
  577. package/dist/node_modules/react-aria-components/dist/Keyboard.es.js.map +0 -1
  578. package/dist/node_modules/react-aria-components/dist/Menu.cjs.js +0 -2
  579. package/dist/node_modules/react-aria-components/dist/Menu.cjs.js.map +0 -1
  580. package/dist/node_modules/react-aria-components/dist/Menu.es.js +0 -283
  581. package/dist/node_modules/react-aria-components/dist/Menu.es.js.map +0 -1
  582. package/dist/node_modules/react-aria-components/dist/Popover.cjs.js +0 -2
  583. package/dist/node_modules/react-aria-components/dist/Popover.cjs.js.map +0 -1
  584. package/dist/node_modules/react-aria-components/dist/Popover.es.js +0 -130
  585. package/dist/node_modules/react-aria-components/dist/Popover.es.js.map +0 -1
  586. package/dist/node_modules/react-aria-components/dist/ProgressBar.cjs.js +0 -2
  587. package/dist/node_modules/react-aria-components/dist/ProgressBar.cjs.js.map +0 -1
  588. package/dist/node_modules/react-aria-components/dist/ProgressBar.es.js +0 -6
  589. package/dist/node_modules/react-aria-components/dist/ProgressBar.es.js.map +0 -1
  590. package/dist/node_modules/react-aria-components/dist/Separator.cjs.js +0 -2
  591. package/dist/node_modules/react-aria-components/dist/Separator.cjs.js.map +0 -1
  592. package/dist/node_modules/react-aria-components/dist/Separator.es.js +0 -6
  593. package/dist/node_modules/react-aria-components/dist/Separator.es.js.map +0 -1
  594. package/dist/node_modules/react-aria-components/dist/Text.cjs.js +0 -2
  595. package/dist/node_modules/react-aria-components/dist/Text.cjs.js.map +0 -1
  596. package/dist/node_modules/react-aria-components/dist/Text.es.js +0 -16
  597. package/dist/node_modules/react-aria-components/dist/Text.es.js.map +0 -1
  598. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs.js +0 -10
  599. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs.js.map +0 -1
  600. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.es.js +0 -68
  601. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.es.js.map +0 -1
  602. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs.js +0 -10
  603. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs.js.map +0 -1
  604. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.es.js +0 -56
  605. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.es.js.map +0 -1
  606. package/dist/node_modules/use-sync-external-store/shim/index.cjs.js +0 -2
  607. package/dist/node_modules/use-sync-external-store/shim/index.cjs.js.map +0 -1
  608. package/dist/node_modules/use-sync-external-store/shim/index.es.js +0 -9
  609. package/dist/node_modules/use-sync-external-store/shim/index.es.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"useOverlayPosition.cjs.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/useOverlayPosition.mjs"],"sourcesContent":["import {calculatePosition as $edcf132a9284368a$export$b3ceb0cbf1056d98} from \"./calculatePosition.mjs\";\nimport {useCloseOnScroll as $dd149f63282afbbf$export$18fc8428861184da} from \"./useCloseOnScroll.mjs\";\nimport {useState as $39EOa$useState, useRef as $39EOa$useRef, useEffect as $39EOa$useEffect, useCallback as $39EOa$useCallback} from \"react\";\nimport {useLayoutEffect as $39EOa$useLayoutEffect, useResizeObserver as $39EOa$useResizeObserver} from \"@react-aria/utils\";\nimport {useLocale as $39EOa$useLocale} from \"@react-aria/i18n\";\n\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\n\n\n\nlet $2a41e45df1593e64$var$visualViewport = typeof document !== 'undefined' ? window.visualViewport : null;\nfunction $2a41e45df1593e64$export$d39e1813b3bdd0e1(props) {\n let { direction: direction } = (0, $39EOa$useLocale)();\n let { arrowSize: arrowSize = 0, targetRef: targetRef, overlayRef: overlayRef, scrollRef: scrollRef = overlayRef, placement: placement = 'bottom', containerPadding: containerPadding = 12, shouldFlip: shouldFlip = true, boundaryElement: boundaryElement = typeof document !== 'undefined' ? document.body : null, offset: offset = 0, crossOffset: crossOffset = 0, shouldUpdatePosition: shouldUpdatePosition = true, isOpen: isOpen = true, onClose: onClose, maxHeight: maxHeight, arrowBoundaryOffset: arrowBoundaryOffset = 0 } = props;\n let [position, setPosition] = (0, $39EOa$useState)(null);\n let deps = [\n shouldUpdatePosition,\n placement,\n overlayRef.current,\n targetRef.current,\n scrollRef.current,\n containerPadding,\n shouldFlip,\n boundaryElement,\n offset,\n crossOffset,\n isOpen,\n direction,\n maxHeight,\n arrowBoundaryOffset,\n arrowSize\n ];\n // Note, the position freezing breaks if body sizes itself dynamicly with the visual viewport but that might\n // just be a non-realistic use case\n // Upon opening a overlay, record the current visual viewport scale so we can freeze the overlay styles\n let lastScale = (0, $39EOa$useRef)($2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.scale);\n (0, $39EOa$useEffect)(()=>{\n if (isOpen) lastScale.current = $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.scale;\n }, [\n isOpen\n ]);\n let updatePosition = (0, $39EOa$useCallback)(()=>{\n if (shouldUpdatePosition === false || !isOpen || !overlayRef.current || !targetRef.current || !boundaryElement) return;\n if (($2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.scale) !== lastScale.current) return;\n // Determine a scroll anchor based on the focused element.\n // This stores the offset of the anchor element from the scroll container\n // so it can be restored after repositioning. This way if the overlay height\n // changes, the focused element appears to stay in the same position.\n let anchor = null;\n if (scrollRef.current && scrollRef.current.contains(document.activeElement)) {\n var _document_activeElement;\n let anchorRect = (_document_activeElement = document.activeElement) === null || _document_activeElement === void 0 ? void 0 : _document_activeElement.getBoundingClientRect();\n let scrollRect = scrollRef.current.getBoundingClientRect();\n var _anchorRect_top;\n // Anchor from the top if the offset is in the top half of the scrollable element,\n // otherwise anchor from the bottom.\n anchor = {\n type: 'top',\n offset: ((_anchorRect_top = anchorRect === null || anchorRect === void 0 ? void 0 : anchorRect.top) !== null && _anchorRect_top !== void 0 ? _anchorRect_top : 0) - scrollRect.top\n };\n if (anchor.offset > scrollRect.height / 2) {\n anchor.type = 'bottom';\n var _anchorRect_bottom;\n anchor.offset = ((_anchorRect_bottom = anchorRect === null || anchorRect === void 0 ? void 0 : anchorRect.bottom) !== null && _anchorRect_bottom !== void 0 ? _anchorRect_bottom : 0) - scrollRect.bottom;\n }\n }\n // Always reset the overlay's previous max height if not defined by the user so that we can compensate for\n // RAC collections populating after a second render and properly set a correct max height + positioning when it populates.\n let overlay = overlayRef.current;\n if (!maxHeight && overlayRef.current) {\n var _window_visualViewport;\n overlay.style.top = '0px';\n overlay.style.bottom = '';\n var _window_visualViewport_height;\n overlay.style.maxHeight = ((_window_visualViewport_height = (_window_visualViewport = window.visualViewport) === null || _window_visualViewport === void 0 ? void 0 : _window_visualViewport.height) !== null && _window_visualViewport_height !== void 0 ? _window_visualViewport_height : window.innerHeight) + 'px';\n }\n let position = (0, $edcf132a9284368a$export$b3ceb0cbf1056d98)({\n placement: $2a41e45df1593e64$var$translateRTL(placement, direction),\n overlayNode: overlayRef.current,\n targetNode: targetRef.current,\n scrollNode: scrollRef.current || overlayRef.current,\n padding: containerPadding,\n shouldFlip: shouldFlip,\n boundaryElement: boundaryElement,\n offset: offset,\n crossOffset: crossOffset,\n maxHeight: maxHeight,\n arrowSize: arrowSize,\n arrowBoundaryOffset: arrowBoundaryOffset\n });\n if (!position.position) return;\n // Modify overlay styles directly so positioning happens immediately without the need of a second render\n // This is so we don't have to delay autoFocus scrolling or delay applying preventScroll for popovers\n overlay.style.top = '';\n overlay.style.bottom = '';\n overlay.style.left = '';\n overlay.style.right = '';\n Object.keys(position.position).forEach((key)=>overlay.style[key] = position.position[key] + 'px');\n overlay.style.maxHeight = position.maxHeight != null ? position.maxHeight + 'px' : '';\n // Restore scroll position relative to anchor element.\n if (anchor && document.activeElement && scrollRef.current) {\n let anchorRect = document.activeElement.getBoundingClientRect();\n let scrollRect = scrollRef.current.getBoundingClientRect();\n let newOffset = anchorRect[anchor.type] - scrollRect[anchor.type];\n scrollRef.current.scrollTop += newOffset - anchor.offset;\n }\n // Trigger a set state for a second render anyway for arrow positioning\n setPosition(position);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n // Update position when anything changes\n // eslint-disable-next-line react-hooks/exhaustive-deps\n (0, $39EOa$useLayoutEffect)(updatePosition, deps);\n // Update position on window resize\n $2a41e45df1593e64$var$useResize(updatePosition);\n // Update position when the overlay changes size (might need to flip).\n (0, $39EOa$useResizeObserver)({\n ref: overlayRef,\n onResize: updatePosition\n });\n // Update position when the target changes size (might need to flip).\n (0, $39EOa$useResizeObserver)({\n ref: targetRef,\n onResize: updatePosition\n });\n // Reposition the overlay and do not close on scroll while the visual viewport is resizing.\n // This will ensure that overlays adjust their positioning when the iOS virtual keyboard appears.\n let isResizing = (0, $39EOa$useRef)(false);\n (0, $39EOa$useLayoutEffect)(()=>{\n let timeout;\n let onResize = ()=>{\n isResizing.current = true;\n clearTimeout(timeout);\n timeout = setTimeout(()=>{\n isResizing.current = false;\n }, 500);\n updatePosition();\n };\n // Only reposition the overlay if a scroll event happens immediately as a result of resize (aka the virtual keyboard has appears)\n // We don't want to reposition the overlay if the user has pinch zoomed in and is scrolling the viewport around.\n let onScroll = ()=>{\n if (isResizing.current) onResize();\n };\n $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.addEventListener('resize', onResize);\n $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.addEventListener('scroll', onScroll);\n return ()=>{\n $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.removeEventListener('resize', onResize);\n $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.removeEventListener('scroll', onScroll);\n };\n }, [\n updatePosition\n ]);\n let close = (0, $39EOa$useCallback)(()=>{\n if (!isResizing.current) onClose === null || onClose === void 0 ? void 0 : onClose();\n }, [\n onClose,\n isResizing\n ]);\n // When scrolling a parent scrollable region of the trigger (other than the body),\n // we hide the popover. Otherwise, its position would be incorrect.\n (0, $dd149f63282afbbf$export$18fc8428861184da)({\n triggerRef: targetRef,\n isOpen: isOpen,\n onClose: onClose && close\n });\n var _position_maxHeight, _position_placement;\n return {\n overlayProps: {\n style: {\n position: 'absolute',\n zIndex: 100000,\n ...position === null || position === void 0 ? void 0 : position.position,\n maxHeight: (_position_maxHeight = position === null || position === void 0 ? void 0 : position.maxHeight) !== null && _position_maxHeight !== void 0 ? _position_maxHeight : '100vh'\n }\n },\n placement: (_position_placement = position === null || position === void 0 ? void 0 : position.placement) !== null && _position_placement !== void 0 ? _position_placement : null,\n arrowProps: {\n 'aria-hidden': 'true',\n role: 'presentation',\n style: {\n left: position === null || position === void 0 ? void 0 : position.arrowOffsetLeft,\n top: position === null || position === void 0 ? void 0 : position.arrowOffsetTop\n }\n },\n updatePosition: updatePosition\n };\n}\nfunction $2a41e45df1593e64$var$useResize(onResize) {\n (0, $39EOa$useLayoutEffect)(()=>{\n window.addEventListener('resize', onResize, false);\n return ()=>{\n window.removeEventListener('resize', onResize, false);\n };\n }, [\n onResize\n ]);\n}\nfunction $2a41e45df1593e64$var$translateRTL(position, direction) {\n if (direction === 'rtl') return position.replace('start', 'right').replace('end', 'left');\n return position.replace('start', 'left').replace('end', 'right');\n}\n\n\nexport {$2a41e45df1593e64$export$d39e1813b3bdd0e1 as useOverlayPosition};\n//# sourceMappingURL=useOverlayPosition.module.js.map\n"],"names":["$2a41e45df1593e64$var$visualViewport","$2a41e45df1593e64$export$d39e1813b3bdd0e1","props","direction","$39EOa$useLocale","arrowSize","targetRef","overlayRef","scrollRef","placement","containerPadding","shouldFlip","boundaryElement","offset","crossOffset","shouldUpdatePosition","isOpen","onClose","maxHeight","arrowBoundaryOffset","position","setPosition","$39EOa$useState","deps","lastScale","$39EOa$useRef","$39EOa$useEffect","updatePosition","$39EOa$useCallback","anchor","_document_activeElement","anchorRect","scrollRect","_anchorRect_top","_anchorRect_bottom","overlay","_window_visualViewport","_window_visualViewport_height","$edcf132a9284368a$export$b3ceb0cbf1056d98","$2a41e45df1593e64$var$translateRTL","key","newOffset","$39EOa$useLayoutEffect","$2a41e45df1593e64$var$useResize","$39EOa$useResizeObserver","isResizing","timeout","onResize","onScroll","close","$dd149f63282afbbf$export$18fc8428861184da","_position_maxHeight","_position_placement"],"mappings":"mQAqBA,IAAIA,EAAuC,OAAO,SAAa,IAAc,OAAO,eAAiB,KACrG,SAASC,EAA0CC,EAAO,CACtD,GAAI,CAAE,UAAWC,GAAkBC,EAAgB,UAAA,EAC/C,CAAE,UAAWC,EAAY,EAAG,UAAWC,EAAW,WAAYC,EAAY,UAAWC,EAAYD,EAAY,UAAWE,EAAY,SAAU,iBAAkBC,EAAmB,GAAI,WAAYC,EAAa,GAAM,gBAAiBC,EAAkB,OAAO,SAAa,IAAc,SAAS,KAAO,KAAM,OAAQC,EAAS,EAAG,YAAaC,EAAc,EAAG,qBAAsBC,EAAuB,GAAM,OAAQC,EAAS,GAAM,QAASC,EAAS,UAAWC,EAAW,oBAAqBC,EAAsB,CAAC,EAAKjB,EACtgB,CAACkB,EAAUC,CAAW,EAAQC,EAAe,SAAE,IAAI,EACnDC,EAAO,CACPR,EACAN,EACAF,EAAW,QACXD,EAAU,QACVE,EAAU,QACVE,EACAC,EACAC,EACAC,EACAC,EACAE,EACAb,EACAe,EACAC,EACAd,CACR,EAIQmB,EAAgBC,SAAezB,GAAyC,KAA0D,OAASA,EAAqC,KAAK,EACrL0B,EAAgB,UAAE,IAAI,CAClBV,IAAQQ,EAAU,QAAUxB,GAAyC,KAA0D,OAASA,EAAqC,MACzL,EAAO,CACCgB,CACR,CAAK,EACD,IAAIW,EAAqBC,EAAAA,YAAoB,IAAI,CAE7C,GADIb,IAAyB,IAAS,CAACC,GAAU,CAACT,EAAW,SAAW,CAACD,EAAU,SAAW,CAACM,IAC1FZ,GAAyC,KAA0D,OAASA,EAAqC,SAAWwB,EAAU,QAAS,OAKpL,IAAIK,EAAS,KACb,GAAIrB,EAAU,SAAWA,EAAU,QAAQ,SAAS,SAAS,aAAa,EAAG,CACzE,IAAIsB,EACJ,IAAIC,GAAcD,EAA0B,SAAS,iBAAmB,MAAQA,IAA4B,OAAS,OAAS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,SAAU,WACV,OAAQ,IACR,GAAGhC,GAAa,KAA8B,OAASA,EAAS,SAChE,WAAY+B,EAAsB/B,GAAa,KAA8B,OAASA,EAAS,aAAe,MAAQ+B,IAAwB,OAASA,EAAsB,OAChL,CACJ,EACD,WAAYC,EAAsBhC,GAAa,KAA8B,OAASA,EAAS,aAAe,MAAQgC,IAAwB,OAASA,EAAsB,KAC7K,WAAY,CACR,cAAe,OACf,KAAM,eACN,MAAO,CACH,KAAMhC,GAAa,KAA8B,OAASA,EAAS,gBACnE,IAAKA,GAAa,KAA8B,OAASA,EAAS,cACrE,CACJ,EACD,eAAgBO,CACxB,CACA,CACA,SAASgB,EAAgCI,EAAU,CAC3CL,EAAsB,gBAAE,KACxB,OAAO,iBAAiB,SAAUK,EAAU,EAAK,EAC1C,IAAI,CACP,OAAO,oBAAoB,SAAUA,EAAU,EAAK,CAChE,GACO,CACCA,CACR,CAAK,CACL,CACA,SAASR,EAAmCnB,EAAUjB,EAAW,CAC7D,OAAIA,IAAc,MAAciB,EAAS,QAAQ,QAAS,OAAO,EAAE,QAAQ,MAAO,MAAM,EACjFA,EAAS,QAAQ,QAAS,MAAM,EAAE,QAAQ,MAAO,OAAO,CACnE","x_google_ignoreList":[0]}
@@ -1,143 +0,0 @@
1
- import { calculatePosition as D } from "./calculatePosition.es.js";
2
- import { useCloseOnScroll as G } from "./useCloseOnScroll.es.js";
3
- import { useState as J, useRef as U, useEffect as K, useCallback as j } from "react";
4
- import { useLayoutEffect as z, useResizeObserver as k } from "@react-aria/utils";
5
- import { useLocale as M } from "../../i18n/dist/context.es.js";
6
- let e = typeof document < "u" ? window.visualViewport : null;
7
- function ee(n) {
8
- let { direction: y } = M(), { arrowSize: w = 0, targetRef: c, overlayRef: i, scrollRef: s = i, placement: H = "bottom", containerPadding: P = 12, shouldFlip: L = !0, boundaryElement: b = typeof document < "u" ? document.body : null, offset: C = 0, crossOffset: B = 0, shouldUpdatePosition: S = !0, isOpen: v = !0, onClose: p, maxHeight: h, arrowBoundaryOffset: T = 0 } = n, [t, I] = J(null), F = [
9
- S,
10
- H,
11
- i.current,
12
- c.current,
13
- s.current,
14
- P,
15
- L,
16
- b,
17
- C,
18
- B,
19
- v,
20
- y,
21
- h,
22
- T,
23
- w
24
- ], N = U(e == null ? void 0 : e.scale);
25
- K(() => {
26
- v && (N.current = e == null ? void 0 : e.scale);
27
- }, [
28
- v
29
- ]);
30
- let a = j(() => {
31
- if (S === !1 || !v || !i.current || !c.current || !b || (e == null ? void 0 : e.scale) !== N.current) return;
32
- let o = null;
33
- if (s.current && s.current.contains(document.activeElement)) {
34
- var u;
35
- let r = (u = document.activeElement) === null || u === void 0 ? void 0 : u.getBoundingClientRect(), g = s.current.getBoundingClientRect();
36
- var d;
37
- if (o = {
38
- type: "top",
39
- offset: ((d = r == null ? void 0 : r.top) !== null && d !== void 0 ? d : 0) - g.top
40
- }, o.offset > g.height / 2) {
41
- o.type = "bottom";
42
- var R;
43
- o.offset = ((R = r == null ? void 0 : r.bottom) !== null && R !== void 0 ? R : 0) - g.bottom;
44
- }
45
- }
46
- let l = i.current;
47
- if (!h && i.current) {
48
- var O;
49
- l.style.top = "0px", l.style.bottom = "";
50
- var E;
51
- l.style.maxHeight = ((E = (O = window.visualViewport) === null || O === void 0 ? void 0 : O.height) !== null && E !== void 0 ? E : window.innerHeight) + "px";
52
- }
53
- let f = D({
54
- placement: W(H, y),
55
- overlayNode: i.current,
56
- targetNode: c.current,
57
- scrollNode: s.current || i.current,
58
- padding: P,
59
- shouldFlip: L,
60
- boundaryElement: b,
61
- offset: C,
62
- crossOffset: B,
63
- maxHeight: h,
64
- arrowSize: w,
65
- arrowBoundaryOffset: T
66
- });
67
- if (f.position) {
68
- if (l.style.top = "", l.style.bottom = "", l.style.left = "", l.style.right = "", Object.keys(f.position).forEach((r) => l.style[r] = f.position[r] + "px"), l.style.maxHeight = f.maxHeight != null ? f.maxHeight + "px" : "", o && document.activeElement && s.current) {
69
- let r = document.activeElement.getBoundingClientRect(), g = s.current.getBoundingClientRect(), A = r[o.type] - g[o.type];
70
- s.current.scrollTop += A - o.offset;
71
- }
72
- I(f);
73
- }
74
- }, F);
75
- z(a, F), Q(a), k({
76
- ref: i,
77
- onResize: a
78
- }), k({
79
- ref: c,
80
- onResize: a
81
- });
82
- let m = U(!1);
83
- z(() => {
84
- let o, u = () => {
85
- m.current = !0, clearTimeout(o), o = setTimeout(() => {
86
- m.current = !1;
87
- }, 500), a();
88
- }, d = () => {
89
- m.current && u();
90
- };
91
- return e == null || e.addEventListener("resize", u), e == null || e.addEventListener("scroll", d), () => {
92
- e == null || e.removeEventListener("resize", u), e == null || e.removeEventListener("scroll", d);
93
- };
94
- }, [
95
- a
96
- ]);
97
- let q = j(() => {
98
- m.current || p == null || p();
99
- }, [
100
- p,
101
- m
102
- ]);
103
- G({
104
- triggerRef: c,
105
- isOpen: v,
106
- onClose: p && q
107
- });
108
- var $, x;
109
- return {
110
- overlayProps: {
111
- style: {
112
- position: "absolute",
113
- zIndex: 1e5,
114
- ...t == null ? void 0 : t.position,
115
- maxHeight: ($ = t == null ? void 0 : t.maxHeight) !== null && $ !== void 0 ? $ : "100vh"
116
- }
117
- },
118
- placement: (x = t == null ? void 0 : t.placement) !== null && x !== void 0 ? x : null,
119
- arrowProps: {
120
- "aria-hidden": "true",
121
- role: "presentation",
122
- style: {
123
- left: t == null ? void 0 : t.arrowOffsetLeft,
124
- top: t == null ? void 0 : t.arrowOffsetTop
125
- }
126
- },
127
- updatePosition: a
128
- };
129
- }
130
- function Q(n) {
131
- z(() => (window.addEventListener("resize", n, !1), () => {
132
- window.removeEventListener("resize", n, !1);
133
- }), [
134
- n
135
- ]);
136
- }
137
- function W(n, y) {
138
- return y === "rtl" ? n.replace("start", "right").replace("end", "left") : n.replace("start", "left").replace("end", "right");
139
- }
140
- export {
141
- ee as useOverlayPosition
142
- };
143
- //# sourceMappingURL=useOverlayPosition.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useOverlayPosition.es.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/useOverlayPosition.mjs"],"sourcesContent":["import {calculatePosition as $edcf132a9284368a$export$b3ceb0cbf1056d98} from \"./calculatePosition.mjs\";\nimport {useCloseOnScroll as $dd149f63282afbbf$export$18fc8428861184da} from \"./useCloseOnScroll.mjs\";\nimport {useState as $39EOa$useState, useRef as $39EOa$useRef, useEffect as $39EOa$useEffect, useCallback as $39EOa$useCallback} from \"react\";\nimport {useLayoutEffect as $39EOa$useLayoutEffect, useResizeObserver as $39EOa$useResizeObserver} from \"@react-aria/utils\";\nimport {useLocale as $39EOa$useLocale} from \"@react-aria/i18n\";\n\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\n\n\n\nlet $2a41e45df1593e64$var$visualViewport = typeof document !== 'undefined' ? window.visualViewport : null;\nfunction $2a41e45df1593e64$export$d39e1813b3bdd0e1(props) {\n let { direction: direction } = (0, $39EOa$useLocale)();\n let { arrowSize: arrowSize = 0, targetRef: targetRef, overlayRef: overlayRef, scrollRef: scrollRef = overlayRef, placement: placement = 'bottom', containerPadding: containerPadding = 12, shouldFlip: shouldFlip = true, boundaryElement: boundaryElement = typeof document !== 'undefined' ? document.body : null, offset: offset = 0, crossOffset: crossOffset = 0, shouldUpdatePosition: shouldUpdatePosition = true, isOpen: isOpen = true, onClose: onClose, maxHeight: maxHeight, arrowBoundaryOffset: arrowBoundaryOffset = 0 } = props;\n let [position, setPosition] = (0, $39EOa$useState)(null);\n let deps = [\n shouldUpdatePosition,\n placement,\n overlayRef.current,\n targetRef.current,\n scrollRef.current,\n containerPadding,\n shouldFlip,\n boundaryElement,\n offset,\n crossOffset,\n isOpen,\n direction,\n maxHeight,\n arrowBoundaryOffset,\n arrowSize\n ];\n // Note, the position freezing breaks if body sizes itself dynamicly with the visual viewport but that might\n // just be a non-realistic use case\n // Upon opening a overlay, record the current visual viewport scale so we can freeze the overlay styles\n let lastScale = (0, $39EOa$useRef)($2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.scale);\n (0, $39EOa$useEffect)(()=>{\n if (isOpen) lastScale.current = $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.scale;\n }, [\n isOpen\n ]);\n let updatePosition = (0, $39EOa$useCallback)(()=>{\n if (shouldUpdatePosition === false || !isOpen || !overlayRef.current || !targetRef.current || !boundaryElement) return;\n if (($2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.scale) !== lastScale.current) return;\n // Determine a scroll anchor based on the focused element.\n // This stores the offset of the anchor element from the scroll container\n // so it can be restored after repositioning. This way if the overlay height\n // changes, the focused element appears to stay in the same position.\n let anchor = null;\n if (scrollRef.current && scrollRef.current.contains(document.activeElement)) {\n var _document_activeElement;\n let anchorRect = (_document_activeElement = document.activeElement) === null || _document_activeElement === void 0 ? void 0 : _document_activeElement.getBoundingClientRect();\n let scrollRect = scrollRef.current.getBoundingClientRect();\n var _anchorRect_top;\n // Anchor from the top if the offset is in the top half of the scrollable element,\n // otherwise anchor from the bottom.\n anchor = {\n type: 'top',\n offset: ((_anchorRect_top = anchorRect === null || anchorRect === void 0 ? void 0 : anchorRect.top) !== null && _anchorRect_top !== void 0 ? _anchorRect_top : 0) - scrollRect.top\n };\n if (anchor.offset > scrollRect.height / 2) {\n anchor.type = 'bottom';\n var _anchorRect_bottom;\n anchor.offset = ((_anchorRect_bottom = anchorRect === null || anchorRect === void 0 ? void 0 : anchorRect.bottom) !== null && _anchorRect_bottom !== void 0 ? _anchorRect_bottom : 0) - scrollRect.bottom;\n }\n }\n // Always reset the overlay's previous max height if not defined by the user so that we can compensate for\n // RAC collections populating after a second render and properly set a correct max height + positioning when it populates.\n let overlay = overlayRef.current;\n if (!maxHeight && overlayRef.current) {\n var _window_visualViewport;\n overlay.style.top = '0px';\n overlay.style.bottom = '';\n var _window_visualViewport_height;\n overlay.style.maxHeight = ((_window_visualViewport_height = (_window_visualViewport = window.visualViewport) === null || _window_visualViewport === void 0 ? void 0 : _window_visualViewport.height) !== null && _window_visualViewport_height !== void 0 ? _window_visualViewport_height : window.innerHeight) + 'px';\n }\n let position = (0, $edcf132a9284368a$export$b3ceb0cbf1056d98)({\n placement: $2a41e45df1593e64$var$translateRTL(placement, direction),\n overlayNode: overlayRef.current,\n targetNode: targetRef.current,\n scrollNode: scrollRef.current || overlayRef.current,\n padding: containerPadding,\n shouldFlip: shouldFlip,\n boundaryElement: boundaryElement,\n offset: offset,\n crossOffset: crossOffset,\n maxHeight: maxHeight,\n arrowSize: arrowSize,\n arrowBoundaryOffset: arrowBoundaryOffset\n });\n if (!position.position) return;\n // Modify overlay styles directly so positioning happens immediately without the need of a second render\n // This is so we don't have to delay autoFocus scrolling or delay applying preventScroll for popovers\n overlay.style.top = '';\n overlay.style.bottom = '';\n overlay.style.left = '';\n overlay.style.right = '';\n Object.keys(position.position).forEach((key)=>overlay.style[key] = position.position[key] + 'px');\n overlay.style.maxHeight = position.maxHeight != null ? position.maxHeight + 'px' : '';\n // Restore scroll position relative to anchor element.\n if (anchor && document.activeElement && scrollRef.current) {\n let anchorRect = document.activeElement.getBoundingClientRect();\n let scrollRect = scrollRef.current.getBoundingClientRect();\n let newOffset = anchorRect[anchor.type] - scrollRect[anchor.type];\n scrollRef.current.scrollTop += newOffset - anchor.offset;\n }\n // Trigger a set state for a second render anyway for arrow positioning\n setPosition(position);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n // Update position when anything changes\n // eslint-disable-next-line react-hooks/exhaustive-deps\n (0, $39EOa$useLayoutEffect)(updatePosition, deps);\n // Update position on window resize\n $2a41e45df1593e64$var$useResize(updatePosition);\n // Update position when the overlay changes size (might need to flip).\n (0, $39EOa$useResizeObserver)({\n ref: overlayRef,\n onResize: updatePosition\n });\n // Update position when the target changes size (might need to flip).\n (0, $39EOa$useResizeObserver)({\n ref: targetRef,\n onResize: updatePosition\n });\n // Reposition the overlay and do not close on scroll while the visual viewport is resizing.\n // This will ensure that overlays adjust their positioning when the iOS virtual keyboard appears.\n let isResizing = (0, $39EOa$useRef)(false);\n (0, $39EOa$useLayoutEffect)(()=>{\n let timeout;\n let onResize = ()=>{\n isResizing.current = true;\n clearTimeout(timeout);\n timeout = setTimeout(()=>{\n isResizing.current = false;\n }, 500);\n updatePosition();\n };\n // Only reposition the overlay if a scroll event happens immediately as a result of resize (aka the virtual keyboard has appears)\n // We don't want to reposition the overlay if the user has pinch zoomed in and is scrolling the viewport around.\n let onScroll = ()=>{\n if (isResizing.current) onResize();\n };\n $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.addEventListener('resize', onResize);\n $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.addEventListener('scroll', onScroll);\n return ()=>{\n $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.removeEventListener('resize', onResize);\n $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.removeEventListener('scroll', onScroll);\n };\n }, [\n updatePosition\n ]);\n let close = (0, $39EOa$useCallback)(()=>{\n if (!isResizing.current) onClose === null || onClose === void 0 ? void 0 : onClose();\n }, [\n onClose,\n isResizing\n ]);\n // When scrolling a parent scrollable region of the trigger (other than the body),\n // we hide the popover. Otherwise, its position would be incorrect.\n (0, $dd149f63282afbbf$export$18fc8428861184da)({\n triggerRef: targetRef,\n isOpen: isOpen,\n onClose: onClose && close\n });\n var _position_maxHeight, _position_placement;\n return {\n overlayProps: {\n style: {\n position: 'absolute',\n zIndex: 100000,\n ...position === null || position === void 0 ? void 0 : position.position,\n maxHeight: (_position_maxHeight = position === null || position === void 0 ? void 0 : position.maxHeight) !== null && _position_maxHeight !== void 0 ? _position_maxHeight : '100vh'\n }\n },\n placement: (_position_placement = position === null || position === void 0 ? void 0 : position.placement) !== null && _position_placement !== void 0 ? _position_placement : null,\n arrowProps: {\n 'aria-hidden': 'true',\n role: 'presentation',\n style: {\n left: position === null || position === void 0 ? void 0 : position.arrowOffsetLeft,\n top: position === null || position === void 0 ? void 0 : position.arrowOffsetTop\n }\n },\n updatePosition: updatePosition\n };\n}\nfunction $2a41e45df1593e64$var$useResize(onResize) {\n (0, $39EOa$useLayoutEffect)(()=>{\n window.addEventListener('resize', onResize, false);\n return ()=>{\n window.removeEventListener('resize', onResize, false);\n };\n }, [\n onResize\n ]);\n}\nfunction $2a41e45df1593e64$var$translateRTL(position, direction) {\n if (direction === 'rtl') return position.replace('start', 'right').replace('end', 'left');\n return position.replace('start', 'left').replace('end', 'right');\n}\n\n\nexport {$2a41e45df1593e64$export$d39e1813b3bdd0e1 as useOverlayPosition};\n//# sourceMappingURL=useOverlayPosition.module.js.map\n"],"names":["$2a41e45df1593e64$var$visualViewport","$2a41e45df1593e64$export$d39e1813b3bdd0e1","props","direction","$39EOa$useLocale","arrowSize","targetRef","overlayRef","scrollRef","placement","containerPadding","shouldFlip","boundaryElement","offset","crossOffset","shouldUpdatePosition","isOpen","onClose","maxHeight","arrowBoundaryOffset","position","setPosition","$39EOa$useState","deps","lastScale","$39EOa$useRef","$39EOa$useEffect","updatePosition","$39EOa$useCallback","anchor","_document_activeElement","anchorRect","scrollRect","_anchorRect_top","_anchorRect_bottom","overlay","_window_visualViewport","_window_visualViewport_height","$edcf132a9284368a$export$b3ceb0cbf1056d98","$2a41e45df1593e64$var$translateRTL","key","newOffset","$39EOa$useLayoutEffect","$2a41e45df1593e64$var$useResize","$39EOa$useResizeObserver","isResizing","timeout","onResize","onScroll","close","$dd149f63282afbbf$export$18fc8428861184da","_position_maxHeight","_position_placement"],"mappings":";;;;;AAqBA,IAAIA,IAAuC,OAAO,WAAa,MAAc,OAAO,iBAAiB;AACrG,SAASC,GAA0CC,GAAO;AACtD,MAAI,EAAE,WAAWC,MAAkBC,EAAgB,GAC/C,EAAE,WAAWC,IAAY,GAAG,WAAWC,GAAW,YAAYC,GAAY,WAAWC,IAAYD,GAAY,WAAWE,IAAY,UAAU,kBAAkBC,IAAmB,IAAI,YAAYC,IAAa,IAAM,iBAAiBC,IAAkB,OAAO,WAAa,MAAc,SAAS,OAAO,MAAM,QAAQC,IAAS,GAAG,aAAaC,IAAc,GAAG,sBAAsBC,IAAuB,IAAM,QAAQC,IAAS,IAAM,SAASC,GAAS,WAAWC,GAAW,qBAAqBC,IAAsB,EAAC,IAAKjB,GACtgB,CAACkB,GAAUC,CAAW,IAAQC,EAAiB,IAAI,GACnDC,IAAO;AAAA,IACPR;AAAA,IACAN;AAAA,IACAF,EAAW;AAAA,IACXD,EAAU;AAAA,IACVE,EAAU;AAAA,IACVE;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAE;AAAA,IACAb;AAAA,IACAe;AAAA,IACAC;AAAA,IACAd;AAAA,EACR,GAIQmB,IAAgBC,EAAezB,KAAyC,OAA0D,SAASA,EAAqC,KAAK;AACzL,EAAI0B,EAAkB,MAAI;AACtB,IAAIV,MAAQQ,EAAU,UAAUxB,KAAyC,OAA0D,SAASA,EAAqC;AAAA,EACzL,GAAO;AAAA,IACCgB;AAAA,EACR,CAAK;AACD,MAAIW,IAAqBC,EAAoB,MAAI;AAE7C,QADIb,MAAyB,MAAS,CAACC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AK;AAAA,EAChE,IACO;AAAA,IACCA;AAAA,EACR,CAAK;AACL;AACA,SAASR,EAAmCnB,GAAUjB,GAAW;AAC7D,SAAIA,MAAc,QAAciB,EAAS,QAAQ,SAAS,OAAO,EAAE,QAAQ,OAAO,MAAM,IACjFA,EAAS,QAAQ,SAAS,MAAM,EAAE,QAAQ,OAAO,OAAO;AACnE;","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./useCloseOnScroll.cjs.js"),u=require("react"),a=require("@react-aria/utils");function d(n,e,r){let{type:t}=n,{isOpen:i}=e;u.useEffect(()=>{r&&r.current&&l.onCloseMap.set(r.current,e.close)});let o;t==="menu"?o=!0:t==="listbox"&&(o="listbox");let s=a.useId();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?s:void 0,onPress:e.toggle},overlayProps:{id:s}}}exports.useOverlayTrigger=d;
2
- //# sourceMappingURL=useOverlayTrigger.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useOverlayTrigger.cjs.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/useOverlayTrigger.mjs"],"sourcesContent":["import {onCloseMap as $dd149f63282afbbf$export$f6211563215e3b37} from \"./useCloseOnScroll.mjs\";\nimport {useEffect as $gMvIk$useEffect} from \"react\";\nimport {useId as $gMvIk$useId} from \"@react-aria/utils\";\n\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\n\nfunction $628037886ba31236$export$f9d5c8beee7d008d(props, state, ref) {\n let { type: type } = props;\n let { isOpen: isOpen } = state;\n // Backward compatibility. Share state close function with useOverlayPosition so it can close on scroll\n // without forcing users to pass onClose.\n (0, $gMvIk$useEffect)(()=>{\n if (ref && ref.current) (0, $dd149f63282afbbf$export$f6211563215e3b37).set(ref.current, state.close);\n });\n // Aria 1.1 supports multiple values for aria-haspopup other than just menus.\n // https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup\n // However, we only add it for menus for now because screen readers often\n // announce it as a menu even for other values.\n let ariaHasPopup = undefined;\n if (type === 'menu') ariaHasPopup = true;\n else if (type === 'listbox') ariaHasPopup = 'listbox';\n let overlayId = (0, $gMvIk$useId)();\n return {\n triggerProps: {\n 'aria-haspopup': ariaHasPopup,\n 'aria-expanded': isOpen,\n 'aria-controls': isOpen ? overlayId : undefined,\n onPress: state.toggle\n },\n overlayProps: {\n id: overlayId\n }\n };\n}\n\n\nexport {$628037886ba31236$export$f9d5c8beee7d008d as useOverlayTrigger};\n//# sourceMappingURL=useOverlayTrigger.module.js.map\n"],"names":["$628037886ba31236$export$f9d5c8beee7d008d","props","state","ref","type","isOpen","$gMvIk$useEffect","$dd149f63282afbbf$export$f6211563215e3b37","ariaHasPopup","overlayId","$gMvIk$useId"],"mappings":"+KAiBA,SAASA,EAA0CC,EAAOC,EAAOC,EAAK,CAClE,GAAI,CAAE,KAAMC,CAAM,EAAGH,EACjB,CAAE,OAAQI,CAAQ,EAAGH,EAGrBI,EAAgB,UAAE,IAAI,CAClBH,GAAOA,EAAI,SAAaI,EAAyC,WAAE,IAAIJ,EAAI,QAASD,EAAM,KAAK,CAC3G,CAAK,EAKD,IAAIM,EACAJ,IAAS,OAAQI,EAAe,GAC3BJ,IAAS,YAAWI,EAAe,WAC5C,IAAIC,EAAgBC,EAAAA,QACpB,MAAO,CACH,aAAc,CACV,gBAAiBF,EACjB,gBAAiBH,EACjB,gBAAiBA,EAASI,EAAY,OACtC,QAASP,EAAM,MAClB,EACD,aAAc,CACV,GAAIO,CACP,CACT,CACA","x_google_ignoreList":[0]}
@@ -1,27 +0,0 @@
1
- import { onCloseMap as a } from "./useCloseOnScroll.es.js";
2
- import { useEffect as n } from "react";
3
- import { useId as d } from "@react-aria/utils";
4
- function b(s, e, r) {
5
- let { type: i } = s, { isOpen: t } = e;
6
- n(() => {
7
- r && r.current && a.set(r.current, e.close);
8
- });
9
- let o;
10
- i === "menu" ? o = !0 : i === "listbox" && (o = "listbox");
11
- let p = d();
12
- return {
13
- triggerProps: {
14
- "aria-haspopup": o,
15
- "aria-expanded": t,
16
- "aria-controls": t ? p : void 0,
17
- onPress: e.toggle
18
- },
19
- overlayProps: {
20
- id: p
21
- }
22
- };
23
- }
24
- export {
25
- b as useOverlayTrigger
26
- };
27
- //# sourceMappingURL=useOverlayTrigger.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useOverlayTrigger.es.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/useOverlayTrigger.mjs"],"sourcesContent":["import {onCloseMap as $dd149f63282afbbf$export$f6211563215e3b37} from \"./useCloseOnScroll.mjs\";\nimport {useEffect as $gMvIk$useEffect} from \"react\";\nimport {useId as $gMvIk$useId} from \"@react-aria/utils\";\n\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\n\nfunction $628037886ba31236$export$f9d5c8beee7d008d(props, state, ref) {\n let { type: type } = props;\n let { isOpen: isOpen } = state;\n // Backward compatibility. Share state close function with useOverlayPosition so it can close on scroll\n // without forcing users to pass onClose.\n (0, $gMvIk$useEffect)(()=>{\n if (ref && ref.current) (0, $dd149f63282afbbf$export$f6211563215e3b37).set(ref.current, state.close);\n });\n // Aria 1.1 supports multiple values for aria-haspopup other than just menus.\n // https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup\n // However, we only add it for menus for now because screen readers often\n // announce it as a menu even for other values.\n let ariaHasPopup = undefined;\n if (type === 'menu') ariaHasPopup = true;\n else if (type === 'listbox') ariaHasPopup = 'listbox';\n let overlayId = (0, $gMvIk$useId)();\n return {\n triggerProps: {\n 'aria-haspopup': ariaHasPopup,\n 'aria-expanded': isOpen,\n 'aria-controls': isOpen ? overlayId : undefined,\n onPress: state.toggle\n },\n overlayProps: {\n id: overlayId\n }\n };\n}\n\n\nexport {$628037886ba31236$export$f9d5c8beee7d008d as useOverlayTrigger};\n//# sourceMappingURL=useOverlayTrigger.module.js.map\n"],"names":["$628037886ba31236$export$f9d5c8beee7d008d","props","state","ref","type","isOpen","$gMvIk$useEffect","$dd149f63282afbbf$export$f6211563215e3b37","ariaHasPopup","overlayId","$gMvIk$useId"],"mappings":";;;AAiBA,SAASA,EAA0CC,GAAOC,GAAOC,GAAK;AAClE,MAAI,EAAE,MAAMC,EAAM,IAAGH,GACjB,EAAE,QAAQI,EAAQ,IAAGH;AAGzB,EAAII,EAAkB,MAAI;AACtB,IAAIH,KAAOA,EAAI,WAAaI,EAA2C,IAAIJ,EAAI,SAASD,EAAM,KAAK;AAAA,EAC3G,CAAK;AAKD,MAAIM;AACJ,EAAIJ,MAAS,SAAQI,IAAe,KAC3BJ,MAAS,cAAWI,IAAe;AAC5C,MAAIC,IAAgBC;AACpB,SAAO;AAAA,IACH,cAAc;AAAA,MACV,iBAAiBF;AAAA,MACjB,iBAAiBH;AAAA,MACjB,iBAAiBA,IAASI,IAAY;AAAA,MACtC,SAASP,EAAM;AAAA,IAClB;AAAA,IACD,cAAc;AAAA,MACV,IAAIO;AAAA,IACP;AAAA,EACT;AACA;","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./ariaHideOutside.cjs.js"),m=require("./useOverlayPosition.cjs.js"),g=require("./useOverlay.cjs.js"),D=require("./usePreventScroll.cjs.js"),a=require("@react-aria/utils");function C(d,r){let{triggerRef:p,popoverRef:s,groupRef:e,isNonModal:o,isKeyboardDismissDisabled:v,shouldCloseOnInteractOutside:c,...n}=d,u=n.trigger==="SubmenuTrigger",{overlayProps:O,underlayProps:P}=g.useOverlay({isOpen:r.isOpen,onClose:r.close,shouldCloseOnBlur:!0,isDismissable:!o||u,isKeyboardDismissDisabled:v,shouldCloseOnInteractOutside:c},e??s),{overlayProps:y,arrowProps:b,placement:f}=m.useOverlayPosition({...n,targetRef:p,overlayRef:s,isOpen:r.isOpen,onClose:o&&!u?r.close:null});return D.usePreventScroll({isDisabled:o||!r.isOpen}),a.useLayoutEffect(()=>{if(r.isOpen&&s.current){var i,l;return o?t.keepVisible((i=e==null?void 0:e.current)!==null&&i!==void 0?i:s.current):t.ariaHideOutside([(l=e==null?void 0:e.current)!==null&&l!==void 0?l:s.current])}},[o,r.isOpen,s,e]),{popoverProps:a.mergeProps(O,y),arrowProps:b,underlayProps:P,placement:f}}exports.usePopover=C;
2
- //# sourceMappingURL=usePopover.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usePopover.cjs.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/usePopover.mjs"],"sourcesContent":["import {ariaHideOutside as $5e3802645cc19319$export$1c3ebcada18427bf, keepVisible as $5e3802645cc19319$export$1020fa7f77e17884} from \"./ariaHideOutside.mjs\";\nimport {useOverlayPosition as $2a41e45df1593e64$export$d39e1813b3bdd0e1} from \"./useOverlayPosition.mjs\";\nimport {useOverlay as $a11501f3d1d39e6c$export$ea8f71083e90600f} from \"./useOverlay.mjs\";\nimport {usePreventScroll as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18} from \"./usePreventScroll.mjs\";\nimport {useLayoutEffect as $m0yab$useLayoutEffect, mergeProps as $m0yab$mergeProps} from \"@react-aria/utils\";\n\n/*\n * Copyright 2022 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\n\n\n\nfunction $f2f8a6077418541e$export$542a6fd13ac93354(props, state) {\n let { triggerRef: triggerRef, popoverRef: popoverRef, groupRef: groupRef, isNonModal: isNonModal, isKeyboardDismissDisabled: isKeyboardDismissDisabled, shouldCloseOnInteractOutside: shouldCloseOnInteractOutside, ...otherProps } = props;\n let isSubmenu = otherProps['trigger'] === 'SubmenuTrigger';\n let { overlayProps: overlayProps, underlayProps: underlayProps } = (0, $a11501f3d1d39e6c$export$ea8f71083e90600f)({\n isOpen: state.isOpen,\n onClose: state.close,\n shouldCloseOnBlur: true,\n isDismissable: !isNonModal || isSubmenu,\n isKeyboardDismissDisabled: isKeyboardDismissDisabled,\n shouldCloseOnInteractOutside: shouldCloseOnInteractOutside\n }, groupRef !== null && groupRef !== void 0 ? groupRef : popoverRef);\n let { overlayProps: positionProps, arrowProps: arrowProps, placement: placement } = (0, $2a41e45df1593e64$export$d39e1813b3bdd0e1)({\n ...otherProps,\n targetRef: triggerRef,\n overlayRef: popoverRef,\n isOpen: state.isOpen,\n onClose: isNonModal && !isSubmenu ? state.close : null\n });\n (0, $49c51c25361d4cd2$export$ee0f7cc6afcd1c18)({\n isDisabled: isNonModal || !state.isOpen\n });\n (0, $m0yab$useLayoutEffect)(()=>{\n if (state.isOpen && popoverRef.current) {\n var _groupRef_current, _groupRef_current1;\n if (isNonModal) return (0, $5e3802645cc19319$export$1020fa7f77e17884)((_groupRef_current = groupRef === null || groupRef === void 0 ? void 0 : groupRef.current) !== null && _groupRef_current !== void 0 ? _groupRef_current : popoverRef.current);\n else return (0, $5e3802645cc19319$export$1c3ebcada18427bf)([\n (_groupRef_current1 = groupRef === null || groupRef === void 0 ? void 0 : groupRef.current) !== null && _groupRef_current1 !== void 0 ? _groupRef_current1 : popoverRef.current\n ]);\n }\n }, [\n isNonModal,\n state.isOpen,\n popoverRef,\n groupRef\n ]);\n return {\n popoverProps: (0, $m0yab$mergeProps)(overlayProps, positionProps),\n arrowProps: arrowProps,\n underlayProps: underlayProps,\n placement: placement\n };\n}\n\n\nexport {$f2f8a6077418541e$export$542a6fd13ac93354 as usePopover};\n//# sourceMappingURL=usePopover.module.js.map\n"],"names":["$f2f8a6077418541e$export$542a6fd13ac93354","props","state","triggerRef","popoverRef","groupRef","isNonModal","isKeyboardDismissDisabled","shouldCloseOnInteractOutside","otherProps","isSubmenu","overlayProps","underlayProps","$a11501f3d1d39e6c$export$ea8f71083e90600f","positionProps","arrowProps","placement","$2a41e45df1593e64$export$d39e1813b3bdd0e1","$49c51c25361d4cd2$export$ee0f7cc6afcd1c18","$m0yab$useLayoutEffect","_groupRef_current","_groupRef_current1","$5e3802645cc19319$export$1020fa7f77e17884","$5e3802645cc19319$export$1c3ebcada18427bf","$m0yab$mergeProps"],"mappings":"4QAqBA,SAASA,EAA0CC,EAAOC,EAAO,CAC7D,GAAI,CAAE,WAAYC,EAAY,WAAYC,EAAY,SAAUC,EAAU,WAAYC,EAAY,0BAA2BC,EAA2B,6BAA8BC,EAA8B,GAAGC,CAAY,EAAGR,EAClOS,EAAYD,EAAW,UAAe,iBACtC,CAAE,aAAcE,EAAc,cAAeC,CAAa,EAASC,aAA2C,CAC9G,OAAQX,EAAM,OACd,QAASA,EAAM,MACf,kBAAmB,GACnB,cAAe,CAACI,GAAcI,EAC9B,0BAA2BH,EAC3B,6BAA8BC,CACtC,EAAOH,GAAsDD,CAAU,EAC/D,CAAE,aAAcU,EAAe,WAAYC,EAAY,UAAWC,GAAkBC,qBAA2C,CAC/H,GAAGR,EACH,UAAWN,EACX,WAAYC,EACZ,OAAQF,EAAM,OACd,QAASI,GAAc,CAACI,EAAYR,EAAM,MAAQ,IAC1D,CAAK,EACD,OAAIgB,mBAA2C,CAC3C,WAAYZ,GAAc,CAACJ,EAAM,MACzC,CAAK,EACGiB,EAAsB,gBAAE,IAAI,CAC5B,GAAIjB,EAAM,QAAUE,EAAW,QAAS,CACpC,IAAIgB,EAAmBC,EACvB,OAAIf,EAAuBgB,eAA4CF,EAAoBf,GAAa,KAA8B,OAASA,EAAS,WAAa,MAAQe,IAAsB,OAASA,EAAoBhB,EAAW,OAAO,EAClOmB,EAAAA,gBAA2C,EACtDF,EAAqBhB,GAAa,KAA8B,OAASA,EAAS,WAAa,MAAQgB,IAAuB,OAASA,EAAqBjB,EAAW,OACxL,CAAa,CACJ,CACT,EAAO,CACCE,EACAJ,EAAM,OACNE,EACAC,CACR,CAAK,EACM,CACH,aAAkBmB,EAAAA,WAAmBb,EAAcG,CAAa,EAChE,WAAYC,EACZ,cAAeH,EACf,UAAWI,CACnB,CACA","x_google_ignoreList":[0]}
@@ -1,45 +0,0 @@
1
- import { keepVisible as O, ariaHideOutside as P } from "./ariaHideOutside.es.js";
2
- import { useOverlayPosition as b } from "./useOverlayPosition.es.js";
3
- import { useOverlay as y } from "./useOverlay.es.js";
4
- import { usePreventScroll as g } from "./usePreventScroll.es.js";
5
- import { useLayoutEffect as D, mergeProps as x } from "@react-aria/utils";
6
- function K(n, o) {
7
- let { triggerRef: d, popoverRef: r, groupRef: e, isNonModal: s, isKeyboardDismissDisabled: t, shouldCloseOnInteractOutside: u, ...a } = n, p = a.trigger === "SubmenuTrigger", { overlayProps: c, underlayProps: f } = y({
8
- isOpen: o.isOpen,
9
- onClose: o.close,
10
- shouldCloseOnBlur: !0,
11
- isDismissable: !s || p,
12
- isKeyboardDismissDisabled: t,
13
- shouldCloseOnInteractOutside: u
14
- }, e ?? r), { overlayProps: m, arrowProps: v, placement: $ } = b({
15
- ...a,
16
- targetRef: d,
17
- overlayRef: r,
18
- isOpen: o.isOpen,
19
- onClose: s && !p ? o.close : null
20
- });
21
- return g({
22
- isDisabled: s || !o.isOpen
23
- }), D(() => {
24
- if (o.isOpen && r.current) {
25
- var i, l;
26
- return s ? O((i = e == null ? void 0 : e.current) !== null && i !== void 0 ? i : r.current) : P([
27
- (l = e == null ? void 0 : e.current) !== null && l !== void 0 ? l : r.current
28
- ]);
29
- }
30
- }, [
31
- s,
32
- o.isOpen,
33
- r,
34
- e
35
- ]), {
36
- popoverProps: x(c, m),
37
- arrowProps: v,
38
- underlayProps: f,
39
- placement: $
40
- };
41
- }
42
- export {
43
- K as usePopover
44
- };
45
- //# sourceMappingURL=usePopover.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usePopover.es.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/usePopover.mjs"],"sourcesContent":["import {ariaHideOutside as $5e3802645cc19319$export$1c3ebcada18427bf, keepVisible as $5e3802645cc19319$export$1020fa7f77e17884} from \"./ariaHideOutside.mjs\";\nimport {useOverlayPosition as $2a41e45df1593e64$export$d39e1813b3bdd0e1} from \"./useOverlayPosition.mjs\";\nimport {useOverlay as $a11501f3d1d39e6c$export$ea8f71083e90600f} from \"./useOverlay.mjs\";\nimport {usePreventScroll as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18} from \"./usePreventScroll.mjs\";\nimport {useLayoutEffect as $m0yab$useLayoutEffect, mergeProps as $m0yab$mergeProps} from \"@react-aria/utils\";\n\n/*\n * Copyright 2022 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\n\n\n\nfunction $f2f8a6077418541e$export$542a6fd13ac93354(props, state) {\n let { triggerRef: triggerRef, popoverRef: popoverRef, groupRef: groupRef, isNonModal: isNonModal, isKeyboardDismissDisabled: isKeyboardDismissDisabled, shouldCloseOnInteractOutside: shouldCloseOnInteractOutside, ...otherProps } = props;\n let isSubmenu = otherProps['trigger'] === 'SubmenuTrigger';\n let { overlayProps: overlayProps, underlayProps: underlayProps } = (0, $a11501f3d1d39e6c$export$ea8f71083e90600f)({\n isOpen: state.isOpen,\n onClose: state.close,\n shouldCloseOnBlur: true,\n isDismissable: !isNonModal || isSubmenu,\n isKeyboardDismissDisabled: isKeyboardDismissDisabled,\n shouldCloseOnInteractOutside: shouldCloseOnInteractOutside\n }, groupRef !== null && groupRef !== void 0 ? groupRef : popoverRef);\n let { overlayProps: positionProps, arrowProps: arrowProps, placement: placement } = (0, $2a41e45df1593e64$export$d39e1813b3bdd0e1)({\n ...otherProps,\n targetRef: triggerRef,\n overlayRef: popoverRef,\n isOpen: state.isOpen,\n onClose: isNonModal && !isSubmenu ? state.close : null\n });\n (0, $49c51c25361d4cd2$export$ee0f7cc6afcd1c18)({\n isDisabled: isNonModal || !state.isOpen\n });\n (0, $m0yab$useLayoutEffect)(()=>{\n if (state.isOpen && popoverRef.current) {\n var _groupRef_current, _groupRef_current1;\n if (isNonModal) return (0, $5e3802645cc19319$export$1020fa7f77e17884)((_groupRef_current = groupRef === null || groupRef === void 0 ? void 0 : groupRef.current) !== null && _groupRef_current !== void 0 ? _groupRef_current : popoverRef.current);\n else return (0, $5e3802645cc19319$export$1c3ebcada18427bf)([\n (_groupRef_current1 = groupRef === null || groupRef === void 0 ? void 0 : groupRef.current) !== null && _groupRef_current1 !== void 0 ? _groupRef_current1 : popoverRef.current\n ]);\n }\n }, [\n isNonModal,\n state.isOpen,\n popoverRef,\n groupRef\n ]);\n return {\n popoverProps: (0, $m0yab$mergeProps)(overlayProps, positionProps),\n arrowProps: arrowProps,\n underlayProps: underlayProps,\n placement: placement\n };\n}\n\n\nexport {$f2f8a6077418541e$export$542a6fd13ac93354 as usePopover};\n//# sourceMappingURL=usePopover.module.js.map\n"],"names":["$f2f8a6077418541e$export$542a6fd13ac93354","props","state","triggerRef","popoverRef","groupRef","isNonModal","isKeyboardDismissDisabled","shouldCloseOnInteractOutside","otherProps","isSubmenu","overlayProps","underlayProps","$a11501f3d1d39e6c$export$ea8f71083e90600f","positionProps","arrowProps","placement","$2a41e45df1593e64$export$d39e1813b3bdd0e1","$49c51c25361d4cd2$export$ee0f7cc6afcd1c18","$m0yab$useLayoutEffect","_groupRef_current","_groupRef_current1","$5e3802645cc19319$export$1020fa7f77e17884","$5e3802645cc19319$export$1c3ebcada18427bf","$m0yab$mergeProps"],"mappings":";;;;;AAqBA,SAASA,EAA0CC,GAAOC,GAAO;AAC7D,MAAI,EAAE,YAAYC,GAAY,YAAYC,GAAY,UAAUC,GAAU,YAAYC,GAAY,2BAA2BC,GAA2B,8BAA8BC,GAA8B,GAAGC,EAAY,IAAGR,GAClOS,IAAYD,EAAW,YAAe,kBACtC,EAAE,cAAcE,GAAc,eAAeC,EAAa,IAASC,EAA2C;AAAA,IAC9G,QAAQX,EAAM;AAAA,IACd,SAASA,EAAM;AAAA,IACf,mBAAmB;AAAA,IACnB,eAAe,CAACI,KAAcI;AAAA,IAC9B,2BAA2BH;AAAA,IAC3B,8BAA8BC;AAAA,EACtC,GAAOH,KAAsDD,CAAU,GAC/D,EAAE,cAAcU,GAAe,YAAYC,GAAY,WAAWC,MAAkBC,EAA2C;AAAA,IAC/H,GAAGR;AAAA,IACH,WAAWN;AAAA,IACX,YAAYC;AAAA,IACZ,QAAQF,EAAM;AAAA,IACd,SAASI,KAAc,CAACI,IAAYR,EAAM,QAAQ;AAAA,EAC1D,CAAK;AACD,SAAIgB,EAA2C;AAAA,IAC3C,YAAYZ,KAAc,CAACJ,EAAM;AAAA,EACzC,CAAK,GACGiB,EAAwB,MAAI;AAC5B,QAAIjB,EAAM,UAAUE,EAAW,SAAS;AACpC,UAAIgB,GAAmBC;AACvB,aAAIf,IAAuBgB,GAA4CF,IAAoBf,KAAa,OAA8B,SAASA,EAAS,aAAa,QAAQe,MAAsB,SAASA,IAAoBhB,EAAW,OAAO,IAClOmB,EAA2C;AAAA,SACtDF,IAAqBhB,KAAa,OAA8B,SAASA,EAAS,aAAa,QAAQgB,MAAuB,SAASA,IAAqBjB,EAAW;AAAA,MACxL,CAAa;AAAA,IACJ;AAAA,EACT,GAAO;AAAA,IACCE;AAAA,IACAJ,EAAM;AAAA,IACNE;AAAA,IACAC;AAAA,EACR,CAAK,GACM;AAAA,IACH,cAAkBmB,EAAmBb,GAAcG,CAAa;AAAA,IAChE,YAAYC;AAAA,IACZ,eAAeH;AAAA,IACf,WAAWI;AAAA,EACnB;AACA;","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});exports.default={};exports.default={dismiss:"取消"};
2
- //# sourceMappingURL=zh-CN.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zh-CN.cjs.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/zh-CN.mjs"],"sourcesContent":["var $d80a27deda7cdb3c$exports = {};\n$d80a27deda7cdb3c$exports = {\n \"dismiss\": `\\u{53D6}\\u{6D88}`\n};\n\n\nexport {$d80a27deda7cdb3c$exports as default};\n//# sourceMappingURL=zh-CN.module.js.map\n"],"names":["$d80a27deda7cdb3c$exports"],"mappings":"4GAAIA,QAAAA,QAA4B,CAAG,EACnCA,QAAAA,QAA4B,CACxB,QAAW,IACf","x_google_ignoreList":[0]}
@@ -1,8 +0,0 @@
1
- var d = {};
2
- d = {
3
- dismiss: "取消"
4
- };
5
- export {
6
- d as default
7
- };
8
- //# sourceMappingURL=zh-CN.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zh-CN.es.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/zh-CN.mjs"],"sourcesContent":["var $d80a27deda7cdb3c$exports = {};\n$d80a27deda7cdb3c$exports = {\n \"dismiss\": `\\u{53D6}\\u{6D88}`\n};\n\n\nexport {$d80a27deda7cdb3c$exports as default};\n//# sourceMappingURL=zh-CN.module.js.map\n"],"names":["$d80a27deda7cdb3c$exports"],"mappings":"AAAG,IAACA,IAA4B,CAAG;AACnCA,IAA4B;AAAA,EACxB,SAAW;AACf;","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});exports.default={};exports.default={dismiss:"關閉"};
2
- //# sourceMappingURL=zh-TW.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zh-TW.cjs.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/zh-TW.mjs"],"sourcesContent":["var $2b2734393847c884$exports = {};\n$2b2734393847c884$exports = {\n \"dismiss\": `\\u{95DC}\\u{9589}`\n};\n\n\nexport {$2b2734393847c884$exports as default};\n//# sourceMappingURL=zh-TW.module.js.map\n"],"names":["$2b2734393847c884$exports"],"mappings":"4GAAIA,QAAAA,QAA4B,CAAG,EACnCA,QAAAA,QAA4B,CACxB,QAAW,IACf","x_google_ignoreList":[0]}
@@ -1,8 +0,0 @@
1
- var s = {};
2
- s = {
3
- dismiss: "關閉"
4
- };
5
- export {
6
- s as default
7
- };
8
- //# sourceMappingURL=zh-TW.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zh-TW.es.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/zh-TW.mjs"],"sourcesContent":["var $2b2734393847c884$exports = {};\n$2b2734393847c884$exports = {\n \"dismiss\": `\\u{95DC}\\u{9589}`\n};\n\n\nexport {$2b2734393847c884$exports as default};\n//# sourceMappingURL=zh-TW.module.js.map\n"],"names":["$2b2734393847c884$exports"],"mappings":"AAAG,IAACA,IAA4B,CAAG;AACnCA,IAA4B;AAAA,EACxB,SAAW;AACf;","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./useSelect.cjs.js"),l=require("react"),y=require("@react-aria/utils"),p=require("../../form/dist/useFormValidation.cjs.js"),b=require("../../visually-hidden/dist/VisuallyHidden.cjs.js");function f(i,e,c){let a=v.selectData.get(e)||{},{autoComplete:d,name:m=a.name,isDisabled:s=a.isDisabled}=i,{validationBehavior:o,isRequired:u}=a,{visuallyHiddenProps:n}=b.useVisuallyHidden();y.useFormReset(i.selectRef,e.selectedKey,e.setSelectedKey),p.useFormValidation({validationBehavior:o,focus:()=>{var t;return(t=c.current)===null||t===void 0?void 0:t.focus()}},e,i.selectRef);var r;return{containerProps:{...n,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:d,disabled:s,required:o==="native"&&u,name:m,value:(r=e.selectedKey)!==null&&r!==void 0?r:void 0,onChange:t=>e.setSelectedKey(t.target.value)}}}function g(i){let{state:e,triggerRef:c,label:a,name:d,isDisabled:m}=i,s=l.useRef(null),{containerProps:o,selectProps:u}=f({...i,selectRef:s},e,c);var n;return e.collection.size<=300?l.createElement("div",{...o,"data-testid":"hidden-select-container"},l.createElement("label",null,a,l.createElement("select",{...u,ref:s},l.createElement("option",null),[...e.collection.getKeys()].map(r=>{let t=e.collection.getItem(r);if(t&&t.type==="item")return l.createElement("option",{key:t.key,value:t.key},t.textValue)})))):d?l.createElement("input",{type:"hidden",autoComplete:u.autoComplete,name:d,disabled:m,value:(n=e.selectedKey)!==null&&n!==void 0?n:""}):null}exports.HiddenSelect=g;exports.useHiddenSelect=f;
2
- //# sourceMappingURL=HiddenSelect.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HiddenSelect.cjs.js","sources":["../../../../../node_modules/@react-aria/select/dist/HiddenSelect.mjs"],"sourcesContent":["import {selectData as $58aed456727eb0f3$export$703601b7e90536f8} from \"./useSelect.mjs\";\nimport $8BE50$react, {useRef as $8BE50$useRef} from \"react\";\nimport {useFormReset as $8BE50$useFormReset} from \"@react-aria/utils\";\nimport {useFormValidation as $8BE50$useFormValidation} from \"@react-aria/form\";\nimport {useVisuallyHidden as $8BE50$useVisuallyHidden} from \"@react-aria/visually-hidden\";\n\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\n\n\n\nfunction $bdd25dc72710631f$export$f809e80f58e251d1(props, state, triggerRef) {\n let data = (0, $58aed456727eb0f3$export$703601b7e90536f8).get(state) || {};\n let { autoComplete: autoComplete, name: name = data.name, isDisabled: isDisabled = data.isDisabled } = props;\n let { validationBehavior: validationBehavior, isRequired: isRequired } = data;\n let { visuallyHiddenProps: visuallyHiddenProps } = (0, $8BE50$useVisuallyHidden)();\n (0, $8BE50$useFormReset)(props.selectRef, state.selectedKey, state.setSelectedKey);\n (0, $8BE50$useFormValidation)({\n validationBehavior: validationBehavior,\n focus: ()=>{\n var _triggerRef_current;\n return (_triggerRef_current = triggerRef.current) === null || _triggerRef_current === void 0 ? void 0 : _triggerRef_current.focus();\n }\n }, state, props.selectRef);\n var _state_selectedKey;\n // In Safari, the <select> cannot have `display: none` or `hidden` for autofill to work.\n // In Firefox, there must be a <label> to identify the <select> whereas other browsers\n // seem to identify it just by surrounding text.\n // The solution is to use <VisuallyHidden> to hide the elements, which clips the elements to a\n // 1px rectangle. In addition, we hide from screen readers with aria-hidden, and make the <select>\n // non tabbable with tabIndex={-1}.\n return {\n containerProps: {\n ...visuallyHiddenProps,\n 'aria-hidden': true,\n // @ts-ignore\n ['data-react-aria-prevent-focus']: true,\n // @ts-ignore\n ['data-a11y-ignore']: 'aria-hidden-focus'\n },\n inputProps: {\n style: {\n display: 'none'\n }\n },\n selectProps: {\n tabIndex: -1,\n autoComplete: autoComplete,\n disabled: isDisabled,\n required: validationBehavior === 'native' && isRequired,\n name: name,\n value: (_state_selectedKey = state.selectedKey) !== null && _state_selectedKey !== void 0 ? _state_selectedKey : undefined,\n onChange: (e)=>state.setSelectedKey(e.target.value)\n }\n };\n}\nfunction $bdd25dc72710631f$export$cbd84cdb2e668835(props) {\n let { state: state, triggerRef: triggerRef, label: label, name: name, isDisabled: isDisabled } = props;\n let selectRef = (0, $8BE50$useRef)(null);\n let { containerProps: containerProps, selectProps: selectProps } = $bdd25dc72710631f$export$f809e80f58e251d1({\n ...props,\n selectRef: selectRef\n }, state, triggerRef);\n var _state_selectedKey;\n // If used in a <form>, use a hidden input so the value can be submitted to a server.\n // If the collection isn't too big, use a hidden <select> element for this so that browser\n // autofill will work. Otherwise, use an <input type=\"hidden\">.\n if (state.collection.size <= 300) return /*#__PURE__*/ (0, $8BE50$react).createElement(\"div\", {\n ...containerProps,\n \"data-testid\": \"hidden-select-container\"\n }, /*#__PURE__*/ (0, $8BE50$react).createElement(\"label\", null, label, /*#__PURE__*/ (0, $8BE50$react).createElement(\"select\", {\n ...selectProps,\n ref: selectRef\n }, /*#__PURE__*/ (0, $8BE50$react).createElement(\"option\", null), [\n ...state.collection.getKeys()\n ].map((key)=>{\n let item = state.collection.getItem(key);\n if (item && item.type === 'item') return /*#__PURE__*/ (0, $8BE50$react).createElement(\"option\", {\n key: item.key,\n value: item.key\n }, item.textValue);\n }))));\n else if (name) return /*#__PURE__*/ (0, $8BE50$react).createElement(\"input\", {\n type: \"hidden\",\n autoComplete: selectProps.autoComplete,\n name: name,\n disabled: isDisabled,\n value: (_state_selectedKey = state.selectedKey) !== null && _state_selectedKey !== void 0 ? _state_selectedKey : ''\n });\n return null;\n}\n\n\nexport {$bdd25dc72710631f$export$f809e80f58e251d1 as useHiddenSelect, $bdd25dc72710631f$export$cbd84cdb2e668835 as HiddenSelect};\n//# sourceMappingURL=HiddenSelect.module.js.map\n"],"names":["$bdd25dc72710631f$export$f809e80f58e251d1","props","state","triggerRef","data","$58aed456727eb0f3$export$703601b7e90536f8","autoComplete","name","isDisabled","validationBehavior","isRequired","visuallyHiddenProps","$8BE50$useVisuallyHidden","$8BE50$useFormReset","$8BE50$useFormValidation","_triggerRef_current","_state_selectedKey","e","$bdd25dc72710631f$export$cbd84cdb2e668835","label","selectRef","$8BE50$useRef","containerProps","selectProps","$8BE50$react","key","item"],"mappings":"4RAqBA,SAASA,EAA0CC,EAAOC,EAAOC,EAAY,CACzE,IAAIC,EAAWC,EAAyC,WAAE,IAAIH,CAAK,GAAK,CAAA,EACpE,CAAE,aAAcI,EAAc,KAAMC,EAAOH,EAAK,KAAM,WAAYI,EAAaJ,EAAK,UAAU,EAAKH,EACnG,CAAE,mBAAoBQ,EAAoB,WAAYC,CAAU,EAAKN,EACrE,CAAE,oBAAqBO,GAA4BC,EAAwB,kBAAA,EAC3EC,EAAAA,aAAqBZ,EAAM,UAAWC,EAAM,YAAaA,EAAM,cAAc,EAC7EY,oBAA0B,CAC1B,mBAAoBL,EACpB,MAAO,IAAI,CACP,IAAIM,EACJ,OAAQA,EAAsBZ,EAAW,WAAa,MAAQY,IAAwB,OAAS,OAASA,EAAoB,MAAK,CACpI,CACT,EAAOb,EAAOD,EAAM,SAAS,EACzB,IAAIe,EAOJ,MAAO,CACH,eAAgB,CACZ,GAAGL,EACH,cAAe,GAEd,gCAAkC,GAElC,mBAAqB,mBACzB,EACD,WAAY,CACR,MAAO,CACH,QAAS,MACZ,CACJ,EACD,YAAa,CACT,SAAU,GACV,aAAcL,EACd,SAAUE,EACV,SAAUC,IAAuB,UAAYC,EAC7C,KAAMH,EACN,OAAQS,EAAqBd,EAAM,eAAiB,MAAQc,IAAuB,OAASA,EAAqB,OACjH,SAAWC,GAAIf,EAAM,eAAee,EAAE,OAAO,KAAK,CACrD,CACT,CACA,CACA,SAASC,EAA0CjB,EAAO,CACtD,GAAI,CAAE,MAAOC,EAAO,WAAYC,EAAY,MAAOgB,EAAO,KAAMZ,EAAM,WAAYC,CAAU,EAAKP,EAC7FmB,EAAgBC,SAAe,IAAI,EACnC,CAAE,eAAgBC,EAAgB,YAAaC,CAAW,EAAKvB,EAA0C,CACzG,GAAGC,EACH,UAAWmB,CACnB,EAAOlB,EAAOC,CAAU,EACpB,IAAIa,EAIJ,OAAId,EAAM,WAAW,MAAQ,IAA8BsB,EAAc,cAAc,MAAO,CAC1F,GAAGF,EACH,cAAe,yBACvB,EAAyBE,EAAc,cAAc,QAAS,KAAML,EAAyBK,EAAc,cAAc,SAAU,CAC3H,GAAGD,EACH,IAAKH,CACR,EAAoBI,EAAc,cAAc,SAAU,IAAI,EAAG,CAC9D,GAAGtB,EAAM,WAAW,QAAS,CACrC,EAAM,IAAKuB,GAAM,CACT,IAAIC,EAAOxB,EAAM,WAAW,QAAQuB,CAAG,EACvC,GAAIC,GAAQA,EAAK,OAAS,OAAQ,OAAyBF,EAAc,cAAc,SAAU,CAC7F,IAAKE,EAAK,IACV,MAAOA,EAAK,GACxB,EAAWA,EAAK,SAAS,CACzB,CAAK,CAAC,CAAC,CAAC,EACKnB,EAA+BiB,EAAc,cAAc,QAAS,CACzE,KAAM,SACN,aAAcD,EAAY,aAC1B,KAAMhB,EACN,SAAUC,EACV,OAAQQ,EAAqBd,EAAM,eAAiB,MAAQc,IAAuB,OAASA,EAAqB,EACzH,CAAK,EACM,IACX","x_google_ignoreList":[0]}
@@ -1,73 +0,0 @@
1
- import { selectData as m } from "./useSelect.es.js";
2
- import l, { useRef as p } from "react";
3
- import { useFormReset as v } from "@react-aria/utils";
4
- import { useFormValidation as b } from "../../form/dist/useFormValidation.es.js";
5
- import { useVisuallyHidden as y } from "../../visually-hidden/dist/VisuallyHidden.es.js";
6
- function $(a, e, u) {
7
- let i = m.get(e) || {}, { autoComplete: d, name: f = i.name, isDisabled: o = i.isDisabled } = a, { validationBehavior: s, isRequired: c } = i, { visuallyHiddenProps: r } = y();
8
- v(a.selectRef, e.selectedKey, e.setSelectedKey), b({
9
- validationBehavior: s,
10
- focus: () => {
11
- var t;
12
- return (t = u.current) === null || t === void 0 ? void 0 : t.focus();
13
- }
14
- }, e, a.selectRef);
15
- var n;
16
- return {
17
- containerProps: {
18
- ...r,
19
- "aria-hidden": !0,
20
- // @ts-ignore
21
- "data-react-aria-prevent-focus": !0,
22
- // @ts-ignore
23
- "data-a11y-ignore": "aria-hidden-focus"
24
- },
25
- inputProps: {
26
- style: {
27
- display: "none"
28
- }
29
- },
30
- selectProps: {
31
- tabIndex: -1,
32
- autoComplete: d,
33
- disabled: o,
34
- required: s === "native" && c,
35
- name: f,
36
- value: (n = e.selectedKey) !== null && n !== void 0 ? n : void 0,
37
- onChange: (t) => e.setSelectedKey(t.target.value)
38
- }
39
- };
40
- }
41
- function K(a) {
42
- let { state: e, triggerRef: u, label: i, name: d, isDisabled: f } = a, o = p(null), { containerProps: s, selectProps: c } = $({
43
- ...a,
44
- selectRef: o
45
- }, e, u);
46
- var r;
47
- return e.collection.size <= 300 ? /* @__PURE__ */ l.createElement("div", {
48
- ...s,
49
- "data-testid": "hidden-select-container"
50
- }, /* @__PURE__ */ l.createElement("label", null, i, /* @__PURE__ */ l.createElement("select", {
51
- ...c,
52
- ref: o
53
- }, /* @__PURE__ */ l.createElement("option", null), [
54
- ...e.collection.getKeys()
55
- ].map((n) => {
56
- let t = e.collection.getItem(n);
57
- if (t && t.type === "item") return /* @__PURE__ */ l.createElement("option", {
58
- key: t.key,
59
- value: t.key
60
- }, t.textValue);
61
- })))) : d ? /* @__PURE__ */ l.createElement("input", {
62
- type: "hidden",
63
- autoComplete: c.autoComplete,
64
- name: d,
65
- disabled: f,
66
- value: (r = e.selectedKey) !== null && r !== void 0 ? r : ""
67
- }) : null;
68
- }
69
- export {
70
- K as HiddenSelect,
71
- $ as useHiddenSelect
72
- };
73
- //# sourceMappingURL=HiddenSelect.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HiddenSelect.es.js","sources":["../../../../../node_modules/@react-aria/select/dist/HiddenSelect.mjs"],"sourcesContent":["import {selectData as $58aed456727eb0f3$export$703601b7e90536f8} from \"./useSelect.mjs\";\nimport $8BE50$react, {useRef as $8BE50$useRef} from \"react\";\nimport {useFormReset as $8BE50$useFormReset} from \"@react-aria/utils\";\nimport {useFormValidation as $8BE50$useFormValidation} from \"@react-aria/form\";\nimport {useVisuallyHidden as $8BE50$useVisuallyHidden} from \"@react-aria/visually-hidden\";\n\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\n\n\n\nfunction $bdd25dc72710631f$export$f809e80f58e251d1(props, state, triggerRef) {\n let data = (0, $58aed456727eb0f3$export$703601b7e90536f8).get(state) || {};\n let { autoComplete: autoComplete, name: name = data.name, isDisabled: isDisabled = data.isDisabled } = props;\n let { validationBehavior: validationBehavior, isRequired: isRequired } = data;\n let { visuallyHiddenProps: visuallyHiddenProps } = (0, $8BE50$useVisuallyHidden)();\n (0, $8BE50$useFormReset)(props.selectRef, state.selectedKey, state.setSelectedKey);\n (0, $8BE50$useFormValidation)({\n validationBehavior: validationBehavior,\n focus: ()=>{\n var _triggerRef_current;\n return (_triggerRef_current = triggerRef.current) === null || _triggerRef_current === void 0 ? void 0 : _triggerRef_current.focus();\n }\n }, state, props.selectRef);\n var _state_selectedKey;\n // In Safari, the <select> cannot have `display: none` or `hidden` for autofill to work.\n // In Firefox, there must be a <label> to identify the <select> whereas other browsers\n // seem to identify it just by surrounding text.\n // The solution is to use <VisuallyHidden> to hide the elements, which clips the elements to a\n // 1px rectangle. In addition, we hide from screen readers with aria-hidden, and make the <select>\n // non tabbable with tabIndex={-1}.\n return {\n containerProps: {\n ...visuallyHiddenProps,\n 'aria-hidden': true,\n // @ts-ignore\n ['data-react-aria-prevent-focus']: true,\n // @ts-ignore\n ['data-a11y-ignore']: 'aria-hidden-focus'\n },\n inputProps: {\n style: {\n display: 'none'\n }\n },\n selectProps: {\n tabIndex: -1,\n autoComplete: autoComplete,\n disabled: isDisabled,\n required: validationBehavior === 'native' && isRequired,\n name: name,\n value: (_state_selectedKey = state.selectedKey) !== null && _state_selectedKey !== void 0 ? _state_selectedKey : undefined,\n onChange: (e)=>state.setSelectedKey(e.target.value)\n }\n };\n}\nfunction $bdd25dc72710631f$export$cbd84cdb2e668835(props) {\n let { state: state, triggerRef: triggerRef, label: label, name: name, isDisabled: isDisabled } = props;\n let selectRef = (0, $8BE50$useRef)(null);\n let { containerProps: containerProps, selectProps: selectProps } = $bdd25dc72710631f$export$f809e80f58e251d1({\n ...props,\n selectRef: selectRef\n }, state, triggerRef);\n var _state_selectedKey;\n // If used in a <form>, use a hidden input so the value can be submitted to a server.\n // If the collection isn't too big, use a hidden <select> element for this so that browser\n // autofill will work. Otherwise, use an <input type=\"hidden\">.\n if (state.collection.size <= 300) return /*#__PURE__*/ (0, $8BE50$react).createElement(\"div\", {\n ...containerProps,\n \"data-testid\": \"hidden-select-container\"\n }, /*#__PURE__*/ (0, $8BE50$react).createElement(\"label\", null, label, /*#__PURE__*/ (0, $8BE50$react).createElement(\"select\", {\n ...selectProps,\n ref: selectRef\n }, /*#__PURE__*/ (0, $8BE50$react).createElement(\"option\", null), [\n ...state.collection.getKeys()\n ].map((key)=>{\n let item = state.collection.getItem(key);\n if (item && item.type === 'item') return /*#__PURE__*/ (0, $8BE50$react).createElement(\"option\", {\n key: item.key,\n value: item.key\n }, item.textValue);\n }))));\n else if (name) return /*#__PURE__*/ (0, $8BE50$react).createElement(\"input\", {\n type: \"hidden\",\n autoComplete: selectProps.autoComplete,\n name: name,\n disabled: isDisabled,\n value: (_state_selectedKey = state.selectedKey) !== null && _state_selectedKey !== void 0 ? _state_selectedKey : ''\n });\n return null;\n}\n\n\nexport {$bdd25dc72710631f$export$f809e80f58e251d1 as useHiddenSelect, $bdd25dc72710631f$export$cbd84cdb2e668835 as HiddenSelect};\n//# sourceMappingURL=HiddenSelect.module.js.map\n"],"names":["$bdd25dc72710631f$export$f809e80f58e251d1","props","state","triggerRef","data","$58aed456727eb0f3$export$703601b7e90536f8","autoComplete","name","isDisabled","validationBehavior","isRequired","visuallyHiddenProps","$8BE50$useVisuallyHidden","$8BE50$useFormReset","$8BE50$useFormValidation","_triggerRef_current","_state_selectedKey","e","$bdd25dc72710631f$export$cbd84cdb2e668835","label","selectRef","$8BE50$useRef","containerProps","selectProps","$8BE50$react","key","item"],"mappings":";;;;;AAqBA,SAASA,EAA0CC,GAAOC,GAAOC,GAAY;AACzE,MAAIC,IAAWC,EAA2C,IAAIH,CAAK,KAAK,CAAA,GACpE,EAAE,cAAcI,GAAc,MAAMC,IAAOH,EAAK,MAAM,YAAYI,IAAaJ,EAAK,WAAU,IAAKH,GACnG,EAAE,oBAAoBQ,GAAoB,YAAYC,EAAU,IAAKN,GACrE,EAAE,qBAAqBO,MAA4BC,EAAwB;AAC/E,EAAIC,EAAqBZ,EAAM,WAAWC,EAAM,aAAaA,EAAM,cAAc,GAC7EY,EAA0B;AAAA,IAC1B,oBAAoBL;AAAA,IACpB,OAAO,MAAI;AACP,UAAIM;AACJ,cAAQA,IAAsBZ,EAAW,aAAa,QAAQY,MAAwB,SAAS,SAASA,EAAoB,MAAK;AAAA,IACpI;AAAA,EACT,GAAOb,GAAOD,EAAM,SAAS;AACzB,MAAIe;AAOJ,SAAO;AAAA,IACH,gBAAgB;AAAA,MACZ,GAAGL;AAAA,MACH,eAAe;AAAA;AAAA,MAEd,iCAAkC;AAAA;AAAA,MAElC,oBAAqB;AAAA,IACzB;AAAA,IAC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C,CAAC,CAAC,IACKnB,IAA+BiB,gBAAAA,EAAc,cAAc,SAAS;AAAA,IACzE,MAAM;AAAA,IACN,cAAcD,EAAY;AAAA,IAC1B,MAAMhB;AAAA,IACN,UAAUC;AAAA,IACV,QAAQQ,IAAqBd,EAAM,iBAAiB,QAAQc,MAAuB,SAASA,IAAqB;AAAA,EACzH,CAAK,IACM;AACX;","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@react-aria/utils"),$=require("react"),I=require("../../selection/dist/ListKeyboardDelegate.cjs.js"),E=require("../../selection/dist/useTypeSelect.cjs.js"),O=require("../../interactions/dist/useFocusVisible.cjs.js"),R=require("../../i18n/dist/useCollator.cjs.js"),j=require("../../label/dist/useField.cjs.js"),x=require("../../menu/dist/useMenuTrigger.cjs.js"),F=new WeakMap;function L(l,e,s){let{keyboardDelegate:g,isDisabled:t,isRequired:K,name:m,validationBehavior:S="aria"}=l,f=R.useCollator({usage:"search",sensitivity:"base"}),o=$.useMemo(()=>g||new I.ListKeyboardDelegate(e.collection,e.disabledKeys,s,f),[g,e.collection,e.disabledKeys,f,s]),{menuTriggerProps:p,menuProps:M}=x.useMenuTrigger({isDisabled:t,type:"listbox"},e,s),k=i=>{switch(i.key){case"ArrowLeft":{var c,b;i.preventDefault();let a=e.selectedKey!=null?(c=o.getKeyAbove)===null||c===void 0?void 0:c.call(o,e.selectedKey):(b=o.getFirstKey)===null||b===void 0?void 0:b.call(o);a&&e.setSelectedKey(a);break}case"ArrowRight":{var y,v;i.preventDefault();let a=e.selectedKey!=null?(y=o.getKeyBelow)===null||y===void 0?void 0:y.call(o,e.selectedKey):(v=o.getFirstKey)===null||v===void 0?void 0:v.call(o);a&&e.setSelectedKey(a);break}}},{typeSelectProps:u}=E.useTypeSelect({keyboardDelegate:o,selectionManager:e.selectionManager,onTypeSelect(i){e.setSelectedKey(i)}}),{isInvalid:P,validationErrors:D,validationDetails:w}=e.displayValidation,{labelProps:q,fieldProps:d,descriptionProps:B,errorMessageProps:C}=j.useField({...l,labelElementType:"span",isInvalid:P,errorMessage:l.errorMessage||D});u.onKeyDown=u.onKeyDownCapture,delete u.onKeyDownCapture;let T=n.filterDOMProps(l,{labelable:!0}),r=n.mergeProps(u,p,d),h=n.useId();return F.set(e,{isDisabled:t,isRequired:K,name:m,validationBehavior:S}),{labelProps:{...q,onClick:()=>{if(!l.isDisabled){var i;(i=s.current)===null||i===void 0||i.focus(),O.setInteractionModality("keyboard")}}},triggerProps:n.mergeProps(T,{...r,isDisabled:t,onKeyDown:n.chain(r.onKeyDown,k,l.onKeyDown),onKeyUp:l.onKeyUp,"aria-labelledby":[h,r["aria-labelledby"],r["aria-label"]&&!r["aria-labelledby"]?r.id:null].filter(Boolean).join(" "),onFocus(i){e.isFocused||(l.onFocus&&l.onFocus(i),l.onFocusChange&&l.onFocusChange(!0),e.setFocused(!0))},onBlur(i){e.isOpen||(l.onBlur&&l.onBlur(i),l.onFocusChange&&l.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:h},menuProps:{...M,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:i=>{i.currentTarget.contains(i.relatedTarget)||(l.onBlur&&l.onBlur(i),l.onFocusChange&&l.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[d["aria-labelledby"],r["aria-label"]&&!d["aria-labelledby"]?r.id:null].filter(Boolean).join(" ")},descriptionProps:B,errorMessageProps:C,isInvalid:P,validationErrors:D,validationDetails:w}}exports.selectData=F;exports.useSelect=L;
2
- //# sourceMappingURL=useSelect.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useSelect.cjs.js","sources":["../../../../../node_modules/@react-aria/select/dist/useSelect.mjs"],"sourcesContent":["import {filterDOMProps as $aUnai$filterDOMProps, mergeProps as $aUnai$mergeProps, useId as $aUnai$useId, chain as $aUnai$chain} from \"@react-aria/utils\";\nimport {useMemo as $aUnai$useMemo} from \"react\";\nimport {ListKeyboardDelegate as $aUnai$ListKeyboardDelegate, useTypeSelect as $aUnai$useTypeSelect} from \"@react-aria/selection\";\nimport {setInteractionModality as $aUnai$setInteractionModality} from \"@react-aria/interactions\";\nimport {useCollator as $aUnai$useCollator} from \"@react-aria/i18n\";\nimport {useField as $aUnai$useField} from \"@react-aria/label\";\nimport {useMenuTrigger as $aUnai$useMenuTrigger} from \"@react-aria/menu\";\n\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\n\n\n\n\n\nconst $58aed456727eb0f3$export$703601b7e90536f8 = new WeakMap();\nfunction $58aed456727eb0f3$export$e64b2f635402ca43(props, state, ref) {\n let { keyboardDelegate: keyboardDelegate, isDisabled: isDisabled, isRequired: isRequired, name: name, validationBehavior: validationBehavior = 'aria' } = props;\n // By default, a KeyboardDelegate is provided which uses the DOM to query layout information (e.g. for page up/page down).\n // When virtualized, the layout object will be passed in as a prop and override this.\n let collator = (0, $aUnai$useCollator)({\n usage: 'search',\n sensitivity: 'base'\n });\n let delegate = (0, $aUnai$useMemo)(()=>keyboardDelegate || new (0, $aUnai$ListKeyboardDelegate)(state.collection, state.disabledKeys, ref, collator), [\n keyboardDelegate,\n state.collection,\n state.disabledKeys,\n collator,\n ref\n ]);\n let { menuTriggerProps: menuTriggerProps, menuProps: menuProps } = (0, $aUnai$useMenuTrigger)({\n isDisabled: isDisabled,\n type: 'listbox'\n }, state, ref);\n let onKeyDown = (e)=>{\n switch(e.key){\n case 'ArrowLeft':\n {\n var _delegate_getKeyAbove, _delegate_getFirstKey;\n // prevent scrolling containers\n e.preventDefault();\n let key = state.selectedKey != null ? (_delegate_getKeyAbove = delegate.getKeyAbove) === null || _delegate_getKeyAbove === void 0 ? void 0 : _delegate_getKeyAbove.call(delegate, state.selectedKey) : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate);\n if (key) state.setSelectedKey(key);\n break;\n }\n case 'ArrowRight':\n {\n var _delegate_getKeyBelow, _delegate_getFirstKey1;\n // prevent scrolling containers\n e.preventDefault();\n let key = state.selectedKey != null ? (_delegate_getKeyBelow = delegate.getKeyBelow) === null || _delegate_getKeyBelow === void 0 ? void 0 : _delegate_getKeyBelow.call(delegate, state.selectedKey) : (_delegate_getFirstKey1 = delegate.getFirstKey) === null || _delegate_getFirstKey1 === void 0 ? void 0 : _delegate_getFirstKey1.call(delegate);\n if (key) state.setSelectedKey(key);\n break;\n }\n }\n };\n let { typeSelectProps: typeSelectProps } = (0, $aUnai$useTypeSelect)({\n keyboardDelegate: delegate,\n selectionManager: state.selectionManager,\n onTypeSelect (key) {\n state.setSelectedKey(key);\n }\n });\n let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = state.displayValidation;\n let { labelProps: labelProps, fieldProps: fieldProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = (0, $aUnai$useField)({\n ...props,\n labelElementType: 'span',\n isInvalid: isInvalid,\n errorMessage: props.errorMessage || validationErrors\n });\n typeSelectProps.onKeyDown = typeSelectProps.onKeyDownCapture;\n delete typeSelectProps.onKeyDownCapture;\n let domProps = (0, $aUnai$filterDOMProps)(props, {\n labelable: true\n });\n let triggerProps = (0, $aUnai$mergeProps)(typeSelectProps, menuTriggerProps, fieldProps);\n let valueId = (0, $aUnai$useId)();\n $58aed456727eb0f3$export$703601b7e90536f8.set(state, {\n isDisabled: isDisabled,\n isRequired: isRequired,\n name: name,\n validationBehavior: validationBehavior\n });\n return {\n labelProps: {\n ...labelProps,\n onClick: ()=>{\n if (!props.isDisabled) {\n var _ref_current;\n (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.focus();\n // Show the focus ring so the user knows where focus went\n (0, $aUnai$setInteractionModality)('keyboard');\n }\n }\n },\n triggerProps: (0, $aUnai$mergeProps)(domProps, {\n ...triggerProps,\n isDisabled: isDisabled,\n onKeyDown: (0, $aUnai$chain)(triggerProps.onKeyDown, onKeyDown, props.onKeyDown),\n onKeyUp: props.onKeyUp,\n 'aria-labelledby': [\n valueId,\n triggerProps['aria-labelledby'],\n triggerProps['aria-label'] && !triggerProps['aria-labelledby'] ? triggerProps.id : null\n ].filter(Boolean).join(' '),\n onFocus (e) {\n if (state.isFocused) return;\n if (props.onFocus) props.onFocus(e);\n if (props.onFocusChange) props.onFocusChange(true);\n state.setFocused(true);\n },\n onBlur (e) {\n if (state.isOpen) return;\n if (props.onBlur) props.onBlur(e);\n if (props.onFocusChange) props.onFocusChange(false);\n state.setFocused(false);\n }\n }),\n valueProps: {\n id: valueId\n },\n menuProps: {\n ...menuProps,\n autoFocus: state.focusStrategy || true,\n shouldSelectOnPressUp: true,\n shouldFocusOnHover: true,\n disallowEmptySelection: true,\n linkBehavior: 'selection',\n onBlur: (e)=>{\n if (e.currentTarget.contains(e.relatedTarget)) return;\n if (props.onBlur) props.onBlur(e);\n if (props.onFocusChange) props.onFocusChange(false);\n state.setFocused(false);\n },\n 'aria-labelledby': [\n fieldProps['aria-labelledby'],\n triggerProps['aria-label'] && !fieldProps['aria-labelledby'] ? triggerProps.id : null\n ].filter(Boolean).join(' ')\n },\n descriptionProps: descriptionProps,\n errorMessageProps: errorMessageProps,\n isInvalid: isInvalid,\n validationErrors: validationErrors,\n validationDetails: validationDetails\n };\n}\n\n\nexport {$58aed456727eb0f3$export$703601b7e90536f8 as selectData, $58aed456727eb0f3$export$e64b2f635402ca43 as useSelect};\n//# sourceMappingURL=useSelect.module.js.map\n"],"names":["$58aed456727eb0f3$export$703601b7e90536f8","$58aed456727eb0f3$export$e64b2f635402ca43","props","state","ref","keyboardDelegate","isDisabled","isRequired","name","validationBehavior","collator","$aUnai$useCollator","delegate","$aUnai$useMemo","$aUnai$ListKeyboardDelegate","menuTriggerProps","menuProps","$aUnai$useMenuTrigger","onKeyDown","e","_delegate_getKeyAbove","_delegate_getFirstKey","key","_delegate_getKeyBelow","_delegate_getFirstKey1","typeSelectProps","$aUnai$useTypeSelect","isInvalid","validationErrors","validationDetails","labelProps","fieldProps","descriptionProps","errorMessageProps","$aUnai$useField","domProps","$aUnai$filterDOMProps","triggerProps","$aUnai$mergeProps","valueId","$aUnai$useId","_ref_current","$aUnai$setInteractionModality","$aUnai$chain"],"mappings":"0cAyBMA,EAA4C,IAAI,QACtD,SAASC,EAA0CC,EAAOC,EAAOC,EAAK,CAClE,GAAI,CAAE,iBAAkBC,EAAkB,WAAYC,EAAY,WAAYC,EAAY,KAAMC,EAAM,mBAAoBC,EAAqB,MAAM,EAAKP,EAGtJQ,EAAeC,cAAoB,CACnC,MAAO,SACP,YAAa,MACrB,CAAK,EACGC,EAAeC,EAAAA,QAAgB,IAAIR,GAAoB,IAAQS,EAA2B,qBAAEX,EAAM,WAAYA,EAAM,aAAcC,EAAKM,CAAQ,EAAG,CAClJL,EACAF,EAAM,WACNA,EAAM,aACNO,EACAN,CACR,CAAK,EACG,CAAE,iBAAkBW,EAAkB,UAAWC,CAAS,EAASC,iBAAuB,CAC1F,WAAYX,EACZ,KAAM,SACd,EAAOH,EAAOC,CAAG,EACTc,EAAaC,GAAI,CACjB,OAAOA,EAAE,IAAG,CACR,IAAK,YACD,CACI,IAAIC,EAAuBC,EAE3BF,EAAE,eAAc,EAChB,IAAIG,EAAMnB,EAAM,aAAe,MAAQiB,EAAwBR,EAAS,eAAiB,MAAQQ,IAA0B,OAAS,OAASA,EAAsB,KAAKR,EAAUT,EAAM,WAAW,GAAKkB,EAAwBT,EAAS,eAAiB,MAAQS,IAA0B,OAAS,OA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