@adgytec/adgytec-web-ui-components 2.2.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/AppBarHeadline.css +1 -1
- package/dist/assets/CalendarCell.css +1 -1
- package/dist/assets/CalendarMenuItem.css +1 -1
- package/dist/assets/Card.css +1 -0
- package/dist/assets/CardIcon.css +1 -0
- package/dist/assets/ConnectedButtonGroup.css +1 -1
- package/dist/assets/ListAvatar.css +1 -0
- package/dist/assets/ListBox.css +1 -0
- package/dist/assets/ListIcon.css +1 -0
- package/dist/assets/ListItem.css +1 -0
- package/dist/assets/ListLabelText.css +1 -0
- package/dist/assets/ListMedia.css +1 -0
- package/dist/assets/ListOverlineText.css +1 -0
- package/dist/assets/ListSupportingText.css +1 -0
- package/dist/assets/ListTrailingText.css +1 -0
- package/dist/assets/NavigationScrollContainer.css +1 -1
- package/dist/assets/SideSheet.css +1 -1
- package/dist/assets/Snackbar.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 +2 -2
- 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 +22 -0
- package/dist/chunks/Card.map +1 -0
- package/dist/chunks/CardIcon +23 -0
- package/dist/chunks/CardIcon.map +1 -0
- 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 +19 -16
- 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 +20 -0
- package/dist/chunks/ListAvatar.map +1 -0
- package/dist/chunks/ListBox +16 -0
- package/dist/chunks/ListBox.map +1 -0
- package/dist/chunks/ListIcon +21 -0
- package/dist/chunks/ListIcon.map +1 -0
- package/dist/chunks/ListItem +63 -0
- package/dist/chunks/ListItem.map +1 -0
- package/dist/chunks/ListLabelText +22 -0
- package/dist/chunks/ListLabelText.map +1 -0
- package/dist/chunks/ListMedia +15 -0
- package/dist/chunks/ListMedia.map +1 -0
- package/dist/chunks/ListOverlineText +21 -0
- package/dist/chunks/ListOverlineText.map +1 -0
- package/dist/chunks/ListSupportingText +22 -0
- package/dist/chunks/ListSupportingText.map +1 -0
- 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 +20 -20
- package/dist/chunks/Navigation.map +1 -1
- package/dist/chunks/NavigationScrollContainer +48 -32
- 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 +18 -27
- 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 +6 -0
- package/dist/chunks/types.map +1 -0
- 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 +22 -0
- package/dist/components/{Image → Card/Card}/index.d.ts +1 -1
- package/dist/components/Card/Card/index.js +3 -0
- package/dist/components/Card/Card/types.d.ts +30 -0
- package/dist/components/Card/CardIcon/CardIcon.d.ts +26 -0
- package/dist/components/Card/CardIcon/index.d.ts +1 -0
- package/dist/components/Card/CardIcon/index.js +2 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Card/index.js +4 -0
- 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 +24 -0
- package/dist/components/List/ListAction/index.d.ts +1 -0
- package/dist/components/List/ListAction/index.js +2 -0
- package/dist/components/List/ListAvatar/ListAvatar.d.ts +23 -0
- package/dist/components/List/ListAvatar/index.d.ts +1 -0
- package/dist/components/List/ListAvatar/index.js +2 -0
- package/dist/components/List/ListBox/ListBox.d.ts +29 -0
- package/dist/components/List/ListBox/index.d.ts +2 -0
- package/dist/components/List/ListBox/index.js +2 -0
- package/dist/components/List/ListBox/types.d.ts +20 -0
- package/dist/components/List/ListIcon/ListIcon.d.ts +20 -0
- package/dist/components/List/ListIcon/index.d.ts +1 -0
- package/dist/components/List/ListIcon/index.js +2 -0
- package/dist/components/List/ListItem/ListItem.d.ts +36 -0
- package/dist/components/List/ListItem/index.d.ts +2 -0
- package/dist/components/List/ListItem/index.js +2 -0
- package/dist/components/List/ListItem/types.d.ts +30 -0
- package/dist/components/List/ListLabelText/ListLabelText.d.ts +17 -0
- package/dist/components/List/ListLabelText/index.d.ts +1 -0
- package/dist/components/List/ListLabelText/index.js +2 -0
- package/dist/components/List/ListMedia/ListMedia.d.ts +22 -0
- package/dist/components/List/ListMedia/index.d.ts +2 -0
- package/dist/components/List/ListMedia/index.js +2 -0
- package/dist/components/List/ListMedia/types.d.ts +42 -0
- package/dist/components/List/ListOverlineText/ListOverlineText.d.ts +17 -0
- package/dist/components/List/ListOverlineText/index.d.ts +1 -0
- package/dist/components/List/ListOverlineText/index.js +2 -0
- package/dist/components/List/ListSupportingText/ListSupportingText.d.ts +17 -0
- package/dist/components/List/ListSupportingText/index.d.ts +1 -0
- package/dist/components/List/ListSupportingText/index.js +2 -0
- package/dist/components/List/ListTrailingText/ListTrailingText.d.ts +17 -0
- package/dist/components/List/ListTrailingText/index.d.ts +1 -0
- package/dist/components/List/ListTrailingText/index.js +2 -0
- package/dist/components/List/index.d.ts +10 -0
- package/dist/components/List/index.js +11 -0
- 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 +32 -1
- package/dist/components/Navigation/NavigationState/index.d.ts +1 -0
- package/dist/components/Navigation/NavigationState/index.js +61 -2
- package/dist/components/Navigation/NavigationState/index.js.map +1 -0
- 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 +4 -4
- 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 +5 -5
- 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/Navigation/index.js +2 -2
- 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 +2 -1
- package/dist/index.js +131 -125
- 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/NavigationState +0 -69
- package/dist/chunks/NavigationState.map +0 -1
- 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.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/usePress
DELETED
|
@@ -1,535 +0,0 @@
|
|
|
1
|
-
import { _ as e, a as t, f as n, g as r, h as i, i as a, l as o, n as s, o as c, p as l, r as ee, s as te, t as ne, u, v as re } from "./useGlobalListeners";
|
|
2
|
-
import d from "clsx";
|
|
3
|
-
import f, { useCallback as p, useContext as m, useEffect as h, useMemo as ie, useRef as g, useState as ae } from "react";
|
|
4
|
-
import { flushSync as oe } from "react-dom";
|
|
5
|
-
//#region node_modules/react-aria/dist/private/utils/chain.mjs
|
|
6
|
-
function _(...e) {
|
|
7
|
-
return (...t) => {
|
|
8
|
-
for (let n of e) typeof n == "function" && n(...t);
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
//#endregion
|
|
12
|
-
//#region node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
|
|
13
|
-
var v = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Set();
|
|
14
|
-
function b() {
|
|
15
|
-
if (typeof window > "u") return;
|
|
16
|
-
function e(e) {
|
|
17
|
-
return "propertyName" in e;
|
|
18
|
-
}
|
|
19
|
-
let t = (t) => {
|
|
20
|
-
let r = i(t);
|
|
21
|
-
if (!e(t) || !r) return;
|
|
22
|
-
let a = v.get(r);
|
|
23
|
-
a || (a = /* @__PURE__ */ new Set(), v.set(r, a), r.addEventListener("transitioncancel", n, { once: !0 })), a.add(t.propertyName);
|
|
24
|
-
}, n = (t) => {
|
|
25
|
-
let r = i(t);
|
|
26
|
-
if (!e(t) || !r) return;
|
|
27
|
-
let a = v.get(r);
|
|
28
|
-
if (a && (a.delete(t.propertyName), a.size === 0 && (r.removeEventListener("transitioncancel", n), v.delete(r)), v.size === 0)) {
|
|
29
|
-
for (let e of y) e();
|
|
30
|
-
y.clear();
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);
|
|
34
|
-
}
|
|
35
|
-
typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", b) : b());
|
|
36
|
-
function x() {
|
|
37
|
-
for (let [e] of v) "isConnected" in e && !e.isConnected && v.delete(e);
|
|
38
|
-
}
|
|
39
|
-
function S(e) {
|
|
40
|
-
requestAnimationFrame(() => {
|
|
41
|
-
x(), v.size === 0 ? e() : y.add(e);
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
//#endregion
|
|
45
|
-
//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs
|
|
46
|
-
var C = "default", w = "", T = /* @__PURE__ */ new WeakMap();
|
|
47
|
-
function E(e) {
|
|
48
|
-
if (c()) {
|
|
49
|
-
if (C === "default") {
|
|
50
|
-
let t = r(e);
|
|
51
|
-
w = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
|
|
52
|
-
}
|
|
53
|
-
C = "disabled";
|
|
54
|
-
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
|
|
55
|
-
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
|
|
56
|
-
T.set(e, e.style[t]), e.style[t] = "none";
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
function D(e) {
|
|
60
|
-
if (c()) {
|
|
61
|
-
if (C !== "disabled") return;
|
|
62
|
-
C = "restoring", setTimeout(() => {
|
|
63
|
-
S(() => {
|
|
64
|
-
if (C === "restoring") {
|
|
65
|
-
let t = r(e);
|
|
66
|
-
t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = w || ""), w = "", C = "default";
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
}, 300);
|
|
70
|
-
} else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && T.has(e)) {
|
|
71
|
-
let t = T.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
|
|
72
|
-
e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), T.delete(e);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
//#endregion
|
|
76
|
-
//#region node_modules/react-aria/dist/private/utils/getNonce.mjs
|
|
77
|
-
function O(e) {
|
|
78
|
-
return e?.defaultView?.__webpack_nonce__ || globalThis.__webpack_nonce__ || void 0;
|
|
79
|
-
}
|
|
80
|
-
var k = /* @__PURE__ */ new WeakMap();
|
|
81
|
-
function se(t) {
|
|
82
|
-
let n = t ?? (typeof document < "u" ? document : void 0);
|
|
83
|
-
if (!n) return O(n);
|
|
84
|
-
if (k.has(n)) return k.get(n);
|
|
85
|
-
let r = n.querySelector("meta[property=\"csp-nonce\"]"), i = r && r instanceof e(r).HTMLMetaElement && (r.nonce || r.content) || O(n) || void 0;
|
|
86
|
-
return i !== void 0 && k.set(n, i), i;
|
|
87
|
-
}
|
|
88
|
-
typeof window < "u" && window.document && window.document.createElement;
|
|
89
|
-
var A = /* @__PURE__ */ new Map();
|
|
90
|
-
typeof FinalizationRegistry < "u" && new FinalizationRegistry((e) => {
|
|
91
|
-
A.delete(e);
|
|
92
|
-
});
|
|
93
|
-
function j(e, t) {
|
|
94
|
-
if (e === t) return e;
|
|
95
|
-
let n = A.get(e);
|
|
96
|
-
if (n) return n.forEach((e) => e.current = t), t;
|
|
97
|
-
let r = A.get(t);
|
|
98
|
-
return r ? (r.forEach((t) => t.current = e), e) : t;
|
|
99
|
-
}
|
|
100
|
-
//#endregion
|
|
101
|
-
//#region node_modules/react-aria/dist/private/utils/mergeRefs.mjs
|
|
102
|
-
function M(...e) {
|
|
103
|
-
return e.length === 1 && e[0] ? e[0] : (t) => {
|
|
104
|
-
let n = !1, r = e.map((e) => {
|
|
105
|
-
let r = N(e, t);
|
|
106
|
-
return n ||= typeof r == "function", r;
|
|
107
|
-
});
|
|
108
|
-
if (n) return () => {
|
|
109
|
-
r.forEach((t, n) => {
|
|
110
|
-
typeof t == "function" ? t() : N(e[n], null);
|
|
111
|
-
});
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
function N(e, t) {
|
|
116
|
-
if (typeof e == "function") return e(t);
|
|
117
|
-
e != null && (e.current = t);
|
|
118
|
-
}
|
|
119
|
-
//#endregion
|
|
120
|
-
//#region node_modules/react-aria/dist/private/utils/mergeProps.mjs
|
|
121
|
-
function P(...e) {
|
|
122
|
-
let t = { ...e[0] };
|
|
123
|
-
for (let n = 1; n < e.length; n++) {
|
|
124
|
-
let r = e[n];
|
|
125
|
-
for (let e in r) {
|
|
126
|
-
let n = t[e], i = r[e];
|
|
127
|
-
typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = _(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = d(n, i) : e === "id" && n && i ? t.id = j(n, i) : e === "ref" && n && i ? t.ref = M(n, i) : t[e] = i === void 0 ? n : i;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
return t;
|
|
131
|
-
}
|
|
132
|
-
//#endregion
|
|
133
|
-
//#region node_modules/react-aria/dist/private/interactions/context.mjs
|
|
134
|
-
var F = f.createContext({ register: () => {} });
|
|
135
|
-
F.displayName = "PressResponderContext";
|
|
136
|
-
//#endregion
|
|
137
|
-
//#region node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
|
|
138
|
-
var I = f.useInsertionEffect ?? n;
|
|
139
|
-
function L(e) {
|
|
140
|
-
let t = g(null);
|
|
141
|
-
return I(() => {
|
|
142
|
-
t.current = e;
|
|
143
|
-
}, [e]), p((...e) => {
|
|
144
|
-
let n = t.current;
|
|
145
|
-
return n?.(...e);
|
|
146
|
-
}, []);
|
|
147
|
-
}
|
|
148
|
-
//#endregion
|
|
149
|
-
//#region node_modules/react-aria/dist/private/utils/useSyncRef.mjs
|
|
150
|
-
function R(e, t) {
|
|
151
|
-
n(() => {
|
|
152
|
-
if (e && e.ref && t) return e.ref.current = t.current, () => {
|
|
153
|
-
e.ref && (e.ref.current = null);
|
|
154
|
-
};
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
//#endregion
|
|
158
|
-
//#region node_modules/react-aria/dist/private/interactions/usePress.mjs
|
|
159
|
-
function ce(e) {
|
|
160
|
-
let t = m(F);
|
|
161
|
-
if (t) {
|
|
162
|
-
let { register: n, ref: r, ...i } = t;
|
|
163
|
-
e = P(i, e), n();
|
|
164
|
-
}
|
|
165
|
-
return R(t, e.ref), e;
|
|
166
|
-
}
|
|
167
|
-
var z = class {
|
|
168
|
-
#e;
|
|
169
|
-
constructor(e, t, n, r) {
|
|
170
|
-
this.#e = !0;
|
|
171
|
-
let i = (r?.target ?? n.currentTarget)?.getBoundingClientRect(), a, o = 0, s, c = null;
|
|
172
|
-
n.clientX != null && n.clientY != null && (s = n.clientX, c = n.clientY), i && (s != null && c != null ? (a = s - i.left, o = c - i.top) : (a = i.width / 2, o = i.height / 2)), this.type = e, this.pointerType = t, this.target = n.currentTarget, this.shiftKey = n.shiftKey, this.metaKey = n.metaKey, this.ctrlKey = n.ctrlKey, this.altKey = n.altKey, this.x = a, this.y = o, this.key = n.key;
|
|
173
|
-
}
|
|
174
|
-
continuePropagation() {
|
|
175
|
-
this.#e = !1;
|
|
176
|
-
}
|
|
177
|
-
get shouldStopPropagation() {
|
|
178
|
-
return this.#e;
|
|
179
|
-
}
|
|
180
|
-
}, B = Symbol("linkClicked"), V = "react-aria-pressable-style", H = "data-react-aria-pressable";
|
|
181
|
-
function U(n) {
|
|
182
|
-
let { onPress: c, onPressChange: d, onPressStart: f, onPressEnd: m, onPressUp: v, onClick: y, isDisabled: b, isPressed: x, preventFocusOnPress: S, shouldCancelOnPointerExit: C, allowTextSelectionOnPress: w, ref: T, ...O } = ce(n), [k, A] = ae(!1), j = g({
|
|
183
|
-
isPressed: !1,
|
|
184
|
-
ignoreEmulatedMouseEvents: !1,
|
|
185
|
-
didFirePressStart: !1,
|
|
186
|
-
isTriggeringEvent: !1,
|
|
187
|
-
activePointerId: null,
|
|
188
|
-
target: null,
|
|
189
|
-
isOverTarget: !1,
|
|
190
|
-
pointerType: null,
|
|
191
|
-
disposables: []
|
|
192
|
-
}), { addGlobalListener: M, removeAllGlobalListeners: N } = ne(), F = p((e, t) => {
|
|
193
|
-
let n = j.current;
|
|
194
|
-
if (b || n.didFirePressStart) return !1;
|
|
195
|
-
let r = !0;
|
|
196
|
-
if (n.isTriggeringEvent = !0, f) {
|
|
197
|
-
let n = new z("pressstart", t, e);
|
|
198
|
-
f(n), r = n.shouldStopPropagation;
|
|
199
|
-
}
|
|
200
|
-
return d && d(!0), n.isTriggeringEvent = !1, n.didFirePressStart = !0, A(!0), r;
|
|
201
|
-
}, [
|
|
202
|
-
b,
|
|
203
|
-
f,
|
|
204
|
-
d
|
|
205
|
-
]), I = p((e, t, n = !0) => {
|
|
206
|
-
let r = j.current;
|
|
207
|
-
if (!r.didFirePressStart) return !1;
|
|
208
|
-
r.didFirePressStart = !1, r.isTriggeringEvent = !0;
|
|
209
|
-
let i = !0;
|
|
210
|
-
if (m) {
|
|
211
|
-
let n = new z("pressend", t, e);
|
|
212
|
-
m(n), i = n.shouldStopPropagation;
|
|
213
|
-
}
|
|
214
|
-
if (d && d(!1), A(!1), c && n && !b) {
|
|
215
|
-
let n = new z("press", t, e);
|
|
216
|
-
c(n), i &&= n.shouldStopPropagation;
|
|
217
|
-
}
|
|
218
|
-
return r.isTriggeringEvent = !1, i;
|
|
219
|
-
}, [
|
|
220
|
-
b,
|
|
221
|
-
m,
|
|
222
|
-
d,
|
|
223
|
-
c
|
|
224
|
-
]), R = L(I), U = L(p((e, t) => {
|
|
225
|
-
let n = j.current;
|
|
226
|
-
if (b) return !1;
|
|
227
|
-
if (v) {
|
|
228
|
-
n.isTriggeringEvent = !0;
|
|
229
|
-
let r = new z("pressup", t, e);
|
|
230
|
-
return v(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
|
|
231
|
-
}
|
|
232
|
-
return !0;
|
|
233
|
-
}, [b, v])), Y = p((e) => {
|
|
234
|
-
let t = j.current;
|
|
235
|
-
if (t.isPressed && t.target) {
|
|
236
|
-
t.didFirePressStart && t.pointerType != null && I(J(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, N(), w || D(t.target);
|
|
237
|
-
for (let e of t.disposables) e();
|
|
238
|
-
t.disposables = [];
|
|
239
|
-
}
|
|
240
|
-
}, [
|
|
241
|
-
w,
|
|
242
|
-
N,
|
|
243
|
-
I
|
|
244
|
-
]), X = L(Y);
|
|
245
|
-
h(() => {
|
|
246
|
-
b && j.current.isPressed && X({
|
|
247
|
-
currentTarget: j.current.target,
|
|
248
|
-
shiftKey: !1,
|
|
249
|
-
ctrlKey: !1,
|
|
250
|
-
metaKey: !1,
|
|
251
|
-
altKey: !1
|
|
252
|
-
});
|
|
253
|
-
}, [b]);
|
|
254
|
-
let Z = p((e) => {
|
|
255
|
-
C && Y(e);
|
|
256
|
-
}, [C, Y]), Q = p((e) => {
|
|
257
|
-
b || y?.(e);
|
|
258
|
-
}, [b, y]), $ = p((e, t) => {
|
|
259
|
-
if (!b && y) {
|
|
260
|
-
let n = new MouseEvent("click", e);
|
|
261
|
-
o(n, t), y(te(n));
|
|
262
|
-
}
|
|
263
|
-
}, [b, y]), fe = ie(() => {
|
|
264
|
-
let n = j.current, o = {
|
|
265
|
-
onKeyDown(e) {
|
|
266
|
-
if (G(e.nativeEvent, e.currentTarget) && l(e.currentTarget, i(e))) {
|
|
267
|
-
de(i(e), e.key) && e.preventDefault();
|
|
268
|
-
let a = !0;
|
|
269
|
-
!n.isPressed && !e.repeat && (n.target = e.currentTarget, n.isPressed = !0, n.pointerType = "keyboard", a = F(e, "keyboard"));
|
|
270
|
-
let o = e.currentTarget;
|
|
271
|
-
M(r(e.currentTarget), "keyup", _((e) => {
|
|
272
|
-
G(e, o) && !e.repeat && l(o, i(e)) && n.target && U(J(n.target, e), "keyboard");
|
|
273
|
-
}, c), !0), a && e.stopPropagation(), e.metaKey && t() && n.metaKeyEvents?.set(e.key, e.nativeEvent);
|
|
274
|
-
} else e.key === "Meta" && (n.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
275
|
-
},
|
|
276
|
-
onClick(e) {
|
|
277
|
-
if (!(e && !l(e.currentTarget, i(e))) && e && e.button === 0 && !n.isTriggeringEvent && !s.isOpening) {
|
|
278
|
-
let t = !0;
|
|
279
|
-
if (b && e.preventDefault(), !n.ignoreEmulatedMouseEvents && !n.isPressed && (n.pointerType === "virtual" || a(e.nativeEvent))) {
|
|
280
|
-
let n = F(e, "virtual"), r = U(e, "virtual"), i = R(e, "virtual");
|
|
281
|
-
Q(e), t = n && r && i;
|
|
282
|
-
} else if (n.isPressed && n.pointerType !== "keyboard") {
|
|
283
|
-
let r = n.pointerType || e.nativeEvent.pointerType || "virtual", i = U(J(e.currentTarget, e), r), a = R(J(e.currentTarget, e), r, !0);
|
|
284
|
-
t = i && a, n.isOverTarget = !1, Q(e), X(e);
|
|
285
|
-
}
|
|
286
|
-
n.ignoreEmulatedMouseEvents = !1, t && e.stopPropagation();
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
}, c = (e) => {
|
|
290
|
-
if (n.isPressed && n.target && G(e, n.target)) {
|
|
291
|
-
de(i(e), e.key) && e.preventDefault();
|
|
292
|
-
let t = i(e), r = l(n.target, t);
|
|
293
|
-
R(J(n.target, e), "keyboard", r), r && $(e, n.target), N(), e.key !== "Enter" && W(n.target) && l(n.target, t) && !e[B] && (e[B] = !0, s(n.target, e, !1)), n.isPressed = !1, n.metaKeyEvents?.delete(e.key);
|
|
294
|
-
} else if (e.key === "Meta" && n.metaKeyEvents?.size) {
|
|
295
|
-
let e = n.metaKeyEvents;
|
|
296
|
-
n.metaKeyEvents = void 0;
|
|
297
|
-
for (let t of e.values()) n.target?.dispatchEvent(new KeyboardEvent("keyup", t));
|
|
298
|
-
}
|
|
299
|
-
};
|
|
300
|
-
if (typeof PointerEvent < "u") {
|
|
301
|
-
o.onPointerDown = (a) => {
|
|
302
|
-
if (a.button !== 0 || !l(a.currentTarget, i(a))) return;
|
|
303
|
-
if (ee(a.nativeEvent)) {
|
|
304
|
-
n.pointerType = "virtual";
|
|
305
|
-
return;
|
|
306
|
-
}
|
|
307
|
-
n.pointerType = a.pointerType;
|
|
308
|
-
let o = !0;
|
|
309
|
-
if (!n.isPressed) {
|
|
310
|
-
n.isPressed = !0, n.isOverTarget = !0, n.activePointerId = a.pointerId, n.target = a.currentTarget, w || E(n.target), o = F(a, n.pointerType);
|
|
311
|
-
let s = i(a);
|
|
312
|
-
"releasePointerCapture" in s && ("hasPointerCapture" in s ? s.hasPointerCapture(a.pointerId) && s.releasePointerCapture(a.pointerId) : s.releasePointerCapture(a.pointerId)), M(r(a.currentTarget), "pointerup", e, !1), M(r(a.currentTarget), "pointercancel", t, !1);
|
|
313
|
-
}
|
|
314
|
-
o && a.stopPropagation();
|
|
315
|
-
}, o.onMouseDown = (e) => {
|
|
316
|
-
if (l(e.currentTarget, i(e)) && e.button === 0) {
|
|
317
|
-
if (S) {
|
|
318
|
-
let t = u(e.target);
|
|
319
|
-
t && n.disposables.push(t);
|
|
320
|
-
}
|
|
321
|
-
e.stopPropagation();
|
|
322
|
-
}
|
|
323
|
-
}, o.onPointerUp = (e) => {
|
|
324
|
-
!l(e.currentTarget, i(e)) || n.pointerType === "virtual" || e.button === 0 && !n.isPressed && U(e, n.pointerType || e.pointerType);
|
|
325
|
-
}, o.onPointerEnter = (e) => {
|
|
326
|
-
e.pointerId === n.activePointerId && n.target && !n.isOverTarget && n.pointerType != null && (n.isOverTarget = !0, F(J(n.target, e), n.pointerType));
|
|
327
|
-
}, o.onPointerLeave = (e) => {
|
|
328
|
-
e.pointerId === n.activePointerId && n.target && n.isOverTarget && n.pointerType != null && (n.isOverTarget = !1, R(J(n.target, e), n.pointerType, !1), Z(e));
|
|
329
|
-
};
|
|
330
|
-
let e = (e) => {
|
|
331
|
-
if (e.pointerId === n.activePointerId && n.isPressed && e.button === 0 && n.target) {
|
|
332
|
-
if (l(n.target, i(e)) && n.pointerType != null) {
|
|
333
|
-
let t = !1, r = setTimeout(() => {
|
|
334
|
-
n.isPressed && n.target instanceof HTMLElement && (t ? X(e) : (re(n.target), n.target.click()));
|
|
335
|
-
}, 80);
|
|
336
|
-
M(e.currentTarget, "click", () => t = !0, !0), n.disposables.push(() => clearTimeout(r));
|
|
337
|
-
} else X(e);
|
|
338
|
-
n.isOverTarget = !1;
|
|
339
|
-
}
|
|
340
|
-
}, t = (e) => {
|
|
341
|
-
X(e);
|
|
342
|
-
};
|
|
343
|
-
o.onDragStart = (e) => {
|
|
344
|
-
l(e.currentTarget, i(e)) && X(e);
|
|
345
|
-
};
|
|
346
|
-
} else if (process.env.NODE_ENV === "test") {
|
|
347
|
-
o.onMouseDown = (e) => {
|
|
348
|
-
if (!(e.button !== 0 || !l(e.currentTarget, i(e)))) {
|
|
349
|
-
if (n.ignoreEmulatedMouseEvents) {
|
|
350
|
-
e.stopPropagation();
|
|
351
|
-
return;
|
|
352
|
-
}
|
|
353
|
-
if (n.isPressed = !0, n.isOverTarget = !0, n.target = e.currentTarget, n.pointerType = a(e.nativeEvent) ? "virtual" : "mouse", oe(() => F(e, n.pointerType)) && e.stopPropagation(), S) {
|
|
354
|
-
let t = u(e.target);
|
|
355
|
-
t && n.disposables.push(t);
|
|
356
|
-
}
|
|
357
|
-
M(r(e.currentTarget), "mouseup", t, !1);
|
|
358
|
-
}
|
|
359
|
-
}, o.onMouseEnter = (e) => {
|
|
360
|
-
if (!l(e.currentTarget, i(e))) return;
|
|
361
|
-
let t = !0;
|
|
362
|
-
n.isPressed && !n.ignoreEmulatedMouseEvents && n.pointerType != null && (n.isOverTarget = !0, t = F(e, n.pointerType)), t && e.stopPropagation();
|
|
363
|
-
}, o.onMouseLeave = (e) => {
|
|
364
|
-
if (!l(e.currentTarget, i(e))) return;
|
|
365
|
-
let t = !0;
|
|
366
|
-
n.isPressed && !n.ignoreEmulatedMouseEvents && n.pointerType != null && (n.isOverTarget = !1, t = R(e, n.pointerType, !1), Z(e)), t && e.stopPropagation();
|
|
367
|
-
}, o.onMouseUp = (e) => {
|
|
368
|
-
l(e.currentTarget, i(e)) && !n.ignoreEmulatedMouseEvents && e.button === 0 && !n.isPressed && U(e, n.pointerType || "mouse");
|
|
369
|
-
};
|
|
370
|
-
let t = (e) => {
|
|
371
|
-
if (e.button === 0) {
|
|
372
|
-
if (n.ignoreEmulatedMouseEvents) {
|
|
373
|
-
n.ignoreEmulatedMouseEvents = !1;
|
|
374
|
-
return;
|
|
375
|
-
}
|
|
376
|
-
n.target && l(n.target, i(e)) && n.pointerType != null || X(e), n.isOverTarget = !1;
|
|
377
|
-
}
|
|
378
|
-
};
|
|
379
|
-
o.onTouchStart = (t) => {
|
|
380
|
-
if (!l(t.currentTarget, i(t))) return;
|
|
381
|
-
let r = le(t.nativeEvent);
|
|
382
|
-
r && (n.activePointerId = r.identifier, n.ignoreEmulatedMouseEvents = !0, n.isOverTarget = !0, n.isPressed = !0, n.target = t.currentTarget, n.pointerType = "touch", w || E(n.target), F(q(n.target, t), n.pointerType) && t.stopPropagation(), M(e(t.currentTarget), "scroll", s, !0));
|
|
383
|
-
}, o.onTouchMove = (e) => {
|
|
384
|
-
if (!l(e.currentTarget, i(e))) return;
|
|
385
|
-
if (!n.isPressed) {
|
|
386
|
-
e.stopPropagation();
|
|
387
|
-
return;
|
|
388
|
-
}
|
|
389
|
-
let t = K(e.nativeEvent, n.activePointerId), r = !0;
|
|
390
|
-
t && ue(t, e.currentTarget) ? !n.isOverTarget && n.pointerType != null && (n.isOverTarget = !0, r = F(q(n.target, e), n.pointerType)) : n.isOverTarget && n.pointerType != null && (n.isOverTarget = !1, r = R(q(n.target, e), n.pointerType, !1), Z(q(n.target, e))), r && e.stopPropagation();
|
|
391
|
-
}, o.onTouchEnd = (e) => {
|
|
392
|
-
if (!l(e.currentTarget, i(e))) return;
|
|
393
|
-
if (!n.isPressed) {
|
|
394
|
-
e.stopPropagation();
|
|
395
|
-
return;
|
|
396
|
-
}
|
|
397
|
-
let t = K(e.nativeEvent, n.activePointerId), r = !0;
|
|
398
|
-
t && ue(t, e.currentTarget) && n.pointerType != null ? (U(q(n.target, e), n.pointerType), r = R(q(n.target, e), n.pointerType), $(e.nativeEvent, n.target)) : n.isOverTarget && n.pointerType != null && (r = R(q(n.target, e), n.pointerType, !1)), r && e.stopPropagation(), n.isPressed = !1, n.activePointerId = null, n.isOverTarget = !1, n.ignoreEmulatedMouseEvents = !0, n.target && !w && D(n.target), N();
|
|
399
|
-
}, o.onTouchCancel = (e) => {
|
|
400
|
-
l(e.currentTarget, i(e)) && (e.stopPropagation(), n.isPressed && X(q(n.target, e)));
|
|
401
|
-
};
|
|
402
|
-
let s = (e) => {
|
|
403
|
-
n.isPressed && l(i(e), n.target) && X({
|
|
404
|
-
currentTarget: n.target,
|
|
405
|
-
shiftKey: !1,
|
|
406
|
-
ctrlKey: !1,
|
|
407
|
-
metaKey: !1,
|
|
408
|
-
altKey: !1
|
|
409
|
-
});
|
|
410
|
-
};
|
|
411
|
-
o.onDragStart = (e) => {
|
|
412
|
-
l(e.currentTarget, i(e)) && X(e);
|
|
413
|
-
};
|
|
414
|
-
}
|
|
415
|
-
return o;
|
|
416
|
-
}, [
|
|
417
|
-
M,
|
|
418
|
-
b,
|
|
419
|
-
S,
|
|
420
|
-
N,
|
|
421
|
-
w,
|
|
422
|
-
Z,
|
|
423
|
-
F,
|
|
424
|
-
Q,
|
|
425
|
-
$
|
|
426
|
-
]);
|
|
427
|
-
return h(() => {
|
|
428
|
-
if (!T || process.env.NODE_ENV === "test") return;
|
|
429
|
-
let e = r(T.current);
|
|
430
|
-
if (!e || !e.head || e.getElementById(V)) return;
|
|
431
|
-
let t = e.createElement("style");
|
|
432
|
-
t.id = V;
|
|
433
|
-
let n = se(e);
|
|
434
|
-
n && (t.nonce = n), t.textContent = `
|
|
435
|
-
@layer {
|
|
436
|
-
[${H}] {
|
|
437
|
-
touch-action: pan-x pan-y pinch-zoom;
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
`.trim(), e.head.prepend(t);
|
|
441
|
-
}, [T]), h(() => {
|
|
442
|
-
let e = j.current;
|
|
443
|
-
return () => {
|
|
444
|
-
w || D(e.target ?? void 0);
|
|
445
|
-
for (let t of e.disposables) t();
|
|
446
|
-
e.disposables = [];
|
|
447
|
-
};
|
|
448
|
-
}, [w]), {
|
|
449
|
-
isPressed: x || k,
|
|
450
|
-
pressProps: P(O, fe, { [H]: !0 })
|
|
451
|
-
};
|
|
452
|
-
}
|
|
453
|
-
function W(e) {
|
|
454
|
-
return e.tagName === "A" && e.hasAttribute("href");
|
|
455
|
-
}
|
|
456
|
-
function G(t, n) {
|
|
457
|
-
let { key: r, code: i } = t, a = n, o = a.getAttribute("role");
|
|
458
|
-
return (r === "Enter" || r === " " || r === "Spacebar" || i === "Space") && !(a instanceof e(a).HTMLInputElement && !$(a, r) || a instanceof e(a).HTMLTextAreaElement || a.isContentEditable) && !((o === "link" || !o && W(a)) && r !== "Enter");
|
|
459
|
-
}
|
|
460
|
-
function le(e) {
|
|
461
|
-
let { targetTouches: t } = e;
|
|
462
|
-
return t.length > 0 ? t[0] : null;
|
|
463
|
-
}
|
|
464
|
-
function K(e, t) {
|
|
465
|
-
let n = e.changedTouches;
|
|
466
|
-
for (let e = 0; e < n.length; e++) {
|
|
467
|
-
let r = n[e];
|
|
468
|
-
if (r.identifier === t) return r;
|
|
469
|
-
}
|
|
470
|
-
return null;
|
|
471
|
-
}
|
|
472
|
-
function q(e, t) {
|
|
473
|
-
let n = 0, r = 0;
|
|
474
|
-
return t.targetTouches && t.targetTouches.length === 1 && (n = t.targetTouches[0].clientX, r = t.targetTouches[0].clientY), {
|
|
475
|
-
currentTarget: e,
|
|
476
|
-
shiftKey: t.shiftKey,
|
|
477
|
-
ctrlKey: t.ctrlKey,
|
|
478
|
-
metaKey: t.metaKey,
|
|
479
|
-
altKey: t.altKey,
|
|
480
|
-
clientX: n,
|
|
481
|
-
clientY: r
|
|
482
|
-
};
|
|
483
|
-
}
|
|
484
|
-
function J(e, t) {
|
|
485
|
-
let n = t.clientX, r = t.clientY;
|
|
486
|
-
return {
|
|
487
|
-
currentTarget: e,
|
|
488
|
-
shiftKey: t.shiftKey,
|
|
489
|
-
ctrlKey: t.ctrlKey,
|
|
490
|
-
metaKey: t.metaKey,
|
|
491
|
-
altKey: t.altKey,
|
|
492
|
-
clientX: n,
|
|
493
|
-
clientY: r,
|
|
494
|
-
key: t.key
|
|
495
|
-
};
|
|
496
|
-
}
|
|
497
|
-
function Y(e) {
|
|
498
|
-
let t = 0, n = 0;
|
|
499
|
-
return e.width === void 0 ? e.radiusX !== void 0 && (t = e.radiusX) : t = e.width / 2, e.height === void 0 ? e.radiusY !== void 0 && (n = e.radiusY) : n = e.height / 2, {
|
|
500
|
-
top: e.clientY - n,
|
|
501
|
-
right: e.clientX + t,
|
|
502
|
-
bottom: e.clientY + n,
|
|
503
|
-
left: e.clientX - t
|
|
504
|
-
};
|
|
505
|
-
}
|
|
506
|
-
function X(e, t) {
|
|
507
|
-
return !(e.left > t.right || t.left > e.right || e.top > t.bottom || t.top > e.bottom);
|
|
508
|
-
}
|
|
509
|
-
function ue(e, t) {
|
|
510
|
-
return X(t.getBoundingClientRect(), Y(e));
|
|
511
|
-
}
|
|
512
|
-
function Z(e) {
|
|
513
|
-
return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !W(e);
|
|
514
|
-
}
|
|
515
|
-
function de(e, t) {
|
|
516
|
-
return e instanceof HTMLInputElement ? !$(e, t) : Z(e);
|
|
517
|
-
}
|
|
518
|
-
var Q = /* @__PURE__ */ new Set([
|
|
519
|
-
"checkbox",
|
|
520
|
-
"radio",
|
|
521
|
-
"range",
|
|
522
|
-
"color",
|
|
523
|
-
"file",
|
|
524
|
-
"image",
|
|
525
|
-
"button",
|
|
526
|
-
"submit",
|
|
527
|
-
"reset"
|
|
528
|
-
]);
|
|
529
|
-
function $(e, t) {
|
|
530
|
-
return e.type === "checkbox" || e.type === "radio" ? t === " " : Q.has(e.type);
|
|
531
|
-
}
|
|
532
|
-
//#endregion
|
|
533
|
-
export { U as t };
|
|
534
|
-
|
|
535
|
-
//# sourceMappingURL=usePress.map
|