@protonradio/proton-ui 0.11.10-beta.3 → 0.11.11
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.
- package/dist/components/ActionMenu/ActionMenu.cjs.js +1 -1
- package/dist/components/ActionMenu/ActionMenu.cjs.js.map +1 -1
- package/dist/components/ActionMenu/ActionMenu.es.js +253 -186
- package/dist/components/ActionMenu/ActionMenu.es.js.map +1 -1
- package/dist/components/ButtonWithSelect/ButtonWithSelect.cjs.js +1 -1
- package/dist/components/ButtonWithSelect/ButtonWithSelect.cjs.js.map +1 -1
- package/dist/components/ButtonWithSelect/ButtonWithSelect.es.js +7 -8
- package/dist/components/ButtonWithSelect/ButtonWithSelect.es.js.map +1 -1
- package/dist/components/Input/BaseInput/Input.cjs.js +1 -1
- package/dist/components/Input/BaseInput/Input.cjs.js.map +1 -1
- package/dist/components/Input/BaseInput/Input.es.js +67 -63
- package/dist/components/Input/BaseInput/Input.es.js.map +1 -1
- package/dist/components/Input/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/Input/SearchInput/SearchInput.cjs.js.map +1 -1
- package/dist/components/Input/SearchInput/SearchInput.es.js +1 -1
- package/dist/components/Input/SearchInput/SearchInput.es.js.map +1 -1
- package/dist/components/Menu/MenuTrigger.cjs.js +1 -1
- package/dist/components/Menu/MenuTrigger.cjs.js.map +1 -1
- package/dist/components/Menu/MenuTrigger.es.js +65 -73
- package/dist/components/Menu/MenuTrigger.es.js.map +1 -1
- package/dist/components/Menu/PopoverMenu.cjs.js +1 -1
- package/dist/components/Menu/PopoverMenu.cjs.js.map +1 -1
- package/dist/components/Menu/PopoverMenu.es.js +110 -104
- package/dist/components/Menu/PopoverMenu.es.js.map +1 -1
- package/dist/components/Popover/Popover.cjs.js +1 -1
- package/dist/components/Popover/Popover.cjs.js.map +1 -1
- package/dist/components/Popover/Popover.es.js +44 -64
- package/dist/components/Popover/Popover.es.js.map +1 -1
- package/dist/components/Select/Select.cjs.js +1 -1
- package/dist/components/Select/Select.cjs.js.map +1 -1
- package/dist/components/Select/Select.es.js +177 -122
- package/dist/components/Select/Select.es.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +70 -81
- package/dist/index.es.js +37 -38
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.cjs.js +1 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.cjs.js.map +1 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.es.js +12 -16
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.es.js.map +1 -1
- package/dist/node_modules/@react-aria/overlays/dist/Overlay.cjs.js +1 -1
- package/dist/node_modules/@react-aria/overlays/dist/Overlay.cjs.js.map +1 -1
- package/dist/node_modules/@react-aria/overlays/dist/Overlay.es.js +8 -31
- package/dist/node_modules/@react-aria/overlays/dist/Overlay.es.js.map +1 -1
- package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.cjs.js +1 -1
- package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.cjs.js.map +1 -1
- package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.es.js +36 -44
- package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.es.js.map +1 -1
- package/dist/node_modules/react-aria-components/dist/utils.cjs.js +1 -1
- package/dist/node_modules/react-aria-components/dist/utils.cjs.js.map +1 -1
- package/dist/node_modules/react-aria-components/dist/utils.es.js +36 -48
- package/dist/node_modules/react-aria-components/dist/utils.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/_virtual/index.cjs.js +0 -2
- package/dist/_virtual/index.cjs.js.map +0 -1
- package/dist/_virtual/index.es.js +0 -5
- package/dist/_virtual/index.es.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.development.cjs.js +0 -2
- package/dist/_virtual/use-sync-external-store-shim.development.cjs.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.development.es.js +0 -5
- package/dist/_virtual/use-sync-external-store-shim.development.es.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.production.cjs.js +0 -2
- package/dist/_virtual/use-sync-external-store-shim.production.cjs.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.production.es.js +0 -5
- package/dist/_virtual/use-sync-external-store-shim.production.es.js.map +0 -1
- package/dist/components/ListBox/ListBox.cjs.js +0 -2
- package/dist/components/ListBox/ListBox.cjs.js.map +0 -1
- package/dist/components/ListBox/ListBox.es.js +0 -25
- package/dist/components/ListBox/ListBox.es.js.map +0 -1
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringDictionary.cjs.js +0 -2
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringDictionary.cjs.js.map +0 -1
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringDictionary.es.js +0 -48
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringDictionary.es.js.map +0 -1
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringFormatter.cjs.js +0 -2
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringFormatter.cjs.js.map +0 -1
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringFormatter.es.js +0 -33
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringFormatter.es.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/BaseCollection.cjs.js +0 -2
- package/dist/node_modules/@react-aria/collections/dist/BaseCollection.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/BaseCollection.es.js +0 -135
- package/dist/node_modules/@react-aria/collections/dist/BaseCollection.es.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/CollectionBuilder.cjs.js +0 -2
- package/dist/node_modules/@react-aria/collections/dist/CollectionBuilder.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/CollectionBuilder.es.js +0 -145
- package/dist/node_modules/@react-aria/collections/dist/CollectionBuilder.es.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/Document.cjs.js +0 -2
- package/dist/node_modules/@react-aria/collections/dist/Document.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/Document.es.js +0 -220
- package/dist/node_modules/@react-aria/collections/dist/Document.es.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/Hidden.cjs.js +0 -2
- package/dist/node_modules/@react-aria/collections/dist/Hidden.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/Hidden.es.js +0 -36
- package/dist/node_modules/@react-aria/collections/dist/Hidden.es.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/useCachedChildren.cjs.js +0 -2
- package/dist/node_modules/@react-aria/collections/dist/useCachedChildren.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/useCachedChildren.es.js +0 -37
- package/dist/node_modules/@react-aria/collections/dist/useCachedChildren.es.js.map +0 -1
- package/dist/node_modules/@react-aria/focus/dist/virtualFocus.cjs.js +0 -2
- package/dist/node_modules/@react-aria/focus/dist/virtualFocus.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/focus/dist/virtualFocus.es.js +0 -32
- package/dist/node_modules/@react-aria/focus/dist/virtualFocus.es.js.map +0 -1
- package/dist/node_modules/@react-aria/i18n/dist/useCollator.cjs.js +0 -2
- package/dist/node_modules/@react-aria/i18n/dist/useCollator.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/i18n/dist/useCollator.es.js +0 -12
- package/dist/node_modules/@react-aria/i18n/dist/useCollator.es.js.map +0 -1
- package/dist/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.cjs.js +0 -2
- package/dist/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.es.js +0 -24
- package/dist/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/PressResponder.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/PressResponder.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/PressResponder.es.js +0 -15
- package/dist/node_modules/@react-aria/interactions/dist/PressResponder.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useHover.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useHover.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useHover.es.js +0 -85
- package/dist/node_modules/@react-aria/interactions/dist/useHover.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useLongPress.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useLongPress.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useLongPress.es.js +0 -50
- package/dist/node_modules/@react-aria/interactions/dist/useLongPress.es.js.map +0 -1
- package/dist/node_modules/@react-aria/listbox/dist/useListBox.cjs.js +0 -2
- package/dist/node_modules/@react-aria/listbox/dist/useListBox.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/listbox/dist/useListBox.es.js +0 -52
- package/dist/node_modules/@react-aria/listbox/dist/useListBox.es.js.map +0 -1
- package/dist/node_modules/@react-aria/listbox/dist/useOption.cjs.js +0 -2
- package/dist/node_modules/@react-aria/listbox/dist/useOption.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/listbox/dist/useOption.es.js +0 -79
- package/dist/node_modules/@react-aria/listbox/dist/useOption.es.js.map +0 -1
- package/dist/node_modules/@react-aria/listbox/dist/utils.cjs.js +0 -2
- package/dist/node_modules/@react-aria/listbox/dist/utils.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/listbox/dist/utils.es.js +0 -14
- package/dist/node_modules/@react-aria/listbox/dist/utils.es.js.map +0 -1
- package/dist/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.cjs.js +0 -2
- package/dist/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.es.js +0 -48
- package/dist/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ar-AE.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/ar-AE.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ar-AE.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/ar-AE.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/bg-BG.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/bg-BG.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/bg-BG.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/bg-BG.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/cs-CZ.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/cs-CZ.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/cs-CZ.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/cs-CZ.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/da-DK.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/da-DK.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/da-DK.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/da-DK.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/de-DE.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/de-DE.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/de-DE.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/de-DE.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/el-GR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/el-GR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/el-GR.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/el-GR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/en-US.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/en-US.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/en-US.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/en-US.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/es-ES.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/es-ES.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/es-ES.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/es-ES.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/et-EE.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/et-EE.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/et-EE.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/et-EE.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/fi-FI.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/fi-FI.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/fi-FI.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/fi-FI.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/fr-FR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/fr-FR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/fr-FR.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/fr-FR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/he-IL.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/he-IL.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/he-IL.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/he-IL.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/hr-HR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/hr-HR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/hr-HR.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/hr-HR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/hu-HU.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/hu-HU.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/hu-HU.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/hu-HU.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/intlStrings.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/intlStrings.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/intlStrings.es.js +0 -75
- package/dist/node_modules/@react-aria/menu/dist/intlStrings.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/it-IT.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/it-IT.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/it-IT.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/it-IT.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ja-JP.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/ja-JP.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ja-JP.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/ja-JP.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ko-KR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/ko-KR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ko-KR.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/ko-KR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/lt-LT.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/lt-LT.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/lt-LT.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/lt-LT.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/lv-LV.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/lv-LV.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/lv-LV.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/lv-LV.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/nb-NO.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/nb-NO.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/nb-NO.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/nb-NO.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/nl-NL.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/nl-NL.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/nl-NL.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/nl-NL.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/pl-PL.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/pl-PL.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/pl-PL.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/pl-PL.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/pt-BR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/pt-BR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/pt-BR.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/pt-BR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/pt-PT.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/pt-PT.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/pt-PT.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/pt-PT.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ro-RO.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/ro-RO.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ro-RO.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/ro-RO.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ru-RU.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/ru-RU.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ru-RU.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/ru-RU.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/sk-SK.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/sk-SK.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/sk-SK.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/sk-SK.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/sl-SI.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/sl-SI.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/sl-SI.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/sl-SI.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/sr-SP.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/sr-SP.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/sr-SP.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/sr-SP.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/sv-SE.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/sv-SE.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/sv-SE.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/sv-SE.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/tr-TR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/tr-TR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/tr-TR.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/tr-TR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/uk-UA.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/uk-UA.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/uk-UA.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/uk-UA.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/useMenu.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/useMenu.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/useMenu.es.js +0 -39
- package/dist/node_modules/@react-aria/menu/dist/useMenu.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/useMenuItem.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/useMenuItem.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/useMenuItem.es.js +0 -145
- package/dist/node_modules/@react-aria/menu/dist/useMenuItem.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/useMenuTrigger.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/useMenuTrigger.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/useMenuTrigger.es.js +0 -64
- package/dist/node_modules/@react-aria/menu/dist/useMenuTrigger.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/utils.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/utils.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/utils.es.js +0 -5
- package/dist/node_modules/@react-aria/menu/dist/utils.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/zh-CN.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/zh-CN.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/zh-CN.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/zh-CN.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/zh-TW.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/zh-TW.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/zh-TW.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/zh-TW.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/DismissButton.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/DismissButton.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/DismissButton.es.js +0 -26
- package/dist/node_modules/@react-aria/overlays/dist/DismissButton.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/PortalProvider.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/PortalProvider.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/PortalProvider.es.js +0 -11
- package/dist/node_modules/@react-aria/overlays/dist/PortalProvider.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ar-AE.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/ar-AE.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ar-AE.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/ar-AE.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/bg-BG.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/bg-BG.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/bg-BG.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/bg-BG.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/calculatePosition.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/calculatePosition.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/calculatePosition.es.js +0 -200
- package/dist/node_modules/@react-aria/overlays/dist/calculatePosition.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/cs-CZ.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/cs-CZ.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/cs-CZ.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/cs-CZ.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/da-DK.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/da-DK.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/da-DK.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/da-DK.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/de-DE.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/de-DE.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/de-DE.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/de-DE.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/el-GR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/el-GR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/el-GR.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/el-GR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/en-US.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/en-US.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/en-US.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/en-US.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/es-ES.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/es-ES.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/es-ES.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/es-ES.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/et-EE.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/et-EE.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/et-EE.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/et-EE.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/fi-FI.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/fi-FI.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/fi-FI.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/fi-FI.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/fr-FR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/fr-FR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/fr-FR.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/fr-FR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/he-IL.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/he-IL.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/he-IL.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/he-IL.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/hr-HR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/hr-HR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/hr-HR.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/hr-HR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/hu-HU.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/hu-HU.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/hu-HU.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/hu-HU.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/intlStrings.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/intlStrings.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/intlStrings.es.js +0 -75
- package/dist/node_modules/@react-aria/overlays/dist/intlStrings.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/it-IT.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/it-IT.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/it-IT.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/it-IT.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ja-JP.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/ja-JP.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ja-JP.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/ja-JP.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ko-KR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/ko-KR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ko-KR.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/ko-KR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/lt-LT.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/lt-LT.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/lt-LT.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/lt-LT.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/lv-LV.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/lv-LV.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/lv-LV.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/lv-LV.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/nb-NO.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/nb-NO.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/nb-NO.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/nb-NO.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/nl-NL.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/nl-NL.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/nl-NL.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/nl-NL.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/pl-PL.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/pl-PL.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/pl-PL.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/pl-PL.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/pt-BR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/pt-BR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/pt-BR.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/pt-BR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/pt-PT.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/pt-PT.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/pt-PT.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/pt-PT.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ro-RO.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/ro-RO.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ro-RO.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/ro-RO.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ru-RU.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/ru-RU.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ru-RU.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/ru-RU.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/sk-SK.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/sk-SK.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/sk-SK.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/sk-SK.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/sl-SI.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/sl-SI.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/sl-SI.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/sl-SI.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/sr-SP.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/sr-SP.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/sr-SP.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/sr-SP.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/sv-SE.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/sv-SE.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/sv-SE.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/sv-SE.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/tr-TR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/tr-TR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/tr-TR.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/tr-TR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/uk-UA.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/uk-UA.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/uk-UA.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/uk-UA.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useCloseOnScroll.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/useCloseOnScroll.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useCloseOnScroll.es.js +0 -26
- package/dist/node_modules/@react-aria/overlays/dist/useCloseOnScroll.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayPosition.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayPosition.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayPosition.es.js +0 -143
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayPosition.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayTrigger.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayTrigger.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayTrigger.es.js +0 -27
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayTrigger.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/usePopover.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/usePopover.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/usePopover.es.js +0 -48
- package/dist/node_modules/@react-aria/overlays/dist/usePopover.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/zh-CN.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/zh-CN.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/zh-CN.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/zh-CN.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/zh-TW.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/zh-TW.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/zh-TW.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/zh-TW.es.js.map +0 -1
- package/dist/node_modules/@react-aria/select/dist/HiddenSelect.cjs.js +0 -2
- package/dist/node_modules/@react-aria/select/dist/HiddenSelect.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/select/dist/HiddenSelect.es.js +0 -105
- package/dist/node_modules/@react-aria/select/dist/HiddenSelect.es.js.map +0 -1
- package/dist/node_modules/@react-aria/select/dist/useSelect.cjs.js +0 -2
- package/dist/node_modules/@react-aria/select/dist/useSelect.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/select/dist/useSelect.es.js +0 -126
- package/dist/node_modules/@react-aria/select/dist/useSelect.es.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.cjs.js +0 -2
- package/dist/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.es.js +0 -41
- package/dist/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.es.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.cjs.js +0 -2
- package/dist/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.es.js +0 -122
- package/dist/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.es.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/useSelectableCollection.cjs.js +0 -2
- package/dist/node_modules/@react-aria/selection/dist/useSelectableCollection.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/useSelectableCollection.es.js +0 -235
- package/dist/node_modules/@react-aria/selection/dist/useSelectableCollection.es.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/useSelectableItem.cjs.js +0 -2
- package/dist/node_modules/@react-aria/selection/dist/useSelectableItem.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/useSelectableItem.es.js +0 -127
- package/dist/node_modules/@react-aria/selection/dist/useSelectableItem.es.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/useSelectableList.cjs.js +0 -2
- package/dist/node_modules/@react-aria/selection/dist/useSelectableList.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/useSelectableList.es.js +0 -37
- package/dist/node_modules/@react-aria/selection/dist/useSelectableList.es.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/useTypeSelect.cjs.js +0 -2
- package/dist/node_modules/@react-aria/selection/dist/useTypeSelect.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/useTypeSelect.es.js +0 -33
- package/dist/node_modules/@react-aria/selection/dist/useTypeSelect.es.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/utils.cjs.js +0 -2
- package/dist/node_modules/@react-aria/selection/dist/utils.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/utils.es.js +0 -24
- package/dist/node_modules/@react-aria/selection/dist/utils.es.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/CollectionBuilder.cjs.js +0 -2
- package/dist/node_modules/@react-stately/collections/dist/CollectionBuilder.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/CollectionBuilder.es.js +0 -171
- package/dist/node_modules/@react-stately/collections/dist/CollectionBuilder.es.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/Item.cjs.js +0 -2
- package/dist/node_modules/@react-stately/collections/dist/Item.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/Item.es.js +0 -38
- package/dist/node_modules/@react-stately/collections/dist/Item.es.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/getChildNodes.cjs.js +0 -2
- package/dist/node_modules/@react-stately/collections/dist/getChildNodes.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/getChildNodes.es.js +0 -34
- package/dist/node_modules/@react-stately/collections/dist/getChildNodes.es.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/getItemCount.cjs.js +0 -2
- package/dist/node_modules/@react-stately/collections/dist/getItemCount.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/getItemCount.es.js +0 -15
- package/dist/node_modules/@react-stately/collections/dist/getItemCount.es.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/useCollection.cjs.js +0 -2
- package/dist/node_modules/@react-stately/collections/dist/useCollection.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/useCollection.es.js +0 -24
- package/dist/node_modules/@react-stately/collections/dist/useCollection.es.js.map +0 -1
- package/dist/node_modules/@react-stately/list/dist/ListCollection.cjs.js +0 -2
- package/dist/node_modules/@react-stately/list/dist/ListCollection.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/list/dist/ListCollection.es.js +0 -57
- package/dist/node_modules/@react-stately/list/dist/ListCollection.es.js.map +0 -1
- package/dist/node_modules/@react-stately/list/dist/useListState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/list/dist/useListState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/list/dist/useListState.es.js +0 -70
- package/dist/node_modules/@react-stately/list/dist/useListState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/list/dist/useSingleSelectListState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/list/dist/useSingleSelectListState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/list/dist/useSingleSelectListState.es.js +0 -35
- package/dist/node_modules/@react-stately/list/dist/useSingleSelectListState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/menu/dist/useMenuTriggerState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/menu/dist/useMenuTriggerState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/menu/dist/useMenuTriggerState.es.js +0 -34
- package/dist/node_modules/@react-stately/menu/dist/useMenuTriggerState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/select/dist/useSelectState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/select/dist/useSelectState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/select/dist/useSelectState.es.js +0 -35
- package/dist/node_modules/@react-stately/select/dist/useSelectState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/selection/dist/Selection.cjs.js +0 -2
- package/dist/node_modules/@react-stately/selection/dist/Selection.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/selection/dist/Selection.es.js +0 -9
- package/dist/node_modules/@react-stately/selection/dist/Selection.es.js.map +0 -1
- package/dist/node_modules/@react-stately/selection/dist/SelectionManager.cjs.js +0 -2
- package/dist/node_modules/@react-stately/selection/dist/SelectionManager.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/selection/dist/SelectionManager.es.js +0 -285
- package/dist/node_modules/@react-stately/selection/dist/SelectionManager.es.js.map +0 -1
- package/dist/node_modules/@react-stately/selection/dist/useMultipleSelectionState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/selection/dist/useMultipleSelectionState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/selection/dist/useMultipleSelectionState.es.js +0 -58
- package/dist/node_modules/@react-stately/selection/dist/useMultipleSelectionState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/tree/dist/TreeCollection.cjs.js +0 -2
- package/dist/node_modules/@react-stately/tree/dist/TreeCollection.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/tree/dist/TreeCollection.es.js +0 -53
- package/dist/node_modules/@react-stately/tree/dist/TreeCollection.es.js.map +0 -1
- package/dist/node_modules/@react-stately/tree/dist/useTreeState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/tree/dist/useTreeState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/tree/dist/useTreeState.es.js +0 -38
- package/dist/node_modules/@react-stately/tree/dist/useTreeState.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Autocomplete.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Autocomplete.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Autocomplete.es.js +0 -6
- package/dist/node_modules/react-aria-components/dist/Autocomplete.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Button.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Button.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Button.es.js +0 -70
- package/dist/node_modules/react-aria-components/dist/Button.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Collection.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Collection.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Collection.es.js +0 -64
- package/dist/node_modules/react-aria-components/dist/Collection.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Dialog.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Dialog.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Dialog.es.js +0 -6
- package/dist/node_modules/react-aria-components/dist/Dialog.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Header.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Header.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Header.es.js +0 -15
- package/dist/node_modules/react-aria-components/dist/Header.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Keyboard.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Keyboard.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Keyboard.es.js +0 -6
- package/dist/node_modules/react-aria-components/dist/Keyboard.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Menu.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Menu.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Menu.es.js +0 -286
- package/dist/node_modules/react-aria-components/dist/Menu.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Popover.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Popover.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Popover.es.js +0 -141
- package/dist/node_modules/react-aria-components/dist/Popover.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/ProgressBar.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/ProgressBar.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/ProgressBar.es.js +0 -6
- package/dist/node_modules/react-aria-components/dist/ProgressBar.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Separator.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Separator.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Separator.es.js +0 -6
- package/dist/node_modules/react-aria-components/dist/Separator.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Text.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Text.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Text.es.js +0 -16
- package/dist/node_modules/react-aria-components/dist/Text.es.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs.js +0 -10
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.es.js +0 -68
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.es.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs.js +0 -10
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.es.js +0 -56
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.es.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/shim/index.cjs.js +0 -2
- package/dist/node_modules/use-sync-external-store/shim/index.cjs.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/shim/index.es.js +0 -9
- package/dist/node_modules/use-sync-external-store/shim/index.es.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useOverlayPosition.cjs.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/useOverlayPosition.mjs"],"sourcesContent":["import {calculatePosition as $edcf132a9284368a$export$b3ceb0cbf1056d98} from \"./calculatePosition.mjs\";\nimport {useCloseOnScroll as $dd149f63282afbbf$export$18fc8428861184da} from \"./useCloseOnScroll.mjs\";\nimport {useState as $39EOa$useState, useRef as $39EOa$useRef, useEffect as $39EOa$useEffect, useCallback as $39EOa$useCallback} from \"react\";\nimport {useLayoutEffect as $39EOa$useLayoutEffect, useResizeObserver as $39EOa$useResizeObserver} from \"@react-aria/utils\";\nimport {useLocale as $39EOa$useLocale} from \"@react-aria/i18n\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nlet $2a41e45df1593e64$var$visualViewport = typeof document !== 'undefined' ? window.visualViewport : null;\nfunction $2a41e45df1593e64$export$d39e1813b3bdd0e1(props) {\n let { direction: direction } = (0, $39EOa$useLocale)();\n let { arrowSize: arrowSize = 0, targetRef: targetRef, overlayRef: overlayRef, scrollRef: scrollRef = overlayRef, placement: placement = 'bottom', containerPadding: containerPadding = 12, shouldFlip: shouldFlip = true, boundaryElement: boundaryElement = typeof document !== 'undefined' ? document.body : null, offset: offset = 0, crossOffset: crossOffset = 0, shouldUpdatePosition: shouldUpdatePosition = true, isOpen: isOpen = true, onClose: onClose, maxHeight: maxHeight, arrowBoundaryOffset: arrowBoundaryOffset = 0 } = props;\n let [position, setPosition] = (0, $39EOa$useState)(null);\n let deps = [\n shouldUpdatePosition,\n placement,\n overlayRef.current,\n targetRef.current,\n scrollRef.current,\n containerPadding,\n shouldFlip,\n boundaryElement,\n offset,\n crossOffset,\n isOpen,\n direction,\n maxHeight,\n arrowBoundaryOffset,\n arrowSize\n ];\n // Note, the position freezing breaks if body sizes itself dynamicly with the visual viewport but that might\n // just be a non-realistic use case\n // Upon opening a overlay, record the current visual viewport scale so we can freeze the overlay styles\n let lastScale = (0, $39EOa$useRef)($2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.scale);\n (0, $39EOa$useEffect)(()=>{\n if (isOpen) lastScale.current = $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.scale;\n }, [\n isOpen\n ]);\n let updatePosition = (0, $39EOa$useCallback)(()=>{\n if (shouldUpdatePosition === false || !isOpen || !overlayRef.current || !targetRef.current || !boundaryElement) return;\n if (($2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.scale) !== lastScale.current) return;\n // Determine a scroll anchor based on the focused element.\n // This stores the offset of the anchor element from the scroll container\n // so it can be restored after repositioning. This way if the overlay height\n // changes, the focused element appears to stay in the same position.\n let anchor = null;\n if (scrollRef.current && scrollRef.current.contains(document.activeElement)) {\n var _document_activeElement;\n let anchorRect = (_document_activeElement = document.activeElement) === null || _document_activeElement === void 0 ? void 0 : _document_activeElement.getBoundingClientRect();\n let scrollRect = scrollRef.current.getBoundingClientRect();\n var _anchorRect_top;\n // Anchor from the top if the offset is in the top half of the scrollable element,\n // otherwise anchor from the bottom.\n anchor = {\n type: 'top',\n offset: ((_anchorRect_top = anchorRect === null || anchorRect === void 0 ? void 0 : anchorRect.top) !== null && _anchorRect_top !== void 0 ? _anchorRect_top : 0) - scrollRect.top\n };\n if (anchor.offset > scrollRect.height / 2) {\n anchor.type = 'bottom';\n var _anchorRect_bottom;\n anchor.offset = ((_anchorRect_bottom = anchorRect === null || anchorRect === void 0 ? void 0 : anchorRect.bottom) !== null && _anchorRect_bottom !== void 0 ? _anchorRect_bottom : 0) - scrollRect.bottom;\n }\n }\n // Always reset the overlay's previous max height if not defined by the user so that we can compensate for\n // RAC collections populating after a second render and properly set a correct max height + positioning when it populates.\n let overlay = overlayRef.current;\n if (!maxHeight && overlayRef.current) {\n var _window_visualViewport;\n overlay.style.top = '0px';\n overlay.style.bottom = '';\n var _window_visualViewport_height;\n overlay.style.maxHeight = ((_window_visualViewport_height = (_window_visualViewport = window.visualViewport) === null || _window_visualViewport === void 0 ? void 0 : _window_visualViewport.height) !== null && _window_visualViewport_height !== void 0 ? _window_visualViewport_height : window.innerHeight) + 'px';\n }\n let position = (0, $edcf132a9284368a$export$b3ceb0cbf1056d98)({\n placement: $2a41e45df1593e64$var$translateRTL(placement, direction),\n overlayNode: overlayRef.current,\n targetNode: targetRef.current,\n scrollNode: scrollRef.current || overlayRef.current,\n padding: containerPadding,\n shouldFlip: shouldFlip,\n boundaryElement: boundaryElement,\n offset: offset,\n crossOffset: crossOffset,\n maxHeight: maxHeight,\n arrowSize: arrowSize,\n arrowBoundaryOffset: arrowBoundaryOffset\n });\n if (!position.position) return;\n // Modify overlay styles directly so positioning happens immediately without the need of a second render\n // This is so we don't have to delay autoFocus scrolling or delay applying preventScroll for popovers\n overlay.style.top = '';\n overlay.style.bottom = '';\n overlay.style.left = '';\n overlay.style.right = '';\n Object.keys(position.position).forEach((key)=>overlay.style[key] = position.position[key] + 'px');\n overlay.style.maxHeight = position.maxHeight != null ? position.maxHeight + 'px' : '';\n // Restore scroll position relative to anchor element.\n if (anchor && document.activeElement && scrollRef.current) {\n let anchorRect = document.activeElement.getBoundingClientRect();\n let scrollRect = scrollRef.current.getBoundingClientRect();\n let newOffset = anchorRect[anchor.type] - scrollRect[anchor.type];\n scrollRef.current.scrollTop += newOffset - anchor.offset;\n }\n // Trigger a set state for a second render anyway for arrow positioning\n setPosition(position);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n // Update position when anything changes\n // eslint-disable-next-line react-hooks/exhaustive-deps\n (0, $39EOa$useLayoutEffect)(updatePosition, deps);\n // Update position on window resize\n $2a41e45df1593e64$var$useResize(updatePosition);\n // Update position when the overlay changes size (might need to flip).\n (0, $39EOa$useResizeObserver)({\n ref: overlayRef,\n onResize: updatePosition\n });\n // Update position when the target changes size (might need to flip).\n (0, $39EOa$useResizeObserver)({\n ref: targetRef,\n onResize: updatePosition\n });\n // Reposition the overlay and do not close on scroll while the visual viewport is resizing.\n // This will ensure that overlays adjust their positioning when the iOS virtual keyboard appears.\n let isResizing = (0, $39EOa$useRef)(false);\n (0, $39EOa$useLayoutEffect)(()=>{\n let timeout;\n let onResize = ()=>{\n isResizing.current = true;\n clearTimeout(timeout);\n timeout = setTimeout(()=>{\n isResizing.current = false;\n }, 500);\n updatePosition();\n };\n // Only reposition the overlay if a scroll event happens immediately as a result of resize (aka the virtual keyboard has appears)\n // We don't want to reposition the overlay if the user has pinch zoomed in and is scrolling the viewport around.\n let onScroll = ()=>{\n if (isResizing.current) onResize();\n };\n $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.addEventListener('resize', onResize);\n $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.addEventListener('scroll', onScroll);\n return ()=>{\n $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.removeEventListener('resize', onResize);\n $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.removeEventListener('scroll', onScroll);\n };\n }, [\n updatePosition\n ]);\n let close = (0, $39EOa$useCallback)(()=>{\n if (!isResizing.current) onClose === null || onClose === void 0 ? void 0 : onClose();\n }, [\n onClose,\n isResizing\n ]);\n // When scrolling a parent scrollable region of the trigger (other than the body),\n // we hide the popover. Otherwise, its position would be incorrect.\n (0, $dd149f63282afbbf$export$18fc8428861184da)({\n triggerRef: targetRef,\n isOpen: isOpen,\n onClose: onClose && close\n });\n var _position_maxHeight, _position_placement;\n return {\n overlayProps: {\n style: {\n position: 'absolute',\n zIndex: 100000,\n ...position === null || position === void 0 ? void 0 : position.position,\n maxHeight: (_position_maxHeight = position === null || position === void 0 ? void 0 : position.maxHeight) !== null && _position_maxHeight !== void 0 ? _position_maxHeight : '100vh'\n }\n },\n placement: (_position_placement = position === null || position === void 0 ? void 0 : position.placement) !== null && _position_placement !== void 0 ? _position_placement : null,\n arrowProps: {\n 'aria-hidden': 'true',\n role: 'presentation',\n style: {\n left: position === null || position === void 0 ? void 0 : position.arrowOffsetLeft,\n top: position === null || position === void 0 ? void 0 : position.arrowOffsetTop\n }\n },\n updatePosition: updatePosition\n };\n}\nfunction $2a41e45df1593e64$var$useResize(onResize) {\n (0, $39EOa$useLayoutEffect)(()=>{\n window.addEventListener('resize', onResize, false);\n return ()=>{\n window.removeEventListener('resize', onResize, false);\n };\n }, [\n onResize\n ]);\n}\nfunction $2a41e45df1593e64$var$translateRTL(position, direction) {\n if (direction === 'rtl') return position.replace('start', 'right').replace('end', 'left');\n return position.replace('start', 'left').replace('end', 'right');\n}\n\n\nexport {$2a41e45df1593e64$export$d39e1813b3bdd0e1 as useOverlayPosition};\n//# sourceMappingURL=useOverlayPosition.module.js.map\n"],"names":["$2a41e45df1593e64$var$visualViewport","$2a41e45df1593e64$export$d39e1813b3bdd0e1","props","direction","$39EOa$useLocale","arrowSize","targetRef","overlayRef","scrollRef","placement","containerPadding","shouldFlip","boundaryElement","offset","crossOffset","shouldUpdatePosition","isOpen","onClose","maxHeight","arrowBoundaryOffset","position","setPosition","$39EOa$useState","deps","lastScale","$39EOa$useRef","$39EOa$useEffect","updatePosition","$39EOa$useCallback","anchor","_document_activeElement","anchorRect","scrollRect","_anchorRect_top","_anchorRect_bottom","overlay","_window_visualViewport","_window_visualViewport_height","$edcf132a9284368a$export$b3ceb0cbf1056d98","$2a41e45df1593e64$var$translateRTL","key","newOffset","$39EOa$useLayoutEffect","$2a41e45df1593e64$var$useResize","$39EOa$useResizeObserver","isResizing","timeout","onResize","onScroll","close","$dd149f63282afbbf$export$18fc8428861184da","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,EAAS,SAChE,WAAY+B,EAAsB/B,GAAa,KAA8B,OAASA,EAAS,aAAe,MAAQ+B,IAAwB,OAASA,EAAsB,OAChL,CACJ,EACD,WAAYC,EAAsBhC,GAAa,KAA8B,OAASA,EAAS,aAAe,MAAQgC,IAAwB,OAASA,EAAsB,KAC7K,WAAY,CACR,cAAe,OACf,KAAM,eACN,MAAO,CACH,KAAMhC,GAAa,KAA8B,OAASA,EAAS,gBACnE,IAAKA,GAAa,KAA8B,OAASA,EAAS,cACrE,CACJ,EACD,eAAgBO,CACxB,CACA,CACA,SAASgB,EAAgCI,EAAU,CAC3CL,EAAsB,gBAAE,KACxB,OAAO,iBAAiB,SAAUK,EAAU,EAAK,EAC1C,IAAI,CACP,OAAO,oBAAoB,SAAUA,EAAU,EAAK,CAChE,GACO,CACCA,CACR,CAAK,CACL,CACA,SAASR,EAAmCnB,EAAUjB,EAAW,CAC7D,OAAIA,IAAc,MAAciB,EAAS,QAAQ,QAAS,OAAO,EAAE,QAAQ,MAAO,MAAM,EACjFA,EAAS,QAAQ,QAAS,MAAM,EAAE,QAAQ,MAAO,OAAO,CACnE","x_google_ignoreList":[0]}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { calculatePosition as D } from "./calculatePosition.es.js";
|
|
2
|
-
import { useCloseOnScroll as G } from "./useCloseOnScroll.es.js";
|
|
3
|
-
import { useState as J, useRef as U, useEffect as K, useCallback as j } from "react";
|
|
4
|
-
import { useLayoutEffect as z, useResizeObserver as k } from "@react-aria/utils";
|
|
5
|
-
import { useLocale as M } from "../../i18n/dist/context.es.js";
|
|
6
|
-
let e = typeof document < "u" ? window.visualViewport : null;
|
|
7
|
-
function ee(n) {
|
|
8
|
-
let { direction: y } = M(), { arrowSize: w = 0, targetRef: c, overlayRef: i, scrollRef: s = i, placement: H = "bottom", containerPadding: P = 12, shouldFlip: L = !0, boundaryElement: b = typeof document < "u" ? document.body : null, offset: C = 0, crossOffset: B = 0, shouldUpdatePosition: S = !0, isOpen: v = !0, onClose: p, maxHeight: h, arrowBoundaryOffset: T = 0 } = n, [t, I] = J(null), F = [
|
|
9
|
-
S,
|
|
10
|
-
H,
|
|
11
|
-
i.current,
|
|
12
|
-
c.current,
|
|
13
|
-
s.current,
|
|
14
|
-
P,
|
|
15
|
-
L,
|
|
16
|
-
b,
|
|
17
|
-
C,
|
|
18
|
-
B,
|
|
19
|
-
v,
|
|
20
|
-
y,
|
|
21
|
-
h,
|
|
22
|
-
T,
|
|
23
|
-
w
|
|
24
|
-
], N = U(e == null ? void 0 : e.scale);
|
|
25
|
-
K(() => {
|
|
26
|
-
v && (N.current = e == null ? void 0 : e.scale);
|
|
27
|
-
}, [
|
|
28
|
-
v
|
|
29
|
-
]);
|
|
30
|
-
let a = j(() => {
|
|
31
|
-
if (S === !1 || !v || !i.current || !c.current || !b || (e == null ? void 0 : e.scale) !== N.current) return;
|
|
32
|
-
let o = null;
|
|
33
|
-
if (s.current && s.current.contains(document.activeElement)) {
|
|
34
|
-
var u;
|
|
35
|
-
let r = (u = document.activeElement) === null || u === void 0 ? void 0 : u.getBoundingClientRect(), g = s.current.getBoundingClientRect();
|
|
36
|
-
var d;
|
|
37
|
-
if (o = {
|
|
38
|
-
type: "top",
|
|
39
|
-
offset: ((d = r == null ? void 0 : r.top) !== null && d !== void 0 ? d : 0) - g.top
|
|
40
|
-
}, o.offset > g.height / 2) {
|
|
41
|
-
o.type = "bottom";
|
|
42
|
-
var R;
|
|
43
|
-
o.offset = ((R = r == null ? void 0 : r.bottom) !== null && R !== void 0 ? R : 0) - g.bottom;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
let l = i.current;
|
|
47
|
-
if (!h && i.current) {
|
|
48
|
-
var O;
|
|
49
|
-
l.style.top = "0px", l.style.bottom = "";
|
|
50
|
-
var E;
|
|
51
|
-
l.style.maxHeight = ((E = (O = window.visualViewport) === null || O === void 0 ? void 0 : O.height) !== null && E !== void 0 ? E : window.innerHeight) + "px";
|
|
52
|
-
}
|
|
53
|
-
let f = D({
|
|
54
|
-
placement: W(H, y),
|
|
55
|
-
overlayNode: i.current,
|
|
56
|
-
targetNode: c.current,
|
|
57
|
-
scrollNode: s.current || i.current,
|
|
58
|
-
padding: P,
|
|
59
|
-
shouldFlip: L,
|
|
60
|
-
boundaryElement: b,
|
|
61
|
-
offset: C,
|
|
62
|
-
crossOffset: B,
|
|
63
|
-
maxHeight: h,
|
|
64
|
-
arrowSize: w,
|
|
65
|
-
arrowBoundaryOffset: T
|
|
66
|
-
});
|
|
67
|
-
if (f.position) {
|
|
68
|
-
if (l.style.top = "", l.style.bottom = "", l.style.left = "", l.style.right = "", Object.keys(f.position).forEach((r) => l.style[r] = f.position[r] + "px"), l.style.maxHeight = f.maxHeight != null ? f.maxHeight + "px" : "", o && document.activeElement && s.current) {
|
|
69
|
-
let r = document.activeElement.getBoundingClientRect(), g = s.current.getBoundingClientRect(), A = r[o.type] - g[o.type];
|
|
70
|
-
s.current.scrollTop += A - o.offset;
|
|
71
|
-
}
|
|
72
|
-
I(f);
|
|
73
|
-
}
|
|
74
|
-
}, F);
|
|
75
|
-
z(a, F), Q(a), k({
|
|
76
|
-
ref: i,
|
|
77
|
-
onResize: a
|
|
78
|
-
}), k({
|
|
79
|
-
ref: c,
|
|
80
|
-
onResize: a
|
|
81
|
-
});
|
|
82
|
-
let m = U(!1);
|
|
83
|
-
z(() => {
|
|
84
|
-
let o, u = () => {
|
|
85
|
-
m.current = !0, clearTimeout(o), o = setTimeout(() => {
|
|
86
|
-
m.current = !1;
|
|
87
|
-
}, 500), a();
|
|
88
|
-
}, d = () => {
|
|
89
|
-
m.current && u();
|
|
90
|
-
};
|
|
91
|
-
return e == null || e.addEventListener("resize", u), e == null || e.addEventListener("scroll", d), () => {
|
|
92
|
-
e == null || e.removeEventListener("resize", u), e == null || e.removeEventListener("scroll", d);
|
|
93
|
-
};
|
|
94
|
-
}, [
|
|
95
|
-
a
|
|
96
|
-
]);
|
|
97
|
-
let q = j(() => {
|
|
98
|
-
m.current || p == null || p();
|
|
99
|
-
}, [
|
|
100
|
-
p,
|
|
101
|
-
m
|
|
102
|
-
]);
|
|
103
|
-
G({
|
|
104
|
-
triggerRef: c,
|
|
105
|
-
isOpen: v,
|
|
106
|
-
onClose: p && q
|
|
107
|
-
});
|
|
108
|
-
var $, x;
|
|
109
|
-
return {
|
|
110
|
-
overlayProps: {
|
|
111
|
-
style: {
|
|
112
|
-
position: "absolute",
|
|
113
|
-
zIndex: 1e5,
|
|
114
|
-
...t == null ? void 0 : t.position,
|
|
115
|
-
maxHeight: ($ = t == null ? void 0 : t.maxHeight) !== null && $ !== void 0 ? $ : "100vh"
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
placement: (x = t == null ? void 0 : t.placement) !== null && x !== void 0 ? x : null,
|
|
119
|
-
arrowProps: {
|
|
120
|
-
"aria-hidden": "true",
|
|
121
|
-
role: "presentation",
|
|
122
|
-
style: {
|
|
123
|
-
left: t == null ? void 0 : t.arrowOffsetLeft,
|
|
124
|
-
top: t == null ? void 0 : t.arrowOffsetTop
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
updatePosition: a
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
function Q(n) {
|
|
131
|
-
z(() => (window.addEventListener("resize", n, !1), () => {
|
|
132
|
-
window.removeEventListener("resize", n, !1);
|
|
133
|
-
}), [
|
|
134
|
-
n
|
|
135
|
-
]);
|
|
136
|
-
}
|
|
137
|
-
function W(n, y) {
|
|
138
|
-
return y === "rtl" ? n.replace("start", "right").replace("end", "left") : n.replace("start", "left").replace("end", "right");
|
|
139
|
-
}
|
|
140
|
-
export {
|
|
141
|
-
ee as useOverlayPosition
|
|
142
|
-
};
|
|
143
|
-
//# sourceMappingURL=useOverlayPosition.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useOverlayPosition.es.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/useOverlayPosition.mjs"],"sourcesContent":["import {calculatePosition as $edcf132a9284368a$export$b3ceb0cbf1056d98} from \"./calculatePosition.mjs\";\nimport {useCloseOnScroll as $dd149f63282afbbf$export$18fc8428861184da} from \"./useCloseOnScroll.mjs\";\nimport {useState as $39EOa$useState, useRef as $39EOa$useRef, useEffect as $39EOa$useEffect, useCallback as $39EOa$useCallback} from \"react\";\nimport {useLayoutEffect as $39EOa$useLayoutEffect, useResizeObserver as $39EOa$useResizeObserver} from \"@react-aria/utils\";\nimport {useLocale as $39EOa$useLocale} from \"@react-aria/i18n\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nlet $2a41e45df1593e64$var$visualViewport = typeof document !== 'undefined' ? window.visualViewport : null;\nfunction $2a41e45df1593e64$export$d39e1813b3bdd0e1(props) {\n let { direction: direction } = (0, $39EOa$useLocale)();\n let { arrowSize: arrowSize = 0, targetRef: targetRef, overlayRef: overlayRef, scrollRef: scrollRef = overlayRef, placement: placement = 'bottom', containerPadding: containerPadding = 12, shouldFlip: shouldFlip = true, boundaryElement: boundaryElement = typeof document !== 'undefined' ? document.body : null, offset: offset = 0, crossOffset: crossOffset = 0, shouldUpdatePosition: shouldUpdatePosition = true, isOpen: isOpen = true, onClose: onClose, maxHeight: maxHeight, arrowBoundaryOffset: arrowBoundaryOffset = 0 } = props;\n let [position, setPosition] = (0, $39EOa$useState)(null);\n let deps = [\n shouldUpdatePosition,\n placement,\n overlayRef.current,\n targetRef.current,\n scrollRef.current,\n containerPadding,\n shouldFlip,\n boundaryElement,\n offset,\n crossOffset,\n isOpen,\n direction,\n maxHeight,\n arrowBoundaryOffset,\n arrowSize\n ];\n // Note, the position freezing breaks if body sizes itself dynamicly with the visual viewport but that might\n // just be a non-realistic use case\n // Upon opening a overlay, record the current visual viewport scale so we can freeze the overlay styles\n let lastScale = (0, $39EOa$useRef)($2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.scale);\n (0, $39EOa$useEffect)(()=>{\n if (isOpen) lastScale.current = $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.scale;\n }, [\n isOpen\n ]);\n let updatePosition = (0, $39EOa$useCallback)(()=>{\n if (shouldUpdatePosition === false || !isOpen || !overlayRef.current || !targetRef.current || !boundaryElement) return;\n if (($2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.scale) !== lastScale.current) return;\n // Determine a scroll anchor based on the focused element.\n // This stores the offset of the anchor element from the scroll container\n // so it can be restored after repositioning. This way if the overlay height\n // changes, the focused element appears to stay in the same position.\n let anchor = null;\n if (scrollRef.current && scrollRef.current.contains(document.activeElement)) {\n var _document_activeElement;\n let anchorRect = (_document_activeElement = document.activeElement) === null || _document_activeElement === void 0 ? void 0 : _document_activeElement.getBoundingClientRect();\n let scrollRect = scrollRef.current.getBoundingClientRect();\n var _anchorRect_top;\n // Anchor from the top if the offset is in the top half of the scrollable element,\n // otherwise anchor from the bottom.\n anchor = {\n type: 'top',\n offset: ((_anchorRect_top = anchorRect === null || anchorRect === void 0 ? void 0 : anchorRect.top) !== null && _anchorRect_top !== void 0 ? _anchorRect_top : 0) - scrollRect.top\n };\n if (anchor.offset > scrollRect.height / 2) {\n anchor.type = 'bottom';\n var _anchorRect_bottom;\n anchor.offset = ((_anchorRect_bottom = anchorRect === null || anchorRect === void 0 ? void 0 : anchorRect.bottom) !== null && _anchorRect_bottom !== void 0 ? _anchorRect_bottom : 0) - scrollRect.bottom;\n }\n }\n // Always reset the overlay's previous max height if not defined by the user so that we can compensate for\n // RAC collections populating after a second render and properly set a correct max height + positioning when it populates.\n let overlay = overlayRef.current;\n if (!maxHeight && overlayRef.current) {\n var _window_visualViewport;\n overlay.style.top = '0px';\n overlay.style.bottom = '';\n var _window_visualViewport_height;\n overlay.style.maxHeight = ((_window_visualViewport_height = (_window_visualViewport = window.visualViewport) === null || _window_visualViewport === void 0 ? void 0 : _window_visualViewport.height) !== null && _window_visualViewport_height !== void 0 ? _window_visualViewport_height : window.innerHeight) + 'px';\n }\n let position = (0, $edcf132a9284368a$export$b3ceb0cbf1056d98)({\n placement: $2a41e45df1593e64$var$translateRTL(placement, direction),\n overlayNode: overlayRef.current,\n targetNode: targetRef.current,\n scrollNode: scrollRef.current || overlayRef.current,\n padding: containerPadding,\n shouldFlip: shouldFlip,\n boundaryElement: boundaryElement,\n offset: offset,\n crossOffset: crossOffset,\n maxHeight: maxHeight,\n arrowSize: arrowSize,\n arrowBoundaryOffset: arrowBoundaryOffset\n });\n if (!position.position) return;\n // Modify overlay styles directly so positioning happens immediately without the need of a second render\n // This is so we don't have to delay autoFocus scrolling or delay applying preventScroll for popovers\n overlay.style.top = '';\n overlay.style.bottom = '';\n overlay.style.left = '';\n overlay.style.right = '';\n Object.keys(position.position).forEach((key)=>overlay.style[key] = position.position[key] + 'px');\n overlay.style.maxHeight = position.maxHeight != null ? position.maxHeight + 'px' : '';\n // Restore scroll position relative to anchor element.\n if (anchor && document.activeElement && scrollRef.current) {\n let anchorRect = document.activeElement.getBoundingClientRect();\n let scrollRect = scrollRef.current.getBoundingClientRect();\n let newOffset = anchorRect[anchor.type] - scrollRect[anchor.type];\n scrollRef.current.scrollTop += newOffset - anchor.offset;\n }\n // Trigger a set state for a second render anyway for arrow positioning\n setPosition(position);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n // Update position when anything changes\n // eslint-disable-next-line react-hooks/exhaustive-deps\n (0, $39EOa$useLayoutEffect)(updatePosition, deps);\n // Update position on window resize\n $2a41e45df1593e64$var$useResize(updatePosition);\n // Update position when the overlay changes size (might need to flip).\n (0, $39EOa$useResizeObserver)({\n ref: overlayRef,\n onResize: updatePosition\n });\n // Update position when the target changes size (might need to flip).\n (0, $39EOa$useResizeObserver)({\n ref: targetRef,\n onResize: updatePosition\n });\n // Reposition the overlay and do not close on scroll while the visual viewport is resizing.\n // This will ensure that overlays adjust their positioning when the iOS virtual keyboard appears.\n let isResizing = (0, $39EOa$useRef)(false);\n (0, $39EOa$useLayoutEffect)(()=>{\n let timeout;\n let onResize = ()=>{\n isResizing.current = true;\n clearTimeout(timeout);\n timeout = setTimeout(()=>{\n isResizing.current = false;\n }, 500);\n updatePosition();\n };\n // Only reposition the overlay if a scroll event happens immediately as a result of resize (aka the virtual keyboard has appears)\n // We don't want to reposition the overlay if the user has pinch zoomed in and is scrolling the viewport around.\n let onScroll = ()=>{\n if (isResizing.current) onResize();\n };\n $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.addEventListener('resize', onResize);\n $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.addEventListener('scroll', onScroll);\n return ()=>{\n $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.removeEventListener('resize', onResize);\n $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.removeEventListener('scroll', onScroll);\n };\n }, [\n updatePosition\n ]);\n let close = (0, $39EOa$useCallback)(()=>{\n if (!isResizing.current) onClose === null || onClose === void 0 ? void 0 : onClose();\n }, [\n onClose,\n isResizing\n ]);\n // When scrolling a parent scrollable region of the trigger (other than the body),\n // we hide the popover. Otherwise, its position would be incorrect.\n (0, $dd149f63282afbbf$export$18fc8428861184da)({\n triggerRef: targetRef,\n isOpen: isOpen,\n onClose: onClose && close\n });\n var _position_maxHeight, _position_placement;\n return {\n overlayProps: {\n style: {\n position: 'absolute',\n zIndex: 100000,\n ...position === null || position === void 0 ? void 0 : position.position,\n maxHeight: (_position_maxHeight = position === null || position === void 0 ? void 0 : position.maxHeight) !== null && _position_maxHeight !== void 0 ? _position_maxHeight : '100vh'\n }\n },\n placement: (_position_placement = position === null || position === void 0 ? void 0 : position.placement) !== null && _position_placement !== void 0 ? _position_placement : null,\n arrowProps: {\n 'aria-hidden': 'true',\n role: 'presentation',\n style: {\n left: position === null || position === void 0 ? void 0 : position.arrowOffsetLeft,\n top: position === null || position === void 0 ? void 0 : position.arrowOffsetTop\n }\n },\n updatePosition: updatePosition\n };\n}\nfunction $2a41e45df1593e64$var$useResize(onResize) {\n (0, $39EOa$useLayoutEffect)(()=>{\n window.addEventListener('resize', onResize, false);\n return ()=>{\n window.removeEventListener('resize', onResize, false);\n };\n }, [\n onResize\n ]);\n}\nfunction $2a41e45df1593e64$var$translateRTL(position, direction) {\n if (direction === 'rtl') return position.replace('start', 'right').replace('end', 'left');\n return position.replace('start', 'left').replace('end', 'right');\n}\n\n\nexport {$2a41e45df1593e64$export$d39e1813b3bdd0e1 as useOverlayPosition};\n//# sourceMappingURL=useOverlayPosition.module.js.map\n"],"names":["$2a41e45df1593e64$var$visualViewport","$2a41e45df1593e64$export$d39e1813b3bdd0e1","props","direction","$39EOa$useLocale","arrowSize","targetRef","overlayRef","scrollRef","placement","containerPadding","shouldFlip","boundaryElement","offset","crossOffset","shouldUpdatePosition","isOpen","onClose","maxHeight","arrowBoundaryOffset","position","setPosition","$39EOa$useState","deps","lastScale","$39EOa$useRef","$39EOa$useEffect","updatePosition","$39EOa$useCallback","anchor","_document_activeElement","anchorRect","scrollRect","_anchorRect_top","_anchorRect_bottom","overlay","_window_visualViewport","_window_visualViewport_height","$edcf132a9284368a$export$b3ceb0cbf1056d98","$2a41e45df1593e64$var$translateRTL","key","newOffset","$39EOa$useLayoutEffect","$2a41e45df1593e64$var$useResize","$39EOa$useResizeObserver","isResizing","timeout","onResize","onScroll","close","$dd149f63282afbbf$export$18fc8428861184da","_position_maxHeight","_position_placement"],"mappings":";;;;;AAqBA,IAAIA,IAAuC,OAAO,WAAa,MAAc,OAAO,iBAAiB;AACrG,SAASC,GAA0CC,GAAO;AACtD,MAAI,EAAE,WAAWC,MAAkBC,EAAgB,GAC/C,EAAE,WAAWC,IAAY,GAAG,WAAWC,GAAW,YAAYC,GAAY,WAAWC,IAAYD,GAAY,WAAWE,IAAY,UAAU,kBAAkBC,IAAmB,IAAI,YAAYC,IAAa,IAAM,iBAAiBC,IAAkB,OAAO,WAAa,MAAc,SAAS,OAAO,MAAM,QAAQC,IAAS,GAAG,aAAaC,IAAc,GAAG,sBAAsBC,IAAuB,IAAM,QAAQC,IAAS,IAAM,SAASC,GAAS,WAAWC,GAAW,qBAAqBC,IAAsB,EAAC,IAAKjB,GACtgB,CAACkB,GAAUC,CAAW,IAAQC,EAAiB,IAAI,GACnDC,IAAO;AAAA,IACPR;AAAA,IACAN;AAAA,IACAF,EAAW;AAAA,IACXD,EAAU;AAAA,IACVE,EAAU;AAAA,IACVE;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAE;AAAA,IACAb;AAAA,IACAe;AAAA,IACAC;AAAA,IACAd;AAAA,EACR,GAIQmB,IAAgBC,EAAezB,KAAyC,OAA0D,SAASA,EAAqC,KAAK;AACzL,EAAI0B,EAAkB,MAAI;AACtB,IAAIV,MAAQQ,EAAU,UAAUxB,KAAyC,OAA0D,SAASA,EAAqC;AAAA,EACzL,GAAO;AAAA,IACCgB;AAAA,EACR,CAAK;AACD,MAAIW,IAAqBC,EAAoB,MAAI;AAE7C,QADIb,MAAyB,MAAS,CAACC,KAAU,CAACT,EAAW,WAAW,CAACD,EAAU,WAAW,CAACM,MAC1FZ,KAA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R,EAAmCnB,GAAUjB,GAAW;AAC7D,SAAIA,MAAc,QAAciB,EAAS,QAAQ,SAAS,OAAO,EAAE,QAAQ,OAAO,MAAM,IACjFA,EAAS,QAAQ,SAAS,MAAM,EAAE,QAAQ,OAAO,OAAO;AACnE;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./useCloseOnScroll.cjs.js"),u=require("react"),a=require("@react-aria/utils");function d(n,e,r){let{type:t}=n,{isOpen:i}=e;u.useEffect(()=>{r&&r.current&&l.onCloseMap.set(r.current,e.close)});let o;t==="menu"?o=!0:t==="listbox"&&(o="listbox");let s=a.useId();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?s:void 0,onPress:e.toggle},overlayProps:{id:s}}}exports.useOverlayTrigger=d;
|
|
2
|
-
//# sourceMappingURL=useOverlayTrigger.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useOverlayTrigger.cjs.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/useOverlayTrigger.mjs"],"sourcesContent":["import {onCloseMap as $dd149f63282afbbf$export$f6211563215e3b37} from \"./useCloseOnScroll.mjs\";\nimport {useEffect as $gMvIk$useEffect} from \"react\";\nimport {useId as $gMvIk$useId} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nfunction $628037886ba31236$export$f9d5c8beee7d008d(props, state, ref) {\n let { type: type } = props;\n let { isOpen: isOpen } = state;\n // Backward compatibility. Share state close function with useOverlayPosition so it can close on scroll\n // without forcing users to pass onClose.\n (0, $gMvIk$useEffect)(()=>{\n if (ref && ref.current) (0, $dd149f63282afbbf$export$f6211563215e3b37).set(ref.current, state.close);\n });\n // Aria 1.1 supports multiple values for aria-haspopup other than just menus.\n // https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup\n // However, we only add it for menus for now because screen readers often\n // announce it as a menu even for other values.\n let ariaHasPopup = undefined;\n if (type === 'menu') ariaHasPopup = true;\n else if (type === 'listbox') ariaHasPopup = 'listbox';\n let overlayId = (0, $gMvIk$useId)();\n return {\n triggerProps: {\n 'aria-haspopup': ariaHasPopup,\n 'aria-expanded': isOpen,\n 'aria-controls': isOpen ? overlayId : undefined,\n onPress: state.toggle\n },\n overlayProps: {\n id: overlayId\n }\n };\n}\n\n\nexport {$628037886ba31236$export$f9d5c8beee7d008d as useOverlayTrigger};\n//# sourceMappingURL=useOverlayTrigger.module.js.map\n"],"names":["$628037886ba31236$export$f9d5c8beee7d008d","props","state","ref","type","isOpen","$gMvIk$useEffect","$dd149f63282afbbf$export$f6211563215e3b37","ariaHasPopup","overlayId","$gMvIk$useId"],"mappings":"+KAiBA,SAASA,EAA0CC,EAAOC,EAAOC,EAAK,CAClE,GAAI,CAAE,KAAMC,CAAM,EAAGH,EACjB,CAAE,OAAQI,CAAQ,EAAGH,EAGrBI,EAAgB,UAAE,IAAI,CAClBH,GAAOA,EAAI,SAAaI,EAAyC,WAAE,IAAIJ,EAAI,QAASD,EAAM,KAAK,CAC3G,CAAK,EAKD,IAAIM,EACAJ,IAAS,OAAQI,EAAe,GAC3BJ,IAAS,YAAWI,EAAe,WAC5C,IAAIC,EAAgBC,EAAAA,QACpB,MAAO,CACH,aAAc,CACV,gBAAiBF,EACjB,gBAAiBH,EACjB,gBAAiBA,EAASI,EAAY,OACtC,QAASP,EAAM,MAClB,EACD,aAAc,CACV,GAAIO,CACP,CACT,CACA","x_google_ignoreList":[0]}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { onCloseMap as a } from "./useCloseOnScroll.es.js";
|
|
2
|
-
import { useEffect as n } from "react";
|
|
3
|
-
import { useId as d } from "@react-aria/utils";
|
|
4
|
-
function b(s, e, r) {
|
|
5
|
-
let { type: i } = s, { isOpen: t } = e;
|
|
6
|
-
n(() => {
|
|
7
|
-
r && r.current && a.set(r.current, e.close);
|
|
8
|
-
});
|
|
9
|
-
let o;
|
|
10
|
-
i === "menu" ? o = !0 : i === "listbox" && (o = "listbox");
|
|
11
|
-
let p = d();
|
|
12
|
-
return {
|
|
13
|
-
triggerProps: {
|
|
14
|
-
"aria-haspopup": o,
|
|
15
|
-
"aria-expanded": t,
|
|
16
|
-
"aria-controls": t ? p : void 0,
|
|
17
|
-
onPress: e.toggle
|
|
18
|
-
},
|
|
19
|
-
overlayProps: {
|
|
20
|
-
id: p
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export {
|
|
25
|
-
b as useOverlayTrigger
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=useOverlayTrigger.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useOverlayTrigger.es.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/useOverlayTrigger.mjs"],"sourcesContent":["import {onCloseMap as $dd149f63282afbbf$export$f6211563215e3b37} from \"./useCloseOnScroll.mjs\";\nimport {useEffect as $gMvIk$useEffect} from \"react\";\nimport {useId as $gMvIk$useId} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nfunction $628037886ba31236$export$f9d5c8beee7d008d(props, state, ref) {\n let { type: type } = props;\n let { isOpen: isOpen } = state;\n // Backward compatibility. Share state close function with useOverlayPosition so it can close on scroll\n // without forcing users to pass onClose.\n (0, $gMvIk$useEffect)(()=>{\n if (ref && ref.current) (0, $dd149f63282afbbf$export$f6211563215e3b37).set(ref.current, state.close);\n });\n // Aria 1.1 supports multiple values for aria-haspopup other than just menus.\n // https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup\n // However, we only add it for menus for now because screen readers often\n // announce it as a menu even for other values.\n let ariaHasPopup = undefined;\n if (type === 'menu') ariaHasPopup = true;\n else if (type === 'listbox') ariaHasPopup = 'listbox';\n let overlayId = (0, $gMvIk$useId)();\n return {\n triggerProps: {\n 'aria-haspopup': ariaHasPopup,\n 'aria-expanded': isOpen,\n 'aria-controls': isOpen ? overlayId : undefined,\n onPress: state.toggle\n },\n overlayProps: {\n id: overlayId\n }\n };\n}\n\n\nexport {$628037886ba31236$export$f9d5c8beee7d008d as useOverlayTrigger};\n//# sourceMappingURL=useOverlayTrigger.module.js.map\n"],"names":["$628037886ba31236$export$f9d5c8beee7d008d","props","state","ref","type","isOpen","$gMvIk$useEffect","$dd149f63282afbbf$export$f6211563215e3b37","ariaHasPopup","overlayId","$gMvIk$useId"],"mappings":";;;AAiBA,SAASA,EAA0CC,GAAOC,GAAOC,GAAK;AAClE,MAAI,EAAE,MAAMC,EAAM,IAAGH,GACjB,EAAE,QAAQI,EAAQ,IAAGH;AAGzB,EAAII,EAAkB,MAAI;AACtB,IAAIH,KAAOA,EAAI,WAAaI,EAA2C,IAAIJ,EAAI,SAASD,EAAM,KAAK;AAAA,EAC3G,CAAK;AAKD,MAAIM;AACJ,EAAIJ,MAAS,SAAQI,IAAe,KAC3BJ,MAAS,cAAWI,IAAe;AAC5C,MAAIC,IAAgBC;AACpB,SAAO;AAAA,IACH,cAAc;AAAA,MACV,iBAAiBF;AAAA,MACjB,iBAAiBH;AAAA,MACjB,iBAAiBA,IAASI,IAAY;AAAA,MACtC,SAASP,EAAM;AAAA,IAClB;AAAA,IACD,cAAc;AAAA,MACV,IAAIO;AAAA,IACP;AAAA,EACT;AACA;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./ariaHideOutside.cjs.js"),f=require("./useOverlayPosition.cjs.js"),m=require("./useOverlay.cjs.js"),g=require("./usePreventScroll.cjs.js"),D=require("@react-aria/utils"),S=require("react");function h(a,r){let{triggerRef:d,popoverRef:s,groupRef:e,isNonModal:o,isKeyboardDismissDisabled:p,shouldCloseOnInteractOutside:c,...n}=a,u=n.trigger==="SubmenuTrigger",{overlayProps:v,underlayProps:O}=m.useOverlay({isOpen:r.isOpen,onClose:r.close,shouldCloseOnBlur:!0,isDismissable:!o||u,isKeyboardDismissDisabled:p,shouldCloseOnInteractOutside:c},e??s),{overlayProps:P,arrowProps:y,placement:b}=f.useOverlayPosition({...n,targetRef:d,overlayRef:s,isOpen:r.isOpen,onClose:o&&!u?r.close:null});return g.usePreventScroll({isDisabled:o||!r.isOpen}),S.useEffect(()=>{if(r.isOpen&&s.current){var i,l;return o?t.keepVisible((i=e==null?void 0:e.current)!==null&&i!==void 0?i:s.current):t.ariaHideOutside([(l=e==null?void 0:e.current)!==null&&l!==void 0?l:s.current],{shouldUseInert:!0})}},[o,r.isOpen,s,e]),{popoverProps:D.mergeProps(v,P),arrowProps:y,underlayProps:O,placement:b}}exports.usePopover=h;
|
|
2
|
-
//# sourceMappingURL=usePopover.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePopover.cjs.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/usePopover.mjs"],"sourcesContent":["import {ariaHideOutside as $5e3802645cc19319$export$1c3ebcada18427bf, keepVisible as $5e3802645cc19319$export$1020fa7f77e17884} from \"./ariaHideOutside.mjs\";\nimport {useOverlayPosition as $2a41e45df1593e64$export$d39e1813b3bdd0e1} from \"./useOverlayPosition.mjs\";\nimport {useOverlay as $a11501f3d1d39e6c$export$ea8f71083e90600f} from \"./useOverlay.mjs\";\nimport {usePreventScroll as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18} from \"./usePreventScroll.mjs\";\nimport {mergeProps as $m0yab$mergeProps} from \"@react-aria/utils\";\nimport {useEffect as $m0yab$useEffect} from \"react\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\nfunction $f2f8a6077418541e$export$542a6fd13ac93354(props, state) {\n let { triggerRef: triggerRef, popoverRef: popoverRef, groupRef: groupRef, isNonModal: isNonModal, isKeyboardDismissDisabled: isKeyboardDismissDisabled, shouldCloseOnInteractOutside: shouldCloseOnInteractOutside, ...otherProps } = props;\n let isSubmenu = otherProps['trigger'] === 'SubmenuTrigger';\n let { overlayProps: overlayProps, underlayProps: underlayProps } = (0, $a11501f3d1d39e6c$export$ea8f71083e90600f)({\n isOpen: state.isOpen,\n onClose: state.close,\n shouldCloseOnBlur: true,\n isDismissable: !isNonModal || isSubmenu,\n isKeyboardDismissDisabled: isKeyboardDismissDisabled,\n shouldCloseOnInteractOutside: shouldCloseOnInteractOutside\n }, groupRef !== null && groupRef !== void 0 ? groupRef : popoverRef);\n let { overlayProps: positionProps, arrowProps: arrowProps, placement: placement } = (0, $2a41e45df1593e64$export$d39e1813b3bdd0e1)({\n ...otherProps,\n targetRef: triggerRef,\n overlayRef: popoverRef,\n isOpen: state.isOpen,\n onClose: isNonModal && !isSubmenu ? state.close : null\n });\n (0, $49c51c25361d4cd2$export$ee0f7cc6afcd1c18)({\n isDisabled: isNonModal || !state.isOpen\n });\n (0, $m0yab$useEffect)(()=>{\n if (state.isOpen && popoverRef.current) {\n var _groupRef_current, _groupRef_current1;\n if (isNonModal) return (0, $5e3802645cc19319$export$1020fa7f77e17884)((_groupRef_current = groupRef === null || groupRef === void 0 ? void 0 : groupRef.current) !== null && _groupRef_current !== void 0 ? _groupRef_current : popoverRef.current);\n else return (0, $5e3802645cc19319$export$1c3ebcada18427bf)([\n (_groupRef_current1 = groupRef === null || groupRef === void 0 ? void 0 : groupRef.current) !== null && _groupRef_current1 !== void 0 ? _groupRef_current1 : popoverRef.current\n ], {\n shouldUseInert: true\n });\n }\n }, [\n isNonModal,\n state.isOpen,\n popoverRef,\n groupRef\n ]);\n return {\n popoverProps: (0, $m0yab$mergeProps)(overlayProps, positionProps),\n arrowProps: arrowProps,\n underlayProps: underlayProps,\n placement: placement\n };\n}\n\n\nexport {$f2f8a6077418541e$export$542a6fd13ac93354 as usePopover};\n//# sourceMappingURL=usePopover.module.js.map\n"],"names":["$f2f8a6077418541e$export$542a6fd13ac93354","props","state","triggerRef","popoverRef","groupRef","isNonModal","isKeyboardDismissDisabled","shouldCloseOnInteractOutside","otherProps","isSubmenu","overlayProps","underlayProps","$a11501f3d1d39e6c$export$ea8f71083e90600f","positionProps","arrowProps","placement","$2a41e45df1593e64$export$d39e1813b3bdd0e1","$49c51c25361d4cd2$export$ee0f7cc6afcd1c18","$m0yab$useEffect","_groupRef_current","_groupRef_current1","$5e3802645cc19319$export$1020fa7f77e17884","$5e3802645cc19319$export$1c3ebcada18427bf","$m0yab$mergeProps"],"mappings":"+RAuBA,SAASA,EAA0CC,EAAOC,EAAO,CAC7D,GAAI,CAAE,WAAYC,EAAY,WAAYC,EAAY,SAAUC,EAAU,WAAYC,EAAY,0BAA2BC,EAA2B,6BAA8BC,EAA8B,GAAGC,CAAY,EAAGR,EAClOS,EAAYD,EAAW,UAAe,iBACtC,CAAE,aAAcE,EAAc,cAAeC,CAAa,EAASC,aAA2C,CAC9G,OAAQX,EAAM,OACd,QAASA,EAAM,MACf,kBAAmB,GACnB,cAAe,CAACI,GAAcI,EAC9B,0BAA2BH,EAC3B,6BAA8BC,CACtC,EAAOH,GAAsDD,CAAU,EAC/D,CAAE,aAAcU,EAAe,WAAYC,EAAY,UAAWC,GAAkBC,qBAA2C,CAC/H,GAAGR,EACH,UAAWN,EACX,WAAYC,EACZ,OAAQF,EAAM,OACd,QAASI,GAAc,CAACI,EAAYR,EAAM,MAAQ,IAC1D,CAAK,EACD,OAAIgB,mBAA2C,CAC3C,WAAYZ,GAAc,CAACJ,EAAM,MACzC,CAAK,EACGiB,EAAgB,UAAE,IAAI,CACtB,GAAIjB,EAAM,QAAUE,EAAW,QAAS,CACpC,IAAIgB,EAAmBC,EACvB,OAAIf,EAAuBgB,eAA4CF,EAAoBf,GAAa,KAA8B,OAASA,EAAS,WAAa,MAAQe,IAAsB,OAASA,EAAoBhB,EAAW,OAAO,EAClOmB,EAAAA,gBAA2C,EACtDF,EAAqBhB,GAAa,KAA8B,OAASA,EAAS,WAAa,MAAQgB,IAAuB,OAASA,EAAqBjB,EAAW,OACxL,EAAe,CACC,eAAgB,EAChC,CAAa,CACJ,CACT,EAAO,CACCE,EACAJ,EAAM,OACNE,EACAC,CACR,CAAK,EACM,CACH,aAAkBmB,EAAAA,WAAmBb,EAAcG,CAAa,EAChE,WAAYC,EACZ,cAAeH,EACf,UAAWI,CACnB,CACA","x_google_ignoreList":[0]}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { keepVisible as O, ariaHideOutside as P } from "./ariaHideOutside.es.js";
|
|
2
|
-
import { useOverlayPosition as b } from "./useOverlayPosition.es.js";
|
|
3
|
-
import { useOverlay as y } from "./useOverlay.es.js";
|
|
4
|
-
import { usePreventScroll as g } from "./usePreventScroll.es.js";
|
|
5
|
-
import { mergeProps as D } from "@react-aria/utils";
|
|
6
|
-
import { useEffect as x } from "react";
|
|
7
|
-
function S(n, r) {
|
|
8
|
-
let { triggerRef: d, popoverRef: o, groupRef: e, isNonModal: s, isKeyboardDismissDisabled: t, shouldCloseOnInteractOutside: u, ...p } = n, a = p.trigger === "SubmenuTrigger", { overlayProps: c, underlayProps: f } = y({
|
|
9
|
-
isOpen: r.isOpen,
|
|
10
|
-
onClose: r.close,
|
|
11
|
-
shouldCloseOnBlur: !0,
|
|
12
|
-
isDismissable: !s || a,
|
|
13
|
-
isKeyboardDismissDisabled: t,
|
|
14
|
-
shouldCloseOnInteractOutside: u
|
|
15
|
-
}, e ?? o), { overlayProps: m, arrowProps: v, placement: $ } = b({
|
|
16
|
-
...p,
|
|
17
|
-
targetRef: d,
|
|
18
|
-
overlayRef: o,
|
|
19
|
-
isOpen: r.isOpen,
|
|
20
|
-
onClose: s && !a ? r.close : null
|
|
21
|
-
});
|
|
22
|
-
return g({
|
|
23
|
-
isDisabled: s || !r.isOpen
|
|
24
|
-
}), x(() => {
|
|
25
|
-
if (r.isOpen && o.current) {
|
|
26
|
-
var i, l;
|
|
27
|
-
return s ? O((i = e == null ? void 0 : e.current) !== null && i !== void 0 ? i : o.current) : P([
|
|
28
|
-
(l = e == null ? void 0 : e.current) !== null && l !== void 0 ? l : o.current
|
|
29
|
-
], {
|
|
30
|
-
shouldUseInert: !0
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}, [
|
|
34
|
-
s,
|
|
35
|
-
r.isOpen,
|
|
36
|
-
o,
|
|
37
|
-
e
|
|
38
|
-
]), {
|
|
39
|
-
popoverProps: D(c, m),
|
|
40
|
-
arrowProps: v,
|
|
41
|
-
underlayProps: f,
|
|
42
|
-
placement: $
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
export {
|
|
46
|
-
S as usePopover
|
|
47
|
-
};
|
|
48
|
-
//# sourceMappingURL=usePopover.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePopover.es.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/usePopover.mjs"],"sourcesContent":["import {ariaHideOutside as $5e3802645cc19319$export$1c3ebcada18427bf, keepVisible as $5e3802645cc19319$export$1020fa7f77e17884} from \"./ariaHideOutside.mjs\";\nimport {useOverlayPosition as $2a41e45df1593e64$export$d39e1813b3bdd0e1} from \"./useOverlayPosition.mjs\";\nimport {useOverlay as $a11501f3d1d39e6c$export$ea8f71083e90600f} from \"./useOverlay.mjs\";\nimport {usePreventScroll as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18} from \"./usePreventScroll.mjs\";\nimport {mergeProps as $m0yab$mergeProps} from \"@react-aria/utils\";\nimport {useEffect as $m0yab$useEffect} from \"react\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\nfunction $f2f8a6077418541e$export$542a6fd13ac93354(props, state) {\n let { triggerRef: triggerRef, popoverRef: popoverRef, groupRef: groupRef, isNonModal: isNonModal, isKeyboardDismissDisabled: isKeyboardDismissDisabled, shouldCloseOnInteractOutside: shouldCloseOnInteractOutside, ...otherProps } = props;\n let isSubmenu = otherProps['trigger'] === 'SubmenuTrigger';\n let { overlayProps: overlayProps, underlayProps: underlayProps } = (0, $a11501f3d1d39e6c$export$ea8f71083e90600f)({\n isOpen: state.isOpen,\n onClose: state.close,\n shouldCloseOnBlur: true,\n isDismissable: !isNonModal || isSubmenu,\n isKeyboardDismissDisabled: isKeyboardDismissDisabled,\n shouldCloseOnInteractOutside: shouldCloseOnInteractOutside\n }, groupRef !== null && groupRef !== void 0 ? groupRef : popoverRef);\n let { overlayProps: positionProps, arrowProps: arrowProps, placement: placement } = (0, $2a41e45df1593e64$export$d39e1813b3bdd0e1)({\n ...otherProps,\n targetRef: triggerRef,\n overlayRef: popoverRef,\n isOpen: state.isOpen,\n onClose: isNonModal && !isSubmenu ? state.close : null\n });\n (0, $49c51c25361d4cd2$export$ee0f7cc6afcd1c18)({\n isDisabled: isNonModal || !state.isOpen\n });\n (0, $m0yab$useEffect)(()=>{\n if (state.isOpen && popoverRef.current) {\n var _groupRef_current, _groupRef_current1;\n if (isNonModal) return (0, $5e3802645cc19319$export$1020fa7f77e17884)((_groupRef_current = groupRef === null || groupRef === void 0 ? void 0 : groupRef.current) !== null && _groupRef_current !== void 0 ? _groupRef_current : popoverRef.current);\n else return (0, $5e3802645cc19319$export$1c3ebcada18427bf)([\n (_groupRef_current1 = groupRef === null || groupRef === void 0 ? void 0 : groupRef.current) !== null && _groupRef_current1 !== void 0 ? _groupRef_current1 : popoverRef.current\n ], {\n shouldUseInert: true\n });\n }\n }, [\n isNonModal,\n state.isOpen,\n popoverRef,\n groupRef\n ]);\n return {\n popoverProps: (0, $m0yab$mergeProps)(overlayProps, positionProps),\n arrowProps: arrowProps,\n underlayProps: underlayProps,\n placement: placement\n };\n}\n\n\nexport {$f2f8a6077418541e$export$542a6fd13ac93354 as usePopover};\n//# sourceMappingURL=usePopover.module.js.map\n"],"names":["$f2f8a6077418541e$export$542a6fd13ac93354","props","state","triggerRef","popoverRef","groupRef","isNonModal","isKeyboardDismissDisabled","shouldCloseOnInteractOutside","otherProps","isSubmenu","overlayProps","underlayProps","$a11501f3d1d39e6c$export$ea8f71083e90600f","positionProps","arrowProps","placement","$2a41e45df1593e64$export$d39e1813b3bdd0e1","$49c51c25361d4cd2$export$ee0f7cc6afcd1c18","$m0yab$useEffect","_groupRef_current","_groupRef_current1","$5e3802645cc19319$export$1020fa7f77e17884","$5e3802645cc19319$export$1c3ebcada18427bf","$m0yab$mergeProps"],"mappings":";;;;;;AAuBA,SAASA,EAA0CC,GAAOC,GA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IACf,WAAWI;AAAA,EACnB;AACA;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zh-CN.cjs.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/zh-CN.mjs"],"sourcesContent":["var $d80a27deda7cdb3c$exports = {};\n$d80a27deda7cdb3c$exports = {\n \"dismiss\": `\\u{53D6}\\u{6D88}`\n};\n\n\nexport {$d80a27deda7cdb3c$exports as default};\n//# sourceMappingURL=zh-CN.module.js.map\n"],"names":["$d80a27deda7cdb3c$exports"],"mappings":"4GAAIA,QAAAA,QAA4B,CAAG,EACnCA,QAAAA,QAA4B,CACxB,QAAW,IACf","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zh-CN.es.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/zh-CN.mjs"],"sourcesContent":["var $d80a27deda7cdb3c$exports = {};\n$d80a27deda7cdb3c$exports = {\n \"dismiss\": `\\u{53D6}\\u{6D88}`\n};\n\n\nexport {$d80a27deda7cdb3c$exports as default};\n//# sourceMappingURL=zh-CN.module.js.map\n"],"names":["$d80a27deda7cdb3c$exports"],"mappings":"AAAG,IAACA,IAA4B,CAAG;AACnCA,IAA4B;AAAA,EACxB,SAAW;AACf;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zh-TW.cjs.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/zh-TW.mjs"],"sourcesContent":["var $2b2734393847c884$exports = {};\n$2b2734393847c884$exports = {\n \"dismiss\": `\\u{95DC}\\u{9589}`\n};\n\n\nexport {$2b2734393847c884$exports as default};\n//# sourceMappingURL=zh-TW.module.js.map\n"],"names":["$2b2734393847c884$exports"],"mappings":"4GAAIA,QAAAA,QAA4B,CAAG,EACnCA,QAAAA,QAA4B,CACxB,QAAW,IACf","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zh-TW.es.js","sources":["../../../../../node_modules/@react-aria/overlays/dist/zh-TW.mjs"],"sourcesContent":["var $2b2734393847c884$exports = {};\n$2b2734393847c884$exports = {\n \"dismiss\": `\\u{95DC}\\u{9589}`\n};\n\n\nexport {$2b2734393847c884$exports as default};\n//# sourceMappingURL=zh-TW.module.js.map\n"],"names":["$2b2734393847c884$exports"],"mappings":"AAAG,IAACA,IAA4B,CAAG;AACnCA,IAA4B;AAAA,EACxB,SAAW;AACf;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./useSelect.cjs.js"),l=require("react"),g=require("@react-aria/utils"),R=require("../../form/dist/useFormValidation.cjs.js"),h=require("../../visually-hidden/dist/VisuallyHidden.cjs.js");function b(r,e,c){let a=y.selectData.get(e)||{},{autoComplete:u,name:f=a.name,form:m=a.form,isDisabled:s=a.isDisabled}=r,{validationBehavior:n,isRequired:p}=a,{visuallyHiddenProps:d}=h.useVisuallyHidden({style:{position:"fixed",top:0,left:0}});g.useFormReset(r.selectRef,e.defaultSelectedKey,e.setSelectedKey),R.useFormValidation({validationBehavior:n,focus:()=>{var t;return(t=c.current)===null||t===void 0?void 0:t.focus()}},e,r.selectRef);let o=l.useCallback(t=>e.setSelectedKey(t.currentTarget.value),[e.setSelectedKey]);var i;return{containerProps:{...d,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:u,disabled:s,required:n==="native"&&p,name:f,form:m,value:(i=e.selectedKey)!==null&&i!==void 0?i:"",onChange:o,onInput:o}}}function P(r){let{state:e,triggerRef:c,label:a,name:u,form:f,isDisabled:m}=r,s=l.useRef(null),n=l.useRef(null),{containerProps:p,selectProps:d}=b({...r,selectRef:e.collection.size<=300?s:n},e,c);if(e.collection.size<=300)return l.createElement("div",{...p,"data-testid":"hidden-select-container"},l.createElement("label",null,a,l.createElement("select",{...d,ref:s},l.createElement("option",null),[...e.collection.getKeys()].map(i=>{let t=e.collection.getItem(i);if(t&&t.type==="item")return l.createElement("option",{key:t.key,value:t.key},t.textValue)}))));if(u){let i=y.selectData.get(e)||{},{validationBehavior:t}=i;var o;let v={type:"hidden",autoComplete:d.autoComplete,name:u,form:f,disabled:m,value:(o=e.selectedKey)!==null&&o!==void 0?o:""};return t==="native"?l.createElement("input",{...v,ref:n,style:{display:"none"},type:"text",required:d.required,onChange:()=>{}}):l.createElement("input",{...v,ref:n})}return null}exports.HiddenSelect=P;exports.useHiddenSelect=b;
|
|
2
|
-
//# sourceMappingURL=HiddenSelect.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HiddenSelect.cjs.js","sources":["../../../../../node_modules/@react-aria/select/dist/HiddenSelect.mjs"],"sourcesContent":["import {selectData as $58aed456727eb0f3$export$703601b7e90536f8} from \"./useSelect.mjs\";\nimport $8BE50$react, {useCallback as $8BE50$useCallback, useRef as $8BE50$useRef} from \"react\";\nimport {useFormReset as $8BE50$useFormReset} from \"@react-aria/utils\";\nimport {useFormValidation as $8BE50$useFormValidation} from \"@react-aria/form\";\nimport {useVisuallyHidden as $8BE50$useVisuallyHidden} from \"@react-aria/visually-hidden\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nfunction $bdd25dc72710631f$export$f809e80f58e251d1(props, state, triggerRef) {\n let data = (0, $58aed456727eb0f3$export$703601b7e90536f8).get(state) || {};\n let { autoComplete: autoComplete, name: name = data.name, form: form = data.form, isDisabled: isDisabled = data.isDisabled } = props;\n let { validationBehavior: validationBehavior, isRequired: isRequired } = data;\n let { visuallyHiddenProps: visuallyHiddenProps } = (0, $8BE50$useVisuallyHidden)({\n style: {\n // Prevent page scrolling.\n position: 'fixed',\n top: 0,\n left: 0\n }\n });\n (0, $8BE50$useFormReset)(props.selectRef, state.defaultSelectedKey, state.setSelectedKey);\n (0, $8BE50$useFormValidation)({\n validationBehavior: validationBehavior,\n focus: ()=>{\n var _triggerRef_current;\n return (_triggerRef_current = triggerRef.current) === null || _triggerRef_current === void 0 ? void 0 : _triggerRef_current.focus();\n }\n }, state, props.selectRef);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n let onChange = (0, $8BE50$useCallback)((e)=>state.setSelectedKey(e.currentTarget.value), [\n state.setSelectedKey\n ]);\n var _state_selectedKey;\n // In Safari, the <select> cannot have `display: none` or `hidden` for autofill to work.\n // In Firefox, there must be a <label> to identify the <select> whereas other browsers\n // seem to identify it just by surrounding text.\n // The solution is to use <VisuallyHidden> to hide the elements, which clips the elements to a\n // 1px rectangle. In addition, we hide from screen readers with aria-hidden, and make the <select>\n // non tabbable with tabIndex={-1}.\n return {\n containerProps: {\n ...visuallyHiddenProps,\n 'aria-hidden': true,\n // @ts-ignore\n ['data-react-aria-prevent-focus']: true,\n // @ts-ignore\n ['data-a11y-ignore']: 'aria-hidden-focus'\n },\n inputProps: {\n style: {\n display: 'none'\n }\n },\n selectProps: {\n tabIndex: -1,\n autoComplete: autoComplete,\n disabled: isDisabled,\n required: validationBehavior === 'native' && isRequired,\n name: name,\n form: form,\n value: (_state_selectedKey = state.selectedKey) !== null && _state_selectedKey !== void 0 ? _state_selectedKey : '',\n onChange: onChange,\n onInput: onChange\n }\n };\n}\nfunction $bdd25dc72710631f$export$cbd84cdb2e668835(props) {\n let { state: state, triggerRef: triggerRef, label: label, name: name, form: form, isDisabled: isDisabled } = props;\n let selectRef = (0, $8BE50$useRef)(null);\n let inputRef = (0, $8BE50$useRef)(null);\n let { containerProps: containerProps, selectProps: selectProps } = $bdd25dc72710631f$export$f809e80f58e251d1({\n ...props,\n selectRef: state.collection.size <= 300 ? selectRef : inputRef\n }, state, triggerRef);\n // If used in a <form>, use a hidden input so the value can be submitted to a server.\n // If the collection isn't too big, use a hidden <select> element for this so that browser\n // autofill will work. Otherwise, use an <input type=\"hidden\">.\n if (state.collection.size <= 300) return /*#__PURE__*/ (0, $8BE50$react).createElement(\"div\", {\n ...containerProps,\n \"data-testid\": \"hidden-select-container\"\n }, /*#__PURE__*/ (0, $8BE50$react).createElement(\"label\", null, label, /*#__PURE__*/ (0, $8BE50$react).createElement(\"select\", {\n ...selectProps,\n ref: selectRef\n }, /*#__PURE__*/ (0, $8BE50$react).createElement(\"option\", null), [\n ...state.collection.getKeys()\n ].map((key)=>{\n let item = state.collection.getItem(key);\n if (item && item.type === 'item') return /*#__PURE__*/ (0, $8BE50$react).createElement(\"option\", {\n key: item.key,\n value: item.key\n }, item.textValue);\n }))));\n else if (name) {\n let data = (0, $58aed456727eb0f3$export$703601b7e90536f8).get(state) || {};\n let { validationBehavior: validationBehavior } = data;\n var _state_selectedKey;\n let inputProps = {\n type: 'hidden',\n autoComplete: selectProps.autoComplete,\n name: name,\n form: form,\n disabled: isDisabled,\n value: (_state_selectedKey = state.selectedKey) !== null && _state_selectedKey !== void 0 ? _state_selectedKey : ''\n };\n if (validationBehavior === 'native') // Use a hidden <input type=\"text\"> rather than <input type=\"hidden\">\n // so that an empty value blocks HTML form submission when the field is required.\n return /*#__PURE__*/ (0, $8BE50$react).createElement(\"input\", {\n ...inputProps,\n ref: inputRef,\n style: {\n display: 'none'\n },\n type: \"text\",\n required: selectProps.required,\n onChange: ()=>{}\n });\n return /*#__PURE__*/ (0, $8BE50$react).createElement(\"input\", {\n ...inputProps,\n ref: inputRef\n });\n }\n return null;\n}\n\n\nexport {$bdd25dc72710631f$export$f809e80f58e251d1 as useHiddenSelect, $bdd25dc72710631f$export$cbd84cdb2e668835 as HiddenSelect};\n//# sourceMappingURL=HiddenSelect.module.js.map\n"],"names":["$bdd25dc72710631f$export$f809e80f58e251d1","props","state","triggerRef","data","$58aed456727eb0f3$export$703601b7e90536f8","autoComplete","name","form","isDisabled","validationBehavior","isRequired","visuallyHiddenProps","$8BE50$useVisuallyHidden","$8BE50$useFormReset","$8BE50$useFormValidation","_triggerRef_current","onChange","$8BE50$useCallback","e","_state_selectedKey","$bdd25dc72710631f$export$cbd84cdb2e668835","label","selectRef","$8BE50$useRef","inputRef","containerProps","selectProps","$8BE50$react","key","item","inputProps"],"mappings":"4RAqBA,SAASA,EAA0CC,EAAOC,EAAOC,EAAY,CACzE,IAAIC,EAAWC,EAAyC,WAAE,IAAIH,CAAK,GAAK,CAAA,EACpE,CAAE,aAAcI,EAAc,KAAMC,EAAOH,EAAK,KAAM,KAAMI,EAAOJ,EAAK,KAAM,WAAYK,EAAaL,EAAK,UAAY,EAAGH,EAC3H,CAAE,mBAAoBS,EAAoB,WAAYC,CAAU,EAAKP,EACrE,CAAE,oBAAqBQ,CAAqB,EAAOC,EAAAA,kBAA0B,CAC7E,MAAO,CAEH,SAAU,QACV,IAAK,EACL,KAAM,CACT,CACT,CAAK,EACGC,EAAAA,aAAqBb,EAAM,UAAWC,EAAM,mBAAoBA,EAAM,cAAc,EACpFa,oBAA0B,CAC1B,mBAAoBL,EACpB,MAAO,IAAI,CACP,IAAIM,EACJ,OAAQA,EAAsBb,EAAW,WAAa,MAAQa,IAAwB,OAAS,OAASA,EAAoB,MAAK,CACpI,CACT,EAAOd,EAAOD,EAAM,SAAS,EAEzB,IAAIgB,EAAeC,EAAkB,YAAGC,GAAIjB,EAAM,eAAeiB,EAAE,cAAc,KAAK,EAAG,CACrFjB,EAAM,cACd,CAAK,EACD,IAAIkB,EAOJ,MAAO,CACH,eAAgB,CACZ,GAAGR,EACH,cAAe,GAEd,gCAAkC,GAElC,mBAAqB,mBACzB,EACD,WAAY,CACR,MAAO,CACH,Q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C1B,KAAMpB,EACN,KAAMC,EACN,SAAUC,EACV,OAAQW,EAAqBlB,EAAM,eAAiB,MAAQkB,IAAuB,OAASA,EAAqB,EAC7H,EACQ,OAAIV,IAAuB,SAEFkB,EAAc,cAAc,QAAS,CAC1D,GAAGG,EACH,IAAKN,EACL,MAAO,CACH,QAAS,MACZ,EACD,KAAM,OACN,SAAUE,EAAY,SACtB,SAAU,IAAI,CAAE,CAC5B,CAAS,EACwBC,EAAc,cAAc,QAAS,CAC1D,GAAGG,EACH,IAAKN,CACjB,CAAS,CACJ,CACD,OAAO,IACX","x_google_ignoreList":[0]}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { selectData as y } from "./useSelect.es.js";
|
|
2
|
-
import a, { useRef as b, useCallback as $ } from "react";
|
|
3
|
-
import { useFormReset as g } from "@react-aria/utils";
|
|
4
|
-
import { useFormValidation as R } from "../../form/dist/useFormValidation.es.js";
|
|
5
|
-
import { useVisuallyHidden as h } from "../../visually-hidden/dist/VisuallyHidden.es.js";
|
|
6
|
-
function x(i, e, c) {
|
|
7
|
-
let r = y.get(e) || {}, { autoComplete: s, name: f = r.name, form: m = r.form, isDisabled: u = r.isDisabled } = i, { validationBehavior: o, isRequired: p } = r, { visuallyHiddenProps: d } = h({
|
|
8
|
-
style: {
|
|
9
|
-
// Prevent page scrolling.
|
|
10
|
-
position: "fixed",
|
|
11
|
-
top: 0,
|
|
12
|
-
left: 0
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
g(i.selectRef, e.defaultSelectedKey, e.setSelectedKey), R({
|
|
16
|
-
validationBehavior: o,
|
|
17
|
-
focus: () => {
|
|
18
|
-
var t;
|
|
19
|
-
return (t = c.current) === null || t === void 0 ? void 0 : t.focus();
|
|
20
|
-
}
|
|
21
|
-
}, e, i.selectRef);
|
|
22
|
-
let n = $((t) => e.setSelectedKey(t.currentTarget.value), [
|
|
23
|
-
e.setSelectedKey
|
|
24
|
-
]);
|
|
25
|
-
var l;
|
|
26
|
-
return {
|
|
27
|
-
containerProps: {
|
|
28
|
-
...d,
|
|
29
|
-
"aria-hidden": !0,
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
"data-react-aria-prevent-focus": !0,
|
|
32
|
-
// @ts-ignore
|
|
33
|
-
"data-a11y-ignore": "aria-hidden-focus"
|
|
34
|
-
},
|
|
35
|
-
inputProps: {
|
|
36
|
-
style: {
|
|
37
|
-
display: "none"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
selectProps: {
|
|
41
|
-
tabIndex: -1,
|
|
42
|
-
autoComplete: s,
|
|
43
|
-
disabled: u,
|
|
44
|
-
required: o === "native" && p,
|
|
45
|
-
name: f,
|
|
46
|
-
form: m,
|
|
47
|
-
value: (l = e.selectedKey) !== null && l !== void 0 ? l : "",
|
|
48
|
-
onChange: n,
|
|
49
|
-
onInput: n
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
function K(i) {
|
|
54
|
-
let { state: e, triggerRef: c, label: r, name: s, form: f, isDisabled: m } = i, u = b(null), o = b(null), { containerProps: p, selectProps: d } = x({
|
|
55
|
-
...i,
|
|
56
|
-
selectRef: e.collection.size <= 300 ? u : o
|
|
57
|
-
}, e, c);
|
|
58
|
-
if (e.collection.size <= 300) return /* @__PURE__ */ a.createElement("div", {
|
|
59
|
-
...p,
|
|
60
|
-
"data-testid": "hidden-select-container"
|
|
61
|
-
}, /* @__PURE__ */ a.createElement("label", null, r, /* @__PURE__ */ a.createElement("select", {
|
|
62
|
-
...d,
|
|
63
|
-
ref: u
|
|
64
|
-
}, /* @__PURE__ */ a.createElement("option", null), [
|
|
65
|
-
...e.collection.getKeys()
|
|
66
|
-
].map((l) => {
|
|
67
|
-
let t = e.collection.getItem(l);
|
|
68
|
-
if (t && t.type === "item") return /* @__PURE__ */ a.createElement("option", {
|
|
69
|
-
key: t.key,
|
|
70
|
-
value: t.key
|
|
71
|
-
}, t.textValue);
|
|
72
|
-
}))));
|
|
73
|
-
if (s) {
|
|
74
|
-
let l = y.get(e) || {}, { validationBehavior: t } = l;
|
|
75
|
-
var n;
|
|
76
|
-
let v = {
|
|
77
|
-
type: "hidden",
|
|
78
|
-
autoComplete: d.autoComplete,
|
|
79
|
-
name: s,
|
|
80
|
-
form: f,
|
|
81
|
-
disabled: m,
|
|
82
|
-
value: (n = e.selectedKey) !== null && n !== void 0 ? n : ""
|
|
83
|
-
};
|
|
84
|
-
return t === "native" ? /* @__PURE__ */ a.createElement("input", {
|
|
85
|
-
...v,
|
|
86
|
-
ref: o,
|
|
87
|
-
style: {
|
|
88
|
-
display: "none"
|
|
89
|
-
},
|
|
90
|
-
type: "text",
|
|
91
|
-
required: d.required,
|
|
92
|
-
onChange: () => {
|
|
93
|
-
}
|
|
94
|
-
}) : /* @__PURE__ */ a.createElement("input", {
|
|
95
|
-
...v,
|
|
96
|
-
ref: o
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
return null;
|
|
100
|
-
}
|
|
101
|
-
export {
|
|
102
|
-
K as HiddenSelect,
|
|
103
|
-
x as useHiddenSelect
|
|
104
|
-
};
|
|
105
|
-
//# sourceMappingURL=HiddenSelect.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HiddenSelect.es.js","sources":["../../../../../node_modules/@react-aria/select/dist/HiddenSelect.mjs"],"sourcesContent":["import {selectData as $58aed456727eb0f3$export$703601b7e90536f8} from \"./useSelect.mjs\";\nimport $8BE50$react, {useCallback as $8BE50$useCallback, useRef as $8BE50$useRef} from \"react\";\nimport {useFormReset as $8BE50$useFormReset} from \"@react-aria/utils\";\nimport {useFormValidation as $8BE50$useFormValidation} from \"@react-aria/form\";\nimport {useVisuallyHidden as $8BE50$useVisuallyHidden} from \"@react-aria/visually-hidden\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nfunction $bdd25dc72710631f$export$f809e80f58e251d1(props, state, triggerRef) {\n let data = (0, $58aed456727eb0f3$export$703601b7e90536f8).get(state) || {};\n let { autoComplete: autoComplete, name: name = data.name, form: form = data.form, isDisabled: isDisabled = data.isDisabled } = props;\n let { validationBehavior: validationBehavior, isRequired: isRequired } = data;\n let { visuallyHiddenProps: visuallyHiddenProps } = (0, $8BE50$useVisuallyHidden)({\n style: {\n // Prevent page scrolling.\n position: 'fixed',\n top: 0,\n left: 0\n }\n });\n (0, $8BE50$useFormReset)(props.selectRef, state.defaultSelectedKey, state.setSelectedKey);\n (0, $8BE50$useFormValidation)({\n validationBehavior: validationBehavior,\n focus: ()=>{\n var _triggerRef_current;\n return (_triggerRef_current = triggerRef.current) === null || _triggerRef_current === void 0 ? void 0 : _triggerRef_current.focus();\n }\n }, state, props.selectRef);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n let onChange = (0, $8BE50$useCallback)((e)=>state.setSelectedKey(e.currentTarget.value), [\n state.setSelectedKey\n ]);\n var _state_selectedKey;\n // In Safari, the <select> cannot have `display: none` or `hidden` for autofill to work.\n // In Firefox, there must be a <label> to identify the <select> whereas other browsers\n // seem to identify it just by surrounding text.\n // The solution is to use <VisuallyHidden> to hide the elements, which clips the elements to a\n // 1px rectangle. In addition, we hide from screen readers with aria-hidden, and make the <select>\n // non tabbable with tabIndex={-1}.\n return {\n containerProps: {\n ...visuallyHiddenProps,\n 'aria-hidden': true,\n // @ts-ignore\n ['data-react-aria-prevent-focus']: true,\n // @ts-ignore\n ['data-a11y-ignore']: 'aria-hidden-focus'\n },\n inputProps: {\n style: {\n display: 'none'\n }\n },\n selectProps: {\n tabIndex: -1,\n autoComplete: autoComplete,\n disabled: isDisabled,\n required: validationBehavior === 'native' && isRequired,\n name: name,\n form: form,\n value: (_state_selectedKey = state.selectedKey) !== null && _state_selectedKey !== void 0 ? _state_selectedKey : '',\n onChange: onChange,\n onInput: onChange\n }\n };\n}\nfunction $bdd25dc72710631f$export$cbd84cdb2e668835(props) {\n let { state: state, triggerRef: triggerRef, label: label, name: name, form: form, isDisabled: isDisabled } = props;\n let selectRef = (0, $8BE50$useRef)(null);\n let inputRef = (0, $8BE50$useRef)(null);\n let { containerProps: containerProps, selectProps: selectProps } = $bdd25dc72710631f$export$f809e80f58e251d1({\n ...props,\n selectRef: state.collection.size <= 300 ? selectRef : inputRef\n }, state, triggerRef);\n // If used in a <form>, use a hidden input so the value can be submitted to a server.\n // If the collection isn't too big, use a hidden <select> element for this so that browser\n // autofill will work. Otherwise, use an <input type=\"hidden\">.\n if (state.collection.size <= 300) return /*#__PURE__*/ (0, $8BE50$react).createElement(\"div\", {\n ...containerProps,\n \"data-testid\": \"hidden-select-container\"\n }, /*#__PURE__*/ (0, $8BE50$react).createElement(\"label\", null, label, /*#__PURE__*/ (0, $8BE50$react).createElement(\"select\", {\n ...selectProps,\n ref: selectRef\n }, /*#__PURE__*/ (0, $8BE50$react).createElement(\"option\", null), [\n ...state.collection.getKeys()\n ].map((key)=>{\n let item = state.collection.getItem(key);\n if (item && item.type === 'item') return /*#__PURE__*/ (0, $8BE50$react).createElement(\"option\", {\n key: item.key,\n value: item.key\n }, item.textValue);\n }))));\n else if (name) {\n let data = (0, $58aed456727eb0f3$export$703601b7e90536f8).get(state) || {};\n let { validationBehavior: validationBehavior } = data;\n var _state_selectedKey;\n let inputProps = {\n type: 'hidden',\n autoComplete: selectProps.autoComplete,\n name: name,\n form: form,\n disabled: isDisabled,\n value: (_state_selectedKey = state.selectedKey) !== null && _state_selectedKey !== void 0 ? _state_selectedKey : ''\n };\n if (validationBehavior === 'native') // Use a hidden <input type=\"text\"> rather than <input type=\"hidden\">\n // so that an empty value blocks HTML form submission when the field is required.\n return /*#__PURE__*/ (0, $8BE50$react).createElement(\"input\", {\n ...inputProps,\n ref: inputRef,\n style: {\n display: 'none'\n },\n type: \"text\",\n required: selectProps.required,\n onChange: ()=>{}\n });\n return /*#__PURE__*/ (0, $8BE50$react).createElement(\"input\", {\n ...inputProps,\n ref: inputRef\n });\n }\n return null;\n}\n\n\nexport {$bdd25dc72710631f$export$f809e80f58e251d1 as useHiddenSelect, $bdd25dc72710631f$export$cbd84cdb2e668835 as HiddenSelect};\n//# sourceMappingURL=HiddenSelect.module.js.map\n"],"names":["$bdd25dc72710631f$export$f809e80f58e251d1","props","state","triggerRef","data","$58aed456727eb0f3$export$703601b7e90536f8","autoComplete","name","form","isDisabled","validationBehavior","isRequired","visuallyHiddenProps","$8BE50$useVisuallyHidden","$8BE50$useFormReset","$8BE50$useFormValidation","_triggerRef_current","onChange","$8BE50$useCallback","e","_state_selectedKey","$bdd25dc72710631f$export$cbd84cdb2e668835","label","selectRef","$8BE50$useRef","inputRef","containerProps","selectProps","$8BE50$react","key","item","inputProps"],"mappings":";;;;;AAqBA,SAASA,EAA0CC,GAAOC,GAAOC,GAAY;AACzE,MAAIC,IAAWC,EAA2C,IAAIH,CAAK,KAAK,CAAA,GACpE,EAAE,cAAcI,GAAc,MAAMC,IAAOH,EAAK,MAAM,MAAMI,IAAOJ,EAAK,MAAM,YAAYK,IAAaL,EAAK,WAAY,IAAGH,GAC3H,EAAE,oBAAoBS,GAAoB,YAAYC,EAAU,IAAKP,GACrE,EAAE,qBAAqBQ,EAAqB,IAAOC,EAA0B;AAAA,IAC7E,OAAO;AAAA;AAAA,MAEH,UAAU;AAAA,MACV,KAAK;AAAA,MACL,MAAM;AAAA,IACT;AAAA,EACT,CAAK;AACD,EAAIC,EAAqBb,EAAM,WAAWC,EAAM,oBAAoBA,EAAM,cAAc,GACpFa,EAA0B;AAAA,IAC1B,oBAAoBL;AAAA,IACpB,OAAO,MAAI;AACP,UAAIM;AACJ,cAAQA,IAAsBb,EAAW,a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s=require("@react-aria/utils"),I=require("react"),R=require("../../selection/dist/ListKeyboardDelegate.cjs.js"),E=require("../../selection/dist/useTypeSelect.cjs.js"),O=require("../../interactions/dist/useFocusVisible.cjs.js"),j=require("../../i18n/dist/useCollator.cjs.js"),x=require("../../label/dist/useField.cjs.js"),L=require("../../menu/dist/useMenuTrigger.cjs.js"),K=new WeakMap;function U(l,e,a){let{keyboardDelegate:f,isDisabled:u,isRequired:S,name:g,form:P,validationBehavior:M="aria"}=l,D=j.useCollator({usage:"search",sensitivity:"base"}),o=I.useMemo(()=>f||new R.ListKeyboardDelegate(e.collection,e.disabledKeys,a,D),[f,e.collection,e.disabledKeys,D,a]),{menuTriggerProps:p,menuProps:k}=L.useMenuTrigger({isDisabled:u,type:"listbox"},e,a),w=i=>{switch(i.key){case"ArrowLeft":{var c,b;i.preventDefault();let n=e.selectedKey!=null?(c=o.getKeyAbove)===null||c===void 0?void 0:c.call(o,e.selectedKey):(b=o.getFirstKey)===null||b===void 0?void 0:b.call(o);n&&e.setSelectedKey(n);break}case"ArrowRight":{var y,v;i.preventDefault();let n=e.selectedKey!=null?(y=o.getKeyBelow)===null||y===void 0?void 0:y.call(o,e.selectedKey):(v=o.getFirstKey)===null||v===void 0?void 0:v.call(o);n&&e.setSelectedKey(n);break}}},{typeSelectProps:t}=E.useTypeSelect({keyboardDelegate:o,selectionManager:e.selectionManager,onTypeSelect(i){e.setSelectedKey(i)}}),{isInvalid:m,validationErrors:h,validationDetails:q}=e.displayValidation,{labelProps:B,fieldProps:d,descriptionProps:C,errorMessageProps:T}=x.useField({...l,labelElementType:"span",isInvalid:m,errorMessage:l.errorMessage||h});t.onKeyDown=t.onKeyDownCapture,delete t.onKeyDownCapture;let $=s.filterDOMProps(l,{labelable:!0}),r=s.mergeProps(t,p,d),F=s.useId();return K.set(e,{isDisabled:u,isRequired:S,name:g,form:P,validationBehavior:M}),{labelProps:{...B,onClick:()=>{if(!l.isDisabled){var i;(i=a.current)===null||i===void 0||i.focus(),O.setInteractionModality("keyboard")}}},triggerProps:s.mergeProps($,{...r,isDisabled:u,onKeyDown:s.chain(r.onKeyDown,w,l.onKeyDown),onKeyUp:l.onKeyUp,"aria-labelledby":[F,r["aria-labelledby"],r["aria-label"]&&!r["aria-labelledby"]?r.id:null].filter(Boolean).join(" "),onFocus(i){e.isFocused||(l.onFocus&&l.onFocus(i),l.onFocusChange&&l.onFocusChange(!0),e.setFocused(!0))},onBlur(i){e.isOpen||(l.onBlur&&l.onBlur(i),l.onFocusChange&&l.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:F},menuProps:{...k,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:i=>{i.currentTarget.contains(i.relatedTarget)||(l.onBlur&&l.onBlur(i),l.onFocusChange&&l.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[d["aria-labelledby"],r["aria-label"]&&!d["aria-labelledby"]?r.id:null].filter(Boolean).join(" ")},descriptionProps:C,errorMessageProps:T,isInvalid:m,validationErrors:h,validationDetails:q,hiddenSelectProps:{isDisabled:u,name:g,label:l.label,state:e,triggerRef:a,form:P}}}exports.selectData=K;exports.useSelect=U;
|
|
2
|
-
//# sourceMappingURL=useSelect.cjs.js.map
|