@adgytec/adgytec-web-ui-components 2.3.1 → 2.4.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/README.md +27 -16
- package/dist/App.d.ts +0 -1
- package/dist/assets/BottomSheetModal.css +1 -1
- package/dist/assets/Card.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/ListItem.css +1 -1
- package/dist/assets/Radio.css +1 -1
- package/dist/assets/SideSheetModal.css +1 -1
- package/dist/assets/Switch.css +1 -1
- package/dist/assets/ThemeSelector.css +1 -1
- package/dist/assets/core7.css +1 -1
- package/dist/chunks/ActionDialog +0 -1
- package/dist/chunks/ActionDialog.map +1 -1
- package/dist/chunks/AppBar +0 -1
- package/dist/chunks/AppBar.map +1 -1
- package/dist/chunks/AppBarAction +0 -1
- package/dist/chunks/AppBarAction.map +1 -1
- package/dist/chunks/AppBarAvatar +1 -2
- package/dist/chunks/AppBarAvatar.map +1 -1
- package/dist/chunks/AppBarHeadline +1 -2
- package/dist/chunks/AppBarHeadline.map +1 -1
- package/dist/chunks/BaseCalendar +2 -11
- package/dist/chunks/BaseCalendar.map +1 -1
- package/dist/chunks/BottomSheet +1 -2
- package/dist/chunks/BottomSheet.map +1 -1
- package/dist/chunks/BottomSheetModal +1 -2
- package/dist/chunks/BottomSheetModal.map +1 -1
- package/dist/chunks/ButtonGroup +1 -2
- package/dist/chunks/ButtonGroup.map +1 -1
- package/dist/chunks/CalendarCell +0 -1
- package/dist/chunks/CalendarCell.map +1 -1
- package/dist/chunks/CalendarGrid +1 -2
- package/dist/chunks/CalendarGrid.map +1 -1
- package/dist/chunks/CalendarMenuItem +1 -2
- package/dist/chunks/CalendarMenuItem.map +1 -1
- package/dist/chunks/Card +4 -5
- package/dist/chunks/Card.map +1 -1
- package/dist/chunks/CardIcon +1 -2
- package/dist/chunks/CardIcon.map +1 -1
- package/dist/chunks/CenteredSlider +1 -2
- package/dist/chunks/CenteredSlider.map +1 -1
- package/dist/chunks/ComboBox +1 -2
- package/dist/chunks/ComboBox.map +1 -1
- package/dist/chunks/ComboBoxPopover +0 -1
- package/dist/chunks/ComboBoxPopover.map +1 -1
- package/dist/chunks/ComboBoxTrigger +182 -200
- package/dist/chunks/ComboBoxTrigger.map +1 -1
- package/dist/chunks/ConnectedButtonGroup +0 -1
- package/dist/chunks/ConnectedButtonGroup.map +1 -1
- package/dist/chunks/Dialog +1 -2
- package/dist/chunks/Dialog.map +1 -1
- package/dist/chunks/Disclosure +1 -2
- package/dist/chunks/Disclosure.map +1 -1
- package/dist/chunks/DisclosureGroup +1 -2
- package/dist/chunks/DisclosureGroup.map +1 -1
- package/dist/chunks/DisclosureHeader +1 -2
- package/dist/chunks/DisclosureHeader.map +1 -1
- package/dist/chunks/DisclosurePanel +1 -2
- package/dist/chunks/DisclosurePanel.map +1 -1
- package/dist/chunks/Divider +1 -2
- package/dist/chunks/Divider.map +1 -1
- package/dist/chunks/FieldError +1 -2
- package/dist/chunks/FieldError.map +1 -1
- package/dist/chunks/GridBackgroundDecorator +0 -1
- package/dist/chunks/GridBackgroundDecorator.map +1 -1
- package/dist/chunks/Icon +1 -2
- package/dist/chunks/Icon.map +1 -1
- package/dist/chunks/Input +67 -78
- package/dist/chunks/Input.map +1 -1
- package/dist/chunks/Input2 +4 -8
- package/dist/chunks/Input2.map +1 -1
- package/dist/chunks/ListAction +0 -1
- package/dist/chunks/ListAction.map +1 -1
- package/dist/chunks/ListAvatar +1 -2
- package/dist/chunks/ListAvatar.map +1 -1
- package/dist/chunks/ListBox +12 -9
- package/dist/chunks/ListBox.map +1 -1
- package/dist/chunks/ListIcon +1 -2
- package/dist/chunks/ListIcon.map +1 -1
- package/dist/chunks/ListItem +62 -49
- package/dist/chunks/ListItem.map +1 -1
- package/dist/chunks/ListLabelText +1 -2
- package/dist/chunks/ListLabelText.map +1 -1
- package/dist/chunks/ListMedia +0 -1
- package/dist/chunks/ListMedia.map +1 -1
- package/dist/chunks/ListOverlineText +1 -2
- package/dist/chunks/ListOverlineText.map +1 -1
- package/dist/chunks/ListSupportingText +1 -2
- package/dist/chunks/ListSupportingText.map +1 -1
- package/dist/chunks/ListTrailingText +1 -2
- package/dist/chunks/ListTrailingText.map +1 -1
- package/dist/chunks/Loader +1 -2
- package/dist/chunks/Loader.map +1 -1
- package/dist/chunks/MenuPopover +1 -2
- package/dist/chunks/MenuPopover.map +1 -1
- package/dist/chunks/Modal +1 -2
- package/dist/chunks/Modal.map +1 -1
- package/dist/chunks/ModalOverlay +1 -2
- package/dist/chunks/ModalOverlay.map +1 -1
- package/dist/chunks/Navigation +2 -4
- package/dist/chunks/Navigation.map +1 -1
- package/dist/chunks/NavigationScrollContainer +2 -4
- package/dist/chunks/NavigationScrollContainer.map +1 -1
- package/dist/chunks/NavigationSection +1 -2
- package/dist/chunks/NavigationSection.map +1 -1
- package/dist/chunks/NavigationSectionLabel +1 -2
- package/dist/chunks/NavigationSectionLabel.map +1 -1
- package/dist/chunks/Popover +1 -2
- package/dist/chunks/Popover.map +1 -1
- package/dist/chunks/RadialGlowDecorator +0 -1
- package/dist/chunks/RadialGlowDecorator.map +1 -1
- package/dist/chunks/Radio +57 -70
- package/dist/chunks/Radio.map +1 -1
- package/dist/chunks/RichTooltip +1 -2
- package/dist/chunks/RichTooltip.map +1 -1
- package/dist/chunks/RichTooltipActions +1 -2
- package/dist/chunks/RichTooltipActions.map +1 -1
- package/dist/chunks/RichTooltipInfo +1 -2
- package/dist/chunks/RichTooltipInfo.map +1 -1
- package/dist/chunks/SearchField +0 -1
- package/dist/chunks/SearchField.map +1 -1
- package/dist/chunks/SelectPopover +1 -2
- package/dist/chunks/SelectPopover.map +1 -1
- package/dist/chunks/SelectTrigger +1 -2
- package/dist/chunks/SelectTrigger.map +1 -1
- package/dist/chunks/SideSheet +1 -2
- package/dist/chunks/SideSheet.map +1 -1
- package/dist/chunks/SideSheetModal +2 -3
- package/dist/chunks/SideSheetModal.map +1 -1
- package/dist/chunks/Slider +0 -1
- package/dist/chunks/Slider.map +1 -1
- package/dist/chunks/SliderOutput +1 -2
- package/dist/chunks/SliderOutput.map +1 -1
- package/dist/chunks/SliderStops +1 -2
- package/dist/chunks/SliderStops.map +1 -1
- package/dist/chunks/SliderThumb +0 -1
- package/dist/chunks/SliderThumb.map +1 -1
- package/dist/chunks/Snackbar +1 -2
- package/dist/chunks/Snackbar.map +1 -1
- package/dist/chunks/SplitButton +1 -2
- package/dist/chunks/SplitButton.map +1 -1
- package/dist/chunks/SplitButtonTrigger +1 -2
- package/dist/chunks/SplitButtonTrigger.map +1 -1
- package/dist/chunks/SubmenuPopover +0 -1
- package/dist/chunks/SubmenuPopover.map +1 -1
- package/dist/chunks/Switch +47 -48
- package/dist/chunks/Switch.map +1 -1
- package/dist/chunks/Tab +1 -2
- package/dist/chunks/Tab.map +1 -1
- package/dist/chunks/TabList +1 -2
- package/dist/chunks/TabList.map +1 -1
- package/dist/chunks/TabPanel +1 -2
- package/dist/chunks/TabPanel.map +1 -1
- package/dist/chunks/TabPanels +1 -2
- package/dist/chunks/TabPanels.map +1 -1
- package/dist/chunks/Tabs +1 -2
- package/dist/chunks/Tabs.map +1 -1
- package/dist/chunks/Tag +1 -2
- package/dist/chunks/Tag.map +1 -1
- package/dist/chunks/ThemeSelector +109 -85
- package/dist/chunks/ThemeSelector.map +1 -1
- package/dist/chunks/Toolbar +0 -1
- package/dist/chunks/Toolbar.map +1 -1
- package/dist/chunks/Tooltip +0 -1
- package/dist/chunks/Tooltip.map +1 -1
- package/dist/chunks/base +1 -2
- package/dist/chunks/compiler-runtime +2 -3
- package/dist/chunks/context +1 -2
- package/dist/chunks/core +3 -6
- package/dist/chunks/core.map +1 -1
- package/dist/chunks/core2 +0 -1
- package/dist/chunks/core2.map +1 -1
- package/dist/chunks/core3 +2 -5
- package/dist/chunks/core3.map +1 -1
- package/dist/chunks/core4 +0 -1
- package/dist/chunks/core4.map +1 -1
- package/dist/chunks/core5 +0 -1
- package/dist/chunks/core5.map +1 -1
- package/dist/chunks/core6 +9 -10
- package/dist/chunks/core6.map +1 -1
- package/dist/chunks/core7 +2 -5
- package/dist/chunks/core7.map +1 -1
- package/dist/chunks/core8 +1 -3
- package/dist/chunks/core8.map +1 -1
- package/dist/chunks/core9 +0 -1
- package/dist/chunks/core9.map +1 -1
- package/dist/chunks/navContext +1 -2
- package/dist/chunks/navContext.map +1 -1
- package/dist/chunks/tapTarget +0 -1
- package/dist/chunks/tapTarget.map +1 -1
- package/dist/chunks/types +1 -2
- package/dist/chunks/useHover +187 -225
- package/dist/chunks/useHover.map +1 -1
- package/dist/chunks/useSplash +1 -2
- package/dist/chunks/useSplash.map +1 -1
- package/dist/components/AppBar/AppBar/index.js +1 -2
- package/dist/components/AppBar/AppBarAction/index.js +1 -2
- package/dist/components/AppBar/AppBarAvatar/index.js +1 -2
- package/dist/components/AppBar/AppBarHeadline/index.js +1 -2
- package/dist/components/AppBar/AppBarState/index.js +2 -4
- package/dist/components/AppBar/AppBarState/index.js.map +1 -1
- package/dist/components/AppBar/core/index.js +2 -4
- package/dist/components/AppBar/core/index.js.map +1 -1
- package/dist/components/Button/Button/index.js +1 -2
- package/dist/components/Button/Button/index.js.map +1 -1
- package/dist/components/Button/ButtonGroups/ButtonGroup/index.js +1 -2
- package/dist/components/Button/ButtonGroups/ButtonGroupContext/index.js +3 -6
- package/dist/components/Button/ButtonGroups/ButtonGroupContext/index.js.map +1 -1
- package/dist/components/Button/ButtonGroups/ConnectedButton/index.js +1 -2
- package/dist/components/Button/ButtonGroups/ConnectedButtonGroup/index.js +1 -2
- package/dist/components/Button/IconButton/index.js +1 -2
- package/dist/components/Button/LinkButton/index.js +1 -2
- package/dist/components/Button/LinkButton/index.js.map +1 -1
- package/dist/components/Button/LinkIconButton/index.js +1 -2
- package/dist/components/Button/SplitButton/SplitButton/index.js +1 -2
- package/dist/components/Button/SplitButton/SplitButtonContext/index.js +2 -4
- package/dist/components/Button/SplitButton/SplitButtonContext/index.js.map +1 -1
- package/dist/components/Button/SplitButton/SplitButtonPrimary/index.js +1 -2
- package/dist/components/Button/SplitButton/SplitButtonTrigger/index.js +1 -2
- package/dist/components/Button/SplitButton/core/index.js +1 -2
- package/dist/components/Button/ToggleButton/index.js +1 -2
- package/dist/components/Button/ToggleButton/index.js.map +1 -1
- package/dist/components/Button/ToggleIconButton/index.js +1 -2
- package/dist/components/Button/core/index.js +1 -2
- package/dist/components/Calendar/BaseCalendar/index.js +1 -2
- package/dist/components/Calendar/Calendar/index.js +1 -2
- package/dist/components/Calendar/Calendar/index.js.map +1 -1
- package/dist/components/Calendar/CalendarCell/index.js +1 -2
- package/dist/components/Calendar/CalendarGrid/index.js +1 -2
- package/dist/components/Calendar/CalendarMenuItem/index.js +1 -2
- package/dist/components/Calendar/CalendarMonthMenu/index.js +1 -2
- package/dist/components/Calendar/CalendarMonthMenu/index.js.map +1 -1
- package/dist/components/Calendar/CalendarYearMenu/index.js +1 -2
- package/dist/components/Calendar/CalendarYearMenu/index.js.map +1 -1
- package/dist/components/Calendar/RangeCalendar/index.js +1 -2
- package/dist/components/Calendar/RangeCalendar/index.js.map +1 -1
- package/dist/components/Calendar/core/index.js +1 -2
- package/dist/components/Card/CardIcon/index.js +1 -2
- package/dist/components/Decorators/GridBackgroundDecorator/index.js +1 -2
- package/dist/components/Decorators/RadialGlowDecorator/index.js +1 -2
- package/dist/components/Dialog/ActionDialog/index.js +1 -2
- package/dist/components/Dialog/Dialog/index.js +1 -2
- package/dist/components/Dialog/Modal/index.js +1 -2
- package/dist/components/Dialog/ModalOverlay/index.js +1 -2
- package/dist/components/Dialog/core/index.js +2 -4
- package/dist/components/Dialog/core/index.js.map +1 -1
- package/dist/components/Disclosure/Disclosure/index.js +1 -2
- package/dist/components/Disclosure/DisclosureGroup/index.js +1 -2
- package/dist/components/Disclosure/DisclosureHeader/index.js +1 -2
- package/dist/components/Disclosure/DisclosurePanel/index.js +1 -2
- package/dist/components/Disclosure/context/index.js +1 -2
- package/dist/components/Disclosure/context/index.js.map +1 -1
- package/dist/components/Divider/index.js +1 -2
- package/dist/components/Icon/index.js +1 -2
- package/dist/components/Input/CharacterCount/index.js +1 -2
- package/dist/components/Input/CharacterCount/index.js.map +1 -1
- package/dist/components/Input/Checkbox/Checkbox.d.ts +14 -3
- package/dist/components/Input/Checkbox/CheckboxGroup.d.ts +3 -3
- package/dist/components/Input/Checkbox/context.d.ts +2 -4
- package/dist/components/Input/Checkbox/types.d.ts +11 -26
- package/dist/components/Input/DateField/index.js +1 -2
- package/dist/components/Input/DatePicker/DatePicker/index.js +1 -2
- package/dist/components/Input/DatePicker/DateRangePicker/index.js +1 -2
- package/dist/components/Input/DatePicker/core/index.js +1 -2
- package/dist/components/Input/Description/index.js +1 -2
- package/dist/components/Input/Description/index.js.map +1 -1
- package/dist/components/Input/FieldError/index.js +1 -2
- package/dist/components/Input/Input/index.js +1 -2
- package/dist/components/Input/Label/index.js +1 -2
- package/dist/components/Input/Label/index.js.map +1 -1
- package/dist/components/Input/Radio/Radio.d.ts +5 -4
- package/dist/components/Input/Radio/RadioGroup.d.ts +2 -2
- package/dist/components/Input/Radio/context.d.ts +2 -4
- package/dist/components/Input/Radio/index.js +1 -2
- package/dist/components/Input/Radio/types.d.ts +11 -25
- package/dist/components/Input/SearchField/index.js +1 -2
- package/dist/components/Input/Select/ComboBox/index.js +1 -2
- package/dist/components/Input/Select/ComboBoxPopover/index.js +1 -2
- package/dist/components/Input/Select/ComboBoxTrigger/index.js +1 -2
- package/dist/components/Input/Select/Select/index.js +1 -2
- package/dist/components/Input/Select/SelectItem/index.js +1 -2
- package/dist/components/Input/Select/SelectList/index.js +1 -2
- package/dist/components/Input/Select/SelectListSection/index.js +1 -2
- package/dist/components/Input/Select/SelectListSection/index.js.map +1 -1
- package/dist/components/Input/Select/SelectListSectionHeader/index.js +1 -2
- package/dist/components/Input/Select/SelectListSectionHeader/index.js.map +1 -1
- package/dist/components/Input/Select/SelectPopover/index.js +1 -2
- package/dist/components/Input/Select/SelectTrigger/index.js +1 -2
- package/dist/components/Input/Slider/CenteredSlider/index.js +1 -2
- package/dist/components/Input/Slider/CenteredSlider/types.d.ts +1 -1
- package/dist/components/Input/Slider/RangeSlider/RangeSlider.d.ts +1 -1
- package/dist/components/Input/Slider/RangeSlider/index.js +1 -2
- package/dist/components/Input/Slider/RangeSlider/index.js.map +1 -1
- package/dist/components/Input/Slider/RangeSlider/types.d.ts +1 -1
- package/dist/components/Input/Slider/Slider/Slider.d.ts +1 -1
- package/dist/components/Input/Slider/Slider/index.js +1 -2
- package/dist/components/Input/Slider/Slider/types.d.ts +1 -1
- package/dist/components/Input/Slider/SliderOutput/SliderOutput.d.ts +2 -2
- package/dist/components/Input/Slider/SliderOutput/index.js +1 -2
- package/dist/components/Input/Slider/SliderStops/index.js +1 -2
- package/dist/components/Input/Slider/SliderStops/types.d.ts +1 -1
- package/dist/components/Input/Slider/SliderThumb/SliderThumb.d.ts +2 -2
- package/dist/components/Input/Slider/SliderThumb/context.d.ts +2 -2
- package/dist/components/Input/Slider/SliderThumb/index.js +1 -2
- package/dist/components/Input/Slider/core/index.js +1 -2
- package/dist/components/Input/Slider/core/slider.d.ts +3 -3
- package/dist/components/Input/Switch/Switch.d.ts +20 -3
- package/dist/components/Input/Switch/index.js +1 -2
- package/dist/components/Input/Switch/types.d.ts +11 -12
- package/dist/components/Input/TextArea/index.js +1 -2
- package/dist/components/Input/TimeField/index.js +1 -2
- package/dist/components/Input/core/index.js +1 -2
- package/dist/components/Input/hooks/index.js +1 -2
- package/dist/components/List/ListAction/ListAction.d.ts +2 -2
- package/dist/components/List/ListAction/index.js +1 -2
- package/dist/components/List/ListAvatar/ListAvatar.d.ts +2 -2
- package/dist/components/List/ListAvatar/index.js +1 -2
- package/dist/components/List/ListBox/ListBox.d.ts +3 -3
- package/dist/components/List/ListBox/index.js +1 -2
- package/dist/components/List/ListBox/types.d.ts +14 -2
- package/dist/components/List/ListIcon/ListIcon.d.ts +2 -2
- package/dist/components/List/ListIcon/index.js +1 -2
- package/dist/components/List/ListItem/ListItem.d.ts +2 -1
- package/dist/components/List/ListItem/index.js +1 -2
- package/dist/components/List/ListItem/types.d.ts +17 -4
- package/dist/components/List/ListLabelText/ListLabelText.d.ts +2 -2
- package/dist/components/List/ListLabelText/index.js +1 -2
- package/dist/components/List/ListMedia/ListMedia.d.ts +1 -1
- package/dist/components/List/ListMedia/index.js +1 -2
- package/dist/components/List/ListMedia/types.d.ts +2 -2
- package/dist/components/List/ListOverlineText/ListOverlineText.d.ts +2 -2
- package/dist/components/List/ListOverlineText/index.js +1 -2
- package/dist/components/List/ListSupportingText/ListSupportingText.d.ts +2 -2
- package/dist/components/List/ListSupportingText/index.js +1 -2
- package/dist/components/List/ListTrailingText/ListTrailingText.d.ts +2 -2
- package/dist/components/List/ListTrailingText/index.js +1 -2
- package/dist/components/List/core/context.d.ts +18 -0
- package/dist/components/List/core/index.d.ts +2 -0
- package/dist/components/List/core/index.js +9 -0
- package/dist/components/List/core/index.js.map +1 -0
- package/dist/components/List/core/selectionIndicator.d.ts +8 -0
- package/dist/components/List/index.d.ts +1 -0
- package/dist/components/List/index.js +12 -11
- package/dist/components/Loader/Loader.d.ts +2 -2
- package/dist/components/Loader/index.js +1 -2
- package/dist/components/Menu/Menu/index.js +1 -2
- package/dist/components/Menu/Menu/index.js.map +1 -1
- package/dist/components/Menu/Menu/types.d.ts +3 -3
- package/dist/components/Menu/MenuItem/MenuItem.d.ts +2 -2
- package/dist/components/Menu/MenuItem/index.js +1 -2
- package/dist/components/Menu/MenuItem/index.js.map +1 -1
- package/dist/components/Menu/MenuItem/types.d.ts +3 -3
- package/dist/components/Menu/MenuPopover/MenuPopover.d.ts +3 -3
- package/dist/components/Menu/MenuPopover/index.js +1 -2
- package/dist/components/Menu/MenuSection/MenuSection.d.ts +4 -4
- package/dist/components/Menu/MenuSection/index.js +1 -2
- package/dist/components/Menu/MenuSection/index.js.map +1 -1
- package/dist/components/Menu/MenuSectionHeader/MenuSectionHeader.d.ts +2 -2
- package/dist/components/Menu/MenuSectionHeader/index.js +1 -2
- package/dist/components/Menu/MenuSectionHeader/index.js.map +1 -1
- package/dist/components/Menu/MenuShortcut/MenuShortcut.d.ts +2 -2
- package/dist/components/Menu/MenuShortcut/index.js +1 -2
- package/dist/components/Menu/MenuShortcut/index.js.map +1 -1
- package/dist/components/Menu/MenuTrailingText/MenuTrailingText.d.ts +2 -2
- package/dist/components/Menu/MenuTrailingText/index.js +1 -2
- package/dist/components/Menu/MenuTrailingText/index.js.map +1 -1
- package/dist/components/Menu/MenuTrigger/MenuTrigger.d.ts +3 -3
- package/dist/components/Menu/MenuTrigger/index.js +1 -2
- package/dist/components/Menu/MenuTrigger/index.js.map +1 -1
- package/dist/components/Menu/SubmenuPopover/SubmenuPopover.d.ts +1 -1
- package/dist/components/Menu/SubmenuPopover/index.js +1 -2
- package/dist/components/Menu/context/context.d.ts +1 -1
- package/dist/components/Menu/context/index.js +2 -4
- package/dist/components/Menu/context/index.js.map +1 -1
- package/dist/components/Menu/context/useMenuConfigContext.d.ts +1 -1
- package/dist/components/Menu/core/color.d.ts +1 -1
- package/dist/components/Menu/core/index.js +1 -2
- package/dist/components/Menu/core/layout.d.ts +1 -1
- package/dist/components/Navigation/Navigation/Navigation.d.ts +1 -1
- package/dist/components/Navigation/Navigation/navContext.d.ts +1 -1
- package/dist/components/Navigation/Navigation/navRenderingContext.d.ts +2 -2
- package/dist/components/Navigation/Navigation/types.d.ts +3 -3
- package/dist/components/Navigation/NavigationItem/NavigationButton/NavigationButton.d.ts +1 -1
- package/dist/components/Navigation/NavigationItem/NavigationButton/index.js +1 -2
- package/dist/components/Navigation/NavigationItem/NavigationButton/index.js.map +1 -1
- package/dist/components/Navigation/NavigationItem/NavigationButton/types.d.ts +2 -2
- package/dist/components/Navigation/NavigationItem/NavigationItemIconRenderer/NavigationItemIconRenderer.d.ts +1 -1
- package/dist/components/Navigation/NavigationItem/NavigationItemIconRenderer/index.js +1 -2
- package/dist/components/Navigation/NavigationItem/NavigationItemIconRenderer/index.js.map +1 -1
- package/dist/components/Navigation/NavigationItem/NavigationLink/index.js +1 -2
- package/dist/components/Navigation/NavigationItem/NavigationLink/index.js.map +1 -1
- package/dist/components/Navigation/NavigationItem/NavigationLink/types.d.ts +2 -2
- package/dist/components/Navigation/NavigationItem/core/index.js +1 -2
- package/dist/components/Navigation/NavigationItem/core/navigationItem.d.ts +2 -2
- package/dist/components/Navigation/NavigationScrollContainer/NavigationScrollContainer.d.ts +2 -2
- package/dist/components/Navigation/NavigationScrollContainer/index.js +1 -2
- package/dist/components/Navigation/NavigationSection/NavigationSection/NavigationSection.d.ts +1 -1
- package/dist/components/Navigation/NavigationSection/NavigationSection/index.js +1 -2
- package/dist/components/Navigation/NavigationSection/NavigationSectionLabel/NavigationSectionLabel.d.ts +2 -2
- package/dist/components/Navigation/NavigationSection/NavigationSectionLabel/index.js +1 -2
- package/dist/components/Navigation/NavigationState/NavigationState.d.ts +2 -2
- package/dist/components/Navigation/NavigationState/context.d.ts +2 -2
- package/dist/components/Navigation/NavigationState/index.js +2 -4
- package/dist/components/Navigation/NavigationState/index.js.map +1 -1
- package/dist/components/Navigation/SubNavigation/SubNavigation/SubNavigation.d.ts +2 -2
- package/dist/components/Navigation/SubNavigation/SubNavigation/index.js +1 -2
- package/dist/components/Navigation/SubNavigation/SubNavigation/index.js.map +1 -1
- package/dist/components/Navigation/SubNavigation/SubNavigationTrigger/SubNavigationTrigger.d.ts +3 -3
- package/dist/components/Navigation/SubNavigation/SubNavigationTrigger/index.js +1 -2
- package/dist/components/Navigation/SubNavigation/SubNavigationTrigger/index.js.map +1 -1
- package/dist/components/Navigation/core/index.js +1 -2
- package/dist/components/Navigation/core/navigation.d.ts +2 -2
- package/dist/components/Navigation/core/navigationInfo.d.ts +2 -2
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/components/Popover/index.js +1 -2
- package/dist/components/Sheets/BottomSheet/BottomSheet/index.d.ts +2 -0
- package/dist/components/Sheets/BottomSheet/BottomSheet/index.js +1 -0
- package/dist/components/Sheets/{BottomSheetModal → BottomSheet/BottomSheetModal}/context.d.ts +1 -1
- package/dist/components/Sheets/BottomSheet/BottomSheetModal/index.js +1 -0
- package/dist/components/Sheets/{BottomSheetModal → BottomSheet/BottomSheetModal}/types.d.ts +1 -1
- package/dist/components/Sheets/BottomSheet/index.d.ts +1 -1
- package/dist/components/Sheets/BottomSheet/index.js +3 -2
- package/dist/components/Sheets/SideSheet/SideSheet/index.d.ts +3 -0
- package/dist/components/Sheets/SideSheet/SideSheet/index.js +1 -0
- package/dist/components/Sheets/{SideSheetModal → SideSheet/SideSheetModal}/context.d.ts +1 -1
- package/dist/components/Sheets/SideSheet/SideSheetModal/index.js +1 -0
- package/dist/components/Sheets/{SideSheetModal → SideSheet/SideSheetModal}/types.d.ts +1 -1
- package/dist/components/Sheets/SideSheet/index.d.ts +1 -2
- package/dist/components/Sheets/SideSheet/index.js +3 -2
- package/dist/components/Sheets/index.d.ts +0 -2
- package/dist/components/Snackbar/index.js +1 -2
- package/dist/components/Splash/index.js +1 -2
- package/dist/components/Tabs/Tab/index.js +1 -2
- package/dist/components/Tabs/TabList/index.js +1 -2
- package/dist/components/Tabs/TabPanel/index.js +1 -2
- package/dist/components/Tabs/TabPanels/index.js +1 -2
- package/dist/components/Tabs/Tabs/index.js +1 -2
- package/dist/components/Tag/index.js +1 -2
- package/dist/components/ThemeSelector/ThemeItem.d.ts +7 -1
- package/dist/components/ThemeSelector/ThemeSelector.d.ts +2 -2
- package/dist/components/ThemeSelector/core.d.ts +21 -11
- package/dist/components/ThemeSelector/index.js +1 -2
- package/dist/components/ThemeSelector/types.d.ts +41 -0
- package/dist/components/Toolbar/index.js +1 -2
- package/dist/components/Tooltip/RichTooltip/RichTooltip/RichTooltip.d.ts +4 -4
- package/dist/components/Tooltip/RichTooltip/RichTooltip/index.js +1 -2
- package/dist/components/Tooltip/RichTooltip/RichTooltipActions/index.js +1 -2
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipInfo/index.js +1 -2
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/index.js +1 -2
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/index.js.map +1 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/index.js +1 -2
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/index.js.map +1 -1
- package/dist/components/Tooltip/RichTooltip/RichTooltipTrigger/RichTooltipTrigger.d.ts +53 -0
- package/dist/components/Tooltip/RichTooltip/RichTooltipTrigger/index.d.ts +1 -0
- package/dist/components/Tooltip/RichTooltip/RichTooltipTrigger/index.js +11 -0
- package/dist/components/Tooltip/RichTooltip/RichTooltipTrigger/index.js.map +1 -0
- package/dist/components/Tooltip/RichTooltip/index.d.ts +1 -0
- package/dist/components/Tooltip/RichTooltip/index.js +2 -1
- package/dist/components/Tooltip/Tooltip/index.js +1 -2
- package/dist/components/Tooltip/TooltipTrigger/index.js +1 -2
- package/dist/components/Tooltip/index.js +4 -3
- package/dist/index.js +111 -111
- package/dist/index.js.map +1 -1
- package/dist/preview/AppBar/AppBar.d.ts +2 -0
- package/dist/preview/AppBar/index.d.ts +1 -0
- package/dist/preview/BottomSheet/BottomSheet.d.ts +6 -0
- package/dist/preview/BottomSheet/index.d.ts +1 -0
- package/dist/preview/Button/Button.d.ts +2 -0
- package/dist/preview/Button/index.d.ts +1 -0
- package/dist/preview/ButtonGroup/ButtonGroup.d.ts +2 -0
- package/dist/preview/ButtonGroup/index.d.ts +1 -0
- package/dist/preview/Calendar/Calendar.d.ts +2 -0
- package/dist/preview/Calendar/index.d.ts +1 -0
- package/dist/preview/Card/Card.d.ts +2 -0
- package/dist/preview/Card/index.d.ts +1 -0
- package/dist/preview/CenteredSlider/CenteredSlider.d.ts +2 -0
- package/dist/preview/CenteredSlider/index.d.ts +1 -0
- package/dist/preview/Checkbox/Checkbox.d.ts +2 -0
- package/dist/preview/Checkbox/index.d.ts +1 -0
- package/dist/preview/Config/Config.d.ts +8 -0
- package/dist/preview/Config/index.d.ts +1 -0
- package/dist/preview/ConnectedButtonGroup/ConnectedButtonGroup.d.ts +2 -0
- package/dist/preview/ConnectedButtonGroup/index.d.ts +1 -0
- package/dist/preview/DateField/DateField.d.ts +6 -0
- package/dist/preview/DateField/index.d.ts +1 -0
- package/dist/preview/DatePicker/DatePicker.d.ts +2 -0
- package/dist/preview/DatePicker/index.d.ts +1 -0
- package/dist/preview/DateRangePicker/DateRangePicker.d.ts +2 -0
- package/dist/preview/DateRangePicker/index.d.ts +1 -0
- package/dist/preview/Decorators/Decorators.d.ts +2 -0
- package/dist/preview/Decorators/index.d.ts +1 -0
- package/dist/preview/Dialog/Dialog.d.ts +2 -0
- package/dist/preview/Dialog/index.d.ts +1 -0
- package/dist/preview/Disclosure/Disclosure.d.ts +2 -0
- package/dist/preview/Disclosure/index.d.ts +1 -0
- package/dist/preview/Gradients/Gradients.d.ts +6 -0
- package/dist/preview/Gradients/index.d.ts +1 -0
- package/dist/preview/Icon/Icon.d.ts +2 -0
- package/dist/preview/Icon/index.d.ts +1 -0
- package/dist/preview/IconButton/IconButton.d.ts +2 -0
- package/dist/preview/IconButton/index.d.ts +1 -0
- package/dist/preview/Input/Input.d.ts +6 -0
- package/dist/preview/Input/index.d.ts +1 -0
- package/dist/preview/Link/Link.d.ts +2 -0
- package/dist/preview/Link/index.d.ts +1 -0
- package/dist/preview/List/List.d.ts +2 -0
- package/dist/preview/List/index.d.ts +1 -0
- package/dist/preview/Menu/Menu.d.ts +3 -0
- package/dist/preview/Menu/index.d.ts +1 -0
- package/dist/preview/Navigation/Navigation.d.ts +3 -0
- package/dist/preview/Navigation/index.d.ts +1 -0
- package/dist/preview/Radio/Radio.d.ts +2 -0
- package/dist/preview/Radio/index.d.ts +1 -0
- package/dist/preview/RangeCalendar/RangeCalendar.d.ts +2 -0
- package/dist/preview/RangeCalendar/index.d.ts +1 -0
- package/dist/preview/RangeSlider/RangeSlider.d.ts +2 -0
- package/dist/preview/RangeSlider/index.d.ts +1 -0
- package/dist/preview/SearchField/SearchField.d.ts +2 -0
- package/dist/preview/SearchField/index.d.ts +1 -0
- package/dist/preview/Select/Select.d.ts +2 -0
- package/dist/preview/Select/index.d.ts +1 -0
- package/dist/preview/SideSheet/SideSheet.d.ts +7 -0
- package/dist/preview/SideSheet/index.d.ts +1 -0
- package/dist/preview/Slider/Slider.d.ts +2 -0
- package/dist/preview/Slider/index.d.ts +1 -0
- package/dist/preview/Snackbar/Snackbar.d.ts +2 -0
- package/dist/preview/Snackbar/index.d.ts +1 -0
- package/dist/preview/SplitButton/SplitButton.d.ts +10 -0
- package/dist/preview/SplitButton/index.d.ts +1 -0
- package/dist/preview/Switch/Switch.d.ts +2 -0
- package/dist/preview/Switch/index.d.ts +1 -0
- package/dist/preview/Tabs/Tabs.d.ts +7 -0
- package/dist/preview/Tabs/index.d.ts +1 -0
- package/dist/preview/Tags/Tags.d.ts +2 -0
- package/dist/preview/Tags/index.d.ts +1 -0
- package/dist/preview/TextArea/TextArea.d.ts +6 -0
- package/dist/preview/TextArea/index.d.ts +1 -0
- package/dist/preview/ThemeSelector/ThemeSelector.d.ts +2 -0
- package/dist/preview/ThemeSelector/index.d.ts +1 -0
- package/dist/preview/TimeField/TimeField.d.ts +6 -0
- package/dist/preview/TimeField/index.d.ts +1 -0
- package/dist/preview/Toolbar/Toolbar.d.ts +10 -0
- package/dist/preview/Toolbar/index.d.ts +1 -0
- package/dist/preview/Tooltip/Tooltip.d.ts +2 -0
- package/dist/preview/Tooltip/index.d.ts +1 -0
- package/package.json +13 -13
- package/dist/components/Sheets/BottomSheetModal/index.js +0 -2
- package/dist/components/Sheets/SideSheetModal/index.js +0 -2
- /package/dist/components/Sheets/BottomSheet/{BottomSheet.d.ts → BottomSheet/BottomSheet.d.ts} +0 -0
- /package/dist/components/Sheets/BottomSheet/{types.d.ts → BottomSheet/types.d.ts} +0 -0
- /package/dist/components/Sheets/{BottomSheetModal → BottomSheet/BottomSheetModal}/BottomSheetModal.d.ts +0 -0
- /package/dist/components/Sheets/{BottomSheetModal → BottomSheet/BottomSheetModal}/index.d.ts +0 -0
- /package/dist/components/Sheets/SideSheet/{SideSheet.d.ts → SideSheet/SideSheet.d.ts} +0 -0
- /package/dist/components/Sheets/SideSheet/{SideSheetDialog.d.ts → SideSheet/SideSheetDialog.d.ts} +0 -0
- /package/dist/components/Sheets/SideSheet/{types.d.ts → SideSheet/types.d.ts} +0 -0
- /package/dist/components/Sheets/{SideSheetModal → SideSheet/SideSheetModal}/SideSheetModal.d.ts +0 -0
- /package/dist/components/Sheets/{SideSheetModal → SideSheet/SideSheetModal}/index.d.ts +0 -0
package/dist/chunks/useHover
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import e, { useCallback as t, useEffect as n, useMemo as r, useRef as i, useState as a } from "react";
|
|
2
|
-
|
|
2
|
+
// node_modules/react-aria/dist/private/utils/domHelpers.mjs
|
|
3
3
|
var o = (e) => l(e) ? e.document : u(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), s = (e) => o(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
|
|
4
4
|
function c(e) {
|
|
5
5
|
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
|
|
@@ -13,78 +13,50 @@ function u(e) {
|
|
|
13
13
|
function d(e) {
|
|
14
14
|
return c(e) && e.nodeType === 11 && "host" in e;
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return
|
|
16
|
+
function f(e, t, n, r) {
|
|
17
|
+
if (n == null || e == null) return () => {};
|
|
18
|
+
let i = Array.isArray(e) ? e : [e];
|
|
19
|
+
for (let e of i) e.addEventListener(t, n, r);
|
|
20
|
+
return () => {
|
|
21
|
+
for (let e of i) e.removeEventListener(t, n, r);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
// node_modules/react-stately/dist/private/flags/flags.mjs
|
|
25
|
+
var p = !1;
|
|
26
|
+
function m() {
|
|
27
|
+
return p;
|
|
21
28
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
if (!p()) return t && e ? e.contains(t) : !1;
|
|
29
|
+
// node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
|
|
30
|
+
function h(e, t) {
|
|
31
|
+
if (!m()) return t && e ? e.contains(t) : !1;
|
|
26
32
|
if (!e || !t) return !1;
|
|
27
33
|
let n = t;
|
|
28
|
-
for (; n
|
|
34
|
+
for (; n != null;) {
|
|
29
35
|
if (n === e) return !0;
|
|
30
36
|
n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : d(n) ? n.host : n.parentNode;
|
|
31
37
|
}
|
|
32
38
|
return !1;
|
|
33
39
|
}
|
|
34
|
-
var
|
|
35
|
-
if (!
|
|
40
|
+
var g = (e = document) => {
|
|
41
|
+
if (!m()) return e.activeElement;
|
|
36
42
|
let t = e.activeElement;
|
|
37
43
|
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
|
|
38
44
|
return t;
|
|
39
45
|
};
|
|
40
|
-
function
|
|
41
|
-
if (
|
|
46
|
+
function _(e) {
|
|
47
|
+
if (m() && e.target instanceof Element && e.target.shadowRoot) {
|
|
42
48
|
if ("composedPath" in e) return e.composedPath()[0] ?? null;
|
|
43
49
|
if ("composedPath" in e.nativeEvent) return e.nativeEvent.composedPath()[0] ?? null;
|
|
44
50
|
}
|
|
45
51
|
return e.target;
|
|
46
52
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
if (ee()) e.focus({ preventScroll: !0 });
|
|
51
|
-
else {
|
|
52
|
-
let t = te(e);
|
|
53
|
-
e.focus(), ne(t);
|
|
54
|
-
}
|
|
53
|
+
// node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
|
|
54
|
+
function v(e) {
|
|
55
|
+
e.focus({ preventScroll: !0 });
|
|
55
56
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
v = !1;
|
|
60
|
-
try {
|
|
61
|
-
document.createElement("div").focus({ get preventScroll() {
|
|
62
|
-
return v = !0, !0;
|
|
63
|
-
} });
|
|
64
|
-
} catch {}
|
|
65
|
-
}
|
|
66
|
-
return v;
|
|
67
|
-
}
|
|
68
|
-
function te(e) {
|
|
69
|
-
let t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement;
|
|
70
|
-
for (; t instanceof HTMLElement && t !== r;) (t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && n.push({
|
|
71
|
-
element: t,
|
|
72
|
-
scrollTop: t.scrollTop,
|
|
73
|
-
scrollLeft: t.scrollLeft
|
|
74
|
-
}), t = t.parentNode;
|
|
75
|
-
return r instanceof HTMLElement && n.push({
|
|
76
|
-
element: r,
|
|
77
|
-
scrollTop: r.scrollTop,
|
|
78
|
-
scrollLeft: r.scrollLeft
|
|
79
|
-
}), n;
|
|
80
|
-
}
|
|
81
|
-
function ne(e) {
|
|
82
|
-
for (let { element: t, scrollTop: n, scrollLeft: r } of e) t.scrollTop = n, t.scrollLeft = r;
|
|
83
|
-
}
|
|
84
|
-
//#endregion
|
|
85
|
-
//#region node_modules/react-aria/dist/private/utils/isElementVisible.mjs
|
|
86
|
-
var re = typeof Element < "u" && "checkVisibility" in Element.prototype;
|
|
87
|
-
function ie(e) {
|
|
57
|
+
// node_modules/react-aria/dist/private/utils/isElementVisible.mjs
|
|
58
|
+
var y = typeof Element < "u" && "checkVisibility" in Element.prototype;
|
|
59
|
+
function ee(e) {
|
|
88
60
|
let t = s(e);
|
|
89
61
|
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
|
|
90
62
|
let { display: n, visibility: r } = e.style, i = n !== "none" && r !== "hidden" && r !== "collapse";
|
|
@@ -94,15 +66,14 @@ function ie(e) {
|
|
|
94
66
|
}
|
|
95
67
|
return i;
|
|
96
68
|
}
|
|
97
|
-
function
|
|
69
|
+
function te(e, t) {
|
|
98
70
|
return !e.hasAttribute("hidden") && !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
|
|
99
71
|
}
|
|
100
|
-
function
|
|
101
|
-
return
|
|
72
|
+
function b(e, t) {
|
|
73
|
+
return y ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && ee(e) && te(e, t) && (!e.parentElement || b(e.parentElement, e));
|
|
102
74
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
var y = [
|
|
75
|
+
// node_modules/react-aria/dist/private/utils/isFocusable.mjs
|
|
76
|
+
var x = [
|
|
106
77
|
"input:not([disabled]):not([type=hidden])",
|
|
107
78
|
"select:not([disabled])",
|
|
108
79
|
"textarea:not([disabled])",
|
|
@@ -117,12 +88,12 @@ var y = [
|
|
|
117
88
|
"video[controls]",
|
|
118
89
|
"[contenteditable]:not([contenteditable^=\"false\"])",
|
|
119
90
|
"permission"
|
|
120
|
-
],
|
|
121
|
-
|
|
122
|
-
function
|
|
123
|
-
return e.matches(
|
|
91
|
+
], ne = x.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
|
|
92
|
+
x.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])"), x.join(":not([hidden]):not([tabindex=\"-1\"]),");
|
|
93
|
+
function re(e, t) {
|
|
94
|
+
return e.matches(ne) && !ie(e) && (t?.skipVisibilityCheck || b(e));
|
|
124
95
|
}
|
|
125
|
-
function
|
|
96
|
+
function ie(e) {
|
|
126
97
|
let t = e;
|
|
127
98
|
for (; t != null;) {
|
|
128
99
|
if (t instanceof s(t).HTMLElement && t.inert) return !0;
|
|
@@ -130,43 +101,41 @@ function le(e) {
|
|
|
130
101
|
}
|
|
131
102
|
return !1;
|
|
132
103
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
//#region node_modules/react-aria/dist/private/interactions/utils.mjs
|
|
138
|
-
function x(e) {
|
|
104
|
+
// node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
|
|
105
|
+
var S = typeof document < "u" ? e.useLayoutEffect : () => {};
|
|
106
|
+
// node_modules/react-aria/dist/private/interactions/utils.mjs
|
|
107
|
+
function C(e) {
|
|
139
108
|
let t = e;
|
|
140
109
|
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
|
|
141
110
|
}
|
|
142
|
-
function
|
|
111
|
+
function w(e, t) {
|
|
143
112
|
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
|
|
144
113
|
}
|
|
145
|
-
function
|
|
114
|
+
function T(e) {
|
|
146
115
|
let n = i({
|
|
147
116
|
isFocused: !1,
|
|
148
117
|
observer: null
|
|
149
118
|
});
|
|
150
|
-
return
|
|
119
|
+
return S(() => {
|
|
151
120
|
let e = n.current;
|
|
152
121
|
return () => {
|
|
153
122
|
e.observer &&= (e.observer.disconnect(), null);
|
|
154
123
|
};
|
|
155
124
|
}, []), t((t) => {
|
|
156
|
-
let r =
|
|
125
|
+
let r = _(t);
|
|
157
126
|
if (r instanceof HTMLButtonElement || r instanceof HTMLInputElement || r instanceof HTMLTextAreaElement || r instanceof HTMLSelectElement) {
|
|
158
127
|
n.current.isFocused = !0;
|
|
159
128
|
let t = r;
|
|
160
129
|
t.addEventListener("focusout", (r) => {
|
|
161
130
|
if (n.current.isFocused = !1, t.disabled) {
|
|
162
|
-
let t =
|
|
131
|
+
let t = C(r);
|
|
163
132
|
e?.(t);
|
|
164
133
|
}
|
|
165
134
|
n.current.observer && (n.current.observer.disconnect(), n.current.observer = null);
|
|
166
135
|
}, { once: !0 }), n.current.observer = new MutationObserver(() => {
|
|
167
136
|
if (n.current.isFocused && t.disabled) {
|
|
168
137
|
n.current.observer?.disconnect();
|
|
169
|
-
let e = t ===
|
|
138
|
+
let e = t === g() ? null : g();
|
|
170
139
|
t.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), t.dispatchEvent(new FocusEvent("focusout", {
|
|
171
140
|
bubbles: !0,
|
|
172
141
|
relatedTarget: e
|
|
@@ -179,82 +148,77 @@ function C(e) {
|
|
|
179
148
|
}
|
|
180
149
|
}, [e]);
|
|
181
150
|
}
|
|
182
|
-
var
|
|
183
|
-
function
|
|
184
|
-
for (; e && !
|
|
185
|
-
let t =
|
|
151
|
+
var E = !1;
|
|
152
|
+
function ae(e) {
|
|
153
|
+
for (; e && !re(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
|
|
154
|
+
let t = g(s(e).document);
|
|
186
155
|
if (!t || t === e) return;
|
|
187
|
-
let n = e?.getRootNode(), r = n != null && d(n) ? n : s(e), i = (t) => t === e || t
|
|
188
|
-
|
|
189
|
-
let o = !1,
|
|
190
|
-
(a(
|
|
191
|
-
},
|
|
192
|
-
(a(
|
|
193
|
-
}, u = (e) => {
|
|
194
|
-
(i(g(e)) || o) && e.stopImmediatePropagation();
|
|
156
|
+
let n = e?.getRootNode(), r = n != null && d(n) ? n : s(e), i = (t) => t === e || c(t) && h(e, t), a = (e) => e === t || t != null && c(e) && h(t, e);
|
|
157
|
+
E = !0;
|
|
158
|
+
let o = !1, l = (e) => {
|
|
159
|
+
(a(_(e)) || o) && e.stopImmediatePropagation();
|
|
160
|
+
}, u = (n) => {
|
|
161
|
+
(a(_(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, v(t), m()));
|
|
195
162
|
}, f = (e) => {
|
|
196
|
-
(i(
|
|
163
|
+
(i(_(e)) || o) && e.stopImmediatePropagation();
|
|
164
|
+
}, p = (e) => {
|
|
165
|
+
(i(_(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, v(t), m()));
|
|
197
166
|
};
|
|
198
|
-
r.addEventListener("blur",
|
|
199
|
-
let
|
|
200
|
-
cancelAnimationFrame(
|
|
201
|
-
},
|
|
202
|
-
return
|
|
167
|
+
r.addEventListener("blur", l, !0), r.addEventListener("focusout", u, !0), r.addEventListener("focusin", p, !0), r.addEventListener("focus", f, !0);
|
|
168
|
+
let m = () => {
|
|
169
|
+
cancelAnimationFrame(y), r.removeEventListener("blur", l, !0), r.removeEventListener("focusout", u, !0), r.removeEventListener("focusin", p, !0), r.removeEventListener("focus", f, !0), E = !1, o = !1;
|
|
170
|
+
}, y = requestAnimationFrame(m);
|
|
171
|
+
return m;
|
|
203
172
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
function T(e) {
|
|
173
|
+
// node_modules/react-aria/dist/private/utils/platform.mjs
|
|
174
|
+
function D(e) {
|
|
207
175
|
if (typeof window > "u" || window.navigator == null) return !1;
|
|
208
176
|
let t = window.navigator.userAgentData?.brands;
|
|
209
177
|
return Array.isArray(t) && t.some((t) => e.test(t.brand)) || e.test(window.navigator.userAgent);
|
|
210
178
|
}
|
|
211
|
-
function
|
|
179
|
+
function O(e) {
|
|
212
180
|
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
|
|
213
181
|
}
|
|
214
|
-
function
|
|
182
|
+
function k(e) {
|
|
215
183
|
if (process.env.NODE_ENV === "test") return e;
|
|
216
184
|
let t = null;
|
|
217
185
|
return () => (t ??= e(), t);
|
|
218
186
|
}
|
|
219
|
-
var
|
|
220
|
-
return
|
|
221
|
-
}),
|
|
222
|
-
return
|
|
223
|
-
}),
|
|
224
|
-
return
|
|
225
|
-
}),
|
|
226
|
-
return
|
|
187
|
+
var A = k(function() {
|
|
188
|
+
return O(/^Mac/i);
|
|
189
|
+
}), oe = k(function() {
|
|
190
|
+
return O(/^iPhone/i);
|
|
191
|
+
}), j = k(function() {
|
|
192
|
+
return O(/^iPad/i) || A() && navigator.maxTouchPoints > 1;
|
|
193
|
+
}), M = k(function() {
|
|
194
|
+
return oe() || j();
|
|
227
195
|
});
|
|
228
|
-
|
|
229
|
-
return
|
|
196
|
+
k(function() {
|
|
197
|
+
return A() || M();
|
|
230
198
|
});
|
|
231
|
-
var
|
|
232
|
-
return
|
|
199
|
+
var N = k(function() {
|
|
200
|
+
return D(/AppleWebKit/i) && (M() || !P());
|
|
233
201
|
});
|
|
234
|
-
|
|
235
|
-
return
|
|
202
|
+
k(function() {
|
|
203
|
+
return N() && !P() && !se();
|
|
236
204
|
});
|
|
237
|
-
var
|
|
238
|
-
return
|
|
239
|
-
}),
|
|
240
|
-
return
|
|
241
|
-
}),
|
|
242
|
-
return
|
|
205
|
+
var P = k(function() {
|
|
206
|
+
return D(/Chrome|CriOS|CrMo/i);
|
|
207
|
+
}), F = k(function() {
|
|
208
|
+
return D(/Android/i);
|
|
209
|
+
}), se = k(function() {
|
|
210
|
+
return D(/(Firefox|FxiOS)/i);
|
|
243
211
|
});
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
function P(e, t, n = !0) {
|
|
255
|
-
let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t;
|
|
256
|
-
!A() && M() && window.event?.type?.startsWith("key") && e.target === "_blank" && (O() ? r = !0 : i = !0);
|
|
257
|
-
let s = A() && O() && !fe() && process.env.NODE_ENV !== "test" ? new KeyboardEvent("keydown", {
|
|
212
|
+
// node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
|
|
213
|
+
function I(e) {
|
|
214
|
+
return e.pointerType === "" && e.isTrusted ? !0 : F() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
215
|
+
}
|
|
216
|
+
function ce(e) {
|
|
217
|
+
return !F() && e.width === 0 && e.height === 0 || F() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
|
|
218
|
+
}
|
|
219
|
+
// node_modules/react-aria/dist/private/utils/openLink.mjs
|
|
220
|
+
function L(e, t, n = !0) {
|
|
221
|
+
let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = N() && A() && !j() && process.env.NODE_ENV !== "test" ? new KeyboardEvent("keydown", {
|
|
258
222
|
keyIdentifier: "Enter",
|
|
259
223
|
metaKey: r,
|
|
260
224
|
ctrlKey: i,
|
|
@@ -269,76 +233,80 @@ function P(e, t, n = !0) {
|
|
|
269
233
|
bubbles: !0,
|
|
270
234
|
cancelable: !0
|
|
271
235
|
});
|
|
272
|
-
|
|
236
|
+
L.isOpening = n, v(e), e.dispatchEvent(s), L.isOpening = !1;
|
|
273
237
|
}
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
var F = null, I = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Map(), R = !1, z = !1, he = {
|
|
238
|
+
L.isOpening = !1;
|
|
239
|
+
// node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
|
|
240
|
+
var R = null, z = /* @__PURE__ */ new Set(), B = /* @__PURE__ */ new Map(), V = !1, H = !1, le = {
|
|
278
241
|
Tab: !0,
|
|
279
242
|
Escape: !0
|
|
280
243
|
};
|
|
281
|
-
function
|
|
282
|
-
for (let n of
|
|
244
|
+
function U(e, t) {
|
|
245
|
+
for (let n of z) n(e, t);
|
|
283
246
|
}
|
|
284
|
-
function
|
|
285
|
-
return !(e.metaKey || !
|
|
247
|
+
function ue(e) {
|
|
248
|
+
return !(e.metaKey || !A() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
286
249
|
}
|
|
287
|
-
function
|
|
288
|
-
|
|
250
|
+
function W(e) {
|
|
251
|
+
V = !0, !L.isOpening && ue(e) && (R = "keyboard", U("keyboard", e));
|
|
289
252
|
}
|
|
290
|
-
function
|
|
291
|
-
|
|
253
|
+
function G(e) {
|
|
254
|
+
R = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (V = !0, U("pointer", e));
|
|
292
255
|
}
|
|
293
|
-
function
|
|
294
|
-
!
|
|
256
|
+
function K(e) {
|
|
257
|
+
!L.isOpening && I(e) && (V = !0, R = "virtual");
|
|
295
258
|
}
|
|
296
|
-
function
|
|
297
|
-
if (
|
|
298
|
-
let t =
|
|
299
|
-
|
|
300
|
-
z = !0;
|
|
301
|
-
return;
|
|
302
|
-
}
|
|
303
|
-
t !== r && e.isTrusted && (!R && !z && (F = "virtual", B("virtual", e)), R = !1, z = !1);
|
|
259
|
+
function de(e) {
|
|
260
|
+
if (E) return;
|
|
261
|
+
let t = _(e), n = s(t), r = o(t);
|
|
262
|
+
t === n ? H = !0 : t !== r && e.isTrusted && (!V && !H && (R = "virtual", U("virtual", e)), V = !1, H = !1);
|
|
304
263
|
}
|
|
305
|
-
function
|
|
306
|
-
|
|
264
|
+
function fe() {
|
|
265
|
+
E || (V = !1, H = !0);
|
|
307
266
|
}
|
|
308
|
-
function
|
|
267
|
+
function pe(e) {
|
|
268
|
+
let t = g(o(_(e)));
|
|
269
|
+
queueMicrotask(() => {
|
|
270
|
+
g(o(_(e))) !== t && ge("keyboard");
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
function q(e) {
|
|
309
274
|
if (typeof window > "u" || typeof document > "u") return;
|
|
310
275
|
let t = s(e), n = o(e);
|
|
311
|
-
if (
|
|
276
|
+
if (B.get(t)) return;
|
|
312
277
|
let r = t.HTMLElement.prototype.focus;
|
|
313
278
|
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
|
|
314
279
|
configurable: !0,
|
|
315
280
|
writable: !0,
|
|
316
281
|
value: function() {
|
|
317
|
-
|
|
282
|
+
V = !0, r.apply(this, arguments);
|
|
318
283
|
}
|
|
319
|
-
}), n.addEventListener("keydown",
|
|
320
|
-
|
|
321
|
-
}, { once: !0 }),
|
|
284
|
+
}), n.addEventListener("keydown", W, !0), n.addEventListener("keyup", W, !0), n.addEventListener("click", K, !0), n.addEventListener("invalid", pe, !0), t.addEventListener("focus", de, !0), t.addEventListener("blur", fe, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", G, !0), n.addEventListener("pointermove", G, !0), n.addEventListener("pointerup", G, !0)) : process.env.NODE_ENV === "test" && (n.addEventListener("mousedown", G, !0), n.addEventListener("mousemove", G, !0), n.addEventListener("mouseup", G, !0)), t.addEventListener("beforeunload", () => {
|
|
285
|
+
me(e);
|
|
286
|
+
}, { once: !0 }), B.set(t, { focus: r });
|
|
322
287
|
}
|
|
323
|
-
var
|
|
288
|
+
var me = (e, t) => {
|
|
324
289
|
let n = s(e), r = o(e);
|
|
325
|
-
t && r.removeEventListener("DOMContentLoaded", t),
|
|
290
|
+
t && r.removeEventListener("DOMContentLoaded", t), B.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
|
|
326
291
|
configurable: !0,
|
|
327
292
|
writable: !0,
|
|
328
|
-
value:
|
|
329
|
-
}), r.removeEventListener("keydown",
|
|
293
|
+
value: B.get(n).focus
|
|
294
|
+
}), r.removeEventListener("keydown", W, !0), r.removeEventListener("keyup", W, !0), r.removeEventListener("click", K, !0), r.removeEventListener("invalid", pe, !0), n.removeEventListener("focus", de, !0), n.removeEventListener("blur", fe, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", G, !0), r.removeEventListener("pointermove", G, !0), r.removeEventListener("pointerup", G, !0)) : process.env.NODE_ENV === "test" && (r.removeEventListener("mousedown", G, !0), r.removeEventListener("mousemove", G, !0), r.removeEventListener("mouseup", G, !0)), B.delete(n));
|
|
330
295
|
};
|
|
331
|
-
function
|
|
296
|
+
function he(e) {
|
|
332
297
|
let t = o(e), n;
|
|
333
298
|
return t.readyState === "loading" ? (n = () => {
|
|
334
|
-
|
|
335
|
-
}, t.addEventListener("DOMContentLoaded", n)) :
|
|
299
|
+
q(e);
|
|
300
|
+
}, t.addEventListener("DOMContentLoaded", n)) : q(e), () => me(e, n);
|
|
336
301
|
}
|
|
337
|
-
typeof document < "u" &&
|
|
302
|
+
typeof document < "u" && he();
|
|
338
303
|
function J() {
|
|
339
|
-
return
|
|
304
|
+
return R !== "pointer";
|
|
340
305
|
}
|
|
341
|
-
|
|
306
|
+
function ge(e) {
|
|
307
|
+
R = e, U(e, null);
|
|
308
|
+
}
|
|
309
|
+
var _e = /* @__PURE__ */ new Set([
|
|
342
310
|
"checkbox",
|
|
343
311
|
"radio",
|
|
344
312
|
"range",
|
|
@@ -349,28 +317,27 @@ var ve = /* @__PURE__ */ new Set([
|
|
|
349
317
|
"submit",
|
|
350
318
|
"reset"
|
|
351
319
|
]);
|
|
352
|
-
function
|
|
353
|
-
let r = n ?
|
|
354
|
-
return e = e || f instanceof c && !
|
|
320
|
+
function ve(e, t, n) {
|
|
321
|
+
let r = n ? _(n) : void 0, i = o(r), a = s(r), c = a === void 0 ? HTMLInputElement : a.HTMLInputElement, l = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, u = a === void 0 ? HTMLElement : a.HTMLElement, d = a === void 0 ? KeyboardEvent : a.KeyboardEvent, f = g(i);
|
|
322
|
+
return e = e || f instanceof c && !_e.has(f.type) || f instanceof l || f instanceof u && f.isContentEditable, !(e && t === "keyboard" && n instanceof d && !le[n.key]);
|
|
355
323
|
}
|
|
356
|
-
function
|
|
357
|
-
|
|
324
|
+
function ye(e, t, r) {
|
|
325
|
+
q(), n(() => {
|
|
358
326
|
if (r?.enabled === !1) return;
|
|
359
327
|
let t = (t, n) => {
|
|
360
|
-
|
|
328
|
+
ve(!!r?.isTextInput, t, n) && e(J());
|
|
361
329
|
};
|
|
362
|
-
return
|
|
363
|
-
|
|
330
|
+
return z.add(t), () => {
|
|
331
|
+
z.delete(t);
|
|
364
332
|
};
|
|
365
333
|
}, t);
|
|
366
334
|
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
function xe(e) {
|
|
335
|
+
// node_modules/react-aria/dist/private/interactions/useFocus.mjs
|
|
336
|
+
function be(e) {
|
|
370
337
|
let { isDisabled: n, onFocus: r, onBlur: i, onFocusChange: a } = e, s = t((e) => {
|
|
371
|
-
if (
|
|
372
|
-
}, [i, a]), c =
|
|
373
|
-
let t =
|
|
338
|
+
if (_(e) === e.currentTarget) return i && i(e), a && a(!1), !0;
|
|
339
|
+
}, [i, a]), c = T(s), l = t((e) => {
|
|
340
|
+
let t = _(e), n = o(t), i = n ? g(n) : g();
|
|
374
341
|
t === e.currentTarget && t === i && (r && r(e), a && a(!0), c(e));
|
|
375
342
|
}, [
|
|
376
343
|
a,
|
|
@@ -382,8 +349,7 @@ function xe(e) {
|
|
|
382
349
|
onBlur: !n && (i || a) ? s : void 0
|
|
383
350
|
} };
|
|
384
351
|
}
|
|
385
|
-
|
|
386
|
-
//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
|
|
352
|
+
// node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
|
|
387
353
|
function Y() {
|
|
388
354
|
let e = i(/* @__PURE__ */ new Map()), r = t((t, n, r, i) => {
|
|
389
355
|
let a = i?.once ? (...t) => {
|
|
@@ -409,28 +375,27 @@ function Y() {
|
|
|
409
375
|
removeAllGlobalListeners: o
|
|
410
376
|
};
|
|
411
377
|
}
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
function Se(e) {
|
|
378
|
+
// node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
|
|
379
|
+
function xe(e) {
|
|
415
380
|
let { isDisabled: n, onBlurWithin: r, onFocusWithin: a, onFocusWithinChange: s } = e, c = i({ isFocusWithin: !1 }), { addGlobalListener: l, removeAllGlobalListeners: u } = Y(), d = t((e) => {
|
|
416
|
-
|
|
381
|
+
h(e.currentTarget, _(e)) && c.current.isFocusWithin && !h(e.currentTarget, e.relatedTarget) && (c.current.isFocusWithin = !1, u(), r && r(e), s && s(!1));
|
|
417
382
|
}, [
|
|
418
383
|
r,
|
|
419
384
|
s,
|
|
420
385
|
c,
|
|
421
386
|
u
|
|
422
|
-
]), f =
|
|
423
|
-
if (!
|
|
424
|
-
let t =
|
|
387
|
+
]), f = T(d), p = t((e) => {
|
|
388
|
+
if (!h(e.currentTarget, _(e))) return;
|
|
389
|
+
let t = _(e), n = o(t), r = g(n);
|
|
425
390
|
if (!c.current.isFocusWithin && r === t) {
|
|
426
391
|
a && a(e), s && s(!0), c.current.isFocusWithin = !0, f(e);
|
|
427
392
|
let t = e.currentTarget;
|
|
428
393
|
l(n, "focus", (e) => {
|
|
429
|
-
let r =
|
|
430
|
-
if (c.current.isFocusWithin && !
|
|
394
|
+
let r = _(e);
|
|
395
|
+
if (c.current.isFocusWithin && !h(t, r)) {
|
|
431
396
|
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
|
|
432
|
-
|
|
433
|
-
let i =
|
|
397
|
+
w(e, t);
|
|
398
|
+
let i = C(e);
|
|
434
399
|
d(i);
|
|
435
400
|
}
|
|
436
401
|
}, { capture: !0 });
|
|
@@ -450,25 +415,24 @@ function Se(e) {
|
|
|
450
415
|
onBlur: d
|
|
451
416
|
} };
|
|
452
417
|
}
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
function Ce(e = {}) {
|
|
418
|
+
// node_modules/react-aria/dist/private/focus/useFocusRing.mjs
|
|
419
|
+
function Se(e = {}) {
|
|
456
420
|
let { autoFocus: n = !1, isTextInput: r, within: o } = e, s = i({
|
|
457
421
|
isFocused: !1,
|
|
458
422
|
isFocusVisible: n || J()
|
|
459
423
|
}), [c, l] = a(!1), [u, d] = a(() => s.current.isFocused && s.current.isFocusVisible), f = t(() => d(s.current.isFocused && s.current.isFocusVisible), []), p = t((e) => {
|
|
460
424
|
s.current.isFocused = e, s.current.isFocusVisible = J(), l(e), f();
|
|
461
425
|
}, [f]);
|
|
462
|
-
|
|
426
|
+
ye((e) => {
|
|
463
427
|
s.current.isFocusVisible = e, f();
|
|
464
428
|
}, [r, c], {
|
|
465
429
|
enabled: c,
|
|
466
430
|
isTextInput: r
|
|
467
431
|
});
|
|
468
|
-
let { focusProps: m } =
|
|
432
|
+
let { focusProps: m } = be({
|
|
469
433
|
isDisabled: o,
|
|
470
434
|
onFocusChange: p
|
|
471
|
-
}), { focusWithinProps: h } =
|
|
435
|
+
}), { focusWithinProps: h } = xe({
|
|
472
436
|
isDisabled: !o,
|
|
473
437
|
onFocusWithinChange: p
|
|
474
438
|
});
|
|
@@ -478,8 +442,7 @@ function Ce(e = {}) {
|
|
|
478
442
|
focusProps: o ? h : m
|
|
479
443
|
};
|
|
480
444
|
}
|
|
481
|
-
|
|
482
|
-
//#region node_modules/react-aria/dist/private/interactions/useHover.mjs
|
|
445
|
+
// node_modules/react-aria/dist/private/interactions/useHover.mjs
|
|
483
446
|
var X = !1, Z = 0;
|
|
484
447
|
function Q() {
|
|
485
448
|
X = !0, setTimeout(() => {
|
|
@@ -489,27 +452,27 @@ function Q() {
|
|
|
489
452
|
function $(e) {
|
|
490
453
|
e.pointerType === "touch" && Q();
|
|
491
454
|
}
|
|
492
|
-
function
|
|
455
|
+
function Ce() {
|
|
493
456
|
let e = o(null);
|
|
494
457
|
if (e !== void 0) return Z === 0 && (typeof PointerEvent < "u" ? e.addEventListener("pointerup", $) : process.env.NODE_ENV === "test" && e.addEventListener("touchend", Q)), Z++, () => {
|
|
495
458
|
Z--, !(Z > 0) && (typeof PointerEvent < "u" ? e.removeEventListener("pointerup", $) : process.env.NODE_ENV === "test" && e.removeEventListener("touchend", Q));
|
|
496
459
|
};
|
|
497
460
|
}
|
|
498
|
-
function
|
|
461
|
+
function we(e) {
|
|
499
462
|
let { onHoverStart: t, onHoverChange: s, onHoverEnd: c, isDisabled: l } = e, [u, d] = a(!1), f = i({
|
|
500
463
|
isHovered: !1,
|
|
501
464
|
ignoreEmulatedMouseEvents: !1,
|
|
502
465
|
pointerType: "",
|
|
503
466
|
target: null
|
|
504
467
|
}).current;
|
|
505
|
-
n(
|
|
506
|
-
let { addGlobalListener: p, removeAllGlobalListeners:
|
|
468
|
+
n(Ce, []);
|
|
469
|
+
let { addGlobalListener: p, removeAllGlobalListeners: m } = Y(), { hoverProps: g, triggerHoverEnd: v } = r(() => {
|
|
507
470
|
let e = (e, r) => {
|
|
508
|
-
if (f.pointerType = r, l || r === "touch" || f.isHovered || !
|
|
471
|
+
if (f.pointerType = r, l || r === "touch" || f.isHovered || !h(e.currentTarget, _(e))) return;
|
|
509
472
|
f.isHovered = !0;
|
|
510
473
|
let i = e.currentTarget;
|
|
511
|
-
f.target = i, p(o(
|
|
512
|
-
f.isHovered && f.target && !
|
|
474
|
+
f.target = i, p(o(_(e)), "pointerover", (e) => {
|
|
475
|
+
f.isHovered && f.target && !h(f.target, _(e)) && n(e, e.pointerType);
|
|
513
476
|
}, { capture: !0 }), t && t({
|
|
514
477
|
type: "hoverstart",
|
|
515
478
|
target: i,
|
|
@@ -517,7 +480,7 @@ function Te(e) {
|
|
|
517
480
|
}), s && s(!0), d(!0);
|
|
518
481
|
}, n = (e, t) => {
|
|
519
482
|
let n = f.target;
|
|
520
|
-
f.pointerType = "", f.target = null, t !== "touch" && f.isHovered && n && (f.isHovered = !1,
|
|
483
|
+
f.pointerType = "", f.target = null, t !== "touch" && f.isHovered && n && (f.isHovered = !1, m(), c && c({
|
|
521
484
|
type: "hoverend",
|
|
522
485
|
target: n,
|
|
523
486
|
pointerType: t
|
|
@@ -526,13 +489,13 @@ function Te(e) {
|
|
|
526
489
|
return typeof PointerEvent < "u" ? (r.onPointerEnter = (t) => {
|
|
527
490
|
X && t.pointerType === "mouse" || e(t, t.pointerType);
|
|
528
491
|
}, r.onPointerLeave = (e) => {
|
|
529
|
-
!l &&
|
|
492
|
+
!l && h(e.currentTarget, _(e)) && n(e, e.pointerType);
|
|
530
493
|
}) : process.env.NODE_ENV === "test" && (r.onTouchStart = () => {
|
|
531
494
|
f.ignoreEmulatedMouseEvents = !0;
|
|
532
495
|
}, r.onMouseEnter = (t) => {
|
|
533
496
|
!f.ignoreEmulatedMouseEvents && !X && e(t, "mouse"), f.ignoreEmulatedMouseEvents = !1;
|
|
534
497
|
}, r.onMouseLeave = (e) => {
|
|
535
|
-
!l &&
|
|
498
|
+
!l && h(e.currentTarget, _(e)) && n(e, "mouse");
|
|
536
499
|
}), {
|
|
537
500
|
hoverProps: r,
|
|
538
501
|
triggerHoverEnd: n
|
|
@@ -544,16 +507,15 @@ function Te(e) {
|
|
|
544
507
|
l,
|
|
545
508
|
f,
|
|
546
509
|
p,
|
|
547
|
-
|
|
510
|
+
m
|
|
548
511
|
]);
|
|
549
512
|
return n(() => {
|
|
550
513
|
l && v({ currentTarget: f.target }, f.pointerType);
|
|
551
514
|
}, [l]), {
|
|
552
|
-
hoverProps:
|
|
515
|
+
hoverProps: g,
|
|
553
516
|
isHovered: u
|
|
554
517
|
};
|
|
555
518
|
}
|
|
556
|
-
|
|
557
|
-
export { o as _, me as a, O as c, S as d, ue as f, g, m as h, P as i, k as l, _ as m, Ce as n, N as o, b as p, Y as r, A as s, Te as t, x as u, s as v };
|
|
519
|
+
export { o as _, ce as a, A as c, w as d, ae as f, _ as g, h, L as i, M as l, v as m, Se as n, I as o, S as p, Y as r, N as s, we as t, C as u, s as v, f as y };
|
|
558
520
|
|
|
559
521
|
//# sourceMappingURL=useHover.map
|