@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
package/dist/index.d.ts CHANGED
@@ -1,13 +1,9 @@
1
1
  import { AriaAttributes } from 'react';
2
2
  import { AriaDialogProps } from '@react-aria/dialog';
3
- import { AriaPopoverProps } from '@react-aria/overlays';
4
3
  import { default as default_2 } from 'react';
5
- import { DOMProps } from '@react-types/shared';
6
4
  import { ForwardRefExoticComponent } from 'react';
7
5
  import { JSX as JSX_2 } from 'react/jsx-runtime';
8
6
  import { MouseEvent as MouseEvent_2 } from 'react';
9
- import { OverlayTriggerProps } from '@react-stately/overlays';
10
- import { OverlayTriggerState } from '@react-stately/overlays';
11
7
  import { ReactElement } from 'react';
12
8
  import { ReactNode } from 'react';
13
9
  import { RefAttributes } from 'react';
@@ -22,9 +18,9 @@ import { TooltipTriggerComponentProps } from 'react-aria-components';
22
18
  * API:
23
19
  * - {@link ActionMenuProps}
24
20
  */
25
- export declare const ActionMenu: ({ isOpen, selectionMode, selectedKeys, defaultSelectedKeys, disabledKeys, children, showCancel, cancelButtonText, actions, title, onSelectionChange, onClose, "data-testid": testId, }: ActionMenuProps) => JSX_2.Element;
21
+ export declare const ActionMenu: ({ isOpen, actions, children, showCancel, cancelButtonText, selectionMode, selectedKeys, disabledKeys, onSelectionChange, onClose, title, "data-testid": testId, }: ActionMenuProps) => JSX_2.Element;
26
22
 
27
- declare interface ActionMenuAction {
23
+ export declare interface ActionMenuAction {
28
24
  key: string;
29
25
  label?: ReactNode;
30
26
  description?: ReactNode;
@@ -46,9 +42,9 @@ declare interface ActionMenuProps {
46
42
  }) => ReactNode);
47
43
  /** The test id of the menu */
48
44
  "data-testid"?: string;
49
- /** The keys of the default selected items */
50
- defaultSelectedKeys?: string[];
51
- /** The keys of the disabled items */
45
+ /** The keys of the disabled items
46
+ * @default []
47
+ */
52
48
  disabledKeys?: string[];
53
49
  /** Whether the menu is open
54
50
  * @default false
@@ -63,7 +59,7 @@ declare interface ActionMenuProps {
63
59
  /** The selection mode of the menu
64
60
  * @default "single"
65
61
  */
66
- selectionMode?: "single" | "multiple" | "none";
62
+ selectionMode?: ActionMenuSelectionMode;
67
63
  /** The keys of the selected items */
68
64
  selectedKeys?: string[];
69
65
  /** Whether to show the cancel button */
@@ -72,6 +68,8 @@ declare interface ActionMenuProps {
72
68
  title?: string;
73
69
  }
74
70
 
71
+ export declare type ActionMenuSelectionMode = "single" | "multiple" | "none";
72
+
75
73
  /**
76
74
  * A badge component for displaying status, categories, or counts with various visual styles.
77
75
  *
@@ -600,7 +598,7 @@ declare interface MenuProps {
600
598
  /** Custom trigger component. If not provided, defaults to ellipsis icon.
601
599
  * - @prop triggerProps {@link TriggerProps}
602
600
  */
603
- renderTrigger?: (triggerProps: TriggerProps) => ReactNode;
601
+ renderTrigger?: (triggerProps: MenuTriggerProps) => ReactNode;
604
602
  /** Size of the trigger icon
605
603
  * @default 24
606
604
  */
@@ -615,13 +613,13 @@ declare interface MenuProps {
615
613
  * @default false
616
614
  */
617
615
  disabled?: boolean;
618
- /** Callback when menu closes */
616
+ /** Callback when the menu is closed */
619
617
  onClose?: () => void;
620
- /** Test ID for the trigger component */
618
+ /** Test ID for the trigger button */
621
619
  triggerTestId?: string;
622
620
  /** Test ID for the menu */
623
621
  menuTestId?: string;
624
- /** Callback when a menu item is selected */
622
+ /** Callback when the selection changes */
625
623
  onSelectionChange?: (key: string) => void;
626
624
  /** The key of the selected item */
627
625
  selectedKey?: string;
@@ -630,7 +628,7 @@ declare interface MenuProps {
630
628
  }
631
629
 
632
630
  /**
633
- * A component that displays either a popover menu or an action menu
631
+ * An uncontrolled component that displays either a popover menu or an action menu
634
632
  * depending on the screen size when the menu trigger is pressed.
635
633
  *
636
634
  * API:
@@ -638,6 +636,12 @@ declare interface MenuProps {
638
636
  */
639
637
  export declare function MenuTrigger({ renderTrigger, size, title, items, disabled, onClose, triggerTestId, menuTestId, onSelectionChange, selectedKey, disabledKeys, }: MenuProps): JSX_2.Element;
640
638
 
639
+ export declare interface MenuTriggerProps {
640
+ disabled?: boolean;
641
+ isOpen?: boolean;
642
+ setIsOpen: (isOpen: boolean) => void;
643
+ }
644
+
641
645
  export declare const Modal: (({ isOpen, onClose, title, subtitle, body, children, isOverlay, "data-testid": dataTestId, }: ModalProps) => JSX_2.Element) & {
642
646
  /**
643
647
  * Renders a h2 styled title
@@ -707,40 +711,67 @@ declare interface ModalProps {
707
711
  }
708
712
 
709
713
  /**
710
- * Popover is an unstyled popover component that handles positioning. It should be used
711
- * with the Dialog component to provide a styled popover.
714
+ * A popover component that handles positioning and supports controlled and uncontrolled modes.
712
715
  *
713
716
  * A popover displays interactive content in context with a trigger element.
714
717
  * A tooltip displays a description of an element on hover or focus.
715
718
  *
716
- * @see {@link usePopoverTrigger} for a complete usage example
717
- *
718
719
  * API:
719
720
  * - {@link PopoverProps}
720
- * - extends {@link AriaPopoverProps}
721
721
  */
722
- export declare function Popover({ children, state, arrow, offset, ...props }: PopoverProps): JSX_2.Element;
722
+ export declare function Popover({ trigger, children, open, defaultOpen, onOpenChange, side, align, arrow, constrainWidth, "data-testid": testId, }: PopoverProps): JSX_2.Element;
723
+
724
+ export declare type PopoverAlign = "start" | "center" | "end";
723
725
 
724
- declare interface PopoverProps extends Omit<AriaPopoverProps, "popoverRef"> {
726
+ declare interface PopoverProps {
725
727
  /**
726
- * Whether to show an arrow on the popover.
728
+ * The trigger element for the popover.
729
+ * @warning Do NOT pass a <button> element here. Use a span, div, or other non-button element.
730
+ * If a button is passed, an error will be thrown.
727
731
  */
728
- arrow?: boolean;
732
+ trigger: default_2.ReactNode;
729
733
  /**
730
- * Content to display within the popover.
734
+ * The content of the popover.
731
735
  */
732
736
  children: default_2.ReactNode;
733
737
  /**
734
- * Can optionally forward the ref to the popover.
738
+ * Constrain the width of the popover to the width of the trigger.
735
739
  */
736
- popoverRef?: default_2.RefObject<HTMLDivElement>;
740
+ constrainWidth?: boolean;
737
741
  /**
738
- * The `isOpen` state of the popover and the methods to toggle it.
739
- * - type {@link OverlayTriggerState}
742
+ * Control open state (controlled mode).
740
743
  */
741
- state: OverlayTriggerState;
744
+ open?: boolean;
745
+ /**
746
+ * Default open state (uncontrolled mode).
747
+ */
748
+ defaultOpen?: boolean;
749
+ /**
750
+ * Callback when open state changes.
751
+ */
752
+ onOpenChange?: (open: boolean) => void;
753
+ /**
754
+ * Popover side placement
755
+ * {@link PopoverSide}
756
+ */
757
+ side?: PopoverSide;
758
+ /**
759
+ * Popover alignment
760
+ * {@link PopoverAlign}
761
+ */
762
+ align?: PopoverAlign;
763
+ /**
764
+ * Show an arrow pointing to the trigger.
765
+ */
766
+ arrow?: boolean;
767
+ /**
768
+ * Test id for the popover content.
769
+ */
770
+ "data-testid"?: string;
742
771
  }
743
772
 
773
+ export declare type PopoverSide = "top" | "right" | "bottom" | "left";
774
+
744
775
  declare type ProtonColorScale = {
745
776
  SUPER_DARK: string;
746
777
  DARK: string;
@@ -1137,6 +1168,7 @@ declare interface ThemeContextType {
1137
1168
  style: ProtonStyleSheet;
1138
1169
  palette: ProtonPalette;
1139
1170
  hasPalette?: boolean;
1171
+ themeProviderRef?: default_2.RefObject<HTMLDivElement>;
1140
1172
  }
1141
1173
 
1142
1174
  export declare const ThemeProvider: default_2.FC<ThemeProviderProps>;
@@ -1217,54 +1249,6 @@ export declare interface TooltipTriggerProps extends TooltipProps, TooltipTrigge
1217
1249
  disableTriggerClick?: boolean;
1218
1250
  }
1219
1251
 
1220
- declare interface TriggerProps {
1221
- disabled?: boolean;
1222
- isOpen?: boolean;
1223
- setIsOpen?: (isOpen: boolean) => void;
1224
- triggerRef: React.RefObject<HTMLButtonElement>;
1225
- }
1226
-
1227
- /**
1228
- * Hook for creating a popover trigger. This hook manages the state and events for the popover
1229
- * and popover trigger. For examples see Popover.stories.tsx.
1230
- *
1231
- * API:
1232
- * - {@link OverlayTriggerProps}
1233
- *
1234
- * @example
1235
- * ```tsx
1236
- * let { buttonProps, overlayProps, buttonRef, state } = usePopoverTrigger();
1237
- *
1238
- * return (
1239
- * <div>
1240
- * <button {...buttonProps} ref={buttonRef}>
1241
- * Trigger
1242
- * </button>
1243
- *
1244
- * {state.isOpen && (
1245
- * <Popover
1246
- * state={state}
1247
- * triggerRef={buttonRef}
1248
- * arrow={props.arrow}
1249
- * offset={props.offset}
1250
- * placement={props.placement}
1251
- * >
1252
- * <Dialog {...overlayProps} title="Popover">
1253
- * Here is some popover content
1254
- * </Dialog>
1255
- * </Popover>
1256
- * )}
1257
- * </div>
1258
- * );
1259
- * ```
1260
- */
1261
- export declare function usePopoverTrigger(props?: OverlayTriggerProps): {
1262
- buttonProps: default_2.ButtonHTMLAttributes<HTMLButtonElement>;
1263
- overlayProps: DOMProps;
1264
- buttonRef: default_2.MutableRefObject<HTMLButtonElement>;
1265
- state: OverlayTriggerState;
1266
- };
1267
-
1268
1252
  export declare const useTheme: () => ThemeContextType;
1269
1253
 
1270
1254
  /**
package/dist/index.es.js CHANGED
@@ -1,30 +1,30 @@
1
1
  import { ActionMenu as e } from "./components/ActionMenu/ActionMenu.es.js";
2
2
  import { Badge as p, BadgeVariants as m } from "./components/Badge/Badge.es.js";
3
3
  import { BANNER_ICONS as f, BANNER_VARIANTS as a, Banner as n } from "./components/Banner/Banner.es.js";
4
- import { Button as u, ButtonSizes as T, ButtonVariants as g } from "./components/Button/Button.es.js";
5
- import { ButtonGroup as B } from "./components/ButtonGroup/ButtonGroup.es.js";
4
+ import { Button as u, ButtonSizes as l, ButtonVariants as B } from "./components/Button/Button.es.js";
5
+ import { ButtonGroup as g } from "./components/ButtonGroup/ButtonGroup.es.js";
6
6
  import { ButtonWithSelect as c } from "./components/ButtonWithSelect/ButtonWithSelect.es.js";
7
7
  import { DataTable as I } from "./components/DataTable/DataTable.es.js";
8
- import { Dialog as v } from "./components/Dialog/Dialog.es.js";
9
- import { Elevation as d } from "./components/Elevation/Elevation.es.js";
8
+ import { Dialog as N } from "./components/Dialog/Dialog.es.js";
9
+ import { Elevation as v } from "./components/Elevation/Elevation.es.js";
10
10
  import { Icon as E } from "./components/Icon/Icon.es.js";
11
11
  import { ImageBackground as M } from "./components/ImageBackground/ImageBackground.es.js";
12
- import { Input as R } from "./components/Input/BaseInput/Input.es.js";
13
- import { CopyInput as y } from "./components/Input/CopyInput/CopyInput.es.js";
14
- import { SearchInput as D } from "./components/Input/SearchInput/SearchInput.es.js";
12
+ import { Input as V } from "./components/Input/BaseInput/Input.es.js";
13
+ import { CopyInput as C } from "./components/Input/CopyInput/CopyInput.es.js";
14
+ import { SearchInput as O } from "./components/Input/SearchInput/SearchInput.es.js";
15
15
  import { MenuTrigger as W } from "./components/Menu/MenuTrigger.es.js";
16
16
  import { Modal as k } from "./components/Modal/Modal.es.js";
17
- import { Popover as z, usePopoverTrigger as G } from "./components/Popover/Popover.es.js";
18
- import { ScreenOverlay as q } from "./components/ScreenOverlay/ScreenOverlay.es.js";
19
- import { Select as H } from "./components/Select/Select.es.js";
20
- import { Switch as K } from "./components/Switch/Switch.es.js";
21
- import { Table as Q } from "./components/Table/Table.es.js";
22
- import { TextEllipsis as X } from "./components/Text/TextEllipsis/TextEllipsis.es.js";
23
- import { TextEmphasis as Z } from "./components/Text/TextEmphasis/TextEmphasis.es.js";
24
- import { ThemeProvider as oo, useTheme as ro } from "./components/ThemeProvider.es.js";
25
- import { Tombstone as to } from "./components/Tombstone/Tombstone.es.js";
26
- import { TooltipTrigger as mo } from "./components/Tooltip/Tooltip.es.js";
27
- import { Waveform as fo } from "./components/Waveform/Waveform.es.js";
17
+ import { Popover as z } from "./components/Popover/Popover.es.js";
18
+ import { ScreenOverlay as j } from "./components/ScreenOverlay/ScreenOverlay.es.js";
19
+ import { Select as F } from "./components/Select/Select.es.js";
20
+ import { Switch as J } from "./components/Switch/Switch.es.js";
21
+ import { Table as L } from "./components/Table/Table.es.js";
22
+ import { TextEllipsis as U } from "./components/Text/TextEllipsis/TextEllipsis.es.js";
23
+ import { TextEmphasis as Y } from "./components/Text/TextEmphasis/TextEmphasis.es.js";
24
+ import { ThemeProvider as $, useTheme as oo } from "./components/ThemeProvider.es.js";
25
+ import { Tombstone as eo } from "./components/Tombstone/Tombstone.es.js";
26
+ import { TooltipTrigger as po } from "./components/Tooltip/Tooltip.es.js";
27
+ import { Waveform as xo } from "./components/Waveform/Waveform.es.js";
28
28
  export {
29
29
  e as ActionMenu,
30
30
  f as BANNER_ICONS,
@@ -33,32 +33,31 @@ export {
33
33
  m as BadgeVariants,
34
34
  n as Banner,
35
35
  u as Button,
36
- B as ButtonGroup,
37
- T as ButtonSizes,
38
- g as ButtonVariants,
36
+ g as ButtonGroup,
37
+ l as ButtonSizes,
38
+ B as ButtonVariants,
39
39
  c as ButtonWithSelect,
40
- y as CopyInput,
40
+ C as CopyInput,
41
41
  I as DataTable,
42
- v as Dialog,
43
- d as Elevation,
42
+ N as Dialog,
43
+ v as Elevation,
44
44
  E as Icon,
45
45
  M as ImageBackground,
46
- R as Input,
46
+ V as Input,
47
47
  W as MenuTrigger,
48
48
  k as Modal,
49
49
  z as Popover,
50
- q as ScreenOverlay,
51
- D as SearchInput,
52
- H as Select,
53
- K as Switch,
54
- Q as Table,
55
- X as TextEllipsis,
56
- Z as TextEmphasis,
57
- oo as ThemeProvider,
58
- to as Tombstone,
59
- mo as TooltipTrigger,
60
- fo as Waveform,
61
- G as usePopoverTrigger,
62
- ro as useTheme
50
+ j as ScreenOverlay,
51
+ O as SearchInput,
52
+ F as Select,
53
+ J as Switch,
54
+ L as Table,
55
+ U as TextEllipsis,
56
+ Y as TextEmphasis,
57
+ $ as ThemeProvider,
58
+ eo as Tombstone,
59
+ po as TooltipTrigger,
60
+ xo as Waveform,
61
+ oo as useTheme
63
62
  };
64
63
  //# sourceMappingURL=index.es.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./utils.cjs.js"),i=require("@react-aria/utils");let a=null,L=new Set,f=new Map,u=!1,c=!1;function s(e,n){for(let t of L)t(e,n)}function y(e){return!(e.metaKey||!i.isMac()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function d(e){u=!0,y(e)&&(a="keyboard",s("keyboard",e))}function o(e){a="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(u=!0,s("pointer",e))}function b(e){i.isVirtualClick(e)&&(u=!0,a="virtual")}function $(e){e.target===window||e.target===document||l.ignoreFocusEvent||!e.isTrusted||(!u&&!c&&(a="virtual",s("virtual",e)),u=!1,c=!1)}function E(){l.ignoreFocusEvent||(u=!1,c=!0)}function v(e){if(typeof window>"u"||f.get(i.getOwnerWindow(e)))return;const n=i.getOwnerWindow(e),t=i.getOwnerDocument(e);let r=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){u=!0,r.apply(this,arguments)},t.addEventListener("keydown",d,!0),t.addEventListener("keyup",d,!0),t.addEventListener("click",b,!0),n.addEventListener("focus",$,!0),n.addEventListener("blur",E,!1),typeof PointerEvent<"u"?(t.addEventListener("pointerdown",o,!0),t.addEventListener("pointermove",o,!0),t.addEventListener("pointerup",o,!0)):process.env.NODE_ENV==="test"&&(t.addEventListener("mousedown",o,!0),t.addEventListener("mousemove",o,!0),t.addEventListener("mouseup",o,!0)),n.addEventListener("beforeunload",()=>{p(e)},{once:!0}),f.set(n,{focus:r})}const p=(e,n)=>{const t=i.getOwnerWindow(e),r=i.getOwnerDocument(e);n&&r.removeEventListener("DOMContentLoaded",n),f.has(t)&&(t.HTMLElement.prototype.focus=f.get(t).focus,r.removeEventListener("keydown",d,!0),r.removeEventListener("keyup",d,!0),r.removeEventListener("click",b,!0),t.removeEventListener("focus",$,!0),t.removeEventListener("blur",E,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",o,!0),r.removeEventListener("pointermove",o,!0),r.removeEventListener("pointerup",o,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",o,!0),r.removeEventListener("mousemove",o,!0),r.removeEventListener("mouseup",o,!0)),f.delete(t))};function w(e){const n=i.getOwnerDocument(e);let t;return n.readyState!=="loading"?v(e):(t=()=>{v(e)},n.addEventListener("DOMContentLoaded",t)),()=>p(e,t)}typeof document<"u"&&w();function m(){return a!=="pointer"}function g(){return a}function O(e){a=e,s(e,null)}exports.addWindowFocusTracking=w;exports.getInteractionModality=g;exports.hasSetupGlobalListeners=f;exports.isFocusVisible=m;exports.setInteractionModality=O;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./utils.cjs.js"),i=require("@react-aria/utils");let f=null,L=new Set,a=new Map,u=!1,c=!1;function s(e,n){for(let t of L)t(e,n)}function y(e){return!(e.metaKey||!i.isMac()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function d(e){u=!0,y(e)&&(f="keyboard",s("keyboard",e))}function o(e){f="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(u=!0,s("pointer",e))}function $(e){i.isVirtualClick(e)&&(u=!0,f="virtual")}function b(e){e.target===window||e.target===document||l.ignoreFocusEvent||!e.isTrusted||(!u&&!c&&(f="virtual",s("virtual",e)),u=!1,c=!1)}function E(){l.ignoreFocusEvent||(u=!1,c=!0)}function v(e){if(typeof window>"u"||a.get(i.getOwnerWindow(e)))return;const n=i.getOwnerWindow(e),t=i.getOwnerDocument(e);let r=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){u=!0,r.apply(this,arguments)},t.addEventListener("keydown",d,!0),t.addEventListener("keyup",d,!0),t.addEventListener("click",$,!0),n.addEventListener("focus",b,!0),n.addEventListener("blur",E,!1),typeof PointerEvent<"u"?(t.addEventListener("pointerdown",o,!0),t.addEventListener("pointermove",o,!0),t.addEventListener("pointerup",o,!0)):process.env.NODE_ENV==="test"&&(t.addEventListener("mousedown",o,!0),t.addEventListener("mousemove",o,!0),t.addEventListener("mouseup",o,!0)),n.addEventListener("beforeunload",()=>{p(e)},{once:!0}),a.set(n,{focus:r})}const p=(e,n)=>{const t=i.getOwnerWindow(e),r=i.getOwnerDocument(e);n&&r.removeEventListener("DOMContentLoaded",n),a.has(t)&&(t.HTMLElement.prototype.focus=a.get(t).focus,r.removeEventListener("keydown",d,!0),r.removeEventListener("keyup",d,!0),r.removeEventListener("click",$,!0),t.removeEventListener("focus",b,!0),t.removeEventListener("blur",E,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",o,!0),r.removeEventListener("pointermove",o,!0),r.removeEventListener("pointerup",o,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",o,!0),r.removeEventListener("mousemove",o,!0),r.removeEventListener("mouseup",o,!0)),a.delete(t))};function w(e){const n=i.getOwnerDocument(e);let t;return n.readyState!=="loading"?v(e):(t=()=>{v(e)},n.addEventListener("DOMContentLoaded",t)),()=>p(e,t)}typeof document<"u"&&w();function m(){return f}function g(e){f=e,s(e,null)}exports.addWindowFocusTracking=w;exports.getInteractionModality=m;exports.hasSetupGlobalListeners=a;exports.setInteractionModality=g;
2
2
  //# sourceMappingURL=useFocusVisible.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFocusVisible.cjs.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/useFocusVisible.mjs"],"sourcesContent":["import {ignoreFocusEvent as $8a9cb279dc87e130$export$fda7da73ab5d4c48} from \"./utils.mjs\";\nimport {isMac as $28AnR$isMac, isVirtualClick as $28AnR$isVirtualClick, getOwnerWindow as $28AnR$getOwnerWindow, getOwnerDocument as $28AnR$getOwnerDocument} from \"@react-aria/utils\";\nimport {useState as $28AnR$useState, useEffect as $28AnR$useEffect} from \"react\";\nimport {useIsSSR as $28AnR$useIsSSR} from \"@react-aria/ssr\";\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 */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\n\n\nlet $507fabe10e71c6fb$var$currentModality = null;\nlet $507fabe10e71c6fb$var$changeHandlers = new Set();\nlet $507fabe10e71c6fb$export$d90243b58daecda7 = new Map(); // We use a map here to support setting event listeners across multiple document objects.\nlet $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\nlet $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;\n// Only Tab or Esc keys will make focus visible on text input elements\nconst $507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS = {\n Tab: true,\n Escape: true\n};\nfunction $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) {\n for (let handler of $507fabe10e71c6fb$var$changeHandlers)handler(modality, e);\n}\n/**\n * Helper function to determine if a KeyboardEvent is unmodified and could make keyboard focus styles visible.\n */ function $507fabe10e71c6fb$var$isValidKey(e) {\n // Control and Shift keys trigger when navigating back to the tab with keyboard.\n return !(e.metaKey || !(0, $28AnR$isMac)() && e.altKey || e.ctrlKey || e.key === 'Control' || e.key === 'Shift' || e.key === 'Meta');\n}\nfunction $507fabe10e71c6fb$var$handleKeyboardEvent(e) {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n if ($507fabe10e71c6fb$var$isValidKey(e)) {\n $507fabe10e71c6fb$var$currentModality = 'keyboard';\n $507fabe10e71c6fb$var$triggerChangeHandlers('keyboard', e);\n }\n}\nfunction $507fabe10e71c6fb$var$handlePointerEvent(e) {\n $507fabe10e71c6fb$var$currentModality = 'pointer';\n if (e.type === 'mousedown' || e.type === 'pointerdown') {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n $507fabe10e71c6fb$var$triggerChangeHandlers('pointer', e);\n }\n}\nfunction $507fabe10e71c6fb$var$handleClickEvent(e) {\n if ((0, $28AnR$isVirtualClick)(e)) {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n $507fabe10e71c6fb$var$currentModality = 'virtual';\n }\n}\nfunction $507fabe10e71c6fb$var$handleFocusEvent(e) {\n // Firefox fires two extra focus events when the user first clicks into an iframe:\n // first on the window, then on the document. We ignore these events so they don't\n // cause keyboard focus rings to appear.\n if (e.target === window || e.target === document || (0, $8a9cb279dc87e130$export$fda7da73ab5d4c48) || !e.isTrusted) return;\n // If a focus event occurs without a preceding keyboard or pointer event, switch to virtual modality.\n // This occurs, for example, when navigating a form with the next/previous buttons on iOS.\n if (!$507fabe10e71c6fb$var$hasEventBeforeFocus && !$507fabe10e71c6fb$var$hasBlurredWindowRecently) {\n $507fabe10e71c6fb$var$currentModality = 'virtual';\n $507fabe10e71c6fb$var$triggerChangeHandlers('virtual', e);\n }\n $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\n $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;\n}\nfunction $507fabe10e71c6fb$var$handleWindowBlur() {\n if (0, $8a9cb279dc87e130$export$fda7da73ab5d4c48) return;\n // When the window is blurred, reset state. This is necessary when tabbing out of the window,\n // for example, since a subsequent focus event won't be fired.\n $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\n $507fabe10e71c6fb$var$hasBlurredWindowRecently = true;\n}\n/**\n * Setup global event listeners to control when keyboard focus style should be visible.\n */ function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {\n if (typeof window === 'undefined' || $507fabe10e71c6fb$export$d90243b58daecda7.get((0, $28AnR$getOwnerWindow)(element))) return;\n const windowObject = (0, $28AnR$getOwnerWindow)(element);\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n // Programmatic focus() calls shouldn't affect the current input modality.\n // However, we need to detect other cases when a focus event occurs without\n // a preceding user event (e.g. screen reader focus). Overriding the focus\n // method on HTMLElement.prototype is a bit hacky, but works.\n let focus = windowObject.HTMLElement.prototype.focus;\n windowObject.HTMLElement.prototype.focus = function() {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n focus.apply(this, arguments);\n };\n documentObject.addEventListener('keydown', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.addEventListener('keyup', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.addEventListener('click', $507fabe10e71c6fb$var$handleClickEvent, true);\n // Register focus events on the window so they are sure to happen\n // before React's event listeners (registered on the document).\n windowObject.addEventListener('focus', $507fabe10e71c6fb$var$handleFocusEvent, true);\n windowObject.addEventListener('blur', $507fabe10e71c6fb$var$handleWindowBlur, false);\n if (typeof PointerEvent !== 'undefined') {\n documentObject.addEventListener('pointerdown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('pointermove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('pointerup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n } else if (process.env.NODE_ENV === 'test') {\n documentObject.addEventListener('mousedown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('mousemove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('mouseup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n }\n // Add unmount handler\n windowObject.addEventListener('beforeunload', ()=>{\n $507fabe10e71c6fb$var$tearDownWindowFocusTracking(element);\n }, {\n once: true\n });\n $507fabe10e71c6fb$export$d90243b58daecda7.set(windowObject, {\n focus: focus\n });\n}\nconst $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element, loadListener)=>{\n const windowObject = (0, $28AnR$getOwnerWindow)(element);\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n if (loadListener) documentObject.removeEventListener('DOMContentLoaded', loadListener);\n if (!$507fabe10e71c6fb$export$d90243b58daecda7.has(windowObject)) return;\n windowObject.HTMLElement.prototype.focus = $507fabe10e71c6fb$export$d90243b58daecda7.get(windowObject).focus;\n documentObject.removeEventListener('keydown', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.removeEventListener('keyup', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.removeEventListener('click', $507fabe10e71c6fb$var$handleClickEvent, true);\n windowObject.removeEventListener('focus', $507fabe10e71c6fb$var$handleFocusEvent, true);\n windowObject.removeEventListener('blur', $507fabe10e71c6fb$var$handleWindowBlur, false);\n if (typeof PointerEvent !== 'undefined') {\n documentObject.removeEventListener('pointerdown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('pointermove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('pointerup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n } else if (process.env.NODE_ENV === 'test') {\n documentObject.removeEventListener('mousedown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('mousemove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('mouseup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n }\n $507fabe10e71c6fb$export$d90243b58daecda7.delete(windowObject);\n};\nfunction $507fabe10e71c6fb$export$2f1888112f558a7d(element) {\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n let loadListener;\n if (documentObject.readyState !== 'loading') $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);\n else {\n loadListener = ()=>{\n $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);\n };\n documentObject.addEventListener('DOMContentLoaded', loadListener);\n }\n return ()=>$507fabe10e71c6fb$var$tearDownWindowFocusTracking(element, loadListener);\n}\n// Server-side rendering does not have the document object defined\n// eslint-disable-next-line no-restricted-globals\nif (typeof document !== 'undefined') $507fabe10e71c6fb$export$2f1888112f558a7d();\nfunction $507fabe10e71c6fb$export$b9b3dfddab17db27() {\n return $507fabe10e71c6fb$var$currentModality !== 'pointer';\n}\nfunction $507fabe10e71c6fb$export$630ff653c5ada6a9() {\n return $507fabe10e71c6fb$var$currentModality;\n}\nfunction $507fabe10e71c6fb$export$8397ddfc504fdb9a(modality) {\n $507fabe10e71c6fb$var$currentModality = modality;\n $507fabe10e71c6fb$var$triggerChangeHandlers(modality, null);\n}\nfunction $507fabe10e71c6fb$export$98e20ec92f614cfe() {\n $507fabe10e71c6fb$var$setupGlobalFocusEvents();\n let [modality, setModality] = (0, $28AnR$useState)($507fabe10e71c6fb$var$currentModality);\n (0, $28AnR$useEffect)(()=>{\n let handler = ()=>{\n setModality($507fabe10e71c6fb$var$currentModality);\n };\n $507fabe10e71c6fb$var$changeHandlers.add(handler);\n return ()=>{\n $507fabe10e71c6fb$var$changeHandlers.delete(handler);\n };\n }, []);\n return (0, $28AnR$useIsSSR)() ? null : modality;\n}\nconst $507fabe10e71c6fb$var$nonTextInputTypes = new Set([\n 'checkbox',\n 'radio',\n 'range',\n 'color',\n 'file',\n 'image',\n 'button',\n 'submit',\n 'reset'\n]);\n/**\n * If this is attached to text input component, return if the event is a focus event (Tab/Escape keys pressed) so that\n * focus visible style can be properly set.\n */ function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {\n let document1 = (0, $28AnR$getOwnerDocument)(e === null || e === void 0 ? void 0 : e.target);\n const IHTMLInputElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;\n const IHTMLTextAreaElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;\n const IHTMLElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;\n const IKeyboardEvent = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;\n // For keyboard events that occur on a non-input element that will move focus into input element (aka ArrowLeft going from Datepicker button to the main input group)\n // we need to rely on the user passing isTextInput into here. This way we can skip toggling focus visiblity for said input element\n isTextInput = isTextInput || document1.activeElement instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(document1.activeElement.type) || document1.activeElement instanceof IHTMLTextAreaElement || document1.activeElement instanceof IHTMLElement && document1.activeElement.isContentEditable;\n return !(isTextInput && modality === 'keyboard' && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);\n}\nfunction $507fabe10e71c6fb$export$ffd9e5021c1fb2d6(props = {}) {\n let { isTextInput: isTextInput, autoFocus: autoFocus } = props;\n let [isFocusVisibleState, setFocusVisible] = (0, $28AnR$useState)(autoFocus || $507fabe10e71c6fb$export$b9b3dfddab17db27());\n $507fabe10e71c6fb$export$ec71b4b83ac08ec3((isFocusVisible)=>{\n setFocusVisible(isFocusVisible);\n }, [\n isTextInput\n ], {\n isTextInput: isTextInput\n });\n return {\n isFocusVisible: isFocusVisibleState\n };\n}\nfunction $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {\n $507fabe10e71c6fb$var$setupGlobalFocusEvents();\n (0, $28AnR$useEffect)(()=>{\n let handler = (modality, e)=>{\n // We want to early return for any keyboard events that occur inside text inputs EXCEPT for Tab and Escape\n if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(!!(opts === null || opts === void 0 ? void 0 : opts.isTextInput), modality, e)) return;\n fn($507fabe10e71c6fb$export$b9b3dfddab17db27());\n };\n $507fabe10e71c6fb$var$changeHandlers.add(handler);\n return ()=>{\n $507fabe10e71c6fb$var$changeHandlers.delete(handler);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n}\n\n\nexport {$507fabe10e71c6fb$export$d90243b58daecda7 as hasSetupGlobalListeners, $507fabe10e71c6fb$export$2f1888112f558a7d as addWindowFocusTracking, $507fabe10e71c6fb$export$b9b3dfddab17db27 as isFocusVisible, $507fabe10e71c6fb$export$630ff653c5ada6a9 as getInteractionModality, $507fabe10e71c6fb$export$8397ddfc504fdb9a as setInteractionModality, $507fabe10e71c6fb$export$98e20ec92f614cfe as useInteractionModality, $507fabe10e71c6fb$export$ffd9e5021c1fb2d6 as useFocusVisible, $507fabe10e71c6fb$export$ec71b4b83ac08ec3 as useFocusVisibleListener};\n//# sourceMappingURL=useFocusVisible.module.js.map\n"],"names":["$507fabe10e71c6fb$var$currentModality","$507fabe10e71c6fb$var$changeHandlers","$507fabe10e71c6fb$export$d90243b58daecda7","$507fabe10e71c6fb$var$hasEventBeforeFocus","$507fabe10e71c6fb$var$hasBlurredWindowRecently","$507fabe10e71c6fb$var$triggerChangeHandlers","modality","e","handler","$507fabe10e71c6fb$var$isValidKey","$28AnR$isMac","$507fabe10e71c6fb$var$handleKeyboardEvent","$507fabe10e71c6fb$var$handlePointerEvent","$507fabe10e71c6fb$var$handleClickEvent","$28AnR$isVirtualClick","$507fabe10e71c6fb$var$handleFocusEvent","$8a9cb279dc87e130$export$fda7da73ab5d4c48","$507fabe10e71c6fb$var$handleWindowBlur","$507fabe10e71c6fb$var$setupGlobalFocusEvents","element","$28AnR$getOwnerWindow","windowObject","documentObject","$28AnR$getOwnerDocument","focus","$507fabe10e71c6fb$var$tearDownWindowFocusTracking","loadListener","$507fabe10e71c6fb$export$2f1888112f558a7d","$507fabe10e71c6fb$export$b9b3dfddab17db27","$507fabe10e71c6fb$export$630ff653c5ada6a9","$507fabe10e71c6fb$export$8397ddfc504fdb9a"],"mappings":"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","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useFocusVisible.cjs.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/useFocusVisible.mjs"],"sourcesContent":["import {ignoreFocusEvent as $8a9cb279dc87e130$export$fda7da73ab5d4c48} from \"./utils.mjs\";\nimport {isMac as $28AnR$isMac, isVirtualClick as $28AnR$isVirtualClick, getOwnerWindow as $28AnR$getOwnerWindow, getOwnerDocument as $28AnR$getOwnerDocument} from \"@react-aria/utils\";\nimport {useState as $28AnR$useState, useEffect as $28AnR$useEffect} from \"react\";\nimport {useIsSSR as $28AnR$useIsSSR} from \"@react-aria/ssr\";\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 */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\n\n\nlet $507fabe10e71c6fb$var$currentModality = null;\nlet $507fabe10e71c6fb$var$changeHandlers = new Set();\nlet $507fabe10e71c6fb$export$d90243b58daecda7 = new Map(); // We use a map here to support setting event listeners across multiple document objects.\nlet $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\nlet $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;\n// Only Tab or Esc keys will make focus visible on text input elements\nconst $507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS = {\n Tab: true,\n Escape: true\n};\nfunction $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) {\n for (let handler of $507fabe10e71c6fb$var$changeHandlers)handler(modality, e);\n}\n/**\n * Helper function to determine if a KeyboardEvent is unmodified and could make keyboard focus styles visible.\n */ function $507fabe10e71c6fb$var$isValidKey(e) {\n // Control and Shift keys trigger when navigating back to the tab with keyboard.\n return !(e.metaKey || !(0, $28AnR$isMac)() && e.altKey || e.ctrlKey || e.key === 'Control' || e.key === 'Shift' || e.key === 'Meta');\n}\nfunction $507fabe10e71c6fb$var$handleKeyboardEvent(e) {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n if ($507fabe10e71c6fb$var$isValidKey(e)) {\n $507fabe10e71c6fb$var$currentModality = 'keyboard';\n $507fabe10e71c6fb$var$triggerChangeHandlers('keyboard', e);\n }\n}\nfunction $507fabe10e71c6fb$var$handlePointerEvent(e) {\n $507fabe10e71c6fb$var$currentModality = 'pointer';\n if (e.type === 'mousedown' || e.type === 'pointerdown') {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n $507fabe10e71c6fb$var$triggerChangeHandlers('pointer', e);\n }\n}\nfunction $507fabe10e71c6fb$var$handleClickEvent(e) {\n if ((0, $28AnR$isVirtualClick)(e)) {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n $507fabe10e71c6fb$var$currentModality = 'virtual';\n }\n}\nfunction $507fabe10e71c6fb$var$handleFocusEvent(e) {\n // Firefox fires two extra focus events when the user first clicks into an iframe:\n // first on the window, then on the document. We ignore these events so they don't\n // cause keyboard focus rings to appear.\n if (e.target === window || e.target === document || (0, $8a9cb279dc87e130$export$fda7da73ab5d4c48) || !e.isTrusted) return;\n // If a focus event occurs without a preceding keyboard or pointer event, switch to virtual modality.\n // This occurs, for example, when navigating a form with the next/previous buttons on iOS.\n if (!$507fabe10e71c6fb$var$hasEventBeforeFocus && !$507fabe10e71c6fb$var$hasBlurredWindowRecently) {\n $507fabe10e71c6fb$var$currentModality = 'virtual';\n $507fabe10e71c6fb$var$triggerChangeHandlers('virtual', e);\n }\n $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\n $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;\n}\nfunction $507fabe10e71c6fb$var$handleWindowBlur() {\n if (0, $8a9cb279dc87e130$export$fda7da73ab5d4c48) return;\n // When the window is blurred, reset state. This is necessary when tabbing out of the window,\n // for example, since a subsequent focus event won't be fired.\n $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\n $507fabe10e71c6fb$var$hasBlurredWindowRecently = true;\n}\n/**\n * Setup global event listeners to control when keyboard focus style should be visible.\n */ function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {\n if (typeof window === 'undefined' || $507fabe10e71c6fb$export$d90243b58daecda7.get((0, $28AnR$getOwnerWindow)(element))) return;\n const windowObject = (0, $28AnR$getOwnerWindow)(element);\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n // Programmatic focus() calls shouldn't affect the current input modality.\n // However, we need to detect other cases when a focus event occurs without\n // a preceding user event (e.g. screen reader focus). Overriding the focus\n // method on HTMLElement.prototype is a bit hacky, but works.\n let focus = windowObject.HTMLElement.prototype.focus;\n windowObject.HTMLElement.prototype.focus = function() {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n focus.apply(this, arguments);\n };\n documentObject.addEventListener('keydown', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.addEventListener('keyup', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.addEventListener('click', $507fabe10e71c6fb$var$handleClickEvent, true);\n // Register focus events on the window so they are sure to happen\n // before React's event listeners (registered on the document).\n windowObject.addEventListener('focus', $507fabe10e71c6fb$var$handleFocusEvent, true);\n windowObject.addEventListener('blur', $507fabe10e71c6fb$var$handleWindowBlur, false);\n if (typeof PointerEvent !== 'undefined') {\n documentObject.addEventListener('pointerdown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('pointermove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('pointerup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n } else if (process.env.NODE_ENV === 'test') {\n documentObject.addEventListener('mousedown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('mousemove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('mouseup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n }\n // Add unmount handler\n windowObject.addEventListener('beforeunload', ()=>{\n $507fabe10e71c6fb$var$tearDownWindowFocusTracking(element);\n }, {\n once: true\n });\n $507fabe10e71c6fb$export$d90243b58daecda7.set(windowObject, {\n focus: focus\n });\n}\nconst $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element, loadListener)=>{\n const windowObject = (0, $28AnR$getOwnerWindow)(element);\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n if (loadListener) documentObject.removeEventListener('DOMContentLoaded', loadListener);\n if (!$507fabe10e71c6fb$export$d90243b58daecda7.has(windowObject)) return;\n windowObject.HTMLElement.prototype.focus = $507fabe10e71c6fb$export$d90243b58daecda7.get(windowObject).focus;\n documentObject.removeEventListener('keydown', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.removeEventListener('keyup', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.removeEventListener('click', $507fabe10e71c6fb$var$handleClickEvent, true);\n windowObject.removeEventListener('focus', $507fabe10e71c6fb$var$handleFocusEvent, true);\n windowObject.removeEventListener('blur', $507fabe10e71c6fb$var$handleWindowBlur, false);\n if (typeof PointerEvent !== 'undefined') {\n documentObject.removeEventListener('pointerdown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('pointermove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('pointerup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n } else if (process.env.NODE_ENV === 'test') {\n documentObject.removeEventListener('mousedown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('mousemove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('mouseup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n }\n $507fabe10e71c6fb$export$d90243b58daecda7.delete(windowObject);\n};\nfunction $507fabe10e71c6fb$export$2f1888112f558a7d(element) {\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n let loadListener;\n if (documentObject.readyState !== 'loading') $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);\n else {\n loadListener = ()=>{\n $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);\n };\n documentObject.addEventListener('DOMContentLoaded', loadListener);\n }\n return ()=>$507fabe10e71c6fb$var$tearDownWindowFocusTracking(element, loadListener);\n}\n// Server-side rendering does not have the document object defined\n// eslint-disable-next-line no-restricted-globals\nif (typeof document !== 'undefined') $507fabe10e71c6fb$export$2f1888112f558a7d();\nfunction $507fabe10e71c6fb$export$b9b3dfddab17db27() {\n return $507fabe10e71c6fb$var$currentModality !== 'pointer';\n}\nfunction $507fabe10e71c6fb$export$630ff653c5ada6a9() {\n return $507fabe10e71c6fb$var$currentModality;\n}\nfunction $507fabe10e71c6fb$export$8397ddfc504fdb9a(modality) {\n $507fabe10e71c6fb$var$currentModality = modality;\n $507fabe10e71c6fb$var$triggerChangeHandlers(modality, null);\n}\nfunction $507fabe10e71c6fb$export$98e20ec92f614cfe() {\n $507fabe10e71c6fb$var$setupGlobalFocusEvents();\n let [modality, setModality] = (0, $28AnR$useState)($507fabe10e71c6fb$var$currentModality);\n (0, $28AnR$useEffect)(()=>{\n let handler = ()=>{\n setModality($507fabe10e71c6fb$var$currentModality);\n };\n $507fabe10e71c6fb$var$changeHandlers.add(handler);\n return ()=>{\n $507fabe10e71c6fb$var$changeHandlers.delete(handler);\n };\n }, []);\n return (0, $28AnR$useIsSSR)() ? null : modality;\n}\nconst $507fabe10e71c6fb$var$nonTextInputTypes = new Set([\n 'checkbox',\n 'radio',\n 'range',\n 'color',\n 'file',\n 'image',\n 'button',\n 'submit',\n 'reset'\n]);\n/**\n * If this is attached to text input component, return if the event is a focus event (Tab/Escape keys pressed) so that\n * focus visible style can be properly set.\n */ function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {\n let document1 = (0, $28AnR$getOwnerDocument)(e === null || e === void 0 ? void 0 : e.target);\n const IHTMLInputElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;\n const IHTMLTextAreaElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;\n const IHTMLElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;\n const IKeyboardEvent = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;\n // For keyboard events that occur on a non-input element that will move focus into input element (aka ArrowLeft going from Datepicker button to the main input group)\n // we need to rely on the user passing isTextInput into here. This way we can skip toggling focus visiblity for said input element\n isTextInput = isTextInput || document1.activeElement instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(document1.activeElement.type) || document1.activeElement instanceof IHTMLTextAreaElement || document1.activeElement instanceof IHTMLElement && document1.activeElement.isContentEditable;\n return !(isTextInput && modality === 'keyboard' && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);\n}\nfunction $507fabe10e71c6fb$export$ffd9e5021c1fb2d6(props = {}) {\n let { isTextInput: isTextInput, autoFocus: autoFocus } = props;\n let [isFocusVisibleState, setFocusVisible] = (0, $28AnR$useState)(autoFocus || $507fabe10e71c6fb$export$b9b3dfddab17db27());\n $507fabe10e71c6fb$export$ec71b4b83ac08ec3((isFocusVisible)=>{\n setFocusVisible(isFocusVisible);\n }, [\n isTextInput\n ], {\n isTextInput: isTextInput\n });\n return {\n isFocusVisible: isFocusVisibleState\n };\n}\nfunction $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {\n $507fabe10e71c6fb$var$setupGlobalFocusEvents();\n (0, $28AnR$useEffect)(()=>{\n let handler = (modality, e)=>{\n // We want to early return for any keyboard events that occur inside text inputs EXCEPT for Tab and Escape\n if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(!!(opts === null || opts === void 0 ? void 0 : opts.isTextInput), modality, e)) return;\n fn($507fabe10e71c6fb$export$b9b3dfddab17db27());\n };\n $507fabe10e71c6fb$var$changeHandlers.add(handler);\n return ()=>{\n $507fabe10e71c6fb$var$changeHandlers.delete(handler);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n}\n\n\nexport {$507fabe10e71c6fb$export$d90243b58daecda7 as hasSetupGlobalListeners, $507fabe10e71c6fb$export$2f1888112f558a7d as addWindowFocusTracking, $507fabe10e71c6fb$export$b9b3dfddab17db27 as isFocusVisible, $507fabe10e71c6fb$export$630ff653c5ada6a9 as getInteractionModality, $507fabe10e71c6fb$export$8397ddfc504fdb9a as setInteractionModality, $507fabe10e71c6fb$export$98e20ec92f614cfe as useInteractionModality, $507fabe10e71c6fb$export$ffd9e5021c1fb2d6 as useFocusVisible, $507fabe10e71c6fb$export$ec71b4b83ac08ec3 as useFocusVisibleListener};\n//# sourceMappingURL=useFocusVisible.module.js.map\n"],"names":["$507fabe10e71c6fb$var$currentModality","$507fabe10e71c6fb$var$changeHandlers","$507fabe10e71c6fb$export$d90243b58daecda7","$507fabe10e71c6fb$var$hasEventBeforeFocus","$507fabe10e71c6fb$var$hasBlurredWindowRecently","$507fabe10e71c6fb$var$triggerChangeHandlers","modality","e","handler","$507fabe10e71c6fb$var$isValidKey","$28AnR$isMac","$507fabe10e71c6fb$var$handleKeyboardEvent","$507fabe10e71c6fb$var$handlePointerEvent","$507fabe10e71c6fb$var$handleClickEvent","$28AnR$isVirtualClick","$507fabe10e71c6fb$var$handleFocusEvent","$8a9cb279dc87e130$export$fda7da73ab5d4c48","$507fabe10e71c6fb$var$handleWindowBlur","$507fabe10e71c6fb$var$setupGlobalFocusEvents","element","$28AnR$getOwnerWindow","windowObject","documentObject","$28AnR$getOwnerDocument","focus","$507fabe10e71c6fb$var$tearDownWindowFocusTracking","loadListener","$507fabe10e71c6fb$export$2f1888112f558a7d","$507fabe10e71c6fb$export$630ff653c5ada6a9","$507fabe10e71c6fb$export$8397ddfc504fdb9a"],"mappings":"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","x_google_ignoreList":[0]}
@@ -1,4 +1,4 @@
1
- import { ignoreFocusEvent as $ } from "./utils.es.js";
1
+ import { ignoreFocusEvent as l } from "./utils.es.js";
2
2
  import { getOwnerDocument as v, getOwnerWindow as s, isVirtualClick as m, isMac as y } from "@react-aria/utils";
3
3
  let i = null, w = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Map(), a = !1, c = !1;
4
4
  function d(e, n) {
@@ -13,22 +13,22 @@ function u(e) {
13
13
  function o(e) {
14
14
  i = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (a = !0, d("pointer", e));
15
15
  }
16
- function l(e) {
16
+ function b(e) {
17
17
  m(e) && (a = !0, i = "virtual");
18
18
  }
19
19
  function p(e) {
20
- e.target === window || e.target === document || $ || !e.isTrusted || (!a && !c && (i = "virtual", d("virtual", e)), a = !1, c = !1);
20
+ e.target === window || e.target === document || l || !e.isTrusted || (!a && !c && (i = "virtual", d("virtual", e)), a = !1, c = !1);
21
21
  }
22
22
  function E() {
23
- $ || (a = !1, c = !0);
23
+ l || (a = !1, c = !0);
24
24
  }
25
- function b(e) {
25
+ function $(e) {
26
26
  if (typeof window > "u" || f.get(s(e))) return;
27
27
  const n = s(e), t = v(e);
28
28
  let r = n.HTMLElement.prototype.focus;
29
29
  n.HTMLElement.prototype.focus = function() {
30
30
  a = !0, r.apply(this, arguments);
31
- }, t.addEventListener("keydown", u, !0), t.addEventListener("keyup", u, !0), t.addEventListener("click", l, !0), n.addEventListener("focus", p, !0), n.addEventListener("blur", E, !1), typeof PointerEvent < "u" ? (t.addEventListener("pointerdown", o, !0), t.addEventListener("pointermove", o, !0), t.addEventListener("pointerup", o, !0)) : process.env.NODE_ENV === "test" && (t.addEventListener("mousedown", o, !0), t.addEventListener("mousemove", o, !0), t.addEventListener("mouseup", o, !0)), n.addEventListener("beforeunload", () => {
31
+ }, t.addEventListener("keydown", u, !0), t.addEventListener("keyup", u, !0), t.addEventListener("click", b, !0), n.addEventListener("focus", p, !0), n.addEventListener("blur", E, !1), typeof PointerEvent < "u" ? (t.addEventListener("pointerdown", o, !0), t.addEventListener("pointermove", o, !0), t.addEventListener("pointerup", o, !0)) : process.env.NODE_ENV === "test" && (t.addEventListener("mousedown", o, !0), t.addEventListener("mousemove", o, !0), t.addEventListener("mouseup", o, !0)), n.addEventListener("beforeunload", () => {
32
32
  L(e);
33
33
  }, {
34
34
  once: !0
@@ -38,30 +38,26 @@ function b(e) {
38
38
  }
39
39
  const L = (e, n) => {
40
40
  const t = s(e), r = v(e);
41
- n && r.removeEventListener("DOMContentLoaded", n), f.has(t) && (t.HTMLElement.prototype.focus = f.get(t).focus, r.removeEventListener("keydown", u, !0), r.removeEventListener("keyup", u, !0), r.removeEventListener("click", l, !0), t.removeEventListener("focus", p, !0), t.removeEventListener("blur", E, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", o, !0), r.removeEventListener("pointermove", o, !0), r.removeEventListener("pointerup", o, !0)) : process.env.NODE_ENV === "test" && (r.removeEventListener("mousedown", o, !0), r.removeEventListener("mousemove", o, !0), r.removeEventListener("mouseup", o, !0)), f.delete(t));
41
+ n && r.removeEventListener("DOMContentLoaded", n), f.has(t) && (t.HTMLElement.prototype.focus = f.get(t).focus, r.removeEventListener("keydown", u, !0), r.removeEventListener("keyup", u, !0), r.removeEventListener("click", b, !0), t.removeEventListener("focus", p, !0), t.removeEventListener("blur", E, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", o, !0), r.removeEventListener("pointermove", o, !0), r.removeEventListener("pointerup", o, !0)) : process.env.NODE_ENV === "test" && (r.removeEventListener("mousedown", o, !0), r.removeEventListener("mousemove", o, !0), r.removeEventListener("mouseup", o, !0)), f.delete(t));
42
42
  };
43
43
  function k(e) {
44
44
  const n = v(e);
45
45
  let t;
46
- return n.readyState !== "loading" ? b(e) : (t = () => {
47
- b(e);
46
+ return n.readyState !== "loading" ? $(e) : (t = () => {
47
+ $(e);
48
48
  }, n.addEventListener("DOMContentLoaded", t)), () => L(e, t);
49
49
  }
50
50
  typeof document < "u" && k();
51
51
  function O() {
52
- return i !== "pointer";
53
- }
54
- function x() {
55
52
  return i;
56
53
  }
57
- function F(e) {
54
+ function x(e) {
58
55
  i = e, d(e, null);
59
56
  }
60
57
  export {
61
58
  k as addWindowFocusTracking,
62
- x as getInteractionModality,
59
+ O as getInteractionModality,
63
60
  f as hasSetupGlobalListeners,
64
- O as isFocusVisible,
65
- F as setInteractionModality
61
+ x as setInteractionModality
66
62
  };
67
63
  //# sourceMappingURL=useFocusVisible.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFocusVisible.es.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/useFocusVisible.mjs"],"sourcesContent":["import {ignoreFocusEvent as $8a9cb279dc87e130$export$fda7da73ab5d4c48} from \"./utils.mjs\";\nimport {isMac as $28AnR$isMac, isVirtualClick as $28AnR$isVirtualClick, getOwnerWindow as $28AnR$getOwnerWindow, getOwnerDocument as $28AnR$getOwnerDocument} from \"@react-aria/utils\";\nimport {useState as $28AnR$useState, useEffect as $28AnR$useEffect} from \"react\";\nimport {useIsSSR as $28AnR$useIsSSR} from \"@react-aria/ssr\";\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 */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\n\n\nlet $507fabe10e71c6fb$var$currentModality = null;\nlet $507fabe10e71c6fb$var$changeHandlers = new Set();\nlet $507fabe10e71c6fb$export$d90243b58daecda7 = new Map(); // We use a map here to support setting event listeners across multiple document objects.\nlet $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\nlet $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;\n// Only Tab or Esc keys will make focus visible on text input elements\nconst $507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS = {\n Tab: true,\n Escape: true\n};\nfunction $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) {\n for (let handler of $507fabe10e71c6fb$var$changeHandlers)handler(modality, e);\n}\n/**\n * Helper function to determine if a KeyboardEvent is unmodified and could make keyboard focus styles visible.\n */ function $507fabe10e71c6fb$var$isValidKey(e) {\n // Control and Shift keys trigger when navigating back to the tab with keyboard.\n return !(e.metaKey || !(0, $28AnR$isMac)() && e.altKey || e.ctrlKey || e.key === 'Control' || e.key === 'Shift' || e.key === 'Meta');\n}\nfunction $507fabe10e71c6fb$var$handleKeyboardEvent(e) {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n if ($507fabe10e71c6fb$var$isValidKey(e)) {\n $507fabe10e71c6fb$var$currentModality = 'keyboard';\n $507fabe10e71c6fb$var$triggerChangeHandlers('keyboard', e);\n }\n}\nfunction $507fabe10e71c6fb$var$handlePointerEvent(e) {\n $507fabe10e71c6fb$var$currentModality = 'pointer';\n if (e.type === 'mousedown' || e.type === 'pointerdown') {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n $507fabe10e71c6fb$var$triggerChangeHandlers('pointer', e);\n }\n}\nfunction $507fabe10e71c6fb$var$handleClickEvent(e) {\n if ((0, $28AnR$isVirtualClick)(e)) {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n $507fabe10e71c6fb$var$currentModality = 'virtual';\n }\n}\nfunction $507fabe10e71c6fb$var$handleFocusEvent(e) {\n // Firefox fires two extra focus events when the user first clicks into an iframe:\n // first on the window, then on the document. We ignore these events so they don't\n // cause keyboard focus rings to appear.\n if (e.target === window || e.target === document || (0, $8a9cb279dc87e130$export$fda7da73ab5d4c48) || !e.isTrusted) return;\n // If a focus event occurs without a preceding keyboard or pointer event, switch to virtual modality.\n // This occurs, for example, when navigating a form with the next/previous buttons on iOS.\n if (!$507fabe10e71c6fb$var$hasEventBeforeFocus && !$507fabe10e71c6fb$var$hasBlurredWindowRecently) {\n $507fabe10e71c6fb$var$currentModality = 'virtual';\n $507fabe10e71c6fb$var$triggerChangeHandlers('virtual', e);\n }\n $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\n $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;\n}\nfunction $507fabe10e71c6fb$var$handleWindowBlur() {\n if (0, $8a9cb279dc87e130$export$fda7da73ab5d4c48) return;\n // When the window is blurred, reset state. This is necessary when tabbing out of the window,\n // for example, since a subsequent focus event won't be fired.\n $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\n $507fabe10e71c6fb$var$hasBlurredWindowRecently = true;\n}\n/**\n * Setup global event listeners to control when keyboard focus style should be visible.\n */ function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {\n if (typeof window === 'undefined' || $507fabe10e71c6fb$export$d90243b58daecda7.get((0, $28AnR$getOwnerWindow)(element))) return;\n const windowObject = (0, $28AnR$getOwnerWindow)(element);\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n // Programmatic focus() calls shouldn't affect the current input modality.\n // However, we need to detect other cases when a focus event occurs without\n // a preceding user event (e.g. screen reader focus). Overriding the focus\n // method on HTMLElement.prototype is a bit hacky, but works.\n let focus = windowObject.HTMLElement.prototype.focus;\n windowObject.HTMLElement.prototype.focus = function() {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n focus.apply(this, arguments);\n };\n documentObject.addEventListener('keydown', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.addEventListener('keyup', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.addEventListener('click', $507fabe10e71c6fb$var$handleClickEvent, true);\n // Register focus events on the window so they are sure to happen\n // before React's event listeners (registered on the document).\n windowObject.addEventListener('focus', $507fabe10e71c6fb$var$handleFocusEvent, true);\n windowObject.addEventListener('blur', $507fabe10e71c6fb$var$handleWindowBlur, false);\n if (typeof PointerEvent !== 'undefined') {\n documentObject.addEventListener('pointerdown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('pointermove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('pointerup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n } else if (process.env.NODE_ENV === 'test') {\n documentObject.addEventListener('mousedown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('mousemove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('mouseup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n }\n // Add unmount handler\n windowObject.addEventListener('beforeunload', ()=>{\n $507fabe10e71c6fb$var$tearDownWindowFocusTracking(element);\n }, {\n once: true\n });\n $507fabe10e71c6fb$export$d90243b58daecda7.set(windowObject, {\n focus: focus\n });\n}\nconst $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element, loadListener)=>{\n const windowObject = (0, $28AnR$getOwnerWindow)(element);\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n if (loadListener) documentObject.removeEventListener('DOMContentLoaded', loadListener);\n if (!$507fabe10e71c6fb$export$d90243b58daecda7.has(windowObject)) return;\n windowObject.HTMLElement.prototype.focus = $507fabe10e71c6fb$export$d90243b58daecda7.get(windowObject).focus;\n documentObject.removeEventListener('keydown', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.removeEventListener('keyup', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.removeEventListener('click', $507fabe10e71c6fb$var$handleClickEvent, true);\n windowObject.removeEventListener('focus', $507fabe10e71c6fb$var$handleFocusEvent, true);\n windowObject.removeEventListener('blur', $507fabe10e71c6fb$var$handleWindowBlur, false);\n if (typeof PointerEvent !== 'undefined') {\n documentObject.removeEventListener('pointerdown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('pointermove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('pointerup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n } else if (process.env.NODE_ENV === 'test') {\n documentObject.removeEventListener('mousedown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('mousemove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('mouseup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n }\n $507fabe10e71c6fb$export$d90243b58daecda7.delete(windowObject);\n};\nfunction $507fabe10e71c6fb$export$2f1888112f558a7d(element) {\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n let loadListener;\n if (documentObject.readyState !== 'loading') $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);\n else {\n loadListener = ()=>{\n $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);\n };\n documentObject.addEventListener('DOMContentLoaded', loadListener);\n }\n return ()=>$507fabe10e71c6fb$var$tearDownWindowFocusTracking(element, loadListener);\n}\n// Server-side rendering does not have the document object defined\n// eslint-disable-next-line no-restricted-globals\nif (typeof document !== 'undefined') $507fabe10e71c6fb$export$2f1888112f558a7d();\nfunction $507fabe10e71c6fb$export$b9b3dfddab17db27() {\n return $507fabe10e71c6fb$var$currentModality !== 'pointer';\n}\nfunction $507fabe10e71c6fb$export$630ff653c5ada6a9() {\n return $507fabe10e71c6fb$var$currentModality;\n}\nfunction $507fabe10e71c6fb$export$8397ddfc504fdb9a(modality) {\n $507fabe10e71c6fb$var$currentModality = modality;\n $507fabe10e71c6fb$var$triggerChangeHandlers(modality, null);\n}\nfunction $507fabe10e71c6fb$export$98e20ec92f614cfe() {\n $507fabe10e71c6fb$var$setupGlobalFocusEvents();\n let [modality, setModality] = (0, $28AnR$useState)($507fabe10e71c6fb$var$currentModality);\n (0, $28AnR$useEffect)(()=>{\n let handler = ()=>{\n setModality($507fabe10e71c6fb$var$currentModality);\n };\n $507fabe10e71c6fb$var$changeHandlers.add(handler);\n return ()=>{\n $507fabe10e71c6fb$var$changeHandlers.delete(handler);\n };\n }, []);\n return (0, $28AnR$useIsSSR)() ? null : modality;\n}\nconst $507fabe10e71c6fb$var$nonTextInputTypes = new Set([\n 'checkbox',\n 'radio',\n 'range',\n 'color',\n 'file',\n 'image',\n 'button',\n 'submit',\n 'reset'\n]);\n/**\n * If this is attached to text input component, return if the event is a focus event (Tab/Escape keys pressed) so that\n * focus visible style can be properly set.\n */ function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {\n let document1 = (0, $28AnR$getOwnerDocument)(e === null || e === void 0 ? void 0 : e.target);\n const IHTMLInputElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;\n const IHTMLTextAreaElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;\n const IHTMLElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;\n const IKeyboardEvent = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;\n // For keyboard events that occur on a non-input element that will move focus into input element (aka ArrowLeft going from Datepicker button to the main input group)\n // we need to rely on the user passing isTextInput into here. This way we can skip toggling focus visiblity for said input element\n isTextInput = isTextInput || document1.activeElement instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(document1.activeElement.type) || document1.activeElement instanceof IHTMLTextAreaElement || document1.activeElement instanceof IHTMLElement && document1.activeElement.isContentEditable;\n return !(isTextInput && modality === 'keyboard' && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);\n}\nfunction $507fabe10e71c6fb$export$ffd9e5021c1fb2d6(props = {}) {\n let { isTextInput: isTextInput, autoFocus: autoFocus } = props;\n let [isFocusVisibleState, setFocusVisible] = (0, $28AnR$useState)(autoFocus || $507fabe10e71c6fb$export$b9b3dfddab17db27());\n $507fabe10e71c6fb$export$ec71b4b83ac08ec3((isFocusVisible)=>{\n setFocusVisible(isFocusVisible);\n }, [\n isTextInput\n ], {\n isTextInput: isTextInput\n });\n return {\n isFocusVisible: isFocusVisibleState\n };\n}\nfunction $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {\n $507fabe10e71c6fb$var$setupGlobalFocusEvents();\n (0, $28AnR$useEffect)(()=>{\n let handler = (modality, e)=>{\n // We want to early return for any keyboard events that occur inside text inputs EXCEPT for Tab and Escape\n if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(!!(opts === null || opts === void 0 ? void 0 : opts.isTextInput), modality, e)) return;\n fn($507fabe10e71c6fb$export$b9b3dfddab17db27());\n };\n $507fabe10e71c6fb$var$changeHandlers.add(handler);\n return ()=>{\n $507fabe10e71c6fb$var$changeHandlers.delete(handler);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n}\n\n\nexport {$507fabe10e71c6fb$export$d90243b58daecda7 as hasSetupGlobalListeners, $507fabe10e71c6fb$export$2f1888112f558a7d as addWindowFocusTracking, $507fabe10e71c6fb$export$b9b3dfddab17db27 as isFocusVisible, $507fabe10e71c6fb$export$630ff653c5ada6a9 as getInteractionModality, $507fabe10e71c6fb$export$8397ddfc504fdb9a as setInteractionModality, $507fabe10e71c6fb$export$98e20ec92f614cfe as useInteractionModality, $507fabe10e71c6fb$export$ffd9e5021c1fb2d6 as useFocusVisible, $507fabe10e71c6fb$export$ec71b4b83ac08ec3 as useFocusVisibleListener};\n//# sourceMappingURL=useFocusVisible.module.js.map\n"],"names":["$507fabe10e71c6fb$var$currentModality","$507fabe10e71c6fb$var$changeHandlers","$507fabe10e71c6fb$export$d90243b58daecda7","$507fabe10e71c6fb$var$hasEventBeforeFocus","$507fabe10e71c6fb$var$hasBlurredWindowRecently","$507fabe10e71c6fb$var$triggerChangeHandlers","modality","e","handler","$507fabe10e71c6fb$var$isValidKey","$28AnR$isMac","$507fabe10e71c6fb$var$handleKeyboardEvent","$507fabe10e71c6fb$var$handlePointerEvent","$507fabe10e71c6fb$var$handleClickEvent","$28AnR$isVirtualClick","$507fabe10e71c6fb$var$handleFocusEvent","$8a9cb279dc87e130$export$fda7da73ab5d4c48","$507fabe10e71c6fb$var$handleWindowBlur","$507fabe10e71c6fb$var$setupGlobalFocusEvents","element","$28AnR$getOwnerWindow","windowObject","documentObject","$28AnR$getOwnerDocument","focus","$507fabe10e71c6fb$var$tearDownWindowFocusTracking","loadListener","$507fabe10e71c6fb$export$2f1888112f558a7d","$507fabe10e71c6fb$export$b9b3dfddab17db27","$507fabe10e71c6fb$export$630ff653c5ada6a9","$507fabe10e71c6fb$export$8397ddfc504fdb9a"],"mappings":";;AAuBA,IAAIA,IAAwC,MACxCC,IAAuC,oBAAI,OAC3CC,IAA4C,oBAAI,IAAM,GACtDC,IAA4C,IAC5CC,IAAiD;AAMrD,SAASC,EAA4CC,GAAUC,GAAG;AAC9D,WAASC,KAAWP,EAAqC,CAAAO,EAAQF,GAAUC,CAAC;AAChF;AAGI,SAASE,EAAiC,GAAG;AAE7C,SAAO,EAAE,EAAE,WAAW,CAAKC,EAAY,KAAO,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,aAAa,EAAE,QAAQ,WAAW,EAAE,QAAQ;AACjI;AACA,SAASC,EAA0C,GAAG;AAClD,EAAAR,IAA4C,IACxCM,EAAiC,CAAC,MAClCT,IAAwC,YACxCK,EAA4C,YAAY,CAAC;AAEjE;AACA,SAASO,EAAyC,GAAG;AACjD,EAAAZ,IAAwC,YACpC,EAAE,SAAS,eAAe,EAAE,SAAS,mBACrCG,IAA4C,IAC5CE,EAA4C,WAAW,CAAC;AAEhE;AACA,SAASQ,EAAuC,GAAG;AAC/C,EAAQC,EAAuB,CAAC,MAC5BX,IAA4C,IAC5CH,IAAwC;AAEhD;AACA,SAASe,EAAuC,GAAG;AAI/C,EAAI,EAAE,WAAW,UAAU,EAAE,WAAW,YAAgBC,KAA8C,CAAC,EAAE,cAGrG,CAACb,KAA6C,CAACC,MAC/CJ,IAAwC,WACxCK,EAA4C,WAAW,CAAC,IAE5DF,IAA4C,IAC5CC,IAAiD;AACrD;AACA,SAASa,IAAyC;AAC9C,EAAOD,MAGPb,IAA4C,IAC5CC,IAAiD;AACrD;AAGI,SAASc,EAA6CC,GAAS;AAC/D,MAAI,OAAO,SAAW,OAAejB,EAA0C,IAAQkB,EAAuBD,CAAO,CAAC,EAAG;AACzH,QAAME,IAAmBD,EAAuBD,CAAO,GACjDG,IAAqBC,EAAyBJ,CAAO;AAK3D,MAAIK,IAAQH,EAAa,YAAY,UAAU;AAC/C,EAAAA,EAAa,YAAY,UAAU,QAAQ,WAAW;AAClD,IAAAlB,IAA4C,IAC5CqB,EAAM,MAAM,MAAM,SAAS;AAAA,EACnC,GACIF,EAAe,iBAAiB,WAAWX,GAA2C,EAAI,GAC1FW,EAAe,iBAAiB,SAASX,GAA2C,EAAI,GACxFW,EAAe,iBAAiB,SAAST,GAAwC,EAAI,GAGrFQ,EAAa,iBAAiB,SAASN,GAAwC,EAAI,GACnFM,EAAa,iBAAiB,QAAQJ,GAAwC,EAAK,GAC/E,OAAO,eAAiB,OACxBK,EAAe,iBAAiB,eAAeV,GAA0C,EAAI,GAC7FU,EAAe,iBAAiB,eAAeV,GAA0C,EAAI,GAC7FU,EAAe,iBAAiB,aAAaV,GAA0C,EAAI,KACpF,QAAQ,IAAI,aAAa,WAChCU,EAAe,iBAAiB,aAAaV,GAA0C,EAAI,GAC3FU,EAAe,iBAAiB,aAAaV,GAA0C,EAAI,GAC3FU,EAAe,iBAAiB,WAAWV,GAA0C,EAAI,IAG7FS,EAAa,iBAAiB,gBAAgB,MAAI;AAC9C,IAAAI,EAAkDN,CAAO;AAAA,EACjE,GAAO;AAAA,IACC,MAAM;AAAA,EACd,CAAK,GACDjB,EAA0C,IAAImB,GAAc;AAAA,IACxD,OAAOG;AAAA,EACf,CAAK;AACL;AACA,MAAMC,IAAoD,CAACN,GAASO,MAAe;AAC/E,QAAML,IAAmBD,EAAuBD,CAAO,GACjDG,IAAqBC,EAAyBJ,CAAO;AAE3D,EADIO,KAAcJ,EAAe,oBAAoB,oBAAoBI,CAAY,GAChFxB,EAA0C,IAAImB,CAAY,MAC/DA,EAAa,YAAY,UAAU,QAAQnB,EAA0C,IAAImB,CAAY,EAAE,OACvGC,EAAe,oBAAoB,WAAWX,GAA2C,EAAI,GAC7FW,EAAe,oBAAoB,SAASX,GAA2C,EAAI,GAC3FW,EAAe,oBAAoB,SAAST,GAAwC,EAAI,GACxFQ,EAAa,oBAAoB,SAASN,GAAwC,EAAI,GACtFM,EAAa,oBAAoB,QAAQJ,GAAwC,EAAK,GAClF,OAAO,eAAiB,OACxBK,EAAe,oBAAoB,eAAeV,GAA0C,EAAI,GAChGU,EAAe,oBAAoB,eAAeV,GAA0C,EAAI,GAChGU,EAAe,oBAAoB,aAAaV,GAA0C,EAAI,KACvF,QAAQ,IAAI,aAAa,WAChCU,EAAe,oBAAoB,aAAaV,GAA0C,EAAI,GAC9FU,EAAe,oBAAoB,aAAaV,GAA0C,EAAI,GAC9FU,EAAe,oBAAoB,WAAWV,GAA0C,EAAI,IAEhGV,EAA0C,OAAOmB,CAAY;AACjE;AACA,SAASM,EAA0CR,GAAS;AACxD,QAAMG,IAAqBC,EAAyBJ,CAAO;AAC3D,MAAIO;AACJ,SAAIJ,EAAe,eAAe,YAAWJ,EAA6CC,CAAO,KAE7FO,IAAe,MAAI;AACf,IAAAR,EAA6CC,CAAO;AAAA,EAChE,GACQG,EAAe,iBAAiB,oBAAoBI,CAAY,IAE7D,MAAID,EAAkDN,GAASO,CAAY;AACtF;AAGI,OAAO,WAAa,OAAaC;AACrC,SAASC,IAA4C;AACjD,SAAO5B,MAA0C;AACrD;AACA,SAAS6B,IAA4C;AACjD,SAAO7B;AACX;AACA,SAAS8B,EAA0CxB,GAAU;AACzD,EAAAN,IAAwCM,GACxCD,EAA4CC,GAAU,IAAI;AAC9D;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useFocusVisible.es.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/useFocusVisible.mjs"],"sourcesContent":["import {ignoreFocusEvent as $8a9cb279dc87e130$export$fda7da73ab5d4c48} from \"./utils.mjs\";\nimport {isMac as $28AnR$isMac, isVirtualClick as $28AnR$isVirtualClick, getOwnerWindow as $28AnR$getOwnerWindow, getOwnerDocument as $28AnR$getOwnerDocument} from \"@react-aria/utils\";\nimport {useState as $28AnR$useState, useEffect as $28AnR$useEffect} from \"react\";\nimport {useIsSSR as $28AnR$useIsSSR} from \"@react-aria/ssr\";\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 */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\n\n\nlet $507fabe10e71c6fb$var$currentModality = null;\nlet $507fabe10e71c6fb$var$changeHandlers = new Set();\nlet $507fabe10e71c6fb$export$d90243b58daecda7 = new Map(); // We use a map here to support setting event listeners across multiple document objects.\nlet $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\nlet $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;\n// Only Tab or Esc keys will make focus visible on text input elements\nconst $507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS = {\n Tab: true,\n Escape: true\n};\nfunction $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) {\n for (let handler of $507fabe10e71c6fb$var$changeHandlers)handler(modality, e);\n}\n/**\n * Helper function to determine if a KeyboardEvent is unmodified and could make keyboard focus styles visible.\n */ function $507fabe10e71c6fb$var$isValidKey(e) {\n // Control and Shift keys trigger when navigating back to the tab with keyboard.\n return !(e.metaKey || !(0, $28AnR$isMac)() && e.altKey || e.ctrlKey || e.key === 'Control' || e.key === 'Shift' || e.key === 'Meta');\n}\nfunction $507fabe10e71c6fb$var$handleKeyboardEvent(e) {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n if ($507fabe10e71c6fb$var$isValidKey(e)) {\n $507fabe10e71c6fb$var$currentModality = 'keyboard';\n $507fabe10e71c6fb$var$triggerChangeHandlers('keyboard', e);\n }\n}\nfunction $507fabe10e71c6fb$var$handlePointerEvent(e) {\n $507fabe10e71c6fb$var$currentModality = 'pointer';\n if (e.type === 'mousedown' || e.type === 'pointerdown') {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n $507fabe10e71c6fb$var$triggerChangeHandlers('pointer', e);\n }\n}\nfunction $507fabe10e71c6fb$var$handleClickEvent(e) {\n if ((0, $28AnR$isVirtualClick)(e)) {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n $507fabe10e71c6fb$var$currentModality = 'virtual';\n }\n}\nfunction $507fabe10e71c6fb$var$handleFocusEvent(e) {\n // Firefox fires two extra focus events when the user first clicks into an iframe:\n // first on the window, then on the document. We ignore these events so they don't\n // cause keyboard focus rings to appear.\n if (e.target === window || e.target === document || (0, $8a9cb279dc87e130$export$fda7da73ab5d4c48) || !e.isTrusted) return;\n // If a focus event occurs without a preceding keyboard or pointer event, switch to virtual modality.\n // This occurs, for example, when navigating a form with the next/previous buttons on iOS.\n if (!$507fabe10e71c6fb$var$hasEventBeforeFocus && !$507fabe10e71c6fb$var$hasBlurredWindowRecently) {\n $507fabe10e71c6fb$var$currentModality = 'virtual';\n $507fabe10e71c6fb$var$triggerChangeHandlers('virtual', e);\n }\n $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\n $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;\n}\nfunction $507fabe10e71c6fb$var$handleWindowBlur() {\n if (0, $8a9cb279dc87e130$export$fda7da73ab5d4c48) return;\n // When the window is blurred, reset state. This is necessary when tabbing out of the window,\n // for example, since a subsequent focus event won't be fired.\n $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\n $507fabe10e71c6fb$var$hasBlurredWindowRecently = true;\n}\n/**\n * Setup global event listeners to control when keyboard focus style should be visible.\n */ function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {\n if (typeof window === 'undefined' || $507fabe10e71c6fb$export$d90243b58daecda7.get((0, $28AnR$getOwnerWindow)(element))) return;\n const windowObject = (0, $28AnR$getOwnerWindow)(element);\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n // Programmatic focus() calls shouldn't affect the current input modality.\n // However, we need to detect other cases when a focus event occurs without\n // a preceding user event (e.g. screen reader focus). Overriding the focus\n // method on HTMLElement.prototype is a bit hacky, but works.\n let focus = windowObject.HTMLElement.prototype.focus;\n windowObject.HTMLElement.prototype.focus = function() {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n focus.apply(this, arguments);\n };\n documentObject.addEventListener('keydown', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.addEventListener('keyup', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.addEventListener('click', $507fabe10e71c6fb$var$handleClickEvent, true);\n // Register focus events on the window so they are sure to happen\n // before React's event listeners (registered on the document).\n windowObject.addEventListener('focus', $507fabe10e71c6fb$var$handleFocusEvent, true);\n windowObject.addEventListener('blur', $507fabe10e71c6fb$var$handleWindowBlur, false);\n if (typeof PointerEvent !== 'undefined') {\n documentObject.addEventListener('pointerdown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('pointermove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('pointerup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n } else if (process.env.NODE_ENV === 'test') {\n documentObject.addEventListener('mousedown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('mousemove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('mouseup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n }\n // Add unmount handler\n windowObject.addEventListener('beforeunload', ()=>{\n $507fabe10e71c6fb$var$tearDownWindowFocusTracking(element);\n }, {\n once: true\n });\n $507fabe10e71c6fb$export$d90243b58daecda7.set(windowObject, {\n focus: focus\n });\n}\nconst $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element, loadListener)=>{\n const windowObject = (0, $28AnR$getOwnerWindow)(element);\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n if (loadListener) documentObject.removeEventListener('DOMContentLoaded', loadListener);\n if (!$507fabe10e71c6fb$export$d90243b58daecda7.has(windowObject)) return;\n windowObject.HTMLElement.prototype.focus = $507fabe10e71c6fb$export$d90243b58daecda7.get(windowObject).focus;\n documentObject.removeEventListener('keydown', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.removeEventListener('keyup', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.removeEventListener('click', $507fabe10e71c6fb$var$handleClickEvent, true);\n windowObject.removeEventListener('focus', $507fabe10e71c6fb$var$handleFocusEvent, true);\n windowObject.removeEventListener('blur', $507fabe10e71c6fb$var$handleWindowBlur, false);\n if (typeof PointerEvent !== 'undefined') {\n documentObject.removeEventListener('pointerdown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('pointermove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('pointerup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n } else if (process.env.NODE_ENV === 'test') {\n documentObject.removeEventListener('mousedown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('mousemove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('mouseup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n }\n $507fabe10e71c6fb$export$d90243b58daecda7.delete(windowObject);\n};\nfunction $507fabe10e71c6fb$export$2f1888112f558a7d(element) {\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n let loadListener;\n if (documentObject.readyState !== 'loading') $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);\n else {\n loadListener = ()=>{\n $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);\n };\n documentObject.addEventListener('DOMContentLoaded', loadListener);\n }\n return ()=>$507fabe10e71c6fb$var$tearDownWindowFocusTracking(element, loadListener);\n}\n// Server-side rendering does not have the document object defined\n// eslint-disable-next-line no-restricted-globals\nif (typeof document !== 'undefined') $507fabe10e71c6fb$export$2f1888112f558a7d();\nfunction $507fabe10e71c6fb$export$b9b3dfddab17db27() {\n return $507fabe10e71c6fb$var$currentModality !== 'pointer';\n}\nfunction $507fabe10e71c6fb$export$630ff653c5ada6a9() {\n return $507fabe10e71c6fb$var$currentModality;\n}\nfunction $507fabe10e71c6fb$export$8397ddfc504fdb9a(modality) {\n $507fabe10e71c6fb$var$currentModality = modality;\n $507fabe10e71c6fb$var$triggerChangeHandlers(modality, null);\n}\nfunction $507fabe10e71c6fb$export$98e20ec92f614cfe() {\n $507fabe10e71c6fb$var$setupGlobalFocusEvents();\n let [modality, setModality] = (0, $28AnR$useState)($507fabe10e71c6fb$var$currentModality);\n (0, $28AnR$useEffect)(()=>{\n let handler = ()=>{\n setModality($507fabe10e71c6fb$var$currentModality);\n };\n $507fabe10e71c6fb$var$changeHandlers.add(handler);\n return ()=>{\n $507fabe10e71c6fb$var$changeHandlers.delete(handler);\n };\n }, []);\n return (0, $28AnR$useIsSSR)() ? null : modality;\n}\nconst $507fabe10e71c6fb$var$nonTextInputTypes = new Set([\n 'checkbox',\n 'radio',\n 'range',\n 'color',\n 'file',\n 'image',\n 'button',\n 'submit',\n 'reset'\n]);\n/**\n * If this is attached to text input component, return if the event is a focus event (Tab/Escape keys pressed) so that\n * focus visible style can be properly set.\n */ function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {\n let document1 = (0, $28AnR$getOwnerDocument)(e === null || e === void 0 ? void 0 : e.target);\n const IHTMLInputElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;\n const IHTMLTextAreaElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;\n const IHTMLElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;\n const IKeyboardEvent = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;\n // For keyboard events that occur on a non-input element that will move focus into input element (aka ArrowLeft going from Datepicker button to the main input group)\n // we need to rely on the user passing isTextInput into here. This way we can skip toggling focus visiblity for said input element\n isTextInput = isTextInput || document1.activeElement instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(document1.activeElement.type) || document1.activeElement instanceof IHTMLTextAreaElement || document1.activeElement instanceof IHTMLElement && document1.activeElement.isContentEditable;\n return !(isTextInput && modality === 'keyboard' && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);\n}\nfunction $507fabe10e71c6fb$export$ffd9e5021c1fb2d6(props = {}) {\n let { isTextInput: isTextInput, autoFocus: autoFocus } = props;\n let [isFocusVisibleState, setFocusVisible] = (0, $28AnR$useState)(autoFocus || $507fabe10e71c6fb$export$b9b3dfddab17db27());\n $507fabe10e71c6fb$export$ec71b4b83ac08ec3((isFocusVisible)=>{\n setFocusVisible(isFocusVisible);\n }, [\n isTextInput\n ], {\n isTextInput: isTextInput\n });\n return {\n isFocusVisible: isFocusVisibleState\n };\n}\nfunction $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {\n $507fabe10e71c6fb$var$setupGlobalFocusEvents();\n (0, $28AnR$useEffect)(()=>{\n let handler = (modality, e)=>{\n // We want to early return for any keyboard events that occur inside text inputs EXCEPT for Tab and Escape\n if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(!!(opts === null || opts === void 0 ? void 0 : opts.isTextInput), modality, e)) return;\n fn($507fabe10e71c6fb$export$b9b3dfddab17db27());\n };\n $507fabe10e71c6fb$var$changeHandlers.add(handler);\n return ()=>{\n $507fabe10e71c6fb$var$changeHandlers.delete(handler);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n}\n\n\nexport {$507fabe10e71c6fb$export$d90243b58daecda7 as hasSetupGlobalListeners, $507fabe10e71c6fb$export$2f1888112f558a7d as addWindowFocusTracking, $507fabe10e71c6fb$export$b9b3dfddab17db27 as isFocusVisible, $507fabe10e71c6fb$export$630ff653c5ada6a9 as getInteractionModality, $507fabe10e71c6fb$export$8397ddfc504fdb9a as setInteractionModality, $507fabe10e71c6fb$export$98e20ec92f614cfe as useInteractionModality, $507fabe10e71c6fb$export$ffd9e5021c1fb2d6 as useFocusVisible, $507fabe10e71c6fb$export$ec71b4b83ac08ec3 as useFocusVisibleListener};\n//# sourceMappingURL=useFocusVisible.module.js.map\n"],"names":["$507fabe10e71c6fb$var$currentModality","$507fabe10e71c6fb$var$changeHandlers","$507fabe10e71c6fb$export$d90243b58daecda7","$507fabe10e71c6fb$var$hasEventBeforeFocus","$507fabe10e71c6fb$var$hasBlurredWindowRecently","$507fabe10e71c6fb$var$triggerChangeHandlers","modality","e","handler","$507fabe10e71c6fb$var$isValidKey","$28AnR$isMac","$507fabe10e71c6fb$var$handleKeyboardEvent","$507fabe10e71c6fb$var$handlePointerEvent","$507fabe10e71c6fb$var$handleClickEvent","$28AnR$isVirtualClick","$507fabe10e71c6fb$var$handleFocusEvent","$8a9cb279dc87e130$export$fda7da73ab5d4c48","$507fabe10e71c6fb$var$handleWindowBlur","$507fabe10e71c6fb$var$setupGlobalFocusEvents","element","$28AnR$getOwnerWindow","windowObject","documentObject","$28AnR$getOwnerDocument","focus","$507fabe10e71c6fb$var$tearDownWindowFocusTracking","loadListener","$507fabe10e71c6fb$export$2f1888112f558a7d","$507fabe10e71c6fb$export$630ff653c5ada6a9","$507fabe10e71c6fb$export$8397ddfc504fdb9a"],"mappings":"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","x_google_ignoreList":[0]}