@adgytec/adgytec-web-ui-components 2.1.8 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.d.ts +3 -0
- package/dist/assets/BaseCalendar.css +1 -1
- package/dist/assets/GridBackgroundDecorator.css +1 -0
- package/dist/assets/RadialGlowDecorator.css +1 -0
- package/dist/assets/index.css +1 -0
- package/dist/chunks/BaseCalendar +113 -84
- package/dist/chunks/BaseCalendar.map +1 -1
- package/dist/chunks/GridBackgroundDecorator +16 -0
- package/dist/chunks/GridBackgroundDecorator.map +1 -0
- package/dist/chunks/RadialGlowDecorator +110 -0
- package/dist/chunks/RadialGlowDecorator.map +1 -0
- package/dist/chunks/compiler-runtime +13 -13
- package/dist/chunks/compiler-runtime.map +1 -1
- package/dist/chunks/core3.map +1 -1
- package/dist/chunks/useGlobalListeners +2 -2
- package/dist/chunks/useGlobalListeners.map +1 -1
- package/dist/chunks/useHover +12 -4
- package/dist/chunks/useHover.map +1 -1
- package/dist/chunks/usePress +11 -1
- package/dist/chunks/usePress.map +1 -1
- package/dist/{src/components → components}/Button/core/withTooltip.d.ts +1 -1
- package/dist/components/Calendar/core/useCalendarState.d.ts +4 -0
- package/dist/components/Decorators/GridBackgroundDecorator/GridBackgroundDecorator.d.ts +14 -0
- package/dist/components/Decorators/GridBackgroundDecorator/index.d.ts +1 -0
- package/dist/components/Decorators/GridBackgroundDecorator/index.js +2 -0
- package/dist/components/Decorators/RadialGlowDecorator/RadialGlowDecorator.d.ts +12 -0
- package/dist/components/Decorators/RadialGlowDecorator/index.d.ts +1 -0
- package/dist/components/Decorators/RadialGlowDecorator/index.js +2 -0
- package/dist/components/Decorators/index.d.ts +2 -0
- package/dist/components/Decorators/index.js +3 -0
- package/dist/{src/components → components}/Input/DateField/DateField.d.ts +1 -1
- package/dist/{src/components → components}/Input/DatePicker/DatePicker/DatePicker.d.ts +1 -1
- package/dist/{src/components → components}/Input/DatePicker/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/dist/{src/components → components}/Input/Select/ComboBox/ComboBox.d.ts +1 -1
- package/dist/{src/components → components}/Input/Select/Select/Select.d.ts +1 -1
- package/dist/{src/components → components}/Input/Select/SelectList/SelectList.d.ts +1 -1
- package/dist/{src/components → components}/Input/Select/SelectListSection/SelectListSection.d.ts +1 -1
- package/dist/{src/components → components}/Input/Slider/CenteredSlider/CenteredSlider.d.ts +1 -1
- package/dist/{src/components → components}/Input/Slider/RangeSlider/RangeSlider.d.ts +1 -1
- package/dist/{src/components → components}/Input/Slider/Slider/Slider.d.ts +1 -1
- package/dist/{src/components → components}/Input/TimeField/TimeField.d.ts +1 -1
- package/dist/{src/components → components}/Menu/Menu/Menu.d.ts +1 -1
- package/dist/{src/components → components}/Menu/MenuSection/MenuSection.d.ts +1 -1
- package/dist/{src/components → components}/Tabs/TabList/TabList.d.ts +1 -1
- package/dist/{src/components → components}/Tabs/TabPanels/TabPanels.d.ts +1 -1
- package/dist/{src/components → components}/ThemeSelector/ThemeItem.d.ts +1 -1
- package/dist/index.d.ts +23 -2
- package/dist/index.js +148 -113
- package/dist/index.js.map +1 -1
- package/dist/utils/gradients/gradients.d.ts +17 -0
- package/dist/utils/gradients/index.d.ts +1 -0
- package/dist/{src/utils → utils}/index.d.ts +1 -0
- package/package.json +16 -16
- package/dist/src/App.d.ts +0 -3
- package/dist/src/components/Calendar/core/useCalendarState.d.ts +0 -3
- package/dist/src/index.d.ts +0 -22
- /package/dist/{src/components → components}/AppBar/AppBar/AppBar.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/AppBar/index.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/AppBar/types.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/AppBarAction/AppBarAction.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/AppBarAction/index.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/AppBarAvatar/AppBarAvatar.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/AppBarAvatar/index.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/AppBarHeadline/AppBarHeadline.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/AppBarHeadline/index.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/AppBarState/AppBarState.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/AppBarState/context.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/AppBarState/index.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/core/alignment.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/core/context.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/core/index.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/core/size.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/Button/Button.d.ts +0 -0
- /package/dist/{src/components → components}/Button/Button/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/Button/types.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ButtonGroup/ButtonGroup.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ButtonGroup/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ButtonGroup/types.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ButtonGroupContext/context.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ButtonGroupContext/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ButtonGroupContext/useButtonGroupContext.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ButtonGroupContext/useConnectedButtonGroupContext.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ConnectedButton/ConnectedButton.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ConnectedButton/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ConnectedButton/types.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ConnectedButtonGroup/ConnectedButtonGroup.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ConnectedButtonGroup/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ConnectedButtonGroup/types.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/IconButton/IconButton.d.ts +0 -0
- /package/dist/{src/components → components}/Button/IconButton/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/IconButton/types.d.ts +0 -0
- /package/dist/{src/components → components}/Button/LinkButton/LinkButton.d.ts +0 -0
- /package/dist/{src/components → components}/Button/LinkButton/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/LinkButton/types.d.ts +0 -0
- /package/dist/{src/components → components}/Button/LinkIconButton/LinkIconButton.d.ts +0 -0
- /package/dist/{src/components → components}/Button/LinkIconButton/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/LinkIconButton/types.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/SplitButton/SplitButton.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/SplitButton/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/SplitButton/types.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/SplitButtonContext/context.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/SplitButtonContext/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/SplitButtonContext/useSplitButtonContext.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/SplitButtonPrimary/SplitButtonPrimary.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/SplitButtonPrimary/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/SplitButtonPrimary/types.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/SplitButtonTrigger/SplitButtonTrigger.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/SplitButtonTrigger/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/SplitButtonTrigger/types.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/core/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/core/size.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ToggleButton/ToggleButton.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ToggleButton/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ToggleButton/types.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ToggleIconButton/ToggleIconButton.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ToggleIconButton/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ToggleIconButton/types.d.ts +0 -0
- /package/dist/{src/components → components}/Button/core/button.d.ts +0 -0
- /package/dist/{src/components → components}/Button/core/color.d.ts +0 -0
- /package/dist/{src/components → components}/Button/core/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/core/shape.d.ts +0 -0
- /package/dist/{src/components → components}/Button/core/sizes.d.ts +0 -0
- /package/dist/{src/components → components}/Button/core/useButtonConfig.d.ts +0 -0
- /package/dist/{src/components → components}/Button/core/variant.d.ts +0 -0
- /package/dist/{src/components → components}/Button/core/width.d.ts +0 -0
- /package/dist/{src/components → components}/Button/index.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/BaseCalendar/BaseCalendar.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/BaseCalendar/index.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/Calendar/Calendar.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/Calendar/index.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/CalendarCell/CalendarCell.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/CalendarCell/index.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/CalendarGrid/CalendarGrid.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/CalendarGrid/index.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/CalendarMenuItem/CalendarMenuItem.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/CalendarMenuItem/index.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/CalendarMonthMenu/CalendarMonthMenu.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/CalendarMonthMenu/index.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/CalendarYearMenu/CalendarYearMenu.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/CalendarYearMenu/index.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/RangeCalendar/RangeCalendar.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/RangeCalendar/index.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/core/calendar.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/core/index.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/index.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/ActionDialog/ActionDialog.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/ActionDialog/index.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/ActionDialog/types.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/Dialog/Dialog.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/Dialog/index.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/Modal/Modal.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/Modal/index.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/ModalOverlay/ModalOverlay.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/ModalOverlay/index.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/core/context.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/core/index.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/core/typography.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/index.d.ts +0 -0
- /package/dist/{src/components → components}/Disclosure/Disclosure/Disclosure.d.ts +0 -0
- /package/dist/{src/components → components}/Disclosure/Disclosure/index.d.ts +0 -0
- /package/dist/{src/components → components}/Disclosure/DisclosureGroup/DisclosureGroup.d.ts +0 -0
- /package/dist/{src/components → components}/Disclosure/DisclosureGroup/index.d.ts +0 -0
- /package/dist/{src/components → components}/Disclosure/DisclosureHeader/DisclosureHeader.d.ts +0 -0
- /package/dist/{src/components → components}/Disclosure/DisclosureHeader/index.d.ts +0 -0
- /package/dist/{src/components → components}/Disclosure/DisclosurePanel/DisclosurePanel.d.ts +0 -0
- /package/dist/{src/components → components}/Disclosure/DisclosurePanel/index.d.ts +0 -0
- /package/dist/{src/components → components}/Disclosure/context/context.d.ts +0 -0
- /package/dist/{src/components → components}/Disclosure/context/index.d.ts +0 -0
- /package/dist/{src/components → components}/Disclosure/context/useDisclosureTypographyContext.d.ts +0 -0
- /package/dist/{src/components → components}/Disclosure/index.d.ts +0 -0
- /package/dist/{src/components → components}/Divider/Divider.d.ts +0 -0
- /package/dist/{src/components → components}/Divider/index.d.ts +0 -0
- /package/dist/{src/components → components}/Icon/Icon.d.ts +0 -0
- /package/dist/{src/components → components}/Icon/index.d.ts +0 -0
- /package/dist/{src/components → components}/Icon/types.d.ts +0 -0
- /package/dist/{src/components → components}/Image/Image.d.ts +0 -0
- /package/dist/{src/components → components}/Image/index.d.ts +0 -0
- /package/dist/{src/components → components}/Image/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/CharacterCount/CharacterCount.d.ts +0 -0
- /package/dist/{src/components → components}/Input/CharacterCount/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Checkbox/Checkbox.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Checkbox/CheckboxGroup.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Checkbox/context.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Checkbox/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Checkbox/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/DateField/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/DateField/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/DatePicker/DatePicker/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/DatePicker/DatePicker/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/DatePicker/DateRangePicker/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/DatePicker/DateRangePicker/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/DatePicker/core/datePicker.d.ts +0 -0
- /package/dist/{src/components → components}/Input/DatePicker/core/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/DatePicker/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Description/Description.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Description/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/FieldError/FieldError.d.ts +0 -0
- /package/dist/{src/components → components}/Input/FieldError/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Input/Input.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Input/InputButton.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Input/handleInputButton.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Input/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Input/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Label/Label.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Label/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Radio/Radio.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Radio/RadioGroup.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Radio/context.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Radio/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Radio/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/SearchField/SearchField.d.ts +0 -0
- /package/dist/{src/components → components}/Input/SearchField/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/SearchField/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/ComboBox/context.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/ComboBox/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/ComboBox/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/ComboBoxPopover/ComboBoxPopover.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/ComboBoxPopover/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/ComboBoxTrigger/ComboBoxTrigger.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/ComboBoxTrigger/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/Select/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/Select/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/SelectItem/SelectItem.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/SelectItem/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/SelectItem/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/SelectList/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/SelectListSection/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/SelectListSectionHeader/SelectListSectionHeader.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/SelectListSectionHeader/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/SelectPopover/SelectPopover.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/SelectPopover/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/SelectTrigger/SelectTrigger.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/SelectTrigger/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/CenteredSlider/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/CenteredSlider/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/RangeSlider/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/RangeSlider/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/Slider/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/Slider/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/SliderOutput/SliderOutput.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/SliderOutput/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/SliderStops/SliderStops.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/SliderStops/core.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/SliderStops/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/SliderStops/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/SliderThumb/SliderThumb.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/SliderThumb/context.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/SliderThumb/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/core/color.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/core/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/core/size.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/core/slider.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/core/variant.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Switch/Switch.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Switch/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Switch/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/TextArea/TextArea.d.ts +0 -0
- /package/dist/{src/components → components}/Input/TextArea/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/TextArea/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/TimeField/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/TimeField/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/core/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/core/input.d.ts +0 -0
- /package/dist/{src/components → components}/Input/core/textField.d.ts +0 -0
- /package/dist/{src/components → components}/Input/hooks/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/hooks/useControllableState.d.ts +0 -0
- /package/dist/{src/components → components}/Input/index.d.ts +0 -0
- /package/dist/{src/components → components}/Loader/Loader.d.ts +0 -0
- /package/dist/{src/components → components}/Loader/index.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/Menu/index.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/Menu/types.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuItem/MenuItem.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuItem/index.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuItem/types.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuPopover/MenuPopover.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuPopover/index.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuSection/index.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuSectionHeader/MenuSectionHeader.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuSectionHeader/index.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuShortcut/MenuShortcut.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuShortcut/index.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuTrailingText/MenuTrailingText.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuTrailingText/index.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuTrigger/MenuTrigger.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuTrigger/index.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/SubmenuPopover/SubmenuPopover.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/SubmenuPopover/index.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/context/context.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/context/index.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/context/useMenuConfigContext.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/core/color.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/core/index.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/core/layout.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/core/menu.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/Navigation/Navigation.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/Navigation/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/Navigation/navContext.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/Navigation/navRenderingContext.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/Navigation/types.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationItem/NavigationButton/NavigationButton.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationItem/NavigationButton/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationItem/NavigationButton/types.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationItem/NavigationItemIconRenderer/NavigationItemIconRenderer.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationItem/NavigationItemIconRenderer/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationItem/NavigationLink/NavigationLink.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationItem/NavigationLink/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationItem/NavigationLink/types.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationItem/core/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationItem/core/navigationItem.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationItem/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationScrollContainer/NavigationScrollContainer.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationScrollContainer/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationSection/NavigationSection/NavigationSection.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationSection/NavigationSection/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationSection/NavigationSectionLabel/NavigationSectionLabel.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationSection/NavigationSectionLabel/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationSection/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationState/NavigationState.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationState/context.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationState/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationState/types.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/SubNavigation/SubNavigation/SubNavigation.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/SubNavigation/SubNavigation/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/SubNavigation/SubNavigationTrigger/SubNavigationTrigger.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/SubNavigation/SubNavigationTrigger/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/SubNavigation/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/core/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/core/navLabelContext.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/core/navigation.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/core/navigationInfo.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/index.d.ts +0 -0
- /package/dist/{src/components → components}/Popover/Popover.d.ts +0 -0
- /package/dist/{src/components → components}/Popover/index.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/BottomSheet/BottomSheet.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/BottomSheet/index.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/BottomSheetModal/BottomSheetModal.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/BottomSheetModal/context.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/BottomSheetModal/index.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/BottomSheetModal/types.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/SideSheet/SideSheet.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/SideSheet/SideSheetDialog.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/SideSheet/index.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/SideSheet/types.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/SideSheetModal/SideSheetModal.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/SideSheetModal/context.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/SideSheetModal/index.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/SideSheetModal/types.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/core/index.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/core/layout.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/index.d.ts +0 -0
- /package/dist/{src/components → components}/Snackbar/SnackbarRegion.d.ts +0 -0
- /package/dist/{src/components → components}/Snackbar/context.d.ts +0 -0
- /package/dist/{src/components → components}/Snackbar/index.d.ts +0 -0
- /package/dist/{src/components → components}/Snackbar/types.d.ts +0 -0
- /package/dist/{src/components → components}/Splash/Splash.d.ts +0 -0
- /package/dist/{src/components → components}/Splash/index.d.ts +0 -0
- /package/dist/{src/components → components}/Splash/types.d.ts +0 -0
- /package/dist/{src/components → components}/Splash/useSplash.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/Tab/Tab.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/Tab/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/TabList/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/TabPanel/TabPanel.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/TabPanel/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/TabPanels/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/Tabs/Tabs.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/Tabs/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tag/Tag.d.ts +0 -0
- /package/dist/{src/components → components}/Tag/core.d.ts +0 -0
- /package/dist/{src/components → components}/Tag/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tag/types.d.ts +0 -0
- /package/dist/{src/components → components}/ThemeSelector/ThemeProvider.d.ts +0 -0
- /package/dist/{src/components → components}/ThemeSelector/ThemeSelector.d.ts +0 -0
- /package/dist/{src/components → components}/ThemeSelector/core.d.ts +0 -0
- /package/dist/{src/components → components}/ThemeSelector/index.d.ts +0 -0
- /package/dist/{src/components → components}/ThemeSelector/types.d.ts +0 -0
- /package/dist/{src/components → components}/Toolbar/Toolbar.d.ts +0 -0
- /package/dist/{src/components → components}/Toolbar/ToolbarToggleButtonGroup.d.ts +0 -0
- /package/dist/{src/components → components}/Toolbar/index.d.ts +0 -0
- /package/dist/{src/components → components}/Toolbar/types.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltip/RichTooltip.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltip/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipActions/RichTooltipActions.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipActions/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipInfo/RichTooltipInfo.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipInfo/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/RichTooltipSubhead.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/RichTooltipText.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipInfo/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/RichTooltip/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/Tooltip/Tooltip.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/Tooltip/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/TooltipTrigger/TooltipTrigger.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/TooltipTrigger/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/index.d.ts +0 -0
- /package/dist/{src/main.d.ts → main.d.ts} +0 -0
- /package/dist/{src/styles → styles}/core.d.ts +0 -0
- /package/dist/{src/styles → styles}/defaultTheme.d.ts +0 -0
- /package/dist/{src/utils → utils}/form/form.d.ts +0 -0
- /package/dist/{src/utils → utils}/form/index.d.ts +0 -0
- /package/dist/{src/utils → utils}/ref/index.d.ts +0 -0
- /package/dist/{src/utils → utils}/ref/ref.d.ts +0 -0
- /package/dist/{src/utils → utils}/scroll/index.d.ts +0 -0
- /package/dist/{src/utils → utils}/scroll/scroll.d.ts +0 -0
- /package/dist/{src/utils → utils}/tapTarget/index.d.ts +0 -0
- /package/dist/{src/utils → utils}/tapTarget/tapTarget.d.ts +0 -0
- /package/dist/{src/utils → utils}/theme/build.d.ts +0 -0
- /package/dist/{src/utils → utils}/theme/index.d.ts +0 -0
- /package/dist/{src/utils → utils}/theme/types.d.ts +0 -0
- /package/dist/{src/utils → utils}/theme/useTheme.d.ts +0 -0
- /package/dist/{src/utils → utils}/typography/base.d.ts +0 -0
- /package/dist/{src/utils → utils}/typography/core.d.ts +0 -0
- /package/dist/{src/utils → utils}/typography/fluid.d.ts +0 -0
- /package/dist/{src/utils → utils}/typography/index.d.ts +0 -0
package/dist/chunks/useHover.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHover","names":["$7U4qw$useEffect","$3siB1$useCallback","$5319z$useRef","$5319z$useCallback","$3s2y0$useRef","$3s2y0$useState","$3s2y0$useCallback","$hZqKM$useState","$hZqKM$useRef","$hZqKM$useEffect","$hZqKM$useMemo"],"sources":["../../node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs","../../node_modules/react-aria/dist/private/interactions/useFocus.mjs","../../node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs","../../node_modules/react-aria/dist/private/focus/useFocusRing.mjs","../../node_modules/react-aria/dist/private/interactions/useHover.mjs"],"sourcesContent":["import {getActiveElement as $23f2114a1b82827e$export$cd4e5573fbe2b576, getEventTarget as $23f2114a1b82827e$export$e58f029f0fbfdb29} from \"../utils/shadowdom/DOMFunctions.mjs\";\nimport {getOwnerDocument as $d447af545b77c9f1$export$b204af158042fbac, getOwnerWindow as $d447af545b77c9f1$export$f21a1ffae260145a} from \"../utils/domHelpers.mjs\";\nimport {ignoreFocusEvent as $a92dc41f639950be$export$fda7da73ab5d4c48} from \"./utils.mjs\";\nimport {isMac as $2add3ce32c6007eb$export$9ac100e40613ea10} from \"../utils/platform.mjs\";\nimport {isVirtualClick as $b5c62b033c25b96d$export$60278871457622de} from \"../utils/isVirtualEvent.mjs\";\nimport {openLink as $caaf0dd3060ed57c$export$95185d699e05d4d7} from \"../utils/openLink.mjs\";\nimport {useIsSSR as $c7eafbbe1ea5834e$export$535bd6ca7f90a273} from \"../ssr/SSRProvider.mjs\";\nimport {useState as $7U4qw$useState, useEffect as $7U4qw$useEffect} 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 */ // 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\n\n\n\n\nlet $8f5a2122b0992be3$var$currentModality = null;\nlet $8f5a2122b0992be3$var$currentPointerType = 'keyboard';\nconst $8f5a2122b0992be3$export$901e90a13c50a14e = new Set();\nlet $8f5a2122b0992be3$export$d90243b58daecda7 = new Map(); // We use a map here to support setting event listeners across multiple document objects.\nlet $8f5a2122b0992be3$var$hasEventBeforeFocus = false;\nlet $8f5a2122b0992be3$var$hasBlurredWindowRecently = false;\n// Only Tab or Esc keys will make focus visible on text input elements\nconst $8f5a2122b0992be3$var$FOCUS_VISIBLE_INPUT_KEYS = {\n Tab: true,\n Escape: true\n};\nfunction $8f5a2122b0992be3$var$triggerChangeHandlers(modality, e) {\n for (let handler of $8f5a2122b0992be3$export$901e90a13c50a14e)handler(modality, e);\n}\n/**\n * Helper function to determine if a KeyboardEvent is unmodified and could make keyboard focus styles visible.\n */ function $8f5a2122b0992be3$var$isValidKey(e) {\n // Control and Shift keys trigger when navigating back to the tab with keyboard.\n return !(e.metaKey || !(0, $2add3ce32c6007eb$export$9ac100e40613ea10)() && e.altKey || e.ctrlKey || e.key === 'Control' || e.key === 'Shift' || e.key === 'Meta');\n}\nfunction $8f5a2122b0992be3$var$handleKeyboardEvent(e) {\n $8f5a2122b0992be3$var$hasEventBeforeFocus = true;\n if (!(0, $caaf0dd3060ed57c$export$95185d699e05d4d7).isOpening && $8f5a2122b0992be3$var$isValidKey(e)) {\n $8f5a2122b0992be3$var$currentModality = 'keyboard';\n $8f5a2122b0992be3$var$currentPointerType = 'keyboard';\n $8f5a2122b0992be3$var$triggerChangeHandlers('keyboard', e);\n }\n}\nfunction $8f5a2122b0992be3$var$handlePointerEvent(e) {\n $8f5a2122b0992be3$var$currentModality = 'pointer';\n $8f5a2122b0992be3$var$currentPointerType = 'pointerType' in e ? e.pointerType : 'mouse';\n if (e.type === 'mousedown' || e.type === 'pointerdown') {\n $8f5a2122b0992be3$var$hasEventBeforeFocus = true;\n $8f5a2122b0992be3$var$triggerChangeHandlers('pointer', e);\n }\n}\nfunction $8f5a2122b0992be3$var$handleClickEvent(e) {\n if (!(0, $caaf0dd3060ed57c$export$95185d699e05d4d7).isOpening && (0, $b5c62b033c25b96d$export$60278871457622de)(e)) {\n $8f5a2122b0992be3$var$hasEventBeforeFocus = true;\n $8f5a2122b0992be3$var$currentModality = 'virtual';\n $8f5a2122b0992be3$var$currentPointerType = 'virtual';\n }\n}\nfunction $8f5a2122b0992be3$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 let ownerWindow = (0, $d447af545b77c9f1$export$f21a1ffae260145a)((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e));\n let ownerDocument = (0, $d447af545b77c9f1$export$b204af158042fbac)((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e));\n if ((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e) === ownerWindow || (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e) === ownerDocument || (0, $a92dc41f639950be$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 (!$8f5a2122b0992be3$var$hasEventBeforeFocus && !$8f5a2122b0992be3$var$hasBlurredWindowRecently) {\n $8f5a2122b0992be3$var$currentModality = 'virtual';\n $8f5a2122b0992be3$var$currentPointerType = 'virtual';\n $8f5a2122b0992be3$var$triggerChangeHandlers('virtual', e);\n }\n $8f5a2122b0992be3$var$hasEventBeforeFocus = false;\n $8f5a2122b0992be3$var$hasBlurredWindowRecently = false;\n}\nfunction $8f5a2122b0992be3$var$handleWindowBlur() {\n if (0, $a92dc41f639950be$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 $8f5a2122b0992be3$var$hasEventBeforeFocus = false;\n $8f5a2122b0992be3$var$hasBlurredWindowRecently = true;\n}\n/**\n * Setup global event listeners to control when keyboard focus style should be visible.\n */ function $8f5a2122b0992be3$var$setupGlobalFocusEvents(element) {\n // eslint-disable-next-line no-restricted-globals\n if (typeof window === 'undefined' || typeof document === 'undefined') return;\n const windowObject = (0, $d447af545b77c9f1$export$f21a1ffae260145a)(element);\n const documentObject = (0, $d447af545b77c9f1$export$b204af158042fbac)(element);\n if ($8f5a2122b0992be3$export$d90243b58daecda7.get(windowObject)) return;\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 $8f5a2122b0992be3$var$hasEventBeforeFocus = true;\n focus.apply(this, arguments);\n };\n documentObject.addEventListener('keydown', $8f5a2122b0992be3$var$handleKeyboardEvent, true);\n documentObject.addEventListener('keyup', $8f5a2122b0992be3$var$handleKeyboardEvent, true);\n documentObject.addEventListener('click', $8f5a2122b0992be3$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', $8f5a2122b0992be3$var$handleFocusEvent, true);\n windowObject.addEventListener('blur', $8f5a2122b0992be3$var$handleWindowBlur, false);\n if (typeof PointerEvent !== 'undefined') {\n documentObject.addEventListener('pointerdown', $8f5a2122b0992be3$var$handlePointerEvent, true);\n documentObject.addEventListener('pointermove', $8f5a2122b0992be3$var$handlePointerEvent, true);\n documentObject.addEventListener('pointerup', $8f5a2122b0992be3$var$handlePointerEvent, true);\n } else if (process.env.NODE_ENV === 'test') {\n documentObject.addEventListener('mousedown', $8f5a2122b0992be3$var$handlePointerEvent, true);\n documentObject.addEventListener('mousemove', $8f5a2122b0992be3$var$handlePointerEvent, true);\n documentObject.addEventListener('mouseup', $8f5a2122b0992be3$var$handlePointerEvent, true);\n }\n // Add unmount handler\n windowObject.addEventListener('beforeunload', ()=>{\n $8f5a2122b0992be3$var$tearDownWindowFocusTracking(element);\n }, {\n once: true\n });\n $8f5a2122b0992be3$export$d90243b58daecda7.set(windowObject, {\n focus: focus\n });\n}\nconst $8f5a2122b0992be3$var$tearDownWindowFocusTracking = (element, loadListener)=>{\n const windowObject = (0, $d447af545b77c9f1$export$f21a1ffae260145a)(element);\n const documentObject = (0, $d447af545b77c9f1$export$b204af158042fbac)(element);\n if (loadListener) documentObject.removeEventListener('DOMContentLoaded', loadListener);\n if (!$8f5a2122b0992be3$export$d90243b58daecda7.has(windowObject)) return;\n windowObject.HTMLElement.prototype.focus = $8f5a2122b0992be3$export$d90243b58daecda7.get(windowObject).focus;\n documentObject.removeEventListener('keydown', $8f5a2122b0992be3$var$handleKeyboardEvent, true);\n documentObject.removeEventListener('keyup', $8f5a2122b0992be3$var$handleKeyboardEvent, true);\n documentObject.removeEventListener('click', $8f5a2122b0992be3$var$handleClickEvent, true);\n windowObject.removeEventListener('focus', $8f5a2122b0992be3$var$handleFocusEvent, true);\n windowObject.removeEventListener('blur', $8f5a2122b0992be3$var$handleWindowBlur, false);\n if (typeof PointerEvent !== 'undefined') {\n documentObject.removeEventListener('pointerdown', $8f5a2122b0992be3$var$handlePointerEvent, true);\n documentObject.removeEventListener('pointermove', $8f5a2122b0992be3$var$handlePointerEvent, true);\n documentObject.removeEventListener('pointerup', $8f5a2122b0992be3$var$handlePointerEvent, true);\n } else if (process.env.NODE_ENV === 'test') {\n documentObject.removeEventListener('mousedown', $8f5a2122b0992be3$var$handlePointerEvent, true);\n documentObject.removeEventListener('mousemove', $8f5a2122b0992be3$var$handlePointerEvent, true);\n documentObject.removeEventListener('mouseup', $8f5a2122b0992be3$var$handlePointerEvent, true);\n }\n $8f5a2122b0992be3$export$d90243b58daecda7.delete(windowObject);\n};\nfunction $8f5a2122b0992be3$export$2f1888112f558a7d(element) {\n const documentObject = (0, $d447af545b77c9f1$export$b204af158042fbac)(element);\n let loadListener;\n if (documentObject.readyState !== 'loading') $8f5a2122b0992be3$var$setupGlobalFocusEvents(element);\n else {\n loadListener = ()=>{\n $8f5a2122b0992be3$var$setupGlobalFocusEvents(element);\n };\n documentObject.addEventListener('DOMContentLoaded', loadListener);\n }\n return ()=>$8f5a2122b0992be3$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') $8f5a2122b0992be3$export$2f1888112f558a7d();\nfunction $8f5a2122b0992be3$export$b9b3dfddab17db27() {\n return $8f5a2122b0992be3$var$currentModality !== 'pointer';\n}\nfunction $8f5a2122b0992be3$export$630ff653c5ada6a9() {\n return $8f5a2122b0992be3$var$currentModality;\n}\nfunction $8f5a2122b0992be3$export$8397ddfc504fdb9a(modality) {\n $8f5a2122b0992be3$var$currentModality = modality;\n $8f5a2122b0992be3$var$currentPointerType = modality === 'pointer' ? 'mouse' : modality;\n $8f5a2122b0992be3$var$triggerChangeHandlers(modality, null);\n}\nfunction $8f5a2122b0992be3$export$887a228355cf7d95() {\n return $8f5a2122b0992be3$var$currentPointerType;\n}\nfunction $8f5a2122b0992be3$export$98e20ec92f614cfe() {\n $8f5a2122b0992be3$var$setupGlobalFocusEvents();\n let [modality, setModality] = (0, $7U4qw$useState)($8f5a2122b0992be3$var$currentModality);\n (0, $7U4qw$useEffect)(()=>{\n let handler = ()=>{\n setModality($8f5a2122b0992be3$var$currentModality);\n };\n $8f5a2122b0992be3$export$901e90a13c50a14e.add(handler);\n return ()=>{\n $8f5a2122b0992be3$export$901e90a13c50a14e.delete(handler);\n };\n }, []);\n return (0, $c7eafbbe1ea5834e$export$535bd6ca7f90a273)() ? null : modality;\n}\nconst $8f5a2122b0992be3$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 $8f5a2122b0992be3$var$isKeyboardFocusEvent(isTextInput, modality, e) {\n let eventTarget = e ? (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e) : undefined;\n let document1 = (0, $d447af545b77c9f1$export$b204af158042fbac)(eventTarget);\n let ownerWindow = (0, $d447af545b77c9f1$export$f21a1ffae260145a)(eventTarget);\n const IHTMLInputElement = typeof ownerWindow !== 'undefined' ? ownerWindow.HTMLInputElement : HTMLInputElement;\n const IHTMLTextAreaElement = typeof ownerWindow !== 'undefined' ? ownerWindow.HTMLTextAreaElement : HTMLTextAreaElement;\n const IHTMLElement = typeof ownerWindow !== 'undefined' ? ownerWindow.HTMLElement : HTMLElement;\n const IKeyboardEvent = typeof ownerWindow !== 'undefined' ? ownerWindow.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 let activeElement = (0, $23f2114a1b82827e$export$cd4e5573fbe2b576)(document1);\n isTextInput = isTextInput || activeElement instanceof IHTMLInputElement && !$8f5a2122b0992be3$var$nonTextInputTypes.has(activeElement.type) || activeElement instanceof IHTMLTextAreaElement || activeElement instanceof IHTMLElement && activeElement.isContentEditable;\n return !(isTextInput && modality === 'keyboard' && e instanceof IKeyboardEvent && !$8f5a2122b0992be3$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);\n}\nfunction $8f5a2122b0992be3$export$ffd9e5021c1fb2d6(props = {}) {\n let { isTextInput: isTextInput, autoFocus: autoFocus } = props;\n let [isFocusVisibleState, setFocusVisible] = (0, $7U4qw$useState)(autoFocus || $8f5a2122b0992be3$export$b9b3dfddab17db27());\n $8f5a2122b0992be3$export$ec71b4b83ac08ec3((isFocusVisible)=>{\n setFocusVisible(isFocusVisible);\n }, [\n isTextInput\n ], {\n isTextInput: isTextInput\n });\n return {\n isFocusVisible: isFocusVisibleState\n };\n}\nfunction $8f5a2122b0992be3$export$ec71b4b83ac08ec3(fn, deps, opts) {\n $8f5a2122b0992be3$var$setupGlobalFocusEvents();\n (0, $7U4qw$useEffect)(()=>{\n if (opts?.enabled === false) return;\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 (!$8f5a2122b0992be3$var$isKeyboardFocusEvent(!!opts?.isTextInput, modality, e)) return;\n fn($8f5a2122b0992be3$export$b9b3dfddab17db27());\n };\n $8f5a2122b0992be3$export$901e90a13c50a14e.add(handler);\n return ()=>{\n $8f5a2122b0992be3$export$901e90a13c50a14e.delete(handler);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n}\n\n\nexport {$8f5a2122b0992be3$export$901e90a13c50a14e as changeHandlers, $8f5a2122b0992be3$export$d90243b58daecda7 as hasSetupGlobalListeners, $8f5a2122b0992be3$export$2f1888112f558a7d as addWindowFocusTracking, $8f5a2122b0992be3$export$b9b3dfddab17db27 as isFocusVisible, $8f5a2122b0992be3$export$630ff653c5ada6a9 as getInteractionModality, $8f5a2122b0992be3$export$8397ddfc504fdb9a as setInteractionModality, $8f5a2122b0992be3$export$887a228355cf7d95 as getPointerType, $8f5a2122b0992be3$export$98e20ec92f614cfe as useInteractionModality, $8f5a2122b0992be3$export$ffd9e5021c1fb2d6 as useFocusVisible, $8f5a2122b0992be3$export$ec71b4b83ac08ec3 as useFocusVisibleListener};\n//# sourceMappingURL=useFocusVisible.mjs.map\n","import {getActiveElement as $23f2114a1b82827e$export$cd4e5573fbe2b576, getEventTarget as $23f2114a1b82827e$export$e58f029f0fbfdb29} from \"../utils/shadowdom/DOMFunctions.mjs\";\nimport {getOwnerDocument as $d447af545b77c9f1$export$b204af158042fbac} from \"../utils/domHelpers.mjs\";\nimport {useSyntheticBlurEvent as $a92dc41f639950be$export$715c682d09d639cc} from \"./utils.mjs\";\nimport {useCallback as $3siB1$useCallback} 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 */ // 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\nfunction $1e74c67db218ce67$export$f8168d8dd8fd66e6(props) {\n let { isDisabled: isDisabled, onFocus: onFocusProp, onBlur: onBlurProp, onFocusChange: onFocusChange } = props;\n const onBlur = (0, $3siB1$useCallback)((e)=>{\n if ((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e) === 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, $a92dc41f639950be$export$715c682d09d639cc)(onBlur);\n const onFocus = (0, $3siB1$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 let eventTarget = (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e);\n const ownerDocument = (0, $d447af545b77c9f1$export$b204af158042fbac)(eventTarget);\n const activeElement = ownerDocument ? (0, $23f2114a1b82827e$export$cd4e5573fbe2b576)(ownerDocument) : (0, $23f2114a1b82827e$export$cd4e5573fbe2b576)();\n if (eventTarget === e.currentTarget && eventTarget === activeElement) {\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 {$1e74c67db218ce67$export$f8168d8dd8fd66e6 as useFocus};\n//# sourceMappingURL=useFocus.mjs.map\n","import {createSyntheticEvent as $a92dc41f639950be$export$525bc4921d56d4a, setEventTarget as $a92dc41f639950be$export$c2b7abe5d61ec696, useSyntheticBlurEvent as $a92dc41f639950be$export$715c682d09d639cc} from \"./utils.mjs\";\nimport {getActiveElement as $23f2114a1b82827e$export$cd4e5573fbe2b576, getEventTarget as $23f2114a1b82827e$export$e58f029f0fbfdb29, nodeContains as $23f2114a1b82827e$export$4282f70798064fe0} from \"../utils/shadowdom/DOMFunctions.mjs\";\nimport {getOwnerDocument as $d447af545b77c9f1$export$b204af158042fbac} from \"../utils/domHelpers.mjs\";\nimport {useGlobalListeners as $48a7d519b337145d$export$4eaf04e54aa8eed6} from \"../utils/useGlobalListeners.mjs\";\nimport {useRef as $5319z$useRef, useCallback as $5319z$useCallback} 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 */ // 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\n\nfunction $2c9edc598a03d523$export$420e68273165f4ec(props) {\n let { isDisabled: isDisabled, onBlurWithin: onBlurWithin, onFocusWithin: onFocusWithin, onFocusWithinChange: onFocusWithinChange } = props;\n let state = (0, $5319z$useRef)({\n isFocusWithin: false\n });\n let { addGlobalListener: addGlobalListener, removeAllGlobalListeners: removeAllGlobalListeners } = (0, $48a7d519b337145d$export$4eaf04e54aa8eed6)();\n let onBlur = (0, $5319z$useCallback)((e)=>{\n // Ignore events bubbling through portals.\n if (!(0, $23f2114a1b82827e$export$4282f70798064fe0)(e.currentTarget, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e))) 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 && !(0, $23f2114a1b82827e$export$4282f70798064fe0)(e.currentTarget, 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, $a92dc41f639950be$export$715c682d09d639cc)(onBlur);\n let onFocus = (0, $5319z$useCallback)((e)=>{\n // Ignore events bubbling through portals.\n if (!(0, $23f2114a1b82827e$export$4282f70798064fe0)(e.currentTarget, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e))) 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 let eventTarget = (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e);\n const ownerDocument = (0, $d447af545b77c9f1$export$b204af158042fbac)(eventTarget);\n const activeElement = (0, $23f2114a1b82827e$export$cd4e5573fbe2b576)(ownerDocument);\n if (!state.current.isFocusWithin && activeElement === eventTarget) {\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 let eventTarget = (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e);\n if (state.current.isFocusWithin && !(0, $23f2114a1b82827e$export$4282f70798064fe0)(currentTarget, eventTarget)) {\n let nativeEvent = new ownerDocument.defaultView.FocusEvent('blur', {\n relatedTarget: eventTarget\n });\n (0, $a92dc41f639950be$export$c2b7abe5d61ec696)(nativeEvent, currentTarget);\n let event = (0, $a92dc41f639950be$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 {$2c9edc598a03d523$export$420e68273165f4ec as useFocusWithin};\n//# sourceMappingURL=useFocusWithin.mjs.map\n","import {isFocusVisible as $8f5a2122b0992be3$export$b9b3dfddab17db27, useFocusVisibleListener as $8f5a2122b0992be3$export$ec71b4b83ac08ec3} from \"../interactions/useFocusVisible.mjs\";\nimport {useFocus as $1e74c67db218ce67$export$f8168d8dd8fd66e6} from \"../interactions/useFocus.mjs\";\nimport {useFocusWithin as $2c9edc598a03d523$export$420e68273165f4ec} from \"../interactions/useFocusWithin.mjs\";\nimport {useRef as $3s2y0$useRef, useState as $3s2y0$useState, useCallback as $3s2y0$useCallback} from \"react\";\n\n\n\n\n\nfunction $0c4a58759813079a$export$4e328f61c538687f(props = {}) {\n let { autoFocus: autoFocus = false, isTextInput: isTextInput, within: within } = props;\n let state = (0, $3s2y0$useRef)({\n isFocused: false,\n isFocusVisible: autoFocus || (0, $8f5a2122b0992be3$export$b9b3dfddab17db27)()\n });\n let [isFocused, setFocused] = (0, $3s2y0$useState)(false);\n let [isFocusVisibleState, setFocusVisible] = (0, $3s2y0$useState)(()=>state.current.isFocused && state.current.isFocusVisible);\n let updateState = (0, $3s2y0$useCallback)(()=>setFocusVisible(state.current.isFocused && state.current.isFocusVisible), []);\n let onFocusChange = (0, $3s2y0$useCallback)((isFocused)=>{\n state.current.isFocused = isFocused;\n state.current.isFocusVisible = (0, $8f5a2122b0992be3$export$b9b3dfddab17db27)();\n setFocused(isFocused);\n updateState();\n }, [\n updateState\n ]);\n (0, $8f5a2122b0992be3$export$ec71b4b83ac08ec3)((isFocusVisible)=>{\n state.current.isFocusVisible = isFocusVisible;\n updateState();\n }, [\n isTextInput,\n isFocused\n ], {\n enabled: isFocused,\n isTextInput: isTextInput\n });\n let { focusProps: focusProps } = (0, $1e74c67db218ce67$export$f8168d8dd8fd66e6)({\n isDisabled: within,\n onFocusChange: onFocusChange\n });\n let { focusWithinProps: focusWithinProps } = (0, $2c9edc598a03d523$export$420e68273165f4ec)({\n isDisabled: !within,\n onFocusWithinChange: onFocusChange\n });\n return {\n isFocused: isFocused,\n isFocusVisible: isFocusVisibleState,\n focusProps: within ? focusWithinProps : focusProps\n };\n}\n\n\nexport {$0c4a58759813079a$export$4e328f61c538687f as useFocusRing};\n//# sourceMappingURL=useFocusRing.mjs.map\n","import {getEventTarget as $23f2114a1b82827e$export$e58f029f0fbfdb29, nodeContains as $23f2114a1b82827e$export$4282f70798064fe0} from \"../utils/shadowdom/DOMFunctions.mjs\";\nimport {getOwnerDocument as $d447af545b77c9f1$export$b204af158042fbac} from \"../utils/domHelpers.mjs\";\nimport {useGlobalListeners as $48a7d519b337145d$export$4eaf04e54aa8eed6} from \"../utils/useGlobalListeners.mjs\";\nimport {useState as $hZqKM$useState, useRef as $hZqKM$useRef, useEffect as $hZqKM$useEffect, useMemo as $hZqKM$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 */ // 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\n// iOS fires onPointerEnter twice: once with pointerType=\"touch\" and again with pointerType=\"mouse\".\n// We want to ignore these emulated events so they do not trigger hover behavior.\n// See https://bugs.webkit.org/show_bug.cgi?id=214609.\nlet $e969f22b6713ca4a$var$globalIgnoreEmulatedMouseEvents = false;\nlet $e969f22b6713ca4a$var$hoverCount = 0;\nfunction $e969f22b6713ca4a$var$setGlobalIgnoreEmulatedMouseEvents() {\n $e969f22b6713ca4a$var$globalIgnoreEmulatedMouseEvents = true;\n // Clear globalIgnoreEmulatedMouseEvents after a short timeout. iOS fires onPointerEnter\n // with pointerType=\"mouse\" immediately after onPointerUp and before onFocus. On other\n // devices that don't have this quirk, we don't want to ignore a mouse hover sometime in\n // the distant future because a user previously touched the element.\n setTimeout(()=>{\n $e969f22b6713ca4a$var$globalIgnoreEmulatedMouseEvents = false;\n }, 500);\n}\nfunction $e969f22b6713ca4a$var$handleGlobalPointerEvent(e) {\n if (e.pointerType === 'touch') $e969f22b6713ca4a$var$setGlobalIgnoreEmulatedMouseEvents();\n}\nfunction $e969f22b6713ca4a$var$setupGlobalTouchEvents() {\n let ownerDocument = (0, $d447af545b77c9f1$export$b204af158042fbac)(null);\n if (typeof ownerDocument === 'undefined') return;\n if ($e969f22b6713ca4a$var$hoverCount === 0) {\n if (typeof PointerEvent !== 'undefined') ownerDocument.addEventListener('pointerup', $e969f22b6713ca4a$var$handleGlobalPointerEvent);\n else if (process.env.NODE_ENV === 'test') ownerDocument.addEventListener('touchend', $e969f22b6713ca4a$var$setGlobalIgnoreEmulatedMouseEvents);\n }\n $e969f22b6713ca4a$var$hoverCount++;\n return ()=>{\n $e969f22b6713ca4a$var$hoverCount--;\n if ($e969f22b6713ca4a$var$hoverCount > 0) return;\n if (typeof PointerEvent !== 'undefined') ownerDocument.removeEventListener('pointerup', $e969f22b6713ca4a$var$handleGlobalPointerEvent);\n else if (process.env.NODE_ENV === 'test') ownerDocument.removeEventListener('touchend', $e969f22b6713ca4a$var$setGlobalIgnoreEmulatedMouseEvents);\n };\n}\nfunction $e969f22b6713ca4a$export$ae780daf29e6d456(props) {\n let { onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, isDisabled: isDisabled } = props;\n let [isHovered, setHovered] = (0, $hZqKM$useState)(false);\n let state = (0, $hZqKM$useRef)({\n isHovered: false,\n ignoreEmulatedMouseEvents: false,\n pointerType: '',\n target: null\n }).current;\n (0, $hZqKM$useEffect)($e969f22b6713ca4a$var$setupGlobalTouchEvents, []);\n let { addGlobalListener: addGlobalListener, removeAllGlobalListeners: removeAllGlobalListeners } = (0, $48a7d519b337145d$export$4eaf04e54aa8eed6)();\n let { hoverProps: hoverProps, triggerHoverEnd: triggerHoverEnd } = (0, $hZqKM$useMemo)(()=>{\n let triggerHoverStart = (event, pointerType)=>{\n state.pointerType = pointerType;\n if (isDisabled || pointerType === 'touch' || state.isHovered || !(0, $23f2114a1b82827e$export$4282f70798064fe0)(event.currentTarget, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(event))) return;\n state.isHovered = true;\n let target = event.currentTarget;\n state.target = target;\n // When an element that is hovered over is removed, no pointerleave event is fired by the browser,\n // even though the originally hovered target may have shrunk in size so it is no longer hovered.\n // However, a pointerover event will be fired on the new target the mouse is over.\n // In Chrome this happens immediately. In Safari and Firefox, it happens upon moving the mouse one pixel.\n addGlobalListener((0, $d447af545b77c9f1$export$b204af158042fbac)((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(event)), 'pointerover', (e)=>{\n if (state.isHovered && state.target && !(0, $23f2114a1b82827e$export$4282f70798064fe0)(state.target, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e))) triggerHoverEnd(e, e.pointerType);\n }, {\n capture: true\n });\n if (onHoverStart) onHoverStart({\n type: 'hoverstart',\n target: target,\n pointerType: pointerType\n });\n if (onHoverChange) onHoverChange(true);\n setHovered(true);\n };\n let triggerHoverEnd = (event, pointerType)=>{\n let target = state.target;\n state.pointerType = '';\n state.target = null;\n if (pointerType === 'touch' || !state.isHovered || !target) return;\n state.isHovered = false;\n removeAllGlobalListeners();\n if (onHoverEnd) onHoverEnd({\n type: 'hoverend',\n target: target,\n pointerType: pointerType\n });\n if (onHoverChange) onHoverChange(false);\n setHovered(false);\n };\n let hoverProps = {};\n if (typeof PointerEvent !== 'undefined') {\n hoverProps.onPointerEnter = (e)=>{\n if ($e969f22b6713ca4a$var$globalIgnoreEmulatedMouseEvents && e.pointerType === 'mouse') return;\n triggerHoverStart(e, e.pointerType);\n };\n hoverProps.onPointerLeave = (e)=>{\n if (!isDisabled && (0, $23f2114a1b82827e$export$4282f70798064fe0)(e.currentTarget, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e))) triggerHoverEnd(e, e.pointerType);\n };\n } else if (process.env.NODE_ENV === 'test') {\n hoverProps.onTouchStart = ()=>{\n state.ignoreEmulatedMouseEvents = true;\n };\n hoverProps.onMouseEnter = (e)=>{\n if (!state.ignoreEmulatedMouseEvents && !$e969f22b6713ca4a$var$globalIgnoreEmulatedMouseEvents) triggerHoverStart(e, 'mouse');\n state.ignoreEmulatedMouseEvents = false;\n };\n hoverProps.onMouseLeave = (e)=>{\n if (!isDisabled && (0, $23f2114a1b82827e$export$4282f70798064fe0)(e.currentTarget, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e))) triggerHoverEnd(e, 'mouse');\n };\n }\n return {\n hoverProps: hoverProps,\n triggerHoverEnd: triggerHoverEnd\n };\n }, [\n onHoverStart,\n onHoverChange,\n onHoverEnd,\n isDisabled,\n state,\n addGlobalListener,\n removeAllGlobalListeners\n ]);\n (0, $hZqKM$useEffect)(()=>{\n // Call the triggerHoverEnd as soon as isDisabled changes to true\n // Safe to call triggerHoverEnd, it will early return if we aren't currently hovering\n if (isDisabled) triggerHoverEnd({\n currentTarget: state.target\n }, state.pointerType);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n isDisabled\n ]);\n return {\n hoverProps: hoverProps,\n isHovered: isHovered\n };\n}\n\n\nexport {$e969f22b6713ca4a$export$ae780daf29e6d456 as useHover};\n//# sourceMappingURL=useHover.mjs.map\n"],"x_google_ignoreList":[0,1,2,3,4],"mappings":";;;AA+BA,IAAI,IAAwC,MAEtC,oBAA4C,IAAI,IAAI,GACtD,oBAA4C,IAAI,IAAI,GACpD,IAA4C,IAC5C,IAAiD,IAE/C,IAAiD;CACnD,KAAK;CACL,QAAQ;AACZ;AACA,SAAS,EAA4C,GAAU,GAAG;CAC9D,KAAK,IAAI,KAAW,GAA0C,EAAQ,GAAU,CAAC;AACrF;AAGI,SAAS,EAAiC,GAAG;CAE7C,OAAO,EAAE,EAAE,WAAW,CAAK,EAA2C,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,aAAa,EAAE,QAAQ,WAAW,EAAE,QAAQ;AAC9J;AACA,SAAS,EAA0C,GAAG;CAElD,AADA,IAA4C,IACxC,CAAK,EAA2C,aAAa,EAAiC,CAAC,MAC/F,IAAwC,YAExC,EAA4C,YAAY,CAAC;AAEjE;AACA,SAAS,EAAyC,GAAG;CAGjD,AAFA,IAAwC,WACG,iBAAiB,KAAI,EAAE,cAC9D,EAAE,SAAS,eAAe,EAAE,S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AY,EAAgB,EAC5B,eAAe,EAAM,OACzB,GAAG,EAAM,WAAW;CAExB,GAAG,CACC,CACJ,CAAC,GACM;EACS;EACD;CACf;AACJ"}
|
|
1
|
+
{"version":3,"file":"useHover","names":["$7U4qw$useEffect","$3siB1$useCallback","$5319z$useRef","$5319z$useCallback","$3s2y0$useRef","$3s2y0$useState","$3s2y0$useCallback","$hZqKM$useState","$hZqKM$useRef","$hZqKM$useEffect","$hZqKM$useMemo"],"sources":["../../node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs","../../node_modules/react-aria/dist/private/interactions/useFocus.mjs","../../node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs","../../node_modules/react-aria/dist/private/focus/useFocusRing.mjs","../../node_modules/react-aria/dist/private/interactions/useHover.mjs"],"sourcesContent":["import {getActiveElement as $23f2114a1b82827e$export$cd4e5573fbe2b576, getEventTarget as $23f2114a1b82827e$export$e58f029f0fbfdb29} from \"../utils/shadowdom/DOMFunctions.mjs\";\nimport {getOwnerDocument as $d447af545b77c9f1$export$b204af158042fbac, getOwnerWindow as $d447af545b77c9f1$export$f21a1ffae260145a} from \"../utils/domHelpers.mjs\";\nimport {ignoreFocusEvent as $a92dc41f639950be$export$fda7da73ab5d4c48} from \"./utils.mjs\";\nimport {isMac as $2add3ce32c6007eb$export$9ac100e40613ea10} from \"../utils/platform.mjs\";\nimport {isVirtualClick as $b5c62b033c25b96d$export$60278871457622de} from \"../utils/isVirtualEvent.mjs\";\nimport {openLink as $caaf0dd3060ed57c$export$95185d699e05d4d7} from \"../utils/openLink.mjs\";\nimport {useIsSSR as $c7eafbbe1ea5834e$export$535bd6ca7f90a273} from \"../ssr/SSRProvider.mjs\";\nimport {useState as $7U4qw$useState, useEffect as $7U4qw$useEffect} 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 */ // 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\n\n\n\n\nlet $8f5a2122b0992be3$var$currentModality = null;\nlet $8f5a2122b0992be3$var$currentPointerType = 'keyboard';\nconst $8f5a2122b0992be3$export$901e90a13c50a14e = new Set();\nlet $8f5a2122b0992be3$export$d90243b58daecda7 = new Map(); // We use a map here to support setting event listeners across multiple document objects.\nlet $8f5a2122b0992be3$var$hasEventBeforeFocus = false;\nlet $8f5a2122b0992be3$var$hasBlurredWindowRecently = false;\n// Only Tab or Esc keys will make focus visible on text input elements\nconst $8f5a2122b0992be3$var$FOCUS_VISIBLE_INPUT_KEYS = {\n Tab: true,\n Escape: true\n};\nfunction $8f5a2122b0992be3$var$triggerChangeHandlers(modality, e) {\n for (let handler of $8f5a2122b0992be3$export$901e90a13c50a14e)handler(modality, e);\n}\n/**\n * Helper function to determine if a KeyboardEvent is unmodified and could make keyboard focus\n * styles visible.\n */ function $8f5a2122b0992be3$var$isValidKey(e) {\n // Control and Shift keys trigger when navigating back to the tab with keyboard.\n return !(e.metaKey || !(0, $2add3ce32c6007eb$export$9ac100e40613ea10)() && e.altKey || e.ctrlKey || e.key === 'Control' || e.key === 'Shift' || e.key === 'Meta');\n}\nfunction $8f5a2122b0992be3$var$handleKeyboardEvent(e) {\n $8f5a2122b0992be3$var$hasEventBeforeFocus = true;\n if (!(0, $caaf0dd3060ed57c$export$95185d699e05d4d7).isOpening && $8f5a2122b0992be3$var$isValidKey(e)) {\n $8f5a2122b0992be3$var$currentModality = 'keyboard';\n $8f5a2122b0992be3$var$currentPointerType = 'keyboard';\n $8f5a2122b0992be3$var$triggerChangeHandlers('keyboard', e);\n }\n}\nfunction $8f5a2122b0992be3$var$handlePointerEvent(e) {\n $8f5a2122b0992be3$var$currentModality = 'pointer';\n $8f5a2122b0992be3$var$currentPointerType = 'pointerType' in e ? e.pointerType : 'mouse';\n if (e.type === 'mousedown' || e.type === 'pointerdown') {\n $8f5a2122b0992be3$var$hasEventBeforeFocus = true;\n $8f5a2122b0992be3$var$triggerChangeHandlers('pointer', e);\n }\n}\nfunction $8f5a2122b0992be3$var$handleClickEvent(e) {\n if (!(0, $caaf0dd3060ed57c$export$95185d699e05d4d7).isOpening && (0, $b5c62b033c25b96d$export$60278871457622de)(e)) {\n $8f5a2122b0992be3$var$hasEventBeforeFocus = true;\n $8f5a2122b0992be3$var$currentModality = 'virtual';\n $8f5a2122b0992be3$var$currentPointerType = 'virtual';\n }\n}\nfunction $8f5a2122b0992be3$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 let ownerWindow = (0, $d447af545b77c9f1$export$f21a1ffae260145a)((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e));\n let ownerDocument = (0, $d447af545b77c9f1$export$b204af158042fbac)((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e));\n if ((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e) === ownerWindow || (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e) === ownerDocument || (0, $a92dc41f639950be$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 (!$8f5a2122b0992be3$var$hasEventBeforeFocus && !$8f5a2122b0992be3$var$hasBlurredWindowRecently) {\n $8f5a2122b0992be3$var$currentModality = 'virtual';\n $8f5a2122b0992be3$var$currentPointerType = 'virtual';\n $8f5a2122b0992be3$var$triggerChangeHandlers('virtual', e);\n }\n $8f5a2122b0992be3$var$hasEventBeforeFocus = false;\n $8f5a2122b0992be3$var$hasBlurredWindowRecently = false;\n}\nfunction $8f5a2122b0992be3$var$handleWindowBlur() {\n if (0, $a92dc41f639950be$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 $8f5a2122b0992be3$var$hasEventBeforeFocus = false;\n $8f5a2122b0992be3$var$hasBlurredWindowRecently = true;\n}\n/**\n * Setup global event listeners to control when keyboard focus style should be visible.\n */ function $8f5a2122b0992be3$var$setupGlobalFocusEvents(element) {\n // eslint-disable-next-line no-restricted-globals\n if (typeof window === 'undefined' || typeof document === 'undefined') return;\n const windowObject = (0, $d447af545b77c9f1$export$f21a1ffae260145a)(element);\n const documentObject = (0, $d447af545b77c9f1$export$b204af158042fbac)(element);\n if ($8f5a2122b0992be3$export$d90243b58daecda7.get(windowObject)) return;\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 // defineProperty (not assignment) so this works even if `focus` is currently\n // a getter-only accessor — e.g. when @testing-library/user-event's setup()\n // has instrumented it. Plain assignment throws in that case.\n let focus = windowObject.HTMLElement.prototype.focus;\n Reflect.defineProperty(windowObject.HTMLElement.prototype, 'focus', {\n configurable: true,\n writable: true,\n value: function() {\n $8f5a2122b0992be3$var$hasEventBeforeFocus = true;\n focus.apply(this, arguments);\n }\n });\n documentObject.addEventListener('keydown', $8f5a2122b0992be3$var$handleKeyboardEvent, true);\n documentObject.addEventListener('keyup', $8f5a2122b0992be3$var$handleKeyboardEvent, true);\n documentObject.addEventListener('click', $8f5a2122b0992be3$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', $8f5a2122b0992be3$var$handleFocusEvent, true);\n windowObject.addEventListener('blur', $8f5a2122b0992be3$var$handleWindowBlur, false);\n if (typeof PointerEvent !== 'undefined') {\n documentObject.addEventListener('pointerdown', $8f5a2122b0992be3$var$handlePointerEvent, true);\n documentObject.addEventListener('pointermove', $8f5a2122b0992be3$var$handlePointerEvent, true);\n documentObject.addEventListener('pointerup', $8f5a2122b0992be3$var$handlePointerEvent, true);\n } else if (process.env.NODE_ENV === 'test') {\n documentObject.addEventListener('mousedown', $8f5a2122b0992be3$var$handlePointerEvent, true);\n documentObject.addEventListener('mousemove', $8f5a2122b0992be3$var$handlePointerEvent, true);\n documentObject.addEventListener('mouseup', $8f5a2122b0992be3$var$handlePointerEvent, true);\n }\n // Add unmount handler\n windowObject.addEventListener('beforeunload', ()=>{\n $8f5a2122b0992be3$var$tearDownWindowFocusTracking(element);\n }, {\n once: true\n });\n $8f5a2122b0992be3$export$d90243b58daecda7.set(windowObject, {\n focus: focus\n });\n}\nconst $8f5a2122b0992be3$var$tearDownWindowFocusTracking = (element, loadListener)=>{\n const windowObject = (0, $d447af545b77c9f1$export$f21a1ffae260145a)(element);\n const documentObject = (0, $d447af545b77c9f1$export$b204af158042fbac)(element);\n if (loadListener) documentObject.removeEventListener('DOMContentLoaded', loadListener);\n if (!$8f5a2122b0992be3$export$d90243b58daecda7.has(windowObject)) return;\n Reflect.defineProperty(windowObject.HTMLElement.prototype, 'focus', {\n configurable: true,\n writable: true,\n value: $8f5a2122b0992be3$export$d90243b58daecda7.get(windowObject).focus\n });\n documentObject.removeEventListener('keydown', $8f5a2122b0992be3$var$handleKeyboardEvent, true);\n documentObject.removeEventListener('keyup', $8f5a2122b0992be3$var$handleKeyboardEvent, true);\n documentObject.removeEventListener('click', $8f5a2122b0992be3$var$handleClickEvent, true);\n windowObject.removeEventListener('focus', $8f5a2122b0992be3$var$handleFocusEvent, true);\n windowObject.removeEventListener('blur', $8f5a2122b0992be3$var$handleWindowBlur, false);\n if (typeof PointerEvent !== 'undefined') {\n documentObject.removeEventListener('pointerdown', $8f5a2122b0992be3$var$handlePointerEvent, true);\n documentObject.removeEventListener('pointermove', $8f5a2122b0992be3$var$handlePointerEvent, true);\n documentObject.removeEventListener('pointerup', $8f5a2122b0992be3$var$handlePointerEvent, true);\n } else if (process.env.NODE_ENV === 'test') {\n documentObject.removeEventListener('mousedown', $8f5a2122b0992be3$var$handlePointerEvent, true);\n documentObject.removeEventListener('mousemove', $8f5a2122b0992be3$var$handlePointerEvent, true);\n documentObject.removeEventListener('mouseup', $8f5a2122b0992be3$var$handlePointerEvent, true);\n }\n $8f5a2122b0992be3$export$d90243b58daecda7.delete(windowObject);\n};\nfunction $8f5a2122b0992be3$export$2f1888112f558a7d(element) {\n const documentObject = (0, $d447af545b77c9f1$export$b204af158042fbac)(element);\n let loadListener;\n if (documentObject.readyState !== 'loading') $8f5a2122b0992be3$var$setupGlobalFocusEvents(element);\n else {\n loadListener = ()=>{\n $8f5a2122b0992be3$var$setupGlobalFocusEvents(element);\n };\n documentObject.addEventListener('DOMContentLoaded', loadListener);\n }\n return ()=>$8f5a2122b0992be3$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') $8f5a2122b0992be3$export$2f1888112f558a7d();\nfunction $8f5a2122b0992be3$export$b9b3dfddab17db27() {\n return $8f5a2122b0992be3$var$currentModality !== 'pointer';\n}\nfunction $8f5a2122b0992be3$export$630ff653c5ada6a9() {\n return $8f5a2122b0992be3$var$currentModality;\n}\nfunction $8f5a2122b0992be3$export$8397ddfc504fdb9a(modality) {\n $8f5a2122b0992be3$var$currentModality = modality;\n $8f5a2122b0992be3$var$currentPointerType = modality === 'pointer' ? 'mouse' : modality;\n $8f5a2122b0992be3$var$triggerChangeHandlers(modality, null);\n}\nfunction $8f5a2122b0992be3$export$887a228355cf7d95() {\n return $8f5a2122b0992be3$var$currentPointerType;\n}\nfunction $8f5a2122b0992be3$export$98e20ec92f614cfe() {\n $8f5a2122b0992be3$var$setupGlobalFocusEvents();\n let [modality, setModality] = (0, $7U4qw$useState)($8f5a2122b0992be3$var$currentModality);\n (0, $7U4qw$useEffect)(()=>{\n let handler = ()=>{\n setModality($8f5a2122b0992be3$var$currentModality);\n };\n $8f5a2122b0992be3$export$901e90a13c50a14e.add(handler);\n return ()=>{\n $8f5a2122b0992be3$export$901e90a13c50a14e.delete(handler);\n };\n }, []);\n return (0, $c7eafbbe1ea5834e$export$535bd6ca7f90a273)() ? null : modality;\n}\nconst $8f5a2122b0992be3$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\n * keys pressed) so that focus visible style can be properly set.\n */ function $8f5a2122b0992be3$var$isKeyboardFocusEvent(isTextInput, modality, e) {\n let eventTarget = e ? (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e) : undefined;\n let document1 = (0, $d447af545b77c9f1$export$b204af158042fbac)(eventTarget);\n let ownerWindow = (0, $d447af545b77c9f1$export$f21a1ffae260145a)(eventTarget);\n const IHTMLInputElement = typeof ownerWindow !== 'undefined' ? ownerWindow.HTMLInputElement : HTMLInputElement;\n const IHTMLTextAreaElement = typeof ownerWindow !== 'undefined' ? ownerWindow.HTMLTextAreaElement : HTMLTextAreaElement;\n const IHTMLElement = typeof ownerWindow !== 'undefined' ? ownerWindow.HTMLElement : HTMLElement;\n const IKeyboardEvent = typeof ownerWindow !== 'undefined' ? ownerWindow.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 let activeElement = (0, $23f2114a1b82827e$export$cd4e5573fbe2b576)(document1);\n isTextInput = isTextInput || activeElement instanceof IHTMLInputElement && !$8f5a2122b0992be3$var$nonTextInputTypes.has(activeElement.type) || activeElement instanceof IHTMLTextAreaElement || activeElement instanceof IHTMLElement && activeElement.isContentEditable;\n return !(isTextInput && modality === 'keyboard' && e instanceof IKeyboardEvent && !$8f5a2122b0992be3$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);\n}\nfunction $8f5a2122b0992be3$export$ffd9e5021c1fb2d6(props = {}) {\n let { isTextInput: isTextInput, autoFocus: autoFocus } = props;\n let [isFocusVisibleState, setFocusVisible] = (0, $7U4qw$useState)(autoFocus || $8f5a2122b0992be3$export$b9b3dfddab17db27());\n $8f5a2122b0992be3$export$ec71b4b83ac08ec3((isFocusVisible)=>{\n setFocusVisible(isFocusVisible);\n }, [\n isTextInput\n ], {\n isTextInput: isTextInput\n });\n return {\n isFocusVisible: isFocusVisibleState\n };\n}\nfunction $8f5a2122b0992be3$export$ec71b4b83ac08ec3(fn, deps, opts) {\n $8f5a2122b0992be3$var$setupGlobalFocusEvents();\n (0, $7U4qw$useEffect)(()=>{\n if (opts?.enabled === false) return;\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 (!$8f5a2122b0992be3$var$isKeyboardFocusEvent(!!opts?.isTextInput, modality, e)) return;\n fn($8f5a2122b0992be3$export$b9b3dfddab17db27());\n };\n $8f5a2122b0992be3$export$901e90a13c50a14e.add(handler);\n return ()=>{\n $8f5a2122b0992be3$export$901e90a13c50a14e.delete(handler);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n}\n\n\nexport {$8f5a2122b0992be3$export$901e90a13c50a14e as changeHandlers, $8f5a2122b0992be3$export$d90243b58daecda7 as hasSetupGlobalListeners, $8f5a2122b0992be3$export$2f1888112f558a7d as addWindowFocusTracking, $8f5a2122b0992be3$export$b9b3dfddab17db27 as isFocusVisible, $8f5a2122b0992be3$export$630ff653c5ada6a9 as getInteractionModality, $8f5a2122b0992be3$export$8397ddfc504fdb9a as setInteractionModality, $8f5a2122b0992be3$export$887a228355cf7d95 as getPointerType, $8f5a2122b0992be3$export$98e20ec92f614cfe as useInteractionModality, $8f5a2122b0992be3$export$ffd9e5021c1fb2d6 as useFocusVisible, $8f5a2122b0992be3$export$ec71b4b83ac08ec3 as useFocusVisibleListener};\n//# sourceMappingURL=useFocusVisible.mjs.map\n","import {getActiveElement as $23f2114a1b82827e$export$cd4e5573fbe2b576, getEventTarget as $23f2114a1b82827e$export$e58f029f0fbfdb29} from \"../utils/shadowdom/DOMFunctions.mjs\";\nimport {getOwnerDocument as $d447af545b77c9f1$export$b204af158042fbac} from \"../utils/domHelpers.mjs\";\nimport {useSyntheticBlurEvent as $a92dc41f639950be$export$715c682d09d639cc} from \"./utils.mjs\";\nimport {useCallback as $3siB1$useCallback} 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 */ // 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\nfunction $1e74c67db218ce67$export$f8168d8dd8fd66e6(props) {\n let { isDisabled: isDisabled, onFocus: onFocusProp, onBlur: onBlurProp, onFocusChange: onFocusChange } = props;\n const onBlur = (0, $3siB1$useCallback)((e)=>{\n if ((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e) === 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, $a92dc41f639950be$export$715c682d09d639cc)(onBlur);\n const onFocus = (0, $3siB1$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 let eventTarget = (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e);\n const ownerDocument = (0, $d447af545b77c9f1$export$b204af158042fbac)(eventTarget);\n const activeElement = ownerDocument ? (0, $23f2114a1b82827e$export$cd4e5573fbe2b576)(ownerDocument) : (0, $23f2114a1b82827e$export$cd4e5573fbe2b576)();\n if (eventTarget === e.currentTarget && eventTarget === activeElement) {\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 {$1e74c67db218ce67$export$f8168d8dd8fd66e6 as useFocus};\n//# sourceMappingURL=useFocus.mjs.map\n","import {createSyntheticEvent as $a92dc41f639950be$export$525bc4921d56d4a, setEventTarget as $a92dc41f639950be$export$c2b7abe5d61ec696, useSyntheticBlurEvent as $a92dc41f639950be$export$715c682d09d639cc} from \"./utils.mjs\";\nimport {getActiveElement as $23f2114a1b82827e$export$cd4e5573fbe2b576, getEventTarget as $23f2114a1b82827e$export$e58f029f0fbfdb29, nodeContains as $23f2114a1b82827e$export$4282f70798064fe0} from \"../utils/shadowdom/DOMFunctions.mjs\";\nimport {getOwnerDocument as $d447af545b77c9f1$export$b204af158042fbac} from \"../utils/domHelpers.mjs\";\nimport {useGlobalListeners as $48a7d519b337145d$export$4eaf04e54aa8eed6} from \"../utils/useGlobalListeners.mjs\";\nimport {useRef as $5319z$useRef, useCallback as $5319z$useCallback} 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 */ // 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\n\nfunction $2c9edc598a03d523$export$420e68273165f4ec(props) {\n let { isDisabled: isDisabled, onBlurWithin: onBlurWithin, onFocusWithin: onFocusWithin, onFocusWithinChange: onFocusWithinChange } = props;\n let state = (0, $5319z$useRef)({\n isFocusWithin: false\n });\n let { addGlobalListener: addGlobalListener, removeAllGlobalListeners: removeAllGlobalListeners } = (0, $48a7d519b337145d$export$4eaf04e54aa8eed6)();\n let onBlur = (0, $5319z$useCallback)((e)=>{\n // Ignore events bubbling through portals.\n if (!(0, $23f2114a1b82827e$export$4282f70798064fe0)(e.currentTarget, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e))) 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 && !(0, $23f2114a1b82827e$export$4282f70798064fe0)(e.currentTarget, 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, $a92dc41f639950be$export$715c682d09d639cc)(onBlur);\n let onFocus = (0, $5319z$useCallback)((e)=>{\n // Ignore events bubbling through portals.\n if (!(0, $23f2114a1b82827e$export$4282f70798064fe0)(e.currentTarget, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e))) 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 let eventTarget = (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e);\n const ownerDocument = (0, $d447af545b77c9f1$export$b204af158042fbac)(eventTarget);\n const activeElement = (0, $23f2114a1b82827e$export$cd4e5573fbe2b576)(ownerDocument);\n if (!state.current.isFocusWithin && activeElement === eventTarget) {\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 let eventTarget = (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e);\n if (state.current.isFocusWithin && !(0, $23f2114a1b82827e$export$4282f70798064fe0)(currentTarget, eventTarget)) {\n let nativeEvent = new ownerDocument.defaultView.FocusEvent('blur', {\n relatedTarget: eventTarget\n });\n (0, $a92dc41f639950be$export$c2b7abe5d61ec696)(nativeEvent, currentTarget);\n let event = (0, $a92dc41f639950be$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 {$2c9edc598a03d523$export$420e68273165f4ec as useFocusWithin};\n//# sourceMappingURL=useFocusWithin.mjs.map\n","import {isFocusVisible as $8f5a2122b0992be3$export$b9b3dfddab17db27, useFocusVisibleListener as $8f5a2122b0992be3$export$ec71b4b83ac08ec3} from \"../interactions/useFocusVisible.mjs\";\nimport {useFocus as $1e74c67db218ce67$export$f8168d8dd8fd66e6} from \"../interactions/useFocus.mjs\";\nimport {useFocusWithin as $2c9edc598a03d523$export$420e68273165f4ec} from \"../interactions/useFocusWithin.mjs\";\nimport {useRef as $3s2y0$useRef, useState as $3s2y0$useState, useCallback as $3s2y0$useCallback} from \"react\";\n\n\n\n\n\nfunction $0c4a58759813079a$export$4e328f61c538687f(props = {}) {\n let { autoFocus: autoFocus = false, isTextInput: isTextInput, within: within } = props;\n let state = (0, $3s2y0$useRef)({\n isFocused: false,\n isFocusVisible: autoFocus || (0, $8f5a2122b0992be3$export$b9b3dfddab17db27)()\n });\n let [isFocused, setFocused] = (0, $3s2y0$useState)(false);\n let [isFocusVisibleState, setFocusVisible] = (0, $3s2y0$useState)(()=>state.current.isFocused && state.current.isFocusVisible);\n let updateState = (0, $3s2y0$useCallback)(()=>setFocusVisible(state.current.isFocused && state.current.isFocusVisible), []);\n let onFocusChange = (0, $3s2y0$useCallback)((isFocused)=>{\n state.current.isFocused = isFocused;\n state.current.isFocusVisible = (0, $8f5a2122b0992be3$export$b9b3dfddab17db27)();\n setFocused(isFocused);\n updateState();\n }, [\n updateState\n ]);\n (0, $8f5a2122b0992be3$export$ec71b4b83ac08ec3)((isFocusVisible)=>{\n state.current.isFocusVisible = isFocusVisible;\n updateState();\n }, [\n isTextInput,\n isFocused\n ], {\n enabled: isFocused,\n isTextInput: isTextInput\n });\n let { focusProps: focusProps } = (0, $1e74c67db218ce67$export$f8168d8dd8fd66e6)({\n isDisabled: within,\n onFocusChange: onFocusChange\n });\n let { focusWithinProps: focusWithinProps } = (0, $2c9edc598a03d523$export$420e68273165f4ec)({\n isDisabled: !within,\n onFocusWithinChange: onFocusChange\n });\n return {\n isFocused: isFocused,\n isFocusVisible: isFocusVisibleState,\n focusProps: within ? focusWithinProps : focusProps\n };\n}\n\n\nexport {$0c4a58759813079a$export$4e328f61c538687f as useFocusRing};\n//# sourceMappingURL=useFocusRing.mjs.map\n","import {getEventTarget as $23f2114a1b82827e$export$e58f029f0fbfdb29, nodeContains as $23f2114a1b82827e$export$4282f70798064fe0} from \"../utils/shadowdom/DOMFunctions.mjs\";\nimport {getOwnerDocument as $d447af545b77c9f1$export$b204af158042fbac} from \"../utils/domHelpers.mjs\";\nimport {useGlobalListeners as $48a7d519b337145d$export$4eaf04e54aa8eed6} from \"../utils/useGlobalListeners.mjs\";\nimport {useState as $hZqKM$useState, useRef as $hZqKM$useRef, useEffect as $hZqKM$useEffect, useMemo as $hZqKM$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 */ // 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\n// iOS fires onPointerEnter twice: once with pointerType=\"touch\" and again with pointerType=\"mouse\".\n// We want to ignore these emulated events so they do not trigger hover behavior.\n// See https://bugs.webkit.org/show_bug.cgi?id=214609.\nlet $e969f22b6713ca4a$var$globalIgnoreEmulatedMouseEvents = false;\nlet $e969f22b6713ca4a$var$hoverCount = 0;\nfunction $e969f22b6713ca4a$var$setGlobalIgnoreEmulatedMouseEvents() {\n $e969f22b6713ca4a$var$globalIgnoreEmulatedMouseEvents = true;\n // Clear globalIgnoreEmulatedMouseEvents after a short timeout. iOS fires onPointerEnter\n // with pointerType=\"mouse\" immediately after onPointerUp and before onFocus. On other\n // devices that don't have this quirk, we don't want to ignore a mouse hover sometime in\n // the distant future because a user previously touched the element.\n setTimeout(()=>{\n $e969f22b6713ca4a$var$globalIgnoreEmulatedMouseEvents = false;\n }, 500);\n}\nfunction $e969f22b6713ca4a$var$handleGlobalPointerEvent(e) {\n if (e.pointerType === 'touch') $e969f22b6713ca4a$var$setGlobalIgnoreEmulatedMouseEvents();\n}\nfunction $e969f22b6713ca4a$var$setupGlobalTouchEvents() {\n let ownerDocument = (0, $d447af545b77c9f1$export$b204af158042fbac)(null);\n if (typeof ownerDocument === 'undefined') return;\n if ($e969f22b6713ca4a$var$hoverCount === 0) {\n if (typeof PointerEvent !== 'undefined') ownerDocument.addEventListener('pointerup', $e969f22b6713ca4a$var$handleGlobalPointerEvent);\n else if (process.env.NODE_ENV === 'test') ownerDocument.addEventListener('touchend', $e969f22b6713ca4a$var$setGlobalIgnoreEmulatedMouseEvents);\n }\n $e969f22b6713ca4a$var$hoverCount++;\n return ()=>{\n $e969f22b6713ca4a$var$hoverCount--;\n if ($e969f22b6713ca4a$var$hoverCount > 0) return;\n if (typeof PointerEvent !== 'undefined') ownerDocument.removeEventListener('pointerup', $e969f22b6713ca4a$var$handleGlobalPointerEvent);\n else if (process.env.NODE_ENV === 'test') ownerDocument.removeEventListener('touchend', $e969f22b6713ca4a$var$setGlobalIgnoreEmulatedMouseEvents);\n };\n}\nfunction $e969f22b6713ca4a$export$ae780daf29e6d456(props) {\n let { onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, isDisabled: isDisabled } = props;\n let [isHovered, setHovered] = (0, $hZqKM$useState)(false);\n let state = (0, $hZqKM$useRef)({\n isHovered: false,\n ignoreEmulatedMouseEvents: false,\n pointerType: '',\n target: null\n }).current;\n (0, $hZqKM$useEffect)($e969f22b6713ca4a$var$setupGlobalTouchEvents, []);\n let { addGlobalListener: addGlobalListener, removeAllGlobalListeners: removeAllGlobalListeners } = (0, $48a7d519b337145d$export$4eaf04e54aa8eed6)();\n let { hoverProps: hoverProps, triggerHoverEnd: triggerHoverEnd } = (0, $hZqKM$useMemo)(()=>{\n let triggerHoverStart = (event, pointerType)=>{\n state.pointerType = pointerType;\n if (isDisabled || pointerType === 'touch' || state.isHovered || !(0, $23f2114a1b82827e$export$4282f70798064fe0)(event.currentTarget, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(event))) return;\n state.isHovered = true;\n let target = event.currentTarget;\n state.target = target;\n // When an element that is hovered over is removed, no pointerleave event is fired by the browser,\n // even though the originally hovered target may have shrunk in size so it is no longer hovered.\n // However, a pointerover event will be fired on the new target the mouse is over.\n // In Chrome this happens immediately. In Safari and Firefox, it happens upon moving the mouse one pixel.\n addGlobalListener((0, $d447af545b77c9f1$export$b204af158042fbac)((0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(event)), 'pointerover', (e)=>{\n if (state.isHovered && state.target && !(0, $23f2114a1b82827e$export$4282f70798064fe0)(state.target, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e))) triggerHoverEnd(e, e.pointerType);\n }, {\n capture: true\n });\n if (onHoverStart) onHoverStart({\n type: 'hoverstart',\n target: target,\n pointerType: pointerType\n });\n if (onHoverChange) onHoverChange(true);\n setHovered(true);\n };\n let triggerHoverEnd = (event, pointerType)=>{\n let target = state.target;\n state.pointerType = '';\n state.target = null;\n if (pointerType === 'touch' || !state.isHovered || !target) return;\n state.isHovered = false;\n removeAllGlobalListeners();\n if (onHoverEnd) onHoverEnd({\n type: 'hoverend',\n target: target,\n pointerType: pointerType\n });\n if (onHoverChange) onHoverChange(false);\n setHovered(false);\n };\n let hoverProps = {};\n if (typeof PointerEvent !== 'undefined') {\n hoverProps.onPointerEnter = (e)=>{\n if ($e969f22b6713ca4a$var$globalIgnoreEmulatedMouseEvents && e.pointerType === 'mouse') return;\n triggerHoverStart(e, e.pointerType);\n };\n hoverProps.onPointerLeave = (e)=>{\n if (!isDisabled && (0, $23f2114a1b82827e$export$4282f70798064fe0)(e.currentTarget, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e))) triggerHoverEnd(e, e.pointerType);\n };\n } else if (process.env.NODE_ENV === 'test') {\n hoverProps.onTouchStart = ()=>{\n state.ignoreEmulatedMouseEvents = true;\n };\n hoverProps.onMouseEnter = (e)=>{\n if (!state.ignoreEmulatedMouseEvents && !$e969f22b6713ca4a$var$globalIgnoreEmulatedMouseEvents) triggerHoverStart(e, 'mouse');\n state.ignoreEmulatedMouseEvents = false;\n };\n hoverProps.onMouseLeave = (e)=>{\n if (!isDisabled && (0, $23f2114a1b82827e$export$4282f70798064fe0)(e.currentTarget, (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(e))) triggerHoverEnd(e, 'mouse');\n };\n }\n return {\n hoverProps: hoverProps,\n triggerHoverEnd: triggerHoverEnd\n };\n }, [\n onHoverStart,\n onHoverChange,\n onHoverEnd,\n isDisabled,\n state,\n addGlobalListener,\n removeAllGlobalListeners\n ]);\n (0, $hZqKM$useEffect)(()=>{\n // Call the triggerHoverEnd as soon as isDisabled changes to true\n // Safe to call triggerHoverEnd, it will early return if we aren't currently hovering\n if (isDisabled) triggerHoverEnd({\n currentTarget: state.target\n }, state.pointerType);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n isDisabled\n ]);\n return {\n hoverProps: hoverProps,\n isHovered: isHovered\n };\n}\n\n\nexport {$e969f22b6713ca4a$export$ae780daf29e6d456 as useHover};\n//# sourceMappingURL=useHover.mjs.map\n"],"x_google_ignoreList":[0,1,2,3,4],"mappings":";;;AA+BA,IAAI,IAAwC,MAEtC,oBAA4C,IAAI,IAAI,GACtD,oBAA4C,IAAI,IAAI,GACpD,IAA4C,IAC5C,IAAiD,IAE/C,IAAiD;CACnD,KAAK;CACL,QAAQ;AACZ;AACA,SAAS,EAA4C,GAAU,GAAG;CAC9D,KAAK,IAAI,KAAW,GAA0C,EAAQ,GAAU,CAAC;AACrF;AAII,SAAS,EAAiC,GAAG;CAE7C,OAAO,EAAE,EAAE,WAAW,CAAK,EAA2C,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,aAAa,EAAE,QAAQ,WA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4BAA4B;EACtC,GACA,EAAW,gBAAgB,MAAI;GAE3B,AADI,CAAC,EAAM,6BAA6B,CAAC,KAAuD,EAAkB,GAAG,OAAO,GAC5H,EAAM,4BAA4B;EACtC,GACA,EAAW,gBAAgB,MAAI;GAC3B,AAAI,CAAC,KAAkB,EAA2C,EAAE,eAAmB,EAA2C,CAAC,CAAC,KAAG,EAAgB,GAAG,OAAO;EACrK,IAEG;GACS;GACK;EACrB;CACJ,GAAG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;CACJ,CAAC;CAWD,OAVA,QAA0B;EAGtB,AAAI,KAAY,EAAgB,EAC5B,eAAe,EAAM,OACzB,GAAG,EAAM,WAAW;CAExB,GAAG,CACC,CACJ,CAAC,GACM;EACS;EACD;CACf;AACJ"}
|
package/dist/chunks/usePress
CHANGED
|
@@ -241,7 +241,17 @@ function U(n) {
|
|
|
241
241
|
w,
|
|
242
242
|
N,
|
|
243
243
|
I
|
|
244
|
-
]), X = L(Y)
|
|
244
|
+
]), X = L(Y);
|
|
245
|
+
h(() => {
|
|
246
|
+
b && j.current.isPressed && X({
|
|
247
|
+
currentTarget: j.current.target,
|
|
248
|
+
shiftKey: !1,
|
|
249
|
+
ctrlKey: !1,
|
|
250
|
+
metaKey: !1,
|
|
251
|
+
altKey: !1
|
|
252
|
+
});
|
|
253
|
+
}, [b]);
|
|
254
|
+
let Z = p((e) => {
|
|
245
255
|
C && Y(e);
|
|
246
256
|
}, [C, Y]), Q = p((e) => {
|
|
247
257
|
b || y?.(e);
|