@protonradio/proton-ui 0.11.10-beta.3 → 0.11.10
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/README.md +148 -148
- package/dist/{constants/breakpoint.es.js → breakpoint-9y1_8U_b.mjs} +2 -2
- package/dist/breakpoint-9y1_8U_b.mjs.map +1 -0
- package/dist/breakpoint-DtqbboOa.js +2 -0
- package/dist/breakpoint-DtqbboOa.js.map +1 -0
- package/dist/color2k-CpDB_dpw.mjs +168 -0
- package/dist/color2k-CpDB_dpw.mjs.map +1 -0
- package/dist/color2k-DCgwXUem.js +2 -0
- package/dist/color2k-DCgwXUem.js.map +1 -0
- package/dist/{design/colors.es.js → colors-CWaj9dFz.mjs} +7 -7
- package/dist/colors-CWaj9dFz.mjs.map +1 -0
- package/dist/colors-CebzFjpe.js +2 -0
- package/dist/colors-CebzFjpe.js.map +1 -0
- package/dist/{design/darkTheme/colors.es.js → colors-Ceyo4oCJ.mjs} +13 -13
- package/dist/colors-Ceyo4oCJ.mjs.map +1 -0
- package/dist/colors-CmSJBHaf.js +2 -0
- package/dist/colors-CmSJBHaf.js.map +1 -0
- package/dist/colors-DL1dYffC.js +2 -0
- package/dist/colors-DL1dYffC.js.map +1 -0
- package/dist/{design/lightTheme/colors.es.js → colors-DMkDnu4U.mjs} +11 -11
- package/dist/colors-DMkDnu4U.mjs.map +1 -0
- package/dist/constants.cjs.js +1 -1
- package/dist/constants.cjs.js.map +1 -1
- package/dist/constants.es.js +26 -3
- package/dist/constants.es.js.map +1 -1
- package/dist/dark.cjs.js +1 -1
- package/dist/dark.cjs.js.map +1 -1
- package/dist/dark.es.js +55 -8
- package/dist/dark.es.js.map +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.cjs.js.map +1 -1
- package/dist/hooks.es.js +37 -8
- package/dist/hooks.es.js.map +1 -1
- package/dist/icons.svg +10 -10
- package/dist/image-CUSfY1_T.js +2 -0
- package/dist/image-CUSfY1_T.js.map +1 -0
- package/dist/image-DFyN0Kd9.mjs +207 -0
- package/dist/image-DFyN0Kd9.mjs.map +1 -0
- package/dist/index.cjs.js +36 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +71 -81
- package/dist/index.es.js +5421 -61
- package/dist/index.es.js.map +1 -1
- package/dist/light.cjs.js +1 -1
- package/dist/light.cjs.js.map +1 -1
- package/dist/light.es.js +55 -8
- package/dist/light.es.js.map +1 -1
- package/dist/navigation-BB0MBIiR.js +2 -0
- package/dist/navigation-BB0MBIiR.js.map +1 -0
- package/dist/navigation-Bj7Pex9j.mjs +43 -0
- package/dist/navigation-Bj7Pex9j.mjs.map +1 -0
- package/dist/style.css +1 -1
- package/dist/theme.cjs.js +1 -1
- package/dist/theme.cjs.js.map +1 -1
- package/dist/theme.es.js +15 -9
- package/dist/theme.es.js.map +1 -1
- package/dist/useBreakpoint-CjRyGKN-.mjs +53 -0
- package/dist/useBreakpoint-CjRyGKN-.mjs.map +1 -0
- package/dist/useBreakpoint-DA-JqOu3.js +2 -0
- package/dist/useBreakpoint-DA-JqOu3.js.map +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +15 -19
- package/dist/utils.es.js.map +1 -1
- package/package.json +140 -140
- package/dist/_virtual/index.cjs.js +0 -2
- package/dist/_virtual/index.cjs.js.map +0 -1
- package/dist/_virtual/index.es.js +0 -5
- package/dist/_virtual/index.es.js.map +0 -1
- package/dist/_virtual/jsx-runtime.cjs.js +0 -2
- package/dist/_virtual/jsx-runtime.cjs.js.map +0 -1
- package/dist/_virtual/jsx-runtime.es.js +0 -5
- package/dist/_virtual/jsx-runtime.es.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.development.cjs.js +0 -2
- package/dist/_virtual/react-jsx-runtime.development.cjs.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.development.es.js +0 -5
- package/dist/_virtual/react-jsx-runtime.development.es.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.production.min.cjs.js +0 -2
- package/dist/_virtual/react-jsx-runtime.production.min.cjs.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.production.min.es.js +0 -5
- package/dist/_virtual/react-jsx-runtime.production.min.es.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.development.cjs.js +0 -2
- package/dist/_virtual/use-sync-external-store-shim.development.cjs.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.development.es.js +0 -5
- package/dist/_virtual/use-sync-external-store-shim.development.es.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.production.cjs.js +0 -2
- package/dist/_virtual/use-sync-external-store-shim.production.cjs.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.production.es.js +0 -5
- package/dist/_virtual/use-sync-external-store-shim.production.es.js.map +0 -1
- package/dist/assets/svg/icons.svg.cjs.js +0 -2
- package/dist/assets/svg/icons.svg.cjs.js.map +0 -1
- package/dist/assets/svg/icons.svg.es.js +0 -5
- package/dist/assets/svg/icons.svg.es.js.map +0 -1
- package/dist/components/ActionMenu/ActionMenu.cjs.js +0 -2
- package/dist/components/ActionMenu/ActionMenu.cjs.js.map +0 -1
- package/dist/components/ActionMenu/ActionMenu.es.js +0 -210
- package/dist/components/ActionMenu/ActionMenu.es.js.map +0 -1
- package/dist/components/Badge/Badge.cjs.js +0 -2
- package/dist/components/Badge/Badge.cjs.js.map +0 -1
- package/dist/components/Badge/Badge.es.js +0 -25
- package/dist/components/Badge/Badge.es.js.map +0 -1
- package/dist/components/Banner/Banner.cjs.js +0 -2
- package/dist/components/Banner/Banner.cjs.js.map +0 -1
- package/dist/components/Banner/Banner.es.js +0 -131
- package/dist/components/Banner/Banner.es.js.map +0 -1
- package/dist/components/Button/Button.cjs.js +0 -2
- package/dist/components/Button/Button.cjs.js.map +0 -1
- package/dist/components/Button/Button.es.js +0 -99
- package/dist/components/Button/Button.es.js.map +0 -1
- package/dist/components/ButtonGroup/ButtonGroup.cjs.js +0 -2
- package/dist/components/ButtonGroup/ButtonGroup.cjs.js.map +0 -1
- package/dist/components/ButtonGroup/ButtonGroup.es.js +0 -51
- package/dist/components/ButtonGroup/ButtonGroup.es.js.map +0 -1
- package/dist/components/ButtonWithSelect/ButtonWithSelect.cjs.js +0 -2
- package/dist/components/ButtonWithSelect/ButtonWithSelect.cjs.js.map +0 -1
- package/dist/components/ButtonWithSelect/ButtonWithSelect.es.js +0 -81
- package/dist/components/ButtonWithSelect/ButtonWithSelect.es.js.map +0 -1
- package/dist/components/DataTable/DataTable.cjs.js +0 -2
- package/dist/components/DataTable/DataTable.cjs.js.map +0 -1
- package/dist/components/DataTable/DataTable.es.js +0 -137
- package/dist/components/DataTable/DataTable.es.js.map +0 -1
- package/dist/components/Dialog/Dialog.cjs.js +0 -2
- package/dist/components/Dialog/Dialog.cjs.js.map +0 -1
- package/dist/components/Dialog/Dialog.es.js +0 -15
- package/dist/components/Dialog/Dialog.es.js.map +0 -1
- package/dist/components/Elevation/Elevation.cjs.js +0 -2
- package/dist/components/Elevation/Elevation.cjs.js.map +0 -1
- package/dist/components/Elevation/Elevation.es.js +0 -33
- package/dist/components/Elevation/Elevation.es.js.map +0 -1
- package/dist/components/Icon/Icon.cjs.js +0 -2
- package/dist/components/Icon/Icon.cjs.js.map +0 -1
- package/dist/components/Icon/Icon.es.js +0 -42
- package/dist/components/Icon/Icon.es.js.map +0 -1
- package/dist/components/ImageBackground/ImageBackground.cjs.js +0 -2
- package/dist/components/ImageBackground/ImageBackground.cjs.js.map +0 -1
- package/dist/components/ImageBackground/ImageBackground.es.js +0 -55
- package/dist/components/ImageBackground/ImageBackground.es.js.map +0 -1
- package/dist/components/Input/BaseInput/Input.cjs.js +0 -2
- package/dist/components/Input/BaseInput/Input.cjs.js.map +0 -1
- package/dist/components/Input/BaseInput/Input.es.js +0 -182
- package/dist/components/Input/BaseInput/Input.es.js.map +0 -1
- package/dist/components/Input/CopyInput/CopyInput.cjs.js +0 -2
- package/dist/components/Input/CopyInput/CopyInput.cjs.js.map +0 -1
- package/dist/components/Input/CopyInput/CopyInput.es.js +0 -83
- package/dist/components/Input/CopyInput/CopyInput.es.js.map +0 -1
- package/dist/components/Input/SearchInput/SearchInput.cjs.js +0 -2
- package/dist/components/Input/SearchInput/SearchInput.cjs.js.map +0 -1
- package/dist/components/Input/SearchInput/SearchInput.es.js +0 -118
- package/dist/components/Input/SearchInput/SearchInput.es.js.map +0 -1
- package/dist/components/ListBox/ListBox.cjs.js +0 -2
- package/dist/components/ListBox/ListBox.cjs.js.map +0 -1
- package/dist/components/ListBox/ListBox.es.js +0 -25
- package/dist/components/ListBox/ListBox.es.js.map +0 -1
- package/dist/components/Menu/MenuTrigger.cjs.js +0 -2
- package/dist/components/Menu/MenuTrigger.cjs.js.map +0 -1
- package/dist/components/Menu/MenuTrigger.es.js +0 -97
- package/dist/components/Menu/MenuTrigger.es.js.map +0 -1
- package/dist/components/Menu/PopoverMenu.cjs.js +0 -2
- package/dist/components/Menu/PopoverMenu.cjs.js.map +0 -1
- package/dist/components/Menu/PopoverMenu.es.js +0 -116
- package/dist/components/Menu/PopoverMenu.es.js.map +0 -1
- package/dist/components/Modal/Modal.cjs.js +0 -2
- package/dist/components/Modal/Modal.cjs.js.map +0 -1
- package/dist/components/Modal/Modal.es.js +0 -122
- package/dist/components/Modal/Modal.es.js.map +0 -1
- package/dist/components/Popover/Popover.cjs.js +0 -2
- package/dist/components/Popover/Popover.cjs.js.map +0 -1
- package/dist/components/Popover/Popover.es.js +0 -74
- package/dist/components/Popover/Popover.es.js.map +0 -1
- package/dist/components/ScreenOverlay/ScreenOverlay.cjs.js +0 -2
- package/dist/components/ScreenOverlay/ScreenOverlay.cjs.js.map +0 -1
- package/dist/components/ScreenOverlay/ScreenOverlay.es.js +0 -44
- package/dist/components/ScreenOverlay/ScreenOverlay.es.js.map +0 -1
- package/dist/components/Select/Select.cjs.js +0 -2
- package/dist/components/Select/Select.cjs.js.map +0 -1
- package/dist/components/Select/Select.es.js +0 -173
- package/dist/components/Select/Select.es.js.map +0 -1
- package/dist/components/Switch/Switch.cjs.js +0 -2
- package/dist/components/Switch/Switch.cjs.js.map +0 -1
- package/dist/components/Switch/Switch.es.js +0 -40
- package/dist/components/Switch/Switch.es.js.map +0 -1
- package/dist/components/Table/Collection/CompoundComponents.cjs.js +0 -2
- package/dist/components/Table/Collection/CompoundComponents.cjs.js.map +0 -1
- package/dist/components/Table/Collection/CompoundComponents.es.js +0 -9
- package/dist/components/Table/Collection/CompoundComponents.es.js.map +0 -1
- package/dist/components/Table/Collection/collectionParser.cjs.js +0 -2
- package/dist/components/Table/Collection/collectionParser.cjs.js.map +0 -1
- package/dist/components/Table/Collection/collectionParser.es.js +0 -54
- package/dist/components/Table/Collection/collectionParser.es.js.map +0 -1
- package/dist/components/Table/Collection/useTableCollection.cjs.js +0 -2
- package/dist/components/Table/Collection/useTableCollection.cjs.js.map +0 -1
- package/dist/components/Table/Collection/useTableCollection.es.js +0 -59
- package/dist/components/Table/Collection/useTableCollection.es.js.map +0 -1
- package/dist/components/Table/Table.cjs.js +0 -2
- package/dist/components/Table/Table.cjs.js.map +0 -1
- package/dist/components/Table/Table.es.js +0 -89
- package/dist/components/Table/Table.es.js.map +0 -1
- package/dist/components/Text/TextEllipsis/TextEllipsis.cjs.js +0 -2
- package/dist/components/Text/TextEllipsis/TextEllipsis.cjs.js.map +0 -1
- package/dist/components/Text/TextEllipsis/TextEllipsis.es.js +0 -30
- package/dist/components/Text/TextEllipsis/TextEllipsis.es.js.map +0 -1
- package/dist/components/Text/TextEmphasis/TextEmphasis.cjs.js +0 -2
- package/dist/components/Text/TextEmphasis/TextEmphasis.cjs.js.map +0 -1
- package/dist/components/Text/TextEmphasis/TextEmphasis.es.js +0 -54
- package/dist/components/Text/TextEmphasis/TextEmphasis.es.js.map +0 -1
- package/dist/components/ThemeProvider.cjs.js +0 -2
- package/dist/components/ThemeProvider.cjs.js.map +0 -1
- package/dist/components/ThemeProvider.es.js +0 -42
- package/dist/components/ThemeProvider.es.js.map +0 -1
- package/dist/components/Tombstone/Tombstone.cjs.js +0 -2
- package/dist/components/Tombstone/Tombstone.cjs.js.map +0 -1
- package/dist/components/Tombstone/Tombstone.es.js +0 -35
- package/dist/components/Tombstone/Tombstone.es.js.map +0 -1
- package/dist/components/Tooltip/Tooltip.cjs.js +0 -2
- package/dist/components/Tooltip/Tooltip.cjs.js.map +0 -1
- package/dist/components/Tooltip/Tooltip.es.js +0 -78
- package/dist/components/Tooltip/Tooltip.es.js.map +0 -1
- package/dist/components/Waveform/Waveform.cjs.js +0 -2
- package/dist/components/Waveform/Waveform.cjs.js.map +0 -1
- package/dist/components/Waveform/Waveform.es.js +0 -163
- package/dist/components/Waveform/Waveform.es.js.map +0 -1
- package/dist/components/Waveform/WaveformBar.cjs.js +0 -2
- package/dist/components/Waveform/WaveformBar.cjs.js.map +0 -1
- package/dist/components/Waveform/WaveformBar.es.js +0 -74
- package/dist/components/Waveform/WaveformBar.es.js.map +0 -1
- package/dist/constants/breakpoint.cjs.js +0 -2
- package/dist/constants/breakpoint.cjs.js.map +0 -1
- package/dist/constants/breakpoint.es.js.map +0 -1
- package/dist/constants/placement.cjs.js +0 -2
- package/dist/constants/placement.cjs.js.map +0 -1
- package/dist/constants/placement.es.js +0 -28
- package/dist/constants/placement.es.js.map +0 -1
- package/dist/design/colors.cjs.js +0 -2
- package/dist/design/colors.cjs.js.map +0 -1
- package/dist/design/colors.es.js.map +0 -1
- package/dist/design/darkTheme/colors.cjs.js +0 -2
- package/dist/design/darkTheme/colors.cjs.js.map +0 -1
- package/dist/design/darkTheme/colors.es.js.map +0 -1
- package/dist/design/darkTheme/stylesheet.cjs.js +0 -2
- package/dist/design/darkTheme/stylesheet.cjs.js.map +0 -1
- package/dist/design/darkTheme/stylesheet.es.js +0 -52
- package/dist/design/darkTheme/stylesheet.es.js.map +0 -1
- package/dist/design/generateStylesheet.cjs.js +0 -2
- package/dist/design/generateStylesheet.cjs.js.map +0 -1
- package/dist/design/generateStylesheet.es.js +0 -26
- package/dist/design/generateStylesheet.es.js.map +0 -1
- package/dist/design/lightTheme/colors.cjs.js +0 -2
- package/dist/design/lightTheme/colors.cjs.js.map +0 -1
- package/dist/design/lightTheme/colors.es.js.map +0 -1
- package/dist/design/lightTheme/stylesheet.cjs.js +0 -2
- package/dist/design/lightTheme/stylesheet.cjs.js.map +0 -1
- package/dist/design/lightTheme/stylesheet.es.js +0 -52
- package/dist/design/lightTheme/stylesheet.es.js.map +0 -1
- package/dist/design/theme.cjs.js +0 -2
- package/dist/design/theme.cjs.js.map +0 -1
- package/dist/design/theme.es.js +0 -12
- package/dist/design/theme.es.js.map +0 -1
- package/dist/hooks/useBreakpoint.cjs.js +0 -2
- package/dist/hooks/useBreakpoint.cjs.js.map +0 -1
- package/dist/hooks/useBreakpoint.es.js +0 -17
- package/dist/hooks/useBreakpoint.es.js.map +0 -1
- package/dist/hooks/useIsClosing.cjs.js +0 -2
- package/dist/hooks/useIsClosing.cjs.js.map +0 -1
- package/dist/hooks/useIsClosing.es.js +0 -30
- package/dist/hooks/useIsClosing.es.js.map +0 -1
- package/dist/hooks/useLockBodyScroll.cjs.js +0 -2
- package/dist/hooks/useLockBodyScroll.cjs.js.map +0 -1
- package/dist/hooks/useLockBodyScroll.es.js +0 -14
- package/dist/hooks/useLockBodyScroll.es.js.map +0 -1
- package/dist/hooks/usePalette.cjs.js +0 -2
- package/dist/hooks/usePalette.cjs.js.map +0 -1
- package/dist/hooks/usePalette.es.js +0 -37
- package/dist/hooks/usePalette.es.js.map +0 -1
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringDictionary.cjs.js +0 -2
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringDictionary.cjs.js.map +0 -1
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringDictionary.es.js +0 -48
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringDictionary.es.js.map +0 -1
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringFormatter.cjs.js +0 -2
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringFormatter.cjs.js.map +0 -1
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringFormatter.es.js +0 -33
- package/dist/node_modules/@internationalized/string/dist/LocalizedStringFormatter.es.js.map +0 -1
- package/dist/node_modules/@react-aria/button/dist/useButton.cjs.js +0 -2
- package/dist/node_modules/@react-aria/button/dist/useButton.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/button/dist/useButton.es.js +0 -55
- package/dist/node_modules/@react-aria/button/dist/useButton.es.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/BaseCollection.cjs.js +0 -2
- package/dist/node_modules/@react-aria/collections/dist/BaseCollection.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/BaseCollection.es.js +0 -135
- package/dist/node_modules/@react-aria/collections/dist/BaseCollection.es.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/CollectionBuilder.cjs.js +0 -2
- package/dist/node_modules/@react-aria/collections/dist/CollectionBuilder.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/CollectionBuilder.es.js +0 -145
- package/dist/node_modules/@react-aria/collections/dist/CollectionBuilder.es.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/Document.cjs.js +0 -2
- package/dist/node_modules/@react-aria/collections/dist/Document.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/Document.es.js +0 -220
- package/dist/node_modules/@react-aria/collections/dist/Document.es.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/Hidden.cjs.js +0 -2
- package/dist/node_modules/@react-aria/collections/dist/Hidden.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/Hidden.es.js +0 -36
- package/dist/node_modules/@react-aria/collections/dist/Hidden.es.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/useCachedChildren.cjs.js +0 -2
- package/dist/node_modules/@react-aria/collections/dist/useCachedChildren.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/collections/dist/useCachedChildren.es.js +0 -37
- package/dist/node_modules/@react-aria/collections/dist/useCachedChildren.es.js.map +0 -1
- package/dist/node_modules/@react-aria/dialog/dist/useDialog.cjs.js +0 -2
- package/dist/node_modules/@react-aria/dialog/dist/useDialog.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/dialog/dist/useDialog.es.js +0 -44
- package/dist/node_modules/@react-aria/dialog/dist/useDialog.es.js.map +0 -1
- package/dist/node_modules/@react-aria/focus/dist/FocusScope.cjs.js +0 -2
- package/dist/node_modules/@react-aria/focus/dist/FocusScope.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/focus/dist/FocusScope.es.js +0 -437
- package/dist/node_modules/@react-aria/focus/dist/FocusScope.es.js.map +0 -1
- package/dist/node_modules/@react-aria/focus/dist/virtualFocus.cjs.js +0 -2
- package/dist/node_modules/@react-aria/focus/dist/virtualFocus.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/focus/dist/virtualFocus.es.js +0 -32
- package/dist/node_modules/@react-aria/focus/dist/virtualFocus.es.js.map +0 -1
- package/dist/node_modules/@react-aria/form/dist/useFormValidation.cjs.js +0 -2
- package/dist/node_modules/@react-aria/form/dist/useFormValidation.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/form/dist/useFormValidation.es.js +0 -78
- package/dist/node_modules/@react-aria/form/dist/useFormValidation.es.js.map +0 -1
- package/dist/node_modules/@react-aria/i18n/dist/context.cjs.js +0 -2
- package/dist/node_modules/@react-aria/i18n/dist/context.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/i18n/dist/context.es.js +0 -11
- package/dist/node_modules/@react-aria/i18n/dist/context.es.js.map +0 -1
- package/dist/node_modules/@react-aria/i18n/dist/useCollator.cjs.js +0 -2
- package/dist/node_modules/@react-aria/i18n/dist/useCollator.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/i18n/dist/useCollator.es.js +0 -12
- package/dist/node_modules/@react-aria/i18n/dist/useCollator.es.js.map +0 -1
- package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.cjs.js +0 -2
- package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.es.js +0 -30
- package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.es.js.map +0 -1
- package/dist/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.cjs.js +0 -2
- package/dist/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.es.js +0 -24
- package/dist/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.es.js.map +0 -1
- package/dist/node_modules/@react-aria/i18n/dist/utils.cjs.js +0 -2
- package/dist/node_modules/@react-aria/i18n/dist/utils.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/i18n/dist/utils.es.js +0 -45
- package/dist/node_modules/@react-aria/i18n/dist/utils.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/PressResponder.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/PressResponder.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/PressResponder.es.js +0 -15
- package/dist/node_modules/@react-aria/interactions/dist/PressResponder.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/context.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/context.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/context.es.js +0 -10
- package/dist/node_modules/@react-aria/interactions/dist/context.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.es.js +0 -29
- package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/focusSafely.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/focusSafely.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/focusSafely.es.js +0 -15
- package/dist/node_modules/@react-aria/interactions/dist/focusSafely.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/textSelection.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/textSelection.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/textSelection.es.js +0 -35
- package/dist/node_modules/@react-aria/interactions/dist/textSelection.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.es.js +0 -30
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.es.js +0 -67
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.es.js +0 -56
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocusable.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useFocusable.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocusable.es.js +0 -42
- package/dist/node_modules/@react-aria/interactions/dist/useFocusable.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useHover.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useHover.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useHover.es.js +0 -85
- package/dist/node_modules/@react-aria/interactions/dist/useHover.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useInteractOutside.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useInteractOutside.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useInteractOutside.es.js +0 -51
- package/dist/node_modules/@react-aria/interactions/dist/useInteractOutside.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.es.js +0 -13
- package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useLongPress.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useLongPress.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useLongPress.es.js +0 -50
- package/dist/node_modules/@react-aria/interactions/dist/useLongPress.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/usePress.cjs.js +0 -8
- package/dist/node_modules/@react-aria/interactions/dist/usePress.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/usePress.es.js +0 -386
- package/dist/node_modules/@react-aria/interactions/dist/usePress.es.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/utils.cjs.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/utils.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/utils.es.js +0 -92
- package/dist/node_modules/@react-aria/interactions/dist/utils.es.js.map +0 -1
- package/dist/node_modules/@react-aria/label/dist/useField.cjs.js +0 -2
- package/dist/node_modules/@react-aria/label/dist/useField.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/label/dist/useField.es.js +0 -36
- package/dist/node_modules/@react-aria/label/dist/useField.es.js.map +0 -1
- package/dist/node_modules/@react-aria/label/dist/useLabel.cjs.js +0 -2
- package/dist/node_modules/@react-aria/label/dist/useLabel.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/label/dist/useLabel.es.js +0 -23
- package/dist/node_modules/@react-aria/label/dist/useLabel.es.js.map +0 -1
- package/dist/node_modules/@react-aria/listbox/dist/useListBox.cjs.js +0 -2
- package/dist/node_modules/@react-aria/listbox/dist/useListBox.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/listbox/dist/useListBox.es.js +0 -52
- package/dist/node_modules/@react-aria/listbox/dist/useListBox.es.js.map +0 -1
- package/dist/node_modules/@react-aria/listbox/dist/useOption.cjs.js +0 -2
- package/dist/node_modules/@react-aria/listbox/dist/useOption.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/listbox/dist/useOption.es.js +0 -79
- package/dist/node_modules/@react-aria/listbox/dist/useOption.es.js.map +0 -1
- package/dist/node_modules/@react-aria/listbox/dist/utils.cjs.js +0 -2
- package/dist/node_modules/@react-aria/listbox/dist/utils.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/listbox/dist/utils.es.js +0 -14
- package/dist/node_modules/@react-aria/listbox/dist/utils.es.js.map +0 -1
- package/dist/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.cjs.js +0 -2
- package/dist/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.es.js +0 -48
- package/dist/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ar-AE.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/ar-AE.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ar-AE.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/ar-AE.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/bg-BG.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/bg-BG.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/bg-BG.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/bg-BG.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/cs-CZ.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/cs-CZ.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/cs-CZ.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/cs-CZ.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/da-DK.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/da-DK.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/da-DK.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/da-DK.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/de-DE.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/de-DE.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/de-DE.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/de-DE.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/el-GR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/el-GR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/el-GR.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/el-GR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/en-US.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/en-US.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/en-US.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/en-US.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/es-ES.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/es-ES.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/es-ES.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/es-ES.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/et-EE.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/et-EE.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/et-EE.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/et-EE.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/fi-FI.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/fi-FI.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/fi-FI.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/fi-FI.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/fr-FR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/fr-FR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/fr-FR.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/fr-FR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/he-IL.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/he-IL.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/he-IL.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/he-IL.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/hr-HR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/hr-HR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/hr-HR.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/hr-HR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/hu-HU.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/hu-HU.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/hu-HU.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/hu-HU.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/intlStrings.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/intlStrings.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/intlStrings.es.js +0 -75
- package/dist/node_modules/@react-aria/menu/dist/intlStrings.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/it-IT.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/it-IT.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/it-IT.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/it-IT.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ja-JP.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/ja-JP.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ja-JP.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/ja-JP.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ko-KR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/ko-KR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ko-KR.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/ko-KR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/lt-LT.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/lt-LT.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/lt-LT.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/lt-LT.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/lv-LV.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/lv-LV.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/lv-LV.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/lv-LV.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/nb-NO.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/nb-NO.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/nb-NO.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/nb-NO.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/nl-NL.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/nl-NL.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/nl-NL.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/nl-NL.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/pl-PL.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/pl-PL.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/pl-PL.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/pl-PL.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/pt-BR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/pt-BR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/pt-BR.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/pt-BR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/pt-PT.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/pt-PT.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/pt-PT.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/pt-PT.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ro-RO.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/ro-RO.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ro-RO.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/ro-RO.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ru-RU.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/ru-RU.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/ru-RU.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/ru-RU.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/sk-SK.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/sk-SK.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/sk-SK.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/sk-SK.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/sl-SI.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/sl-SI.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/sl-SI.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/sl-SI.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/sr-SP.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/sr-SP.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/sr-SP.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/sr-SP.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/sv-SE.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/sv-SE.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/sv-SE.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/sv-SE.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/tr-TR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/tr-TR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/tr-TR.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/tr-TR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/uk-UA.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/uk-UA.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/uk-UA.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/uk-UA.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/useMenu.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/useMenu.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/useMenu.es.js +0 -39
- package/dist/node_modules/@react-aria/menu/dist/useMenu.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/useMenuItem.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/useMenuItem.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/useMenuItem.es.js +0 -145
- package/dist/node_modules/@react-aria/menu/dist/useMenuItem.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/useMenuTrigger.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/useMenuTrigger.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/useMenuTrigger.es.js +0 -64
- package/dist/node_modules/@react-aria/menu/dist/useMenuTrigger.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/utils.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/utils.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/utils.es.js +0 -5
- package/dist/node_modules/@react-aria/menu/dist/utils.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/zh-CN.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/zh-CN.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/zh-CN.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/zh-CN.es.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/zh-TW.cjs.js +0 -2
- package/dist/node_modules/@react-aria/menu/dist/zh-TW.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/menu/dist/zh-TW.es.js +0 -8
- package/dist/node_modules/@react-aria/menu/dist/zh-TW.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/DismissButton.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/DismissButton.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/DismissButton.es.js +0 -26
- package/dist/node_modules/@react-aria/overlays/dist/DismissButton.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/Overlay.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/Overlay.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/Overlay.es.js +0 -39
- package/dist/node_modules/@react-aria/overlays/dist/Overlay.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/PortalProvider.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/PortalProvider.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/PortalProvider.es.js +0 -11
- package/dist/node_modules/@react-aria/overlays/dist/PortalProvider.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ar-AE.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/ar-AE.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ar-AE.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/ar-AE.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.es.js +0 -78
- package/dist/node_modules/@react-aria/overlays/dist/ariaHideOutside.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/bg-BG.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/bg-BG.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/bg-BG.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/bg-BG.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/calculatePosition.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/calculatePosition.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/calculatePosition.es.js +0 -200
- package/dist/node_modules/@react-aria/overlays/dist/calculatePosition.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/cs-CZ.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/cs-CZ.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/cs-CZ.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/cs-CZ.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/da-DK.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/da-DK.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/da-DK.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/da-DK.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/de-DE.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/de-DE.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/de-DE.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/de-DE.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/el-GR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/el-GR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/el-GR.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/el-GR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/en-US.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/en-US.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/en-US.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/en-US.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/es-ES.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/es-ES.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/es-ES.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/es-ES.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/et-EE.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/et-EE.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/et-EE.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/et-EE.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/fi-FI.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/fi-FI.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/fi-FI.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/fi-FI.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/fr-FR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/fr-FR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/fr-FR.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/fr-FR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/he-IL.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/he-IL.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/he-IL.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/he-IL.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/hr-HR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/hr-HR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/hr-HR.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/hr-HR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/hu-HU.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/hu-HU.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/hu-HU.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/hu-HU.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/intlStrings.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/intlStrings.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/intlStrings.es.js +0 -75
- package/dist/node_modules/@react-aria/overlays/dist/intlStrings.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/it-IT.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/it-IT.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/it-IT.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/it-IT.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ja-JP.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/ja-JP.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ja-JP.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/ja-JP.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ko-KR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/ko-KR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ko-KR.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/ko-KR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/lt-LT.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/lt-LT.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/lt-LT.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/lt-LT.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/lv-LV.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/lv-LV.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/lv-LV.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/lv-LV.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/nb-NO.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/nb-NO.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/nb-NO.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/nb-NO.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/nl-NL.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/nl-NL.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/nl-NL.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/nl-NL.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/pl-PL.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/pl-PL.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/pl-PL.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/pl-PL.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/pt-BR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/pt-BR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/pt-BR.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/pt-BR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/pt-PT.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/pt-PT.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/pt-PT.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/pt-PT.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ro-RO.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/ro-RO.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ro-RO.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/ro-RO.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ru-RU.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/ru-RU.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/ru-RU.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/ru-RU.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/sk-SK.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/sk-SK.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/sk-SK.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/sk-SK.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/sl-SI.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/sl-SI.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/sl-SI.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/sl-SI.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/sr-SP.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/sr-SP.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/sr-SP.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/sr-SP.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/sv-SE.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/sv-SE.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/sv-SE.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/sv-SE.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/tr-TR.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/tr-TR.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/tr-TR.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/tr-TR.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/uk-UA.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/uk-UA.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/uk-UA.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/uk-UA.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useCloseOnScroll.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/useCloseOnScroll.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useCloseOnScroll.es.js +0 -26
- package/dist/node_modules/@react-aria/overlays/dist/useCloseOnScroll.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useModalOverlay.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/useModalOverlay.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useModalOverlay.es.js +0 -32
- package/dist/node_modules/@react-aria/overlays/dist/useModalOverlay.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useOverlay.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/useOverlay.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useOverlay.es.js +0 -53
- package/dist/node_modules/@react-aria/overlays/dist/useOverlay.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayPosition.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayPosition.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayPosition.es.js +0 -143
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayPosition.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayTrigger.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayTrigger.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayTrigger.es.js +0 -27
- package/dist/node_modules/@react-aria/overlays/dist/useOverlayTrigger.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/usePopover.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/usePopover.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/usePopover.es.js +0 -48
- package/dist/node_modules/@react-aria/overlays/dist/usePopover.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/usePreventScroll.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/usePreventScroll.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/usePreventScroll.es.js +0 -100
- package/dist/node_modules/@react-aria/overlays/dist/usePreventScroll.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/zh-CN.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/zh-CN.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/zh-CN.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/zh-CN.es.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/zh-TW.cjs.js +0 -2
- package/dist/node_modules/@react-aria/overlays/dist/zh-TW.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/overlays/dist/zh-TW.es.js +0 -8
- package/dist/node_modules/@react-aria/overlays/dist/zh-TW.es.js.map +0 -1
- package/dist/node_modules/@react-aria/radio/dist/useRadio.cjs.js +0 -2
- package/dist/node_modules/@react-aria/radio/dist/useRadio.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/radio/dist/useRadio.es.js +0 -70
- package/dist/node_modules/@react-aria/radio/dist/useRadio.es.js.map +0 -1
- package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.cjs.js +0 -2
- package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.es.js +0 -80
- package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.es.js.map +0 -1
- package/dist/node_modules/@react-aria/radio/dist/utils.cjs.js +0 -2
- package/dist/node_modules/@react-aria/radio/dist/utils.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/radio/dist/utils.es.js +0 -5
- package/dist/node_modules/@react-aria/radio/dist/utils.es.js.map +0 -1
- package/dist/node_modules/@react-aria/select/dist/HiddenSelect.cjs.js +0 -2
- package/dist/node_modules/@react-aria/select/dist/HiddenSelect.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/select/dist/HiddenSelect.es.js +0 -105
- package/dist/node_modules/@react-aria/select/dist/HiddenSelect.es.js.map +0 -1
- package/dist/node_modules/@react-aria/select/dist/useSelect.cjs.js +0 -2
- package/dist/node_modules/@react-aria/select/dist/useSelect.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/select/dist/useSelect.es.js +0 -126
- package/dist/node_modules/@react-aria/select/dist/useSelect.es.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.cjs.js +0 -2
- package/dist/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.es.js +0 -41
- package/dist/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.es.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.cjs.js +0 -2
- package/dist/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.es.js +0 -122
- package/dist/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.es.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/useSelectableCollection.cjs.js +0 -2
- package/dist/node_modules/@react-aria/selection/dist/useSelectableCollection.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/useSelectableCollection.es.js +0 -235
- package/dist/node_modules/@react-aria/selection/dist/useSelectableCollection.es.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/useSelectableItem.cjs.js +0 -2
- package/dist/node_modules/@react-aria/selection/dist/useSelectableItem.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/useSelectableItem.es.js +0 -127
- package/dist/node_modules/@react-aria/selection/dist/useSelectableItem.es.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/useSelectableList.cjs.js +0 -2
- package/dist/node_modules/@react-aria/selection/dist/useSelectableList.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/useSelectableList.es.js +0 -37
- package/dist/node_modules/@react-aria/selection/dist/useSelectableList.es.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/useTypeSelect.cjs.js +0 -2
- package/dist/node_modules/@react-aria/selection/dist/useTypeSelect.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/useTypeSelect.es.js +0 -33
- package/dist/node_modules/@react-aria/selection/dist/useTypeSelect.es.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/utils.cjs.js +0 -2
- package/dist/node_modules/@react-aria/selection/dist/utils.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/selection/dist/utils.es.js +0 -24
- package/dist/node_modules/@react-aria/selection/dist/utils.es.js.map +0 -1
- package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.cjs.js +0 -2
- package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.es.js +0 -19
- package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.es.js.map +0 -1
- package/dist/node_modules/@react-aria/switch/dist/useSwitch.cjs.js +0 -2
- package/dist/node_modules/@react-aria/switch/dist/useSwitch.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/switch/dist/useSwitch.es.js +0 -20
- package/dist/node_modules/@react-aria/switch/dist/useSwitch.es.js.map +0 -1
- package/dist/node_modules/@react-aria/toggle/dist/useToggle.cjs.js +0 -2
- package/dist/node_modules/@react-aria/toggle/dist/useToggle.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/toggle/dist/useToggle.es.js +0 -60
- package/dist/node_modules/@react-aria/toggle/dist/useToggle.es.js.map +0 -1
- package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.cjs.js +0 -2
- package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.cjs.js.map +0 -1
- package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.es.js +0 -41
- package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.es.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/CollectionBuilder.cjs.js +0 -2
- package/dist/node_modules/@react-stately/collections/dist/CollectionBuilder.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/CollectionBuilder.es.js +0 -171
- package/dist/node_modules/@react-stately/collections/dist/CollectionBuilder.es.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/Item.cjs.js +0 -2
- package/dist/node_modules/@react-stately/collections/dist/Item.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/Item.es.js +0 -38
- package/dist/node_modules/@react-stately/collections/dist/Item.es.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/getChildNodes.cjs.js +0 -2
- package/dist/node_modules/@react-stately/collections/dist/getChildNodes.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/getChildNodes.es.js +0 -34
- package/dist/node_modules/@react-stately/collections/dist/getChildNodes.es.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/getItemCount.cjs.js +0 -2
- package/dist/node_modules/@react-stately/collections/dist/getItemCount.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/getItemCount.es.js +0 -15
- package/dist/node_modules/@react-stately/collections/dist/getItemCount.es.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/useCollection.cjs.js +0 -2
- package/dist/node_modules/@react-stately/collections/dist/useCollection.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/collections/dist/useCollection.es.js +0 -24
- package/dist/node_modules/@react-stately/collections/dist/useCollection.es.js.map +0 -1
- package/dist/node_modules/@react-stately/form/dist/useFormValidationState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/form/dist/useFormValidationState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/form/dist/useFormValidationState.es.js +0 -110
- package/dist/node_modules/@react-stately/form/dist/useFormValidationState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/list/dist/ListCollection.cjs.js +0 -2
- package/dist/node_modules/@react-stately/list/dist/ListCollection.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/list/dist/ListCollection.es.js +0 -57
- package/dist/node_modules/@react-stately/list/dist/ListCollection.es.js.map +0 -1
- package/dist/node_modules/@react-stately/list/dist/useListState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/list/dist/useListState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/list/dist/useListState.es.js +0 -70
- package/dist/node_modules/@react-stately/list/dist/useListState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/list/dist/useSingleSelectListState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/list/dist/useSingleSelectListState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/list/dist/useSingleSelectListState.es.js +0 -35
- package/dist/node_modules/@react-stately/list/dist/useSingleSelectListState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/menu/dist/useMenuTriggerState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/menu/dist/useMenuTriggerState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/menu/dist/useMenuTriggerState.es.js +0 -34
- package/dist/node_modules/@react-stately/menu/dist/useMenuTriggerState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/overlays/dist/useOverlayTriggerState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/overlays/dist/useOverlayTriggerState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/overlays/dist/useOverlayTriggerState.es.js +0 -30
- package/dist/node_modules/@react-stately/overlays/dist/useOverlayTriggerState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.es.js +0 -35
- package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/select/dist/useSelectState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/select/dist/useSelectState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/select/dist/useSelectState.es.js +0 -35
- package/dist/node_modules/@react-stately/select/dist/useSelectState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/selection/dist/Selection.cjs.js +0 -2
- package/dist/node_modules/@react-stately/selection/dist/Selection.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/selection/dist/Selection.es.js +0 -9
- package/dist/node_modules/@react-stately/selection/dist/Selection.es.js.map +0 -1
- package/dist/node_modules/@react-stately/selection/dist/SelectionManager.cjs.js +0 -2
- package/dist/node_modules/@react-stately/selection/dist/SelectionManager.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/selection/dist/SelectionManager.es.js +0 -285
- package/dist/node_modules/@react-stately/selection/dist/SelectionManager.es.js.map +0 -1
- package/dist/node_modules/@react-stately/selection/dist/useMultipleSelectionState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/selection/dist/useMultipleSelectionState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/selection/dist/useMultipleSelectionState.es.js +0 -58
- package/dist/node_modules/@react-stately/selection/dist/useMultipleSelectionState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/toggle/dist/useToggleState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/toggle/dist/useToggleState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/toggle/dist/useToggleState.es.js +0 -22
- package/dist/node_modules/@react-stately/toggle/dist/useToggleState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/tree/dist/TreeCollection.cjs.js +0 -2
- package/dist/node_modules/@react-stately/tree/dist/TreeCollection.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/tree/dist/TreeCollection.es.js +0 -53
- package/dist/node_modules/@react-stately/tree/dist/TreeCollection.es.js.map +0 -1
- package/dist/node_modules/@react-stately/tree/dist/useTreeState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/tree/dist/useTreeState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/tree/dist/useTreeState.es.js +0 -38
- package/dist/node_modules/@react-stately/tree/dist/useTreeState.es.js.map +0 -1
- package/dist/node_modules/@react-stately/utils/dist/useControlledState.cjs.js +0 -2
- package/dist/node_modules/@react-stately/utils/dist/useControlledState.cjs.js.map +0 -1
- package/dist/node_modules/@react-stately/utils/dist/useControlledState.es.js +0 -31
- package/dist/node_modules/@react-stately/utils/dist/useControlledState.es.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.cjs.js +0 -2
- package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.cjs.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.es.js +0 -9
- package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.es.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.cjs.js +0 -2
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.cjs.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.es.js +0 -8
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.es.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.cjs.js +0 -2
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.cjs.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.es.js +0 -13
- package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.es.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.cjs.js +0 -2
- package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.cjs.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.es.js +0 -9
- package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.es.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.cjs.js +0 -2
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.cjs.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.es.js +0 -11
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.es.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.cjs.js +0 -2
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.cjs.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.es.js +0 -9
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.es.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.cjs.js +0 -2
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.cjs.js.map +0 -1
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.es.js +0 -11
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.es.js.map +0 -1
- package/dist/node_modules/color2k/dist/index.exports.import.es.cjs.js +0 -2
- package/dist/node_modules/color2k/dist/index.exports.import.es.cjs.js.map +0 -1
- package/dist/node_modules/color2k/dist/index.exports.import.es.es.js +0 -171
- package/dist/node_modules/color2k/dist/index.exports.import.es.es.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js +0 -23
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +0 -609
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs.js +0 -10
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.es.js +0 -29
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.es.js.map +0 -1
- package/dist/node_modules/react/jsx-runtime.cjs.js +0 -2
- package/dist/node_modules/react/jsx-runtime.cjs.js.map +0 -1
- package/dist/node_modules/react/jsx-runtime.es.js +0 -9
- package/dist/node_modules/react/jsx-runtime.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Autocomplete.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Autocomplete.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Autocomplete.es.js +0 -6
- package/dist/node_modules/react-aria-components/dist/Autocomplete.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Button.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Button.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Button.es.js +0 -70
- package/dist/node_modules/react-aria-components/dist/Button.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Collection.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Collection.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Collection.es.js +0 -64
- package/dist/node_modules/react-aria-components/dist/Collection.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Dialog.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Dialog.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Dialog.es.js +0 -6
- package/dist/node_modules/react-aria-components/dist/Dialog.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Header.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Header.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Header.es.js +0 -15
- package/dist/node_modules/react-aria-components/dist/Header.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Keyboard.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Keyboard.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Keyboard.es.js +0 -6
- package/dist/node_modules/react-aria-components/dist/Keyboard.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Menu.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Menu.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Menu.es.js +0 -286
- package/dist/node_modules/react-aria-components/dist/Menu.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/OverlayArrow.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/OverlayArrow.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/OverlayArrow.es.js +0 -37
- package/dist/node_modules/react-aria-components/dist/OverlayArrow.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Popover.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Popover.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Popover.es.js +0 -141
- package/dist/node_modules/react-aria-components/dist/Popover.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/ProgressBar.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/ProgressBar.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/ProgressBar.es.js +0 -6
- package/dist/node_modules/react-aria-components/dist/ProgressBar.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Separator.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Separator.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Separator.es.js +0 -6
- package/dist/node_modules/react-aria-components/dist/Separator.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Text.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Text.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Text.es.js +0 -16
- package/dist/node_modules/react-aria-components/dist/Text.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Tooltip.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/Tooltip.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/Tooltip.es.js +0 -98
- package/dist/node_modules/react-aria-components/dist/Tooltip.es.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/utils.cjs.js +0 -2
- package/dist/node_modules/react-aria-components/dist/utils.cjs.js.map +0 -1
- package/dist/node_modules/react-aria-components/dist/utils.es.js +0 -101
- package/dist/node_modules/react-aria-components/dist/utils.es.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs.js +0 -10
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.es.js +0 -68
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.es.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs.js +0 -10
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.es.js +0 -56
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.es.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/shim/index.cjs.js +0 -2
- package/dist/node_modules/use-sync-external-store/shim/index.cjs.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/shim/index.es.js +0 -9
- package/dist/node_modules/use-sync-external-store/shim/index.es.js.map +0 -1
- package/dist/utils/color2k.cjs.js +0 -2
- package/dist/utils/color2k.cjs.js.map +0 -1
- package/dist/utils/color2k.es.js +0 -14
- package/dist/utils/color2k.es.js.map +0 -1
- package/dist/utils/copy.cjs.js +0 -2
- package/dist/utils/copy.cjs.js.map +0 -1
- package/dist/utils/copy.es.js +0 -31
- package/dist/utils/copy.es.js.map +0 -1
- package/dist/utils/image.cjs.js +0 -2
- package/dist/utils/image.cjs.js.map +0 -1
- package/dist/utils/image.es.js +0 -28
- package/dist/utils/image.es.js.map +0 -1
- package/dist/utils/navigation.cjs.js +0 -2
- package/dist/utils/navigation.cjs.js.map +0 -1
- package/dist/utils/navigation.es.js +0 -12
- package/dist/utils/navigation.es.js.map +0 -1
- package/dist/utils/palette.cjs.js +0 -2
- package/dist/utils/palette.cjs.js.map +0 -1
- package/dist/utils/palette.es.js +0 -183
- package/dist/utils/palette.es.js.map +0 -1
- package/dist/utils/string.cjs.js +0 -2
- package/dist/utils/string.cjs.js.map +0 -1
- package/dist/utils/string.es.js +0 -8
- package/dist/utils/string.es.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.es.js","sources":["../../../../../node_modules/@react-aria/i18n/dist/utils.mjs"],"sourcesContent":["/*\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 */ // https://en.wikipedia.org/wiki/Right-to-left\nconst $148a7a147e38ea7f$var$RTL_SCRIPTS = new Set([\n 'Arab',\n 'Syrc',\n 'Samr',\n 'Mand',\n 'Thaa',\n 'Mend',\n 'Nkoo',\n 'Adlm',\n 'Rohg',\n 'Hebr'\n]);\nconst $148a7a147e38ea7f$var$RTL_LANGS = new Set([\n 'ae',\n 'ar',\n 'arc',\n 'bcc',\n 'bqi',\n 'ckb',\n 'dv',\n 'fa',\n 'glk',\n 'he',\n 'ku',\n 'mzn',\n 'nqo',\n 'pnb',\n 'ps',\n 'sd',\n 'ug',\n 'ur',\n 'yi'\n]);\nfunction $148a7a147e38ea7f$export$702d680b21cbd764(localeString) {\n // If the Intl.Locale API is available, use it to get the locale's text direction.\n if (Intl.Locale) {\n let locale = new Intl.Locale(localeString).maximize();\n // Use the text info object to get the direction if possible.\n // @ts-ignore - this was implemented as a property by some browsers before it was standardized as a function.\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo\n let textInfo = typeof locale.getTextInfo === 'function' ? locale.getTextInfo() : locale.textInfo;\n if (textInfo) return textInfo.direction === 'rtl';\n // Fallback: guess using the script.\n // This is more accurate than guessing by language, since languages can be written in multiple scripts.\n if (locale.script) return $148a7a147e38ea7f$var$RTL_SCRIPTS.has(locale.script);\n }\n // If not, just guess by the language (first part of the locale)\n let lang = localeString.split('-')[0];\n return $148a7a147e38ea7f$var$RTL_LANGS.has(lang);\n}\n\n\nexport {$148a7a147e38ea7f$export$702d680b21cbd764 as isRTL};\n//# sourceMappingURL=utils.module.js.map\n"],"names":["$148a7a147e38ea7f$var$RTL_SCRIPTS","$148a7a147e38ea7f$var$RTL_LANGS","$148a7a147e38ea7f$export$702d680b21cbd764","localeString","locale","textInfo","lang"],"mappings":"AAWA,MAAMA,IAAoC,oBAAI,IAAI;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,CAAC,GACKC,IAAkC,oBAAI,IAAI;AAAA,EAC5C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,CAAC;AACD,SAASC,EAA0CC,GAAc;AAE7D,MAAI,KAAK,QAAQ;AACb,QAAIC,IAAS,IAAI,KAAK,OAAOD,CAAY,EAAE,YAIvCE,IAAW,OAAOD,EAAO,eAAgB,aAAaA,EAAO,YAAW,IAAKA,EAAO;AACxF,QAAIC,EAAU,QAAOA,EAAS,cAAc;AAG5C,QAAID,EAAO,OAAQ,QAAOJ,EAAkC,IAAII,EAAO,MAAM;AAAA,EAChF;AAED,MAAIE,IAAOH,EAAa,MAAM,GAAG,EAAE,CAAC;AACpC,SAAOF,EAAgC,IAAIK,CAAI;AACnD;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./context.cjs.js"),e=require("react");function n({children:r}){let t=e.useMemo(()=>({register:()=>{}}),[]);return e.createElement(o.PressResponderContext.Provider,{value:t},r)}exports.ClearPressResponder=n;
|
|
2
|
-
//# sourceMappingURL=PressResponder.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PressResponder.cjs.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/PressResponder.mjs"],"sourcesContent":["import {PressResponderContext as $ae1eeba8b9eafd08$export$5165eccb35aaadb5} from \"./context.mjs\";\nimport {useObjectRef as $87RPk$useObjectRef, mergeProps as $87RPk$mergeProps, useSyncRef as $87RPk$useSyncRef} from \"@react-aria/utils\";\nimport $87RPk$react, {useRef as $87RPk$useRef, useContext as $87RPk$useContext, useEffect as $87RPk$useEffect, useMemo as $87RPk$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\nconst $f1ab8c75478c6f73$export$3351871ee4b288b8 = /*#__PURE__*/ (0, $87RPk$react).forwardRef(({ children: children, ...props }, ref)=>{\n let isRegistered = (0, $87RPk$useRef)(false);\n let prevContext = (0, $87RPk$useContext)((0, $ae1eeba8b9eafd08$export$5165eccb35aaadb5));\n ref = (0, $87RPk$useObjectRef)(ref || (prevContext === null || prevContext === void 0 ? void 0 : prevContext.ref));\n let context = (0, $87RPk$mergeProps)(prevContext || {}, {\n ...props,\n ref: ref,\n register () {\n isRegistered.current = true;\n if (prevContext) prevContext.register();\n }\n });\n (0, $87RPk$useSyncRef)(prevContext, ref);\n (0, $87RPk$useEffect)(()=>{\n if (!isRegistered.current) {\n if (process.env.NODE_ENV !== 'production') console.warn(\"A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component.\");\n isRegistered.current = true; // only warn once in strict mode.\n }\n }, []);\n return /*#__PURE__*/ (0, $87RPk$react).createElement((0, $ae1eeba8b9eafd08$export$5165eccb35aaadb5).Provider, {\n value: context\n }, children);\n});\nfunction $f1ab8c75478c6f73$export$cf75428e0b9ed1ea({ children: children }) {\n let context = (0, $87RPk$useMemo)(()=>({\n register: ()=>{}\n }), []);\n return /*#__PURE__*/ (0, $87RPk$react).createElement((0, $ae1eeba8b9eafd08$export$5165eccb35aaadb5).Provider, {\n value: context\n }, children);\n}\n\n\nexport {$f1ab8c75478c6f73$export$3351871ee4b288b8 as PressResponder, $f1ab8c75478c6f73$export$cf75428e0b9ed1ea as ClearPressResponder};\n//# sourceMappingURL=PressResponder.module.js.map\n"],"names":["$f1ab8c75478c6f73$export$cf75428e0b9ed1ea","children","context","$87RPk$useMemo","$87RPk$react","$ae1eeba8b9eafd08$export$5165eccb35aaadb5"],"mappings":"uIAwCA,SAASA,EAA0C,CAAE,SAAUC,GAAY,CACvE,IAAIC,EAAcC,EAAAA,QAAgB,KAAK,CAC/B,SAAU,IAAI,CAAE,CAC5B,GAAY,CAAE,CAAA,EACV,OAAyBC,EAAc,cAAkBC,EAAAA,sBAA2C,SAAU,CAC1G,MAAOH,CACV,EAAED,CAAQ,CACf","x_google_ignoreList":[0]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { PressResponderContext as t } from "./context.es.js";
|
|
2
|
-
import a, { useMemo as o } from "react";
|
|
3
|
-
function n({ children: e }) {
|
|
4
|
-
let r = o(() => ({
|
|
5
|
-
register: () => {
|
|
6
|
-
}
|
|
7
|
-
}), []);
|
|
8
|
-
return /* @__PURE__ */ a.createElement(t.Provider, {
|
|
9
|
-
value: r
|
|
10
|
-
}, e);
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
n as ClearPressResponder
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=PressResponder.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PressResponder.es.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/PressResponder.mjs"],"sourcesContent":["import {PressResponderContext as $ae1eeba8b9eafd08$export$5165eccb35aaadb5} from \"./context.mjs\";\nimport {useObjectRef as $87RPk$useObjectRef, mergeProps as $87RPk$mergeProps, useSyncRef as $87RPk$useSyncRef} from \"@react-aria/utils\";\nimport $87RPk$react, {useRef as $87RPk$useRef, useContext as $87RPk$useContext, useEffect as $87RPk$useEffect, useMemo as $87RPk$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\nconst $f1ab8c75478c6f73$export$3351871ee4b288b8 = /*#__PURE__*/ (0, $87RPk$react).forwardRef(({ children: children, ...props }, ref)=>{\n let isRegistered = (0, $87RPk$useRef)(false);\n let prevContext = (0, $87RPk$useContext)((0, $ae1eeba8b9eafd08$export$5165eccb35aaadb5));\n ref = (0, $87RPk$useObjectRef)(ref || (prevContext === null || prevContext === void 0 ? void 0 : prevContext.ref));\n let context = (0, $87RPk$mergeProps)(prevContext || {}, {\n ...props,\n ref: ref,\n register () {\n isRegistered.current = true;\n if (prevContext) prevContext.register();\n }\n });\n (0, $87RPk$useSyncRef)(prevContext, ref);\n (0, $87RPk$useEffect)(()=>{\n if (!isRegistered.current) {\n if (process.env.NODE_ENV !== 'production') console.warn(\"A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component.\");\n isRegistered.current = true; // only warn once in strict mode.\n }\n }, []);\n return /*#__PURE__*/ (0, $87RPk$react).createElement((0, $ae1eeba8b9eafd08$export$5165eccb35aaadb5).Provider, {\n value: context\n }, children);\n});\nfunction $f1ab8c75478c6f73$export$cf75428e0b9ed1ea({ children: children }) {\n let context = (0, $87RPk$useMemo)(()=>({\n register: ()=>{}\n }), []);\n return /*#__PURE__*/ (0, $87RPk$react).createElement((0, $ae1eeba8b9eafd08$export$5165eccb35aaadb5).Provider, {\n value: context\n }, children);\n}\n\n\nexport {$f1ab8c75478c6f73$export$3351871ee4b288b8 as PressResponder, $f1ab8c75478c6f73$export$cf75428e0b9ed1ea as ClearPressResponder};\n//# sourceMappingURL=PressResponder.module.js.map\n"],"names":["$f1ab8c75478c6f73$export$cf75428e0b9ed1ea","children","context","$87RPk$useMemo","$87RPk$react","$ae1eeba8b9eafd08$export$5165eccb35aaadb5"],"mappings":";;AAwCA,SAASA,EAA0C,EAAE,UAAUC,KAAY;AACvE,MAAIC,IAAcC,EAAgB,OAAK;AAAA,IAC/B,UAAU,MAAI;AAAA,IAAE;AAAA,EAC5B,IAAY,CAAE,CAAA;AACV,SAAyBC,gBAAAA,EAAc,cAAkBC,EAA2C,UAAU;AAAA,IAC1G,OAAOH;AAAA,EACV,GAAED,CAAQ;AACf;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.cjs.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/context.mjs"],"sourcesContent":["import $3aeG1$react 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 */ \nconst $ae1eeba8b9eafd08$export$5165eccb35aaadb5 = (0, $3aeG1$react).createContext({\n register: ()=>{}\n});\n$ae1eeba8b9eafd08$export$5165eccb35aaadb5.displayName = 'PressResponderContext';\n\n\nexport {$ae1eeba8b9eafd08$export$5165eccb35aaadb5 as PressResponderContext};\n//# sourceMappingURL=context.module.js.map\n"],"names":["$ae1eeba8b9eafd08$export$5165eccb35aaadb5","$3aeG1$react"],"mappings":"yGAaMA,EAAgDC,EAAc,cAAc,CAC9E,SAAU,IAAI,CAAE,CACpB,CAAC,EACDD,EAA0C,YAAc","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.es.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/context.mjs"],"sourcesContent":["import $3aeG1$react 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 */ \nconst $ae1eeba8b9eafd08$export$5165eccb35aaadb5 = (0, $3aeG1$react).createContext({\n register: ()=>{}\n});\n$ae1eeba8b9eafd08$export$5165eccb35aaadb5.displayName = 'PressResponderContext';\n\n\nexport {$ae1eeba8b9eafd08$export$5165eccb35aaadb5 as PressResponderContext};\n//# sourceMappingURL=context.module.js.map\n"],"names":["$ae1eeba8b9eafd08$export$5165eccb35aaadb5","$3aeG1$react"],"mappings":";AAaK,MAACA,IAAgDC,EAAc,cAAc;AAAA,EAC9E,UAAU,MAAI;AAAA,EAAE;AACpB,CAAC;AACDD,EAA0C,cAAc;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(o){if(!o)return;let e=!0;return t=>{let r={...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){e&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};o(r),e&&t.stopPropagation()}}exports.createEventHandler=n;
|
|
2
|
-
//# sourceMappingURL=createEventHandler.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createEventHandler.cjs.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/createEventHandler.mjs"],"sourcesContent":["/*\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 */ function $93925083ecbb358c$export$48d1ea6320830260(handler) {\n if (!handler) return undefined;\n let shouldStopPropagation = true;\n return (e)=>{\n let event = {\n ...e,\n preventDefault () {\n e.preventDefault();\n },\n isDefaultPrevented () {\n return e.isDefaultPrevented();\n },\n stopPropagation () {\n if (shouldStopPropagation && process.env.NODE_ENV !== 'production') console.error('stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.');\n else shouldStopPropagation = true;\n },\n continuePropagation () {\n shouldStopPropagation = false;\n },\n isPropagationStopped () {\n return shouldStopPropagation;\n }\n };\n handler(event);\n if (shouldStopPropagation) e.stopPropagation();\n };\n}\n\n\nexport {$93925083ecbb358c$export$48d1ea6320830260 as createEventHandler};\n//# sourceMappingURL=createEventHandler.module.js.map\n"],"names":["$93925083ecbb358c$export$48d1ea6320830260","handler","shouldStopPropagation","e","event"],"mappings":"gFAUI,SAASA,EAA0CC,EAAS,CAC5D,GAAI,CAACA,EAAS,OACd,IAAIC,EAAwB,GAC5B,OAAQC,GAAI,CACR,IAAIC,EAAQ,CACR,GAAGD,EACH,gBAAkB,CACdA,EAAE,eAAc,CACnB,EACD,oBAAsB,CAClB,OAAOA,EAAE,oBACZ,EACD,iBAAmB,CACXD,GAAyB,QAAQ,IAAI,WAAa,aAAc,QAAQ,MAAM,sIAAsI,EACnNA,EAAwB,EAChC,EACD,qBAAuB,CACnBA,EAAwB,EAC3B,EACD,sBAAwB,CACpB,OAAOA,CACV,CACb,EACQD,EAAQG,CAAK,EACTF,GAAuBC,EAAE,iBACrC,CACA","x_google_ignoreList":[0]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
function n(o) {
|
|
2
|
-
if (!o) return;
|
|
3
|
-
let e = !0;
|
|
4
|
-
return (t) => {
|
|
5
|
-
let r = {
|
|
6
|
-
...t,
|
|
7
|
-
preventDefault() {
|
|
8
|
-
t.preventDefault();
|
|
9
|
-
},
|
|
10
|
-
isDefaultPrevented() {
|
|
11
|
-
return t.isDefaultPrevented();
|
|
12
|
-
},
|
|
13
|
-
stopPropagation() {
|
|
14
|
-
e && process.env.NODE_ENV !== "production" ? console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.") : e = !0;
|
|
15
|
-
},
|
|
16
|
-
continuePropagation() {
|
|
17
|
-
e = !1;
|
|
18
|
-
},
|
|
19
|
-
isPropagationStopped() {
|
|
20
|
-
return e;
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
o(r), e && t.stopPropagation();
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
n as createEventHandler
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=createEventHandler.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createEventHandler.es.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/createEventHandler.mjs"],"sourcesContent":["/*\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 */ function $93925083ecbb358c$export$48d1ea6320830260(handler) {\n if (!handler) return undefined;\n let shouldStopPropagation = true;\n return (e)=>{\n let event = {\n ...e,\n preventDefault () {\n e.preventDefault();\n },\n isDefaultPrevented () {\n return e.isDefaultPrevented();\n },\n stopPropagation () {\n if (shouldStopPropagation && process.env.NODE_ENV !== 'production') console.error('stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.');\n else shouldStopPropagation = true;\n },\n continuePropagation () {\n shouldStopPropagation = false;\n },\n isPropagationStopped () {\n return shouldStopPropagation;\n }\n };\n handler(event);\n if (shouldStopPropagation) e.stopPropagation();\n };\n}\n\n\nexport {$93925083ecbb358c$export$48d1ea6320830260 as createEventHandler};\n//# sourceMappingURL=createEventHandler.module.js.map\n"],"names":["$93925083ecbb358c$export$48d1ea6320830260","handler","shouldStopPropagation","e","event"],"mappings":"AAUI,SAASA,EAA0CC,GAAS;AAC5D,MAAI,CAACA,EAAS;AACd,MAAIC,IAAwB;AAC5B,SAAO,CAACC,MAAI;AACR,QAAIC,IAAQ;AAAA,MACR,GAAGD;AAAA,MACH,iBAAkB;AACd,QAAAA,EAAE,eAAc;AAAA,MACnB;AAAA,MACD,qBAAsB;AAClB,eAAOA,EAAE;MACZ;AAAA,MACD,kBAAmB;AACf,QAAID,KAAyB,QAAQ,IAAI,aAAa,eAAc,QAAQ,MAAM,sIAAsI,IACnNA,IAAwB;AAAA,MAChC;AAAA,MACD,sBAAuB;AACnB,QAAAA,IAAwB;AAAA,MAC3B;AAAA,MACD,uBAAwB;AACpB,eAAOA;AAAA,MACV;AAAA,IACb;AACQ,IAAAD,EAAQG,CAAK,GACTF,KAAuBC,EAAE;EACrC;AACA;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./useFocusVisible.cjs.js"),t=require("@react-aria/utils");function u(e){const o=t.getOwnerDocument(e),i=t.getActiveElement(o);if(n.getInteractionModality()==="virtual"){let c=i;t.runAfterTransition(()=>{t.getActiveElement(o)===c&&e.isConnected&&t.focusWithoutScrolling(e)})}else t.focusWithoutScrolling(e)}exports.focusSafely=u;
|
|
2
|
-
//# sourceMappingURL=focusSafely.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"focusSafely.cjs.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/focusSafely.mjs"],"sourcesContent":["import {getInteractionModality as $507fabe10e71c6fb$export$630ff653c5ada6a9} from \"./useFocusVisible.mjs\";\nimport {getOwnerDocument as $k50bp$getOwnerDocument, getActiveElement as $k50bp$getActiveElement, runAfterTransition as $k50bp$runAfterTransition, focusWithoutScrolling as $k50bp$focusWithoutScrolling} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the 'License');\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $3ad3f6e1647bc98d$export$80f3e147d781571c(element) {\n // If the user is interacting with a virtual cursor, e.g. screen reader, then\n // wait until after any animated transitions that are currently occurring on\n // the page before shifting focus. This avoids issues with VoiceOver on iOS\n // causing the page to scroll when moving focus if the element is transitioning\n // from off the screen.\n const ownerDocument = (0, $k50bp$getOwnerDocument)(element);\n const activeElement = (0, $k50bp$getActiveElement)(ownerDocument);\n if ((0, $507fabe10e71c6fb$export$630ff653c5ada6a9)() === 'virtual') {\n let lastFocusedElement = activeElement;\n (0, $k50bp$runAfterTransition)(()=>{\n // If focus did not move and the element is still in the document, focus it.\n if ((0, $k50bp$getActiveElement)(ownerDocument) === lastFocusedElement && element.isConnected) (0, $k50bp$focusWithoutScrolling)(element);\n });\n } else (0, $k50bp$focusWithoutScrolling)(element);\n}\n\n\nexport {$3ad3f6e1647bc98d$export$80f3e147d781571c as focusSafely};\n//# sourceMappingURL=focusSafely.module.js.map\n"],"names":["$3ad3f6e1647bc98d$export$80f3e147d781571c","element","ownerDocument","$k50bp$getOwnerDocument","activeElement","$k50bp$getActiveElement","$507fabe10e71c6fb$export$630ff653c5ada6a9","lastFocusedElement","$k50bp$runAfterTransition","$k50bp$focusWithoutScrolling"],"mappings":"2JAeA,SAASA,EAA0CC,EAAS,CAMxD,MAAMC,EAAoBC,mBAAyBF,CAAO,EACpDG,EAAoBC,mBAAyBH,CAAa,EAChE,GAAQI,EAAAA,uBAA4C,IAAK,UAAW,CAChE,IAAIC,EAAqBH,EACrBI,EAAyB,mBAAE,IAAI,CAEvBH,EAAAA,iBAAyBH,CAAa,IAAMK,GAAsBN,EAAQ,aAAiBQ,wBAA8BR,CAAO,CACpJ,CAAS,CACT,MAAeQ,EAAAA,sBAA8BR,CAAO,CACpD","x_google_ignoreList":[0]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { getInteractionModality as i } from "./useFocusVisible.es.js";
|
|
2
|
-
import { getOwnerDocument as r, getActiveElement as o, runAfterTransition as a, focusWithoutScrolling as c } from "@react-aria/utils";
|
|
3
|
-
function l(t) {
|
|
4
|
-
const e = r(t), n = o(e);
|
|
5
|
-
if (i() === "virtual") {
|
|
6
|
-
let f = n;
|
|
7
|
-
a(() => {
|
|
8
|
-
o(e) === f && t.isConnected && c(t);
|
|
9
|
-
});
|
|
10
|
-
} else c(t);
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
l as focusSafely
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=focusSafely.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"focusSafely.es.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/focusSafely.mjs"],"sourcesContent":["import {getInteractionModality as $507fabe10e71c6fb$export$630ff653c5ada6a9} from \"./useFocusVisible.mjs\";\nimport {getOwnerDocument as $k50bp$getOwnerDocument, getActiveElement as $k50bp$getActiveElement, runAfterTransition as $k50bp$runAfterTransition, focusWithoutScrolling as $k50bp$focusWithoutScrolling} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the 'License');\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $3ad3f6e1647bc98d$export$80f3e147d781571c(element) {\n // If the user is interacting with a virtual cursor, e.g. screen reader, then\n // wait until after any animated transitions that are currently occurring on\n // the page before shifting focus. This avoids issues with VoiceOver on iOS\n // causing the page to scroll when moving focus if the element is transitioning\n // from off the screen.\n const ownerDocument = (0, $k50bp$getOwnerDocument)(element);\n const activeElement = (0, $k50bp$getActiveElement)(ownerDocument);\n if ((0, $507fabe10e71c6fb$export$630ff653c5ada6a9)() === 'virtual') {\n let lastFocusedElement = activeElement;\n (0, $k50bp$runAfterTransition)(()=>{\n // If focus did not move and the element is still in the document, focus it.\n if ((0, $k50bp$getActiveElement)(ownerDocument) === lastFocusedElement && element.isConnected) (0, $k50bp$focusWithoutScrolling)(element);\n });\n } else (0, $k50bp$focusWithoutScrolling)(element);\n}\n\n\nexport {$3ad3f6e1647bc98d$export$80f3e147d781571c as focusSafely};\n//# sourceMappingURL=focusSafely.module.js.map\n"],"names":["$3ad3f6e1647bc98d$export$80f3e147d781571c","element","ownerDocument","$k50bp$getOwnerDocument","activeElement","$k50bp$getActiveElement","$507fabe10e71c6fb$export$630ff653c5ada6a9","lastFocusedElement","$k50bp$runAfterTransition","$k50bp$focusWithoutScrolling"],"mappings":";;AAeA,SAASA,EAA0CC,GAAS;AAMxD,QAAMC,IAAoBC,EAAyBF,CAAO,GACpDG,IAAoBC,EAAyBH,CAAa;AAChE,MAAQI,EAA4C,MAAK,WAAW;AAChE,QAAIC,IAAqBH;AACzB,IAAII,EAA2B,MAAI;AAE/B,MAAQH,EAAyBH,CAAa,MAAMK,KAAsBN,EAAQ,eAAiBQ,EAA8BR,CAAO;AAAA,IACpJ,CAAS;AAAA,EACT,MAAW,CAAIQ,EAA8BR,CAAO;AACpD;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@react-aria/utils");let l="default",i="",s=new WeakMap;function o(e){if(n.isIOS()){if(l==="default"){const t=n.getOwnerDocument(e);i=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}l="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";s.set(e,e.style[t]),e.style[t]="none"}}function d(e){if(n.isIOS()){if(l!=="disabled")return;l="restoring",setTimeout(()=>{n.runAfterTransition(()=>{if(l==="restoring"){const t=n.getOwnerDocument(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=i||""),i="",l="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&s.has(e)){let t=s.get(e),c="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[c]==="none"&&(e.style[c]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),s.delete(e)}}exports.disableTextSelection=o;exports.restoreTextSelection=d;
|
|
2
|
-
//# sourceMappingURL=textSelection.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"textSelection.cjs.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/textSelection.mjs"],"sourcesContent":["import {isIOS as $7R18e$isIOS, getOwnerDocument as $7R18e$getOwnerDocument, runAfterTransition as $7R18e$runAfterTransition} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n// Note that state only matters here for iOS. Non-iOS gets user-select: none applied to the target element\n// rather than at the document level so we just need to apply/remove user-select: none for each pressed element individually\nlet $14c0b72509d70225$var$state = 'default';\nlet $14c0b72509d70225$var$savedUserSelect = '';\nlet $14c0b72509d70225$var$modifiedElementMap = new WeakMap();\nfunction $14c0b72509d70225$export$16a4697467175487(target) {\n if ((0, $7R18e$isIOS)()) {\n if ($14c0b72509d70225$var$state === 'default') {\n const documentObject = (0, $7R18e$getOwnerDocument)(target);\n $14c0b72509d70225$var$savedUserSelect = documentObject.documentElement.style.webkitUserSelect;\n documentObject.documentElement.style.webkitUserSelect = 'none';\n }\n $14c0b72509d70225$var$state = 'disabled';\n } else if (target instanceof HTMLElement || target instanceof SVGElement) {\n // If not iOS, store the target's original user-select and change to user-select: none\n // Ignore state since it doesn't apply for non iOS\n let property = 'userSelect' in target.style ? 'userSelect' : 'webkitUserSelect';\n $14c0b72509d70225$var$modifiedElementMap.set(target, target.style[property]);\n target.style[property] = 'none';\n }\n}\nfunction $14c0b72509d70225$export$b0d6fa1ab32e3295(target) {\n if ((0, $7R18e$isIOS)()) {\n // If the state is already default, there's nothing to do.\n // If it is restoring, then there's no need to queue a second restore.\n if ($14c0b72509d70225$var$state !== 'disabled') return;\n $14c0b72509d70225$var$state = 'restoring';\n // There appears to be a delay on iOS where selection still might occur\n // after pointer up, so wait a bit before removing user-select.\n setTimeout(()=>{\n // Wait for any CSS transitions to complete so we don't recompute style\n // for the whole page in the middle of the animation and cause jank.\n (0, $7R18e$runAfterTransition)(()=>{\n // Avoid race conditions\n if ($14c0b72509d70225$var$state === 'restoring') {\n const documentObject = (0, $7R18e$getOwnerDocument)(target);\n if (documentObject.documentElement.style.webkitUserSelect === 'none') documentObject.documentElement.style.webkitUserSelect = $14c0b72509d70225$var$savedUserSelect || '';\n $14c0b72509d70225$var$savedUserSelect = '';\n $14c0b72509d70225$var$state = 'default';\n }\n });\n }, 300);\n } else if (target instanceof HTMLElement || target instanceof SVGElement) // If not iOS, restore the target's original user-select if any\n // Ignore state since it doesn't apply for non iOS\n {\n if (target && $14c0b72509d70225$var$modifiedElementMap.has(target)) {\n let targetOldUserSelect = $14c0b72509d70225$var$modifiedElementMap.get(target);\n let property = 'userSelect' in target.style ? 'userSelect' : 'webkitUserSelect';\n if (target.style[property] === 'none') target.style[property] = targetOldUserSelect;\n if (target.getAttribute('style') === '') target.removeAttribute('style');\n $14c0b72509d70225$var$modifiedElementMap.delete(target);\n }\n }\n}\n\n\nexport {$14c0b72509d70225$export$16a4697467175487 as disableTextSelection, $14c0b72509d70225$export$b0d6fa1ab32e3295 as restoreTextSelection};\n//# sourceMappingURL=textSelection.module.js.map\n"],"names":["$14c0b72509d70225$var$state","$14c0b72509d70225$var$savedUserSelect","$14c0b72509d70225$var$modifiedElementMap","$14c0b72509d70225$export$16a4697467175487","target","$7R18e$isIOS","documentObject","$7R18e$getOwnerDocument","property","$14c0b72509d70225$export$b0d6fa1ab32e3295","$7R18e$runAfterTransition","targetOldUserSelect"],"mappings":"qHAeA,IAAIA,EAA8B,UAC9BC,EAAwC,GACxCC,EAA2C,IAAI,QACnD,SAASC,EAA0CC,EAAQ,CACvD,GAAQC,EAAY,MAAA,EAAK,CACrB,GAAIL,IAAgC,UAAW,CAC3C,MAAMM,EAAqBC,mBAAyBH,CAAM,EAC1DH,EAAwCK,EAAe,gBAAgB,MAAM,iBAC7EA,EAAe,gBAAgB,MAAM,iBAAmB,MAC3D,CACDN,EAA8B,UACjC,SAAUI,aAAkB,aAAeA,aAAkB,WAAY,CAGtE,IAAII,EAAW,eAAgBJ,EAAO,MAAQ,aAAe,mBAC7DF,EAAyC,IAAIE,EAAQA,EAAO,MAAMI,CAAQ,CAAC,EAC3EJ,EAAO,MAAMI,CAAQ,EAAI,MAC5B,CACL,CACA,SAASC,EAA0CL,EAAQ,CACvD,GAAQC,EAAY,MAAA,EAAK,CAGrB,GAAIL,IAAgC,WAAY,OAChDA,EAA8B,YAG9B,WAAW,IAAI,CAGPU,EAAyB,mBAAE,IAAI,CAE/B,GAAIV,IAAgC,YAAa,CAC7C,MAAMM,EAAqBC,mBAAyBH,CAAM,EACtDE,EAAe,gBAAgB,MAAM,mBAAqB,SAAQA,EAAe,gBAAgB,MAAM,iBAAmBL,GAAyC,IACvKA,EAAwC,GACxCD,EAA8B,SACjC,CACjB,CAAa,CACJ,EAAE,GAAG,CACT,UAAUI,aAAkB,aAAeA,aAAkB,aAGtDA,GAAUF,EAAyC,IAAIE,CAAM,EAAG,CAChE,IAAIO,EAAsBT,EAAyC,IAAIE,CAAM,EACzEI,EAAW,eAAgBJ,EAAO,MAAQ,aAAe,mBACzDA,EAAO,MAAMI,CAAQ,IAAM,SAAQJ,EAAO,MAAMI,CAAQ,EAAIG,GAC5DP,EAAO,aAAa,OAAO,IAAM,IAAIA,EAAO,gBAAgB,OAAO,EACvEF,EAAyC,OAAOE,CAAM,CACzD,CAET","x_google_ignoreList":[0]}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { isIOS as c, getOwnerDocument as o, runAfterTransition as d } from "@react-aria/utils";
|
|
2
|
-
let l = "default", s = "", n = /* @__PURE__ */ new WeakMap();
|
|
3
|
-
function r(e) {
|
|
4
|
-
if (c()) {
|
|
5
|
-
if (l === "default") {
|
|
6
|
-
const t = o(e);
|
|
7
|
-
s = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
|
|
8
|
-
}
|
|
9
|
-
l = "disabled";
|
|
10
|
-
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
|
|
11
|
-
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
|
|
12
|
-
n.set(e, e.style[t]), e.style[t] = "none";
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
function m(e) {
|
|
16
|
-
if (c()) {
|
|
17
|
-
if (l !== "disabled") return;
|
|
18
|
-
l = "restoring", setTimeout(() => {
|
|
19
|
-
d(() => {
|
|
20
|
-
if (l === "restoring") {
|
|
21
|
-
const t = o(e);
|
|
22
|
-
t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = s || ""), s = "", l = "default";
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}, 300);
|
|
26
|
-
} else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && n.has(e)) {
|
|
27
|
-
let t = n.get(e), i = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
|
|
28
|
-
e.style[i] === "none" && (e.style[i] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), n.delete(e);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
r as disableTextSelection,
|
|
33
|
-
m as restoreTextSelection
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=textSelection.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"textSelection.es.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/textSelection.mjs"],"sourcesContent":["import {isIOS as $7R18e$isIOS, getOwnerDocument as $7R18e$getOwnerDocument, runAfterTransition as $7R18e$runAfterTransition} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n// Note that state only matters here for iOS. Non-iOS gets user-select: none applied to the target element\n// rather than at the document level so we just need to apply/remove user-select: none for each pressed element individually\nlet $14c0b72509d70225$var$state = 'default';\nlet $14c0b72509d70225$var$savedUserSelect = '';\nlet $14c0b72509d70225$var$modifiedElementMap = new WeakMap();\nfunction $14c0b72509d70225$export$16a4697467175487(target) {\n if ((0, $7R18e$isIOS)()) {\n if ($14c0b72509d70225$var$state === 'default') {\n const documentObject = (0, $7R18e$getOwnerDocument)(target);\n $14c0b72509d70225$var$savedUserSelect = documentObject.documentElement.style.webkitUserSelect;\n documentObject.documentElement.style.webkitUserSelect = 'none';\n }\n $14c0b72509d70225$var$state = 'disabled';\n } else if (target instanceof HTMLElement || target instanceof SVGElement) {\n // If not iOS, store the target's original user-select and change to user-select: none\n // Ignore state since it doesn't apply for non iOS\n let property = 'userSelect' in target.style ? 'userSelect' : 'webkitUserSelect';\n $14c0b72509d70225$var$modifiedElementMap.set(target, target.style[property]);\n target.style[property] = 'none';\n }\n}\nfunction $14c0b72509d70225$export$b0d6fa1ab32e3295(target) {\n if ((0, $7R18e$isIOS)()) {\n // If the state is already default, there's nothing to do.\n // If it is restoring, then there's no need to queue a second restore.\n if ($14c0b72509d70225$var$state !== 'disabled') return;\n $14c0b72509d70225$var$state = 'restoring';\n // There appears to be a delay on iOS where selection still might occur\n // after pointer up, so wait a bit before removing user-select.\n setTimeout(()=>{\n // Wait for any CSS transitions to complete so we don't recompute style\n // for the whole page in the middle of the animation and cause jank.\n (0, $7R18e$runAfterTransition)(()=>{\n // Avoid race conditions\n if ($14c0b72509d70225$var$state === 'restoring') {\n const documentObject = (0, $7R18e$getOwnerDocument)(target);\n if (documentObject.documentElement.style.webkitUserSelect === 'none') documentObject.documentElement.style.webkitUserSelect = $14c0b72509d70225$var$savedUserSelect || '';\n $14c0b72509d70225$var$savedUserSelect = '';\n $14c0b72509d70225$var$state = 'default';\n }\n });\n }, 300);\n } else if (target instanceof HTMLElement || target instanceof SVGElement) // If not iOS, restore the target's original user-select if any\n // Ignore state since it doesn't apply for non iOS\n {\n if (target && $14c0b72509d70225$var$modifiedElementMap.has(target)) {\n let targetOldUserSelect = $14c0b72509d70225$var$modifiedElementMap.get(target);\n let property = 'userSelect' in target.style ? 'userSelect' : 'webkitUserSelect';\n if (target.style[property] === 'none') target.style[property] = targetOldUserSelect;\n if (target.getAttribute('style') === '') target.removeAttribute('style');\n $14c0b72509d70225$var$modifiedElementMap.delete(target);\n }\n }\n}\n\n\nexport {$14c0b72509d70225$export$16a4697467175487 as disableTextSelection, $14c0b72509d70225$export$b0d6fa1ab32e3295 as restoreTextSelection};\n//# sourceMappingURL=textSelection.module.js.map\n"],"names":["$14c0b72509d70225$var$state","$14c0b72509d70225$var$savedUserSelect","$14c0b72509d70225$var$modifiedElementMap","$14c0b72509d70225$export$16a4697467175487","target","$7R18e$isIOS","documentObject","$7R18e$getOwnerDocument","property","$14c0b72509d70225$export$b0d6fa1ab32e3295","$7R18e$runAfterTransition","targetOldUserSelect"],"mappings":";AAeA,IAAIA,IAA8B,WAC9BC,IAAwC,IACxCC,IAA2C,oBAAI;AACnD,SAASC,EAA0CC,GAAQ;AACvD,MAAQC,EAAY,GAAK;AACrB,QAAIL,MAAgC,WAAW;AAC3C,YAAMM,IAAqBC,EAAyBH,CAAM;AAC1D,MAAAH,IAAwCK,EAAe,gBAAgB,MAAM,kBAC7EA,EAAe,gBAAgB,MAAM,mBAAmB;AAAA,IAC3D;AACD,IAAAN,IAA8B;AAAA,EACjC,WAAUI,aAAkB,eAAeA,aAAkB,YAAY;AAGtE,QAAII,IAAW,gBAAgBJ,EAAO,QAAQ,eAAe;AAC7D,IAAAF,EAAyC,IAAIE,GAAQA,EAAO,MAAMI,CAAQ,CAAC,GAC3EJ,EAAO,MAAMI,CAAQ,IAAI;AAAA,EAC5B;AACL;AACA,SAASC,EAA0CL,GAAQ;AACvD,MAAQC,EAAY,GAAK;AAGrB,QAAIL,MAAgC,WAAY;AAChD,IAAAA,IAA8B,aAG9B,WAAW,MAAI;AAGX,MAAIU,EAA2B,MAAI;AAE/B,YAAIV,MAAgC,aAAa;AAC7C,gBAAMM,IAAqBC,EAAyBH,CAAM;AAC1D,UAAIE,EAAe,gBAAgB,MAAM,qBAAqB,WAAQA,EAAe,gBAAgB,MAAM,mBAAmBL,KAAyC,KACvKA,IAAwC,IACxCD,IAA8B;AAAA,QACjC;AAAA,MACjB,CAAa;AAAA,IACJ,GAAE,GAAG;AAAA,EACT,YAAUI,aAAkB,eAAeA,aAAkB,eAGtDA,KAAUF,EAAyC,IAAIE,CAAM,GAAG;AAChE,QAAIO,IAAsBT,EAAyC,IAAIE,CAAM,GACzEI,IAAW,gBAAgBJ,EAAO,QAAQ,eAAe;AAC7D,IAAIA,EAAO,MAAMI,CAAQ,MAAM,WAAQJ,EAAO,MAAMI,CAAQ,IAAIG,IAC5DP,EAAO,aAAa,OAAO,MAAM,MAAIA,EAAO,gBAAgB,OAAO,GACvEF,EAAyC,OAAOE,CAAM;AAAA,EACzD;AAET;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./utils.cjs.js"),a=require("react"),r=require("@react-aria/utils");function v(l){let{isDisabled:u,onFocus:o,onBlur:n,onFocusChange:t}=l;const c=a.useCallback(e=>{if(e.target===e.currentTarget)return n&&n(e),t&&t(!1),!0},[n,t]),s=g.useSyntheticBlurEvent(c),d=a.useCallback(e=>{const i=r.getOwnerDocument(e.target),f=i?r.getActiveElement(i):r.getActiveElement();e.target===e.currentTarget&&f===r.getEventTarget(e.nativeEvent)&&(o&&o(e),t&&t(!0),s(e))},[t,o,s]);return{focusProps:{onFocus:!u&&(o||t||n)?d:void 0,onBlur:!u&&(n||t)?c:void 0}}}exports.useFocus=v;
|
|
2
|
-
//# sourceMappingURL=useFocus.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFocus.cjs.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/useFocus.mjs"],"sourcesContent":["import {useSyntheticBlurEvent as $8a9cb279dc87e130$export$715c682d09d639cc} from \"./utils.mjs\";\nimport {useCallback as $hf0lj$useCallback} from \"react\";\nimport {getOwnerDocument as $hf0lj$getOwnerDocument, getActiveElement as $hf0lj$getActiveElement, getEventTarget as $hf0lj$getEventTarget} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\n\nfunction $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {\n let { isDisabled: isDisabled, onFocus: onFocusProp, onBlur: onBlurProp, onFocusChange: onFocusChange } = props;\n const onBlur = (0, $hf0lj$useCallback)((e)=>{\n if (e.target === e.currentTarget) {\n if (onBlurProp) onBlurProp(e);\n if (onFocusChange) onFocusChange(false);\n return true;\n }\n }, [\n onBlurProp,\n onFocusChange\n ]);\n const onSyntheticFocus = (0, $8a9cb279dc87e130$export$715c682d09d639cc)(onBlur);\n const onFocus = (0, $hf0lj$useCallback)((e)=>{\n // Double check that document.activeElement actually matches e.target in case a previously chained\n // focus handler already moved focus somewhere else.\n const ownerDocument = (0, $hf0lj$getOwnerDocument)(e.target);\n const activeElement = ownerDocument ? (0, $hf0lj$getActiveElement)(ownerDocument) : (0, $hf0lj$getActiveElement)();\n if (e.target === e.currentTarget && activeElement === (0, $hf0lj$getEventTarget)(e.nativeEvent)) {\n if (onFocusProp) onFocusProp(e);\n if (onFocusChange) onFocusChange(true);\n onSyntheticFocus(e);\n }\n }, [\n onFocusChange,\n onFocusProp,\n onSyntheticFocus\n ]);\n return {\n focusProps: {\n onFocus: !isDisabled && (onFocusProp || onFocusChange || onBlurProp) ? onFocus : undefined,\n onBlur: !isDisabled && (onBlurProp || onFocusChange) ? onBlur : undefined\n }\n };\n}\n\n\nexport {$a1ea59d68270f0dd$export$f8168d8dd8fd66e6 as useFocus};\n//# sourceMappingURL=useFocus.module.js.map\n"],"names":["$a1ea59d68270f0dd$export$f8168d8dd8fd66e6","props","isDisabled","onFocusProp","onBlurProp","onFocusChange","onBlur","$hf0lj$useCallback","onSyntheticFocus","$8a9cb279dc87e130$export$715c682d09d639cc","onFocus","ownerDocument","$hf0lj$getOwnerDocument","activeElement","$hf0lj$getActiveElement","$hf0lj$getEventTarget"],"mappings":"oKAqBA,SAASA,EAA0CC,EAAO,CACtD,GAAI,CAAE,WAAYC,EAAY,QAASC,EAAa,OAAQC,EAAY,cAAeC,CAAe,EAAGJ,EACzG,MAAMK,EAAaC,cAAqB,GAAI,CACxC,GAAI,EAAE,SAAW,EAAE,cACf,OAAIH,GAAYA,EAAW,CAAC,EACxBC,GAAeA,EAAc,EAAK,EAC/B,EAEnB,EAAO,CACCD,EACAC,CACR,CAAK,EACKG,EAAuBC,wBAA2CH,CAAM,EACxEI,EAAcH,cAAqB,GAAI,CAGzC,MAAMI,EAAoBC,EAAAA,iBAAyB,EAAE,MAAM,EACrDC,EAAgBF,EAAoBG,EAAAA,iBAAyBH,CAAa,EAAQG,EAAAA,mBACpF,EAAE,SAAW,EAAE,eAAiBD,IAAsBE,EAAqB,eAAE,EAAE,WAAW,IACtFZ,GAAaA,EAAY,CAAC,EAC1BE,GAAeA,EAAc,EAAI,EACrCG,EAAiB,CAAC,EAE9B,EAAO,CACCH,EACAF,EACAK,CACR,CAAK,EACD,MAAO,CACH,WAAY,CACR,QAAS,CAACN,IAAeC,GAAeE,GAAiBD,GAAcM,EAAU,OACjF,OAAQ,CAACR,IAAeE,GAAcC,GAAiBC,EAAS,MACnE,CACT,CACA","x_google_ignoreList":[0]}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { useSyntheticBlurEvent as g } from "./utils.es.js";
|
|
2
|
-
import { useCallback as i } from "react";
|
|
3
|
-
import { getOwnerDocument as m, getActiveElement as a, getEventTarget as p } from "@react-aria/utils";
|
|
4
|
-
function B(f) {
|
|
5
|
-
let { isDisabled: r, onFocus: n, onBlur: o, onFocusChange: e } = f;
|
|
6
|
-
const c = i((t) => {
|
|
7
|
-
if (t.target === t.currentTarget)
|
|
8
|
-
return o && o(t), e && e(!1), !0;
|
|
9
|
-
}, [
|
|
10
|
-
o,
|
|
11
|
-
e
|
|
12
|
-
]), u = g(c), d = i((t) => {
|
|
13
|
-
const s = m(t.target), l = s ? a(s) : a();
|
|
14
|
-
t.target === t.currentTarget && l === p(t.nativeEvent) && (n && n(t), e && e(!0), u(t));
|
|
15
|
-
}, [
|
|
16
|
-
e,
|
|
17
|
-
n,
|
|
18
|
-
u
|
|
19
|
-
]);
|
|
20
|
-
return {
|
|
21
|
-
focusProps: {
|
|
22
|
-
onFocus: !r && (n || e || o) ? d : void 0,
|
|
23
|
-
onBlur: !r && (o || e) ? c : void 0
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
B as useFocus
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=useFocus.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFocus.es.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/useFocus.mjs"],"sourcesContent":["import {useSyntheticBlurEvent as $8a9cb279dc87e130$export$715c682d09d639cc} from \"./utils.mjs\";\nimport {useCallback as $hf0lj$useCallback} from \"react\";\nimport {getOwnerDocument as $hf0lj$getOwnerDocument, getActiveElement as $hf0lj$getActiveElement, getEventTarget as $hf0lj$getEventTarget} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\n\nfunction $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {\n let { isDisabled: isDisabled, onFocus: onFocusProp, onBlur: onBlurProp, onFocusChange: onFocusChange } = props;\n const onBlur = (0, $hf0lj$useCallback)((e)=>{\n if (e.target === e.currentTarget) {\n if (onBlurProp) onBlurProp(e);\n if (onFocusChange) onFocusChange(false);\n return true;\n }\n }, [\n onBlurProp,\n onFocusChange\n ]);\n const onSyntheticFocus = (0, $8a9cb279dc87e130$export$715c682d09d639cc)(onBlur);\n const onFocus = (0, $hf0lj$useCallback)((e)=>{\n // Double check that document.activeElement actually matches e.target in case a previously chained\n // focus handler already moved focus somewhere else.\n const ownerDocument = (0, $hf0lj$getOwnerDocument)(e.target);\n const activeElement = ownerDocument ? (0, $hf0lj$getActiveElement)(ownerDocument) : (0, $hf0lj$getActiveElement)();\n if (e.target === e.currentTarget && activeElement === (0, $hf0lj$getEventTarget)(e.nativeEvent)) {\n if (onFocusProp) onFocusProp(e);\n if (onFocusChange) onFocusChange(true);\n onSyntheticFocus(e);\n }\n }, [\n onFocusChange,\n onFocusProp,\n onSyntheticFocus\n ]);\n return {\n focusProps: {\n onFocus: !isDisabled && (onFocusProp || onFocusChange || onBlurProp) ? onFocus : undefined,\n onBlur: !isDisabled && (onBlurProp || onFocusChange) ? onBlur : undefined\n }\n };\n}\n\n\nexport {$a1ea59d68270f0dd$export$f8168d8dd8fd66e6 as useFocus};\n//# sourceMappingURL=useFocus.module.js.map\n"],"names":["$a1ea59d68270f0dd$export$f8168d8dd8fd66e6","props","isDisabled","onFocusProp","onBlurProp","onFocusChange","onBlur","$hf0lj$useCallback","e","onSyntheticFocus","$8a9cb279dc87e130$export$715c682d09d639cc","onFocus","ownerDocument","$hf0lj$getOwnerDocument","activeElement","$hf0lj$getActiveElement","$hf0lj$getEventTarget"],"mappings":";;;AAqBA,SAASA,EAA0CC,GAAO;AACtD,MAAI,EAAE,YAAYC,GAAY,SAASC,GAAa,QAAQC,GAAY,eAAeC,EAAe,IAAGJ;AACzG,QAAMK,IAAaC,EAAoB,CAACC,MAAI;AACxC,QAAIA,EAAE,WAAWA,EAAE;AACf,aAAIJ,KAAYA,EAAWI,CAAC,GACxBH,KAAeA,EAAc,EAAK,GAC/B;AAAA,EAEnB,GAAO;AAAA,IACCD;AAAA,IACAC;AAAA,EACR,CAAK,GACKI,IAAuBC,EAA2CJ,CAAM,GACxEK,IAAcJ,EAAoB,CAACC,MAAI;AAGzC,UAAMI,IAAoBC,EAAyBL,EAAE,MAAM,GACrDM,IAAgBF,IAAoBG,EAAyBH,CAAa,IAAQG;AACxF,IAAIP,EAAE,WAAWA,EAAE,iBAAiBM,MAAsBE,EAAuBR,EAAE,WAAW,MACtFL,KAAaA,EAAYK,CAAC,GAC1BH,KAAeA,EAAc,EAAI,GACrCI,EAAiBD,CAAC;AAAA,EAE9B,GAAO;AAAA,IACCH;AAAA,IACAF;AAAA,IACAM;AAAA,EACR,CAAK;AACD,SAAO;AAAA,IACH,YAAY;AAAA,MACR,SAAS,CAACP,MAAeC,KAAeE,KAAiBD,KAAcO,IAAU;AAAA,MACjF,QAAQ,CAACT,MAAeE,KAAcC,KAAiBC,IAAS;AAAA,IACnE;AAAA,EACT;AACA;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./utils.cjs.js"),i=require("@react-aria/utils");let a=null,y=new Set,f=new Map,u=!1,c=!1;function s(e,n){for(let t of y)t(e,n)}function L(e){return!(e.metaKey||!i.isMac()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function d(e){u=!0,L(e)&&(a="keyboard",s("keyboard",e))}function o(e){a="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(u=!0,s("pointer",e))}function b(e){i.isVirtualClick(e)&&(u=!0,a="virtual")}function $(e){e.target===window||e.target===document||l.ignoreFocusEvent||!e.isTrusted||(!u&&!c&&(a="virtual",s("virtual",e)),u=!1,c=!1)}function p(){l.ignoreFocusEvent||(u=!1,c=!0)}function v(e){if(typeof window>"u"||typeof document>"u"||f.get(i.getOwnerWindow(e)))return;const n=i.getOwnerWindow(e),t=i.getOwnerDocument(e);let r=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){u=!0,r.apply(this,arguments)},t.addEventListener("keydown",d,!0),t.addEventListener("keyup",d,!0),t.addEventListener("click",b,!0),n.addEventListener("focus",$,!0),n.addEventListener("blur",p,!1),typeof PointerEvent<"u"?(t.addEventListener("pointerdown",o,!0),t.addEventListener("pointermove",o,!0),t.addEventListener("pointerup",o,!0)):process.env.NODE_ENV==="test"&&(t.addEventListener("mousedown",o,!0),t.addEventListener("mousemove",o,!0),t.addEventListener("mouseup",o,!0)),n.addEventListener("beforeunload",()=>{E(e)},{once:!0}),f.set(n,{focus:r})}const E=(e,n)=>{const t=i.getOwnerWindow(e),r=i.getOwnerDocument(e);n&&r.removeEventListener("DOMContentLoaded",n),f.has(t)&&(t.HTMLElement.prototype.focus=f.get(t).focus,r.removeEventListener("keydown",d,!0),r.removeEventListener("keyup",d,!0),r.removeEventListener("click",b,!0),t.removeEventListener("focus",$,!0),t.removeEventListener("blur",p,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",o,!0),r.removeEventListener("pointermove",o,!0),r.removeEventListener("pointerup",o,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",o,!0),r.removeEventListener("mousemove",o,!0),r.removeEventListener("mouseup",o,!0)),f.delete(t))};function w(e){const n=i.getOwnerDocument(e);let t;return n.readyState!=="loading"?v(e):(t=()=>{v(e)},n.addEventListener("DOMContentLoaded",t)),()=>E(e,t)}typeof document<"u"&&w();function m(){return a!=="pointer"}function g(){return a}function O(e){a=e,s(e,null)}exports.addWindowFocusTracking=w;exports.getInteractionModality=g;exports.hasSetupGlobalListeners=f;exports.isFocusVisible=m;exports.setInteractionModality=O;
|
|
2
|
-
//# sourceMappingURL=useFocusVisible.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFocusVisible.cjs.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/useFocusVisible.mjs"],"sourcesContent":["import {ignoreFocusEvent as $8a9cb279dc87e130$export$fda7da73ab5d4c48} from \"./utils.mjs\";\nimport {isMac as $28AnR$isMac, isVirtualClick as $28AnR$isVirtualClick, getOwnerWindow as $28AnR$getOwnerWindow, getOwnerDocument as $28AnR$getOwnerDocument} from \"@react-aria/utils\";\nimport {useState as $28AnR$useState, useEffect as $28AnR$useEffect} from \"react\";\nimport {useIsSSR as $28AnR$useIsSSR} from \"@react-aria/ssr\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\n\n\nlet $507fabe10e71c6fb$var$currentModality = null;\nlet $507fabe10e71c6fb$var$changeHandlers = new Set();\nlet $507fabe10e71c6fb$export$d90243b58daecda7 = new Map(); // We use a map here to support setting event listeners across multiple document objects.\nlet $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\nlet $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;\n// Only Tab or Esc keys will make focus visible on text input elements\nconst $507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS = {\n Tab: true,\n Escape: true\n};\nfunction $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) {\n for (let handler of $507fabe10e71c6fb$var$changeHandlers)handler(modality, e);\n}\n/**\n * Helper function to determine if a KeyboardEvent is unmodified and could make keyboard focus styles visible.\n */ function $507fabe10e71c6fb$var$isValidKey(e) {\n // Control and Shift keys trigger when navigating back to the tab with keyboard.\n return !(e.metaKey || !(0, $28AnR$isMac)() && e.altKey || e.ctrlKey || e.key === 'Control' || e.key === 'Shift' || e.key === 'Meta');\n}\nfunction $507fabe10e71c6fb$var$handleKeyboardEvent(e) {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n if ($507fabe10e71c6fb$var$isValidKey(e)) {\n $507fabe10e71c6fb$var$currentModality = 'keyboard';\n $507fabe10e71c6fb$var$triggerChangeHandlers('keyboard', e);\n }\n}\nfunction $507fabe10e71c6fb$var$handlePointerEvent(e) {\n $507fabe10e71c6fb$var$currentModality = 'pointer';\n if (e.type === 'mousedown' || e.type === 'pointerdown') {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n $507fabe10e71c6fb$var$triggerChangeHandlers('pointer', e);\n }\n}\nfunction $507fabe10e71c6fb$var$handleClickEvent(e) {\n if ((0, $28AnR$isVirtualClick)(e)) {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n $507fabe10e71c6fb$var$currentModality = 'virtual';\n }\n}\nfunction $507fabe10e71c6fb$var$handleFocusEvent(e) {\n // Firefox fires two extra focus events when the user first clicks into an iframe:\n // first on the window, then on the document. We ignore these events so they don't\n // cause keyboard focus rings to appear.\n if (e.target === window || e.target === document || (0, $8a9cb279dc87e130$export$fda7da73ab5d4c48) || !e.isTrusted) return;\n // If a focus event occurs without a preceding keyboard or pointer event, switch to virtual modality.\n // This occurs, for example, when navigating a form with the next/previous buttons on iOS.\n if (!$507fabe10e71c6fb$var$hasEventBeforeFocus && !$507fabe10e71c6fb$var$hasBlurredWindowRecently) {\n $507fabe10e71c6fb$var$currentModality = 'virtual';\n $507fabe10e71c6fb$var$triggerChangeHandlers('virtual', e);\n }\n $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\n $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;\n}\nfunction $507fabe10e71c6fb$var$handleWindowBlur() {\n if (0, $8a9cb279dc87e130$export$fda7da73ab5d4c48) return;\n // When the window is blurred, reset state. This is necessary when tabbing out of the window,\n // for example, since a subsequent focus event won't be fired.\n $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\n $507fabe10e71c6fb$var$hasBlurredWindowRecently = true;\n}\n/**\n * Setup global event listeners to control when keyboard focus style should be visible.\n */ function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {\n if (typeof window === 'undefined' || typeof document === 'undefined' || $507fabe10e71c6fb$export$d90243b58daecda7.get((0, $28AnR$getOwnerWindow)(element))) return;\n const windowObject = (0, $28AnR$getOwnerWindow)(element);\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n // Programmatic focus() calls shouldn't affect the current input modality.\n // However, we need to detect other cases when a focus event occurs without\n // a preceding user event (e.g. screen reader focus). Overriding the focus\n // method on HTMLElement.prototype is a bit hacky, but works.\n let focus = windowObject.HTMLElement.prototype.focus;\n windowObject.HTMLElement.prototype.focus = function() {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n focus.apply(this, arguments);\n };\n documentObject.addEventListener('keydown', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.addEventListener('keyup', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.addEventListener('click', $507fabe10e71c6fb$var$handleClickEvent, true);\n // Register focus events on the window so they are sure to happen\n // before React's event listeners (registered on the document).\n windowObject.addEventListener('focus', $507fabe10e71c6fb$var$handleFocusEvent, true);\n windowObject.addEventListener('blur', $507fabe10e71c6fb$var$handleWindowBlur, false);\n if (typeof PointerEvent !== 'undefined') {\n documentObject.addEventListener('pointerdown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('pointermove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('pointerup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n } else if (process.env.NODE_ENV === 'test') {\n documentObject.addEventListener('mousedown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('mousemove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('mouseup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n }\n // Add unmount handler\n windowObject.addEventListener('beforeunload', ()=>{\n $507fabe10e71c6fb$var$tearDownWindowFocusTracking(element);\n }, {\n once: true\n });\n $507fabe10e71c6fb$export$d90243b58daecda7.set(windowObject, {\n focus: focus\n });\n}\nconst $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element, loadListener)=>{\n const windowObject = (0, $28AnR$getOwnerWindow)(element);\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n if (loadListener) documentObject.removeEventListener('DOMContentLoaded', loadListener);\n if (!$507fabe10e71c6fb$export$d90243b58daecda7.has(windowObject)) return;\n windowObject.HTMLElement.prototype.focus = $507fabe10e71c6fb$export$d90243b58daecda7.get(windowObject).focus;\n documentObject.removeEventListener('keydown', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.removeEventListener('keyup', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.removeEventListener('click', $507fabe10e71c6fb$var$handleClickEvent, true);\n windowObject.removeEventListener('focus', $507fabe10e71c6fb$var$handleFocusEvent, true);\n windowObject.removeEventListener('blur', $507fabe10e71c6fb$var$handleWindowBlur, false);\n if (typeof PointerEvent !== 'undefined') {\n documentObject.removeEventListener('pointerdown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('pointermove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('pointerup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n } else if (process.env.NODE_ENV === 'test') {\n documentObject.removeEventListener('mousedown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('mousemove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('mouseup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n }\n $507fabe10e71c6fb$export$d90243b58daecda7.delete(windowObject);\n};\nfunction $507fabe10e71c6fb$export$2f1888112f558a7d(element) {\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n let loadListener;\n if (documentObject.readyState !== 'loading') $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);\n else {\n loadListener = ()=>{\n $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);\n };\n documentObject.addEventListener('DOMContentLoaded', loadListener);\n }\n return ()=>$507fabe10e71c6fb$var$tearDownWindowFocusTracking(element, loadListener);\n}\n// Server-side rendering does not have the document object defined\n// eslint-disable-next-line no-restricted-globals\nif (typeof document !== 'undefined') $507fabe10e71c6fb$export$2f1888112f558a7d();\nfunction $507fabe10e71c6fb$export$b9b3dfddab17db27() {\n return $507fabe10e71c6fb$var$currentModality !== 'pointer';\n}\nfunction $507fabe10e71c6fb$export$630ff653c5ada6a9() {\n return $507fabe10e71c6fb$var$currentModality;\n}\nfunction $507fabe10e71c6fb$export$8397ddfc504fdb9a(modality) {\n $507fabe10e71c6fb$var$currentModality = modality;\n $507fabe10e71c6fb$var$triggerChangeHandlers(modality, null);\n}\nfunction $507fabe10e71c6fb$export$98e20ec92f614cfe() {\n $507fabe10e71c6fb$var$setupGlobalFocusEvents();\n let [modality, setModality] = (0, $28AnR$useState)($507fabe10e71c6fb$var$currentModality);\n (0, $28AnR$useEffect)(()=>{\n let handler = ()=>{\n setModality($507fabe10e71c6fb$var$currentModality);\n };\n $507fabe10e71c6fb$var$changeHandlers.add(handler);\n return ()=>{\n $507fabe10e71c6fb$var$changeHandlers.delete(handler);\n };\n }, []);\n return (0, $28AnR$useIsSSR)() ? null : modality;\n}\nconst $507fabe10e71c6fb$var$nonTextInputTypes = new Set([\n 'checkbox',\n 'radio',\n 'range',\n 'color',\n 'file',\n 'image',\n 'button',\n 'submit',\n 'reset'\n]);\n/**\n * If this is attached to text input component, return if the event is a focus event (Tab/Escape keys pressed) so that\n * focus visible style can be properly set.\n */ function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {\n let document1 = (0, $28AnR$getOwnerDocument)(e === null || e === void 0 ? void 0 : e.target);\n const IHTMLInputElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;\n const IHTMLTextAreaElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;\n const IHTMLElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;\n const IKeyboardEvent = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;\n // For keyboard events that occur on a non-input element that will move focus into input element (aka ArrowLeft going from Datepicker button to the main input group)\n // we need to rely on the user passing isTextInput into here. This way we can skip toggling focus visiblity for said input element\n isTextInput = isTextInput || document1.activeElement instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(document1.activeElement.type) || document1.activeElement instanceof IHTMLTextAreaElement || document1.activeElement instanceof IHTMLElement && document1.activeElement.isContentEditable;\n return !(isTextInput && modality === 'keyboard' && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);\n}\nfunction $507fabe10e71c6fb$export$ffd9e5021c1fb2d6(props = {}) {\n let { isTextInput: isTextInput, autoFocus: autoFocus } = props;\n let [isFocusVisibleState, setFocusVisible] = (0, $28AnR$useState)(autoFocus || $507fabe10e71c6fb$export$b9b3dfddab17db27());\n $507fabe10e71c6fb$export$ec71b4b83ac08ec3((isFocusVisible)=>{\n setFocusVisible(isFocusVisible);\n }, [\n isTextInput\n ], {\n isTextInput: isTextInput\n });\n return {\n isFocusVisible: isFocusVisibleState\n };\n}\nfunction $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {\n $507fabe10e71c6fb$var$setupGlobalFocusEvents();\n (0, $28AnR$useEffect)(()=>{\n let handler = (modality, e)=>{\n // We want to early return for any keyboard events that occur inside text inputs EXCEPT for Tab and Escape\n if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(!!(opts === null || opts === void 0 ? void 0 : opts.isTextInput), modality, e)) return;\n fn($507fabe10e71c6fb$export$b9b3dfddab17db27());\n };\n $507fabe10e71c6fb$var$changeHandlers.add(handler);\n return ()=>{\n $507fabe10e71c6fb$var$changeHandlers.delete(handler);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n}\n\n\nexport {$507fabe10e71c6fb$export$d90243b58daecda7 as hasSetupGlobalListeners, $507fabe10e71c6fb$export$2f1888112f558a7d as addWindowFocusTracking, $507fabe10e71c6fb$export$b9b3dfddab17db27 as isFocusVisible, $507fabe10e71c6fb$export$630ff653c5ada6a9 as getInteractionModality, $507fabe10e71c6fb$export$8397ddfc504fdb9a as setInteractionModality, $507fabe10e71c6fb$export$98e20ec92f614cfe as useInteractionModality, $507fabe10e71c6fb$export$ffd9e5021c1fb2d6 as useFocusVisible, $507fabe10e71c6fb$export$ec71b4b83ac08ec3 as useFocusVisibleListener};\n//# sourceMappingURL=useFocusVisible.module.js.map\n"],"names":["$507fabe10e71c6fb$var$currentModality","$507fabe10e71c6fb$var$changeHandlers","$507fabe10e71c6fb$export$d90243b58daecda7","$507fabe10e71c6fb$var$hasEventBeforeFocus","$507fabe10e71c6fb$var$hasBlurredWindowRecently","$507fabe10e71c6fb$var$triggerChangeHandlers","modality","e","handler","$507fabe10e71c6fb$var$isValidKey","$28AnR$isMac","$507fabe10e71c6fb$var$handleKeyboardEvent","$507fabe10e71c6fb$var$handlePointerEvent","$507fabe10e71c6fb$var$handleClickEvent","$28AnR$isVirtualClick","$507fabe10e71c6fb$var$handleFocusEvent","$8a9cb279dc87e130$export$fda7da73ab5d4c48","$507fabe10e71c6fb$var$handleWindowBlur","$507fabe10e71c6fb$var$setupGlobalFocusEvents","element","$28AnR$getOwnerWindow","windowObject","documentObject","$28AnR$getOwnerDocument","focus","$507fabe10e71c6fb$var$tearDownWindowFocusTracking","loadListener","$507fabe10e71c6fb$export$2f1888112f558a7d","$507fabe10e71c6fb$export$b9b3dfddab17db27","$507fabe10e71c6fb$export$630ff653c5ada6a9","$507fabe10e71c6fb$export$8397ddfc504fdb9a"],"mappings":"iJAuBA,IAAIA,EAAwC,KACxCC,EAAuC,IAAI,IAC3CC,EAA4C,IAAI,IAChDC,EAA4C,GAC5CC,EAAiD,GAMrD,SAASC,EAA4CC,EAAUC,EAAG,CAC9D,QAASC,KAAWP,EAAqCO,EAAQF,EAAUC,CAAC,CAChF,CAGI,SAASE,EAAiC,EAAG,CAE7C,MAAO,EAAE,EAAE,SAAW,CAAKC,EAAY,MAAA,GAAO,EAAE,QAAU,EAAE,SAAW,EAAE,MAAQ,WAAa,EAAE,MAAQ,SAAW,EAAE,MAAQ,OACjI,CACA,SAASC,EAA0C,EAAG,CAClDR,EAA4C,GACxCM,EAAiC,CAAC,IAClCT,EAAwC,WACxCK,EAA4C,WAAY,CAAC,EAEjE,CACA,SAASO,EAAyC,EAAG,CACjDZ,EAAwC,WACpC,EAAE,OAAS,aAAe,EAAE,OAAS,iBACrCG,EAA4C,GAC5CE,EAA4C,UAAW,CAAC,EAEhE,CACA,SAASQ,EAAuC,EAAG,CACvCC,EAAAA,eAAuB,CAAC,IAC5BX,EAA4C,GAC5CH,EAAwC,UAEhD,CACA,SAASe,EAAuC,EAAG,CAI3C,EAAE,SAAW,QAAU,EAAE,SAAW,UAAgBC,oBAA8C,CAAC,EAAE,YAGrG,CAACb,GAA6C,CAACC,IAC/CJ,EAAwC,UACxCK,EAA4C,UAAW,CAAC,GAE5DF,EAA4C,GAC5CC,EAAiD,GACrD,CACA,SAASa,GAAyC,CACvCD,EAAyC,mBAGhDb,EAA4C,GAC5CC,EAAiD,GACrD,CAGI,SAASc,EAA6CC,EAAS,CAC/D,GAAI,OAAO,OAAW,KAAe,OAAO,SAAa,KAAejB,EAA0C,IAAQkB,EAAAA,eAAuBD,CAAO,CAAC,EAAG,OAC5J,MAAME,EAAmBD,iBAAuBD,CAAO,EACjDG,EAAqBC,mBAAyBJ,CAAO,EAK3D,IAAIK,EAAQH,EAAa,YAAY,UAAU,MAC/CA,EAAa,YAAY,UAAU,MAAQ,UAAW,CAClDlB,EAA4C,GAC5CqB,EAAM,MAAM,KAAM,SAAS,CACnC,EACIF,EAAe,iBAAiB,UAAWX,EAA2C,EAAI,EAC1FW,EAAe,iBAAiB,QAASX,EAA2C,EAAI,EACxFW,EAAe,iBAAiB,QAAST,EAAwC,EAAI,EAGrFQ,EAAa,iBAAiB,QAASN,EAAwC,EAAI,EACnFM,EAAa,iBAAiB,OAAQJ,EAAwC,EAAK,EAC/E,OAAO,aAAiB,KACxBK,EAAe,iBAAiB,cAAeV,EAA0C,EAAI,EAC7FU,EAAe,iBAAiB,cAAeV,EAA0C,EAAI,EAC7FU,EAAe,iBAAiB,YAAaV,EAA0C,EAAI,GACpF,QAAQ,IAAI,WAAa,SAChCU,EAAe,iBAAiB,YAAaV,EAA0C,EAAI,EAC3FU,EAAe,iBAAiB,YAAaV,EAA0C,EAAI,EAC3FU,EAAe,iBAAiB,UAAWV,EAA0C,EAAI,GAG7FS,EAAa,iBAAiB,eAAgB,IAAI,CAC9CI,EAAkDN,CAAO,CACjE,EAAO,CACC,KAAM,EACd,CAAK,EACDjB,EAA0C,IAAImB,EAAc,CACxD,MAAOG,CACf,CAAK,CACL,CACA,MAAMC,EAAoD,CAACN,EAASO,IAAe,CAC/E,MAAML,EAAmBD,iBAAuBD,CAAO,EACjDG,EAAqBC,mBAAyBJ,CAAO,EACvDO,GAAcJ,EAAe,oBAAoB,mBAAoBI,CAAY,EAChFxB,EAA0C,IAAImB,CAAY,IAC/DA,EAAa,YAAY,UAAU,MAAQnB,EAA0C,IAAImB,CAAY,EAAE,MACvGC,EAAe,oBAAoB,UAAWX,EAA2C,EAAI,EAC7FW,EAAe,oBAAoB,QAASX,EAA2C,EAAI,EAC3FW,EAAe,oBAAoB,QAAST,EAAwC,EAAI,EACxFQ,EAAa,oBAAoB,QAASN,EAAwC,EAAI,EACtFM,EAAa,oBAAoB,OAAQJ,EAAwC,EAAK,EAClF,OAAO,aAAiB,KACxBK,EAAe,oBAAoB,cAAeV,EAA0C,EAAI,EAChGU,EAAe,oBAAoB,cAAeV,EAA0C,EAAI,EAChGU,EAAe,oBAAoB,YAAaV,EAA0C,EAAI,GACvF,QAAQ,IAAI,WAAa,SAChCU,EAAe,oBAAoB,YAAaV,EAA0C,EAAI,EAC9FU,EAAe,oBAAoB,YAAaV,EAA0C,EAAI,EAC9FU,EAAe,oBAAoB,UAAWV,EAA0C,EAAI,GAEhGV,EAA0C,OAAOmB,CAAY,EACjE,EACA,SAASM,EAA0CR,EAAS,CACxD,MAAMG,EAAqBC,mBAAyBJ,CAAO,EAC3D,IAAIO,EACJ,OAAIJ,EAAe,aAAe,UAAWJ,EAA6CC,CAAO,GAE7FO,EAAe,IAAI,CACfR,EAA6CC,CAAO,CAChE,EACQG,EAAe,iBAAiB,mBAAoBI,CAAY,GAE7D,IAAID,EAAkDN,EAASO,CAAY,CACtF,CAGI,OAAO,SAAa,KAAaC,IACrC,SAASC,GAA4C,CACjD,OAAO5B,IAA0C,SACrD,CACA,SAAS6B,GAA4C,CACjD,OAAO7B,CACX,CACA,SAAS8B,EAA0CxB,EAAU,CACzDN,EAAwCM,EACxCD,EAA4CC,EAAU,IAAI,CAC9D","x_google_ignoreList":[0]}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { ignoreFocusEvent as $ } from "./utils.es.js";
|
|
2
|
-
import { getOwnerDocument as v, getOwnerWindow as s, isVirtualClick as L, isMac as y } from "@react-aria/utils";
|
|
3
|
-
let i = null, w = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Map(), a = !1, c = !1;
|
|
4
|
-
function d(e, n) {
|
|
5
|
-
for (let t of w) t(e, n);
|
|
6
|
-
}
|
|
7
|
-
function g(e) {
|
|
8
|
-
return !(e.metaKey || !y() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
9
|
-
}
|
|
10
|
-
function u(e) {
|
|
11
|
-
a = !0, g(e) && (i = "keyboard", d("keyboard", e));
|
|
12
|
-
}
|
|
13
|
-
function o(e) {
|
|
14
|
-
i = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (a = !0, d("pointer", e));
|
|
15
|
-
}
|
|
16
|
-
function l(e) {
|
|
17
|
-
L(e) && (a = !0, i = "virtual");
|
|
18
|
-
}
|
|
19
|
-
function p(e) {
|
|
20
|
-
e.target === window || e.target === document || $ || !e.isTrusted || (!a && !c && (i = "virtual", d("virtual", e)), a = !1, c = !1);
|
|
21
|
-
}
|
|
22
|
-
function E() {
|
|
23
|
-
$ || (a = !1, c = !0);
|
|
24
|
-
}
|
|
25
|
-
function b(e) {
|
|
26
|
-
if (typeof window > "u" || typeof document > "u" || f.get(s(e))) return;
|
|
27
|
-
const n = s(e), t = v(e);
|
|
28
|
-
let r = n.HTMLElement.prototype.focus;
|
|
29
|
-
n.HTMLElement.prototype.focus = function() {
|
|
30
|
-
a = !0, r.apply(this, arguments);
|
|
31
|
-
}, t.addEventListener("keydown", u, !0), t.addEventListener("keyup", u, !0), t.addEventListener("click", l, !0), n.addEventListener("focus", p, !0), n.addEventListener("blur", E, !1), typeof PointerEvent < "u" ? (t.addEventListener("pointerdown", o, !0), t.addEventListener("pointermove", o, !0), t.addEventListener("pointerup", o, !0)) : process.env.NODE_ENV === "test" && (t.addEventListener("mousedown", o, !0), t.addEventListener("mousemove", o, !0), t.addEventListener("mouseup", o, !0)), n.addEventListener("beforeunload", () => {
|
|
32
|
-
m(e);
|
|
33
|
-
}, {
|
|
34
|
-
once: !0
|
|
35
|
-
}), f.set(n, {
|
|
36
|
-
focus: r
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
const m = (e, n) => {
|
|
40
|
-
const t = s(e), r = v(e);
|
|
41
|
-
n && r.removeEventListener("DOMContentLoaded", n), f.has(t) && (t.HTMLElement.prototype.focus = f.get(t).focus, r.removeEventListener("keydown", u, !0), r.removeEventListener("keyup", u, !0), r.removeEventListener("click", l, !0), t.removeEventListener("focus", p, !0), t.removeEventListener("blur", E, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", o, !0), r.removeEventListener("pointermove", o, !0), r.removeEventListener("pointerup", o, !0)) : process.env.NODE_ENV === "test" && (r.removeEventListener("mousedown", o, !0), r.removeEventListener("mousemove", o, !0), r.removeEventListener("mouseup", o, !0)), f.delete(t));
|
|
42
|
-
};
|
|
43
|
-
function k(e) {
|
|
44
|
-
const n = v(e);
|
|
45
|
-
let t;
|
|
46
|
-
return n.readyState !== "loading" ? b(e) : (t = () => {
|
|
47
|
-
b(e);
|
|
48
|
-
}, n.addEventListener("DOMContentLoaded", t)), () => m(e, t);
|
|
49
|
-
}
|
|
50
|
-
typeof document < "u" && k();
|
|
51
|
-
function O() {
|
|
52
|
-
return i !== "pointer";
|
|
53
|
-
}
|
|
54
|
-
function x() {
|
|
55
|
-
return i;
|
|
56
|
-
}
|
|
57
|
-
function F(e) {
|
|
58
|
-
i = e, d(e, null);
|
|
59
|
-
}
|
|
60
|
-
export {
|
|
61
|
-
k as addWindowFocusTracking,
|
|
62
|
-
x as getInteractionModality,
|
|
63
|
-
f as hasSetupGlobalListeners,
|
|
64
|
-
O as isFocusVisible,
|
|
65
|
-
F as setInteractionModality
|
|
66
|
-
};
|
|
67
|
-
//# sourceMappingURL=useFocusVisible.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFocusVisible.es.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/useFocusVisible.mjs"],"sourcesContent":["import {ignoreFocusEvent as $8a9cb279dc87e130$export$fda7da73ab5d4c48} from \"./utils.mjs\";\nimport {isMac as $28AnR$isMac, isVirtualClick as $28AnR$isVirtualClick, getOwnerWindow as $28AnR$getOwnerWindow, getOwnerDocument as $28AnR$getOwnerDocument} from \"@react-aria/utils\";\nimport {useState as $28AnR$useState, useEffect as $28AnR$useEffect} from \"react\";\nimport {useIsSSR as $28AnR$useIsSSR} from \"@react-aria/ssr\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\n\n\nlet $507fabe10e71c6fb$var$currentModality = null;\nlet $507fabe10e71c6fb$var$changeHandlers = new Set();\nlet $507fabe10e71c6fb$export$d90243b58daecda7 = new Map(); // We use a map here to support setting event listeners across multiple document objects.\nlet $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\nlet $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;\n// Only Tab or Esc keys will make focus visible on text input elements\nconst $507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS = {\n Tab: true,\n Escape: true\n};\nfunction $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) {\n for (let handler of $507fabe10e71c6fb$var$changeHandlers)handler(modality, e);\n}\n/**\n * Helper function to determine if a KeyboardEvent is unmodified and could make keyboard focus styles visible.\n */ function $507fabe10e71c6fb$var$isValidKey(e) {\n // Control and Shift keys trigger when navigating back to the tab with keyboard.\n return !(e.metaKey || !(0, $28AnR$isMac)() && e.altKey || e.ctrlKey || e.key === 'Control' || e.key === 'Shift' || e.key === 'Meta');\n}\nfunction $507fabe10e71c6fb$var$handleKeyboardEvent(e) {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n if ($507fabe10e71c6fb$var$isValidKey(e)) {\n $507fabe10e71c6fb$var$currentModality = 'keyboard';\n $507fabe10e71c6fb$var$triggerChangeHandlers('keyboard', e);\n }\n}\nfunction $507fabe10e71c6fb$var$handlePointerEvent(e) {\n $507fabe10e71c6fb$var$currentModality = 'pointer';\n if (e.type === 'mousedown' || e.type === 'pointerdown') {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n $507fabe10e71c6fb$var$triggerChangeHandlers('pointer', e);\n }\n}\nfunction $507fabe10e71c6fb$var$handleClickEvent(e) {\n if ((0, $28AnR$isVirtualClick)(e)) {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n $507fabe10e71c6fb$var$currentModality = 'virtual';\n }\n}\nfunction $507fabe10e71c6fb$var$handleFocusEvent(e) {\n // Firefox fires two extra focus events when the user first clicks into an iframe:\n // first on the window, then on the document. We ignore these events so they don't\n // cause keyboard focus rings to appear.\n if (e.target === window || e.target === document || (0, $8a9cb279dc87e130$export$fda7da73ab5d4c48) || !e.isTrusted) return;\n // If a focus event occurs without a preceding keyboard or pointer event, switch to virtual modality.\n // This occurs, for example, when navigating a form with the next/previous buttons on iOS.\n if (!$507fabe10e71c6fb$var$hasEventBeforeFocus && !$507fabe10e71c6fb$var$hasBlurredWindowRecently) {\n $507fabe10e71c6fb$var$currentModality = 'virtual';\n $507fabe10e71c6fb$var$triggerChangeHandlers('virtual', e);\n }\n $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\n $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;\n}\nfunction $507fabe10e71c6fb$var$handleWindowBlur() {\n if (0, $8a9cb279dc87e130$export$fda7da73ab5d4c48) return;\n // When the window is blurred, reset state. This is necessary when tabbing out of the window,\n // for example, since a subsequent focus event won't be fired.\n $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\n $507fabe10e71c6fb$var$hasBlurredWindowRecently = true;\n}\n/**\n * Setup global event listeners to control when keyboard focus style should be visible.\n */ function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {\n if (typeof window === 'undefined' || typeof document === 'undefined' || $507fabe10e71c6fb$export$d90243b58daecda7.get((0, $28AnR$getOwnerWindow)(element))) return;\n const windowObject = (0, $28AnR$getOwnerWindow)(element);\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n // Programmatic focus() calls shouldn't affect the current input modality.\n // However, we need to detect other cases when a focus event occurs without\n // a preceding user event (e.g. screen reader focus). Overriding the focus\n // method on HTMLElement.prototype is a bit hacky, but works.\n let focus = windowObject.HTMLElement.prototype.focus;\n windowObject.HTMLElement.prototype.focus = function() {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n focus.apply(this, arguments);\n };\n documentObject.addEventListener('keydown', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.addEventListener('keyup', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.addEventListener('click', $507fabe10e71c6fb$var$handleClickEvent, true);\n // Register focus events on the window so they are sure to happen\n // before React's event listeners (registered on the document).\n windowObject.addEventListener('focus', $507fabe10e71c6fb$var$handleFocusEvent, true);\n windowObject.addEventListener('blur', $507fabe10e71c6fb$var$handleWindowBlur, false);\n if (typeof PointerEvent !== 'undefined') {\n documentObject.addEventListener('pointerdown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('pointermove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('pointerup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n } else if (process.env.NODE_ENV === 'test') {\n documentObject.addEventListener('mousedown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('mousemove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('mouseup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n }\n // Add unmount handler\n windowObject.addEventListener('beforeunload', ()=>{\n $507fabe10e71c6fb$var$tearDownWindowFocusTracking(element);\n }, {\n once: true\n });\n $507fabe10e71c6fb$export$d90243b58daecda7.set(windowObject, {\n focus: focus\n });\n}\nconst $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element, loadListener)=>{\n const windowObject = (0, $28AnR$getOwnerWindow)(element);\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n if (loadListener) documentObject.removeEventListener('DOMContentLoaded', loadListener);\n if (!$507fabe10e71c6fb$export$d90243b58daecda7.has(windowObject)) return;\n windowObject.HTMLElement.prototype.focus = $507fabe10e71c6fb$export$d90243b58daecda7.get(windowObject).focus;\n documentObject.removeEventListener('keydown', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.removeEventListener('keyup', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.removeEventListener('click', $507fabe10e71c6fb$var$handleClickEvent, true);\n windowObject.removeEventListener('focus', $507fabe10e71c6fb$var$handleFocusEvent, true);\n windowObject.removeEventListener('blur', $507fabe10e71c6fb$var$handleWindowBlur, false);\n if (typeof PointerEvent !== 'undefined') {\n documentObject.removeEventListener('pointerdown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('pointermove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('pointerup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n } else if (process.env.NODE_ENV === 'test') {\n documentObject.removeEventListener('mousedown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('mousemove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('mouseup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n }\n $507fabe10e71c6fb$export$d90243b58daecda7.delete(windowObject);\n};\nfunction $507fabe10e71c6fb$export$2f1888112f558a7d(element) {\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n let loadListener;\n if (documentObject.readyState !== 'loading') $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);\n else {\n loadListener = ()=>{\n $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);\n };\n documentObject.addEventListener('DOMContentLoaded', loadListener);\n }\n return ()=>$507fabe10e71c6fb$var$tearDownWindowFocusTracking(element, loadListener);\n}\n// Server-side rendering does not have the document object defined\n// eslint-disable-next-line no-restricted-globals\nif (typeof document !== 'undefined') $507fabe10e71c6fb$export$2f1888112f558a7d();\nfunction $507fabe10e71c6fb$export$b9b3dfddab17db27() {\n return $507fabe10e71c6fb$var$currentModality !== 'pointer';\n}\nfunction $507fabe10e71c6fb$export$630ff653c5ada6a9() {\n return $507fabe10e71c6fb$var$currentModality;\n}\nfunction $507fabe10e71c6fb$export$8397ddfc504fdb9a(modality) {\n $507fabe10e71c6fb$var$currentModality = modality;\n $507fabe10e71c6fb$var$triggerChangeHandlers(modality, null);\n}\nfunction $507fabe10e71c6fb$export$98e20ec92f614cfe() {\n $507fabe10e71c6fb$var$setupGlobalFocusEvents();\n let [modality, setModality] = (0, $28AnR$useState)($507fabe10e71c6fb$var$currentModality);\n (0, $28AnR$useEffect)(()=>{\n let handler = ()=>{\n setModality($507fabe10e71c6fb$var$currentModality);\n };\n $507fabe10e71c6fb$var$changeHandlers.add(handler);\n return ()=>{\n $507fabe10e71c6fb$var$changeHandlers.delete(handler);\n };\n }, []);\n return (0, $28AnR$useIsSSR)() ? null : modality;\n}\nconst $507fabe10e71c6fb$var$nonTextInputTypes = new Set([\n 'checkbox',\n 'radio',\n 'range',\n 'color',\n 'file',\n 'image',\n 'button',\n 'submit',\n 'reset'\n]);\n/**\n * If this is attached to text input component, return if the event is a focus event (Tab/Escape keys pressed) so that\n * focus visible style can be properly set.\n */ function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {\n let document1 = (0, $28AnR$getOwnerDocument)(e === null || e === void 0 ? void 0 : e.target);\n const IHTMLInputElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;\n const IHTMLTextAreaElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;\n const IHTMLElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;\n const IKeyboardEvent = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;\n // For keyboard events that occur on a non-input element that will move focus into input element (aka ArrowLeft going from Datepicker button to the main input group)\n // we need to rely on the user passing isTextInput into here. This way we can skip toggling focus visiblity for said input element\n isTextInput = isTextInput || document1.activeElement instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(document1.activeElement.type) || document1.activeElement instanceof IHTMLTextAreaElement || document1.activeElement instanceof IHTMLElement && document1.activeElement.isContentEditable;\n return !(isTextInput && modality === 'keyboard' && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);\n}\nfunction $507fabe10e71c6fb$export$ffd9e5021c1fb2d6(props = {}) {\n let { isTextInput: isTextInput, autoFocus: autoFocus } = props;\n let [isFocusVisibleState, setFocusVisible] = (0, $28AnR$useState)(autoFocus || $507fabe10e71c6fb$export$b9b3dfddab17db27());\n $507fabe10e71c6fb$export$ec71b4b83ac08ec3((isFocusVisible)=>{\n setFocusVisible(isFocusVisible);\n }, [\n isTextInput\n ], {\n isTextInput: isTextInput\n });\n return {\n isFocusVisible: isFocusVisibleState\n };\n}\nfunction $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {\n $507fabe10e71c6fb$var$setupGlobalFocusEvents();\n (0, $28AnR$useEffect)(()=>{\n let handler = (modality, e)=>{\n // We want to early return for any keyboard events that occur inside text inputs EXCEPT for Tab and Escape\n if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(!!(opts === null || opts === void 0 ? void 0 : opts.isTextInput), modality, e)) return;\n fn($507fabe10e71c6fb$export$b9b3dfddab17db27());\n };\n $507fabe10e71c6fb$var$changeHandlers.add(handler);\n return ()=>{\n $507fabe10e71c6fb$var$changeHandlers.delete(handler);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n}\n\n\nexport {$507fabe10e71c6fb$export$d90243b58daecda7 as hasSetupGlobalListeners, $507fabe10e71c6fb$export$2f1888112f558a7d as addWindowFocusTracking, $507fabe10e71c6fb$export$b9b3dfddab17db27 as isFocusVisible, $507fabe10e71c6fb$export$630ff653c5ada6a9 as getInteractionModality, $507fabe10e71c6fb$export$8397ddfc504fdb9a as setInteractionModality, $507fabe10e71c6fb$export$98e20ec92f614cfe as useInteractionModality, $507fabe10e71c6fb$export$ffd9e5021c1fb2d6 as useFocusVisible, $507fabe10e71c6fb$export$ec71b4b83ac08ec3 as useFocusVisibleListener};\n//# sourceMappingURL=useFocusVisible.module.js.map\n"],"names":["$507fabe10e71c6fb$var$currentModality","$507fabe10e71c6fb$var$changeHandlers","$507fabe10e71c6fb$export$d90243b58daecda7","$507fabe10e71c6fb$var$hasEventBeforeFocus","$507fabe10e71c6fb$var$hasBlurredWindowRecently","$507fabe10e71c6fb$var$triggerChangeHandlers","modality","e","handler","$507fabe10e71c6fb$var$isValidKey","$28AnR$isMac","$507fabe10e71c6fb$var$handleKeyboardEvent","$507fabe10e71c6fb$var$handlePointerEvent","$507fabe10e71c6fb$var$handleClickEvent","$28AnR$isVirtualClick","$507fabe10e71c6fb$var$handleFocusEvent","$8a9cb279dc87e130$export$fda7da73ab5d4c48","$507fabe10e71c6fb$var$handleWindowBlur","$507fabe10e71c6fb$var$setupGlobalFocusEvents","element","$28AnR$getOwnerWindow","windowObject","documentObject","$28AnR$getOwnerDocument","focus","$507fabe10e71c6fb$var$tearDownWindowFocusTracking","loadListener","$507fabe10e71c6fb$export$2f1888112f558a7d","$507fabe10e71c6fb$export$b9b3dfddab17db27","$507fabe10e71c6fb$export$630ff653c5ada6a9","$507fabe10e71c6fb$export$8397ddfc504fdb9a"],"mappings":";;AAuBA,IAAIA,IAAwC,MACxCC,IAAuC,oBAAI,OAC3CC,IAA4C,oBAAI,IAAM,GACtDC,IAA4C,IAC5CC,IAAiD;AAMrD,SAASC,EAA4CC,GAAUC,GAAG;AAC9D,WAASC,KAAWP,EAAqC,CAAAO,EAAQF,GAAUC,CAAC;AAChF;AAGI,SAASE,EAAiC,GAAG;AAE7C,SAAO,EAAE,EAAE,WAAW,CAAKC,EAAY,KAAO,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,aAAa,EAAE,QAAQ,WAAW,EAAE,QAAQ;AACjI;AACA,SAASC,EAA0C,GAAG;AAClD,EAAAR,IAA4C,IACxCM,EAAiC,CAAC,MAClCT,IAAwC,YACxCK,EAA4C,YAAY,CAAC;AAEjE;AACA,SAASO,EAAyC,GAAG;AACjD,EAAAZ,IAAwC,YACpC,EAAE,SAAS,eAAe,EAAE,SAAS,mBACrCG,IAA4C,IAC5CE,EAA4C,WAAW,CAAC;AAEhE;AACA,SAASQ,EAAuC,GAAG;AAC/C,EAAQC,EAAuB,CAAC,MAC5BX,IAA4C,IAC5CH,IAAwC;AAEhD;AACA,SAASe,EAAuC,GAAG;AAI/C,EAAI,EAAE,WAAW,UAAU,EAAE,WAAW,YAAgBC,KAA8C,CAAC,EAAE,cAGrG,CAACb,KAA6C,CAACC,MAC/CJ,IAAwC,WACxCK,EAA4C,WAAW,CAAC,IAE5DF,IAA4C,IAC5CC,IAAiD;AACrD;AACA,SAASa,IAAyC;AAC9C,EAAOD,MAGPb,IAA4C,IAC5CC,IAAiD;AACrD;AAGI,SAASc,EAA6CC,GAAS;AAC/D,MAAI,OAAO,SAAW,OAAe,OAAO,WAAa,OAAejB,EAA0C,IAAQkB,EAAuBD,CAAO,CAAC,EAAG;AAC5J,QAAME,IAAmBD,EAAuBD,CAAO,GACjDG,IAAqBC,EAAyBJ,CAAO;AAK3D,MAAIK,IAAQH,EAAa,YAAY,UAAU;AAC/C,EAAAA,EAAa,YAAY,UAAU,QAAQ,WAAW;AAClD,IAAAlB,IAA4C,IAC5CqB,EAAM,MAAM,MAAM,SAAS;AAAA,EACnC,GACIF,EAAe,iBAAiB,WAAWX,GAA2C,EAAI,GAC1FW,EAAe,iBAAiB,SAASX,GAA2C,EAAI,GACxFW,EAAe,iBAAiB,SAAST,GAAwC,EAAI,GAGrFQ,EAAa,iBAAiB,SAASN,GAAwC,EAAI,GACnFM,EAAa,iBAAiB,QAAQJ,GAAwC,EAAK,GAC/E,OAAO,eAAiB,OACxBK,EAAe,iBAAiB,eAAeV,GAA0C,EAAI,GAC7FU,EAAe,iBAAiB,eAAeV,GAA0C,EAAI,GAC7FU,EAAe,iBAAiB,aAAaV,GAA0C,EAAI,KACpF,QAAQ,IAAI,aAAa,WAChCU,EAAe,iBAAiB,aAAaV,GAA0C,EAAI,GAC3FU,EAAe,iBAAiB,aAAaV,GAA0C,EAAI,GAC3FU,EAAe,iBAAiB,WAAWV,GAA0C,EAAI,IAG7FS,EAAa,iBAAiB,gBAAgB,MAAI;AAC9C,IAAAI,EAAkDN,CAAO;AAAA,EACjE,GAAO;AAAA,IACC,MAAM;AAAA,EACd,CAAK,GACDjB,EAA0C,IAAImB,GAAc;AAAA,IACxD,OAAOG;AAAA,EACf,CAAK;AACL;AACA,MAAMC,IAAoD,CAACN,GAASO,MAAe;AAC/E,QAAML,IAAmBD,EAAuBD,CAAO,GACjDG,IAAqBC,EAAyBJ,CAAO;AAE3D,EADIO,KAAcJ,EAAe,oBAAoB,oBAAoBI,CAAY,GAChFxB,EAA0C,IAAImB,CAAY,MAC/DA,EAAa,YAAY,UAAU,QAAQnB,EAA0C,IAAImB,CAAY,EAAE,OACvGC,EAAe,oBAAoB,WAAWX,GAA2C,EAAI,GAC7FW,EAAe,oBAAoB,SAASX,GAA2C,EAAI,GAC3FW,EAAe,oBAAoB,SAAST,GAAwC,EAAI,GACxFQ,EAAa,oBAAoB,SAASN,GAAwC,EAAI,GACtFM,EAAa,oBAAoB,QAAQJ,GAAwC,EAAK,GAClF,OAAO,eAAiB,OACxBK,EAAe,oBAAoB,eAAeV,GAA0C,EAAI,GAChGU,EAAe,oBAAoB,eAAeV,GAA0C,EAAI,GAChGU,EAAe,oBAAoB,aAAaV,GAA0C,EAAI,KACvF,QAAQ,IAAI,aAAa,WAChCU,EAAe,oBAAoB,aAAaV,GAA0C,EAAI,GAC9FU,EAAe,oBAAoB,aAAaV,GAA0C,EAAI,GAC9FU,EAAe,oBAAoB,WAAWV,GAA0C,EAAI,IAEhGV,EAA0C,OAAOmB,CAAY;AACjE;AACA,SAASM,EAA0CR,GAAS;AACxD,QAAMG,IAAqBC,EAAyBJ,CAAO;AAC3D,MAAIO;AACJ,SAAIJ,EAAe,eAAe,YAAWJ,EAA6CC,CAAO,KAE7FO,IAAe,MAAI;AACf,IAAAR,EAA6CC,CAAO;AAAA,EAChE,GACQG,EAAe,iBAAiB,oBAAoBI,CAAY,IAE7D,MAAID,EAAkDN,GAASO,CAAY;AACtF;AAGI,OAAO,WAAa,OAAaC;AACrC,SAASC,IAA4C;AACjD,SAAO5B,MAA0C;AACrD;AACA,SAAS6B,IAA4C;AACjD,SAAO7B;AACX;AACA,SAAS8B,EAA0CxB,GAAU;AACzD,EAAAN,IAAwCM,GACxCD,EAA4CC,GAAU,IAAI;AAC9D;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./utils.cjs.js"),a=require("react"),r=require("@react-aria/utils");function m(b){let{isDisabled:v,onBlurWithin:u,onFocusWithin:s,onFocusWithinChange:t}=b,n=a.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:f}=r.useGlobalListeners(),i=a.useCallback(e=>{e.currentTarget.contains(e.target)&&n.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(n.current.isFocusWithin=!1,f(),u&&u(e),t&&t(!1))},[u,t,n,f]),g=c.useSyntheticBlurEvent(i),W=a.useCallback(e=>{if(!e.currentTarget.contains(e.target))return;const o=r.getOwnerDocument(e.target),T=r.getActiveElement(o);if(!n.current.isFocusWithin&&T===r.getEventTarget(e.nativeEvent)){s&&s(e),t&&t(!0),n.current.isFocusWithin=!0,g(e);let h=e.currentTarget;l(o,"focus",d=>{if(n.current.isFocusWithin&&!r.nodeContains(h,d.target)){let F=new o.defaultView.FocusEvent("blur",{relatedTarget:d.target});c.setEventTarget(F,h);let E=c.createSyntheticEvent(F);i(E)}},{capture:!0})}},[s,t,g,l,i]);return v?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:W,onBlur:i}}}exports.useFocusWithin=m;
|
|
2
|
-
//# sourceMappingURL=useFocusWithin.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFocusWithin.cjs.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/useFocusWithin.mjs"],"sourcesContent":["import {createSyntheticEvent as $8a9cb279dc87e130$export$525bc4921d56d4a, setEventTarget as $8a9cb279dc87e130$export$c2b7abe5d61ec696, useSyntheticBlurEvent as $8a9cb279dc87e130$export$715c682d09d639cc} from \"./utils.mjs\";\nimport {useRef as $3b9Q0$useRef, useCallback as $3b9Q0$useCallback} from \"react\";\nimport {useGlobalListeners as $3b9Q0$useGlobalListeners, getOwnerDocument as $3b9Q0$getOwnerDocument, getActiveElement as $3b9Q0$getActiveElement, getEventTarget as $3b9Q0$getEventTarget, nodeContains as $3b9Q0$nodeContains} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\n\nfunction $9ab94262bd0047c7$export$420e68273165f4ec(props) {\n let { isDisabled: isDisabled, onBlurWithin: onBlurWithin, onFocusWithin: onFocusWithin, onFocusWithinChange: onFocusWithinChange } = props;\n let state = (0, $3b9Q0$useRef)({\n isFocusWithin: false\n });\n let { addGlobalListener: addGlobalListener, removeAllGlobalListeners: removeAllGlobalListeners } = (0, $3b9Q0$useGlobalListeners)();\n let onBlur = (0, $3b9Q0$useCallback)((e)=>{\n // Ignore events bubbling through portals.\n if (!e.currentTarget.contains(e.target)) return;\n // We don't want to trigger onBlurWithin and then immediately onFocusWithin again\n // when moving focus inside the element. Only trigger if the currentTarget doesn't\n // include the relatedTarget (where focus is moving).\n if (state.current.isFocusWithin && !e.currentTarget.contains(e.relatedTarget)) {\n state.current.isFocusWithin = false;\n removeAllGlobalListeners();\n if (onBlurWithin) onBlurWithin(e);\n if (onFocusWithinChange) onFocusWithinChange(false);\n }\n }, [\n onBlurWithin,\n onFocusWithinChange,\n state,\n removeAllGlobalListeners\n ]);\n let onSyntheticFocus = (0, $8a9cb279dc87e130$export$715c682d09d639cc)(onBlur);\n let onFocus = (0, $3b9Q0$useCallback)((e)=>{\n // Ignore events bubbling through portals.\n if (!e.currentTarget.contains(e.target)) return;\n // Double check that document.activeElement actually matches e.target in case a previously chained\n // focus handler already moved focus somewhere else.\n const ownerDocument = (0, $3b9Q0$getOwnerDocument)(e.target);\n const activeElement = (0, $3b9Q0$getActiveElement)(ownerDocument);\n if (!state.current.isFocusWithin && activeElement === (0, $3b9Q0$getEventTarget)(e.nativeEvent)) {\n if (onFocusWithin) onFocusWithin(e);\n if (onFocusWithinChange) onFocusWithinChange(true);\n state.current.isFocusWithin = true;\n onSyntheticFocus(e);\n // Browsers don't fire blur events when elements are removed from the DOM.\n // However, if a focus event occurs outside the element we're tracking, we\n // can manually fire onBlur.\n let currentTarget = e.currentTarget;\n addGlobalListener(ownerDocument, 'focus', (e)=>{\n if (state.current.isFocusWithin && !(0, $3b9Q0$nodeContains)(currentTarget, e.target)) {\n let nativeEvent = new ownerDocument.defaultView.FocusEvent('blur', {\n relatedTarget: e.target\n });\n (0, $8a9cb279dc87e130$export$c2b7abe5d61ec696)(nativeEvent, currentTarget);\n let event = (0, $8a9cb279dc87e130$export$525bc4921d56d4a)(nativeEvent);\n onBlur(event);\n }\n }, {\n capture: true\n });\n }\n }, [\n onFocusWithin,\n onFocusWithinChange,\n onSyntheticFocus,\n addGlobalListener,\n onBlur\n ]);\n if (isDisabled) return {\n focusWithinProps: {\n // These cannot be null, that would conflict in mergeProps\n onFocus: undefined,\n onBlur: undefined\n }\n };\n return {\n focusWithinProps: {\n onFocus: onFocus,\n onBlur: onBlur\n }\n };\n}\n\n\nexport {$9ab94262bd0047c7$export$420e68273165f4ec as useFocusWithin};\n//# sourceMappingURL=useFocusWithin.module.js.map\n"],"names":["$9ab94262bd0047c7$export$420e68273165f4ec","props","isDisabled","onBlurWithin","onFocusWithin","onFocusWithinChange","state","$3b9Q0$useRef","addGlobalListener","removeAllGlobalListeners","$3b9Q0$useGlobalListeners","onBlur","$3b9Q0$useCallback","onSyntheticFocus","$8a9cb279dc87e130$export$715c682d09d639cc","onFocus","ownerDocument","$3b9Q0$getOwnerDocument","activeElement","$3b9Q0$getActiveElement","$3b9Q0$getEventTarget","currentTarget","e","$3b9Q0$nodeContains","nativeEvent","$8a9cb279dc87e130$export$c2b7abe5d61ec696","event","$8a9cb279dc87e130$export$525bc4921d56d4a"],"mappings":"oKAqBA,SAASA,EAA0CC,EAAO,CACtD,GAAI,CAAE,WAAYC,EAAY,aAAcC,EAAc,cAAeC,EAAe,oBAAqBC,CAAqB,EAAGJ,EACjIK,EAAYC,SAAe,CAC3B,cAAe,EACvB,CAAK,EACG,CAAE,kBAAmBC,EAAmB,yBAA0BC,CAA0B,EAAOC,EAAAA,qBACnGC,EAAaC,cAAqB,GAAI,CAEjC,EAAE,cAAc,SAAS,EAAE,MAAM,GAIlCN,EAAM,QAAQ,eAAiB,CAAC,EAAE,cAAc,SAAS,EAAE,aAAa,IACxEA,EAAM,QAAQ,cAAgB,GAC9BG,IACIN,GAAcA,EAAa,CAAC,EAC5BE,GAAqBA,EAAoB,EAAK,EAE9D,EAAO,CACCF,EACAE,EACAC,EACAG,CACR,CAAK,EACGI,EAAuBC,wBAA2CH,CAAM,EACxEI,EAAcH,cAAqB,GAAI,CAEvC,GAAI,CAAC,EAAE,cAAc,SAAS,EAAE,MAAM,EAAG,OAGzC,MAAMI,EAAoBC,EAAAA,iBAAyB,EAAE,MAAM,EACrDC,EAAoBC,mBAAyBH,CAAa,EAChE,GAAI,CAACV,EAAM,QAAQ,eAAiBY,IAAsBE,EAAqB,eAAE,EAAE,WAAW,EAAG,CACzFhB,GAAeA,EAAc,CAAC,EAC9BC,GAAqBA,EAAoB,EAAI,EACjDC,EAAM,QAAQ,cAAgB,GAC9BO,EAAiB,CAAC,EAIlB,IAAIQ,EAAgB,EAAE,cACtBb,EAAkBQ,EAAe,QAAUM,GAAI,CAC3C,GAAIhB,EAAM,QAAQ,eAAiB,CAAKiB,EAAAA,aAAqBF,EAAeC,EAAE,MAAM,EAAG,CACnF,IAAIE,EAAc,IAAIR,EAAc,YAAY,WAAW,OAAQ,CAC/D,cAAeM,EAAE,MACzC,CAAqB,EACGG,EAAyC,eAAED,EAAaH,CAAa,EACzE,IAAIK,EAAYC,uBAA0CH,CAAW,EACrEb,EAAOe,CAAK,CACf,CACjB,EAAe,CACC,QAAS,EACzB,CAAa,CACJ,CACT,EAAO,CACCtB,EACAC,EACAQ,EACAL,EACAG,CACR,CAAK,EACD,OAAIT,EAAmB,CACnB,iBAAkB,CAEd,QAAS,OACT,OAAQ,MACX,CACT,EACW,CACH,iBAAkB,CACd,QAASa,EACT,OAAQJ,CACX,CACT,CACA","x_google_ignoreList":[0]}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { useSyntheticBlurEvent as m, setEventTarget as $, createSyntheticEvent as p } from "./utils.es.js";
|
|
2
|
-
import { useRef as E, useCallback as h } from "react";
|
|
3
|
-
import { useGlobalListeners as T, getOwnerDocument as B, getActiveElement as x, getEventTarget as G, nodeContains as L } from "@react-aria/utils";
|
|
4
|
-
function y(g) {
|
|
5
|
-
let { isDisabled: b, onBlurWithin: i, onFocusWithin: o, onFocusWithinChange: e } = g, n = E({
|
|
6
|
-
isFocusWithin: !1
|
|
7
|
-
}), { addGlobalListener: s, removeAllGlobalListeners: u } = T(), r = h((t) => {
|
|
8
|
-
t.currentTarget.contains(t.target) && n.current.isFocusWithin && !t.currentTarget.contains(t.relatedTarget) && (n.current.isFocusWithin = !1, u(), i && i(t), e && e(!1));
|
|
9
|
-
}, [
|
|
10
|
-
i,
|
|
11
|
-
e,
|
|
12
|
-
n,
|
|
13
|
-
u
|
|
14
|
-
]), a = m(r), F = h((t) => {
|
|
15
|
-
if (!t.currentTarget.contains(t.target)) return;
|
|
16
|
-
const c = B(t.target), W = x(c);
|
|
17
|
-
if (!n.current.isFocusWithin && W === G(t.nativeEvent)) {
|
|
18
|
-
o && o(t), e && e(!0), n.current.isFocusWithin = !0, a(t);
|
|
19
|
-
let l = t.currentTarget;
|
|
20
|
-
s(c, "focus", (f) => {
|
|
21
|
-
if (n.current.isFocusWithin && !L(l, f.target)) {
|
|
22
|
-
let d = new c.defaultView.FocusEvent("blur", {
|
|
23
|
-
relatedTarget: f.target
|
|
24
|
-
});
|
|
25
|
-
$(d, l);
|
|
26
|
-
let v = p(d);
|
|
27
|
-
r(v);
|
|
28
|
-
}
|
|
29
|
-
}, {
|
|
30
|
-
capture: !0
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}, [
|
|
34
|
-
o,
|
|
35
|
-
e,
|
|
36
|
-
a,
|
|
37
|
-
s,
|
|
38
|
-
r
|
|
39
|
-
]);
|
|
40
|
-
return b ? {
|
|
41
|
-
focusWithinProps: {
|
|
42
|
-
// These cannot be null, that would conflict in mergeProps
|
|
43
|
-
onFocus: void 0,
|
|
44
|
-
onBlur: void 0
|
|
45
|
-
}
|
|
46
|
-
} : {
|
|
47
|
-
focusWithinProps: {
|
|
48
|
-
onFocus: F,
|
|
49
|
-
onBlur: r
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
export {
|
|
54
|
-
y as useFocusWithin
|
|
55
|
-
};
|
|
56
|
-
//# sourceMappingURL=useFocusWithin.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFocusWithin.es.js","sources":["../../../../../node_modules/@react-aria/interactions/dist/useFocusWithin.mjs"],"sourcesContent":["import {createSyntheticEvent as $8a9cb279dc87e130$export$525bc4921d56d4a, setEventTarget as $8a9cb279dc87e130$export$c2b7abe5d61ec696, useSyntheticBlurEvent as $8a9cb279dc87e130$export$715c682d09d639cc} from \"./utils.mjs\";\nimport {useRef as $3b9Q0$useRef, useCallback as $3b9Q0$useCallback} from \"react\";\nimport {useGlobalListeners as $3b9Q0$useGlobalListeners, getOwnerDocument as $3b9Q0$getOwnerDocument, getActiveElement as $3b9Q0$getActiveElement, getEventTarget as $3b9Q0$getEventTarget, nodeContains as $3b9Q0$nodeContains} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\n\nfunction $9ab94262bd0047c7$export$420e68273165f4ec(props) {\n let { isDisabled: isDisabled, onBlurWithin: onBlurWithin, onFocusWithin: onFocusWithin, onFocusWithinChange: onFocusWithinChange } = props;\n let state = (0, $3b9Q0$useRef)({\n isFocusWithin: false\n });\n let { addGlobalListener: addGlobalListener, removeAllGlobalListeners: removeAllGlobalListeners } = (0, $3b9Q0$useGlobalListeners)();\n let onBlur = (0, $3b9Q0$useCallback)((e)=>{\n // Ignore events bubbling through portals.\n if (!e.currentTarget.contains(e.target)) return;\n // We don't want to trigger onBlurWithin and then immediately onFocusWithin again\n // when moving focus inside the element. Only trigger if the currentTarget doesn't\n // include the relatedTarget (where focus is moving).\n if (state.current.isFocusWithin && !e.currentTarget.contains(e.relatedTarget)) {\n state.current.isFocusWithin = false;\n removeAllGlobalListeners();\n if (onBlurWithin) onBlurWithin(e);\n if (onFocusWithinChange) onFocusWithinChange(false);\n }\n }, [\n onBlurWithin,\n onFocusWithinChange,\n state,\n removeAllGlobalListeners\n ]);\n let onSyntheticFocus = (0, $8a9cb279dc87e130$export$715c682d09d639cc)(onBlur);\n let onFocus = (0, $3b9Q0$useCallback)((e)=>{\n // Ignore events bubbling through portals.\n if (!e.currentTarget.contains(e.target)) return;\n // Double check that document.activeElement actually matches e.target in case a previously chained\n // focus handler already moved focus somewhere else.\n const ownerDocument = (0, $3b9Q0$getOwnerDocument)(e.target);\n const activeElement = (0, $3b9Q0$getActiveElement)(ownerDocument);\n if (!state.current.isFocusWithin && activeElement === (0, $3b9Q0$getEventTarget)(e.nativeEvent)) {\n if (onFocusWithin) onFocusWithin(e);\n if (onFocusWithinChange) onFocusWithinChange(true);\n state.current.isFocusWithin = true;\n onSyntheticFocus(e);\n // Browsers don't fire blur events when elements are removed from the DOM.\n // However, if a focus event occurs outside the element we're tracking, we\n // can manually fire onBlur.\n let currentTarget = e.currentTarget;\n addGlobalListener(ownerDocument, 'focus', (e)=>{\n if (state.current.isFocusWithin && !(0, $3b9Q0$nodeContains)(currentTarget, e.target)) {\n let nativeEvent = new ownerDocument.defaultView.FocusEvent('blur', {\n relatedTarget: e.target\n });\n (0, $8a9cb279dc87e130$export$c2b7abe5d61ec696)(nativeEvent, currentTarget);\n let event = (0, $8a9cb279dc87e130$export$525bc4921d56d4a)(nativeEvent);\n onBlur(event);\n }\n }, {\n capture: true\n });\n }\n }, [\n onFocusWithin,\n onFocusWithinChange,\n onSyntheticFocus,\n addGlobalListener,\n onBlur\n ]);\n if (isDisabled) return {\n focusWithinProps: {\n // These cannot be null, that would conflict in mergeProps\n onFocus: undefined,\n onBlur: undefined\n }\n };\n return {\n focusWithinProps: {\n onFocus: onFocus,\n onBlur: onBlur\n }\n };\n}\n\n\nexport {$9ab94262bd0047c7$export$420e68273165f4ec as useFocusWithin};\n//# sourceMappingURL=useFocusWithin.module.js.map\n"],"names":["$9ab94262bd0047c7$export$420e68273165f4ec","props","isDisabled","onBlurWithin","onFocusWithin","onFocusWithinChange","state","$3b9Q0$useRef","addGlobalListener","removeAllGlobalListeners","$3b9Q0$useGlobalListeners","onBlur","$3b9Q0$useCallback","e","onSyntheticFocus","$8a9cb279dc87e130$export$715c682d09d639cc","onFocus","ownerDocument","$3b9Q0$getOwnerDocument","activeElement","$3b9Q0$getActiveElement","$3b9Q0$getEventTarget","currentTarget","$3b9Q0$nodeContains","nativeEvent","$8a9cb279dc87e130$export$c2b7abe5d61ec696","event","$8a9cb279dc87e130$export$525bc4921d56d4a"],"mappings":";;;AAqBA,SAASA,EAA0CC,GAAO;AACtD,MAAI,EAAE,YAAYC,GAAY,cAAcC,GAAc,eAAeC,GAAe,qBAAqBC,EAAqB,IAAGJ,GACjIK,IAAYC,EAAe;AAAA,IAC3B,eAAe;AAAA,EACvB,CAAK,GACG,EAAE,mBAAmBC,GAAmB,0BAA0BC,EAA0B,IAAOC,KACnGC,IAAaC,EAAoB,CAACC,MAAI;AAEtC,IAAKA,EAAE,cAAc,SAASA,EAAE,MAAM,KAIlCP,EAAM,QAAQ,iBAAiB,CAACO,EAAE,cAAc,SAASA,EAAE,aAAa,MACxEP,EAAM,QAAQ,gBAAgB,IAC9BG,KACIN,KAAcA,EAAaU,CAAC,GAC5BR,KAAqBA,EAAoB,EAAK;AAAA,EAE9D,GAAO;AAAA,IACCF;AAAA,IACAE;AAAA,IACAC;AAAA,IACAG;AAAA,EACR,CAAK,GACGK,IAAuBC,EAA2CJ,CAAM,GACxEK,IAAcJ,EAAoB,CAACC,MAAI;AAEvC,QAAI,CAACA,EAAE,cAAc,SAASA,EAAE,MAAM,EAAG;AAGzC,UAAMI,IAAoBC,EAAyBL,EAAE,MAAM,GACrDM,IAAoBC,EAAyBH,CAAa;AAChE,QAAI,CAACX,EAAM,QAAQ,iBAAiBa,MAAsBE,EAAuBR,EAAE,WAAW,GAAG;AAC7F,MAAIT,KAAeA,EAAcS,CAAC,GAC9BR,KAAqBA,EAAoB,EAAI,GACjDC,EAAM,QAAQ,gBAAgB,IAC9BQ,EAAiBD,CAAC;AAIlB,UAAIS,IAAgBT,EAAE;AACtB,MAAAL,EAAkBS,GAAe,SAAS,CAACJ,MAAI;AAC3C,YAAIP,EAAM,QAAQ,iBAAiB,CAAKiB,EAAqBD,GAAeT,EAAE,MAAM,GAAG;AACnF,cAAIW,IAAc,IAAIP,EAAc,YAAY,WAAW,QAAQ;AAAA,YAC/D,eAAeJ,EAAE;AAAA,UACzC,CAAqB;AACD,UAAIY,EAA2CD,GAAaF,CAAa;AACzE,cAAII,IAAYC,EAA0CH,CAAW;AACrE,UAAAb,EAAOe,CAAK;AAAA,QACf;AAAA,MACjB,GAAe;AAAA,QACC,SAAS;AAAA,MACzB,CAAa;AAAA,IACJ;AAAA,EACT,GAAO;AAAA,IACCtB;AAAA,IACAC;AAAA,IACAS;AAAA,IACAN;AAAA,IACAG;AAAA,EACR,CAAK;AACD,SAAIT,IAAmB;AAAA,IACnB,kBAAkB;AAAA;AAAA,MAEd,SAAS;AAAA,MACT,QAAQ;AAAA,IACX;AAAA,EACT,IACW;AAAA,IACH,kBAAkB;AAAA,MACd,SAASc;AAAA,MACT,QAAQL;AAAA,IACX;AAAA,EACT;AACA;","x_google_ignoreList":[0]}
|