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