@protonradio/proton-ui 0.11.4 → 0.11.5-beta.2
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/_virtual/index.cjs.js +2 -0
- package/dist/_virtual/index.cjs.js.map +1 -0
- package/dist/_virtual/index.es.js +5 -0
- package/dist/_virtual/index.es.js.map +1 -0
- package/dist/_virtual/jsx-runtime.cjs.js +2 -0
- package/dist/_virtual/jsx-runtime.cjs.js.map +1 -0
- package/dist/_virtual/jsx-runtime.es.js +5 -0
- package/dist/_virtual/jsx-runtime.es.js.map +1 -0
- package/dist/_virtual/react-jsx-runtime.development.cjs.js +2 -0
- package/dist/_virtual/react-jsx-runtime.development.cjs.js.map +1 -0
- package/dist/_virtual/react-jsx-runtime.development.es.js +5 -0
- package/dist/_virtual/react-jsx-runtime.development.es.js.map +1 -0
- package/dist/_virtual/react-jsx-runtime.production.min.cjs.js +2 -0
- package/dist/_virtual/react-jsx-runtime.production.min.cjs.js.map +1 -0
- package/dist/_virtual/react-jsx-runtime.production.min.es.js +5 -0
- package/dist/_virtual/react-jsx-runtime.production.min.es.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-shim.development.cjs.js +2 -0
- package/dist/_virtual/use-sync-external-store-shim.development.cjs.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-shim.development.es.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.development.es.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-shim.production.cjs.js +2 -0
- package/dist/_virtual/use-sync-external-store-shim.production.cjs.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-shim.production.es.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.es.js.map +1 -0
- package/dist/assets/svg/icons.svg.cjs.js +2 -0
- package/dist/assets/svg/icons.svg.cjs.js.map +1 -0
- package/dist/assets/svg/icons.svg.es.js +5 -0
- package/dist/assets/svg/icons.svg.es.js.map +1 -0
- package/dist/components/ActionMenu/ActionMenu.cjs.js +2 -0
- package/dist/components/ActionMenu/ActionMenu.cjs.js.map +1 -0
- package/dist/components/ActionMenu/ActionMenu.es.js +210 -0
- package/dist/components/ActionMenu/ActionMenu.es.js.map +1 -0
- package/dist/components/Badge/Badge.cjs.js +2 -0
- package/dist/components/Badge/Badge.cjs.js.map +1 -0
- package/dist/components/Badge/Badge.es.js +25 -0
- package/dist/components/Badge/Badge.es.js.map +1 -0
- package/dist/components/Banner/Banner.cjs.js +2 -0
- package/dist/components/Banner/Banner.cjs.js.map +1 -0
- package/dist/components/Banner/Banner.es.js +131 -0
- package/dist/components/Banner/Banner.es.js.map +1 -0
- package/dist/components/Button/Button.cjs.js +2 -0
- package/dist/components/Button/Button.cjs.js.map +1 -0
- package/dist/components/Button/Button.es.js +99 -0
- package/dist/components/Button/Button.es.js.map +1 -0
- package/dist/components/ButtonGroup/ButtonGroup.cjs.js +2 -0
- package/dist/components/ButtonGroup/ButtonGroup.cjs.js.map +1 -0
- package/dist/components/ButtonGroup/ButtonGroup.es.js +51 -0
- package/dist/components/ButtonGroup/ButtonGroup.es.js.map +1 -0
- package/dist/components/ButtonWithSelect/ButtonWithSelect.cjs.js +2 -0
- package/dist/components/ButtonWithSelect/ButtonWithSelect.cjs.js.map +1 -0
- package/dist/components/ButtonWithSelect/ButtonWithSelect.es.js +81 -0
- package/dist/components/ButtonWithSelect/ButtonWithSelect.es.js.map +1 -0
- package/dist/components/DataTable/DataTable.cjs.js +2 -0
- package/dist/components/DataTable/DataTable.cjs.js.map +1 -0
- package/dist/components/DataTable/DataTable.es.js +137 -0
- package/dist/components/DataTable/DataTable.es.js.map +1 -0
- package/dist/components/Dialog/Dialog.cjs.js +2 -0
- package/dist/components/Dialog/Dialog.cjs.js.map +1 -0
- package/dist/components/Dialog/Dialog.es.js +15 -0
- package/dist/components/Dialog/Dialog.es.js.map +1 -0
- package/dist/components/Elevation/Elevation.cjs.js +2 -0
- package/dist/components/Elevation/Elevation.cjs.js.map +1 -0
- package/dist/components/Elevation/Elevation.es.js +33 -0
- package/dist/components/Elevation/Elevation.es.js.map +1 -0
- package/dist/components/Icon/Icon.cjs.js +2 -0
- package/dist/components/Icon/Icon.cjs.js.map +1 -0
- package/dist/components/Icon/Icon.es.js +42 -0
- package/dist/components/Icon/Icon.es.js.map +1 -0
- package/dist/components/ImageBackground/ImageBackground.cjs.js +2 -0
- package/dist/components/ImageBackground/ImageBackground.cjs.js.map +1 -0
- package/dist/components/ImageBackground/ImageBackground.es.js +55 -0
- package/dist/components/ImageBackground/ImageBackground.es.js.map +1 -0
- package/dist/components/Input/BaseInput/Input.cjs.js +2 -0
- package/dist/components/Input/BaseInput/Input.cjs.js.map +1 -0
- package/dist/components/Input/BaseInput/Input.es.js +182 -0
- package/dist/components/Input/BaseInput/Input.es.js.map +1 -0
- package/dist/components/Input/CopyInput/CopyInput.cjs.js +2 -0
- package/dist/components/Input/CopyInput/CopyInput.cjs.js.map +1 -0
- package/dist/components/Input/CopyInput/CopyInput.es.js +83 -0
- package/dist/components/Input/CopyInput/CopyInput.es.js.map +1 -0
- package/dist/components/Input/SearchInput/SearchInput.cjs.js +2 -0
- package/dist/components/Input/SearchInput/SearchInput.cjs.js.map +1 -0
- package/dist/components/Input/SearchInput/SearchInput.es.js +118 -0
- package/dist/components/Input/SearchInput/SearchInput.es.js.map +1 -0
- package/dist/components/ListBox/ListBox.cjs.js +2 -0
- package/dist/components/ListBox/ListBox.cjs.js.map +1 -0
- package/dist/components/ListBox/ListBox.es.js +25 -0
- package/dist/components/ListBox/ListBox.es.js.map +1 -0
- package/dist/components/Menu/MenuTrigger.cjs.js +2 -0
- package/dist/components/Menu/MenuTrigger.cjs.js.map +1 -0
- package/dist/components/Menu/MenuTrigger.es.js +97 -0
- package/dist/components/Menu/MenuTrigger.es.js.map +1 -0
- package/dist/components/Menu/PopoverMenu.cjs.js +2 -0
- package/dist/components/Menu/PopoverMenu.cjs.js.map +1 -0
- package/dist/components/Menu/PopoverMenu.es.js +116 -0
- package/dist/components/Menu/PopoverMenu.es.js.map +1 -0
- package/dist/components/Modal/Modal.cjs.js +2 -0
- package/dist/components/Modal/Modal.cjs.js.map +1 -0
- package/dist/components/Modal/Modal.es.js +122 -0
- package/dist/components/Modal/Modal.es.js.map +1 -0
- package/dist/components/Popover/Popover.cjs.js +2 -0
- package/dist/components/Popover/Popover.cjs.js.map +1 -0
- package/dist/components/Popover/Popover.es.js +74 -0
- package/dist/components/Popover/Popover.es.js.map +1 -0
- package/dist/components/ScreenOverlay/ScreenOverlay.cjs.js +2 -0
- package/dist/components/ScreenOverlay/ScreenOverlay.cjs.js.map +1 -0
- package/dist/components/ScreenOverlay/ScreenOverlay.es.js +44 -0
- package/dist/components/ScreenOverlay/ScreenOverlay.es.js.map +1 -0
- package/dist/components/Select/Select.cjs.js +2 -0
- package/dist/components/Select/Select.cjs.js.map +1 -0
- package/dist/components/Select/Select.es.js +173 -0
- package/dist/components/Select/Select.es.js.map +1 -0
- package/dist/components/Switch/Switch.cjs.js +2 -0
- package/dist/components/Switch/Switch.cjs.js.map +1 -0
- package/dist/components/Switch/Switch.es.js +40 -0
- package/dist/components/Switch/Switch.es.js.map +1 -0
- package/dist/components/Table/Collection/CompoundComponents.cjs.js +2 -0
- package/dist/components/Table/Collection/CompoundComponents.cjs.js.map +1 -0
- package/dist/components/Table/Collection/CompoundComponents.es.js +9 -0
- package/dist/components/Table/Collection/CompoundComponents.es.js.map +1 -0
- package/dist/components/Table/Collection/collectionParser.cjs.js +2 -0
- package/dist/components/Table/Collection/collectionParser.cjs.js.map +1 -0
- package/dist/components/Table/Collection/collectionParser.es.js +54 -0
- package/dist/components/Table/Collection/collectionParser.es.js.map +1 -0
- package/dist/components/Table/Collection/useTableCollection.cjs.js +2 -0
- package/dist/components/Table/Collection/useTableCollection.cjs.js.map +1 -0
- package/dist/components/Table/Collection/useTableCollection.es.js +59 -0
- package/dist/components/Table/Collection/useTableCollection.es.js.map +1 -0
- package/dist/components/Table/Table.cjs.js +2 -0
- package/dist/components/Table/Table.cjs.js.map +1 -0
- package/dist/components/Table/Table.es.js +89 -0
- package/dist/components/Table/Table.es.js.map +1 -0
- package/dist/components/Text/TextEllipsis/TextEllipsis.cjs.js +2 -0
- package/dist/components/Text/TextEllipsis/TextEllipsis.cjs.js.map +1 -0
- package/dist/components/Text/TextEllipsis/TextEllipsis.es.js +30 -0
- package/dist/components/Text/TextEllipsis/TextEllipsis.es.js.map +1 -0
- package/dist/components/Text/TextEmphasis/TextEmphasis.cjs.js +2 -0
- package/dist/components/Text/TextEmphasis/TextEmphasis.cjs.js.map +1 -0
- package/dist/components/Text/TextEmphasis/TextEmphasis.es.js +54 -0
- package/dist/components/Text/TextEmphasis/TextEmphasis.es.js.map +1 -0
- package/dist/components/ThemeProvider.cjs.js +2 -0
- package/dist/components/ThemeProvider.cjs.js.map +1 -0
- package/dist/components/ThemeProvider.es.js +42 -0
- package/dist/components/ThemeProvider.es.js.map +1 -0
- package/dist/components/Tombstone/Tombstone.cjs.js +2 -0
- package/dist/components/Tombstone/Tombstone.cjs.js.map +1 -0
- package/dist/components/Tombstone/Tombstone.es.js +35 -0
- package/dist/components/Tombstone/Tombstone.es.js.map +1 -0
- package/dist/components/Tooltip/Tooltip.cjs.js +2 -0
- package/dist/components/Tooltip/Tooltip.cjs.js.map +1 -0
- package/dist/components/Tooltip/Tooltip.es.js +78 -0
- package/dist/components/Tooltip/Tooltip.es.js.map +1 -0
- package/dist/components/Waveform/Waveform.cjs.js +2 -0
- package/dist/components/Waveform/Waveform.cjs.js.map +1 -0
- package/dist/components/Waveform/Waveform.es.js +163 -0
- package/dist/components/Waveform/Waveform.es.js.map +1 -0
- package/dist/components/Waveform/WaveformBar.cjs.js +2 -0
- package/dist/components/Waveform/WaveformBar.cjs.js.map +1 -0
- package/dist/components/Waveform/WaveformBar.es.js +74 -0
- package/dist/components/Waveform/WaveformBar.es.js.map +1 -0
- package/dist/constants/breakpoint.cjs.js +2 -0
- package/dist/constants/breakpoint.cjs.js.map +1 -0
- package/dist/{breakpoint-9y1_8U_b.mjs → constants/breakpoint.es.js} +2 -2
- package/dist/constants/breakpoint.es.js.map +1 -0
- package/dist/constants/placement.cjs.js +2 -0
- package/dist/constants/placement.cjs.js.map +1 -0
- package/dist/constants/placement.es.js +28 -0
- package/dist/constants/placement.es.js.map +1 -0
- package/dist/constants.cjs.js +1 -1
- package/dist/constants.cjs.js.map +1 -1
- package/dist/constants.es.js +3 -26
- package/dist/constants.es.js.map +1 -1
- package/dist/design/colors.cjs.js +2 -0
- package/dist/design/colors.cjs.js.map +1 -0
- package/dist/{colors-CWaj9dFz.mjs → design/colors.es.js} +7 -7
- package/dist/design/colors.es.js.map +1 -0
- package/dist/design/darkTheme/colors.cjs.js +2 -0
- package/dist/{colors-Ceyo4oCJ.mjs.map → design/darkTheme/colors.cjs.js.map} +1 -1
- package/dist/{colors-Ceyo4oCJ.mjs → design/darkTheme/colors.es.js} +13 -13
- package/dist/{colors-CebzFjpe.js.map → design/darkTheme/colors.es.js.map} +1 -1
- package/dist/design/darkTheme/stylesheet.cjs.js +2 -0
- package/dist/design/darkTheme/stylesheet.cjs.js.map +1 -0
- package/dist/design/darkTheme/stylesheet.es.js +52 -0
- package/dist/design/darkTheme/stylesheet.es.js.map +1 -0
- package/dist/design/generateStylesheet.cjs.js +2 -0
- package/dist/design/generateStylesheet.cjs.js.map +1 -0
- package/dist/design/generateStylesheet.es.js +26 -0
- package/dist/design/generateStylesheet.es.js.map +1 -0
- package/dist/design/lightTheme/colors.cjs.js +2 -0
- package/dist/{colors-DMkDnu4U.mjs.map → design/lightTheme/colors.cjs.js.map} +1 -1
- package/dist/{colors-DMkDnu4U.mjs → design/lightTheme/colors.es.js} +11 -11
- package/dist/{colors-DL1dYffC.js.map → design/lightTheme/colors.es.js.map} +1 -1
- package/dist/design/lightTheme/stylesheet.cjs.js +2 -0
- package/dist/design/lightTheme/stylesheet.cjs.js.map +1 -0
- package/dist/design/lightTheme/stylesheet.es.js +52 -0
- package/dist/design/lightTheme/stylesheet.es.js.map +1 -0
- package/dist/design/theme.cjs.js +2 -0
- package/dist/design/theme.cjs.js.map +1 -0
- package/dist/design/theme.es.js +12 -0
- package/dist/design/theme.es.js.map +1 -0
- package/dist/hooks/useBreakpoint.cjs.js +2 -0
- package/dist/hooks/useBreakpoint.cjs.js.map +1 -0
- package/dist/hooks/useBreakpoint.es.js +17 -0
- package/dist/hooks/useBreakpoint.es.js.map +1 -0
- package/dist/hooks/useIsClosing.cjs.js +2 -0
- package/dist/hooks/useIsClosing.cjs.js.map +1 -0
- package/dist/hooks/useIsClosing.es.js +30 -0
- package/dist/hooks/useIsClosing.es.js.map +1 -0
- package/dist/hooks/useLockBodyScroll.cjs.js +2 -0
- package/dist/hooks/useLockBodyScroll.cjs.js.map +1 -0
- package/dist/hooks/useLockBodyScroll.es.js +14 -0
- package/dist/hooks/useLockBodyScroll.es.js.map +1 -0
- package/dist/hooks/usePalette.cjs.js +2 -0
- package/dist/hooks/usePalette.cjs.js.map +1 -0
- package/dist/hooks/usePalette.es.js +37 -0
- package/dist/hooks/usePalette.es.js.map +1 -0
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.cjs.js.map +1 -1
- package/dist/hooks.es.js +8 -37
- package/dist/hooks.es.js.map +1 -1
- package/dist/index.cjs.js +1 -17
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +5 -27
- package/dist/index.es.js +61 -8798
- package/dist/index.es.js.map +1 -1
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringDictionary.cjs.js +2 -0
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringDictionary.cjs.js.map +1 -0
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringDictionary.es.js +48 -0
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringDictionary.es.js.map +1 -0
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringFormatter.cjs.js +2 -0
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringFormatter.cjs.js.map +1 -0
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringFormatter.es.js +33 -0
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringFormatter.es.js.map +1 -0
- package/dist/node_modules/@react-aria/button/dist/useButton.cjs.js +2 -0
- package/dist/node_modules/@react-aria/button/dist/useButton.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/button/dist/useButton.es.js +47 -0
- package/dist/node_modules/@react-aria/button/dist/useButton.es.js.map +1 -0
- package/dist/node_modules/@react-aria/collections/dist/BaseCollection.cjs.js +2 -0
- package/dist/node_modules/@react-aria/collections/dist/BaseCollection.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/collections/dist/BaseCollection.es.js +134 -0
- package/dist/node_modules/@react-aria/collections/dist/BaseCollection.es.js.map +1 -0
- package/dist/node_modules/@react-aria/collections/dist/CollectionBuilder.cjs.js +2 -0
- package/dist/node_modules/@react-aria/collections/dist/CollectionBuilder.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/collections/dist/CollectionBuilder.es.js +145 -0
- package/dist/node_modules/@react-aria/collections/dist/CollectionBuilder.es.js.map +1 -0
- package/dist/node_modules/@react-aria/collections/dist/Document.cjs.js +2 -0
- package/dist/node_modules/@react-aria/collections/dist/Document.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/collections/dist/Document.es.js +220 -0
- package/dist/node_modules/@react-aria/collections/dist/Document.es.js.map +1 -0
- package/dist/node_modules/@react-aria/collections/dist/Hidden.cjs.js +2 -0
- package/dist/node_modules/@react-aria/collections/dist/Hidden.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/collections/dist/Hidden.es.js +36 -0
- package/dist/node_modules/@react-aria/collections/dist/Hidden.es.js.map +1 -0
- package/dist/node_modules/@react-aria/collections/dist/useCachedChildren.cjs.js +2 -0
- package/dist/node_modules/@react-aria/collections/dist/useCachedChildren.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/collections/dist/useCachedChildren.es.js +37 -0
- package/dist/node_modules/@react-aria/collections/dist/useCachedChildren.es.js.map +1 -0
- package/dist/node_modules/@react-aria/dialog/dist/useDialog.cjs.js +2 -0
- package/dist/node_modules/@react-aria/dialog/dist/useDialog.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/dialog/dist/useDialog.es.js +44 -0
- package/dist/node_modules/@react-aria/dialog/dist/useDialog.es.js.map +1 -0
- package/dist/node_modules/@react-aria/focus/dist/FocusScope.cjs.js +2 -0
- package/dist/node_modules/@react-aria/focus/dist/FocusScope.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/focus/dist/FocusScope.es.js +423 -0
- package/dist/node_modules/@react-aria/focus/dist/FocusScope.es.js.map +1 -0
- package/dist/node_modules/@react-aria/focus/dist/isElementVisible.cjs.js +2 -0
- package/dist/node_modules/@react-aria/focus/dist/isElementVisible.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/focus/dist/isElementVisible.es.js +23 -0
- package/dist/node_modules/@react-aria/focus/dist/isElementVisible.es.js.map +1 -0
- package/dist/node_modules/@react-aria/focus/dist/virtualFocus.cjs.js +2 -0
- package/dist/node_modules/@react-aria/focus/dist/virtualFocus.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/focus/dist/virtualFocus.es.js +32 -0
- package/dist/node_modules/@react-aria/focus/dist/virtualFocus.es.js.map +1 -0
- package/dist/node_modules/@react-aria/form/dist/useFormValidation.cjs.js +2 -0
- package/dist/node_modules/@react-aria/form/dist/useFormValidation.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/form/dist/useFormValidation.es.js +76 -0
- package/dist/node_modules/@react-aria/form/dist/useFormValidation.es.js.map +1 -0
- package/dist/node_modules/@react-aria/i18n/dist/context.cjs.js +2 -0
- package/dist/node_modules/@react-aria/i18n/dist/context.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/i18n/dist/context.es.js +11 -0
- package/dist/node_modules/@react-aria/i18n/dist/context.es.js.map +1 -0
- package/dist/node_modules/@react-aria/i18n/dist/useCollator.cjs.js +2 -0
- package/dist/node_modules/@react-aria/i18n/dist/useCollator.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/i18n/dist/useCollator.es.js +12 -0
- package/dist/node_modules/@react-aria/i18n/dist/useCollator.es.js.map +1 -0
- package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.cjs.js +2 -0
- package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.es.js +30 -0
- package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.es.js.map +1 -0
- package/dist/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.cjs.js +2 -0
- package/dist/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.es.js +24 -0
- package/dist/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.es.js.map +1 -0
- package/dist/node_modules/@react-aria/i18n/dist/utils.cjs.js +2 -0
- package/dist/node_modules/@react-aria/i18n/dist/utils.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/i18n/dist/utils.es.js +45 -0
- package/dist/node_modules/@react-aria/i18n/dist/utils.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/PressResponder.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/PressResponder.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/PressResponder.es.js +15 -0
- package/dist/node_modules/@react-aria/interactions/dist/PressResponder.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/context.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/context.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/context.es.js +10 -0
- package/dist/node_modules/@react-aria/interactions/dist/context.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.es.js +29 -0
- package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/focusSafely.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/focusSafely.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/focusSafely.es.js +15 -0
- package/dist/node_modules/@react-aria/interactions/dist/focusSafely.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/textSelection.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/textSelection.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/textSelection.es.js +35 -0
- package/dist/node_modules/@react-aria/interactions/dist/textSelection.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.es.js +30 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.es.js +67 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.es.js +56 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusable.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusable.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusable.es.js +42 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusable.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useHover.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/useHover.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useHover.es.js +85 -0
- package/dist/node_modules/@react-aria/interactions/dist/useHover.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useInteractOutside.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/useInteractOutside.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useInteractOutside.es.js +51 -0
- package/dist/node_modules/@react-aria/interactions/dist/useInteractOutside.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.es.js +13 -0
- package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useLongPress.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/useLongPress.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useLongPress.es.js +50 -0
- package/dist/node_modules/@react-aria/interactions/dist/useLongPress.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/usePress.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/usePress.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/usePress.es.js +375 -0
- package/dist/node_modules/@react-aria/interactions/dist/usePress.es.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/utils.cjs.js +2 -0
- package/dist/node_modules/@react-aria/interactions/dist/utils.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/utils.es.js +92 -0
- package/dist/node_modules/@react-aria/interactions/dist/utils.es.js.map +1 -0
- package/dist/node_modules/@react-aria/label/dist/useField.cjs.js +2 -0
- package/dist/node_modules/@react-aria/label/dist/useField.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/label/dist/useField.es.js +36 -0
- package/dist/node_modules/@react-aria/label/dist/useField.es.js.map +1 -0
- package/dist/node_modules/@react-aria/label/dist/useLabel.cjs.js +2 -0
- package/dist/node_modules/@react-aria/label/dist/useLabel.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/label/dist/useLabel.es.js +23 -0
- package/dist/node_modules/@react-aria/label/dist/useLabel.es.js.map +1 -0
- package/dist/node_modules/@react-aria/listbox/dist/useListBox.cjs.js +2 -0
- package/dist/node_modules/@react-aria/listbox/dist/useListBox.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/listbox/dist/useListBox.es.js +52 -0
- package/dist/node_modules/@react-aria/listbox/dist/useListBox.es.js.map +1 -0
- package/dist/node_modules/@react-aria/listbox/dist/useOption.cjs.js +2 -0
- package/dist/node_modules/@react-aria/listbox/dist/useOption.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/listbox/dist/useOption.es.js +79 -0
- package/dist/node_modules/@react-aria/listbox/dist/useOption.es.js.map +1 -0
- package/dist/node_modules/@react-aria/listbox/dist/utils.cjs.js +2 -0
- package/dist/node_modules/@react-aria/listbox/dist/utils.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/listbox/dist/utils.es.js +14 -0
- package/dist/node_modules/@react-aria/listbox/dist/utils.es.js.map +1 -0
- package/dist/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.cjs.js +2 -0
- package/dist/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.es.js +48 -0
- package/dist/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/ar-AE.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/ar-AE.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/ar-AE.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/ar-AE.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/bg-BG.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/bg-BG.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/bg-BG.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/bg-BG.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/cs-CZ.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/cs-CZ.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/cs-CZ.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/cs-CZ.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/da-DK.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/da-DK.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/da-DK.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/da-DK.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/de-DE.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/de-DE.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/de-DE.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/de-DE.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/el-GR.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/el-GR.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/el-GR.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/el-GR.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/en-US.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/en-US.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/en-US.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/en-US.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/es-ES.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/es-ES.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/es-ES.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/es-ES.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/et-EE.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/et-EE.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/et-EE.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/et-EE.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/fi-FI.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/fi-FI.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/fi-FI.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/fi-FI.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/fr-FR.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/fr-FR.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/fr-FR.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/fr-FR.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/he-IL.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/he-IL.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/he-IL.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/he-IL.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/hr-HR.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/hr-HR.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/hr-HR.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/hr-HR.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/hu-HU.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/hu-HU.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/hu-HU.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/hu-HU.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/intlStrings.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/intlStrings.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/intlStrings.es.js +75 -0
- package/dist/node_modules/@react-aria/menu/dist/intlStrings.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/it-IT.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/it-IT.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/it-IT.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/it-IT.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/ja-JP.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/ja-JP.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/ja-JP.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/ja-JP.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/ko-KR.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/ko-KR.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/ko-KR.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/ko-KR.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/lt-LT.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/lt-LT.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/lt-LT.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/lt-LT.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/lv-LV.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/lv-LV.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/lv-LV.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/lv-LV.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/nb-NO.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/nb-NO.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/nb-NO.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/nb-NO.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/nl-NL.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/nl-NL.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/nl-NL.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/nl-NL.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/pl-PL.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/pl-PL.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/pl-PL.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/pl-PL.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/pt-BR.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/pt-BR.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/pt-BR.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/pt-BR.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/pt-PT.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/pt-PT.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/pt-PT.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/pt-PT.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/ro-RO.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/ro-RO.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/ro-RO.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/ro-RO.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/ru-RU.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/ru-RU.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/ru-RU.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/ru-RU.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/sk-SK.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/sk-SK.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/sk-SK.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/sk-SK.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/sl-SI.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/sl-SI.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/sl-SI.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/sl-SI.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/sr-SP.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/sr-SP.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/sr-SP.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/sr-SP.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/sv-SE.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/sv-SE.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/sv-SE.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/sv-SE.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/tr-TR.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/tr-TR.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/tr-TR.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/tr-TR.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/uk-UA.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/uk-UA.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/uk-UA.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/uk-UA.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/useMenu.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/useMenu.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/useMenu.es.js +39 -0
- package/dist/node_modules/@react-aria/menu/dist/useMenu.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/useMenuItem.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/useMenuItem.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/useMenuItem.es.js +144 -0
- package/dist/node_modules/@react-aria/menu/dist/useMenuItem.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/useMenuTrigger.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/useMenuTrigger.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/useMenuTrigger.es.js +64 -0
- package/dist/node_modules/@react-aria/menu/dist/useMenuTrigger.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/utils.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/utils.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/utils.es.js +5 -0
- package/dist/node_modules/@react-aria/menu/dist/utils.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/zh-CN.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/zh-CN.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/zh-CN.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/zh-CN.es.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/zh-TW.cjs.js +2 -0
- package/dist/node_modules/@react-aria/menu/dist/zh-TW.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/menu/dist/zh-TW.es.js +8 -0
- package/dist/node_modules/@react-aria/menu/dist/zh-TW.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/DismissButton.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/DismissButton.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/DismissButton.es.js +26 -0
- package/dist/node_modules/@react-aria/overlays/dist/DismissButton.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/Overlay.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/Overlay.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/Overlay.es.js +39 -0
- package/dist/node_modules/@react-aria/overlays/dist/Overlay.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/PortalProvider.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/PortalProvider.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/PortalProvider.es.js +11 -0
- package/dist/node_modules/@react-aria/overlays/dist/PortalProvider.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/ar-AE.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/ar-AE.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/ar-AE.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/ar-AE.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.es.js +72 -0
- package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/bg-BG.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/bg-BG.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/bg-BG.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/bg-BG.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/calculatePosition.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/calculatePosition.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/calculatePosition.es.js +200 -0
- package/dist/node_modules/@react-aria/overlays/dist/calculatePosition.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/cs-CZ.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/cs-CZ.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/cs-CZ.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/cs-CZ.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/da-DK.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/da-DK.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/da-DK.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/da-DK.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/de-DE.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/de-DE.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/de-DE.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/de-DE.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/el-GR.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/el-GR.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/el-GR.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/el-GR.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/en-US.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/en-US.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/en-US.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/en-US.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/es-ES.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/es-ES.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/es-ES.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/es-ES.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/et-EE.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/et-EE.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/et-EE.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/et-EE.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/fi-FI.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/fi-FI.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/fi-FI.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/fi-FI.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/fr-FR.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/fr-FR.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/fr-FR.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/fr-FR.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/he-IL.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/he-IL.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/he-IL.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/he-IL.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/hr-HR.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/hr-HR.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/hr-HR.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/hr-HR.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/hu-HU.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/hu-HU.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/hu-HU.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/hu-HU.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/intlStrings.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/intlStrings.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/intlStrings.es.js +75 -0
- package/dist/node_modules/@react-aria/overlays/dist/intlStrings.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/it-IT.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/it-IT.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/it-IT.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/it-IT.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/ja-JP.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/ja-JP.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/ja-JP.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/ja-JP.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/ko-KR.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/ko-KR.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/ko-KR.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/ko-KR.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/lt-LT.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/lt-LT.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/lt-LT.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/lt-LT.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/lv-LV.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/lv-LV.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/lv-LV.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/lv-LV.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/nb-NO.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/nb-NO.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/nb-NO.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/nb-NO.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/nl-NL.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/nl-NL.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/nl-NL.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/nl-NL.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/pl-PL.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/pl-PL.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/pl-PL.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/pl-PL.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/pt-BR.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/pt-BR.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/pt-BR.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/pt-BR.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/pt-PT.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/pt-PT.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/pt-PT.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/pt-PT.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/ro-RO.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/ro-RO.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/ro-RO.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/ro-RO.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/ru-RU.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/ru-RU.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/ru-RU.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/ru-RU.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/sk-SK.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/sk-SK.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/sk-SK.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/sk-SK.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/sl-SI.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/sl-SI.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/sl-SI.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/sl-SI.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/sr-SP.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/sr-SP.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/sr-SP.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/sr-SP.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/sv-SE.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/sv-SE.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/sv-SE.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/sv-SE.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/tr-TR.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/tr-TR.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/tr-TR.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/tr-TR.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/uk-UA.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/uk-UA.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/uk-UA.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/uk-UA.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/useCloseOnScroll.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/useCloseOnScroll.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/useCloseOnScroll.es.js +26 -0
- package/dist/node_modules/@react-aria/overlays/dist/useCloseOnScroll.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/useModalOverlay.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/useModalOverlay.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/useModalOverlay.es.js +30 -0
- package/dist/node_modules/@react-aria/overlays/dist/useModalOverlay.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/useOverlay.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/useOverlay.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/useOverlay.es.js +53 -0
- package/dist/node_modules/@react-aria/overlays/dist/useOverlay.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayPosition.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayPosition.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayPosition.es.js +143 -0
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayPosition.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayTrigger.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayTrigger.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayTrigger.es.js +27 -0
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayTrigger.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/usePopover.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/usePopover.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/usePopover.es.js +45 -0
- package/dist/node_modules/@react-aria/overlays/dist/usePopover.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/usePreventScroll.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/usePreventScroll.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/usePreventScroll.es.js +98 -0
- package/dist/node_modules/@react-aria/overlays/dist/usePreventScroll.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/zh-CN.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/zh-CN.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/zh-CN.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/zh-CN.es.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/zh-TW.cjs.js +2 -0
- package/dist/node_modules/@react-aria/overlays/dist/zh-TW.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/overlays/dist/zh-TW.es.js +8 -0
- package/dist/node_modules/@react-aria/overlays/dist/zh-TW.es.js.map +1 -0
- package/dist/node_modules/@react-aria/radio/dist/useRadio.cjs.js +2 -0
- package/dist/node_modules/@react-aria/radio/dist/useRadio.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/radio/dist/useRadio.es.js +58 -0
- package/dist/node_modules/@react-aria/radio/dist/useRadio.es.js.map +1 -0
- package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.cjs.js +2 -0
- package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.es.js +78 -0
- package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.es.js.map +1 -0
- package/dist/node_modules/@react-aria/radio/dist/utils.cjs.js +2 -0
- package/dist/node_modules/@react-aria/radio/dist/utils.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/radio/dist/utils.es.js +5 -0
- package/dist/node_modules/@react-aria/radio/dist/utils.es.js.map +1 -0
- package/dist/node_modules/@react-aria/select/dist/HiddenSelect.cjs.js +2 -0
- package/dist/node_modules/@react-aria/select/dist/HiddenSelect.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/select/dist/HiddenSelect.es.js +73 -0
- package/dist/node_modules/@react-aria/select/dist/HiddenSelect.es.js.map +1 -0
- package/dist/node_modules/@react-aria/select/dist/useSelect.cjs.js +2 -0
- package/dist/node_modules/@react-aria/select/dist/useSelect.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/select/dist/useSelect.es.js +117 -0
- package/dist/node_modules/@react-aria/select/dist/useSelect.es.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.cjs.js +2 -0
- package/dist/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.es.js +41 -0
- package/dist/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.es.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.cjs.js +2 -0
- package/dist/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.es.js +122 -0
- package/dist/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.es.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/useSelectableCollection.cjs.js +2 -0
- package/dist/node_modules/@react-aria/selection/dist/useSelectableCollection.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/useSelectableCollection.es.js +227 -0
- package/dist/node_modules/@react-aria/selection/dist/useSelectableCollection.es.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/useSelectableItem.cjs.js +2 -0
- package/dist/node_modules/@react-aria/selection/dist/useSelectableItem.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/useSelectableItem.es.js +122 -0
- package/dist/node_modules/@react-aria/selection/dist/useSelectableItem.es.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/useSelectableList.cjs.js +2 -0
- package/dist/node_modules/@react-aria/selection/dist/useSelectableList.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/useSelectableList.es.js +37 -0
- package/dist/node_modules/@react-aria/selection/dist/useSelectableList.es.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/useTypeSelect.cjs.js +2 -0
- package/dist/node_modules/@react-aria/selection/dist/useTypeSelect.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/useTypeSelect.es.js +33 -0
- package/dist/node_modules/@react-aria/selection/dist/useTypeSelect.es.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/utils.cjs.js +2 -0
- package/dist/node_modules/@react-aria/selection/dist/utils.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/selection/dist/utils.es.js +24 -0
- package/dist/node_modules/@react-aria/selection/dist/utils.es.js.map +1 -0
- package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.cjs.js +2 -0
- package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.es.js +19 -0
- package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.es.js.map +1 -0
- package/dist/node_modules/@react-aria/switch/dist/useSwitch.cjs.js +2 -0
- package/dist/node_modules/@react-aria/switch/dist/useSwitch.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/switch/dist/useSwitch.es.js +20 -0
- package/dist/node_modules/@react-aria/switch/dist/useSwitch.es.js.map +1 -0
- package/dist/node_modules/@react-aria/toggle/dist/useToggle.cjs.js +2 -0
- package/dist/node_modules/@react-aria/toggle/dist/useToggle.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/toggle/dist/useToggle.es.js +48 -0
- package/dist/node_modules/@react-aria/toggle/dist/useToggle.es.js.map +1 -0
- package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.cjs.js +2 -0
- package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.cjs.js.map +1 -0
- package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.es.js +41 -0
- package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.es.js.map +1 -0
- package/dist/node_modules/@react-stately/collections/dist/CollectionBuilder.cjs.js +2 -0
- package/dist/node_modules/@react-stately/collections/dist/CollectionBuilder.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/collections/dist/CollectionBuilder.es.js +171 -0
- package/dist/node_modules/@react-stately/collections/dist/CollectionBuilder.es.js.map +1 -0
- package/dist/node_modules/@react-stately/collections/dist/Item.cjs.js +2 -0
- package/dist/node_modules/@react-stately/collections/dist/Item.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/collections/dist/Item.es.js +38 -0
- package/dist/node_modules/@react-stately/collections/dist/Item.es.js.map +1 -0
- package/dist/node_modules/@react-stately/collections/dist/getChildNodes.cjs.js +2 -0
- package/dist/node_modules/@react-stately/collections/dist/getChildNodes.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/collections/dist/getChildNodes.es.js +34 -0
- package/dist/node_modules/@react-stately/collections/dist/getChildNodes.es.js.map +1 -0
- package/dist/node_modules/@react-stately/collections/dist/getItemCount.cjs.js +2 -0
- package/dist/node_modules/@react-stately/collections/dist/getItemCount.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/collections/dist/getItemCount.es.js +14 -0
- package/dist/node_modules/@react-stately/collections/dist/getItemCount.es.js.map +1 -0
- package/dist/node_modules/@react-stately/collections/dist/useCollection.cjs.js +2 -0
- package/dist/node_modules/@react-stately/collections/dist/useCollection.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/collections/dist/useCollection.es.js +24 -0
- package/dist/node_modules/@react-stately/collections/dist/useCollection.es.js.map +1 -0
- package/dist/node_modules/@react-stately/form/dist/useFormValidationState.cjs.js +2 -0
- package/dist/node_modules/@react-stately/form/dist/useFormValidationState.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/form/dist/useFormValidationState.es.js +110 -0
- package/dist/node_modules/@react-stately/form/dist/useFormValidationState.es.js.map +1 -0
- package/dist/node_modules/@react-stately/list/dist/ListCollection.cjs.js +2 -0
- package/dist/node_modules/@react-stately/list/dist/ListCollection.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/list/dist/ListCollection.es.js +57 -0
- package/dist/node_modules/@react-stately/list/dist/ListCollection.es.js.map +1 -0
- package/dist/node_modules/@react-stately/list/dist/useListState.cjs.js +2 -0
- package/dist/node_modules/@react-stately/list/dist/useListState.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/list/dist/useListState.es.js +70 -0
- package/dist/node_modules/@react-stately/list/dist/useListState.es.js.map +1 -0
- package/dist/node_modules/@react-stately/list/dist/useSingleSelectListState.cjs.js +2 -0
- package/dist/node_modules/@react-stately/list/dist/useSingleSelectListState.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/list/dist/useSingleSelectListState.es.js +35 -0
- package/dist/node_modules/@react-stately/list/dist/useSingleSelectListState.es.js.map +1 -0
- package/dist/node_modules/@react-stately/menu/dist/useMenuTriggerState.cjs.js +2 -0
- package/dist/node_modules/@react-stately/menu/dist/useMenuTriggerState.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/menu/dist/useMenuTriggerState.es.js +34 -0
- package/dist/node_modules/@react-stately/menu/dist/useMenuTriggerState.es.js.map +1 -0
- package/dist/node_modules/@react-stately/overlays/dist/useOverlayTriggerState.cjs.js +2 -0
- package/dist/node_modules/@react-stately/overlays/dist/useOverlayTriggerState.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/overlays/dist/useOverlayTriggerState.es.js +30 -0
- package/dist/node_modules/@react-stately/overlays/dist/useOverlayTriggerState.es.js.map +1 -0
- package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.cjs.js +2 -0
- package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.es.js +33 -0
- package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.es.js.map +1 -0
- package/dist/node_modules/@react-stately/select/dist/useSelectState.cjs.js +2 -0
- package/dist/node_modules/@react-stately/select/dist/useSelectState.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/select/dist/useSelectState.es.js +33 -0
- package/dist/node_modules/@react-stately/select/dist/useSelectState.es.js.map +1 -0
- package/dist/node_modules/@react-stately/selection/dist/Selection.cjs.js +2 -0
- package/dist/node_modules/@react-stately/selection/dist/Selection.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/selection/dist/Selection.es.js +9 -0
- package/dist/node_modules/@react-stately/selection/dist/Selection.es.js.map +1 -0
- package/dist/node_modules/@react-stately/selection/dist/SelectionManager.cjs.js +2 -0
- package/dist/node_modules/@react-stately/selection/dist/SelectionManager.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/selection/dist/SelectionManager.es.js +285 -0
- package/dist/node_modules/@react-stately/selection/dist/SelectionManager.es.js.map +1 -0
- package/dist/node_modules/@react-stately/selection/dist/useMultipleSelectionState.cjs.js +2 -0
- package/dist/node_modules/@react-stately/selection/dist/useMultipleSelectionState.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/selection/dist/useMultipleSelectionState.es.js +58 -0
- package/dist/node_modules/@react-stately/selection/dist/useMultipleSelectionState.es.js.map +1 -0
- package/dist/node_modules/@react-stately/toggle/dist/useToggleState.cjs.js +2 -0
- package/dist/node_modules/@react-stately/toggle/dist/useToggleState.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/toggle/dist/useToggleState.es.js +19 -0
- package/dist/node_modules/@react-stately/toggle/dist/useToggleState.es.js.map +1 -0
- package/dist/node_modules/@react-stately/tree/dist/TreeCollection.cjs.js +2 -0
- package/dist/node_modules/@react-stately/tree/dist/TreeCollection.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/tree/dist/TreeCollection.es.js +53 -0
- package/dist/node_modules/@react-stately/tree/dist/TreeCollection.es.js.map +1 -0
- package/dist/node_modules/@react-stately/tree/dist/useTreeState.cjs.js +2 -0
- package/dist/node_modules/@react-stately/tree/dist/useTreeState.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/tree/dist/useTreeState.es.js +38 -0
- package/dist/node_modules/@react-stately/tree/dist/useTreeState.es.js.map +1 -0
- package/dist/node_modules/@react-stately/utils/dist/useControlledState.cjs.js +2 -0
- package/dist/node_modules/@react-stately/utils/dist/useControlledState.cjs.js.map +1 -0
- package/dist/node_modules/@react-stately/utils/dist/useControlledState.es.js +31 -0
- package/dist/node_modules/@react-stately/utils/dist/useControlledState.es.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.cjs.js +2 -0
- package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.cjs.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.es.js +9 -0
- package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.es.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.cjs.js +2 -0
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.cjs.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.es.js +8 -0
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.es.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.cjs.js +2 -0
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.cjs.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.es.js +13 -0
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.es.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.cjs.js +2 -0
- package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.cjs.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.es.js +9 -0
- package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.es.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.cjs.js +2 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.cjs.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.es.js +11 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.es.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.cjs.js +2 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.cjs.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.es.js +9 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.es.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.cjs.js +2 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.cjs.js.map +1 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.es.js +11 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.es.js.map +1 -0
- package/dist/node_modules/color2k/dist/index.exports.import.es.cjs.js +2 -0
- package/dist/node_modules/color2k/dist/index.exports.import.es.cjs.js.map +1 -0
- package/dist/node_modules/color2k/dist/index.exports.import.es.es.js +171 -0
- package/dist/node_modules/color2k/dist/index.exports.import.es.es.js.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js +23 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +609 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs.js +10 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs.js.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.es.js +29 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.es.js.map +1 -0
- package/dist/node_modules/react/jsx-runtime.cjs.js +2 -0
- package/dist/node_modules/react/jsx-runtime.cjs.js.map +1 -0
- package/dist/node_modules/react/jsx-runtime.es.js +9 -0
- package/dist/node_modules/react/jsx-runtime.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Autocomplete.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/Autocomplete.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Autocomplete.es.js +6 -0
- package/dist/node_modules/react-aria-components/dist/Autocomplete.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Button.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/Button.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Button.es.js +77 -0
- package/dist/node_modules/react-aria-components/dist/Button.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Collection.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/Collection.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Collection.es.js +48 -0
- package/dist/node_modules/react-aria-components/dist/Collection.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Dialog.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/Dialog.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Dialog.es.js +6 -0
- package/dist/node_modules/react-aria-components/dist/Dialog.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Header.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/Header.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Header.es.js +15 -0
- package/dist/node_modules/react-aria-components/dist/Header.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Keyboard.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/Keyboard.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Keyboard.es.js +6 -0
- package/dist/node_modules/react-aria-components/dist/Keyboard.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Menu.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/Menu.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Menu.es.js +283 -0
- package/dist/node_modules/react-aria-components/dist/Menu.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/OverlayArrow.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/OverlayArrow.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/OverlayArrow.es.js +37 -0
- package/dist/node_modules/react-aria-components/dist/OverlayArrow.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Popover.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/Popover.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Popover.es.js +130 -0
- package/dist/node_modules/react-aria-components/dist/Popover.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/ProgressBar.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/ProgressBar.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/ProgressBar.es.js +6 -0
- package/dist/node_modules/react-aria-components/dist/ProgressBar.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Separator.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/Separator.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Separator.es.js +6 -0
- package/dist/node_modules/react-aria-components/dist/Separator.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Text.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/Text.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Text.es.js +16 -0
- package/dist/node_modules/react-aria-components/dist/Text.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Tooltip.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/Tooltip.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/Tooltip.es.js +97 -0
- package/dist/node_modules/react-aria-components/dist/Tooltip.es.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/utils.cjs.js +2 -0
- package/dist/node_modules/react-aria-components/dist/utils.cjs.js.map +1 -0
- package/dist/node_modules/react-aria-components/dist/utils.es.js +101 -0
- package/dist/node_modules/react-aria-components/dist/utils.es.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs.js +10 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.es.js +68 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.es.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs.js +10 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.es.js +56 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.es.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/shim/index.cjs.js +2 -0
- package/dist/node_modules/use-sync-external-store/shim/index.cjs.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/shim/index.es.js +9 -0
- package/dist/node_modules/use-sync-external-store/shim/index.es.js.map +1 -0
- package/dist/theme/dark.cjs.js +1 -1
- package/dist/theme/dark.cjs.js.map +1 -1
- package/dist/theme/dark.es.js +8 -55
- package/dist/theme/dark.es.js.map +1 -1
- package/dist/theme/light.cjs.js +1 -1
- package/dist/theme/light.cjs.js.map +1 -1
- package/dist/theme/light.es.js +8 -55
- package/dist/theme/light.es.js.map +1 -1
- package/dist/theme.cjs.js +1 -1
- package/dist/theme.cjs.js.map +1 -1
- package/dist/theme.es.js +9 -15
- package/dist/theme.es.js.map +1 -1
- package/dist/utils/color2k.cjs.js +2 -0
- package/dist/utils/color2k.cjs.js.map +1 -0
- package/dist/utils/color2k.es.js +14 -0
- package/dist/utils/color2k.es.js.map +1 -0
- package/dist/utils/copy.cjs.js +2 -0
- package/dist/utils/copy.cjs.js.map +1 -0
- package/dist/{copy-qSgElu2b.mjs → utils/copy.es.js} +2 -2
- package/dist/utils/copy.es.js.map +1 -0
- package/dist/utils/image.cjs.js +2 -0
- package/dist/utils/image.cjs.js.map +1 -0
- package/dist/utils/image.es.js +28 -0
- package/dist/utils/image.es.js.map +1 -0
- package/dist/utils/navigation.cjs.js +2 -0
- package/dist/utils/navigation.cjs.js.map +1 -0
- package/dist/utils/navigation.es.js +12 -0
- package/dist/utils/navigation.es.js.map +1 -0
- package/dist/utils/palette.cjs.js +2 -0
- package/dist/utils/palette.cjs.js.map +1 -0
- package/dist/utils/palette.es.js +183 -0
- package/dist/utils/palette.es.js.map +1 -0
- package/dist/utils/string.cjs.js +2 -0
- package/dist/utils/string.cjs.js.map +1 -0
- package/dist/utils/string.es.js +8 -0
- package/dist/utils/string.es.js.map +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +19 -16
- package/dist/utils.es.js.map +1 -1
- package/package.json +7 -9
- package/dist/Button-D5vY_uZz.js +0 -31
- package/dist/Button-D5vY_uZz.js.map +0 -1
- package/dist/Button-R07nvJbw.mjs +0 -727
- package/dist/Button-R07nvJbw.mjs.map +0 -1
- package/dist/Button.cjs.js +0 -2
- package/dist/Button.cjs.js.map +0 -1
- package/dist/Button.d.ts +0 -53
- package/dist/Button.es.js +0 -9
- package/dist/Button.es.js.map +0 -1
- package/dist/breakpoint-9y1_8U_b.mjs.map +0 -1
- package/dist/breakpoint-DtqbboOa.js +0 -2
- package/dist/breakpoint-DtqbboOa.js.map +0 -1
- package/dist/color2k-CpDB_dpw.mjs +0 -168
- package/dist/color2k-CpDB_dpw.mjs.map +0 -1
- package/dist/color2k-DCgwXUem.js +0 -2
- package/dist/color2k-DCgwXUem.js.map +0 -1
- package/dist/colors-CWaj9dFz.mjs.map +0 -1
- package/dist/colors-CebzFjpe.js +0 -2
- package/dist/colors-CmSJBHaf.js +0 -2
- package/dist/colors-CmSJBHaf.js.map +0 -1
- package/dist/colors-DL1dYffC.js +0 -2
- package/dist/copy-DxIZCnfT.js +0 -2
- package/dist/copy-DxIZCnfT.js.map +0 -1
- package/dist/copy-qSgElu2b.mjs.map +0 -1
- package/dist/image-CUSfY1_T.js +0 -2
- package/dist/image-CUSfY1_T.js.map +0 -1
- package/dist/image-DFyN0Kd9.mjs +0 -207
- package/dist/image-DFyN0Kd9.mjs.map +0 -1
- package/dist/navigation-DdxS0JoV.js +0 -2
- package/dist/navigation-DdxS0JoV.js.map +0 -1
- package/dist/navigation-DsfDNfej.mjs +0 -16
- package/dist/navigation-DsfDNfej.mjs.map +0 -1
- package/dist/useBreakpoint-CA9tMMV8.js +0 -2
- package/dist/useBreakpoint-CA9tMMV8.js.map +0 -1
- package/dist/useBreakpoint-CjRyGKN-.mjs +0 -53
- package/dist/useBreakpoint-CjRyGKN-.mjs.map +0 -1
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { getItemElement as V, useCollectionId as fe, isNonContiguousSelectionModifier as H } from "./utils.es.js";
|
|
2
|
+
import { useTypeSelect as ae } from "./useTypeSelect.es.js";
|
|
3
|
+
import { useRouter as de, useEvent as h, FOCUS_EVENT as ve, useEffectEvent as G, useUpdateLayoutEffect as j, CLEAR_FOCUS_EVENT as pe, scrollIntoView as ye, scrollIntoViewport as q, mergeProps as J, focusWithoutScrolling as Q, isCtrlKeyPressed as m } from "@react-aria/utils";
|
|
4
|
+
import { flushSync as Ke } from "react-dom";
|
|
5
|
+
import { useRef as F, useEffect as X } from "react";
|
|
6
|
+
import { getInteractionModality as Y } from "../../interactions/dist/useFocusVisible.es.js";
|
|
7
|
+
import { focusSafely as Z } from "../../interactions/dist/focusSafely.es.js";
|
|
8
|
+
import { getFocusableTreeWalker as be } from "../../focus/dist/FocusScope.es.js";
|
|
9
|
+
import { moveVirtualFocus as me } from "../../focus/dist/virtualFocus.es.js";
|
|
10
|
+
import { useLocale as Fe } from "../../i18n/dist/context.es.js";
|
|
11
|
+
function Ae(g) {
|
|
12
|
+
let { selectionManager: e, keyboardDelegate: o, ref: i, autoFocus: w = !1, shouldFocusWrap: $ = !1, disallowEmptySelection: _ = !1, disallowSelectAll: ee = !1, escapeKeyBehavior: le = "clearSelection", selectOnFocus: K = e.selectionBehavior === "replace", disallowTypeAhead: oe = !1, shouldUseVirtualFocus: y, allowsTabNavigation: te = !1, isVirtualized: B, scrollRef: f = i, linkBehavior: C = "action" } = g, { direction: T } = Fe(), re = de(), ce = (l) => {
|
|
13
|
+
var r;
|
|
14
|
+
if (l.altKey && l.key === "Tab" && l.preventDefault(), !(!((r = i.current) === null || r === void 0) && r.contains(l.target))) return;
|
|
15
|
+
const c = (t, v) => {
|
|
16
|
+
if (t != null) {
|
|
17
|
+
if (e.isLink(t) && C === "selection" && K && !H(l)) {
|
|
18
|
+
Ke(() => {
|
|
19
|
+
e.setFocusedKey(t, v);
|
|
20
|
+
});
|
|
21
|
+
let p = V(i, t), W = e.getItemProps(t);
|
|
22
|
+
p && re.open(p, l, W.href, W.routerOptions);
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
if (e.setFocusedKey(t, v), e.isLink(t) && C === "override") return;
|
|
26
|
+
l.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(t) : K && !H(l) && e.replaceSelection(t);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
switch (l.key) {
|
|
30
|
+
case "ArrowDown":
|
|
31
|
+
if (o.getKeyBelow) {
|
|
32
|
+
var n, s, u;
|
|
33
|
+
let t = e.focusedKey != null ? (n = o.getKeyBelow) === null || n === void 0 ? void 0 : n.call(o, e.focusedKey) : (s = o.getFirstKey) === null || s === void 0 ? void 0 : s.call(o);
|
|
34
|
+
t == null && $ && (t = (u = o.getFirstKey) === null || u === void 0 ? void 0 : u.call(o, e.focusedKey)), t != null && (l.preventDefault(), c(t));
|
|
35
|
+
}
|
|
36
|
+
break;
|
|
37
|
+
case "ArrowUp":
|
|
38
|
+
if (o.getKeyAbove) {
|
|
39
|
+
var a, d, P;
|
|
40
|
+
let t = e.focusedKey != null ? (a = o.getKeyAbove) === null || a === void 0 ? void 0 : a.call(o, e.focusedKey) : (d = o.getLastKey) === null || d === void 0 ? void 0 : d.call(o);
|
|
41
|
+
t == null && $ && (t = (P = o.getLastKey) === null || P === void 0 ? void 0 : P.call(o, e.focusedKey)), t != null && (l.preventDefault(), c(t));
|
|
42
|
+
}
|
|
43
|
+
break;
|
|
44
|
+
case "ArrowLeft":
|
|
45
|
+
if (o.getKeyLeftOf) {
|
|
46
|
+
var k, A, I;
|
|
47
|
+
let t = e.focusedKey != null ? (k = o.getKeyLeftOf) === null || k === void 0 ? void 0 : k.call(o, e.focusedKey) : null;
|
|
48
|
+
t == null && $ && (t = T === "rtl" ? (A = o.getFirstKey) === null || A === void 0 ? void 0 : A.call(o, e.focusedKey) : (I = o.getLastKey) === null || I === void 0 ? void 0 : I.call(o, e.focusedKey)), t != null && (l.preventDefault(), c(t, T === "rtl" ? "first" : "last"));
|
|
49
|
+
}
|
|
50
|
+
break;
|
|
51
|
+
case "ArrowRight":
|
|
52
|
+
if (o.getKeyRightOf) {
|
|
53
|
+
var M, R, O;
|
|
54
|
+
let t = e.focusedKey != null ? (M = o.getKeyRightOf) === null || M === void 0 ? void 0 : M.call(o, e.focusedKey) : null;
|
|
55
|
+
t == null && $ && (t = T === "rtl" ? (R = o.getLastKey) === null || R === void 0 ? void 0 : R.call(o, e.focusedKey) : (O = o.getFirstKey) === null || O === void 0 ? void 0 : O.call(o, e.focusedKey)), t != null && (l.preventDefault(), c(t, T === "rtl" ? "last" : "first"));
|
|
56
|
+
}
|
|
57
|
+
break;
|
|
58
|
+
case "Home":
|
|
59
|
+
if (o.getFirstKey) {
|
|
60
|
+
if (e.focusedKey === null && l.shiftKey) return;
|
|
61
|
+
l.preventDefault();
|
|
62
|
+
let t = o.getFirstKey(e.focusedKey, m(l));
|
|
63
|
+
e.setFocusedKey(t), t != null && (m(l) && l.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(t) : K && e.replaceSelection(t));
|
|
64
|
+
}
|
|
65
|
+
break;
|
|
66
|
+
case "End":
|
|
67
|
+
if (o.getLastKey) {
|
|
68
|
+
if (e.focusedKey === null && l.shiftKey) return;
|
|
69
|
+
l.preventDefault();
|
|
70
|
+
let t = o.getLastKey(e.focusedKey, m(l));
|
|
71
|
+
e.setFocusedKey(t), t != null && (m(l) && l.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(t) : K && e.replaceSelection(t));
|
|
72
|
+
}
|
|
73
|
+
break;
|
|
74
|
+
case "PageDown":
|
|
75
|
+
if (o.getKeyPageBelow && e.focusedKey != null) {
|
|
76
|
+
let t = o.getKeyPageBelow(e.focusedKey);
|
|
77
|
+
t != null && (l.preventDefault(), c(t));
|
|
78
|
+
}
|
|
79
|
+
break;
|
|
80
|
+
case "PageUp":
|
|
81
|
+
if (o.getKeyPageAbove && e.focusedKey != null) {
|
|
82
|
+
let t = o.getKeyPageAbove(e.focusedKey);
|
|
83
|
+
t != null && (l.preventDefault(), c(t));
|
|
84
|
+
}
|
|
85
|
+
break;
|
|
86
|
+
case "a":
|
|
87
|
+
m(l) && e.selectionMode === "multiple" && ee !== !0 && (l.preventDefault(), e.selectAll());
|
|
88
|
+
break;
|
|
89
|
+
case "Escape":
|
|
90
|
+
le === "clearSelection" && !_ && e.selectedKeys.size !== 0 && (l.stopPropagation(), l.preventDefault(), e.clearSelection());
|
|
91
|
+
break;
|
|
92
|
+
case "Tab":
|
|
93
|
+
if (!te) {
|
|
94
|
+
if (l.shiftKey) i.current.focus();
|
|
95
|
+
else {
|
|
96
|
+
let t = be(i.current, {
|
|
97
|
+
tabbable: !0
|
|
98
|
+
}), v, p;
|
|
99
|
+
do
|
|
100
|
+
p = t.lastChild(), p && (v = p);
|
|
101
|
+
while (p);
|
|
102
|
+
v && !v.contains(document.activeElement) && Q(v);
|
|
103
|
+
}
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}, x = F({
|
|
108
|
+
top: 0,
|
|
109
|
+
left: 0
|
|
110
|
+
});
|
|
111
|
+
h(f, "scroll", B ? void 0 : () => {
|
|
112
|
+
var l, r, c, n;
|
|
113
|
+
x.current = {
|
|
114
|
+
top: (c = (l = f.current) === null || l === void 0 ? void 0 : l.scrollTop) !== null && c !== void 0 ? c : 0,
|
|
115
|
+
left: (n = (r = f.current) === null || r === void 0 ? void 0 : r.scrollLeft) !== null && n !== void 0 ? n : 0
|
|
116
|
+
};
|
|
117
|
+
});
|
|
118
|
+
let ie = (l) => {
|
|
119
|
+
if (e.isFocused) {
|
|
120
|
+
l.currentTarget.contains(l.target) || e.setFocused(!1);
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
if (l.currentTarget.contains(l.target)) {
|
|
124
|
+
if (e.setFocused(!0), e.focusedKey == null) {
|
|
125
|
+
var r, c;
|
|
126
|
+
let u = (d) => {
|
|
127
|
+
d != null && (e.setFocusedKey(d), K && !e.isSelected(d) && e.replaceSelection(d));
|
|
128
|
+
}, a = l.relatedTarget;
|
|
129
|
+
var n, s;
|
|
130
|
+
a && l.currentTarget.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_FOLLOWING ? u((n = e.lastSelectedKey) !== null && n !== void 0 ? n : (r = o.getLastKey) === null || r === void 0 ? void 0 : r.call(o)) : u((s = e.firstSelectedKey) !== null && s !== void 0 ? s : (c = o.getFirstKey) === null || c === void 0 ? void 0 : c.call(o));
|
|
131
|
+
} else !B && f.current && (f.current.scrollTop = x.current.top, f.current.scrollLeft = x.current.left);
|
|
132
|
+
if (e.focusedKey != null && f.current) {
|
|
133
|
+
let u = V(i, e.focusedKey);
|
|
134
|
+
u instanceof HTMLElement && (!u.contains(document.activeElement) && !y && Q(u), Y() === "keyboard" && q(u, {
|
|
135
|
+
containingElement: i.current
|
|
136
|
+
}));
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}, ne = (l) => {
|
|
140
|
+
l.currentTarget.contains(l.relatedTarget) || e.setFocused(!1);
|
|
141
|
+
}, b = F(!1);
|
|
142
|
+
h(i, ve, y ? (l) => {
|
|
143
|
+
let { detail: r } = l;
|
|
144
|
+
l.stopPropagation(), e.setFocused(!0), (r == null ? void 0 : r.focusStrategy) === "first" && (b.current = !0);
|
|
145
|
+
} : void 0);
|
|
146
|
+
let N = G(() => {
|
|
147
|
+
var l, r;
|
|
148
|
+
let c = (r = (l = o.getFirstKey) === null || l === void 0 ? void 0 : l.call(o)) !== null && r !== void 0 ? r : null;
|
|
149
|
+
c == null ? (me(i.current), e.collection.size > 0 && (b.current = !1)) : (e.setFocusedKey(c), b.current = !1);
|
|
150
|
+
});
|
|
151
|
+
j(() => {
|
|
152
|
+
b.current && N();
|
|
153
|
+
}, [
|
|
154
|
+
e.collection,
|
|
155
|
+
N
|
|
156
|
+
]);
|
|
157
|
+
let U = G(() => {
|
|
158
|
+
e.collection.size > 0 && (b.current = !1);
|
|
159
|
+
});
|
|
160
|
+
j(() => {
|
|
161
|
+
U();
|
|
162
|
+
}, [
|
|
163
|
+
e.focusedKey,
|
|
164
|
+
U
|
|
165
|
+
]), h(i, pe, y ? (l) => {
|
|
166
|
+
var r;
|
|
167
|
+
l.stopPropagation(), e.setFocused(!1), !((r = l.detail) === null || r === void 0) && r.clearFocusKey && e.setFocusedKey(null);
|
|
168
|
+
} : void 0);
|
|
169
|
+
const z = F(w), S = F(!1);
|
|
170
|
+
X(() => {
|
|
171
|
+
if (z.current) {
|
|
172
|
+
var l, r;
|
|
173
|
+
let s = null;
|
|
174
|
+
var c;
|
|
175
|
+
w === "first" && (s = (c = (l = o.getFirstKey) === null || l === void 0 ? void 0 : l.call(o)) !== null && c !== void 0 ? c : null);
|
|
176
|
+
var n;
|
|
177
|
+
w === "last" && (s = (n = (r = o.getLastKey) === null || r === void 0 ? void 0 : r.call(o)) !== null && n !== void 0 ? n : null);
|
|
178
|
+
let u = e.selectedKeys;
|
|
179
|
+
if (u.size) {
|
|
180
|
+
for (let a of u) if (e.canSelectItem(a)) {
|
|
181
|
+
s = a;
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
e.setFocused(!0), e.setFocusedKey(s), s == null && !y && i.current && Z(i.current), e.collection.size > 0 && (z.current = !1, S.current = !0);
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
let D = F(e.focusedKey);
|
|
189
|
+
X(() => {
|
|
190
|
+
if (e.isFocused && e.focusedKey != null && (e.focusedKey !== D.current || S.current) && f.current && i.current) {
|
|
191
|
+
let l = Y(), r = V(i, e.focusedKey);
|
|
192
|
+
if (!(r instanceof HTMLElement))
|
|
193
|
+
return;
|
|
194
|
+
(l === "keyboard" || S.current) && (ye(f.current, r), l !== "virtual" && q(r, {
|
|
195
|
+
containingElement: i.current
|
|
196
|
+
}));
|
|
197
|
+
}
|
|
198
|
+
!y && e.isFocused && e.focusedKey == null && D.current != null && i.current && Z(i.current), D.current = e.focusedKey, S.current = !1;
|
|
199
|
+
}), h(i, "react-aria-focus-scope-restore", (l) => {
|
|
200
|
+
l.preventDefault(), e.setFocused(!0);
|
|
201
|
+
});
|
|
202
|
+
let E = {
|
|
203
|
+
onKeyDown: ce,
|
|
204
|
+
onFocus: ie,
|
|
205
|
+
onBlur: ne,
|
|
206
|
+
onMouseDown(l) {
|
|
207
|
+
f.current === l.target && l.preventDefault();
|
|
208
|
+
}
|
|
209
|
+
}, { typeSelectProps: ue } = ae({
|
|
210
|
+
keyboardDelegate: o,
|
|
211
|
+
selectionManager: e
|
|
212
|
+
});
|
|
213
|
+
oe || (E = J(ue, E));
|
|
214
|
+
let L;
|
|
215
|
+
y || (L = e.focusedKey == null ? 0 : -1);
|
|
216
|
+
let se = fe(e.collection);
|
|
217
|
+
return {
|
|
218
|
+
collectionProps: J(E, {
|
|
219
|
+
tabIndex: L,
|
|
220
|
+
"data-collection": se
|
|
221
|
+
})
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
export {
|
|
225
|
+
Ae as useSelectableCollection
|
|
226
|
+
};
|
|
227
|
+
//# sourceMappingURL=useSelectableCollection.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSelectableCollection.es.js","sources":["../../../../../node_modules/@react-aria/selection/dist/useSelectableCollection.mjs"],"sourcesContent":["import {getItemElement as $feb5ffebff200149$export$c3d8340acf92597f, isNonContiguousSelectionModifier as $feb5ffebff200149$export$d3e3bd3e26688c04, useCollectionId as $feb5ffebff200149$export$881eb0d9f3605d9d} from \"./utils.mjs\";\nimport {useTypeSelect as $fb3050f43d946246$export$e32c88dfddc6e1d8} from \"./useTypeSelect.mjs\";\nimport {useRouter as $3H3GQ$useRouter, isCtrlKeyPressed as $3H3GQ$isCtrlKeyPressed, focusWithoutScrolling as $3H3GQ$focusWithoutScrolling, useEvent as $3H3GQ$useEvent, scrollIntoViewport as $3H3GQ$scrollIntoViewport, FOCUS_EVENT as $3H3GQ$FOCUS_EVENT, useEffectEvent as $3H3GQ$useEffectEvent, useUpdateLayoutEffect as $3H3GQ$useUpdateLayoutEffect, CLEAR_FOCUS_EVENT as $3H3GQ$CLEAR_FOCUS_EVENT, scrollIntoView as $3H3GQ$scrollIntoView, mergeProps as $3H3GQ$mergeProps} from \"@react-aria/utils\";\nimport {flushSync as $3H3GQ$flushSync} from \"react-dom\";\nimport {useRef as $3H3GQ$useRef, useEffect as $3H3GQ$useEffect} from \"react\";\nimport {getInteractionModality as $3H3GQ$getInteractionModality, focusSafely as $3H3GQ$focusSafely} from \"@react-aria/interactions\";\nimport {getFocusableTreeWalker as $3H3GQ$getFocusableTreeWalker, moveVirtualFocus as $3H3GQ$moveVirtualFocus} from \"@react-aria/focus\";\nimport {useLocale as $3H3GQ$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\n\n\n\nfunction $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {\n let { selectionManager: manager, keyboardDelegate: delegate, ref: ref, autoFocus: autoFocus = false, shouldFocusWrap: shouldFocusWrap = false, disallowEmptySelection: disallowEmptySelection = false, disallowSelectAll: disallowSelectAll = false, escapeKeyBehavior: escapeKeyBehavior = 'clearSelection', selectOnFocus: selectOnFocus = manager.selectionBehavior === 'replace', disallowTypeAhead: disallowTypeAhead = false, shouldUseVirtualFocus: shouldUseVirtualFocus, allowsTabNavigation: allowsTabNavigation = false, isVirtualized: isVirtualized, scrollRef: // If no scrollRef is provided, assume the collection ref is the scrollable region\n scrollRef = ref, linkBehavior: linkBehavior = 'action' } = options;\n let { direction: direction } = (0, $3H3GQ$useLocale)();\n let router = (0, $3H3GQ$useRouter)();\n let onKeyDown = (e)=>{\n var _ref_current;\n // Prevent option + tab from doing anything since it doesn't move focus to the cells, only buttons/checkboxes\n if (e.altKey && e.key === 'Tab') e.preventDefault();\n // Keyboard events bubble through portals. Don't handle keyboard events\n // for elements outside the collection (e.g. menus).\n if (!((_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.contains(e.target))) return;\n const navigateToKey = (key, childFocus)=>{\n if (key != null) {\n if (manager.isLink(key) && linkBehavior === 'selection' && selectOnFocus && !(0, $feb5ffebff200149$export$d3e3bd3e26688c04)(e)) {\n // Set focused key and re-render synchronously to bring item into view if needed.\n (0, $3H3GQ$flushSync)(()=>{\n manager.setFocusedKey(key, childFocus);\n });\n let item = (0, $feb5ffebff200149$export$c3d8340acf92597f)(ref, key);\n let itemProps = manager.getItemProps(key);\n if (item) router.open(item, e, itemProps.href, itemProps.routerOptions);\n return;\n }\n manager.setFocusedKey(key, childFocus);\n if (manager.isLink(key) && linkBehavior === 'override') return;\n if (e.shiftKey && manager.selectionMode === 'multiple') manager.extendSelection(key);\n else if (selectOnFocus && !(0, $feb5ffebff200149$export$d3e3bd3e26688c04)(e)) manager.replaceSelection(key);\n }\n };\n switch(e.key){\n case 'ArrowDown':\n if (delegate.getKeyBelow) {\n var _delegate_getKeyBelow, _delegate_getFirstKey, _delegate_getFirstKey1;\n let nextKey = manager.focusedKey != null ? (_delegate_getKeyBelow = delegate.getKeyBelow) === null || _delegate_getKeyBelow === void 0 ? void 0 : _delegate_getKeyBelow.call(delegate, manager.focusedKey) : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate);\n if (nextKey == null && shouldFocusWrap) nextKey = (_delegate_getFirstKey1 = delegate.getFirstKey) === null || _delegate_getFirstKey1 === void 0 ? void 0 : _delegate_getFirstKey1.call(delegate, manager.focusedKey);\n if (nextKey != null) {\n e.preventDefault();\n navigateToKey(nextKey);\n }\n }\n break;\n case 'ArrowUp':\n if (delegate.getKeyAbove) {\n var _delegate_getKeyAbove, _delegate_getLastKey, _delegate_getLastKey1;\n let nextKey = manager.focusedKey != null ? (_delegate_getKeyAbove = delegate.getKeyAbove) === null || _delegate_getKeyAbove === void 0 ? void 0 : _delegate_getKeyAbove.call(delegate, manager.focusedKey) : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate);\n if (nextKey == null && shouldFocusWrap) nextKey = (_delegate_getLastKey1 = delegate.getLastKey) === null || _delegate_getLastKey1 === void 0 ? void 0 : _delegate_getLastKey1.call(delegate, manager.focusedKey);\n if (nextKey != null) {\n e.preventDefault();\n navigateToKey(nextKey);\n }\n }\n break;\n case 'ArrowLeft':\n if (delegate.getKeyLeftOf) {\n var _delegate_getKeyLeftOf, _delegate_getFirstKey2, _delegate_getLastKey2;\n let nextKey = manager.focusedKey != null ? (_delegate_getKeyLeftOf = delegate.getKeyLeftOf) === null || _delegate_getKeyLeftOf === void 0 ? void 0 : _delegate_getKeyLeftOf.call(delegate, manager.focusedKey) : null;\n if (nextKey == null && shouldFocusWrap) nextKey = direction === 'rtl' ? (_delegate_getFirstKey2 = delegate.getFirstKey) === null || _delegate_getFirstKey2 === void 0 ? void 0 : _delegate_getFirstKey2.call(delegate, manager.focusedKey) : (_delegate_getLastKey2 = delegate.getLastKey) === null || _delegate_getLastKey2 === void 0 ? void 0 : _delegate_getLastKey2.call(delegate, manager.focusedKey);\n if (nextKey != null) {\n e.preventDefault();\n navigateToKey(nextKey, direction === 'rtl' ? 'first' : 'last');\n }\n }\n break;\n case 'ArrowRight':\n if (delegate.getKeyRightOf) {\n var _delegate_getKeyRightOf, _delegate_getLastKey3, _delegate_getFirstKey3;\n let nextKey = manager.focusedKey != null ? (_delegate_getKeyRightOf = delegate.getKeyRightOf) === null || _delegate_getKeyRightOf === void 0 ? void 0 : _delegate_getKeyRightOf.call(delegate, manager.focusedKey) : null;\n if (nextKey == null && shouldFocusWrap) nextKey = direction === 'rtl' ? (_delegate_getLastKey3 = delegate.getLastKey) === null || _delegate_getLastKey3 === void 0 ? void 0 : _delegate_getLastKey3.call(delegate, manager.focusedKey) : (_delegate_getFirstKey3 = delegate.getFirstKey) === null || _delegate_getFirstKey3 === void 0 ? void 0 : _delegate_getFirstKey3.call(delegate, manager.focusedKey);\n if (nextKey != null) {\n e.preventDefault();\n navigateToKey(nextKey, direction === 'rtl' ? 'last' : 'first');\n }\n }\n break;\n case 'Home':\n if (delegate.getFirstKey) {\n if (manager.focusedKey === null && e.shiftKey) return;\n e.preventDefault();\n let firstKey = delegate.getFirstKey(manager.focusedKey, (0, $3H3GQ$isCtrlKeyPressed)(e));\n manager.setFocusedKey(firstKey);\n if (firstKey != null) {\n if ((0, $3H3GQ$isCtrlKeyPressed)(e) && e.shiftKey && manager.selectionMode === 'multiple') manager.extendSelection(firstKey);\n else if (selectOnFocus) manager.replaceSelection(firstKey);\n }\n }\n break;\n case 'End':\n if (delegate.getLastKey) {\n if (manager.focusedKey === null && e.shiftKey) return;\n e.preventDefault();\n let lastKey = delegate.getLastKey(manager.focusedKey, (0, $3H3GQ$isCtrlKeyPressed)(e));\n manager.setFocusedKey(lastKey);\n if (lastKey != null) {\n if ((0, $3H3GQ$isCtrlKeyPressed)(e) && e.shiftKey && manager.selectionMode === 'multiple') manager.extendSelection(lastKey);\n else if (selectOnFocus) manager.replaceSelection(lastKey);\n }\n }\n break;\n case 'PageDown':\n if (delegate.getKeyPageBelow && manager.focusedKey != null) {\n let nextKey = delegate.getKeyPageBelow(manager.focusedKey);\n if (nextKey != null) {\n e.preventDefault();\n navigateToKey(nextKey);\n }\n }\n break;\n case 'PageUp':\n if (delegate.getKeyPageAbove && manager.focusedKey != null) {\n let nextKey = delegate.getKeyPageAbove(manager.focusedKey);\n if (nextKey != null) {\n e.preventDefault();\n navigateToKey(nextKey);\n }\n }\n break;\n case 'a':\n if ((0, $3H3GQ$isCtrlKeyPressed)(e) && manager.selectionMode === 'multiple' && disallowSelectAll !== true) {\n e.preventDefault();\n manager.selectAll();\n }\n break;\n case 'Escape':\n if (escapeKeyBehavior === 'clearSelection' && !disallowEmptySelection && manager.selectedKeys.size !== 0) {\n e.stopPropagation();\n e.preventDefault();\n manager.clearSelection();\n }\n break;\n case 'Tab':\n if (!allowsTabNavigation) {\n // There may be elements that are \"tabbable\" inside a collection (e.g. in a grid cell).\n // However, collections should be treated as a single tab stop, with arrow key navigation internally.\n // We don't control the rendering of these, so we can't override the tabIndex to prevent tabbing.\n // Instead, we handle the Tab key, and move focus manually to the first/last tabbable element\n // in the collection, so that the browser default behavior will apply starting from that element\n // rather than the currently focused one.\n if (e.shiftKey) ref.current.focus();\n else {\n let walker = (0, $3H3GQ$getFocusableTreeWalker)(ref.current, {\n tabbable: true\n });\n let next = undefined;\n let last;\n do {\n last = walker.lastChild();\n if (last) next = last;\n }while (last);\n if (next && !next.contains(document.activeElement)) (0, $3H3GQ$focusWithoutScrolling)(next);\n }\n break;\n }\n }\n };\n // Store the scroll position so we can restore it later.\n /// TODO: should this happen all the time??\n let scrollPos = (0, $3H3GQ$useRef)({\n top: 0,\n left: 0\n });\n (0, $3H3GQ$useEvent)(scrollRef, 'scroll', isVirtualized ? undefined : ()=>{\n var _scrollRef_current, _scrollRef_current1;\n var _scrollRef_current_scrollTop, _scrollRef_current_scrollLeft;\n scrollPos.current = {\n top: (_scrollRef_current_scrollTop = (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === void 0 ? void 0 : _scrollRef_current.scrollTop) !== null && _scrollRef_current_scrollTop !== void 0 ? _scrollRef_current_scrollTop : 0,\n left: (_scrollRef_current_scrollLeft = (_scrollRef_current1 = scrollRef.current) === null || _scrollRef_current1 === void 0 ? void 0 : _scrollRef_current1.scrollLeft) !== null && _scrollRef_current_scrollLeft !== void 0 ? _scrollRef_current_scrollLeft : 0\n };\n });\n let onFocus = (e)=>{\n if (manager.isFocused) {\n // If a focus event bubbled through a portal, reset focus state.\n if (!e.currentTarget.contains(e.target)) manager.setFocused(false);\n return;\n }\n // Focus events can bubble through portals. Ignore these events.\n if (!e.currentTarget.contains(e.target)) return;\n manager.setFocused(true);\n if (manager.focusedKey == null) {\n var _delegate_getLastKey, _delegate_getFirstKey;\n let navigateToKey = (key)=>{\n if (key != null) {\n manager.setFocusedKey(key);\n if (selectOnFocus && !manager.isSelected(key)) manager.replaceSelection(key);\n }\n };\n // If the user hasn't yet interacted with the collection, there will be no focusedKey set.\n // Attempt to detect whether the user is tabbing forward or backward into the collection\n // and either focus the first or last item accordingly.\n let relatedTarget = e.relatedTarget;\n var _manager_lastSelectedKey, _manager_firstSelectedKey;\n if (relatedTarget && e.currentTarget.compareDocumentPosition(relatedTarget) & Node.DOCUMENT_POSITION_FOLLOWING) navigateToKey((_manager_lastSelectedKey = manager.lastSelectedKey) !== null && _manager_lastSelectedKey !== void 0 ? _manager_lastSelectedKey : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate));\n else navigateToKey((_manager_firstSelectedKey = manager.firstSelectedKey) !== null && _manager_firstSelectedKey !== void 0 ? _manager_firstSelectedKey : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate));\n } else if (!isVirtualized && scrollRef.current) {\n // Restore the scroll position to what it was before.\n scrollRef.current.scrollTop = scrollPos.current.top;\n scrollRef.current.scrollLeft = scrollPos.current.left;\n }\n if (manager.focusedKey != null && scrollRef.current) {\n // Refocus and scroll the focused item into view if it exists within the scrollable region.\n let element = (0, $feb5ffebff200149$export$c3d8340acf92597f)(ref, manager.focusedKey);\n if (element instanceof HTMLElement) {\n // This prevents a flash of focus on the first/last element in the collection, or the collection itself.\n if (!element.contains(document.activeElement) && !shouldUseVirtualFocus) (0, $3H3GQ$focusWithoutScrolling)(element);\n let modality = (0, $3H3GQ$getInteractionModality)();\n if (modality === 'keyboard') (0, $3H3GQ$scrollIntoViewport)(element, {\n containingElement: ref.current\n });\n }\n }\n };\n let onBlur = (e)=>{\n // Don't set blurred and then focused again if moving focus within the collection.\n if (!e.currentTarget.contains(e.relatedTarget)) manager.setFocused(false);\n };\n // Ref to track whether the first item in the collection should be automatically focused. Specifically used for autocomplete when user types\n // to focus the first key AFTER the collection updates.\n // TODO: potentially expand the usage of this\n let shouldVirtualFocusFirst = (0, $3H3GQ$useRef)(false);\n // Add event listeners for custom virtual events. These handle updating the focused key in response to various keyboard events\n // at the autocomplete level\n // TODO: fix type later\n (0, $3H3GQ$useEvent)(ref, (0, $3H3GQ$FOCUS_EVENT), !shouldUseVirtualFocus ? undefined : (e)=>{\n let { detail: detail } = e;\n e.stopPropagation();\n manager.setFocused(true);\n // If the user is typing forwards, autofocus the first option in the list.\n if ((detail === null || detail === void 0 ? void 0 : detail.focusStrategy) === 'first') shouldVirtualFocusFirst.current = true;\n });\n let updateActiveDescendant = (0, $3H3GQ$useEffectEvent)(()=>{\n var _delegate_getFirstKey;\n var _delegate_getFirstKey1;\n let keyToFocus = (_delegate_getFirstKey1 = (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate)) !== null && _delegate_getFirstKey1 !== void 0 ? _delegate_getFirstKey1 : null;\n // If no focusable items exist in the list, make sure to clear any activedescendant that may still exist\n if (keyToFocus == null) {\n (0, $3H3GQ$moveVirtualFocus)(ref.current);\n // If there wasn't a focusable key but the collection had items, then that means we aren't in an intermediate load state and all keys are disabled.\n // Reset shouldVirtualFocusFirst so that we don't erronously autofocus an item when the collection is filtered again.\n if (manager.collection.size > 0) shouldVirtualFocusFirst.current = false;\n } else {\n manager.setFocusedKey(keyToFocus);\n // Only set shouldVirtualFocusFirst to false if we've successfully set the first key as the focused key\n // If there wasn't a key to focus, we might be in a temporary loading state so we'll want to still focus the first key\n // after the collection updates after load\n shouldVirtualFocusFirst.current = false;\n }\n });\n (0, $3H3GQ$useUpdateLayoutEffect)(()=>{\n if (shouldVirtualFocusFirst.current) updateActiveDescendant();\n }, [\n manager.collection,\n updateActiveDescendant\n ]);\n let resetFocusFirstFlag = (0, $3H3GQ$useEffectEvent)(()=>{\n // If user causes the focused key to change in any other way, clear shouldVirtualFocusFirst so we don't\n // accidentally move focus from under them. Skip this if the collection was empty because we might be in a load\n // state and will still want to focus the first item after load\n if (manager.collection.size > 0) shouldVirtualFocusFirst.current = false;\n });\n (0, $3H3GQ$useUpdateLayoutEffect)(()=>{\n resetFocusFirstFlag();\n }, [\n manager.focusedKey,\n resetFocusFirstFlag\n ]);\n (0, $3H3GQ$useEvent)(ref, (0, $3H3GQ$CLEAR_FOCUS_EVENT), !shouldUseVirtualFocus ? undefined : (e)=>{\n var _e_detail;\n e.stopPropagation();\n manager.setFocused(false);\n if ((_e_detail = e.detail) === null || _e_detail === void 0 ? void 0 : _e_detail.clearFocusKey) manager.setFocusedKey(null);\n });\n const autoFocusRef = (0, $3H3GQ$useRef)(autoFocus);\n const didAutoFocusRef = (0, $3H3GQ$useRef)(false);\n (0, $3H3GQ$useEffect)(()=>{\n if (autoFocusRef.current) {\n var _delegate_getFirstKey, _delegate_getLastKey;\n let focusedKey = null;\n var _delegate_getFirstKey1;\n // Check focus strategy to determine which item to focus\n if (autoFocus === 'first') focusedKey = (_delegate_getFirstKey1 = (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate)) !== null && _delegate_getFirstKey1 !== void 0 ? _delegate_getFirstKey1 : null;\n var _delegate_getLastKey1;\n if (autoFocus === 'last') focusedKey = (_delegate_getLastKey1 = (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate)) !== null && _delegate_getLastKey1 !== void 0 ? _delegate_getLastKey1 : null;\n // If there are any selected keys, make the first one the new focus target\n let selectedKeys = manager.selectedKeys;\n if (selectedKeys.size) {\n for (let key of selectedKeys)if (manager.canSelectItem(key)) {\n focusedKey = key;\n break;\n }\n }\n manager.setFocused(true);\n manager.setFocusedKey(focusedKey);\n // If no default focus key is selected, focus the collection itself.\n if (focusedKey == null && !shouldUseVirtualFocus && ref.current) (0, $3H3GQ$focusSafely)(ref.current);\n // Wait until the collection has items to autofocus.\n if (manager.collection.size > 0) {\n autoFocusRef.current = false;\n didAutoFocusRef.current = true;\n }\n }\n });\n // Scroll the focused element into view when the focusedKey changes.\n let lastFocusedKey = (0, $3H3GQ$useRef)(manager.focusedKey);\n (0, $3H3GQ$useEffect)(()=>{\n if (manager.isFocused && manager.focusedKey != null && (manager.focusedKey !== lastFocusedKey.current || didAutoFocusRef.current) && scrollRef.current && ref.current) {\n let modality = (0, $3H3GQ$getInteractionModality)();\n let element = (0, $feb5ffebff200149$export$c3d8340acf92597f)(ref, manager.focusedKey);\n if (!(element instanceof HTMLElement)) // If item element wasn't found, return early (don't update autoFocusRef and lastFocusedKey).\n // The collection may initially be empty (e.g. virtualizer), so wait until the element exists.\n return;\n if (modality === 'keyboard' || didAutoFocusRef.current) {\n (0, $3H3GQ$scrollIntoView)(scrollRef.current, element);\n // Avoid scroll in iOS VO, since it may cause overlay to close (i.e. RAC submenu)\n if (modality !== 'virtual') (0, $3H3GQ$scrollIntoViewport)(element, {\n containingElement: ref.current\n });\n }\n }\n // If the focused key becomes null (e.g. the last item is deleted), focus the whole collection.\n if (!shouldUseVirtualFocus && manager.isFocused && manager.focusedKey == null && lastFocusedKey.current != null && ref.current) (0, $3H3GQ$focusSafely)(ref.current);\n lastFocusedKey.current = manager.focusedKey;\n didAutoFocusRef.current = false;\n });\n // Intercept FocusScope restoration since virtualized collections can reuse DOM nodes.\n (0, $3H3GQ$useEvent)(ref, 'react-aria-focus-scope-restore', (e)=>{\n e.preventDefault();\n manager.setFocused(true);\n });\n let handlers = {\n onKeyDown: onKeyDown,\n onFocus: onFocus,\n onBlur: onBlur,\n onMouseDown (e) {\n // Ignore events that bubbled through portals.\n if (scrollRef.current === e.target) // Prevent focus going to the collection when clicking on the scrollbar.\n e.preventDefault();\n }\n };\n let { typeSelectProps: typeSelectProps } = (0, $fb3050f43d946246$export$e32c88dfddc6e1d8)({\n keyboardDelegate: delegate,\n selectionManager: manager\n });\n if (!disallowTypeAhead) handlers = (0, $3H3GQ$mergeProps)(typeSelectProps, handlers);\n // If nothing is focused within the collection, make the collection itself tabbable.\n // This will be marshalled to either the first or last item depending on where focus came from.\n let tabIndex = undefined;\n if (!shouldUseVirtualFocus) tabIndex = manager.focusedKey == null ? 0 : -1;\n let collectionId = (0, $feb5ffebff200149$export$881eb0d9f3605d9d)(manager.collection);\n return {\n collectionProps: (0, $3H3GQ$mergeProps)(handlers, {\n tabIndex: tabIndex,\n 'data-collection': collectionId\n })\n };\n}\n\n\nexport {$ae20dd8cbca75726$export$d6daf82dcd84e87c as useSelectableCollection};\n//# sourceMappingURL=useSelectableCollection.module.js.map\n"],"names":["$ae20dd8cbca75726$export$d6daf82dcd84e87c","options","manager","delegate","ref","autoFocus","shouldFocusWrap","disallowEmptySelection","disallowSelectAll","escapeKeyBehavior","selectOnFocus","disallowTypeAhead","shouldUseVirtualFocus","allowsTabNavigation","isVirtualized","scrollRef","linkBehavior","direction","$3H3GQ$useLocale","router","$3H3GQ$useRouter","onKeyDown","e","_ref_current","navigateToKey","key","childFocus","$feb5ffebff200149$export$d3e3bd3e26688c04","$3H3GQ$flushSync","item","$feb5ffebff200149$export$c3d8340acf92597f","itemProps","_delegate_getKeyBelow","_delegate_getFirstKey","_delegate_getFirstKey1","nextKey","_delegate_getKeyAbove","_delegate_getLastKey","_delegate_getLastKey1","_delegate_getKeyLeftOf","_delegate_getFirstKey2","_delegate_getLastKey2","_delegate_getKeyRightOf","_delegate_getLastKey3","_delegate_getFirstKey3","firstKey","$3H3GQ$isCtrlKeyPressed","lastKey","walker","$3H3GQ$getFocusableTreeWalker","next","last","$3H3GQ$focusWithoutScrolling","scrollPos","$3H3GQ$useRef","$3H3GQ$useEvent","_scrollRef_current","_scrollRef_current1","_scrollRef_current_scrollTop","_scrollRef_current_scrollLeft","onFocus","relatedTarget","_manager_lastSelectedKey","_manager_firstSelectedKey","element","$3H3GQ$getInteractionModality","$3H3GQ$scrollIntoViewport","onBlur","shouldVirtualFocusFirst","$3H3GQ$FOCUS_EVENT","detail","updateActiveDescendant","$3H3GQ$useEffectEvent","keyToFocus","$3H3GQ$moveVirtualFocus","$3H3GQ$useUpdateLayoutEffect","resetFocusFirstFlag","$3H3GQ$CLEAR_FOCUS_EVENT","_e_detail","autoFocusRef","didAutoFocusRef","$3H3GQ$useEffect","focusedKey","selectedKeys","$3H3GQ$focusSafely","lastFocusedKey","modality","$3H3GQ$scrollIntoView","handlers","typeSelectProps","$fb3050f43d946246$export$e32c88dfddc6e1d8","$3H3GQ$mergeProps","tabIndex","collectionId","$feb5ffebff200149$export$881eb0d9f3605d9d"],"mappings":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C8E,EAAgB,UAAU;AAAA,EAClC,CAAK,GAEGzB,EAAiBnD,GAAK,kCAAkC,CAACkB,MAAI;AAC7D,IAAAA,EAAE,eAAc,GAChBpB,EAAQ,WAAW,EAAI;AAAA,EAC/B,CAAK;AACD,MAAIsF,IAAW;AAAA,IACX,WAAWnE;AAAA,IACX,SAASuC;AAAA,IACT,QAAQO;AAAA,IACR,YAAa7C,GAAG;AAEZ,MAAIP,EAAU,YAAYO,EAAE,UAC5BA,EAAE,eAAc;AAAA,IACnB;AAAA,EACT,GACQ,EAAE,iBAAiBmE,GAAiB,IAAOC,GAA2C;AAAA,IACtF,kBAAkBvF;AAAA,IAClB,kBAAkBD;AAAA,EAC1B,CAAK;AACD,EAAKS,OAAmB6E,IAAeG,EAAmBF,IAAiBD,CAAQ;AAGnF,MAAII;AACJ,EAAKhF,MAAuBgF,IAAW1F,EAAQ,cAAc,OAAO,IAAI;AACxE,MAAI2F,KAAmBC,GAA2C5F,EAAQ,UAAU;AACpF,SAAO;AAAA,IACH,iBAAqByF,EAAmBH,GAAU;AAAA,MAC9C,UAAUI;AAAA,MACV,mBAAmBC;AAAA,IAC/B,CAAS;AAAA,EACT;AACA;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("./utils.cjs.js"),V=require("../../interactions/dist/usePress.cjs.js"),j=require("../../interactions/dist/useLongPress.cjs.js"),N=require("../../interactions/dist/focusSafely.cjs.js"),d=require("@react-aria/utils"),z=require("../../focus/dist/virtualFocus.cjs.js"),b=require("react");function G(s){let{id:m,selectionManager:t,key:o,ref:r,shouldSelectOnPressUp:C,shouldUseVirtualFocus:l,focus:F,isDisabled:c,onAction:h,allowsDifferentPressOrigin:q,linkBehavior:p="action"}=s,K=d.useRouter();m=d.useId(m);let u=e=>{if(e.pointerType==="keyboard"&&$.isNonContiguousSelectionModifier(e))t.toggleSelection(o);else{if(t.selectionMode==="none")return;if(t.isLink(o)){if(p==="selection"&&r.current){let P=t.getItemProps(o);K.open(r.current,e,P.href,P.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(p==="override"||p==="none")return}t.selectionMode==="single"?t.isSelected(o)&&!t.disallowEmptySelection?t.toggleSelection(o):t.replaceSelection(o):e&&e.shiftKey?t.extendSelection(o):t.selectionBehavior==="toggle"||e&&(d.isCtrlKeyPressed(e)||e.pointerType==="touch"||e.pointerType==="virtual")?t.toggleSelection(o):t.replaceSelection(o)}};b.useEffect(()=>{o===t.focusedKey&&t.isFocused&&(l?z.moveVirtualFocus(r.current):F?F():document.activeElement!==r.current&&r.current&&N.focusSafely(r.current))},[r,o,t.focusedKey,t.childFocusStrategy,t.isFocused,l]),c=c||t.isDisabled(o);let f={};!l&&!c?f={tabIndex:o===t.focusedKey?0:-1,onFocus(e){e.target===r.current&&t.setFocusedKey(o)}}:c&&(f.onMouseDown=e=>{e.preventDefault()});let E=t.isLink(o)&&p==="override",w=t.isLink(o)&&p!=="selection"&&p!=="none",i=!c&&t.canSelectItem(o)&&!E,k=(h||w)&&!c,a=k&&(t.selectionBehavior==="replace"?!i:!i||t.isEmpty),T=k&&i&&t.selectionBehavior==="replace",y=a||T,g=b.useRef(null),S=y&&i,D=b.useRef(!1),O=b.useRef(!1),v=e=>{if(h&&h(),w&&r.current){let P=t.getItemProps(o);K.open(r.current,e,P.href,P.routerOptions)}},n={ref:r};C?(n.onPressStart=e=>{g.current=e.pointerType,D.current=S,e.pointerType==="keyboard"&&(!y||L())&&u(e)},q?(n.onPressUp=a?void 0:e=>{e.pointerType==="mouse"&&i&&u(e)},n.onPress=a?v:e=>{e.pointerType!=="keyboard"&&e.pointerType!=="mouse"&&i&&u(e)}):n.onPress=e=>{if(a||T&&e.pointerType!=="mouse"){if(e.pointerType==="keyboard"&&!A())return;v(e)}else e.pointerType!=="keyboard"&&i&&u(e)}):(n.onPressStart=e=>{g.current=e.pointerType,D.current=S,O.current=a,i&&(e.pointerType==="mouse"&&!a||e.pointerType==="keyboard"&&(!k||L()))&&u(e)},n.onPress=e=>{(e.pointerType==="touch"||e.pointerType==="pen"||e.pointerType==="virtual"||e.pointerType==="keyboard"&&y&&A()||e.pointerType==="mouse"&&O.current)&&(y?v(e):i&&u(e))}),f["data-collection"]=$.getCollectionId(t.collection),f["data-key"]=o,n.preventFocusOnPress=l,l&&(n=d.mergeProps(n,{onPressStart(e){e.pointerType!=="touch"&&(t.setFocused(!0),t.setFocusedKey(o))},onPress(e){e.pointerType==="touch"&&(t.setFocused(!0),t.setFocusedKey(o))}}));let{pressProps:I,isPressed:M}=V.usePress(n),B=T?e=>{g.current==="mouse"&&(e.stopPropagation(),e.preventDefault(),v(e))}:void 0,{longPressProps:R}=j.useLongPress({isDisabled:!S,onLongPress(e){e.pointerType==="touch"&&(u(e),t.setSelectionBehavior("toggle"))}}),U=e=>{g.current==="touch"&&D.current&&e.preventDefault()},x=t.isLink(o)?e=>{d.openLink.isOpening||e.preventDefault()}:void 0;return{itemProps:d.mergeProps(f,i||a||l?I:{},S?R:{},{onDoubleClick:B,onDragStartCapture:U,onClick:x,id:m},l?{onMouseDown:e=>e.preventDefault()}:void 0),isPressed:M,isSelected:t.isSelected(o),isFocused:t.isFocused&&t.focusedKey===o,isDisabled:c,allowsSelection:i,hasAction:y}}function A(){let s=window.event;return(s==null?void 0:s.key)==="Enter"}function L(){let s=window.event;return(s==null?void 0:s.key)===" "||(s==null?void 0:s.code)==="Space"}exports.useSelectableItem=G;
|
|
2
|
+
//# sourceMappingURL=useSelectableItem.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSelectableItem.cjs.js","sources":["../../../../../node_modules/@react-aria/selection/dist/useSelectableItem.mjs"],"sourcesContent":["import {getCollectionId as $feb5ffebff200149$export$6aeb1680a0ae8741, isNonContiguousSelectionModifier as $feb5ffebff200149$export$d3e3bd3e26688c04} from \"./utils.mjs\";\nimport {focusSafely as $581M0$focusSafely, usePress as $581M0$usePress, useLongPress as $581M0$useLongPress} from \"@react-aria/interactions\";\nimport {useRouter as $581M0$useRouter, useId as $581M0$useId, isCtrlKeyPressed as $581M0$isCtrlKeyPressed, mergeProps as $581M0$mergeProps, openLink as $581M0$openLink} from \"@react-aria/utils\";\nimport {moveVirtualFocus as $581M0$moveVirtualFocus} from \"@react-aria/focus\";\nimport {useEffect as $581M0$useEffect, useRef as $581M0$useRef} from \"react\";\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 $880e95eb8b93ba9a$export$ecf600387e221c37(options) {\n let { id: id, selectionManager: manager, key: key, ref: ref, shouldSelectOnPressUp: shouldSelectOnPressUp, shouldUseVirtualFocus: shouldUseVirtualFocus, focus: focus, isDisabled: isDisabled, onAction: onAction, allowsDifferentPressOrigin: allowsDifferentPressOrigin, linkBehavior: linkBehavior = 'action' } = options;\n let router = (0, $581M0$useRouter)();\n id = (0, $581M0$useId)(id);\n let onSelect = (e)=>{\n if (e.pointerType === 'keyboard' && (0, $feb5ffebff200149$export$d3e3bd3e26688c04)(e)) manager.toggleSelection(key);\n else {\n if (manager.selectionMode === 'none') return;\n if (manager.isLink(key)) {\n if (linkBehavior === 'selection' && ref.current) {\n let itemProps = manager.getItemProps(key);\n router.open(ref.current, e, itemProps.href, itemProps.routerOptions);\n // Always set selected keys back to what they were so that select and combobox close.\n manager.setSelectedKeys(manager.selectedKeys);\n return;\n } else if (linkBehavior === 'override' || linkBehavior === 'none') return;\n }\n if (manager.selectionMode === 'single') {\n if (manager.isSelected(key) && !manager.disallowEmptySelection) manager.toggleSelection(key);\n else manager.replaceSelection(key);\n } else if (e && e.shiftKey) manager.extendSelection(key);\n else if (manager.selectionBehavior === 'toggle' || e && ((0, $581M0$isCtrlKeyPressed)(e) || e.pointerType === 'touch' || e.pointerType === 'virtual')) // if touch or virtual (VO) then we just want to toggle, otherwise it's impossible to multi select because they don't have modifier keys\n manager.toggleSelection(key);\n else manager.replaceSelection(key);\n }\n };\n // Focus the associated DOM node when this item becomes the focusedKey\n // TODO: can't make this useLayoutEffect bacause it breaks menus inside dialogs\n // However, if this is a useEffect, it runs twice and dispatches two blur events and immediately sets\n // aria-activeDescendant in useAutocomplete... I've worked around this for now\n (0, $581M0$useEffect)(()=>{\n let isFocused = key === manager.focusedKey;\n if (isFocused && manager.isFocused) {\n if (!shouldUseVirtualFocus) {\n if (focus) focus();\n else if (document.activeElement !== ref.current && ref.current) (0, $581M0$focusSafely)(ref.current);\n } else (0, $581M0$moveVirtualFocus)(ref.current);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n ref,\n key,\n manager.focusedKey,\n manager.childFocusStrategy,\n manager.isFocused,\n shouldUseVirtualFocus\n ]);\n isDisabled = isDisabled || manager.isDisabled(key);\n // Set tabIndex to 0 if the element is focused, or -1 otherwise so that only the last focused\n // item is tabbable. If using virtual focus, don't set a tabIndex at all so that VoiceOver\n // on iOS 14 doesn't try to move real DOM focus to the item anyway.\n let itemProps = {};\n if (!shouldUseVirtualFocus && !isDisabled) itemProps = {\n tabIndex: key === manager.focusedKey ? 0 : -1,\n onFocus (e) {\n if (e.target === ref.current) manager.setFocusedKey(key);\n }\n };\n else if (isDisabled) itemProps.onMouseDown = (e)=>{\n // Prevent focus going to the body when clicking on a disabled item.\n e.preventDefault();\n };\n // With checkbox selection, onAction (i.e. navigation) becomes primary, and occurs on a single click of the row.\n // Clicking the checkbox enters selection mode, after which clicking anywhere on any row toggles selection for that row.\n // With highlight selection, onAction is secondary, and occurs on double click. Single click selects the row.\n // With touch, onAction occurs on single tap, and long press enters selection mode.\n let isLinkOverride = manager.isLink(key) && linkBehavior === 'override';\n let hasLinkAction = manager.isLink(key) && linkBehavior !== 'selection' && linkBehavior !== 'none';\n let allowsSelection = !isDisabled && manager.canSelectItem(key) && !isLinkOverride;\n let allowsActions = (onAction || hasLinkAction) && !isDisabled;\n let hasPrimaryAction = allowsActions && (manager.selectionBehavior === 'replace' ? !allowsSelection : !allowsSelection || manager.isEmpty);\n let hasSecondaryAction = allowsActions && allowsSelection && manager.selectionBehavior === 'replace';\n let hasAction = hasPrimaryAction || hasSecondaryAction;\n let modality = (0, $581M0$useRef)(null);\n let longPressEnabled = hasAction && allowsSelection;\n let longPressEnabledOnPressStart = (0, $581M0$useRef)(false);\n let hadPrimaryActionOnPressStart = (0, $581M0$useRef)(false);\n let performAction = (e)=>{\n if (onAction) onAction();\n if (hasLinkAction && ref.current) {\n let itemProps = manager.getItemProps(key);\n router.open(ref.current, e, itemProps.href, itemProps.routerOptions);\n }\n };\n // By default, selection occurs on pointer down. This can be strange if selecting an\n // item causes the UI to disappear immediately (e.g. menus).\n // If shouldSelectOnPressUp is true, we use onPressUp instead of onPressStart.\n // onPress requires a pointer down event on the same element as pointer up. For menus,\n // we want to be able to have the pointer down on the trigger that opens the menu and\n // the pointer up on the menu item rather than requiring a separate press.\n // For keyboard events, selection still occurs on key down.\n let itemPressProps = {\n ref: ref\n };\n if (shouldSelectOnPressUp) {\n itemPressProps.onPressStart = (e)=>{\n modality.current = e.pointerType;\n longPressEnabledOnPressStart.current = longPressEnabled;\n if (e.pointerType === 'keyboard' && (!hasAction || $880e95eb8b93ba9a$var$isSelectionKey())) onSelect(e);\n };\n // If allowsDifferentPressOrigin and interacting with mouse, make selection happen on pressUp (e.g. open menu on press down, selection on menu item happens on press up.)\n // Otherwise, have selection happen onPress (prevents listview row selection when clicking on interactable elements in the row)\n if (!allowsDifferentPressOrigin) itemPressProps.onPress = (e)=>{\n if (hasPrimaryAction || hasSecondaryAction && e.pointerType !== 'mouse') {\n if (e.pointerType === 'keyboard' && !$880e95eb8b93ba9a$var$isActionKey()) return;\n performAction(e);\n } else if (e.pointerType !== 'keyboard' && allowsSelection) onSelect(e);\n };\n else {\n itemPressProps.onPressUp = hasPrimaryAction ? undefined : (e)=>{\n if (e.pointerType === 'mouse' && allowsSelection) onSelect(e);\n };\n itemPressProps.onPress = hasPrimaryAction ? performAction : (e)=>{\n if (e.pointerType !== 'keyboard' && e.pointerType !== 'mouse' && allowsSelection) onSelect(e);\n };\n }\n } else {\n itemPressProps.onPressStart = (e)=>{\n modality.current = e.pointerType;\n longPressEnabledOnPressStart.current = longPressEnabled;\n hadPrimaryActionOnPressStart.current = hasPrimaryAction;\n // Select on mouse down unless there is a primary action which will occur on mouse up.\n // For keyboard, select on key down. If there is an action, the Space key selects on key down,\n // and the Enter key performs onAction on key up.\n if (allowsSelection && (e.pointerType === 'mouse' && !hasPrimaryAction || e.pointerType === 'keyboard' && (!allowsActions || $880e95eb8b93ba9a$var$isSelectionKey()))) onSelect(e);\n };\n itemPressProps.onPress = (e)=>{\n // Selection occurs on touch up. Primary actions always occur on pointer up.\n // Both primary and secondary actions occur on Enter key up. The only exception\n // is secondary actions, which occur on double click with a mouse.\n if (e.pointerType === 'touch' || e.pointerType === 'pen' || e.pointerType === 'virtual' || e.pointerType === 'keyboard' && hasAction && $880e95eb8b93ba9a$var$isActionKey() || e.pointerType === 'mouse' && hadPrimaryActionOnPressStart.current) {\n if (hasAction) performAction(e);\n else if (allowsSelection) onSelect(e);\n }\n };\n }\n itemProps['data-collection'] = (0, $feb5ffebff200149$export$6aeb1680a0ae8741)(manager.collection);\n itemProps['data-key'] = key;\n itemPressProps.preventFocusOnPress = shouldUseVirtualFocus;\n // When using virtual focus, make sure the focused key gets updated on press.\n if (shouldUseVirtualFocus) itemPressProps = (0, $581M0$mergeProps)(itemPressProps, {\n onPressStart (e) {\n if (e.pointerType !== 'touch') {\n manager.setFocused(true);\n manager.setFocusedKey(key);\n }\n },\n onPress (e) {\n if (e.pointerType === 'touch') {\n manager.setFocused(true);\n manager.setFocusedKey(key);\n }\n }\n });\n let { pressProps: pressProps, isPressed: isPressed } = (0, $581M0$usePress)(itemPressProps);\n // Double clicking with a mouse with selectionBehavior = 'replace' performs an action.\n let onDoubleClick = hasSecondaryAction ? (e)=>{\n if (modality.current === 'mouse') {\n e.stopPropagation();\n e.preventDefault();\n performAction(e);\n }\n } : undefined;\n // Long pressing an item with touch when selectionBehavior = 'replace' switches the selection behavior\n // to 'toggle'. This changes the single tap behavior from performing an action (i.e. navigating) to\n // selecting, and may toggle the appearance of a UI affordance like checkboxes on each item.\n let { longPressProps: longPressProps } = (0, $581M0$useLongPress)({\n isDisabled: !longPressEnabled,\n onLongPress (e) {\n if (e.pointerType === 'touch') {\n onSelect(e);\n manager.setSelectionBehavior('toggle');\n }\n }\n });\n // Prevent native drag and drop on long press if we also select on long press.\n // Once the user is in selection mode, they can long press again to drag.\n // Use a capturing listener to ensure this runs before useDrag, regardless of\n // the order the props get merged.\n let onDragStartCapture = (e)=>{\n if (modality.current === 'touch' && longPressEnabledOnPressStart.current) e.preventDefault();\n };\n // Prevent default on link clicks so that we control exactly\n // when they open (to match selection behavior).\n let onClick = manager.isLink(key) ? (e)=>{\n if (!(0, $581M0$openLink).isOpening) e.preventDefault();\n } : undefined;\n return {\n itemProps: (0, $581M0$mergeProps)(itemProps, allowsSelection || hasPrimaryAction || shouldUseVirtualFocus ? pressProps : {}, longPressEnabled ? longPressProps : {}, {\n onDoubleClick: onDoubleClick,\n onDragStartCapture: onDragStartCapture,\n onClick: onClick,\n id: id\n }, // Prevent DOM focus from moving on mouse down when using virtual focus\n shouldUseVirtualFocus ? {\n onMouseDown: (e)=>e.preventDefault()\n } : undefined),\n isPressed: isPressed,\n isSelected: manager.isSelected(key),\n isFocused: manager.isFocused && manager.focusedKey === key,\n isDisabled: isDisabled,\n allowsSelection: allowsSelection,\n hasAction: hasAction\n };\n}\nfunction $880e95eb8b93ba9a$var$isActionKey() {\n let event = window.event;\n return (event === null || event === void 0 ? void 0 : event.key) === 'Enter';\n}\nfunction $880e95eb8b93ba9a$var$isSelectionKey() {\n let event = window.event;\n return (event === null || event === void 0 ? void 0 : event.key) === ' ' || (event === null || event === void 0 ? void 0 : event.code) === 'Space';\n}\n\n\nexport {$880e95eb8b93ba9a$export$ecf600387e221c37 as useSelectableItem};\n//# sourceMappingURL=useSelectableItem.module.js.map\n"],"names":["$880e95eb8b93ba9a$export$ecf600387e221c37","options","id","manager","key","ref","shouldSelectOnPressUp","shouldUseVirtualFocus","focus","isDisabled","onAction","allowsDifferentPressOrigin","linkBehavior","router","$581M0$useRouter","$581M0$useId","onSelect","$feb5ffebff200149$export$d3e3bd3e26688c04","itemProps","$581M0$isCtrlKeyPressed","$581M0$useEffect","$581M0$moveVirtualFocus","$581M0$focusSafely","isLinkOverride","hasLinkAction","allowsSelection","allowsActions","hasPrimaryAction","hasSecondaryAction","hasAction","modality","$581M0$useRef","longPressEnabled","longPressEnabledOnPressStart","hadPrimaryActionOnPressStart","performAction","itemPressProps","$880e95eb8b93ba9a$var$isSelectionKey","$880e95eb8b93ba9a$var$isActionKey","$feb5ffebff200149$export$6aeb1680a0ae8741","$581M0$mergeProps","pressProps","isPressed","$581M0$usePress","onDoubleClick","longPressProps","$581M0$useLongPress","onDragStartCapture","onClick","$581M0$openLink","event"],"mappings":"4XAqBA,SAASA,EAA0CC,EAAS,CACxD,GAAI,CAAE,GAAIC,EAAI,iBAAkBC,EAAS,IAAKC,EAAK,IAAKC,EAAK,sBAAuBC,EAAuB,sBAAuBC,EAAuB,MAAOC,EAAO,WAAYC,EAAY,SAAUC,EAAU,2BAA4BC,EAA4B,aAAcC,EAAe,QAAQ,EAAKX,EACjTY,EAAaC,EAAAA,YACjBZ,EAASa,QAAcb,CAAE,EACzB,IAAIc,EAAY,GAAI,CAChB,GAAI,EAAE,cAAgB,YAAkBC,EAAAA,iCAA2C,CAAC,EAAGd,EAAQ,gBAAgBC,CAAG,MAC7G,CACD,GAA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jB,EAAS,UAAY,SAAWG,EAA6B,SAAS,EAAE,gBACpF,EAGQe,EAAU7C,EAAQ,OAAOC,CAAG,EAAK,GAAI,CAC5B6C,EAAe,SAAE,WAAW,EAAE,eAAc,CACxD,EAAG,OACJ,MAAO,CACH,UAAeT,EAAAA,WAAmBtB,EAAWO,GAAmBE,GAAoBpB,EAAwBkC,EAAa,CAAE,EAAET,EAAmBa,EAAiB,CAAA,EAAI,CACjK,cAAeD,EACf,mBAAoBG,EACpB,QAASC,EACT,GAAI9C,CACP,EACDK,EAAwB,CACpB,YAAc,GAAI,EAAE,eAAgB,CACvC,EAAG,MAAS,EACb,UAAWmC,EACX,WAAYvC,EAAQ,WAAWC,CAAG,EAClC,UAAWD,EAAQ,WAAaA,EAAQ,aAAeC,EACvD,WAAYK,EACZ,gBAAiBgB,EACjB,UAAWI,CACnB,CACA,CACA,SAASS,GAAoC,CACzC,IAAIY,EAAQ,OAAO,MACnB,OAAQA,GAAU,KAA2B,OAASA,EAAM,OAAS,OACzE,CACA,SAASb,GAAuC,CAC5C,IAAIa,EAAQ,OAAO,MACnB,OAAQA,GAAU,KAA2B,OAASA,EAAM,OAAS,MAAQA,GAAU,KAA2B,OAASA,EAAM,QAAU,OAC/I","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { getCollectionId as R, isNonContiguousSelectionModifier as N } from "./utils.es.js";
|
|
2
|
+
import { usePress as j } from "../../interactions/dist/usePress.es.js";
|
|
3
|
+
import { useLongPress as q } from "../../interactions/dist/useLongPress.es.js";
|
|
4
|
+
import { focusSafely as z } from "../../interactions/dist/focusSafely.es.js";
|
|
5
|
+
import { useRouter as G, useId as H, mergeProps as w, openLink as J, isCtrlKeyPressed as Q } from "@react-aria/utils";
|
|
6
|
+
import { moveVirtualFocus as W } from "../../focus/dist/virtualFocus.es.js";
|
|
7
|
+
import { useEffect as X, useRef as k } from "react";
|
|
8
|
+
function se(r) {
|
|
9
|
+
let { id: g, selectionManager: t, key: o, ref: s, shouldSelectOnPressUp: x, shouldUseVirtualFocus: l, focus: T, isDisabled: c, onAction: S, allowsDifferentPressOrigin: C, linkBehavior: p = "action" } = r, D = G();
|
|
10
|
+
g = H(g);
|
|
11
|
+
let u = (e) => {
|
|
12
|
+
if (e.pointerType === "keyboard" && N(e)) t.toggleSelection(o);
|
|
13
|
+
else {
|
|
14
|
+
if (t.selectionMode === "none") return;
|
|
15
|
+
if (t.isLink(o)) {
|
|
16
|
+
if (p === "selection" && s.current) {
|
|
17
|
+
let y = t.getItemProps(o);
|
|
18
|
+
D.open(s.current, e, y.href, y.routerOptions), t.setSelectedKeys(t.selectedKeys);
|
|
19
|
+
return;
|
|
20
|
+
} else if (p === "override" || p === "none") return;
|
|
21
|
+
}
|
|
22
|
+
t.selectionMode === "single" ? t.isSelected(o) && !t.disallowEmptySelection ? t.toggleSelection(o) : t.replaceSelection(o) : e && e.shiftKey ? t.extendSelection(o) : t.selectionBehavior === "toggle" || e && (Q(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? t.toggleSelection(o) : t.replaceSelection(o);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
X(() => {
|
|
26
|
+
o === t.focusedKey && t.isFocused && (l ? W(s.current) : T ? T() : document.activeElement !== s.current && s.current && z(s.current));
|
|
27
|
+
}, [
|
|
28
|
+
s,
|
|
29
|
+
o,
|
|
30
|
+
t.focusedKey,
|
|
31
|
+
t.childFocusStrategy,
|
|
32
|
+
t.isFocused,
|
|
33
|
+
l
|
|
34
|
+
]), c = c || t.isDisabled(o);
|
|
35
|
+
let f = {};
|
|
36
|
+
!l && !c ? f = {
|
|
37
|
+
tabIndex: o === t.focusedKey ? 0 : -1,
|
|
38
|
+
onFocus(e) {
|
|
39
|
+
e.target === s.current && t.setFocusedKey(o);
|
|
40
|
+
}
|
|
41
|
+
} : c && (f.onMouseDown = (e) => {
|
|
42
|
+
e.preventDefault();
|
|
43
|
+
});
|
|
44
|
+
let L = t.isLink(o) && p === "override", F = t.isLink(o) && p !== "selection" && p !== "none", i = !c && t.canSelectItem(o) && !L, v = (S || F) && !c, a = v && (t.selectionBehavior === "replace" ? !i : !i || t.isEmpty), $ = v && i && t.selectionBehavior === "replace", d = a || $, P = k(null), m = d && i, h = k(!1), K = k(!1), b = (e) => {
|
|
45
|
+
if (S && S(), F && s.current) {
|
|
46
|
+
let y = t.getItemProps(o);
|
|
47
|
+
D.open(s.current, e, y.href, y.routerOptions);
|
|
48
|
+
}
|
|
49
|
+
}, n = {
|
|
50
|
+
ref: s
|
|
51
|
+
};
|
|
52
|
+
x ? (n.onPressStart = (e) => {
|
|
53
|
+
P.current = e.pointerType, h.current = m, e.pointerType === "keyboard" && (!d || O()) && u(e);
|
|
54
|
+
}, C ? (n.onPressUp = a ? void 0 : (e) => {
|
|
55
|
+
e.pointerType === "mouse" && i && u(e);
|
|
56
|
+
}, n.onPress = a ? b : (e) => {
|
|
57
|
+
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && i && u(e);
|
|
58
|
+
}) : n.onPress = (e) => {
|
|
59
|
+
if (a || $ && e.pointerType !== "mouse") {
|
|
60
|
+
if (e.pointerType === "keyboard" && !A()) return;
|
|
61
|
+
b(e);
|
|
62
|
+
} else e.pointerType !== "keyboard" && i && u(e);
|
|
63
|
+
}) : (n.onPressStart = (e) => {
|
|
64
|
+
P.current = e.pointerType, h.current = m, K.current = a, i && (e.pointerType === "mouse" && !a || e.pointerType === "keyboard" && (!v || O())) && u(e);
|
|
65
|
+
}, n.onPress = (e) => {
|
|
66
|
+
(e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && d && A() || e.pointerType === "mouse" && K.current) && (d ? b(e) : i && u(e));
|
|
67
|
+
}), f["data-collection"] = R(t.collection), f["data-key"] = o, n.preventFocusOnPress = l, l && (n = w(n, {
|
|
68
|
+
onPressStart(e) {
|
|
69
|
+
e.pointerType !== "touch" && (t.setFocused(!0), t.setFocusedKey(o));
|
|
70
|
+
},
|
|
71
|
+
onPress(e) {
|
|
72
|
+
e.pointerType === "touch" && (t.setFocused(!0), t.setFocusedKey(o));
|
|
73
|
+
}
|
|
74
|
+
}));
|
|
75
|
+
let { pressProps: E, isPressed: I } = j(n), B = $ ? (e) => {
|
|
76
|
+
P.current === "mouse" && (e.stopPropagation(), e.preventDefault(), b(e));
|
|
77
|
+
} : void 0, { longPressProps: M } = q({
|
|
78
|
+
isDisabled: !m,
|
|
79
|
+
onLongPress(e) {
|
|
80
|
+
e.pointerType === "touch" && (u(e), t.setSelectionBehavior("toggle"));
|
|
81
|
+
}
|
|
82
|
+
}), U = (e) => {
|
|
83
|
+
P.current === "touch" && h.current && e.preventDefault();
|
|
84
|
+
}, V = t.isLink(o) ? (e) => {
|
|
85
|
+
J.isOpening || e.preventDefault();
|
|
86
|
+
} : void 0;
|
|
87
|
+
return {
|
|
88
|
+
itemProps: w(
|
|
89
|
+
f,
|
|
90
|
+
i || a || l ? E : {},
|
|
91
|
+
m ? M : {},
|
|
92
|
+
{
|
|
93
|
+
onDoubleClick: B,
|
|
94
|
+
onDragStartCapture: U,
|
|
95
|
+
onClick: V,
|
|
96
|
+
id: g
|
|
97
|
+
},
|
|
98
|
+
// Prevent DOM focus from moving on mouse down when using virtual focus
|
|
99
|
+
l ? {
|
|
100
|
+
onMouseDown: (e) => e.preventDefault()
|
|
101
|
+
} : void 0
|
|
102
|
+
),
|
|
103
|
+
isPressed: I,
|
|
104
|
+
isSelected: t.isSelected(o),
|
|
105
|
+
isFocused: t.isFocused && t.focusedKey === o,
|
|
106
|
+
isDisabled: c,
|
|
107
|
+
allowsSelection: i,
|
|
108
|
+
hasAction: d
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
function A() {
|
|
112
|
+
let r = window.event;
|
|
113
|
+
return (r == null ? void 0 : r.key) === "Enter";
|
|
114
|
+
}
|
|
115
|
+
function O() {
|
|
116
|
+
let r = window.event;
|
|
117
|
+
return (r == null ? void 0 : r.key) === " " || (r == null ? void 0 : r.code) === "Space";
|
|
118
|
+
}
|
|
119
|
+
export {
|
|
120
|
+
se as useSelectableItem
|
|
121
|
+
};
|
|
122
|
+
//# sourceMappingURL=useSelectableItem.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSelectableItem.es.js","sources":["../../../../../node_modules/@react-aria/selection/dist/useSelectableItem.mjs"],"sourcesContent":["import {getCollectionId as $feb5ffebff200149$export$6aeb1680a0ae8741, isNonContiguousSelectionModifier as $feb5ffebff200149$export$d3e3bd3e26688c04} from \"./utils.mjs\";\nimport {focusSafely as $581M0$focusSafely, usePress as $581M0$usePress, useLongPress as $581M0$useLongPress} from \"@react-aria/interactions\";\nimport {useRouter as $581M0$useRouter, useId as $581M0$useId, isCtrlKeyPressed as $581M0$isCtrlKeyPressed, mergeProps as $581M0$mergeProps, openLink as $581M0$openLink} from \"@react-aria/utils\";\nimport {moveVirtualFocus as $581M0$moveVirtualFocus} from \"@react-aria/focus\";\nimport {useEffect as $581M0$useEffect, useRef as $581M0$useRef} from \"react\";\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 $880e95eb8b93ba9a$export$ecf600387e221c37(options) {\n let { id: id, selectionManager: manager, key: key, ref: ref, shouldSelectOnPressUp: shouldSelectOnPressUp, shouldUseVirtualFocus: shouldUseVirtualFocus, focus: focus, isDisabled: isDisabled, onAction: onAction, allowsDifferentPressOrigin: allowsDifferentPressOrigin, linkBehavior: linkBehavior = 'action' } = options;\n let router = (0, $581M0$useRouter)();\n id = (0, $581M0$useId)(id);\n let onSelect = (e)=>{\n if (e.pointerType === 'keyboard' && (0, $feb5ffebff200149$export$d3e3bd3e26688c04)(e)) manager.toggleSelection(key);\n else {\n if (manager.selectionMode === 'none') return;\n if (manager.isLink(key)) {\n if (linkBehavior === 'selection' && ref.current) {\n let itemProps = manager.getItemProps(key);\n router.open(ref.current, e, itemProps.href, itemProps.routerOptions);\n // Always set selected keys back to what they were so that select and combobox close.\n manager.setSelectedKeys(manager.selectedKeys);\n return;\n } else if (linkBehavior === 'override' || linkBehavior === 'none') return;\n }\n if (manager.selectionMode === 'single') {\n if (manager.isSelected(key) && !manager.disallowEmptySelection) manager.toggleSelection(key);\n else manager.replaceSelection(key);\n } else if (e && e.shiftKey) manager.extendSelection(key);\n else if (manager.selectionBehavior === 'toggle' || e && ((0, $581M0$isCtrlKeyPressed)(e) || e.pointerType === 'touch' || e.pointerType === 'virtual')) // if touch or virtual (VO) then we just want to toggle, otherwise it's impossible to multi select because they don't have modifier keys\n manager.toggleSelection(key);\n else manager.replaceSelection(key);\n }\n };\n // Focus the associated DOM node when this item becomes the focusedKey\n // TODO: can't make this useLayoutEffect bacause it breaks menus inside dialogs\n // However, if this is a useEffect, it runs twice and dispatches two blur events and immediately sets\n // aria-activeDescendant in useAutocomplete... I've worked around this for now\n (0, $581M0$useEffect)(()=>{\n let isFocused = key === manager.focusedKey;\n if (isFocused && manager.isFocused) {\n if (!shouldUseVirtualFocus) {\n if (focus) focus();\n else if (document.activeElement !== ref.current && ref.current) (0, $581M0$focusSafely)(ref.current);\n } else (0, $581M0$moveVirtualFocus)(ref.current);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n ref,\n key,\n manager.focusedKey,\n manager.childFocusStrategy,\n manager.isFocused,\n shouldUseVirtualFocus\n ]);\n isDisabled = isDisabled || manager.isDisabled(key);\n // Set tabIndex to 0 if the element is focused, or -1 otherwise so that only the last focused\n // item is tabbable. If using virtual focus, don't set a tabIndex at all so that VoiceOver\n // on iOS 14 doesn't try to move real DOM focus to the item anyway.\n let itemProps = {};\n if (!shouldUseVirtualFocus && !isDisabled) itemProps = {\n tabIndex: key === manager.focusedKey ? 0 : -1,\n onFocus (e) {\n if (e.target === ref.current) manager.setFocusedKey(key);\n }\n };\n else if (isDisabled) itemProps.onMouseDown = (e)=>{\n // Prevent focus going to the body when clicking on a disabled item.\n e.preventDefault();\n };\n // With checkbox selection, onAction (i.e. navigation) becomes primary, and occurs on a single click of the row.\n // Clicking the checkbox enters selection mode, after which clicking anywhere on any row toggles selection for that row.\n // With highlight selection, onAction is secondary, and occurs on double click. Single click selects the row.\n // With touch, onAction occurs on single tap, and long press enters selection mode.\n let isLinkOverride = manager.isLink(key) && linkBehavior === 'override';\n let hasLinkAction = manager.isLink(key) && linkBehavior !== 'selection' && linkBehavior !== 'none';\n let allowsSelection = !isDisabled && manager.canSelectItem(key) && !isLinkOverride;\n let allowsActions = (onAction || hasLinkAction) && !isDisabled;\n let hasPrimaryAction = allowsActions && (manager.selectionBehavior === 'replace' ? !allowsSelection : !allowsSelection || manager.isEmpty);\n let hasSecondaryAction = allowsActions && allowsSelection && manager.selectionBehavior === 'replace';\n let hasAction = hasPrimaryAction || hasSecondaryAction;\n let modality = (0, $581M0$useRef)(null);\n let longPressEnabled = hasAction && allowsSelection;\n let longPressEnabledOnPressStart = (0, $581M0$useRef)(false);\n let hadPrimaryActionOnPressStart = (0, $581M0$useRef)(false);\n let performAction = (e)=>{\n if (onAction) onAction();\n if (hasLinkAction && ref.current) {\n let itemProps = manager.getItemProps(key);\n router.open(ref.current, e, itemProps.href, itemProps.routerOptions);\n }\n };\n // By default, selection occurs on pointer down. This can be strange if selecting an\n // item causes the UI to disappear immediately (e.g. menus).\n // If shouldSelectOnPressUp is true, we use onPressUp instead of onPressStart.\n // onPress requires a pointer down event on the same element as pointer up. For menus,\n // we want to be able to have the pointer down on the trigger that opens the menu and\n // the pointer up on the menu item rather than requiring a separate press.\n // For keyboard events, selection still occurs on key down.\n let itemPressProps = {\n ref: ref\n };\n if (shouldSelectOnPressUp) {\n itemPressProps.onPressStart = (e)=>{\n modality.current = e.pointerType;\n longPressEnabledOnPressStart.current = longPressEnabled;\n if (e.pointerType === 'keyboard' && (!hasAction || $880e95eb8b93ba9a$var$isSelectionKey())) onSelect(e);\n };\n // If allowsDifferentPressOrigin and interacting with mouse, make selection happen on pressUp (e.g. open menu on press down, selection on menu item happens on press up.)\n // Otherwise, have selection happen onPress (prevents listview row selection when clicking on interactable elements in the row)\n if (!allowsDifferentPressOrigin) itemPressProps.onPress = (e)=>{\n if (hasPrimaryAction || hasSecondaryAction && e.pointerType !== 'mouse') {\n if (e.pointerType === 'keyboard' && !$880e95eb8b93ba9a$var$isActionKey()) return;\n performAction(e);\n } else if (e.pointerType !== 'keyboard' && allowsSelection) onSelect(e);\n };\n else {\n itemPressProps.onPressUp = hasPrimaryAction ? undefined : (e)=>{\n if (e.pointerType === 'mouse' && allowsSelection) onSelect(e);\n };\n itemPressProps.onPress = hasPrimaryAction ? performAction : (e)=>{\n if (e.pointerType !== 'keyboard' && e.pointerType !== 'mouse' && allowsSelection) onSelect(e);\n };\n }\n } else {\n itemPressProps.onPressStart = (e)=>{\n modality.current = e.pointerType;\n longPressEnabledOnPressStart.current = longPressEnabled;\n hadPrimaryActionOnPressStart.current = hasPrimaryAction;\n // Select on mouse down unless there is a primary action which will occur on mouse up.\n // For keyboard, select on key down. If there is an action, the Space key selects on key down,\n // and the Enter key performs onAction on key up.\n if (allowsSelection && (e.pointerType === 'mouse' && !hasPrimaryAction || e.pointerType === 'keyboard' && (!allowsActions || $880e95eb8b93ba9a$var$isSelectionKey()))) onSelect(e);\n };\n itemPressProps.onPress = (e)=>{\n // Selection occurs on touch up. Primary actions always occur on pointer up.\n // Both primary and secondary actions occur on Enter key up. The only exception\n // is secondary actions, which occur on double click with a mouse.\n if (e.pointerType === 'touch' || e.pointerType === 'pen' || e.pointerType === 'virtual' || e.pointerType === 'keyboard' && hasAction && $880e95eb8b93ba9a$var$isActionKey() || e.pointerType === 'mouse' && hadPrimaryActionOnPressStart.current) {\n if (hasAction) performAction(e);\n else if (allowsSelection) onSelect(e);\n }\n };\n }\n itemProps['data-collection'] = (0, $feb5ffebff200149$export$6aeb1680a0ae8741)(manager.collection);\n itemProps['data-key'] = key;\n itemPressProps.preventFocusOnPress = shouldUseVirtualFocus;\n // When using virtual focus, make sure the focused key gets updated on press.\n if (shouldUseVirtualFocus) itemPressProps = (0, $581M0$mergeProps)(itemPressProps, {\n onPressStart (e) {\n if (e.pointerType !== 'touch') {\n manager.setFocused(true);\n manager.setFocusedKey(key);\n }\n },\n onPress (e) {\n if (e.pointerType === 'touch') {\n manager.setFocused(true);\n manager.setFocusedKey(key);\n }\n }\n });\n let { pressProps: pressProps, isPressed: isPressed } = (0, $581M0$usePress)(itemPressProps);\n // Double clicking with a mouse with selectionBehavior = 'replace' performs an action.\n let onDoubleClick = hasSecondaryAction ? (e)=>{\n if (modality.current === 'mouse') {\n e.stopPropagation();\n e.preventDefault();\n performAction(e);\n }\n } : undefined;\n // Long pressing an item with touch when selectionBehavior = 'replace' switches the selection behavior\n // to 'toggle'. This changes the single tap behavior from performing an action (i.e. navigating) to\n // selecting, and may toggle the appearance of a UI affordance like checkboxes on each item.\n let { longPressProps: longPressProps } = (0, $581M0$useLongPress)({\n isDisabled: !longPressEnabled,\n onLongPress (e) {\n if (e.pointerType === 'touch') {\n onSelect(e);\n manager.setSelectionBehavior('toggle');\n }\n }\n });\n // Prevent native drag and drop on long press if we also select on long press.\n // Once the user is in selection mode, they can long press again to drag.\n // Use a capturing listener to ensure this runs before useDrag, regardless of\n // the order the props get merged.\n let onDragStartCapture = (e)=>{\n if (modality.current === 'touch' && longPressEnabledOnPressStart.current) e.preventDefault();\n };\n // Prevent default on link clicks so that we control exactly\n // when they open (to match selection behavior).\n let onClick = manager.isLink(key) ? (e)=>{\n if (!(0, $581M0$openLink).isOpening) e.preventDefault();\n } : undefined;\n return {\n itemProps: (0, $581M0$mergeProps)(itemProps, allowsSelection || hasPrimaryAction || shouldUseVirtualFocus ? pressProps : {}, longPressEnabled ? longPressProps : {}, {\n onDoubleClick: onDoubleClick,\n onDragStartCapture: onDragStartCapture,\n onClick: onClick,\n id: id\n }, // Prevent DOM focus from moving on mouse down when using virtual focus\n shouldUseVirtualFocus ? {\n onMouseDown: (e)=>e.preventDefault()\n } : undefined),\n isPressed: isPressed,\n isSelected: manager.isSelected(key),\n isFocused: manager.isFocused && manager.focusedKey === key,\n isDisabled: isDisabled,\n allowsSelection: allowsSelection,\n hasAction: hasAction\n };\n}\nfunction $880e95eb8b93ba9a$var$isActionKey() {\n let event = window.event;\n return (event === null || event === void 0 ? void 0 : event.key) === 'Enter';\n}\nfunction $880e95eb8b93ba9a$var$isSelectionKey() {\n let event = window.event;\n return (event === null || event === void 0 ? void 0 : event.key) === ' ' || (event === null || event === void 0 ? void 0 : event.code) === 'Space';\n}\n\n\nexport {$880e95eb8b93ba9a$export$ecf600387e221c37 as useSelectableItem};\n//# sourceMappingURL=useSelectableItem.module.js.map\n"],"names":["$880e95eb8b93ba9a$export$ecf600387e221c37","options","id","manager","key","ref","shouldSelectOnPressUp","shouldUseVirtualFocus","focus","isDisabled","onAction","allowsDifferentPressOrigin","linkBehavior","router","$581M0$useRouter","$581M0$useId","onSelect","$feb5ffebff200149$export$d3e3bd3e26688c04","itemProps","$581M0$isCtrlKeyPressed","$581M0$useEffect","$581M0$moveVirtualFocus","$581M0$focusSafely","isLinkOverride","hasLinkAction","allowsSelection","allowsActions","hasPrimaryAction","hasSecondaryAction","hasAction","modality","$581M0$useRef","longPressEnabled","longPressEnabledOnPressStart","hadPrimaryActionOnPressStart","performAction","itemPressProps","$880e95eb8b93ba9a$var$isSelectionKey","$880e95eb8b93ba9a$var$isActionKey","$feb5ffebff200149$export$6aeb1680a0ae8741","$581M0$mergeProps","pressProps","isPressed","$581M0$usePress","onDoubleClick","longPressProps","$581M0$useLongPress","onDragStartCapture","onClick","$581M0$openLink","event"],"mappings":";;;;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MAAI,EAAE,eAAgB;AAAA,MACvC,IAAG;AAAA,IAAS;AAAA,IACb,WAAWmC;AAAA,IACX,YAAYvC,EAAQ,WAAWC,CAAG;AAAA,IAClC,WAAWD,EAAQ,aAAaA,EAAQ,eAAeC;AAAA,IACvD,YAAYK;AAAA,IACZ,iBAAiBgB;AAAA,IACjB,WAAWI;AAAA,EACnB;AACA;AACA,SAASS,IAAoC;AACzC,MAAIY,IAAQ,OAAO;AACnB,UAAQA,KAAU,OAA2B,SAASA,EAAM,SAAS;AACzE;AACA,SAASb,IAAuC;AAC5C,MAAIa,IAAQ,OAAO;AACnB,UAAQA,KAAU,OAA2B,SAASA,EAAM,SAAS,QAAQA,KAAU,OAA2B,SAASA,EAAM,UAAU;AAC/I;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./useSelectableCollection.cjs.js"),u=require("./ListKeyboardDelegate.cjs.js"),g=require("../../i18n/dist/useCollator.cjs.js"),y=require("react");function D(l){let{selectionManager:t,collection:o,disabledKeys:a,ref:e,keyboardDelegate:r,layoutDelegate:s}=l,i=g.useCollator({usage:"search",sensitivity:"base"}),c=t.disabledBehavior,n=y.useMemo(()=>r||new u.ListKeyboardDelegate({collection:o,disabledKeys:a,disabledBehavior:c,ref:e,collator:i,layoutDelegate:s}),[r,s,o,a,e,i,c]),{collectionProps:d}=b.useSelectableCollection({...l,ref:e,selectionManager:t,keyboardDelegate:n});return{listProps:d}}exports.useSelectableList=D;
|
|
2
|
+
//# sourceMappingURL=useSelectableList.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSelectableList.cjs.js","sources":["../../../../../node_modules/@react-aria/selection/dist/useSelectableList.mjs"],"sourcesContent":["import {useSelectableCollection as $ae20dd8cbca75726$export$d6daf82dcd84e87c} from \"./useSelectableCollection.mjs\";\nimport {ListKeyboardDelegate as $2a25aae57d74318e$export$a05409b8bb224a5a} from \"./ListKeyboardDelegate.mjs\";\nimport {useCollator as $1aJk5$useCollator} from \"@react-aria/i18n\";\nimport {useMemo as $1aJk5$useMemo} from \"react\";\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\nfunction $982254629710d113$export$b95089534ab7c1fd(props) {\n let { selectionManager: selectionManager, collection: collection, disabledKeys: disabledKeys, ref: ref, keyboardDelegate: keyboardDelegate, layoutDelegate: layoutDelegate } = props;\n // By default, a KeyboardDelegate is provided which uses the DOM to query layout information (e.g. for page up/page down).\n // When virtualized, the layout object will be passed in as a prop and override this.\n let collator = (0, $1aJk5$useCollator)({\n usage: 'search',\n sensitivity: 'base'\n });\n let disabledBehavior = selectionManager.disabledBehavior;\n let delegate = (0, $1aJk5$useMemo)(()=>keyboardDelegate || new (0, $2a25aae57d74318e$export$a05409b8bb224a5a)({\n collection: collection,\n disabledKeys: disabledKeys,\n disabledBehavior: disabledBehavior,\n ref: ref,\n collator: collator,\n layoutDelegate: layoutDelegate\n }), [\n keyboardDelegate,\n layoutDelegate,\n collection,\n disabledKeys,\n ref,\n collator,\n disabledBehavior\n ]);\n let { collectionProps: collectionProps } = (0, $ae20dd8cbca75726$export$d6daf82dcd84e87c)({\n ...props,\n ref: ref,\n selectionManager: selectionManager,\n keyboardDelegate: delegate\n });\n return {\n listProps: collectionProps\n };\n}\n\n\nexport {$982254629710d113$export$b95089534ab7c1fd as useSelectableList};\n//# sourceMappingURL=useSelectableList.module.js.map\n"],"names":["$982254629710d113$export$b95089534ab7c1fd","props","selectionManager","collection","disabledKeys","ref","keyboardDelegate","layoutDelegate","collator","$1aJk5$useCollator","disabledBehavior","delegate","$1aJk5$useMemo","$2a25aae57d74318e$export$a05409b8bb224a5a","collectionProps","$ae20dd8cbca75726$export$d6daf82dcd84e87c"],"mappings":"kPAmBA,SAASA,EAA0CC,EAAO,CACtD,GAAI,CAAE,iBAAkBC,EAAkB,WAAYC,EAAY,aAAcC,EAAc,IAAKC,EAAK,iBAAkBC,EAAkB,eAAgBC,CAAc,EAAKN,EAG3KO,EAAeC,cAAoB,CACnC,MAAO,SACP,YAAa,MACrB,CAAK,EACGC,EAAmBR,EAAiB,iBACpCS,EAAeC,EAAAA,QAAgB,IAAIN,GAAoB,IAAQO,EAAAA,qBAA2C,CACtG,WAAYV,EACZ,aAAcC,EACd,iBAAkBM,EAClB,IAAKL,EACL,SAAUG,EACV,eAAgBD,CAC5B,CAAS,EAAG,CACJD,EACAC,EACAJ,EACAC,EACAC,EACAG,EACAE,CACR,CAAK,EACG,CAAE,gBAAiBI,CAAiB,EAAOC,EAAAA,wBAA2C,CACtF,GAAGd,EACH,IAAKI,EACL,iBAAkBH,EAClB,iBAAkBS,CAC1B,CAAK,EACD,MAAO,CACH,UAAWG,CACnB,CACA","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { useSelectableCollection as n } from "./useSelectableCollection.es.js";
|
|
2
|
+
import { ListKeyboardDelegate as f } from "./ListKeyboardDelegate.es.js";
|
|
3
|
+
import { useCollator as g } from "../../i18n/dist/useCollator.es.js";
|
|
4
|
+
import { useMemo as $ } from "react";
|
|
5
|
+
function D(a) {
|
|
6
|
+
let { selectionManager: l, collection: o, disabledKeys: t, ref: e, keyboardDelegate: r, layoutDelegate: s } = a, i = g({
|
|
7
|
+
usage: "search",
|
|
8
|
+
sensitivity: "base"
|
|
9
|
+
}), c = l.disabledBehavior, d = $(() => r || new f({
|
|
10
|
+
collection: o,
|
|
11
|
+
disabledKeys: t,
|
|
12
|
+
disabledBehavior: c,
|
|
13
|
+
ref: e,
|
|
14
|
+
collator: i,
|
|
15
|
+
layoutDelegate: s
|
|
16
|
+
}), [
|
|
17
|
+
r,
|
|
18
|
+
s,
|
|
19
|
+
o,
|
|
20
|
+
t,
|
|
21
|
+
e,
|
|
22
|
+
i,
|
|
23
|
+
c
|
|
24
|
+
]), { collectionProps: b } = n({
|
|
25
|
+
...a,
|
|
26
|
+
ref: e,
|
|
27
|
+
selectionManager: l,
|
|
28
|
+
keyboardDelegate: d
|
|
29
|
+
});
|
|
30
|
+
return {
|
|
31
|
+
listProps: b
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
D as useSelectableList
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=useSelectableList.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSelectableList.es.js","sources":["../../../../../node_modules/@react-aria/selection/dist/useSelectableList.mjs"],"sourcesContent":["import {useSelectableCollection as $ae20dd8cbca75726$export$d6daf82dcd84e87c} from \"./useSelectableCollection.mjs\";\nimport {ListKeyboardDelegate as $2a25aae57d74318e$export$a05409b8bb224a5a} from \"./ListKeyboardDelegate.mjs\";\nimport {useCollator as $1aJk5$useCollator} from \"@react-aria/i18n\";\nimport {useMemo as $1aJk5$useMemo} from \"react\";\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\nfunction $982254629710d113$export$b95089534ab7c1fd(props) {\n let { selectionManager: selectionManager, collection: collection, disabledKeys: disabledKeys, ref: ref, keyboardDelegate: keyboardDelegate, layoutDelegate: layoutDelegate } = props;\n // By default, a KeyboardDelegate is provided which uses the DOM to query layout information (e.g. for page up/page down).\n // When virtualized, the layout object will be passed in as a prop and override this.\n let collator = (0, $1aJk5$useCollator)({\n usage: 'search',\n sensitivity: 'base'\n });\n let disabledBehavior = selectionManager.disabledBehavior;\n let delegate = (0, $1aJk5$useMemo)(()=>keyboardDelegate || new (0, $2a25aae57d74318e$export$a05409b8bb224a5a)({\n collection: collection,\n disabledKeys: disabledKeys,\n disabledBehavior: disabledBehavior,\n ref: ref,\n collator: collator,\n layoutDelegate: layoutDelegate\n }), [\n keyboardDelegate,\n layoutDelegate,\n collection,\n disabledKeys,\n ref,\n collator,\n disabledBehavior\n ]);\n let { collectionProps: collectionProps } = (0, $ae20dd8cbca75726$export$d6daf82dcd84e87c)({\n ...props,\n ref: ref,\n selectionManager: selectionManager,\n keyboardDelegate: delegate\n });\n return {\n listProps: collectionProps\n };\n}\n\n\nexport {$982254629710d113$export$b95089534ab7c1fd as useSelectableList};\n//# sourceMappingURL=useSelectableList.module.js.map\n"],"names":["$982254629710d113$export$b95089534ab7c1fd","props","selectionManager","collection","disabledKeys","ref","keyboardDelegate","layoutDelegate","collator","$1aJk5$useCollator","disabledBehavior","delegate","$1aJk5$useMemo","$2a25aae57d74318e$export$a05409b8bb224a5a","collectionProps","$ae20dd8cbca75726$export$d6daf82dcd84e87c"],"mappings":";;;;AAmBA,SAASA,EAA0CC,GAAO;AACtD,MAAI,EAAE,kBAAkBC,GAAkB,YAAYC,GAAY,cAAcC,GAAc,KAAKC,GAAK,kBAAkBC,GAAkB,gBAAgBC,EAAc,IAAKN,GAG3KO,IAAeC,EAAoB;AAAA,IACnC,OAAO;AAAA,IACP,aAAa;AAAA,EACrB,CAAK,GACGC,IAAmBR,EAAiB,kBACpCS,IAAeC,EAAgB,MAAIN,KAAoB,IAAQO,EAA2C;AAAA,IACtG,YAAYV;AAAA,IACZ,cAAcC;AAAA,IACd,kBAAkBM;AAAA,IAClB,KAAKL;AAAA,IACL,UAAUG;AAAA,IACV,gBAAgBD;AAAA,EAC5B,CAAS,GAAG;AAAA,IACJD;AAAA,IACAC;AAAA,IACAJ;AAAA,IACAC;AAAA,IACAC;AAAA,IACAG;AAAA,IACAE;AAAA,EACR,CAAK,GACG,EAAE,iBAAiBI,EAAiB,IAAOC,EAA2C;AAAA,IACtF,GAAGd;AAAA,IACH,KAAKI;AAAA,IACL,kBAAkBH;AAAA,IAClB,kBAAkBS;AAAA,EAC1B,CAAK;AACD,SAAO;AAAA,IACH,WAAWG;AAAA,EACnB;AACA;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),f=1e3;function s(r){let{keyboardDelegate:o,selectionManager:c,onTypeSelect:i}=r,t=l.useRef({search:"",timeout:void 0}).current,u=e=>{let a=y(e.key);if(!(!a||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target))){if(a===" "&&t.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),t.search+=a,o.getKeyForSearch!=null){let n=o.getKeyForSearch(t.search,c.focusedKey);n==null&&(n=o.getKeyForSearch(t.search)),n!=null&&(c.setFocusedKey(n),i&&i(n))}clearTimeout(t.timeout),t.timeout=setTimeout(()=>{t.search=""},f)}};return{typeSelectProps:{onKeyDownCapture:o.getKeyForSearch?u:void 0}}}function y(r){return r.length===1||!/^[A-Z]/i.test(r)?r:""}exports.useTypeSelect=s;
|
|
2
|
+
//# sourceMappingURL=useTypeSelect.cjs.js.map
|